1 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
3 PR tree-optimization/67043
4 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
5 preheader after hoisting invariant in it.
6 (find_defs): Force recomputation of all luids.
8 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
10 * config/rs6000/htm.md (tabort.): Restrict the source operand to
11 using a base register.
13 2015-08-03 David Malcolm <dmalcolm@redhat.com>
15 * main.c (main): Pass in NULL for toplev's external_timer.
16 * timevar.c: Include coretypes.h.
17 (class timer::named_items): New.
18 (timer::named_items::named_items): New.
19 (timer::named_items::~named_items): New.
20 (timer::named_items::push): New.
21 (timer::named_items::pop): New.
22 (timer::named_items::print): New.
23 (timer::timer): Initialize field "m_jit_client_items".
25 (timer::push): Move bulk of implementation to...
26 (timer::push_internal): ...here. New function.
27 (timer::pop): Move bulk of implementation to...
28 (timer::pop_internal): ...here. New function.
29 (timer::push_client_item): New.
30 (timer::pop_client_item): New.
31 (timer::print_row): New function, taken from timer::print.
32 (timer::print): Print "GCC items" header if we also have client
33 items. Move row-printing to timer::print_row. Print any client
35 (timer::get_topmost_item_name): New method.
36 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
37 (TV_JIT_CLIENT_CODE): New.
38 * timevar.h (timer::push_client_item): New declaration.
39 (timer::pop_client_item): New declaration.
40 (timer::get_topmost_item_name): New method.
41 (timer::push_internal): New declaration.
42 (timer::pop_internal): New declaration.
43 (timer::print_row): New declaration.
44 (timer::named_items): New declaration.
45 (timer::m_jit_client_items): New field.
46 (timer): Add friend class named_items.
47 (auto_timevar::auto_timevar): Add timer param.
48 (auto_timevar::~auto_timevar): Use field "m_timer".
49 (auto_timevar::m_timer): New field.
50 * toplev.c (initialize_rtl): Add g_timer as param when
51 constructing auto_timevar instance.
52 (toplev::toplev): Add "external_timer" param, and use it to
53 initialize the "g_timer" global if non-NULL.
54 (toplev::~toplev): If this created "g_timer", delete it.
55 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
56 with "external_timer" timer *.
58 2015-08-03 Alexander Basov <coohpt@gmail.com>
63 * cfgexpand.c (expand_one_var): Add check if stack is going to
64 be used in naked function.
65 * expr.c (expand_expr_addr_expr_1): Remove excess checking
66 whether expression should not reside in MEM.
67 * function.c (use_register_for_decl): Do not use registers for
68 non-register things (volatile, float, BLKMode) in naked functions.
70 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
73 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
74 Adjust splits to match new pattern.
76 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
78 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
81 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
82 point in VSX registers.
84 * config/rs6000/constraints.md (wb constraint): Document unused
86 (we constraint): Likewise.
87 (wo constraint): Likewise.
88 (wp constraint): New constraint for IEEE 128-bit floating point in
90 (wq constraint): Likewise.
92 * config/rs6000/predicates.md (easy_fp_constant): Add support for
93 IEEE 128-bit floating point in VSX registers.
94 (easy_scalar_constant): Likewise.
96 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
97 constraints (wp, wq) for IEEE 128-bit floating point in VSX
99 (rs6000_init_hard_regno_mode_ok): Likewise.
101 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
102 floating point in VSX registers.
111 (vsx_le_permute_<mode>): Add support to properly swap bytes for
112 IEEE 128-bit floating point in VSX registers on little endian.
113 (vsx_le_undo_permute_<mode>): Likewise.
114 (vsx_le_perm_load_<mode>): Likewise.
115 (vsx_le_perm_store_<mode>): Likewise.
116 (splitters for IEEE 128-bit fp moves): Likewise.
118 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
121 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
122 floating point in VSX registers.
125 * doc/md.text (Machine Constraints): Document wp and wq
126 constraints on PowerPC.
128 2015-08-03 Jeff Law <law@redhat.com>
131 PR gcov-profile/66899
132 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
133 iterate over the jump threading paths when an element in the
134 jump threading paths array is eliminated.
136 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
138 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
140 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
142 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
143 is_use_properly_guarded the variable def_preds. Free its
144 contents before returning.
145 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
146 (is_use_properly_guarded): Replace local variable def_preds with
147 a parameter. Adjust accordingly. Only update *def_preds if it's
150 2015-08-03 Richard Biener <rguenther@suse.de>
152 * genmatch.c (simplify::for_subst_vec): New member.
153 (binary_ok): New helper for for lowering.
154 (lower_for): Delay substituting operators into result expressions
155 if we can merge the results eventually again.
156 (capture_info::walk_result): Adjust for user_id appearing as
157 result expression operator.
158 (expr::gen_transform): Likewise.
159 (dt_simplify::gen_1): Likewise.
160 (dt_simplify::gen): Pass not substituted operators to tail
161 functions or initialize local variable with it.
162 (decision_tree::gen): Adjust function signature.
163 * match.pd: Fix tests against global code and add default
164 cases to switch stmts.
166 2015-08-03 Richard Biener <rguenther@suse.de>
168 * genmatch.c (dt_simplify::gen): Create captures array
171 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
173 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
174 the host compiler is affected by placement new aliasing bug.
175 * configure: Regenerate.
176 * Makefile.in (ALIASING_FLAGS): New variable.
177 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
179 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
182 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
183 (negmulsf3_vfp): Likewise.
184 (muldf3negdf_vfp): Disable for -frounding-math.
185 (mulsf3negsf_vfp): Likewise.
186 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
187 fix MULT cost with -frounding-math.
189 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
191 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
192 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
193 explicit. Prefer to add the flag whenever possible.
194 (noce_process_if_block): Try noce_try_store_flag_constants before
197 2015-08-03 Richard Biener <rguenther@suse.de>
199 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
200 New hash-map to record equivalent transforms.
201 (dt_node::analyze): Populate the equivalent transforms hash-map.
202 (dt_simplify::info): Add reference to hash-map entry.
203 (dt_simplify::gen): If we have split out a function for the
204 transform, generate a call to it.
205 (sinfo_hashmap_traits::hash): New function.
206 (compare_op): New helper function for ...
207 (sinfo_hashmap_traits::equal_keys): ... this new function.
208 (decision_tree::gen): Split out common equivalent transforms
211 2015-08-03 Richard Biener <rguenther@suse.de>
213 * gimple-fold.c (fold_gimple_assign): Remove folding of
214 the comparison in COND_EXPRs.
216 2015-08-03 Richard Biener <rguenther@suse.de>
218 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
219 on the rhs of assignments first simplify the embedded
222 2015-08-03 Richard Biener <rguenther@suse.de>
224 PR tree-optimization/66917
225 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
227 (DR_VECT_AUX): New macro.
228 (set_dr_misalignment): Adjust.
229 (dr_misalignment): Likewise.
230 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
231 Compute whether the base is at least element aligned.
232 * tree-vect-stmts.c (ensure_base_align): Adjust.
233 (vectorizable_store): If the base is not element aligned
234 preserve alignment of the original access if misalignment is unknown.
235 (vectorizable_load): Likewise.
237 2015-08-02 Martin Sebor <msebor@redhat.com>
239 * c-family/c.opt (-Wframe-address): New warning option.
240 * doc/invoke.texi (Wframe-address): Document it.
241 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
242 Clarify possible effects of calling the functions with non-zero
243 arguments and mention -Wframe-address.
244 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
246 2015-08-01 Michael Collison <michael.collison@linaro.org
247 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
249 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
250 (*arm_umin_cmp): Likewise.
252 2015-08-01 Caroline Tice <cmtice@google.com>
255 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
257 (vtbl_find_mangled_name): New function.
258 (vtbl_register_mangled_name): New function.
259 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
260 mangled name in mangled name vectors.
261 (find_or_create_vtbl_map_node): Ditto.
262 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
263 update recursion_depth on function entry; pass it to every recursive
264 call; automatically exit if depth > 25 (give up looking at that point).
265 (verify_bb_vtables): Initialize recursion_depth and pass it to
266 var_is_used_for_virtual_call_p.
267 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
268 global variable decls.
269 (vtbl_register_mangled_name): New extern function decl.
271 2015-08-01 Tom de Vries <tom@codesourcery.com>
273 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
275 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
277 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
278 operation_no_trapping_overflow. Allow non-overflow operations.
279 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
282 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
285 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
287 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
289 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
290 Enable for TARGET_32BIT.
291 (*if_move_neg): Likewise.
293 2015-07-31 Nick Clifton <nickc@redhat.com>
295 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
296 Returns true for __model__.
297 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
299 2015-07-31 Alan Modra <amodra@gmail.com>
302 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
303 (rs6000_emit_prologue): Set it.
304 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
306 2015-07-31 Richard Biener <rguenther@suse.de>
308 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
309 -> X == (C1 ^ C2) which is already implemented in match.pd.
310 Remove redundant dispatching to fold_relational_const.
311 Move unordered self and NaN compares ...
312 * match.pd: ... as patterns here. Remove some stray captures
315 2015-07-31 Petr Murzin <petr.murzin@intel.com>
318 (bdesc_special_args): Convert mask type from signed to unsigned for
320 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
321 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
322 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
323 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
324 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
325 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
326 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
327 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
328 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
329 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
330 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
331 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
332 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
333 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
334 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
335 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
336 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
337 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
338 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
339 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
340 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
341 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
342 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
343 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
344 * config/i386/i386-builtin-types.def
345 (V16QI_FTYPE_V16SI): Remove.
346 (V8DF_FTYPE_V8SI): Ditto.
347 (V8HI_FTYPE_V8DI): Ditto.
348 (V8SI_FTYPE_V8DI): Ditto.
349 (V8SF_FTYPE_V8DF): Ditto.
350 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
351 (V16HI_FTYPE_V16SI): Ditto.
352 (V16SF_FTYPE_V16HI): Ditto.
353 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
354 (V16SF_FTYPE_V16SI): Ditto.
355 (V4DI_FTYPE_V4DI): Ditto.
356 (V16SI_FTYPE_V16SF): Ditto.
357 (V16SF_FTYPE_FLOAT): Ditto.
358 (V8DF_FTYPE_DOUBLE): Ditto.
359 (V8DI_FTYPE_INT64): Ditto.
360 (V8DI_FTYPE_V4DI): Ditto.
361 (V16QI_FTYPE_V8DI): Ditto.
362 (UINT_FTYPE_V4SF): Ditto.
363 (UINT64_FTYPE_V4SF): Ditto.
364 (UINT_FTYPE_V2DF): Ditto.
365 (UINT64_FTYPE_V2DF): Ditto.
366 (V16SI_FTYPE_V16SI): Ditto.
367 (V8DI_FTYPE_V8DI): Ditto.
368 (V16SI_FTYPE_PV4SI): Ditto.
369 (V16SF_FTYPE_PV4SF): Ditto.
370 (V8DI_FTYPE_PV2DI): Ditto.
371 (V8DF_FTYPE_PV2DF): Ditto.
372 (V4DI_FTYPE_PV2DI): Ditto.
373 (V4DF_FTYPE_PV2DF): Ditto.
374 (V16SI_FTYPE_PV2SI): Ditto.
375 (V16SF_FTYPE_PV2SF): Ditto.
376 (V8DI_FTYPE_PV4DI): Ditto.
377 (V8DF_FTYPE_PV4DF): Ditto.
378 (V8SF_FTYPE_FLOAT): Ditto.
379 (V4SF_FTYPE_FLOAT): Ditto.
380 (V4DF_FTYPE_DOUBLE): Ditto.
381 (V8SF_FTYPE_PV4SF): Ditto.
382 (V8SI_FTYPE_PV4SI): Ditto.
383 (V4SI_FTYPE_PV2SI): Ditto.
384 (V8SF_FTYPE_PV2SF): Ditto.
385 (V8SI_FTYPE_PV2SI): Ditto.
386 (V16SF_FTYPE_PV8SF): Ditto.
387 (V16SI_FTYPE_PV8SI): Ditto.
388 (V8DI_FTYPE_V8SF): Ditto.
389 (V4DI_FTYPE_V4SF): Ditto.
390 (V2DI_FTYPE_V4SF): Ditto.
391 (V64QI_FTYPE_QI): Ditto.
392 (V32HI_FTYPE_HI): Ditto.
393 (V8UHI_FTYPE_V8UHI): Ditto.
394 (V16UHI_FTYPE_V16UHI): Ditto.
395 (V32UHI_FTYPE_V32UHI): Ditto.
396 (V2UDI_FTYPE_V2UDI): Ditto.
397 (V4UDI_FTYPE_V4UDI): Ditto.
398 (V8UDI_FTYPE_V8UDI): Ditto.
399 (V4USI_FTYPE_V4USI): Ditto.
400 (V8USI_FTYPE_V8USI): Ditto.
401 (V16USI_FTYPE_V16USI): Ditto.
402 (V2DF_FTYPE_V2DF_UINT64): Ditto.
403 (V2DI_FTYPE_V2DF_V2DF): Ditto.
404 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
405 (V8DF_FTYPE_V8DF_V8DI): Ditto.
406 (V4SF_FTYPE_V4SF_UINT64): Ditto.
407 (V4SI_FTYPE_V4SF_V4SF): Ditto.
408 (V16SF_FTYPE_V16SF_V16SI): Ditto.
409 (V64QI_FTYPE_V32HI_V32HI): Ditto.
410 (V32HI_FTYPE_V16SI_V16SI): Ditto.
411 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
412 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
413 (V32HI_FTYPE_V64QI_V64QI): Ditto.
414 (V32HI_FTYPE_V32HI_V32HI): Ditto.
415 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
416 (V16SI_FTYPE_V16SI_V4SI): Ditto.
417 (V16SI_FTYPE_V16SI_V16SI): Ditto.
418 (V16SI_FTYPE_V32HI_V32HI): Ditto.
419 (V16SI_FTYPE_V16SI_SI): Ditto.
420 (V8DI_FTYPE_V8DI_V8DI): Ditto.
421 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
422 (V8DI_FTYPE_V16SI_V16SI): Ditto.
423 (V8DI_FTYPE_V8DI_V2DI): Ditto.
424 (QI_FTYPE_QI): Ditto.
425 (SI_FTYPE_SI): Ditto.
426 (DI_FTYPE_DI): Ditto.
427 (QI_FTYPE_QI_QI): Ditto.
428 (QI_FTYPE_QI_INT): Ditto.
429 (HI_FTYPE_HI_INT): Ditto.
430 (SI_FTYPE_SI_INT): Ditto.
431 (DI_FTYPE_DI_INT): Ditto.
432 (HI_FTYPE_V16QI_V16QI): Ditto.
433 (SI_FTYPE_V32QI_V32QI): Ditto.
434 (DI_FTYPE_V64QI_V64QI): Ditto.
435 (QI_FTYPE_V8HI_V8HI): Ditto.
436 (HI_FTYPE_V16HI_V16HI): Ditto.
437 (SI_FTYPE_V32HI_V32HI): Ditto.
438 (QI_FTYPE_V4SI_V4SI): Ditto.
439 (QI_FTYPE_V8SI_V8SI): Ditto.
440 (QI_FTYPE_V2DI_V2DI): Ditto.
441 (QI_FTYPE_V4DI_V4DI): Ditto.
442 (QI_FTYPE_V8DI_V8DI): Ditto.
443 (HI_FTYPE_V16SI_V16SI): Ditto.
444 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
445 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
446 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
447 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
448 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
449 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
450 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
451 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
452 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
453 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
454 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
455 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
456 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
457 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
458 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
459 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
460 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
461 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
462 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
463 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
464 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
465 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
466 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
467 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
468 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
469 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
470 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
471 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
472 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
473 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
474 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
475 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
476 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
477 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
478 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
479 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
480 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
481 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
482 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
483 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
484 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
485 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
486 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
487 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
488 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
489 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
490 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
491 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
492 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
493 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
494 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
495 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
496 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
497 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
498 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
499 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
500 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
501 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
502 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
503 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
504 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
505 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
506 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
507 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
508 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
509 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
510 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
511 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
512 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
513 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
514 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
515 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
516 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
517 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
518 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
519 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
520 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
521 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
522 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
523 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
524 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
525 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
526 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
527 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
528 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
529 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
530 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
531 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
532 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
533 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
534 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
535 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
536 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
537 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
538 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
539 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
540 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
541 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
542 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
543 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
544 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
545 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
546 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
547 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
548 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
549 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
550 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
551 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
552 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
553 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
554 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
555 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
556 (HI_FTYPE_HI): Ditto.
557 (HI_FTYPE_V16QI): Ditto.
558 (SI_FTYPE_V32QI): Ditto.
559 (DI_FTYPE_V64QI): Ditto.
560 (QI_FTYPE_V8HI): Ditto.
561 (HI_FTYPE_V16HI): Ditto.
562 (SI_FTYPE_V32HI): Ditto.
563 (QI_FTYPE_V4SI): Ditto.
564 (QI_FTYPE_V8SI): Ditto.
565 (HI_FTYPE_V16SI): Ditto.
566 (QI_FTYPE_V2DI): Ditto.
567 (QI_FTYPE_V4DI): Ditto.
568 (QI_FTYPE_V8DI): Ditto.
569 (V16QI_FTYPE_HI): Ditto.
570 (V32QI_FTYPE_SI): Ditto.
571 (V64QI_FTYPE_DI): Ditto.
572 (V8HI_FTYPE_QI): Ditto.
573 (V16HI_FTYPE_HI): Ditto.
574 (V32HI_FTYPE_SI): Ditto.
575 (V4SI_FTYPE_QI): Ditto.
576 (V4SI_FTYPE_HI): Ditto.
577 (V8SI_FTYPE_QI): Ditto.
578 (V8SI_FTYPE_HI): Ditto.
579 (V2DI_FTYPE_QI): Ditto.
580 (V4DI_FTYPE_QI): Ditto.
581 (HI_FTYPE_HI_HI): Ditto.
582 (SI_FTYPE_SI_SI): Ditto.
583 (DI_FTYPE_DI_DI): Ditto.
584 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
585 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
586 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
587 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
588 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
589 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
590 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
591 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
592 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
593 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
594 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
595 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
596 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
597 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
598 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
599 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
600 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
601 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
602 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
603 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
604 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
605 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
606 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
607 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
608 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
609 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
610 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
611 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
612 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
613 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
614 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
615 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
616 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
617 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
618 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
619 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
620 (V16SI_FTYPE_HI): Ditto.
621 (V8DI_FTYPE_QI): Ditto.
622 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
623 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
624 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
625 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
626 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
627 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
628 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
629 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
630 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
631 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
632 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
633 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
634 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
635 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
636 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
637 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
638 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
639 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
640 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
641 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
642 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
643 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
644 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
645 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
646 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
647 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
648 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
649 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
650 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
651 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
652 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
653 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
654 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
655 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
656 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
657 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
658 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
659 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
660 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
661 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
662 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
663 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
664 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
665 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
666 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
667 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
668 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
669 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
670 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
671 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
672 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
673 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
674 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
675 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
676 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
677 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
678 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
679 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
680 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
681 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
682 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
683 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
684 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
685 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
686 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
687 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
688 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
689 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
690 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
691 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
692 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
693 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
694 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
695 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
696 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
697 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
698 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
699 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
700 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
701 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
702 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
703 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
704 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
705 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
706 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
707 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
708 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
709 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
710 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
711 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
712 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
713 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
714 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
715 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
716 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
717 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
718 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
719 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
720 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
721 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
722 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
723 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
724 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
725 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
726 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
727 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
728 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
729 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
730 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
731 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
732 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
733 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
734 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
735 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
736 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
737 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
738 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
739 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
740 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
741 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
742 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
743 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
744 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
745 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
746 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
747 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
748 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
749 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
750 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
751 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
752 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
753 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
754 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
755 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
756 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
757 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
758 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
759 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
760 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
761 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
762 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
763 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
764 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
765 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
766 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
767 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
768 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
769 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
770 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
771 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
772 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
773 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
774 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
775 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
776 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
777 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
778 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
779 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
780 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
781 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
782 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
783 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
784 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
785 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
786 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
787 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
788 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
789 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
790 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
791 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
792 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
793 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
794 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
795 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
796 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
797 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
798 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
799 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
800 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
801 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
802 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
803 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
804 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
805 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
806 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
807 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
808 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
809 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
810 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
811 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
812 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
813 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
814 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
815 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
816 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
817 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
818 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
819 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
820 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
821 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
822 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
823 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
824 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
825 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
826 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
827 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
828 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
829 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
830 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
831 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
832 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
833 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
834 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
835 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
836 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
837 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
838 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
839 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
840 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
841 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
842 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
843 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
844 (QI_FTYPE_V8DF_INT_QI): Ditto.
845 (QI_FTYPE_V4DF_INT_QI): Ditto.
846 (QI_FTYPE_V2DF_INT_QI): Ditto.
847 (HI_FTYPE_V16SF_INT_HI): Ditto.
848 (QI_FTYPE_V8SF_INT_QI): Ditto.
849 (QI_FTYPE_V4SF_INT_QI): Ditto.
850 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
852 2015-07-31 Richard Biener <rguenther@suse.de>
854 * gimple-fold.c (fold_gimple_assign): Remove folding of
857 2015-07-31 Tom de Vries <tom@codesourcery.com>
859 PR tree-optimization/66846
860 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
861 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
862 (expand_omp_target) [ENABLE_CHECKING]: Same.
863 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
864 cfun if !LOOPS_NEED_FIXUP.
865 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
866 that omp_for already has its own loop struct.
867 * tree-parloops.c (create_phi_for_local_result)
868 (create_call_for_reduction): Handle simple latch bb.
869 (create_parallel_loop): Add simple latch bb to preserve
870 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
871 (gen_parallel_loop): Remove call to cancel_loop_tree.
872 (parallelize_loops): Skip loops that are inner loops of parallelized
874 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
875 verify_loop_structure.
877 2015-07-30 Anatoly Sokolov <aesok@post.ru>
879 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
880 * config/v850/v850.md (RV_REGNUM): New constants.
881 * config/v850/v850.c (v850_libcall_value): New functions.
882 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
883 (TARGET_LIBCALL_VALUE): Define.
885 2015-07-30 Anatoly Sokolov <aesok@post.ru>
887 * rtl.h (lowpart_subreg): Move in file.
888 * loop-iv.c (lowpart_subreg): Move to...
889 * simplify-rtx.c (lowpart_subreg): ...here.
890 (simplify_binary_operation_1): Use lowpart_subreg instead of
892 * expr.c (expand_expr_real_2): Ditto.
893 * emit-rtl.c (gen_lowpart_common): Ditto.
894 * combine.c (gen_lowpart_for_combine): Ditto.
895 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
896 expand_debug_source_expr): Ditto.
898 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
900 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
901 (expand_builtin_atomic_clear): Remove support for atomic_clear
904 2015-07-30 Richard Biener <rguenther@suse.de>
906 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
907 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
908 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
909 redundant operand canonicalization.
911 2015-07-30 David Sherwood <david.sherwood@arm.com>
913 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
914 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
915 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
916 * config/arm/arm.c (neon_valid_immediate): Likewise.
917 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
918 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
919 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
920 (expand_vec_perm_vpshufb2_vpermq): Likewise.
921 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
922 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
924 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
925 (*ssse3_palignr<mode>_perm): Likewise.
926 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
927 * config/spu/spu.c (arith_immediate_p): Likewise.
928 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
929 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
931 2015-07-30 Richard Biener <rguenther@suse.de>
933 * genmatch.c (decision_tree::gen_gimple): Merge with ...
934 (decision_tree::gen_generic): ... this into ...
935 (decision_tree::gen): ... this.
936 (main): Adjust callers.
938 2015-07-30 Richard Biener <rguenther@suse.de>
940 * genmatch.c (verbose): New global.
941 (warning_at): Add overload with source_location.
942 (capture_info::capture_info): Add bool whether generating gimple
943 or generic. Add gimple member.
944 (capture_info::cinfo): Add capture member.
945 (capture_info::walk_match): Record capture. Warn on
947 (capture_info::walk_c_expr): Add more fragments captures cannot
948 escape through. Warn on escaped captures.
949 (dt_simplify::gen_1): Warn on operands we force to have no
951 (main): Initialize verbose.
952 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
954 2015-07-30 Richard Biener <rguenther@suse.de>
957 * match.pd: Allow both operands to independently have conversion
958 when simplifying compares of addresses.
960 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
964 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
965 around those cases that need one.
967 2015-07-29 Aditya Kumar <hiraditya@msn.com>
969 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
971 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
973 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
974 New. Copied from config/i386/gnu-user.h.
975 (ASM_COMMENT_START): Likewise.
976 (DBX_REGISTER_NUMBER): Likewise.
978 2015-07-29 Richard Biener <rguenther@suse.de>
980 * gimple-fold.c (fold_gimple_cond): Remove.
981 (fold_stmt_1): Do not call it.
983 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
985 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
986 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
988 * config/aarch64/aarch64-modes.def: Add HFmode.
990 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
991 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
993 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
994 aarch64_promoted_type): New.
996 (aarch64_float_const_representable_p): Disable HFmode.
997 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
998 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
999 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
1001 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
1002 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
1004 * config/aarch64/iterators.md (GPF_F16): New.
1006 2015-07-29 Richard Biener <rguenther@suse.de>
1008 * match.pd: Merge address comparison patterns and make them
1009 handle some more cases.
1011 2015-07-29 Richard Biener <rguenther@suse.de>
1013 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
1014 (parser::parse_capture): Add bool argument on whether to reject
1016 (parser::parse_expr): Adjust.
1017 (parser::parse_op): Likewise.
1018 (parser::parse_pattern): Likewise.
1020 2015-07-29 Richard Biener <rguenther@suse.de>
1022 * gimple-fold.c (has_use_on_stmt): New function.
1023 (replace_stmt_with_simplification): Use it to allow
1024 abnormals originally referenced in the stmt.
1025 (fold_stmt_1): Canonicalize operand order.
1027 2015-07-28 David Sherwood <david.sherwood@arm.com>
1029 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
1030 GET_MODE_INNER unconditionally.
1031 * config/spu/spu.c (arith_immediate_p): Likewise.
1032 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
1033 * expmed.c (synth_mult): Remove check for VOIDmode result from
1035 (expand_mult_const): Likewise.
1036 * fold-const.c (fold_binary_loc): Replace call to element_precision
1037 with call to GET_MODE_PRECISION.
1038 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
1040 (emit_mode_inner): Likewise.
1041 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
1043 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
1044 (GET_MODE_UNIT_PRECISION): Likewise.
1045 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
1046 * simplify-rtx.c (simplify_immed_subreg): Likewise.
1047 * stor-layout.c (bitwise_type_for_mode): Update assert.
1048 (element_precision): Remove.
1050 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1052 * target-insns.def (reload_load_address): New targetm instruction
1054 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
1056 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1058 * target-insns.def (atomic_test_and_set): New targetm instruction
1060 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
1061 HAVE_*/gen_* interface.
1063 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1065 * target-insns.def (can_extend, ptr_extend): New targetm instruction
1067 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
1068 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1069 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1070 * rtlanal.c (nonzero_bits1): Likewise.
1071 (num_sign_bit_copies1): Likewise.
1073 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1075 * target-insns.def (eh_return): New targetm instruction pattern.
1076 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
1078 * function.c (thread_prologue_and_epilogue_insns): Remove
1079 preprocessor condition.
1081 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1083 * target-insns.def (indirect_jump): New targetm instruction pattern.
1084 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
1087 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1089 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
1090 instead of nonimmediate_operand. Remove C condiition.
1092 2015-07-28 Richard Biener <rguenther@suse.de>
1094 * match.pd: Add more simplification of address comparisons.
1096 2015-07-28 Richard Biener <rguenther@suse.de>
1098 * match.pd: Re-order two cases in comparison with max/min
1099 value simplification to make it apply for bools.
1101 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1103 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
1104 Handle simple SIGN_EXTEND or ZERO_EXTEND.
1105 (aarch64_rtx_costs): Properly strip extend or extract before
1106 passing down to rtx costs again.
1108 2015-07-28 Nick Clifton <nickc@redhat.com>
1110 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
1111 Optimizes the case where -mes0 is active and a constant symbolic
1113 * config/rl78/rl78-protos.h: Prototype the new function.
1114 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
1116 2015-07-28 Tom de Vries <tom@codesourcery.com>
1118 * tree-parloops.c (reduc_stmt_res): New function.
1119 (initialize_reductions, add_field_for_reduction)
1120 (create_phi_for_local_result, create_loads_for_reductions)
1121 (create_stores_for_reduction, build_new_reduction): Handle case that
1122 reduc_stmt is a phi.
1123 (gather_scalar_reductions): Allow double_reduc reductions.
1125 2015-07-28 Richard Biener <rguenther@suse.de>
1127 * fold-const.c (fold_comparison): Remove equality folding
1128 of decl addresses ...
1129 * match.pd: ... here and merge with existing pattern.
1131 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
1133 PR tree-optimization/66828
1134 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
1135 from int64_t to uint64_t.
1137 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
1139 * opts-common.c (read_cmdline_option): List DriverOnly enum values
1140 as valid only in the error message of the driver, not in the
1141 messages of the language compilers.
1143 2015-07-27 Tom de Vries <tom@codesourcery.com>
1145 * tree-parloops.c (gather_scalar_reductions): Simplify function
1148 2015-07-27 Marek Polacek <polacek@redhat.com>
1150 * ipa-devirt.c (types_same_for_odr): Fix typo.
1152 2015-07-27 Jason Merrill <jason@redhat.com>
1155 * dwarf2out.c (gen_inlined_subroutine_die): Check
1156 cgraph_function_possibly_inlined_p.
1158 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
1160 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
1161 Place integer variant first.
1162 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
1164 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
1167 * config/arm/arm-builtins.c (enum arm_builtins):
1168 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
1169 (ARM_BUILTIN_NEON_BASE): Rename macro to....
1170 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
1171 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
1172 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
1174 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
1177 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
1178 Add qualifier_lane_index.
1179 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
1180 (arm_getlane_qualifiers): Use qualifier_lane_index.
1181 (arm_lanemac_qualifiers): Rename to...
1182 (arm_mac_n_qualifiers): ...this.
1183 (LANEMAC_QUALIFIERS): Rename to...
1184 (MAC_N_QUALIFIERS): ...this.
1185 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
1186 (arm_setlane_qualifiers): Use qualifier_lane_index.
1187 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
1188 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
1189 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
1190 (arm_expand_neon_builtin): Handle qualifier_lane_index.
1192 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
1193 * config/arm/arm.c (bounds_check): Likewise, improve error message.
1194 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
1195 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
1196 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
1197 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
1198 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
1199 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
1200 qualifiers to TERNOP_IMM.
1201 (vdup_lane): Change qualifiers to GETLANE.
1202 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
1203 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
1204 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
1205 vqdmlsl_n): Change qualifiers to MAC_N.
1207 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
1208 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
1209 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
1210 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
1211 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
1212 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
1213 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
1214 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
1215 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
1216 Remove call to neon_lane_bounds.
1218 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
1220 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
1221 Place integer variant first.
1223 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
1225 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
1226 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
1227 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
1228 for armv6kz targets.
1229 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
1230 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
1231 (FL_FOR_ARCH6ZK): Remove.
1232 (FL_FOR_ARCH6KZ): New.
1233 (arm_arch6zk): New declaration.
1234 * config/arm/arm-tables.opt: Regenerate.
1235 * config/arm/arm.c (arm_arch6kz): New.
1236 (arm_option_override): Set arm_arch6kz.
1237 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
1238 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
1239 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
1241 2015-07-27 Marek Polacek <polacek@redhat.com>
1245 * doc/invoke.texi: Document -Wtautological-compare.
1247 2015-07-27 Richard Biener <rguenther@suse.de>
1249 * genmatch.c (decision_tree::gen_gimple): Split out large
1250 subtrees into separate functions.
1251 (decision_tree::gen_generic): Likewise.
1253 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
1255 * config/alpha/alpha.c: Use SUBREG_P predicate.
1256 * config/alpha/predicates.md: Ditto.
1258 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
1260 * config.host (s390*-*-*): Include driver-native.c only when
1261 building with s390* as host *and* target.
1263 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
1266 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
1267 T bit register modified_between_p check.
1269 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
1271 * config/i386/i386.c: Use SUBREG_P predicate.
1272 * config/i386/i386.md: Ditto.
1273 * config/i386/sse.md: Ditto.
1274 * config/i386/predicates.md: Ditto.
1276 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
1279 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
1280 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
1282 2015-07-25 Sebastian Pop <s.pop@samsung.com>
1284 * Makefile.in: Remove use of TREEBROWSER.
1285 * config.in: Regenerated.
1286 * configure: Regenerated.
1287 * configure.ac: Remove definition of TREEBROWSER.
1288 * tree-browser.c: Removed.
1289 * tree-browser.def: Removed.
1291 2015-07-25 Sebastian Pop <s.pop@samsung.com>
1293 * graphite-scop-detection.c: Include gimple-pretty-print.h.
1294 (stmt_simple_for_scop_p): Print when a stmt is not handled in
1296 (scopdet_basic_block_info): Print when a loop or bb cannot be
1297 represented in Graphite.
1299 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
1302 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
1303 execution guard when min_size is less than size_needed.
1305 2015-07-25 Sebastian Pop <s.pop@samsung.com>
1307 * doc/install.texi: Document supported versions of ISL.
1309 2015-07-25 Jeff Law <law@redhat.com>
1313 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1314 unable to find X NE 0 in the tables, return X as the simplified
1316 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1317 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
1319 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1320 after removing the control flow statement and unnecessary edges.
1322 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
1325 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
1327 PR rtl-optimization/64164
1328 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1329 * tree-ssa-copyrename.c: Removed.
1330 * opts.c (default_options_table): Drop -ftree-copyrename. Add
1331 -ftree-coalesce-vars.
1332 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1333 * common.opt (ftree-copyrename): Ignore.
1334 (ftree-coalesce-inlined-vars): Likewise.
1335 * doc/invoke.texi: Remove the ignored options above.
1336 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1337 * tree-ssa-coalesce.h: ... here.
1338 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1339 headers required by it.
1340 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1341 across variables when flag_tree_coalesce_vars. Check register
1342 use and promoted modes to allow coalescing. Moved to
1343 tree-ssa-coalesce.c.
1344 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1345 with its member functions to tree-ssa-coalesce.c.
1346 (var_map_base_init): Likewise. Renamed to
1347 compute_samebase_partition_bases.
1348 (partition_view_normal): Drop want_bases parameter.
1349 (partition_view_bitmap): Likewise.
1350 * tree-ssa-live.h: Adjust declarations.
1351 * tree-ssa-coalesce.c: Include explow.h.
1352 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1353 default defs at the entry point.
1354 (dump_part_var_map): New.
1355 (compute_optimized_partition_bases): New, called by...
1356 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1357 of compute_samebase_partition_bases. Adjust.
1358 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1359 * cfgexpand.c (leader_merge): New.
1360 (get_rtl_for_parm_ssa_default_def): New.
1361 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1362 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1363 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
1364 redundant MEM attr setting.
1365 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
1367 (expand_one_stack_var): ... this. New wrapper to check and
1368 skip already expanded SSA partitions.
1369 (record_alignment_for_reg_var): New, factored out of...
1370 (expand_one_var): ... this.
1371 (expand_one_ssa_partition): New.
1372 (adjust_one_expanded_partition_var): New.
1373 (expand_one_register_var): Check and skip already expanded SSA
1375 (expand_used_vars): Don't create DECLs for anonymous SSA
1376 names. Expand all SSA partitions, then adjust all SSA names.
1377 (pass::execute): Replace the loops that set
1378 SA.partition_to_pseudo from partition leaders and cleared
1379 DECL_RTL for multi-location variables, and that which used to
1380 rename vars and set attrs, with one that clears DECL_RTL and
1381 checks that PARMs and RESULTs default_defs match DECL_RTL.
1382 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1383 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1384 * explow.c (promote_ssa_mode): New.
1385 * explow.h (promote_ssa_mode): Declare.
1386 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1387 * function.c: Include cfgexpand.h.
1388 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1389 (use_register_for_parm_decl): Wrapper for the above to
1390 special-case the result_ptr.
1391 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1392 (split_complex_args): Take assign_parm_data_all argument.
1393 Pass it to rtl_for_parm. Set up rtl and context for split
1395 (assign_parms_augmented_arg_list): Adjust.
1396 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1397 multiple locations. Recognize split complex args.
1398 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1399 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
1400 (assign_parm_setup_block): Prefer SSA-assigned location.
1401 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
1402 if stack_parm is NULL.
1403 (assign_parm_setup_stack): Prefer SSA-assigned location.
1404 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
1405 rtl before testing for pointer bounds. Special-case result_ptr.
1406 (expand_function_start): Maybe reset DECL_RTL of result.
1407 Prefer SSA-assigned location for result and static chain.
1408 Factor out DECL_RESULT and SET_DECL_RTL.
1409 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1410 anonymous SSA names. Use promote_ssa_mode.
1411 (get_temp_reg): Likewise.
1412 (remove_ssa_form): Adjust.
1413 * stor-layout.c (layout_decl): Don't set mem attributes of
1415 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1416 and get its reg_usage for reg invalidation.
1417 (compute_bb_dataflow): Pass it insn.
1418 (emit_notes_in_bb): Likewise.
1420 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
1422 * config/i386/i386.c (ix86_va_start): Remove
1423 unneeded !TARGET_64BIT check.
1424 (ix86_gimplify_va_arg): Ditto.
1426 2015-07-24 Tom de Vries <tom@codesourcery.com>
1428 * graphite-sese-to-poly.c (build_poly_scop): Always call
1429 rewrite_commutative_reductions_out_of_ssa.
1431 2015-07-24 Tom de Vries <tom@codesourcery.com>
1433 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
1434 flag_associative_math to FLOAT_TYPE_P. Honour
1435 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
1437 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
1440 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
1441 and "%qD" in warning_at instead of "%q+D" in warning.
1443 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
1445 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
1446 (ix86_function_abi): Cleanup.
1448 2015-07-24 Michael Darling <darlingm@gmail.com>
1451 * acinclude.m4: Reflects renaming of configure.in to configure.ac
1452 * configure: Likewise
1453 * configure.ac: Likewise
1454 * doc/install.texi: Likewise
1455 * doc/tm.texi: Likewise
1456 * doc/tm.texi.in: Likewise
1458 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1460 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
1461 manually swapping values.
1462 * cse.c (fold_rtx): Likewise.
1463 * lra-eliminations.c (form_sum): Likewise.
1465 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
1468 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
1469 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
1470 (*jcc_1, *jcc_2, jump, simple_return_internal)
1471 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
1472 Set length_nobnd attribute instead of length attribute.
1473 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
1474 (length_nobnd): Remove attribute.
1475 (length): Remove length_nobnd processing.
1477 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
1479 * gimplify.c (omp_default_clause): New function. Reorganize flow
1480 for clarity. Broken out of ...
1481 (omp_notice_variable): ... here.
1483 2015-07-24 Gary Funck <gary@intrepid.com>
1486 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
1487 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
1489 2015-07-24 Tom de Vries <tom@codesourcery.com>
1491 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
1492 exit-first loop transform.
1494 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
1497 * tree-cfg.c (struct replace_decls_d): New struct.
1498 (replace_block_vars_by_duplicates_1): New function.
1499 (replace_block_vars_by_duplicates): Use it to replace the decls
1500 in the value exprs by duplicates.
1502 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1504 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
1505 -shared, -symbolic, -rdynamic.
1507 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1510 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
1511 -dynamic-linker within %{!static %{!shared, and -rdynamic within
1514 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
1517 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
1518 edge summary is available.
1520 2015-07-24 Richard Biener <rguenther@suse.de>
1522 * genmatch.c (struct dt_node): Add statistic fields.
1523 (dt_node::analyze): New method.
1524 (decision_tree::gen_gimple): Call analyze on the root node
1525 and print statistics to stderr.
1526 (decision_tree::gen_generic): Likewise.
1528 2015-07-24 Richard Biener <rguenther@suse.de>
1530 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
1531 against the highest or lowest possible integer ...
1532 * match.pd: ... as patterns here.
1534 2015-07-24 Richard Biener <rguenther@suse.de>
1536 * genmatch.c (struct capture_info): Add same_as field.
1537 (capture_info::capture_info): Initialize same_as.
1538 (capture_info::walk_match): Compute same_as.
1539 (capture_info::walk_result): Compute stuff for the leader.
1540 (capture_info::walk_c_expr): Likewise.
1541 (dt_simplify::gen_1): Only look at leaders when deciding
1542 to force no side-effects or emit side-effects of omitted operands.
1544 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1546 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
1547 reg note to the GPR -> FPR save instructions.
1549 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1551 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
1553 (s390_expand_insv): Don't generate risbg pattern for constant zero
1555 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
1556 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
1559 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
1561 * config/s390/s390.c (s390_reorg): Clean up handling of processors
1564 (s390_issue_rate): Likewise.
1565 (s390_sched_reorder): Likewise.
1566 (s390_sched_variable_issue): Likewise.
1567 (s390_loop_unroll_adjust): Likewise.
1568 (s390_option_override): Likewise.
1570 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
1572 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
1573 processor capabilities with -march=native.
1574 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
1575 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
1576 (S390_TARGET_BITS_STRING): Macro to simplify specs.
1578 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
1580 * config/s390/s390.c (s390_issue_rate): Handle
1581 PROCESSOR_2094_Z9_EC.
1582 (s390_option_override): Likewise.
1583 (s390_adjust_priority): Likewise.
1585 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
1587 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
1588 when cross compiling.
1590 2015-07-24 Richard Biener <rguenther@suse.de>
1592 * fold-const.c (maybe_canonicalize_comparison_1): Move
1593 A code CST canonicalization ...
1594 * match.pd: ... to a pattern here.
1596 2015-07-24 Jiong Wang <jiong.wang@arm.com>
1599 2015-07-22 Jiong Wang <jiong.wang@arm.com>
1601 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
1602 (HONOR_REG_ALLOC_ORDER): Define.
1604 2015-07-24 Richard Biener <rguenther@suse.de>
1606 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
1607 * fold-const.c (fold_comparison): Move parameter does not
1608 alias &local simplification ...
1609 * match.pd: ... as a pattern here.
1611 2015-07-24 Richard Biener <rguenther@suse.de>
1613 * gimple-fold.c (replace_stmt_with_simplification): Special-case
1614 valueizing call operands.
1615 * gimple-match-head.c (maybe_push_res_to_seq): Take
1616 number of call arguments from ops array.
1617 (do_valueize): New function.
1618 (gimple_simplify): Return true if valueization changed
1619 any operand even if the result didn't simplify further.
1621 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1624 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
1626 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
1629 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
1631 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1633 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
1636 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1638 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
1641 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
1643 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
1644 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
1646 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
1647 ms_va_list_type_node initialization.
1649 2015-07-23 Jeff Law <law@redhat.com>
1652 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
1653 unable to find X NE 0 in the tables, return X as the simplified
1655 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
1656 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
1658 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
1659 after removing the control flow statement and unnecessary edges.
1661 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
1663 * tree-pass.h (get_current_pass_name): Removed.
1665 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
1667 PR rtl-optimization/64164
1668 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
1669 * tree-ssa-copyrename.c: Removed.
1670 * opts.c (default_options_table): Drop -ftree-copyrename. Add
1671 -ftree-coalesce-vars.
1672 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
1673 * common.opt (ftree-copyrename): Ignore.
1674 (ftree-coalesce-inlined-vars): Likewise.
1675 * doc/invoke.texi: Remove the ignored options above.
1676 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
1677 * tree-ssa-coalesce.h: ... here.
1678 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
1679 headers required by it.
1680 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
1681 across variables when flag_tree_coalesce_vars. Check register
1682 use and promoted modes to allow coalescing. Moved to
1683 tree-ssa-coalesce.c.
1684 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
1685 with its member functions to tree-ssa-coalesce.c.
1686 (var_map_base_init): Likewise. Renamed to
1687 compute_samebase_partition_bases.
1688 (partition_view_normal): Drop want_bases parameter.
1689 (partition_view_bitmap): Likewise.
1690 * tree-ssa-live.h: Adjust declarations.
1691 * tree-ssa-coalesce.c: Include explow.h.
1692 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
1693 default defs at the entry point.
1694 (dump_part_var_map): New.
1695 (compute_optimized_partition_bases): New, called by...
1696 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
1697 of compute_samebase_partition_bases. Adjust.
1698 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
1699 * cfgexpand.c (leader_merge): New.
1700 (get_rtl_for_parm_ssa_default_def): New.
1701 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
1702 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
1703 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
1704 redundant MEM attr setting.
1705 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
1707 (expand_one_stack_var): ... this. New wrapper to check and
1708 skip already expanded SSA partitions.
1709 (record_alignment_for_reg_var): New, factored out of...
1710 (expand_one_var): ... this.
1711 (expand_one_ssa_partition): New.
1712 (adjust_one_expanded_partition_var): New.
1713 (expand_one_register_var): Check and skip already expanded SSA
1715 (expand_used_vars): Don't create DECLs for anonymous SSA
1716 names. Expand all SSA partitions, then adjust all SSA names.
1717 (pass::execute): Replace the loops that set
1718 SA.partition_to_pseudo from partition leaders and cleared
1719 DECL_RTL for multi-location variables, and that which used to
1720 rename vars and set attrs, with one that clears DECL_RTL and
1721 checks that PARMs and RESULTs default_defs match DECL_RTL.
1722 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
1723 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
1724 * explow.c (promote_ssa_mode): New.
1725 * explow.h (promote_ssa_mode): Declare.
1726 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
1727 * function.c: Include cfgexpand.h.
1728 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
1729 (use_register_for_parm_decl): Wrapper for the above to
1730 special-case the result_ptr.
1731 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
1732 (split_complex_args): Take assign_parm_data_all argument.
1733 Pass it to rtl_for_parm. Set up rtl and context for split
1735 (assign_parms_augmented_arg_list): Adjust.
1736 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
1737 multiple locations. Recognize split complex args.
1738 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
1739 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
1740 (assign_parm_setup_block): Prefer SSA-assigned location.
1741 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
1742 if stack_parm is NULL.
1743 (assign_parm_setup_stack): Prefer SSA-assigned location.
1744 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
1745 rtl before testing for pointer bounds. Special-case result_ptr.
1746 (expand_function_start): Maybe reset DECL_RTL of result.
1747 Prefer SSA-assigned location for result and static chain.
1748 Factor out DECL_RESULT and SET_DECL_RTL.
1749 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
1750 anonymous SSA names. Use promote_ssa_mode.
1751 (get_temp_reg): Likewise.
1752 (remove_ssa_form): Adjust.
1753 * stor-layout.c (layout_decl): Don't set mem attributes of
1755 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
1756 and get its reg_usage for reg invalidation.
1757 (compute_bb_dataflow): Pass it insn.
1758 (emit_notes_in_bb): Likewise.
1760 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
1763 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
1765 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
1766 (rs6000_emit_2insn_and): Handle dot forms.
1767 * config/rs6000/rs6000.md (and<mode>3): Adjust.
1768 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
1769 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
1771 2015-07-23 Richard Biener <rguenther@suse.de>
1773 * generic-match-head.c: Include cgraph.h.
1774 * gimple-match-head.c: Likewise.
1775 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
1777 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
1778 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
1781 2015-07-23 Richard Biener <rguenther@suse.de>
1783 * gimple-fold.c (fold_gimple_cond): Do not require folding
1784 results to pass valid_gimple_rhs_p.
1785 * tree-cfg.h (fold_cond_expr_cond): Remove.
1786 * tree-cfg.c (fold_cond_expr_cond): Likewise.
1787 (make_edges): Do not call it.
1788 * tree-inline.c (tree_function_versioning): Likewise.
1790 2015-07-23 Tom de Vries <tom@codesourcery.com>
1792 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
1793 vect_force_simple_reduction.
1794 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
1795 (vect_is_simple_reduction_1): Add and handle
1796 need_wrapping_integral_overflow parameter.
1797 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
1798 need_wrapping_integral_overflow parameter.
1799 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
1800 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
1803 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
1805 PR tree-optimization/66926,66951
1806 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
1807 INNER_LOOP and fix up condition for renaming virtual operands.
1809 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1811 * combine.c (try_combine): Use std::swap instead of manually
1814 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
1816 * config/mips/i6400.md: New file.
1817 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
1818 (mips64r6): Likewise.
1820 * config/mips/mips-tables.opt: Regenerate.
1821 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
1822 (mips_issue_rate): Add support for i6400.
1823 (mips_multipass_dfa_lookahead): Likewise.
1824 * config/mips/mips.h (TUNE_I6400): Define.
1825 * config/mips/mips.md: Include i6400.md.
1826 (processor): Add i6400.
1827 * doc/invoke.texi (-march=@var{arch}): Add i6400.
1829 2015-07-23 Richard Biener <rguenther@suse.de>
1832 * match.pd: Guard widen and sign-change comparison simplification
1835 2015-07-23 Richard Biener <rguenther@suse.de>
1837 PR tree-optimization/66945
1838 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
1839 ::before_dom_children): Force the propagators idea of
1840 non-executable edges to materialize, not what the folder
1843 2015-07-23 Richard Biener <rguenther@suse.de>
1845 * gimple.h (gimple_cond_make_false): Use 0 != 0.
1846 (gimple_cond_make_true): Use 1 != 0.
1848 2015-07-22 DJ Delorie <dj@redhat.com>
1850 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
1853 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
1854 (ashrhi3): Likewise.
1855 (lshrhi3): Likewise.
1856 (movhi): Take advantage of zero-extend to load small constants.
1858 (and<mode>3): Likewise.
1859 (zero_extendqihi2): Likewise.
1860 (zero_extendqisi2): New.
1861 * config/msp430/constraints.md (N,O): New.
1862 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
1864 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
1867 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
1868 to enum feature_priority and feature_list.
1869 (fold_builtin_cpu): Add F_AES to enum processor_features
1870 and isa_names_table.
1872 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
1875 * config/i386/linux-common.h (MPX_SPEC): Use linker option
1876 for 64bit target only.
1878 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
1880 * config/nvptx/nvptx.c: Expand some comments.
1882 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
1884 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
1885 (cortex_a53_advsimd): ...This.
1887 2015-07-22 Richard Biener <rguenther@suse.de>
1889 * genmatch.c (expr::gen_transform): Clarify error message
1890 and display location.
1892 2015-07-22 Richard Biener <rguenther@suse.de>
1894 * genmatch.c (struct operand): Add location member.
1895 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
1897 (struct simplify): Remove match_location and result_location
1899 (elsehwere): Adjust.
1901 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
1903 * config/mips/m5100.md: New file.
1904 * config/mips/mips-cpus.def (m5100, m5101): Define.
1905 * config/mips/mips-tables.opt: Regenerate.
1906 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
1907 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
1908 -march=m5101 to -mips32r5.
1909 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
1910 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
1912 * config/mips/mips.md: Include m5100.md.
1913 (processor): Add m5100.
1914 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
1916 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
1918 * config/mips/mips-cpus.def (interaptiv): Define.
1919 * config/mips/mips-tables.opt: Regenerate.
1920 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
1922 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
1923 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
1925 2015-07-22 Jiong Wang <jiong.wang@arm.com>
1928 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
1929 (HONOR_REG_ALLOC_ORDER): Define.
1931 2015-07-22 Richard Biener <rguenther@suse.de>
1933 PR tree-optimization/66952
1934 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
1935 blocks we end up executing unconditionally reset all SSA
1936 info such as range and alignment.
1937 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
1938 * tree-ssanames.c (reset_flow_sensitive_info): New function.
1940 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
1942 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
1945 2015-07-22 Richard Biener <rguenther@suse.de>
1947 * genmatch.c (parser::parse_result): Properly handle
1948 match with result operands and conditions.
1950 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
1953 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1954 Add qualifier_struct_load_store_lane_index.
1955 (aarch64_types_loadstruct_lane_qualifiers): Use
1956 qualifier_struct_load_store_lane_index for lane index argument for
1958 (aarch64_types_storestruct_lane_qualifiers): Ditto.
1959 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1960 (aarch64_simd_expand_args): Add new argument describing mode of
1961 builtin. Check lane bounds for arguments with
1962 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1963 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
1964 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
1965 (aarch64_simd_expand_builtin): Handle arguments with
1966 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
1967 aarch64_simd_expand_args.
1968 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
1969 vst[234]_lane with BUILTIN_VALLDIF.
1970 * config/aarch64/aarch64-simd.md:
1971 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
1972 endianness reversal on lane index.
1973 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
1974 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
1975 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
1976 (vec_store_lanesci_lane<mode>): Ditto.
1977 (vec_store_lanesxi_lane<mode>): Ditto.
1978 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
1979 reversal of lane index.
1980 (aarch64_ld3_lane<mode>): Ditto.
1981 (aarch64_ld4_lane<mode>): Ditto.
1982 (aarch64_st2_lane<mode>): Ditto.
1983 (aarch64_st3_lane<mode>): Ditto.
1984 (aarch64_st4_lane<mode>): Ditto.
1985 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
1986 to qmode. Add new mode parameter. Update uses.
1987 (__LD3_LANE_FUNC): Ditto.
1988 (__LD4_LANE_FUNC): Ditto.
1989 (__ST2_LANE_FUNC): Ditto.
1990 (__ST3_LANE_FUNC): Ditto.
1991 (__ST4_LANE_FUNC): Ditto.
1993 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
1995 * doc/invoke.texi (Language Independent Options): Rename node to
1996 Diagnostic Message Formatting Options.
1998 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
2001 * lra-remat.c (operand_to_remat): Prevent using insns with input
2002 subregs processed separately by IRA.
2004 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
2006 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
2008 (single_imm_use): Check for iterator node.
2009 (num_imm_uses): Likewise.
2010 * tree-ssa-operands.c (has_zero_uses_1): Delete.
2011 (single_imm_use_1): Check for iterator node.
2013 2015-07-21 Mike Frysinger <vapier@gentoo.org>
2014 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2016 * configure.ac: Add check for new options in isl-0.15.
2017 * config.in, configure: Rebuilt.
2018 * graphite-blocking.c: Include <isl/constraint.h>
2019 * graphite-interchange.c, graphite-poly.c: Likewise.
2020 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
2021 * graphite.c: Likewise.
2022 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
2024 * graphite-dependences.c: Include <isl/constraint.h>.
2025 (max_number_of_out_dimensions): Returns isl_stat.
2026 (extend_schedule_1): Likewise
2027 (extend_schedule): Corresponding changes.
2028 * graphite-optimize-isl.c: Include <isl/constraint.h> and
2030 (getSingleMap): Change return type of isl_stat.
2031 (optimize_isl): Conditionally use
2032 isl_options_set_schedule_serialize_sccs.
2033 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
2034 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2036 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
2039 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
2040 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
2042 2015-07-21 Richard Biener <rguenther@suse.de>
2044 PR tree-optimization/66948
2045 * genmatch.c (capture_info::walk_match): Also recurse to
2046 captures. Properly compute expr state from captures of
2048 * match.pd: Add single-use guards to
2049 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
2051 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
2053 * config/nvptx/mkoffload.c (process): Add static destructor call.
2055 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2058 * match.pd (A - B -> A + (-B)): Don't allow folding
2059 when type if a fixed-point type.
2061 2015-07-20 DJ Delorie <dj@redhat.com>
2063 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
2064 (iorqi3_real): Likewise for set1.
2066 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
2068 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
2071 2015-07-20 Aditya Kumar <hiraditya@msn.com>
2073 * graphite-isl-ast-to-gimple.c:
2074 Refactor so that each function can access 'region'. This will help
2075 maintain a parameter rename_map within a region.
2077 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2079 * config/rs6000/rs6000.md (*lt0_disi): New.
2081 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2084 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
2085 "available letters" comment.
2086 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
2087 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
2088 and_2rld_operand): Delete.
2089 (and_operand): Adjust.
2090 (rotate_mask_operator): New.
2091 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
2092 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
2093 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
2094 extract_ME): Delete.
2095 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2096 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
2097 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
2098 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2099 rs6000_emit_2insn_and): New.
2100 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
2101 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
2102 includes_rldic_lshift_p, includes_rldicr_lshift_p,
2103 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
2104 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
2105 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
2106 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
2107 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
2108 rs6000_emit_2insn_and): New.
2109 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
2110 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
2112 <NOT>: Don't fall through to next case.
2113 <AND>: Handle the various rotate-and-mask cases directly.
2114 <IOR>: Always cost as one insn.
2115 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
2116 (and<mode>3): Adjust expander for the new patterns.
2117 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
2118 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
2119 (*and<mode>3_imm_dot_shifted): New.
2120 (*and<mode>3_mask): Delete, rewrite as ...
2121 (and<mode>3_mask): ... New.
2122 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
2123 (andsi3_internal0_nomc): Delete.
2124 (*andsi3_internal6): Delete.
2125 (*and<mode>3_2insn): New.
2126 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
2127 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
2128 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
2129 *insvdi_internal3): Delete.
2130 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
2131 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
2132 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
2133 *ior<mode>_mask): New.
2134 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
2135 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
2136 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
2137 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
2139 (ashr<mode>3): Delete expander.
2140 (*ashr<mode>3): Rename to ...
2141 (ashr<mode>3): ... This.
2142 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
2143 (*rotldi3_internal4, *rotldi3_internal5 and split,
2144 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
2145 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
2146 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
2147 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
2148 (splitter for loading a mask): Adjust.
2149 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
2151 2015-07-20 Marek Polacek <polacek@redhat.com>
2153 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
2154 output_add_clobbers, output_added_clobbers_hard_reg_p,
2155 gen_rtx_scratch): Remove declarations.
2157 2015-07-20 Marek Polacek <polacek@redhat.com>
2160 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
2162 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2164 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
2165 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
2167 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2169 * combine.c (combine_simplify_rtx): Move simplification step
2170 before various transformations/substitutions.
2172 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
2174 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
2175 (struct int_traits): Likewise.
2177 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2179 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
2180 function to vmsdbgout_function_decl.
2182 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
2185 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
2186 from misaligned positions.
2187 (ix86_expand_pinsr): Reject insertions to misaligned positions.
2189 2015-07-18 Sebastian Pop <s.pop@samsung.com>
2193 * Makefile.in: Removed omega.o.
2194 * common.opt: Document flag fcheck-data-deps as deprecated.
2195 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
2196 its associated params: omega-max-vars, omega-max-geqs,
2197 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
2198 omega-max-keys, omega-eliminate-redundant-constraints.
2199 * doc/loop.texi: Remove all the section on Omega.
2200 * graphite-blocking.c: Include missing params.h: it used to be
2201 included through tree-data-ref.h and omega.h.
2202 * graphite-isl-ast-to-gimple.c: Same.
2203 * graphite-optimize-isl.c: Same.
2204 * graphite-sese-to-poly.c: Same.
2208 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2209 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2210 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
2211 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
2212 * passes.def: Remove pass_check_data_deps.
2213 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
2214 (dump_conflict_function): Same.
2215 (dump_subscript): Same.
2216 (print_direction_vector): Same.
2217 (print_dir_vectors): Same.
2218 (print_lambda_vector): Same.
2219 (print_dist_vectors): Same.
2220 (dump_data_dependence_relation): Same.
2221 (dump_data_dependence_relations): Same.
2222 (dump_dist_dir_vectors): Same.
2224 (init_omega_eq_with_af): Removed.
2225 (omega_extract_distance_vectors): Removed.
2226 (omega_setup_subscript): Removed.
2227 (init_omega_for_ddr_1): Removed.
2228 (init_omega_for_ddr): Removed.
2229 (ddr_consistent_p): Removed.
2230 (compute_affine_dependence): Do not use omega to check data
2232 (compute_data_dependences_for_bb): Removed.
2233 (analyze_all_data_dependences): Removed.
2234 (tree_check_data_deps): Removed.
2235 * tree-data-ref.h: Do not include omega.h.
2236 (compute_data_dependences_for_bb): Removed.
2237 (tree_check_data_deps): Removed.
2238 * tree-ssa-loop.c (pass_check_data_deps): Removed.
2239 (make_pass_check_data_deps): Removed.
2240 * tree-ssa-phiopt.c: Include params.h.
2241 * tree-vect-data-refs.c: Same.
2242 * tree-vect-slp.c: Same.
2244 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
2246 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
2247 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
2248 (mem->fpreg splitters): Ditto.
2249 (general_operand->nonimmediate_operand splitter): Use explicit modes.
2250 Disable DFmode for TARGET_64BIT.
2252 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
2255 * config/i386/i386.c (ix86_expand_prologue): Replicate static
2258 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
2260 * config/nvptx/mkoffload.c (process): Constify host data.
2261 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
2263 (generate_host_descr_file): Likewise.
2265 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
2266 Sebastian Pop <s.pop@samsung.com>
2269 * graphite-dependences.c (add_pdr_constraints): Renamed
2270 pdr->extent to pdr->subscript_sizes.
2271 * graphite-interchange.c (build_linearized_memory_access): Add
2272 back all gcc_assert's that the "isl_int to isl_val conversion"
2273 patch has removed. Refactored.
2274 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
2275 * graphite-poly.c (new_poly_dr): Same.
2276 (free_poly_dr): Same.
2277 * graphite-poly.h (struct poly_dr): Same.
2278 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
2279 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
2280 * graphite-scop-detection.h: Fix space.
2281 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
2282 back all gcc_assert's removed by a previous patch.
2283 (wrap): Remove the_isl_ctx global variable that the same patch has
2285 (build_loop_iteration_domains): Same.
2286 (add_param_constraints): Same.
2287 (pdr_add_data_dimensions): Same. Refactored.
2288 (build_poly_dr): Renamed extent to subscript_sizes.
2290 2015-07-17 Marek Polacek <polacek@redhat.com>
2292 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
2293 * match.pd: ... here.
2295 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
2297 * config/nvptx/mkoffload.c (process): Constify target data.
2298 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
2299 Constify target data.
2300 (generate_target_offloadend_file): Likewise.
2302 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
2304 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
2305 to allow renaming of PHI arguments on edges incoming from outer
2306 loop header, add corresponding check before start PHI iterator.
2307 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
2308 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
2309 with true force_vectorize. Set-up dominator for outer loop too.
2310 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
2311 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
2312 was marked with force_vectorize and has restricted cfg.
2313 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
2315 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2316 do peeling for outer loops.
2318 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
2319 Matthias Klose <doko@ubuntu.com>
2321 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
2322 build-sysroot, sysroot from the `Miscenalleous configure options' to
2323 the `Directories' section and strip trailing `/' from with_sysroot.
2324 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
2325 * configure: Regenerated.
2327 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
2330 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
2331 (TARGET_HARD_DF_REGS): Ditto.
2332 (TARGET_HARD_XF_REGS): Ditto.
2333 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
2334 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
2335 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
2336 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
2337 (*movsf_internal): Add alternatives 16 and 17. Enable
2338 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
2340 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
2342 PR rtl-optimization/66891
2343 * calls.c (expand_call): Wrap precompute_register_parameters with
2344 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
2346 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
2348 * config/nvptx/mkoffload.c (process): Constify mapping variables.
2349 Define target data struct and initialize it.
2351 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
2353 PR rtl-optimization/66626
2354 * ira.h (emit-rtl.h): Include.
2355 (non_spilled_static_chain_regno_p): New.
2356 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
2357 unless it is non spilled static chain pseudo.
2358 (assign_hard_rego): Spill memory profitable allocno unless it is
2359 non spilled static chain pseudo.
2360 (allocno_spill_priority_compare): Put non spilled static chain
2361 pseudo at the end of sorted array.
2362 (improve_allocation): Do nothing if we have static chain and
2364 (allocno__priority_compare_func): Put non spilled static chain
2365 pseudo at the beginning of sorted array.
2366 (move_spill_restore): Ignore non spilled static chain pseudo.
2367 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
2368 to non spilled static chain pseudo.
2369 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
2370 pseudo at the beginning of sorted array.
2371 (spill_for): Spill non spilled static chain pseudo last.
2372 * lra-constraints.c (lra_constraints): Remove static chain pseudo
2373 check for equivalence.
2375 2015-07-16 Martin Liska <mliska@suse.cz>
2378 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
2379 dst_ctx if it does not exist.
2381 2015-07-16 Martin Liska <mliska@suse.cz>
2383 * hash-set.h (remove): New function.
2384 (iterator): New iteration class for hash_set.
2386 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
2388 * genattrtab.c (make_canonical): Add a file_location parameter.
2389 Use fatal_at rather than fatal.
2390 (get_attr_value): Likewise. Update call to make_canonical.
2391 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
2392 (make_internal_attr): Update calls accordingly.
2394 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
2396 * read-md.h (message_with_line, error_with_line): Delete.
2397 * read-md.c (message_with_line, error_with_line): Delete.
2398 * gensupport.h: Include read-md.h.
2399 (md_rtx_info): New structure.
2400 (read_md_rtx): Use it. Return a bool success value.
2401 * gensupport.c (read_md_rtx): Likewise.
2402 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
2403 (main): Update after interface changes.
2404 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
2405 (main): Update after interface changes.
2406 * genattrtab.c (insn_code_number): Delete.
2407 (optimize_attrs): Add a max_insn_code parameter and use it instead
2408 of insn_code_number.
2409 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
2410 Use *_at rather than *_with_line functions.
2411 (gen_insn): Likewise.
2412 (gen_delay): Likewise.
2413 (gen_insn_reserv): Likewise.
2414 (gen_bypass): Take an md_rtx_info rather than an rtx.
2415 (main): Update after interface changes. Use a local max_insn_code
2416 variable instead of insn_code_number.
2417 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
2418 an rtx. Use fatal_at rather than fatal.
2419 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
2420 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
2421 (gen_absence_set, gen_final_absence_set, gen_automaton)
2422 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
2423 (main): Update after interface changes.
2424 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
2426 (main): Update after interface changes.
2427 * genconditions.c (main): Use new read_md_rtx interface.
2428 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
2429 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
2430 (main): Update after interface changes.
2431 * genemit.c (insn_code_number, insn_index_number): Delete.
2432 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2433 Use fatal_at rather than fatal.
2434 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
2436 (gen_split): Likewise.
2437 (main): Update after interface changes.
2438 * genextract.c (line_no): Delete.
2439 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2440 Update call to walk_rtx.
2441 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
2442 rather than message_with_line.
2443 (walk_rtx): Add an md_rtx_info argument. Update call to
2444 VEC_safe_set_locstr.
2445 (main): Update after interface changes.
2446 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
2447 and lineno. Use error_at rather than separate message_with_line
2448 calls and have_error assignments.
2449 (main): Update after interface changes.
2450 * genmddump.c (main): Use new read_md_rtx interface.
2451 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
2452 (main): Update after interface changes.
2453 * genoutput.c (next_code_number): Delete.
2454 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
2455 (gen_peephole, gen_expand, gen_split): Likewise.
2456 (note_constraint): Likewise. Use *_at rather than *_with_line
2458 (main): Update after interface changes.
2459 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
2461 (main): Update after interface changes.
2462 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
2463 than an rtx and lineno.
2464 (process_define_constraint): Likewise.
2465 (process_define_register_constraint): Likewise.
2466 (main): Update after interface changes.
2467 * genrecog.c (next_insn_code, pattern_lineno): Delete.
2468 (validate_pattern): Replace top-level rtx with an md_rtx_info.
2469 Use *_at rather than *_with_line functions.
2470 (match_pattern_2): Likewise.
2471 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
2472 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
2473 Use *_at rather than *_with_line functions.
2474 * gentarget-def.c (add_insn): New function.
2475 (main): Use it. Use new read_md_rtx interface.
2477 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
2479 * gensupport.h (compute_test_codes): Take a file_location rather
2481 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
2482 rather than *_with_line functions.
2483 (process_define_predicate): Update call to compute_test_codes.
2484 * genpreds.c (validate_exp): Take a file_location rather than a
2485 line number. Use *_at functions rather than *_with_line functions.
2486 (process_define_predicate): Update call to validate_exp.
2487 (constraint_data): Replace lineno field with a file_location.
2488 (add_constraint): Take a file_location rather than a line number.
2489 Use *_at functions rather than *_with_line functions. Fix error
2490 message for address constraints. Update after changes to
2491 validate_exp, constraint_data and compute_test_codes.
2492 (process_define_constraint): Update accordingly.
2493 (process_define_register_constraint): Likewise.
2495 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
2497 * genoutput.c (data): Use a file_location to record the source
2500 (idata, idata_end): Remove initialization.
2501 (constraint_data): Replace lineno with a file_location.
2502 (output_insn_data): Update after changes to data.
2503 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
2504 (scan_operands): Likewise, using *_at rather than *_with_line
2506 (process_template): Likewise.
2507 (validate_insn_alternatives): Likewise.
2508 (validate_insn_operands): Likewise.
2509 (validate_optab_operands): Likewise.
2510 (init_insn_for_nothing): Initialize idata and idata_end.
2511 (note_constraint): Update after changes to constraint_data,
2512 using at rather than with_line functions.
2513 (mdep_constraint_len): Take a file_location rather than a
2514 line number. Use at rather than with_line functions.
2516 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
2518 * read-md.h (fatal_at): Declare.
2519 * read-md.c (fatal_at): New function.
2520 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
2521 to record the source position.
2522 (check_attr_test): Take a file_location instead of a line number.
2523 Use fatal_at instead of fatal.
2524 (check_attr_value): Update after above changes, using "at"
2525 rather than "with_line" reporting functions.
2526 (convert_set_attr_alternative): Likewise.
2527 (gen_attr): Likewise.
2528 (check_defs): Likewise. Don't assign to read_md_filename.
2529 (gen_insn): Update initialization after above changes.
2530 (gen_delay): Likewise.
2531 (write_insn_cases): Print the filename for a define_peephole.
2532 (gen_insn_reserv): Take a line number as argument and update
2533 the call to check_attr_test.
2534 (main): Pass a line number to gen_insn_reserv.
2536 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
2538 * read-md.h (file_location): New structure.
2539 (directive_handler_t): Take a file_location rather than a line number.
2540 (message_at, error_at): Declare.
2541 (read_skip_construct): Delete.
2542 * read-md.c (message_with_line_1): Replace with...
2543 (message_at_1): ...this new function.
2544 (message_at, error_at): New functions.
2545 (message_with_line, error_with_line): Update to use message_at_1.
2546 (handle_enum): Take a file_location rather than a line number
2547 and use error_at for error reporting.
2548 (handle_include): Likewise.
2549 (read_skip_construct): Likewise. Make static.
2550 (handle_file): Update after above changes. Pass a file_location
2551 rather than a line number to handle_directive.
2552 * gensupport.c (queue_elem): Replace separate filename and lineno
2553 with a file_location.
2554 (queue_pattern): Replace filename and lineno arguments with a
2555 file_location. Update after change to queue_elem.
2556 (process_define_predicate): Replace lineno argument with a
2557 file_location and use error_at for error reporting. Update
2558 after above changes.
2559 (process_rtx): Likewise.
2560 (subst_pattern_match): Likewise.
2561 (get_alternatives_number): Likewise.
2562 (alter_predicate_for_insn): Likewise.
2563 (rtx_handle_directive): Likewise.
2564 (is_predicable): Update after above changes, using error_at rather
2565 than error_with_line.
2566 (has_subst_attribute): Likewise.
2567 (identify_predicable_attribute): Likewise.
2568 (alter_attrs_for_subst_insn): Likewise.
2569 (process_one_cond_exec): Likewise.
2570 (process_substs_on_one_elem): Likewise.
2571 (process_define_subst): Likewise.
2572 (check_define_attr_duplicates): Likewise.
2573 (read_md_rtx): Update after change to queue_elem.
2575 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
2577 * genoutput.c (next_index_number): Delete.
2578 (data): Remove index_number.
2579 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
2580 (main): Remove manipulation of next_index_number.
2582 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
2584 * genattrtab.c (check_attr_value): Remove handling of null attrs.
2585 (make_canonical): Likewise.
2587 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
2589 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
2590 instead of adjust_address_nv.
2591 (restore_stack_nonlocal): Likewise.
2592 (nonlocal_goto): Likewise.
2594 2015-07-16 Tom de Vries <tom@codesourcery.com>
2596 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
2597 not have a corresponding loop header phi.
2599 2015-07-16 Tom de Vries <tom@codesourcery.com>
2601 * tree-parloops.c (create_loads_for_reductions): Handle case that
2602 reduction is unused.
2604 2015-07-16 Richard Biener <rguenther@suse.de>
2606 PR tree-optimization/66894
2607 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
2608 about deriving NE_EXPR from truncated values.
2610 2015-07-16 Martin Liska <mliska@suse.cz>
2613 (object_allocator): Add new class.
2614 (pool_allocator::initialize): Use the underlying class.
2615 (pool_allocator::allocate): Likewise.
2616 (pool_allocator::remove): Likewise.
2617 (operator new): A new generic allocator.
2618 * asan.c (struct asan_mem_ref): Remove unused members.
2619 (asan_mem_ref_new): Replace new operator with
2620 object_allocator::allocate.
2621 (free_mem_ref_resources): Change deallocation.
2622 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
2623 with object_allocator.
2624 * config/sh/sh.c (add_constant): Replace new operator with
2625 object_allocator::allocate.
2626 (sh_reorg): Change call to a release method.
2627 * cselib.c (struct elt_list): Remove unused members.
2628 (new_elt_list): Replace new operator with
2629 object_allocator::allocate.
2630 (new_elt_loc_list): Likewise.
2631 (new_cselib_val): Likewise.
2632 (unchain_one_elt_list): Change delete operator with remove method.
2633 (unchain_one_elt_loc_list): Likewise.
2634 (unchain_one_value): Likewise.
2635 (cselib_finish): Release newly added static allocators.
2636 * cselib.h (struct cselib_val): Remove unused members.
2637 (struct elt_loc_list): Likewise.
2638 * df-problems.c (df_chain_alloc): Replace pool_allocator with
2640 * df-scan.c (struct df_scan_problem_data): Likewise.
2641 (df_scan_alloc): Likewise.
2642 * df.h (struct dataflow): Likewise.
2643 * dse.c (struct read_info_type): Likewise.
2644 (struct insn_info_type): Likewise.
2645 (struct dse_bb_info_type): Likewise.
2646 (struct group_info): Likewise.
2647 (struct deferred_change): Likewise.
2648 (get_group_info): Likewise.
2649 (delete_dead_store_insn): Likewise.
2650 (free_read_records): Likewise.
2651 (replace_read): Likewise.
2652 (check_mem_read_rtx): Likewise.
2653 (scan_insn): Likewise.
2654 (dse_step1): Likewise.
2655 (dse_step7): Likewise.
2656 * et-forest.c (struct et_occ): Remove unused members.
2657 (et_new_occ): Use allocate instead of new operator.
2658 (et_new_tree): Likewise.
2659 (et_free_tree): Call release method explicitly.
2660 (et_free_tree_force): Likewise.
2661 (et_free_pools): Likewise.
2662 (et_split): Use remove instead of delete operator.
2663 * et-forest.h (struct et_node): Remove unused members.
2664 * ipa-cp.c: Change pool_allocator to object_allocator.
2665 * ipa-inline-analysis.c: Likewise.
2666 * ipa-profile.c: Likewise.
2667 * ipa-prop.c: Likewise.
2668 * ipa-prop.h: Likewise.
2669 * ira-build.c (initiate_cost_vectors): Cast return value.
2670 (ira_allocate_cost_vector): Likewise.
2671 * ira-color.c (struct update_cost_record): Remove unused members.
2672 * lra-int.h (struct lra_live_range): Likewise.
2673 (struct lra_copy): Likewise.
2674 (struct lra_insn_reg): Likewise.
2675 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
2676 * lra.c (new_insn_reg): Replace new operator with allocate method.
2677 (free_insn_regs): Same for operator delete.
2678 (finish_insn_regs): Release new static allocator.
2679 (finish_insn_recog_data): Likewise.
2680 (lra_free_copies): Replace delete operator with remove method.
2681 (lra_create_copy): Replace operator new with allocate method.
2682 (invalidate_insn_data_regno_info): Same for remove method.
2683 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
2684 (free_debug_insn_changes): Replace delete operator with remove method.
2685 (replace_oldest_value_reg): Replace operator new with allocate method.
2686 (pass_cprop_hardreg::execute): Release new static variable.
2687 * sched-deps.c (sched_deps_init): Change pool_allocator to
2689 * sel-sched-ir.c: Likewise.
2690 * sel-sched-ir.h: Likewise.
2691 * stmt.c (expand_case): Likewise.
2692 (expand_sjlj_dispatch_table): Likewise.
2693 * tree-sra.c (struct access): Remove unused members.
2694 (struct assign_link): Likewise.
2695 (sra_deinitialize): Release newly added static pools.
2696 (create_access_1):Replace operator new with allocate method.
2697 (build_accesses_from_assign): Likewise.
2698 (create_artificial_child_access): Likewise.
2699 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
2700 pool_allocator to object_allocator.
2701 * tree-ssa-pre.c: Likewise.
2702 * tree-ssa-reassoc.c: Likewise.
2703 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
2704 * tree-ssa-strlen.c: Likewise.
2705 * tree-ssa-structalias.c: Likewise.
2706 * var-tracking.c (onepart_pool_allocate): New function.
2707 (unshare_variable): Use the newly added function.
2708 (variable_merge_over_cur): Likewise.
2709 (variable_from_dropped): Likewise.
2710 (variable_was_changed): Likewise.
2711 (set_slot_part): Likewise.
2712 (emit_notes_for_differences_1): Likewise.
2713 (vt_finalize): Release newly added static pools.
2715 2015-07-16 Martin Jambor <mjambor@suse.cz>
2717 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
2718 all uses. Fix two typos in its general comment.
2719 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
2721 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
2723 * config/i386/linux-common.h (LINK_MPX): New.
2724 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
2725 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
2726 indicating '-z bndplt' support by linker.
2727 * configure: Regenerate.
2728 * config.in: Regenerate.
2730 2015-07-16 Richard Biener <rguenther@suse.de>
2732 * fold-const.c (fold_widened_comparison): Remove.
2733 (fold_sign_changed_comparison): Likewise.
2734 (fold_comparison): Move widened and sign-changed comparison
2736 * match.pd: ... to patterns here.
2737 * generic-match-head.c: Include target.h.
2738 * gimple-match-head.c: Likewise.
2740 2015-07-16 Richard Biener <rguenther@suse.de>
2742 * tree-ssa-dom.c (dom_valueize): New function.
2743 (record_temporary_equivalences): Also record equivalences
2744 for dominating stmts that have uses of equivalences we are
2747 2015-07-16 Bin Cheng <bin.cheng@arm.com>
2749 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
2750 add_autoinc_candidates.
2751 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
2752 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
2753 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
2754 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
2756 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
2757 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
2758 Remove parameter struct iv*. Call add_autoinc_candidates here.
2759 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
2760 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
2762 (find_iv_candidates): Call new functions.
2764 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
2766 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
2767 uninitialized-variable warning.
2769 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
2772 * config/sh/sh.md (movdi): Split simple reg move to two movsi
2773 when the destination is R0.
2775 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
2778 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
2779 * config/i386/i386.c (ix86_expand_pextr): New function.
2780 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
2781 for non-lowpart subregs.
2782 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
2783 (insv<mode>): Use SWI248 mode iterator.
2784 (insv<mode>_1): Ditto.
2786 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
2787 Sebastian Pop <s.pop@samsung.com>
2789 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
2790 iterator to use_stmt.
2792 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
2793 Sebastian Pop <s.pop@samsung.com>
2795 * graphite-scop-detection.c (build_scops_1): Discard scops for
2798 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
2799 Sebastian Pop <s.pop@samsung.com>
2801 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
2802 case of a return statement in scop.
2804 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
2805 Sebastian Pop <s.pop@samsung.com>
2807 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
2808 INTEGER_TYPE parameters.
2809 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
2810 VECTOR_CST in scan_tree_for_params.
2811 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
2813 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
2815 * gimple-pretty-print.h: Don't include pretty-print.h.
2816 * tree-streamer.h: Don't include lto-streamer.h.
2817 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
2818 * gimple-streamer-in.c: Remove redundant includes.
2819 * gimple-streamer-out.c: Likewise.
2820 * ipa-devirt.c: Likewise.
2821 * ipa-icf.c: Likewise.
2822 * ipa-inline-analysis.c: Likewise.
2823 * ipa-polymorphic-call.c: Likewise.
2824 * ipa-profile.c: Likewise.
2825 * ipa-prop.c: Likewise.
2826 * ipa-pure-const.c: Likewise.
2827 * lto-cgraph.c: Likewise.
2828 * lto-streamer-in.c: Likewise.
2829 * lto-streamer-out.c: Likewise.
2830 * lto-streamer.c: Likewise.
2831 * tree-streamer-in.c: Likewise.
2832 * tree-streamer-out.c: Likewise.
2833 * tree-streamer.c: Likewise.
2835 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
2837 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
2839 * opts.c: Remove multiline #include comment.
2841 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
2843 * config/nvptx/mkoffload.c (process): Add C++ protection to
2846 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2849 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
2850 null before IEEE 128-bit floating point support patch.
2852 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2854 * simplify-rtx.c (simplify_ternary_operation): Add simplification
2855 for (!c) != {0,...,0} ? a : b for vector modes.
2857 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
2858 Martin Jambor <mjambor@suse.cz>
2860 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
2861 struct func_body_info* instead of struct ipa_node_params*, expecting
2862 fbi->info to be filled in. Replace throughout. Adjust call to
2863 ipa_load_from_parm_agg.
2864 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
2865 instead of struct ipa_node_params*. Adjust calls to other functions
2866 so that they pass either fbi or fbi->info.
2867 (set_switch_stmt_execution_predicate): Likewise.
2868 (will_be_nonconstant_predicate): Likewise.
2869 (compute_bb_predicates): Likewise.
2870 (estimate_function_body_sizes): Move asserts earlier. Fill in
2871 struct func_body_info, replace parms_info with fbi.info. Adjust
2872 calls to functions that now accept struct func_body_info.
2873 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
2874 (struct func_body_info): Likewise.
2875 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
2876 remove static. Adjust callers.
2877 (ipa_load_from_parm_agg): Remove.
2878 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
2879 (func_body_info): Likewise.
2880 (ipa_load_from_parm_agg): Adjust prototype.
2882 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2884 * gensupport.c (rtx_handle_directive): Adjust.
2885 * read-rtl.c (apply_iterators): Take vector to add rtxs to
2886 instead of expr list rtx.
2887 (add_define_attr_for_define_subst): Likewise.
2888 (add_define_subst_attr): Likewise.
2889 (read_subst_mapping): Likewise.
2890 (read_rtx): Likewise.
2891 * rtl.h (read_rtx): Adjust.
2893 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2895 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
2897 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
2900 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
2901 (*tls_local_dynamic_base_64_<mode>): Ditto.
2902 (*tls_local_dynamic_base_64_largepic): Ditto.
2903 (tls_global_dynamic_64_<mode>): Update expander pattern.
2904 (tls_local_dynamic_base_64_<mode>): Ditto.
2906 2015-07-15 Richard Biener <rguenther@suse.de>
2908 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
2909 and bool_var == 1 -> bool_var simplifications ...
2910 * match.pd: ... to patterns here. Factor out negate_expr_p
2911 cases from the A - B -> A + (-B) patterns as negate_expr_p
2912 predicate and add a -(A + B) -> (-B) - A pattern.
2914 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
2916 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
2918 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
2919 Robert Suchanek <robert.suchanek@imgtec.com>
2921 * config/mips/mips.c (mips_int_mask): New enum.
2922 (mips_shadow_set): Likewise.
2923 (int_mask): New variable.
2924 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
2925 (machine_function): Add int_mask and use_shadow_register_set.
2926 (mips_attribute_table): Add attribute handlers for interrupt and
2927 use_shadow_register_set.
2928 (mips_interrupt_mask): New static function.
2929 (mips_handle_interrupt_attr): Likewise.
2930 (mips_handle_use_shadow_register_set_attr): Likewise.
2931 (mips_use_shadow_register_set): Change return type to enum
2932 mips_shadow_set. Add argument handling for use_shadow_register_set
2934 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
2935 compare with mips_shadow_set enum.
2936 (mips_compute_frame_info): Add interrupt mask and
2937 use_shadow_register_set to per-function information structure.
2938 Add a stack slot for EPC unconditionally.
2939 (mips_expand_prologue): Compare use_shadow_register_set value
2940 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
2941 masked interrupt register but in EIC mode use K0 and save Cause in K0.
2942 EPC saved and restored unconditionally. Use PMODE_INSN macro when
2943 copying the stack pointer from the shadow register set.
2944 * config/mips/mips.h (SR_IM0): New define.
2945 * config/mips/mips.md (mips_rdpgpr): Rename to...
2946 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
2947 * doc/extend.texi (Declaring Attributes of Functions): Document
2948 optional arguments for interrupt and use_shadow_register_set
2951 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
2953 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
2954 interrupt attribute.
2955 (mips_expand_prologue): Disable the floating point unit in an ISR.
2956 * config/mips/mips.h (SR_COP1): New define.
2958 2015-07-15 Richard Biener <rguenther@suse.de>
2960 * genmatch.c (parser::peek, parser::peek_ident): Add argument
2961 to tell how many tokens to peek ahead (default 1).
2962 (parser::eat_token, parser::eat_ident): Return token consumed.
2963 (parser::parse_result): Parse new switch statement.
2964 * match.pd: Use case statements where appropriate.
2966 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
2968 PR rtl-optimization/58066
2969 * calls.c (expand_call): Precompute register parameters before stack
2970 alignment is performed.
2972 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
2974 PR rtl-optimization/66838
2975 * postreload.c (reload_cse_move2add): Also process
2976 CALL_INSN_FUNCTION_USAGE when resetting information of
2977 call-clobbered registers.
2979 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
2980 Cesar Philippidis <cesar@codesourcery.com>
2981 Chung-Lin Tang <cltang@codesourcery.com>
2983 * config/nios2/constraints.md (U, v): New constraints.
2984 * config/nios2/predicates.md (rdprs_dcache_operand): New.
2985 (ldstex_memory_operand): New.
2986 * config/nios2/sync.md: New file.
2987 * config/nios2/nios2.md (unspecv): Add new builtin function
2989 (rdprs, flushd, flushda, wrpie, eni): New patterns.
2990 (top-level): Include sync.md.
2991 * config/nios2/nios2.c (N2_FTYPES): Add function types for
2993 (N2_BUILTINS): Add arch field setting, add new builtins.
2994 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
2996 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
2997 Also handle ldex/stex/ldsex/stsex builtins.
2998 (nios2_expand_rdprs_builtin): New function.
2999 (nios2_expand_cache_builtin): New function.
3000 (nios2_expand_wrpie_builtin): New function.
3001 (nios2_expand_eni_builtin): New function.
3002 (nios2_expand_builtin): Add arch field handling and new builtin
3004 * doc/extend.texi (Altera Nios II Built-in Functions): Document
3006 * doc/md.texi (Machine Constraints): Document U and v constraints.
3008 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3009 Cesar Philippidis <cesar@codesourcery.com>
3010 Chung-Lin Tang <cltang@codesourcery.com>
3012 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
3013 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
3014 callee_save_reg_size and uses_anonymous_args fields.
3015 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
3016 (nios2_create_cfa_notes): New function.
3017 (nios2_adjust_stack): New function for adjusting stack.
3018 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
3019 Use nios2_adjust_stack.
3020 (nios2_expand_epilogue): Likewise.
3021 (nios2_expand_return): New function.
3022 (nios2_can_use_return_insn): Update for CDX pop.n usage.
3023 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
3024 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
3025 * config/nios2/nios2.md (return): Use nios2_expand_return.
3027 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3028 Cesar Philippidis <cesar@codesourcery.com>
3029 Chung-Lin Tang <cltang@codesourcery.com>
3031 * config/nios2/predicates.md (pop_operation): New.
3032 (ldwm_operation, stwm_operation): New.
3033 (nios2_hard_register_operand): New.
3034 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
3035 (ldstwm_operation_p): Declare.
3036 (gen_ldstwm_peep): Declare.
3037 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
3038 (base_reg_adjustment_p): New.
3039 (pop_operation_p): New.
3040 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
3041 (nios2_ldstwm_regset_p): New.
3042 (ldstwm_operation_p): New.
3044 (nios2_ldst_parallel): New.
3045 (struct ldswm_operand): Declare.
3046 (compare_ldstwm_operands): New.
3047 (can_use_cdx_ldstw): New.
3048 (gen_ldstwm_peep): New.
3049 * config/nios2/nios2-ldstwm.sml: New.
3050 * config/nios2/nios2.md: Include ldstwm.md.
3051 * config/nios2/ldstwm.md: Generated.
3053 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3054 Cesar Philippidis <cesar@codesourcery.com>
3055 Chung-Lin Tang <cltang@codesourcery.com>
3057 * config/nios2/nios2.h (LABEL_ALIGN): Define.
3058 (REG_ALLOC_ORDER): Define.
3059 (ADJUST_REG_ALLOC_ORDER): Define.
3060 (HONOR_REG_ALLOC_ORDER): Define.
3061 (CDX_REG_P): Define.
3062 (ANDCLEAR_INT): Define.
3063 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
3064 (nios2_label_align): Declare.
3065 (nios2_cdx_narrow_form_p): Declare.
3066 (nios2_adjust_reg_alloc_order): Declare.
3067 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
3069 (nios2_large_unspec_reloc_p): New function, split from...
3070 (nios2_legitimate_pic_operand_p): ...here.
3071 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
3072 (nios2_print_operand_punct_valid_p): New.
3073 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
3074 (split_mem_address): New.
3075 (split_alu_insn): New.
3077 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
3078 (enum nios2_add_insn_kind): New.
3079 (nios2_add_insn_names, nios2_add_insn_narrow): New.
3080 (nios2_add_insn_classify): New.
3081 (nios2_add_insn_asm): New.
3082 (nios2_cdx_narrow_form_p): New.
3083 (label_align, min_labelno, max_labelno): New.
3085 (nios2_label_align): New.
3086 (nios2_adjust_reg_alloc_order): New.
3087 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3088 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3089 * config/nios2/constraints.md (P): New constraint.
3090 * config/nios2/predicates.md (const_and_operand): New.
3092 (stack_memory_operand): New.
3093 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
3094 (length): Update to use nios2_cdx_narrow_form_p().
3095 (type): Add new insn type values.
3096 (control, alu, st, ld, shift): Update insn reservations with
3097 new insn type values.
3098 (*high, *lo_sum): Define new insn patterns for constant generation.
3099 (movqi_internal, movhi_internal, movsi_internal): Reduce
3100 alternatives, update asm template to handle CDX variants, update
3102 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
3103 template, update type attributes.
3104 (extendhisi2, extendqi<mode>2): Likewise.
3105 (addsi3): Change to use function for asm string.
3106 (subsi3): Add CDX notation to asm template, update type attributes.
3107 (negsi3, one_cmplsi3): Likewise.
3108 (andsi3): New pattern, specialized from logical patterns.
3109 (<code>si3): Remove and case, combine alternatives, update asm
3111 (<shift_op>si3): Add CDX notation, update type attributes.
3112 (rotrsi3): Update type attribute.
3113 (*merge, extzv, insv): New insn patterns.
3114 (return): Change to define_expand.
3115 (simple_return): Add CDX notation, update type attributes.
3116 (indirect_jump): Add CDX notation.
3117 (jump): Update asm cases, update length attribute expression.
3118 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
3119 (nios2_cbranch): Update asm cases and length attribute expression
3120 to handle CDX variants.
3121 (nios2_cmp<code>): Update asm template.
3122 (nop): Add CDX notation, update type attributes.
3123 (trap): Add CDX notation.
3124 (ctrapsi4): Update asm cases and length attribute expression to
3126 * doc/md.texi (Machine Constraints): Document P constraint.
3128 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3129 Cesar Philippidis <cesar@codesourcery.com>
3130 Chung-Lin Tang <cltang@codesourcery.com>
3132 * config/nios2/nios2.h (SMALL_INT12): New macro.
3133 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
3134 (nios2_valid_addr_expr_p): Use it.
3135 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
3136 with implicit "io" instructions on R2.
3137 * config/nios2/constraints.md (w): New constraint.
3138 * config/nios2/predicates.md (ldstio_memory_operand): New.
3139 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
3140 operand predicate and constraint.
3141 (ld<bh>io_signed, st<bhw>io>): Likewise.
3142 * doc/md.texi (Machine Constraints): Document w constraint.
3144 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3145 Cesar Philippidis <cesar@codesourcery.com>
3146 Chung-Lin Tang <cltang@codesourcery.com>
3148 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
3149 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
3150 Nios II architecture level.
3151 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
3152 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
3153 (OPTION_DEFAULT_SPECS): Define.
3154 (ASM_SPEC): Add -march= spec strings.
3155 * config/nios2/nios2.c (nios2_option_override): Check for
3156 conflicts involving new options.
3157 * config.gcc (nios2*-*-*): Support --with-arch=.
3158 * doc/invoke.texi (Option Summary, Nios II Options): Document
3159 -march=, -mbmx, and -mcdx.
3161 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
3163 PR rtl-optimization/66626
3164 * lra-constraints.c (lra_constraints): Prevent equivalence
3165 substitution for static chain pseudo in functions with nonlocal
3168 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3170 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
3171 (nios2_emit_stack_limit_check): Add size parameter. Handle
3172 -fstack-limit-symbol as well as -fstack-limit-register.
3173 (nios2_expand_prologue): Emit only a single stack limit check,
3174 even if multiple stack adjustments are required.
3175 (nios2_option_override): Diagnose unsupported combination of -fpic
3176 and -stack-limit-symbol.
3178 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
3180 * Makefile.in (top_srcdir): New.
3181 * configure.ac: Use AM_ZLIB.
3182 * configure: Regeneated.
3184 2015-07-14 Matthias Klose <doko@ubuntu.com>
3187 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
3189 2015-07-14 Richard Biener <rguenther@suse.de>
3191 PR tree-optimization/66863
3192 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
3193 what we record for conversion use stmt lhs inequalities.
3195 2015-07-14 Richard Biener <rguenther@suse.de>
3197 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
3198 (decision_tree::gen_gimple): Likewise.
3200 2015-07-14 Tom de Vries <tom@codesourcery.com>
3202 * gcc.c (greater_than_spec_func): Declare forward.
3203 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
3204 -ftree-parallelize-loops={0,1}.
3205 (static_spec_functions): Add greater_than_spec_func function with name
3207 (greater_than_spec_func): New function.
3209 2015-07-14 Richard Biener <rguenther@suse.de>
3211 * tree-ssa-dom.c (record_temporary_equivalences): Merge
3212 wideing type conversion case from record_equivalences_from_incoming_edge
3213 and use record_equality to record equivalences.
3214 (record_equivalences_from_incoming_edge): Call
3215 record_temporary_equivalences.
3217 2015-07-14 Richard Biener <rguenther@suse.de>
3219 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
3220 (struct if_expr): New.
3221 (struct with_expr): Likewise.
3222 (is_a_helper): Add helpers for if_expr and with_expr.
3223 (struct simplify): Add simplify_kind enum and member. Remove
3225 (simplify::simplify): Adjust.
3226 (lower_commutative): Adjust.
3227 (lower_opt_convert): Likewise.
3228 (lower_cond): Likewise.
3229 (replace_id): Handle with_expr and if_expr.
3230 (lower_for): Adjust.
3231 (dt_simplify::gen_1): New recursive worker, split out from ...
3232 (dt_simplify::gen): ... here. Deal with if and with expansion
3234 (capture_info::capture_info): Take context argument
3235 (capture_info::walk_result): Only analyze specific result.
3236 (parser::parse_result): New function.
3237 (parser::parse_simplify): Adjust to parse ifs with then end
3239 (parser::parse_if): Simplify.
3240 (parser::parse_pattern): Pass down simplify kind.
3241 * match.pd: Convert if structure to new syntax.
3243 2015-07-13 Marek Polacek <polacek@redhat.com>
3245 * rtl.c (rtx_equal_p_cb): Fix typo.
3247 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
3249 * omega.h: Don't include config.h, don't include params.h again if
3250 omega.h has already been included.
3251 * graphite-poly.h: Include sese.h.
3252 * graphite.c: Don't include sese.h, remove needless includes and
3253 minimize includes outside #ifdef HAVE_isl block.
3254 * graphite-blocking.c: Don't include sese.h, remove needless includes,
3255 and wrap entire file in #ifdef HAVE_isl
3256 * graphite-dependences.c: Likewise.
3257 * graphite-interchange.c: Likewise.
3258 * graphite-isl-ast-to-gimple.c: Likewise.
3259 * graphite-optimize-isl.c: Likewise.
3260 * graphite-poly.c: Likewise.
3261 * graphite-scop-detection.c: Likewise.
3262 * graphite-sese-to-poly.c: Likewise.
3264 2015-07-13 Tom de Vries <tom@codesourcery.com>
3266 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
3268 2015-07-13 Renlin Li <renlin.li@arm.com>
3271 * simplify-rtx.c (simplify_const_relational_operation): Add
3272 side_effects_p checks.
3274 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
3276 * bitmap.h: Fix double word typos.
3279 * cfgloopmanip.c: Same.
3282 * cgraphclones.c: Same.
3284 * config/aarch64/aarch64-protos.h: Same.
3285 * config/aarch64/aarch64.c: Same.
3286 * config/aarch64/aarch64.md: Same.
3287 * config/arm/arm.md: Same.
3288 * config/arm/arm1020e.md: Same.
3289 * config/arm/arm1026ejs.md: Same.
3290 * config/arm/arm926ejs.md: Same.
3291 * config/arm/fa526.md: Same.
3292 * config/arm/fa606te.md: Same.
3293 * config/arm/fa626te.md: Same.
3294 * config/arm/fa726te.md: Same.
3295 * config/arm/fmp626.md: Same.
3296 * config/darwin.c: Same.
3297 * config/epiphany/epiphany.c: Same.
3298 * config/frv/frv.c: Same.
3299 * config/ft32/ft32.c: Same.
3300 * config/gnu-user.h: Same.
3301 * config/h8300/constraints.md: Same.
3302 * config/i386/i386.c: Same.
3303 * config/i386/i386.md: Same.
3304 * config/iq2000/iq2000.md: Same.
3305 * config/mips/mips.c: Same.
3306 * config/mmix/mmix.md: Same.
3307 * config/moxie/moxie.c: Same.
3308 * config/nds32/nds32.md: Same.
3309 * config/pa/pa.h: Same.
3310 * config/rs6000/aix.h: Same.
3311 * config/rs6000/rs6000.h: Same.
3312 * config/sh/sh.c: Same.
3313 * config/tilegx/tilegx.md: Same.
3314 * config/tilepro/gen-mul-tables.cc: Same.
3317 * doc/invoke.texi: Same.
3319 * dwarf2out.c: Same.
3324 * hash-table.h: Same.
3325 * internal-fn.c: Same.
3327 * ipa-devirt.c: Same.
3330 * ipa-profile.c: Same.
3335 * reg-stack.c: Same.
3341 * tree-inline.c: Same.
3343 * tree-ssa-dom.c: Same.
3344 * tree-ssa-loop-ivopts.c: Same.
3345 * tree-ssa-structalias.c: Same.
3346 * tree-ssa-tail-merge.c: Same.
3347 * tree-ssa-ter.c: Same.
3348 * tree-ssa-threadupdate.c: Same.
3349 * tree-ssa-uninit.c: Same.
3350 * tree-ssanames.c: Same.
3351 * tree-vect-loop-manip.c: Same.
3357 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3360 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
3361 tree_ssa_phiopt_worker): Call it.
3363 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
3365 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
3366 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
3369 2015-07-11 Marek Polacek <polacek@redhat.com>
3372 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
3373 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
3374 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
3375 rather than bb_has_abnormal_call_pred.
3376 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
3377 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
3378 rather than bb_has_abnormal_call_pred.
3380 2015-07-10 Anatoly Sokolov <aesok@post.ru>
3382 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3383 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
3384 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3385 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
3386 v850_legitimate_address_p): New functions.
3387 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3389 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
3392 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
3393 indirect sibcall with register arguments if register available
3394 for argument passing.
3395 (init_cumulative_args): Set cfun->machine->arg_reg_available
3396 to (cum->nregs > 0) or to true if function has a variable
3398 (function_arg_advance_32): Set cfun->machine->arg_reg_available
3399 to false if cum->nregs <= 0.
3400 * config/i386/i386.h (machine_function): Add arg_reg_available.
3402 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
3404 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
3405 and gen_higpart instead of gen_rtx_SUBREG.
3406 * config/i386/i386.md
3407 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
3408 (read-modify peephole2): Use gen_lowpart instead of
3409 gen_rtx_SUBREG for operand 5.
3411 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
3413 * config/tilepro/gen-mul-tables.cc (main): Change include list for
3415 * config/tilepro/mul-tables.c: Regenerate.
3416 * config/tilegx/mul-tables.c: Regenerate.
3418 2015-07-10 Richard Biener <rguenther@suse.de>
3420 * fold-const.c (distribute_bit_expr): Remove.
3421 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
3422 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
3423 to A & (B | C) and simplifying A << C1 << C2 to ...
3424 * match.pd: ... patterns here.
3426 2015-07-10 Jiong Wang <jiong.wang@arm.com>
3428 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
3429 Mark mem as READONLY and NOTRAP for PIC symbol.
3431 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
3433 * gimple-predict.h: New file.
3434 (gimple_predict_predictor, gimple_predict_set_predictor,
3435 gimple_predict_outcome, gimple_predict_set_outcome,
3436 gimple_build_predict): Relocate here.
3437 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
3438 gimple_predict_outcome, gimple_predict_set_outcome): Move to
3440 * gimple.c (gimple_build_predict): Move to gimple-predict.h
3441 * basic-block.h: Don't include cfghooks.h.
3442 * backend.h: Don't include predict.h.
3443 * cfghooks.h: Include predict.h.
3444 * gimple-pretty-print.c: Include gimple-predict.h.
3445 * gimplify.c: Likwise.
3446 * predict.c: Adjust includes.
3447 * tree-inline.c: Likewise.
3449 * auto-inc-dec.c: Likewise.
3450 * auto-profile.c: Likewise.
3451 * bb-reorder.c: Likewise.
3452 * builtins.c: Likewise.
3453 * caller-save.c: Likewise.
3454 * calls.c: Likewise.
3455 * cfganal.c: Likewise.
3456 * cfgbuild.c: Likewise.
3458 * cfgcleanup.c: Likewise.
3459 * cfgexpand.c: Likewise.
3460 * cfghooks.c: Likewise.
3461 * cfgloopanal.c: Likewise.
3462 * cfgloop.c: Likewise.
3463 * cfgloopmanip.c: Likewise.
3464 * cfgrtl.c: Likewise.
3465 * cgraph.c: Likewise.
3466 * cgraphunit.c: Likewise.
3467 * combine.c: Likewise.
3468 * cprop.c: Likewise.
3471 * dojump.c: Likewise.
3473 * except.c: Likewise.
3474 * expmed.c: Likewise.
3476 * final.c: Likewise.
3477 * fold-const.c: Likewise.
3478 * function.c: Likewise.
3479 * fwprop.c: Likewise.
3480 * gcc-plugin.h: Likewise.
3482 * genattrtab.c: Likewise.
3483 * genemit.c: Likewise.
3484 * gengtype.c: Likewise.
3485 * genopinit.c: Likewise.
3486 * genoutput.c: Likewise.
3487 * genpreds.c: Likewise.
3488 * genrecog.c: Likewise.
3489 * gimple-fold.c: Likewise.
3490 * gimple-iterator.c: Likewise.
3491 * gimple-ssa-isolate-paths.c: Likewise.
3492 * gimple-ssa-strength-reduction.c: Likewise.
3493 * graph.c: Likewise.
3494 * graphite-blocking.c: Likewise.
3495 * graphite.c: Likewise.
3496 * graphite-dependences.c: Likewise.
3497 * graphite-interchange.c: Likewise.
3498 * graphite-isl-ast-to-gimple.c: Likewise.
3499 * graphite-optimize-isl.c: Likewise.
3500 * graphite-poly.c: Likewise.
3501 * graphite-scop-detection.c: Likewise.
3502 * graphite-sese-to-poly.c: Likewise.
3503 * haifa-sched.c: Likewise.
3504 * ifcvt.c: Likewise.
3505 * internal-fn.c: Likewise.
3506 * ipa-cp.c: Likewise.
3507 * ipa-profile.c: Likewise.
3508 * ipa-split.c: Likewise.
3509 * ipa-utils.c: Likewise.
3510 * ira-build.c: Likewise.
3511 * ira-color.c: Likewise.
3512 * ira-conflicts.c: Likewise.
3513 * ira-costs.c: Likewise.
3514 * ira-emit.c: Likewise.
3515 * ira-lives.c: Likewise.
3517 * loop-doloop.c: Likewise.
3518 * loop-init.c: Likewise.
3519 * loop-invariant.c: Likewise.
3520 * loop-unroll.c: Likewise.
3521 * lower-subreg.c: Likewise.
3522 * lra-assigns.c: Likewise.
3524 * lra-coalesce.c: Likewise.
3525 * lra-constraints.c: Likewise.
3526 * lra-lives.c: Likewise.
3527 * lto-cgraph.c: Likewise.
3528 * lto-streamer-in.c: Likewise.
3529 * mode-switching.c: Likewise.
3530 * modulo-sched.c: Likewise.
3531 * omp-low.c: Likewise.
3532 * optabs.c: Likewise.
3533 * passes.c: Likewise.
3534 * postreload.c: Likewise.
3535 * postreload-gcse.c: Likewise.
3536 * profile.c: Likewise.
3537 * recog.c: Likewise.
3538 * regstat.c: Likewise.
3539 * reload1.c: Likewise.
3540 * reorg.c: Likewise.
3541 * rtlanal.c: Likewise.
3542 * sched-ebb.c: Likewise.
3543 * sel-sched-ir.c: Likewise.
3545 * shrink-wrap.c: Likewise.
3546 * simplify-rtx.c: Likewise.
3548 * store-motion.c: Likewise.
3549 * tracer.c: Likewise.
3550 * trans-mem.c: Likewise.
3551 * tree-call-cdce.c: Likewise.
3552 * tree-cfg.c: Likewise.
3553 * tree-cfgcleanup.c: Likewise.
3554 * tree-chkp.c: Likewise.
3555 * tree-complex.c: Likewise.
3556 * tree-eh.c: Likewise.
3557 * tree-if-conv.c: Likewise.
3558 * tree-loop-distribution.c: Likewise.
3559 * tree-outof-ssa.c: Likewise.
3560 * tree-parloops.c: Likewise.
3561 * tree-predcom.c: Likewise.
3562 * tree-pretty-print.c: Likewise.
3563 * tree-profile.c: Likewise.
3564 * tree-sra.c: Likewise.
3565 * tree-ssa.c: Likewise.
3566 * tree-ssa-coalesce.c: Likewise.
3567 * tree-ssa-dce.c: Likewise.
3568 * tree-ssa-dom.c: Likewise.
3569 * tree-ssa-forwprop.c: Likewise.
3570 * tree-ssa-ifcombine.c: Likewise.
3571 * tree-ssa-loop-ch.c: Likewise.
3572 * tree-ssa-loop-im.c: Likewise.
3573 * tree-ssa-loop-ivcanon.c: Likewise.
3574 * tree-ssa-loop-ivopts.c: Likewise.
3575 * tree-ssa-loop-manip.c: Likewise.
3576 * tree-ssa-loop-prefetch.c: Likewise.
3577 * tree-ssa-loop-unswitch.c: Likewise.
3578 * tree-ssa-math-opts.c: Likewise.
3579 * tree-ssa-phiopt.c: Likewise.
3580 * tree-ssa-pre.c: Likewise.
3581 * tree-ssa-reassoc.c: Likewise.
3582 * tree-ssa-sink.c: Likewise.
3583 * tree-ssa-tail-merge.c: Likewise.
3584 * tree-ssa-threadedge.c: Likewise.
3585 * tree-ssa-threadupdate.c: Likewise.
3586 * tree-switch-conversion.c: Likewise.
3587 * tree-tailcall.c: Likewise.
3588 * tree-vect-data-refs.c: Likewise.
3589 * tree-vect-loop.c: Likewise.
3590 * tree-vect-loop-manip.c: Likewise.
3591 * tree-vectorizer.c: Likewise.
3592 * tree-vrp.c: Likewise.
3593 * ubsan.c: Likewise.
3594 * value-prof.c: Likewise.
3595 * varasm.c: Likewise.
3596 * var-tracking.c: Likewise.
3597 * config/aarch64/aarch64-builtins.c: Likewise.
3598 * config/aarch64/aarch64.c: Likewise.
3599 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
3600 * config/alpha/alpha.c: Likewise.
3601 * config/arc/arc.c: Likewise.
3602 * config/arm/arm.c: Likewise.
3603 * config/avr/avr.c: Likewise.
3604 * config/bfin/bfin.c: Likewise.
3605 * config/c6x/c6x.c: Likewise.
3606 * config/cr16/cr16.c: Likewise.
3607 * config/cris/cris.c: Likewise.
3608 * config/darwin.c: Likewise.
3609 * config/darwin-c.c: Likewise.
3610 * config/epiphany/epiphany.c: Likewise.
3611 * config/epiphany/mode-switch-use.c: Likewise.
3612 * config/epiphany/resolve-sw-modes.c: Likewise.
3613 * config/fr30/fr30.c: Likewise.
3614 * config/frv/frv.c: Likewise.
3615 * config/ft32/ft32.c: Likewise.
3616 * config/h8300/h8300.c: Likewise.
3617 * config/i386/i386.c: Likewise.
3618 * config/i386/winnt.c: Likewise.
3619 * config/ia64/ia64.c: Likewise.
3620 * config/iq2000/iq2000.c: Likewise.
3621 * config/lm32/lm32.c: Likewise.
3622 * config/m32c/m32c.c: Likewise.
3623 * config/m32r/m32r.c: Likewise.
3624 * config/m68k/m68k.c: Likewise.
3625 * config/mcore/mcore.c: Likewise.
3626 * config/mep/mep.c: Likewise.
3627 * config/microblaze/microblaze.c: Likewise.
3628 * config/mips/mips.c: Likewise.
3629 * config/mmix/mmix.c: Likewise.
3630 * config/mn10300/mn10300.c: Likewise.
3631 * config/moxie/moxie.c: Likewise.
3632 * config/msp430/msp430.c: Likewise.
3633 * config/nds32/nds32.c: Likewise.
3634 * config/nds32/nds32-cost.c: Likewise.
3635 * config/nds32/nds32-fp-as-gp.c: Likewise.
3636 * config/nds32/nds32-intrinsic.c: Likewise.
3637 * config/nds32/nds32-isr.c: Likewise.
3638 * config/nds32/nds32-md-auxiliary.c: Likewise.
3639 * config/nds32/nds32-memory-manipulation.c: Likewise.
3640 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
3641 * config/nds32/nds32-predicates.c: Likewise.
3642 * config/nios2/nios2.c: Likewise.
3643 * config/nvptx/nvptx.c: Likewise.
3644 * config/pa/pa.c: Likewise.
3645 * config/pdp11/pdp11.c: Likewise.
3646 * config/rl78/rl78.c: Likewise.
3647 * config/rs6000/rs6000.c: Likewise.
3648 * config/rx/rx.c: Likewise.
3649 * config/s390/s390.c: Likewise.
3650 * config/sh/sh.c: Likewise.
3651 * config/sh/sh-mem.cc: Likewise.
3652 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
3653 * config/sh/sh_treg_combine.cc: Likewise.
3654 * config/sparc/sparc.c: Likewise.
3655 * config/spu/spu.c: Likewise.
3656 * config/stormy16/stormy16.c: Likewise.
3657 * config/tilegx/tilegx.c: Likewise.
3658 * config/tilepro/tilepro.c: Likewise.
3659 * config/v850/v850.c: Likewise.
3660 * config/vax/vax.c: Likewise.
3661 * config/visium/visium.c: Likewise.
3662 * config/xtensa/xtensa.c: Likewise.
3664 2015-07-10 Richard Biener <rguenther@suse.de>
3666 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
3667 (decision_tree::gen_gimple): Likewise.
3668 (decision_tree::gen_generic): Likewise.
3670 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
3673 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
3674 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
3676 2015-07-10 Jakub Jelinek <jakub@redhat.com>
3679 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
3680 or ORT_TASK contexts.
3681 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
3684 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3686 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
3689 2015-07-10 Tom de Vries <tom@codesourcery.com>
3691 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
3692 insert nit + 1 bound.
3694 2015-07-10 Richard Biener <rguenther@suse.de>
3696 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
3697 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
3698 (if_convertible_loop_p_1): For this always compute bb predicates.
3699 (if_convertible_loop_p): And free them.
3701 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3703 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
3706 2015-07-10 Richard Biener <rguenther@suse.de>
3708 PR tree-optimization/66823
3709 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
3712 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
3714 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
3715 to handle mips[32|64]r3 and mips[32|64]r5.
3717 2015-07-09 Jakub Jelinek <jakub@redhat.com>
3720 * tree-nested.c (get_static_chain): Or in a flag into
3721 info->static_chain_added.
3722 (get_frame_field, get_nonlocal_debug_decl): Likewise.
3723 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
3725 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
3726 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
3729 PR tree-optimization/66718
3730 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
3732 (vect_simd_lane_linear): New function.
3733 (vectorizable_simd_clone_call): Support using linear arguments for
3734 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
3736 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
3739 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
3741 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3743 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
3744 Use machine mode, not enum machine_mode in the prototype.
3746 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
3747 classify 128-bit floating point support.
3748 (FLOAT128_IBM_P): Likewise.
3749 (FLOAT128_VECTOR_P): Likewise.
3750 (FLOAT128_2REG_P): Likewise.
3751 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
3752 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
3753 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
3754 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
3756 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
3757 tests against TFmode/TDmode, since those modes do not use VSX
3759 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
3761 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
3762 tests against TFmode, etc.
3763 (invalid_e500_subreg): Add tests against IFmode/KFmode.
3764 (reg_offset_addressing_ok_p): Likewise.
3765 (rs6000_legitimate_offset_address_p): Likewise.
3766 (rs6000_legitimize_address): Likewise.
3767 (rs6000_legitimize_reload_address): Likewise.
3768 (rs6000_legitimate_address_p): Clean up tests against TFmode and
3769 TDmode to use the new helper macros, which will include IFmode and
3771 (rs6000_emit_move): Likewise.
3772 (rs6000_darwin64_record_arg_recurse): Likewise.
3773 (print_operand): Likewise.
3774 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
3775 that uses a single vector register as a vector and not as a
3776 floating point register in terms of the calling sequence.
3777 (rs6000_discover_homogeneous_aggregate): Likewise.
3778 (rs6000_return_in_memory): Likewise.
3779 (init_cumulative_args): Likewise.
3780 (rs6000_function_arg_boundary): Likewise.
3781 (rs6000_function_arg_advance_1): Likewise.
3782 (rs6000_function_arg): Likewise.
3783 (rs6000_pass_by_reference): Likewise.
3784 (rs6000_gimplify_va_arg): Likewise.
3785 (rs6000_secondary_reload_memory): Use machine_mode not enum
3787 (rs6000_split_multireg_move): Use new helper macros.
3788 (spe_func_has_64bit_regs_p): Likewise.
3789 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
3790 (output_toc): Use new helper macros.
3791 (rs6000_register_move_cost): Likewise.
3792 (rs6000_function_value): Add IEEE 128-bit floating point calling
3794 (rs6000_libcall_value): Likewise.
3795 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
3796 floating point support.
3797 (rs6000_vector_mode_supported_p): Likewise.
3799 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
3801 PR rtl-optimization/66782
3802 * lra-int.h (struct lra_insn_recog_data): Add comment about
3803 clobbered hard regs for arg_hard_regs.
3804 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
3805 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
3806 Add condition for processing used hard regs.
3807 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
3808 Process clobbered hard regs.
3810 2015-07-09 Michael Matz <matz@suse.de>
3812 * genmatch.c (fprintf_indent): New function.
3813 (operand::gen_transform): Add indent parameter.
3814 (expr::gen_transform, c_expr::gen_transform,
3815 capture::gen_transform): Ditto and use fprintf_indent.
3816 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
3817 (dt_operand::gen, dt_operand::gen_predicate,
3818 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
3819 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
3820 (decision_tree::gen_gimple): Adjust calls and indent generated
3822 (decision_tree::gen_generic): Ditto.
3823 (write_predicate): Ditto.
3825 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
3828 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
3829 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
3830 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
3831 {GENERAL,SSE,MMX}_REG_P where appropriate.
3833 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
3835 * lto-streamer.h: Don't include target.h and alloc-pool.h.
3836 * builtins.c: Adjust includes.
3837 * gimple.c: Likewise.
3838 * ipa-icf.c: Likewise.
3839 * lto-opts.c: Likewise.
3840 * ipa-reference.c: Likewise.
3841 * lto-section-out.c: Likewise.
3842 * lto-streamer-in.c: Likewise.
3843 * lto-streamer-out.c: Likewise.
3844 * opts-global.c: Likewise.
3845 * symtab.c: Likewise.
3846 * tree-chkp.c: Likewise.
3847 * tree-ssa-live.c: Likewise.
3848 * tree-streamer-in.c: Likewise.
3849 * tree-streamer-out.c: Likewise.
3850 * config/darwin.c: Likewise.
3851 * config/i386/winnt.c: Likewise.
3853 2015-07-09 Richard Biener <rguenther@suse.de>
3855 * genmatch.c (struct expr): Add force_single_use flag.
3856 (expr::expr): Add copy constructor.
3857 (capture_info::walk_match): Gather force_single_use captures.
3858 (expr::gen_transform): Use possibly NULLified sequence.
3859 (dt_simplify::gen): Apply single-use restrictions by NULLifying
3860 seq if any constrained expr is not single-use.
3861 (parser::parse_expr): Refactor to allow multiple flags. Handle
3862 's' flag to force an expression have a single-use if the pattern
3863 simplifies to more than one statement.
3864 * match.pd: Convert most single_use conditionals to :s flags.
3866 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
3868 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
3869 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
3870 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
3872 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
3874 * flags.h: Don't include flag-types.h or options.h.
3875 * opts-common.c: Adjust includes.
3876 * opts-global.c: Likewise.
3877 * common/config/epiphany/epiphany-common.c: Likewise.
3879 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
3882 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
3885 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
3888 * config/i386/i386.c (ix86_return_in_memory): Return true
3889 if int_size_in_bytes returns negative for IA MCU.
3891 2015-07-09 Marek Polacek <polacek@redhat.com>
3893 PR tree-optimization/66718
3894 * Makefile.in (OBJS): Add gimple-laddress.o.
3895 * passes.def: Schedule pass_laddress.
3896 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
3897 * tree-pass.h (make_pass_laddress): Declare.
3898 * gimple-laddress.c: New file.
3900 2015-07-09 Richard Biener <rguenther@suse.de>
3902 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
3904 2015-07-09 Richard Biener <rguenther@suse.de>
3906 PR tree-optimization/66807
3907 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
3909 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
3911 * function.c (stack_protect_epilogue): Use if rather than switch for
3912 check targetm.have_stack_protect_test.
3914 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3916 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
3917 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
3918 * config/arc/arc.h: Likewise.
3919 * config/arm/arm.h: Likewise.
3920 * config/bfin/bfin.h: Likewise.
3921 * config/epiphany/epiphany.h: Likewise.
3922 * config/frv/frv.h: Likewise.
3923 * config/ia64/ia64.h: Likewise.
3924 * config/iq2000/iq2000.h: Likewise.
3925 * config/lm32/lm32.h: Likewise.
3926 * config/m32r/m32r.h: Likewise.
3927 * config/mcore/mcore.h: Likewise.
3928 * config/mep/mep.h: Likewise.
3929 * config/microblaze/microblaze.h: Likewise.
3930 * config/mips/mips.h: Likewise.
3931 * config/mmix/mmix.h: Likewise.
3932 * config/mn10300/mn10300.h: Likewise.
3933 * config/nds32/nds32.h: Likewise.
3934 * config/nios2/nios2.h: Likewise.
3935 * config/pa/pa.h: Likewise.
3936 * config/rl78/rl78.h: Likewise.
3937 * config/sh/sh.h: Likewise.
3938 * config/sparc/sparc.h: Likewise.
3939 * config/stormy16/stormy16.h: Likewise.
3940 * config/tilegx/tilegx.h: Likewise.
3941 * config/tilepro/tilepro.h: Likewise.
3942 * config/v850/v850.h: Likewise.
3943 * config/xtensa/xtensa.h: Likewise.
3944 * doc/tm.texi: Regenerate.
3945 * doc/tm.texi.in: Adjust.
3946 * combine.c (simplify_set): Likewise.
3947 (simplify_comparison): Likewise.
3948 * expr.c (store_constructor): Likewise.
3949 * internal-fn.c (expand_arith_overflow): Likewise.
3950 * reload.c (push_reload): Likewise.
3951 (find_reloads): Likewise.
3952 (find_reloads_subreg_address): Likewise.
3953 * reload1.c (eliminate_regs_1): Likewise.
3954 * rtlanal.c (nonzero_bits1): Likewise.
3955 (num_sign_bit_copies1): Likewise.
3956 * simplify-rtx.c (simplify_truncation): Likewise.
3958 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3960 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
3961 of AUTO_INC_DEC with the preprocessor.
3962 * combine.c (combine_instructions): Likewise.
3963 (can_combine_p): Likewise.
3964 (try_combine): Likewise.
3965 * emit-rtl.c (try_split): Likewise.
3966 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3967 * lower-subreg.c (resolve_simple_move): Likewise.
3968 * lra.c (update_inc_notes): Likewise.
3969 * recog.c (asm_operand_ok): Likewise.
3970 (constrain_operands): Likewise.
3971 * regrename.c (scan_rtx_address): Likewise.
3972 * reload.c (update_auto_inc_notes): Likewise.
3973 (reg_inc_found_and_valid_p): Likewise.
3974 * reload1.c (reload): Likewise.
3975 (emit_input_reload_insns): Likewise.
3976 (delete_output_reload): Likewise.
3977 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3978 * valtrack.c (cleanup_auto_inc_dec): Likewise.
3980 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3982 * rtl.h: Always define AUTO_INC_DEC.
3983 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
3984 * combine.c (combine_instructions): Likewise.
3985 (can_combine_p): Likewise.
3986 (try_combine): Likewise.
3987 * emit-rtl.c (try_split): Likewise.
3988 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3989 * lower-subreg.c (resolve_simple_move): Likewise.
3990 * lra.c (update_inc_notes): Likewise.
3991 * recog.c (asm_operand_ok): Likewise.
3992 (constrain_operands): Likewise.
3993 * regrename.c (scan_rtx_address): Likewise.
3994 * reload.c (update_auto_inc_notes): Likewise.
3995 (find_equiv_reg): Likewise.
3996 * reload1.c (reload): Likewise.
3997 (reload_as_needed): Likewise.
3998 (choose_reload_regs): Likewise.
3999 (emit_input_reload_insns): Likewise.
4000 (delete_output_reload): Likewise.
4001 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4002 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4004 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4006 * combine.c (can_combine_def_p): Don't check the value of
4007 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
4008 (combinable_i3pat): Likewise.
4009 (mark_used_regs_combine): Likewise.
4010 * regrename.c (rename_chains): Likewise.
4011 * reload.c (find_reloads_address): Likewise.
4012 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4014 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4016 * combine.c (update_rsp_from_reg_equal): Don't check if
4017 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
4018 (reg_nonzero_bits_for_combine): Likewise.
4019 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
4021 * config/frv/frv.h: Likewise.
4022 * config/lm32/lm32.h: Likewise.
4023 * config/mep/mep.h: Likewise.
4024 * config/mips/mips.h: Likewise.
4025 * config/rs6000/rs6000.h: Likewise.
4026 * config/sh/sh.h: Likewise.
4027 * config/tilegx/tilegx.h (enum reg_class): Likewise.
4028 * config/tilepro/tilepro.h: Likewise.
4029 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
4030 * doc/tm.texi: Regenerate.
4031 * doc/tm.texi.in: Adjust.
4032 * rtlanal.c (nonzero_bits1): Likewise.
4034 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4036 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
4037 with the preprocessor.
4038 (combine_instructions): Likewise.
4039 (try_combine): Likewise.
4041 (distribute_notes): Likewise.
4043 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4045 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
4047 (simplify_set): Likewise.
4048 * cse.c (cse_insn): Likewise.
4049 * fold-const.c (fold_single_bit_test): Likewise.
4050 (fold_unary_loc): Likewise.
4051 * postreload.c (reload_cse_simplify_set): Likewise.
4052 (reload_cse_simplify_operands): Likewise.
4054 2015-07-08 Jiong Wang <jiong.wang@arm.com>
4056 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
4057 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
4059 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4062 * config/i386/x86intrin.h: Include <adxintrin.h> even if
4063 __iamcu__ is defined.
4065 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4067 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
4069 2015-07-08 Iain Sandoe <iain@codesourcery.com>
4072 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
4073 names from preservation.
4075 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4078 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
4080 (function_arg_advance_32): Don't pass vectors in registers for
4082 (function_arg_32): Likewise.
4083 (ix86_return_in_memory): Don't return vectors in registers for
4086 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
4089 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
4090 hard regno live at the start of BB with incoming abnormal edges.
4091 * lra-lives.c (process_bb_lives): Ditto.
4093 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
4096 * config/nvptx/mkoffload.c (main): Create an offload image only in
4097 64-bit configurations.
4099 2015-07-08 Martin Liska <mliska@suse.cz>
4102 * tree-sra.c (create_access_1): Call ctor without brackets.
4103 (create_artificial_child_access): Likewise.
4105 2015-07-08 Richard Biener <rguenther@suse.de>
4107 PR tree-optimization/66793
4108 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
4109 Properly split the block after stmts ending it.
4111 2015-07-08 Richard Biener <rguenther@suse.de>
4113 PR tree-optimization/66794
4114 * passes.c (execute_function_todo): Assert that post-dominators
4116 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
4117 Free post-dominators.
4119 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4121 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
4124 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4126 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
4127 more than or equal 8 and less than 32 when optimizing for size.
4129 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4131 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
4132 COSTS_N_INSNS (1) and increment it appropriately throughout the
4135 2015-07-08 Richard Biener <rguenther@suse.de>
4137 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
4139 2015-07-08 Alan Modra <amodra@gmail.com>
4141 * target.def (rtx_costs): Remove "code" param, add "mode".
4142 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
4143 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
4144 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
4145 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
4146 call. Track mode when given in rtx.
4147 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
4148 (default_address_cost): Pass Pmode to rtx_cost.
4149 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
4150 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
4152 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
4153 (notreg_cost): Add mode param. Use it.
4154 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
4155 mode param and pass to set_src_cost. Update all calls.
4156 (hash_scan_set): Formatting.
4157 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
4158 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
4160 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
4161 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
4162 emit_store_flag): Update set_src_cost and rtx_cost calls.
4163 * auto-inc-dec.c (attempt_change): Likewise.
4164 * calls.c (precompute_register_parameters): Likewise.
4165 * combine.c (expand_compound_operation, make_extraction,
4166 force_to_mode, distribute_and_simplify_rtx): Likewise.
4167 * dojump.c (prefer_and_bit_test): Likewise.
4168 * dse.c (find_shift_sequence): Likewise.
4169 * expr.c (compress_float_constant): Likewise.
4170 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
4171 * ifcvt.c (noce_try_sign_mask): Likewise.
4172 * loop-doloop.c (doloop_optimize): Likewise.
4173 * loop-invariant.c (create_new_invariant): Likewise.
4174 * lower-subreg.c (shift_cost, compute_costs): Likewise.
4175 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
4176 lshift_cheap_p): Likewise.
4177 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
4178 try_replace_in_use, reload_cse_move2add): Likewise.
4179 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
4181 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
4182 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4183 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
4184 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4185 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
4186 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
4188 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
4189 * config/arc/arc.c (arc_rtx_costs): Likewise.
4190 * config/arm/arm.c (arm_rtx_costs): Likewise.
4191 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
4192 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
4193 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
4194 * config/cris/cris.c (cris_rtx_costs): Likewise.
4195 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
4196 * config/frv/frv.c (frv_rtx_costs): Likewise.
4197 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
4198 * config/i386/i386.c (ix86_rtx_costs): Likewise.
4199 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
4200 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
4201 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
4202 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
4203 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
4204 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
4205 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
4206 * config/mep/mep.c (mep_rtx_cost): Likewise.
4207 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
4208 * config/mips/mips.c (mips_rtx_costs): Likewise.
4209 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
4210 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
4211 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
4212 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
4213 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
4214 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
4215 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
4216 * config/pa/pa.c (hppa_rtx_costs): Likewise.
4217 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
4218 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
4219 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
4220 * config/s390/s390.c (s390_rtx_costs): Likewise.
4221 * config/sh/sh.c (sh_rtx_costs): Likewise.
4222 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
4223 * config/spu/spu.c (spu_rtx_costs): Likewise.
4224 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
4225 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
4226 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
4227 * config/v850/v850.c (v850_rtx_costs): Likewise.
4228 * config/vax/vax.c (vax_rtx_costs): Likewise.
4229 * config/visium/visium.c (visium_rtx_costs): Likewise.
4230 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
4231 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
4232 "code" param, and pass as outer_code to first rtx_cost call. Pass
4233 mode to rtx_cost calls.
4234 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
4236 (aarch64_rtx_costs_wrapper): Update.
4237 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
4238 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
4240 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
4242 (avr_operand_rtx_cost): Similarly.
4243 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
4244 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
4245 * config/mips/mips.c (mips_stack_address_p): Comment typo.
4246 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
4247 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
4248 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
4250 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
4251 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
4252 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
4253 * doc/tm.texi: Regenerate.
4255 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
4257 * tree-core.h: Include symtab.h.
4258 * rtl.h: Include hard-reg-set.h but not flags.h.
4259 (HARD_CONST): Remove condition compilation involving HARD_CONST since
4260 hard-reg-set.h is always included.
4261 * regs.h: Don't include hard-reg-set.h or rtl.h.
4262 * cfg.h: Include dominance.h.
4263 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
4264 * backend.h: New. Aggregate commonly used backend header files.
4265 * gimple-ssa.h: Don't include tree-hasher.h.
4266 * ssa.h: New. Aggregate commonly used SSA header files.
4267 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
4268 * sel-sched-ir.h: Flatten includes.
4269 * lra-int.h: Flatten completely.
4270 * sel-sched-dump.h: Flatten includes.
4271 * ira-int.h: Flatten includes.
4272 * gimple-streamer.h: Remove all includes.
4273 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
4274 * resource.h: Flatten hard-reg-set.h and df.h.
4275 * sched-int.h: Flatten insn-arrt.h and df.h.
4276 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
4277 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
4278 * genattrtab.c (write_header): Adjust generated includes.
4279 * genautomata.c (main): Likewise.
4280 * genconditions.c (write-header): Likewise.
4281 * genemit.c (main): Likewise.
4282 * gengtype.c (open_base_files): Likewise.
4283 * genopinit.c (main): Likewise.
4284 * genoutput.c (output_prologue): Likewise.
4285 * genpeep.c (main): Likewise.
4286 * genpreds.c (write_insn_preds_c): Likewise.
4287 * genrecog.c (write_header): Likewise.
4288 * alias.c: Adjust includes.
4290 * attribs.c: Likewise.
4291 * auto-inc-dec.c: Likewise.
4292 * auto-profile.c: Likewise.
4293 * bb-reorder.c: Likewise.
4294 * bt-load.c: Likewise.
4295 * builtins.c: Likewise.
4296 * caller-save.c: Likewise.
4297 * calls.c: Likewise.
4300 * cfganal.c: Likewise.
4301 * cfgbuild.c: Likewise.
4302 * cfgcleanup.c: Likewise.
4303 * cfgexpand.c: Likewise.
4304 * cfghooks.c: Likewise.
4305 * cfgloop.c: Likewise.
4306 * cfgloopanal.c: Likewise.
4307 * cfgloopmanip.c: Likewise.
4308 * cfgrtl.c: Likewise.
4309 * cgraph.c: Likewise.
4310 * cgraphbuild.c: Likewise.
4311 * cgraphclones.c: Likewise.
4312 * cgraphunit.c: Likewise.
4313 * cilk-common.c: Likewise.
4314 * combine-stack-adj.c: Likewise.
4315 * combine.c: Likewise.
4316 * compare-elim.c: Likewise.
4317 * convert.c: Likewise.
4318 * coverage.c: Likewise.
4319 * cppbuiltin.c: Likewise.
4320 * cprop.c: Likewise.
4322 * cselib.c: Likewise.
4323 * data-streamer-in.c: Likewise.
4324 * data-streamer-out.c: Likewise.
4325 * data-streamer.c: Likewise.
4326 * dbxout.c: Likewise.
4329 * debug.c: Likewise.
4330 * df-core.c: Likewise.
4331 * df-problems.c: Likewise.
4332 * df-scan.c: Likewise.
4334 * dojump.c: Likewise.
4335 * dominance.c: Likewise.
4336 * domwalk.c: Likewise.
4337 * double-int.c: Likewise.
4339 * dumpfile.c: Likewise.
4340 * dwarf2asm.c: Likewise.
4341 * dwarf2cfi.c: Likewise.
4342 * dwarf2out.c: Likewise.
4343 * emit-rtl.c: Likewise.
4344 * et-forest.c: Likewise.
4345 * except.c: Likewise.
4346 * explow.c: Likewise.
4347 * expmed.c: Likewise.
4349 * final.c: Likewise.
4350 * fixed-value.c: Likewise.
4351 * fold-const.c: Likewise.
4352 * function.c: Likewise.
4353 * fwprop.c: Likewise.
4354 * gcc-plugin.h: Likewise.
4355 * gcse-common.c: Likewise.
4357 * generic-match-head.c: Likewise.
4358 * ggc-page.c: Likewise.
4359 * gimple-builder.c: Likewise.
4360 * gimple-expr.c: Likewise.
4361 * gimple-fold.c: Likewise.
4362 * gimple-iterator.c: Likewise.
4363 * gimple-low.c: Likewise.
4364 * gimple-match-head.c: Likewise.
4365 * gimple-pretty-print.c: Likewise.
4366 * gimple-ssa-isolate-paths.c: Likewise.
4367 * gimple-ssa-strength-reduction.c: Likewise.
4368 * gimple-streamer-in.c: Likewise.
4369 * gimple-streamer-out.c: Likewise.
4370 * gimple-walk.c: Likewise.
4371 * gimple.c: Likewise.
4372 * gimplify-me.c: Likewise.
4373 * gimplify.c: Likewise.
4374 * godump.c: Likewise.
4375 * graph.c: Likewise.
4376 * graphite-blocking.c: Likewise.
4377 * graphite-dependences.c: Likewise.
4378 * graphite-interchange.c: Likewise.
4379 * graphite-isl-ast-to-gimple.c: Likewise.
4380 * graphite-optimize-isl.c: Likewise.
4381 * graphite-poly.c: Likewise.
4382 * graphite-scop-detection.c: Likewise.
4383 * graphite-sese-to-poly.c: Likewise.
4384 * graphite.c: Likewise.
4385 * haifa-sched.c: Likewise.
4386 * hw-doloop.c: Likewise.
4387 * ifcvt.c: Likewise.
4388 * init-regs.c: Likewise.
4389 * internal-fn.c: Likewise.
4390 * ipa-chkp.c: Likewise.
4391 * ipa-comdats.c: Likewise.
4392 * ipa-cp.c: Likewise.
4393 * ipa-devirt.c: Likewise.
4394 * ipa-icf-gimple.c: Likewise.
4395 * ipa-icf.c: Likewise.
4396 * ipa-inline-analysis.c: Likewise.
4397 * ipa-inline-transform.c: Likewise.
4398 * ipa-inline.c: Likewise.
4399 * ipa-polymorphic-call.c: Likewise.
4400 * ipa-profile.c: Likewise.
4401 * ipa-prop.c: Likewise.
4402 * ipa-pure-const.c: Likewise.
4403 * ipa-ref.c: Likewise.
4404 * ipa-reference.c: Likewise.
4405 * ipa-split.c: Likewise.
4406 * ipa-utils.c: Likewise.
4407 * ipa-visibility.c: Likewise.
4409 * ira-build.c: Likewise.
4410 * ira-color.c: Likewise.
4411 * ira-conflicts.c: Likewise.
4412 * ira-costs.c: Likewise.
4413 * ira-emit.c: Likewise.
4414 * ira-lives.c: Likewise.
4417 * langhooks.c: Likewise.
4419 * loop-doloop.c: Likewise.
4420 * loop-init.c: Likewise.
4421 * loop-invariant.c: Likewise.
4422 * loop-iv.c: Likewise.
4423 * loop-unroll.c: Likewise.
4424 * lower-subreg.c: Likewise.
4425 * lra-assigns.c: Likewise.
4426 * lra-coalesce.c: Likewise.
4427 * lra-constraints.c: Likewise.
4428 * lra-eliminations.c: Likewise.
4429 * lra-lives.c: Likewise.
4430 * lra-remat.c: Likewise.
4431 * lra-spills.c: Likewise.
4433 * lto-cgraph.c: Likewise.
4434 * lto-compress.c: Likewise.
4435 * lto-opts.c: Likewise.
4436 * lto-section-in.c: Likewise.
4437 * lto-section-out.c: Likewise.
4438 * lto-streamer-in.c: Likewise.
4439 * lto-streamer-out.c: Likewise.
4440 * lto-streamer.c: Likewise.
4442 * mode-switching.c: Likewise.
4443 * modulo-sched.c: Likewise.
4444 * omega.c: Likewise.
4445 * omp-low.c: Likewise.
4446 * optabs.c: Likewise.
4447 * opts-global.c: Likewise.
4448 * passes.c: Likewise.
4449 * plugin.c: Likewise.
4450 * postreload-gcse.c: Likewise.
4451 * postreload.c: Likewise.
4452 * predict.c: Likewise.
4453 * print-rtl.c: Likewise.
4454 * print-tree.c: Likewise.
4455 * profile.c: Likewise.
4457 * realmpfr.c: Likewise.
4458 * recog.c: Likewise.
4460 * reg-stack.c: Likewise.
4461 * regcprop.c: Likewise.
4462 * reginfo.c: Likewise.
4463 * regrename.c: Likewise.
4464 * regstat.c: Likewise.
4465 * reload.c: Likewise.
4466 * reload1.c: Likewise.
4467 * reorg.c: Likewise.
4468 * resource.c: Likewise.
4469 * rtl-chkp.c: Likewise.
4470 * rtlanal.c: Likewise.
4471 * rtlhooks.c: Likewise.
4472 * sanopt.c: Likewise.
4473 * sched-deps.c: Likewise.
4474 * sched-ebb.c: Likewise.
4475 * sched-rgn.c: Likewise.
4476 * sched-vis.c: Likewise.
4477 * sdbout.c: Likewise.
4478 * sel-sched-dump.c: Likewise.
4479 * sel-sched-ir.c: Likewise.
4480 * sel-sched.c: Likewise.
4482 * shrink-wrap.c: Likewise.
4483 * simplify-rtx.c: Likewise.
4484 * stack-ptr-mod.c: Likewise.
4486 * stor-layout.c: Likewise.
4487 * store-motion.c: Likewise.
4488 * stringpool.c: Likewise.
4489 * symtab.c: Likewise.
4490 * target-globals.c: Likewise.
4491 * targhooks.c: Likewise.
4492 * toplev.c: Likewise.
4493 * tracer.c: Likewise.
4494 * trans-mem.c: Likewise.
4495 * tree-affine.c: Likewise.
4496 * tree-browser.c: Likewise.
4497 * tree-call-cdce.c: Likewise.
4498 * tree-cfg.c: Likewise.
4499 * tree-cfgcleanup.c: Likewise.
4500 * tree-chkp-opt.c: Likewise.
4501 * tree-chkp.c: Likewise.
4502 * tree-chrec.c: Likewise.
4503 * tree-complex.c: Likewise.
4504 * tree-data-ref.c: Likewise.
4505 * tree-dfa.c: Likewise.
4506 * tree-diagnostic.c: Likewise.
4507 * tree-dump.c: Likewise.
4508 * tree-eh.c: Likewise.
4509 * tree-emutls.c: Likewise.
4510 * tree-if-conv.c: Likewise.
4511 * tree-inline.c: Likewise.
4512 * tree-into-ssa.c: Likewise.
4513 * tree-iterator.c: Likewise.
4514 * tree-loop-distribution.c: Likewise.
4515 * tree-nested.c: Likewise.
4516 * tree-nrv.c: Likewise.
4517 * tree-object-size.c: Likewise.
4518 * tree-outof-ssa.c: Likewise.
4519 * tree-parloops.c: Likewise.
4520 * tree-phinodes.c: Likewise.
4521 * tree-predcom.c: Likewise.
4522 * tree-pretty-print.c: Likewise.
4523 * tree-profile.c: Likewise.
4524 * tree-scalar-evolution.c: Likewise.
4525 * tree-sra.c: Likewise.
4526 * tree-ssa-address.c: Likewise.
4527 * tree-ssa-alias.c: Likewise.
4528 * tree-ssa-ccp.c: Likewise.
4529 * tree-ssa-coalesce.c: Likewise.
4530 * tree-ssa-copy.c: Likewise.
4531 * tree-ssa-copyrename.c: Likewise.
4532 * tree-ssa-dce.c: Likewise.
4533 * tree-ssa-dom.c: Likewise.
4534 * tree-ssa-dse.c: Likewise.
4535 * tree-ssa-forwprop.c: Likewise.
4536 * tree-ssa-ifcombine.c: Likewise.
4537 * tree-ssa-live.c: Likewise.
4538 * tree-ssa-loop-ch.c: Likewise.
4539 * tree-ssa-loop-im.c: Likewise.
4540 * tree-ssa-loop-ivcanon.c: Likewise.
4541 * tree-ssa-loop-ivopts.c: Likewise.
4542 * tree-ssa-loop-manip.c: Likewise.
4543 * tree-ssa-loop-niter.c: Likewise.
4544 * tree-ssa-loop-prefetch.c: Likewise.
4545 * tree-ssa-loop-unswitch.c: Likewise.
4546 * tree-ssa-loop.c: Likewise.
4547 * tree-ssa-math-opts.c: Likewise.
4548 * tree-ssa-operands.c: Likewise.
4549 * tree-ssa-phiopt.c: Likewise.
4550 * tree-ssa-phiprop.c: Likewise.
4551 * tree-ssa-pre.c: Likewise.
4552 * tree-ssa-propagate.c: Likewise.
4553 * tree-ssa-reassoc.c: Likewise.
4554 * tree-ssa-sccvn.c: Likewise.
4555 * tree-ssa-scopedtables.c: Likewise.
4556 * tree-ssa-sink.c: Likewise.
4557 * tree-ssa-strlen.c: Likewise.
4558 * tree-ssa-structalias.c: Likewise.
4559 * tree-ssa-tail-merge.c: Likewise.
4560 * tree-ssa-ter.c: Likewise.
4561 * tree-ssa-threadedge.c: Likewise.
4562 * tree-ssa-threadupdate.c: Likewise.
4563 * tree-ssa-uncprop.c: Likewise.
4564 * tree-ssa-uninit.c: Likewise.
4565 * tree-ssa.c: Likewise.
4566 * tree-ssanames.c: Likewise.
4567 * tree-stdarg.c: Likewise.
4568 * tree-streamer-in.c: Likewise.
4569 * tree-streamer-out.c: Likewise.
4570 * tree-streamer.c: Likewise.
4571 * tree-switch-conversion.c: Likewise.
4572 * tree-tailcall.c: Likewise.
4573 * tree-vect-data-refs.c: Likewise.
4574 * tree-vect-generic.c: Likewise.
4575 * tree-vect-loop-manip.c: Likewise.
4576 * tree-vect-loop.c: Likewise.
4577 * tree-vect-patterns.c: Likewise.
4578 * tree-vect-slp.c: Likewise.
4579 * tree-vect-stmts.c: Likewise.
4580 * tree-vectorizer.c: Likewise.
4581 * tree-vrp.c: Likewise.
4584 * ubsan.c: Likewise.
4585 * valtrack.c: Likewise.
4586 * value-prof.c: Likewise.
4587 * var-tracking.c: Likewise.
4588 * varasm.c: Likewise.
4589 * varpool.c: Likewise.
4590 * vmsdbgout.c: Likewise.
4591 * vtable-verify.c: Likewise.
4593 * wide-int.cc: Likewise.
4594 * xcoffout.c: Likewise.
4595 * config/aarch64/aarch64-builtins.c: Likewise.
4596 * config/aarch64/aarch64.c: Likewise.
4597 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4598 * config/alpha/alpha.c: Likewise.
4599 * config/arc/arc.c: Likewise.
4600 * config/arm/aarch-common.c: Likewise.
4601 * config/arm/arm-builtins.c: Likewise.
4602 * config/arm/arm-c.c: Likewise.
4603 * config/arm/arm.c: Likewise.
4604 * config/avr/avr-c.c: Likewise.
4605 * config/avr/avr-log.c: Likewise.
4606 * config/avr/avr.c: Likewise.
4607 * config/bfin/bfin.c: Likewise.
4608 * config/c6x/c6x.c: Likewise.
4609 * config/cr16/cr16.c: Likewise.
4610 * config/cris/cris.c: Likewise.
4611 * config/darwin-c.c: Likewise.
4612 * config/darwin.c: Likewise.
4613 * config/epiphany/epiphany.c: Likewise.
4614 * config/epiphany/mode-switch-use.c: Likewise.
4615 * config/epiphany/resolve-sw-modes.c: Likewise.
4616 * config/fr30/fr30.c: Likewise.
4617 * config/frv/frv.c: Likewise.
4618 * config/ft32/ft32.c: Likewise.
4619 * config/h8300/h8300.c: Likewise.
4620 * config/i386/i386-c.c: Likewise.
4621 * config/i386/i386.c: Likewise.
4622 * config/i386/msformat-c.c: Likewise.
4623 * config/i386/winnt-cxx.c: Likewise.
4624 * config/i386/winnt-stubs.c: Likewise.
4625 * config/i386/winnt.c: Likewise.
4626 * config/ia64/ia64-c.c: Likewise.
4627 * config/ia64/ia64.c: Likewise.
4628 * config/iq2000/iq2000.c: Likewise.
4629 * config/lm32/lm32.c: Likewise.
4630 * config/m32c/m32c-pragma.c: Likewise.
4631 * config/m32c/m32c.c: Likewise.
4632 * config/m32r/m32r.c: Likewise.
4633 * config/m68k/m68k.c: Likewise.
4634 * config/mcore/mcore.c: Likewise.
4635 * config/mep/mep-pragma.c: Likewise.
4636 * config/mep/mep.c: Likewise.
4637 * config/microblaze/microblaze-c.c: Likewise.
4638 * config/microblaze/microblaze.c: Likewise.
4639 * config/mips/mips.c: Likewise.
4640 * config/mmix/mmix.c: Likewise.
4641 * config/mn10300/mn10300.c: Likewise.
4642 * config/moxie/moxie.c: Likewise.
4643 * config/msp430/msp430-c.c: Likewise.
4644 * config/msp430/msp430.c: Likewise.
4645 * config/nds32/nds32-cost.c: Likewise.
4646 * config/nds32/nds32-fp-as-gp.c: Likewise.
4647 * config/nds32/nds32-intrinsic.c: Likewise.
4648 * config/nds32/nds32-isr.c: Likewise.
4649 * config/nds32/nds32-md-auxiliary.c: Likewise.
4650 * config/nds32/nds32-memory-manipulation.c: Likewise.
4651 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4652 * config/nds32/nds32-predicates.c: Likewise.
4653 * config/nds32/nds32.c: Likewise.
4654 * config/nios2/nios2.c: Likewise.
4655 * config/nvptx/nvptx.c: Likewise.
4656 * config/pa/pa.c: Likewise.
4657 * config/pdp11/pdp11.c: Likewise.
4658 * config/rl78/rl78-c.c: Likewise.
4659 * config/rl78/rl78.c: Likewise.
4660 * config/rs6000/rs6000-c.c: Likewise.
4661 * config/rs6000/rs6000.c: Likewise.
4662 * config/rx/rx.c: Likewise.
4663 * config/s390/s390-c.c: Likewise.
4664 * config/s390/s390.c: Likewise.
4665 * config/sh/sh-c.c: Likewise.
4666 * config/sh/sh-mem.cc: Likewise.
4667 * config/sh/sh.c: Likewise.
4668 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4669 * config/sh/sh_treg_combine.cc: Likewise.
4670 * config/sol2-c.c: Likewise.
4671 * config/sol2-cxx.c: Likewise.
4672 * config/sol2-stubs.c: Likewise.
4673 * config/sol2.c: Likewise.
4674 * config/sparc/sparc-c.c: Likewise.
4675 * config/sparc/sparc.c: Likewise.
4676 * config/spu/spu-c.c: Likewise.
4677 * config/spu/spu.c: Likewise.
4678 * config/stormy16/stormy16.c: Likewise.
4679 * config/tilegx/mul-tables.c: Likewise.
4680 * config/tilegx/tilegx-c.c: Likewise.
4681 * config/tilegx/tilegx.c: Likewise.
4682 * config/tilepro/mul-tables.c: Likewise.
4683 * config/tilepro/tilepro-c.c: Likewise.
4684 * config/tilepro/tilepro.c: Likewise.
4685 * config/v850/v850-c.c: Likewise.
4686 * config/v850/v850.c: Likewise.
4687 * config/vax/vax.c: Likewise.
4688 * config/visium/visium.c: Likewise.
4689 * config/vms/vms-c.c: Likewise.
4690 * config/vms/vms.c: Likewise.
4691 * config/vxworks.c: Likewise.
4692 * config/xtensa/xtensa.c: Likewise.
4694 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
4696 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
4697 Remove operand constraints. Change operand 2 predicate to
4698 nonmemory operand. Limit const_int values to mode bitsize. Only
4699 allow const_int values less than 32 when optimizing for size.
4700 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
4701 Remove operand constraints.
4702 (*bt<mode>): Use SImode for const_int values less than 32.
4703 (regmode): Remove mode attribute.
4705 2015-07-07 Anatoly Sokolov <aesok@post.ru>
4707 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4708 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
4709 moxie_legitimate_address_p): New functions.
4710 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4712 2015-07-07 Tom de Vries <tom@codesourcery.com>
4714 PR tree-optimization/66642
4715 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
4716 header comment. Rename split_edge variable to edge_at_split. Split
4717 exit edge to create new loop exit bb. Insert loop exit phis in new
4720 2015-07-07 Tom de Vries <tom@codesourcery.com>
4722 * tree-cfg.c (get_virtual_phi): New function.
4723 * tree-cfg.h (get_virtual_phi): Declare.
4724 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
4725 (rewrite_virtuals_into_loop_closed_ssa): New function.
4726 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
4728 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
4729 (transform_to_exit_first_loop_alt): Use
4730 rewrite_virtuals_into_loop_closed_ssa.
4732 2015-07-07 Richard Biener <rguenther@suse.de>
4734 * fold-const.c (fold_binary_loc): Move
4735 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
4736 * match.pd: ... here.
4737 Add (X * C1) % C2 -> 0 simplification pattern derived from
4740 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
4743 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
4744 change for target/65249.
4746 2015-07-07 Paulo Matos <pmatos@broadcom.com>
4748 * symtab.c (address_matters_1): Fix typo in comment above.
4749 (can_increase_alignment_p): Likewise.
4751 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4753 * function.c (free_after_compilation): Clear PROP_cfg in
4756 2015-07-07 Richard Biener <rguenther@suse.de>
4758 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
4760 (add_control_edge): Remove excessive vertical space in dumping.
4761 (process_ssa_edge_worklist): Simulate at most one statement and
4762 return whether we did. Do not simulate PHIs if they are in a
4763 BB not yet simulated.
4764 (ssa_propagate): Adjust to always drain the BB worklist whenever
4765 a BB is available there, likewise the VARYING edges list before
4766 the interesting edge list.
4768 2015-07-07 Christian Bruel <christian.bruel@st.com>
4771 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
4773 2015-07-07 Richard Biener <rguenther@suse.de>
4776 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
4779 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
4781 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
4782 modes for operands 0 and 3. Use SImode for operands 2 and 3.
4783 Copy operand 0 to a temporary if !ext_register_operand. Remove
4784 ancient extract_bit_field workaround.
4785 (insv<mode>_1): Rename from mov<mode>_insv_1.
4786 (*insvqi): Rename from *movqi_insv_2.
4787 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
4788 for renamed insvsi_1.
4789 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
4791 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
4793 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
4794 call to nvptx_reorg_subreg.
4796 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
4798 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
4799 * graphite-dependencies.c, graphite-interchange.c,
4800 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
4801 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
4804 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
4806 * match.pd: Remove element_mode inside HONOR_*.
4807 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
4808 (~X | X -> -1, ~X ^ X -> -1): Merge.
4809 * tree.c (build_each_one_cst): New function.
4810 * tree.h (build_each_one_cst): Likewise.
4812 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
4814 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4817 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
4819 * config.gcc <mips*-*-*>: Add fused-madd.opt.
4820 * config/mips/mips.opt (mfused-madd): Remove.
4821 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
4822 * config/mips/mips.h (TARGET_MIPS8000): New.
4823 (ISA_HAS_FP_MADD4_MSUB4): Remove.
4824 (ISA_HAS_FP_MADDF_MSUBF): Remove.
4825 (ISA_HAS_FP_MADD3_MSUB3): Remove.
4826 (ISA_HAS_NMADD4_NMSUB4): Remove.
4827 (ISA_HAS_NMADD3_NMSUB3): Remove.
4828 (ISA_HAS_FUSED_MADD4): New.
4829 (ISA_HAS_UNFUSED_MADD4): New.
4830 (ISA_HAS_FUSED_MADDF): New.
4831 (ISA_HAS_FUSED_MADD3): New.
4832 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
4833 (*fma<mode>4_madd3) New.
4834 (*fma<mode>4_madd4) New.
4835 (*fma<mode>4_maddf) New.
4837 (*fms<mode>4_msub3) New.
4838 (*fms<mode>4_msub4) New.
4840 (*fnma<mode>4_nmadd3) New.
4841 (*fnma<mode>4_nmadd4) New.
4843 (*fnms<mode>4_nmsub3) New.
4844 (*fnms<mode>4_nmsub4) New.
4845 (*madd4<mode>) Modify to be unfused only.
4846 (*msub4<mode>) Modify to be unfused only.
4847 (*nmadd4<mode>) Modify to be unfused only.
4848 (*nmsub4<mode>) Modify to be unfused only.
4849 (*madd3<mode>) Remove.
4850 (*msub3<mode>) Remove.
4851 (*nmadd3<mode>) Remove.
4852 (*nmsub3<mode>) Remove.
4853 (*nmadd3<mode>_fastmath) Remove.
4854 (*nmsub3<mode>_fastmath) Remove.
4855 (*nmadd4<mode>_fastmath) Update condition.
4856 (*nmsub4<mode>_fastmath) Update condition.
4858 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
4861 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
4862 alignment attribute, exploring one level down for records and arrays.
4864 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
4866 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
4867 modes for operands 0 and 1. Use SImode for operands 2 and 3.
4868 Copy operand 1 to a temporary if !ext_register_operand. Remove
4869 ancient extract_bit_field workaround.
4870 (*extv<mode>): Rename from *mov<mode>_extv_1.
4871 (*extvqi): Rename from *movqi_extv_1.
4872 (extzv<mode>): Rename from extzv. Use SWI248 modes for
4873 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
4874 to a temporary if !ext_register_operand. Remove ancient
4875 extract_bit_field workaround.
4876 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
4877 (*extzvqi): Rename from *movqi_extzv_2.
4878 (*testqi_ext_3): Remove modes from const_int_operand predicated
4879 operands. Add "n" constraint.
4880 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
4881 operand. Add "J" constraint.
4882 (*btsq, *btrq, *btcq peephole2s): Remove mode from
4883 const_0_to_63 predicated operand.
4884 (regmode): New insn attribute.
4885 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
4886 to nonmemory_operand. Use regmode insn attribute.
4887 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
4888 (*jcc_bt<mode>_mask): Remove mode from operand 3.
4889 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
4890 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
4891 operands. Use "N" constraint instead of "n".
4893 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
4895 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
4897 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
4900 * config/i386/i386.c (iamcu_cost): New.
4901 (m_IAMCU): Likewise.
4902 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
4903 (processor_target_table): Add an entry for "iamcu".
4904 (processor_alias_table): Likewise.
4905 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
4906 (ix86_adjust_cost): Likewise.
4907 (ia32_multipass_dfa_lookahead): Likewise.
4908 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
4909 * config/i386/x86-tune.def: Updated for m_IAMCU.
4911 2015-07-06 Richard Biener <rguenther@suse.de>
4913 PR tree-optimization/66772
4914 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
4915 values are available in the PHI node BB when there are
4916 still unexecutable edges.
4918 2015-07-06 Richard Biener <rguenther@suse.de>
4920 PR tree-optimization/66767
4921 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
4922 Make sure to build the alignment test on a SSA name without
4923 final alignment info valid only if the alignment test
4926 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
4929 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
4930 loop start when inserting LSETUP.
4932 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
4935 * config/i386/i386.c (ix86_option_override_internal): Allow
4936 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
4938 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4940 * read-md.c (decimal_string): Rename to ...
4941 (md_decimal_string): ... this.
4942 (handle_enum): Reflect this.
4944 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
4947 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
4949 2015-07-06 Richard Biener <rguenther@suse.de>
4952 * match.pd: Add missing constraint of y to REAL_CST in
4953 REAL_CST - x CMP y to y - CST CMP x simplification.
4955 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
4957 PR tree-optimization/66757
4958 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
4960 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
4961 Sandra Loosemore <sandra@codesourcery.com>
4963 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
4964 Delete extern declaration.
4965 (gprel_constant_p): Add extern declaration.
4966 * config/nios2/constraints.md ("S"): Use gprel_constant_p
4967 instead of nios2_symbol_ref_in_small_data_p.
4968 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
4969 (nios2_symbol_ref_in_small_data_p): Make static.
4970 (gprel_constant_p): Make non-static.
4972 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
4974 * doc/fragments.texi (Target Fragment): Convert debian.org
4976 * doc/install.texi (Configuration): Ditto.
4978 2015-07-05 Jakub Jelinek <jakub@redhat.com>
4980 PR tree-optimization/66718
4981 * tree-vect-stmts.c (vectorizable_call): Replace uses of
4982 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
4984 PR tree-optimization/66718
4985 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
4986 vectorizable_load, vectorizable_condition): Move vectype,
4987 nunits, ncopies computation after checking what kind of statement
4990 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
4992 * target-insns.def (extv, extzv, insv): New targetm instruction
4994 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
4996 * recog.c (simplify_while_replacing): Likewise.
4998 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5000 * target-insns.def (doloop_begin, doloop_end): New targetm
5001 instruction patterns.
5002 * loop-init.c: Include target.h.
5003 (pass_loop2::gate): Use the new targetm patterns instead of
5004 HAVE_*/gen_* interface.
5005 (pass_rtl_doloop::gate): Likewise.
5006 (pass_rtl_doloop::execute): Remove preprocessor condition.
5007 * hw-doloop.c: Build unconditionally.
5008 * loop-doloop.c: Likewise.
5009 (doloop_optimize): Use the new targetm patterns instead of
5010 HAVE_*/gen_* interface.
5011 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
5012 * modulo-sched.c (doloop_register_get): Likewise.
5014 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5016 * target-insns.def (clear_cache): New targetm instruction pattern.
5017 * builtins.c (expand_builtin___clear_cache): Use it instead of
5018 HAVE_*/gen_* interface.
5020 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5022 * target-insns.def (allocate_stack, check_stack, probe_stack)
5023 (probe_stack_address, split_stack_prologue, split_stack_space_check):
5024 New targetm instruction patterns.
5025 * explow.c (allocate_dynamic_stack_space): Use them instead of
5026 HAVE_*/gen_* interface.
5027 (emit_stack_probe): Likewise.
5028 (probe_stack_range): Likewise.
5029 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5031 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5033 * target-insns.def (stack_protect_set, stack_protect_test): New
5034 targetm instruction patterns.
5035 * cfgexpand.c (stack_protect_prologue): Use them instead of
5036 HAVE_*/gen_* interface.
5037 * function.c (stack_protect_epilogue): Likewise.
5039 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5041 * expr.h (gen_move_insn_uncast): Delete.
5042 * expr.c (gen_move_insn_uncast): Delete.
5044 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5046 * target-insns.def (restore_stack_block, restore_stack_function)
5047 (restore_stack_nonlocal, save_stack_block, save_stack_function)
5048 (save_stack_nonlocal): New targetm instruction patterns.
5049 * builtins.c (expand_builtin_apply): Use them instead of
5050 HAVE_*/gen_* interface.
5051 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
5053 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5055 * target-insns.def (trap): New targetm instruction pattern.
5056 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
5058 * explow.c (allocate_dynamic_stack_space): Likewise.
5059 * ifcvt.c (find_if_header): Likewise.
5061 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5063 * target-insns.def (prefetch): New targetm instruction pattern.
5064 * tree-ssa-loop-prefetch.c: Include targeth.
5065 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
5066 of HAVE_*/gen_* interface.
5067 * builtins.c (expand_builtin_prefetch): Likewise.
5068 * toplev.c (process_options): Likewise.
5070 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5072 * target-insns.def (untyped_call, untyped_return): New targetm
5073 instruction patterns.
5074 * builtins.c (expand_builtin_apply): Use them instead of
5075 HAVE_*/gen_* interface.
5076 (result_vector): Define unconditionally.
5078 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5080 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
5081 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
5082 (nonlocal_goto_receiver): New targetm instruction patterns.
5083 * builtins.c (expand_builtin_setjmp_setup): Use them instead
5084 of HAVE_*/gen_* interface.
5085 (expand_builtin_setjmp_receiver): Likewise.
5086 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5087 * except.c (expand_dw2_landing_pad_for_region): Likewise.
5089 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5091 * target.def: Add code_for_* hooks.
5092 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
5093 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
5094 * target-insns.def (casesi, tablejump): New targetm instruction
5096 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
5097 (do_tablejump): Likewise.
5098 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
5099 (expand_sjlj_dispatch_table): Likewise.
5100 * targhooks.c (default_case_values_threshold): Likewise.
5102 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
5104 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
5105 Use rtx_insn * instead of rtx.
5106 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
5107 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
5108 (nios2_call_tls_get_addr): Likewise.
5109 (nios2_emit_expensive_div): Likewise.
5110 (nios2_emit_move_sequence): Change return type to bool.
5111 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
5112 Change return type to bool.
5114 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
5117 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
5119 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
5122 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
5123 of register_operand. Remove constraint.
5125 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
5127 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
5130 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
5132 * attribs.c (decl_attributes): Guard inform with the return value
5133 of the preceding warning.
5135 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
5137 * doc/invoke.texi (moverride): Move to correct section.
5139 2015-07-03 Richard Biener <rguenther@suse.de>
5141 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
5143 (dt_operand::gen_gimple_expr): After valueizing operands
5144 re-canonicalize operand order for commutative tree codes.
5146 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
5149 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
5151 (__crc32w): Likewise.
5152 (__crc32d): Likewise.
5153 (__rdpmc): Likewise.
5154 (__rdtscp): Likewise.
5156 (_rdtscp): Likewise.
5157 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
5160 2015-07-03 Richard Biener <rguenther@suse.de>
5162 * fold-const.c (fold_mathfn_compare): Remove.
5163 (fold_inf_compare): Likewise.
5164 (fold_comparison): Move floating point comparison simplifications...
5165 * match.pd: ... to patterns here. Introduce simple_comparisons
5166 operator list and use it for patterns formerly in fold_comparison.
5168 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
5170 PR tree-optimization/66119
5171 * toplev.c (process_options): Don't set up default values for
5172 the sra_max_scalarization_size_{speed,size} parameters.
5173 * tree-sra (analyze_all_variable_accesses): If no values
5174 have been set for the sra_max_scalarization_size_{speed,size}
5175 parameters, call get_move_ratio to get target defaults.
5177 2015-07-03 Richard Biener <rguenther@suse.de>
5179 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
5180 * match.pd: ... here.
5182 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
5185 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
5186 is not actually the default on FreeBSD.
5188 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5190 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
5192 (CMPGE_8HI): Likewise.
5193 (CMPGE_4SI): Likewise.
5194 (CMPGE_2DI): Likewise.
5195 (CMPGE_U16QI): Likewise.
5196 (CMPGE_U8HI): Likewise.
5197 (CMPGE_U4SI): Likewise.
5198 (CMPGE_U2DI): Likewise.
5199 (CMPLE_16QI): Likewise.
5200 (CMPLE_8HI): Likewise.
5201 (CMPLE_4SI): Likewise.
5202 (CMPLE_2DI): Likewise.
5203 (CMPLE_U16QI): Likewise.
5204 (CMPLE_U8HI): Likewise.
5205 (CMPLE_U4SI): Likewise.
5206 (CMPLE_U2DI): Likewise.
5207 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5208 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
5209 ALTIVEC_BUILTIN_VEC_CMPLE.
5210 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
5211 floating-point vector modes.
5212 (vector_nlt<mode>): New define_expand.
5213 (vector_nltu<mode>): Likewise.
5214 (vector_ngt<mode>): Likewise.
5215 (vector_ngtu<mode>): Likewise.
5217 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
5219 PR rtl-optimization/66706
5220 * combine.c (make_compound_operation): If an AND of SUBREG of
5221 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
5223 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
5225 * tree-pass.h (make_pass_ch_vect): New.
5226 * passes.def: Add pass_ch_vect just before pass_if_conversion.
5228 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
5229 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
5230 make_pass_ch_vect): New.
5231 (pass_ch): Extend ch_base.
5233 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
5234 (ch_base::copy_headers): ...here.
5236 2015-07-02 Richard Biener <rguenther@suse.de>
5238 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
5239 * fold-const.c (get_pointer_modulus_and_residue): Remove.
5240 (fold_binary_loc): Implement (T)ptr & CST in terms of
5241 get_pointer_alignment_1.
5242 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
5243 Make sure to build the alignment test on a SSA name without
5244 final alignment info valid only after the prologue.
5246 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
5248 * config/cris/cris.md ("epilogue"): Remove condition.
5249 ("prologue"): Ditto.
5251 2015-07-02 Richard Biener <rguenther@suse.de>
5253 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
5254 parameter to record a condition that is false.
5255 (record_conditions): When recording an extra NE_EXPR that is
5256 true also record a EQ_EXPR that is false.
5258 2015-07-02 Bin Cheng <bin.cheng@arm.com>
5260 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
5261 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
5262 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
5263 (set_iv, find_interesting_uses_address, add_candidate_1): New
5264 argument to alloc_iv.
5265 (find_interesting_uses_op, find_interesting_uses_cond): Don't
5266 duplicate struct iv.
5267 (free_loop_data): Don't free struct iv explicitly.
5268 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
5270 2015-07-01 DJ Delorie <dj@redhat.com>
5272 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
5274 (SUPPORTS_DISCRIMINATOR): Define.
5276 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
5279 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
5280 there are no CALLs in the same pattern.
5282 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5284 PR rtl-optimization/61047
5285 * rtlanal.c (get_initial_register_offset): New function.
5286 (rtx_addr_can_trap_p_1): Check offsets of stack references.
5288 2015-07-01 Richard Biener <rguenther@suse.de>
5290 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
5291 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
5292 ~X CMP C -> X CMP' ~C to ...
5293 * match.pd: ... patterns here.
5295 2015-07-01 Nick Clifton <nickc@redhat.com>
5297 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
5298 a 16-bit value into a 20-bit memory slot.
5300 2015-07-01 Jiong Wang <jiong.wang@arm.com>
5302 * doc/sourcebuild.texi (AArch64-specific attributes): Document
5303 "aarch64_tiny", "aarch64_small", "aarch64_large",
5304 "aarch64_little_endian", "aarch64_big_endian".
5306 2015-07-01 Jiong Wang <jiong.wang@arm.com>
5308 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
5309 Document "aarch64_small_fpic".
5311 2015-07-01 Jiong Wang <jiong.wang@arm.com>
5313 * configure.ac: Add check for aarch64 assembler -fpic relocation
5315 * configure: Regenerate.
5316 * config.in: Regenerate.
5317 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
5318 to -fPIC if not support of -fpic relocation modifier in assembler.
5320 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
5323 * rtl.c (classify_insn): Handle returns in PARALLELs.
5325 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
5328 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
5329 to true if the function is nested and if not optimizing.
5330 (convert_local_omp_clauses): Initialize need_frame to true if the
5331 function contains nested functions and if not optimizing.
5333 2015-07-01 Richard Biener <rguenther@suse.de>
5335 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
5336 (X & Y) ^ Y -> ~X & Y transforms to ...
5337 * match.pd: ... here.
5339 2015-07-01 Richard Biener <rguenther@suse.de>
5341 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
5342 of converts to avoid uninteresting noise from the conversion
5343 simplifying patterns.
5345 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
5347 * config/c6x/c6x.c (try_rename_operands): Do not depend on
5348 gcc_assert evaluating its argument for side-effect.
5350 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
5353 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
5356 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
5358 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
5359 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
5360 (hash_scc): Add this_ref_p and ref_p parameters and pass them
5361 to the inner DFS walk.
5363 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
5365 * target-insns.def (jump): New targetm instruction pattern.
5366 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
5367 instead of gen_jump.
5368 (fix_up_crossing_landing_pad): Likewise.
5369 (add_labels_and_missing_jumps): Likewise.
5370 (fix_crossing_conditional_branches): Likewise.
5371 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5372 (force_nonfallthru_and_redirect): Likewise.
5373 * cse.c (cse_insn): Likewise.
5374 * expmed.c (expand_divmod): Likewise.
5375 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
5376 * haifa-sched.c (init_before_recovery): Likewise.
5377 (sched_create_recovery_edges): Likewise.
5378 * ifcvt.c (find_cond_trap): Likewise.
5379 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
5380 (expand_float, expand_fix): Likewise.
5381 * stmt.c (emit_jump): Likewise.
5383 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
5385 * defaults.h (HAVE_load_multiple, gen_load_multiple)
5386 (HAVE_store_multiple, gen_store_multiple): Delete.
5387 * target-insns.def (load_multiple, store_multiple): New targetm
5388 instruction patterns.
5389 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
5390 of HAVE_*/gen_* interface.
5392 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
5394 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
5395 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
5396 (gen_mem_signal_fence): Delete.
5397 * target-insns.def (mem_signal_fence, mem_thread_fence)
5398 (memory_barrier): New targetm instruction patterns.
5399 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
5401 (expand_mem_signal_fence): Likewise.
5403 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
5405 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
5406 * target-insns.def (epilogue, prologue, sibcall_prologue): New
5407 targetm instruction patterns.
5408 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
5410 * calls.c (expand_call): Likewise.
5411 * cfgrtl.c (cfg_layout_finalize): Likewise.
5412 * df-scan.c (df_get_entry_block_def_set): Likewise.
5413 (df_get_exit_block_use_set): Likewise.
5414 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
5415 * final.c (final_start_function): Likewise.
5416 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5417 (reposition_prologue_and_epilogue_notes): Likewise.
5418 * reorg.c (find_end_label): Likewise.
5419 * toplev.c (process_options): Likewise.
5421 2015-06-30 David Malcolm <dmalcolm@redhat.com>
5423 * typed-splay-tree.h: New file.
5425 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
5428 * lra-int.h (lra_substitute_pseudo): Add a parameter.
5429 (lra_substitute_pseudo_within_insn): Ditto.
5430 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
5432 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
5433 to lra_substitute_pseudo.
5434 * lra-lives.c (process_bb_lives): Add an argument to
5435 lra_substitute_pseudo_within_insn call.
5436 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
5437 argument to lra_substitute_pseudo and
5438 lra_substitute_pseudo_within_insn calls.
5439 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
5441 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
5443 * configure: Regenerated.
5445 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
5447 * config.gcc: Support i[34567]86-*-elfiamcu target.
5448 * config/i386/iamcu.h: New.
5449 * config/i386/i386.opt: Add -miamcu.
5450 * doc/invoke.texi: Document -miamcu.
5451 * common/config/i386/i386-common.c (ix86_handle_option): Turn
5452 off x87/MMX/SSE/AVX codegen for -miamcu.
5453 * config/i386/i386-c.c (ix86_target_macros_internal): Define
5454 __iamcu/__iamcu__ for -miamcu.
5455 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
5456 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
5457 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
5458 * config/i386/i386.c (ix86_option_override_internal): Ignore and
5459 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
5460 MCU by default. Default long double to 64-bit for Intel MCU.
5461 Turn on -freg-struct-return for Intel MCU. Issue an error when
5462 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
5464 (function_arg_advance_32): Pass value whose size is no larger
5465 than 8 bytes in registers for Intel MCU.
5466 (function_arg_32): Likewise.
5467 (ix86_return_in_memory): Return value whose size is no larger
5468 than 8 bytes in registers for Intel MCU.
5469 (iamcu_alignment): New function.
5470 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
5472 (ix86_local_alignment): Don't increase alignment for Intel MCU.
5473 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
5476 2015-06-30 Marek Polacek <polacek@redhat.com>
5478 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
5479 both operands of the resulting expression.
5481 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
5482 the final expression with the operand's type and then convert
5483 it to the type of the expression.
5485 2015-06-30 Richard Biener <rguenther@suse.de>
5487 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
5488 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
5489 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
5490 * match.pd: ... to patterns here.
5492 2015-06-30 Richard Biener <rguenther@suse.de>
5494 PR tree-optimization/66704
5495 * tree-vect-data-refs.c (vect_setup_realignment): Use
5496 make_ssa_name for non-SSA name source.
5498 2015-06-30 Jakub Jelinek <jakub@redhat.com>
5501 * omp-low.c (simd_clone_adjust): Handle addressable linear
5502 or uniform parameters or non-gimple type uniform parameters.
5504 2015-06-30 Richard Biener <rguenther@suse.de>
5506 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
5507 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
5508 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
5509 * match.pd: ... here.
5510 Add a few cases of A - B -> A + (-B) when B "easily" negates.
5511 Move (x & y) | x -> x and friends before
5512 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
5514 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
5516 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
5517 -mfix-ut699 is not specified.
5518 (leon3_load): Rename into...
5519 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
5522 2015-06-30 Marek Polacek <polacek@redhat.com>
5524 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
5525 * match.pd: ... here.
5527 2015-06-30 Richard Biener <rguenther@suse.de>
5529 * target-insns.def (canonicalize_funcptr_for_compare): Add.
5530 * fold-const.c (build_range_check): Replace uses of
5531 HAVE_canonicalize_funcptr_for_compare.
5532 (fold_widened_comparison): Likewise.
5533 (fold_sign_changed_comparison): Likewise.
5534 * dojump.c: Include "target.h".
5535 (do_compare_and_jump): Replace uses of
5536 HAVE_canonicalize_funcptr_for_compare and
5537 gen_canonicalize_funcptr_for_compare.
5538 * expr.c (do_store_flag): Likewise.
5540 2015-06-30 Tom de Vries <tom@codesourcery.com>
5542 PR tree-optimization/66652
5543 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
5544 max_loop_iterations to determine if nit + 1 overflows.
5546 2015-06-30 Richard Biener <rguenther@suse.de>
5548 * tree-vrp.c (register_edge_assert_for_2): Also register
5549 asserts for dominating conversion results.
5551 2015-06-30 Bin Cheng <bin.cheng@arm.com>
5553 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
5556 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
5559 * configure.ac: Fix filds and fildq test for 64-bit.
5560 * configure: Regenerated.
5562 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
5564 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
5565 (nvptx_reorg): Here. Keep the non-subreg pieces.
5567 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
5569 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
5570 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
5572 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
5574 * config/i386/i386.md (*jcc_1): Use %! in asm template.
5575 Set attribute "length_nobnd" instead of "length".
5578 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
5580 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
5582 * config/nios2/nios2.c (nios2_delegitimize_address): Make
5583 assert less restrictive.
5585 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
5588 * cgraphunit.c (cgraph_node::finalize_function): Do not call
5589 do_warn_unused_parameter.
5590 * function.c (do_warn_unused_parameter): Move from here.
5591 * function.h (do_warn_unused_parameter): Do not declare.
5593 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
5596 * gcc.target/arm/armv-sync-comp-swap.c: New.
5597 * gcc.target/arm/armv-sync-op-acquire.c: New.
5598 * gcc.target/arm/armv-sync-op-full.c: New.
5599 * gcc.target/arm/armv-sync-op-release.c: New.
5601 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
5604 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
5605 initial acquire barrier with final barrier.
5607 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
5610 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
5611 initial acquire barrier with final barrier.
5613 2015-06-29 Richard Henderson <rth@redhat.com>
5615 * config/i386/constraints.md (Bf): New constraint.
5616 * config/i386/i386-c.c (ix86_target_macros): Define
5617 __GCC_ASM_FLAG_OUTPUTS__.
5618 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
5620 * doc/extend.texi (FlagOutputOperands): Document them.
5622 2015-06-29 Jiong Wang <jiong.wang@arm.com>
5624 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
5625 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
5627 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
5628 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
5629 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
5630 (aarch64_symbol_context): Ditto.
5631 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
5632 and use new pattern name.
5633 (aarch64_expand_mov_immediate): Ditto.
5634 (aarch64_print_operand): Ditto.
5635 (aarch64_classify_tls_symbol): Ditto.
5637 2015-06-29 Marek Polacek <polacek@redhat.com>
5638 Marc Glisse <marc.glisse@inria.fr>
5640 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
5641 * match.pd: ... pattern here.
5643 2015-06-29 Tom de Vries <tom@codesourcery.com>
5645 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
5648 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
5650 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
5651 feature description, split out the native option, add a link to
5652 the feature documentation, rearrange and slightly rewrite text.
5653 (Aarch64 options, -mcpu): Likewise.
5654 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
5655 +rdma implies Adv. SIMD.
5657 2015-06-29 Marek Polacek <polacek@redhat.com>
5660 * function.c (stack_protect_epilogue): Remove a cast to int.
5661 * doc/invoke.texi: Update -Wswitch-bool description.
5663 2015-06-29 Richard Biener <rguenther@suse.de>
5665 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
5666 * fold-const.c (fold_binary_loc): Move &A - &B simplification
5667 via ptr_difference_const ...
5668 * match.pd: ... here.
5669 When matching (X ^ Y) == Y also match with swapped operands.
5671 2015-06-29 Richard Biener <rguenther@suse.de>
5673 * lto-streamer.h (LTO_major_version): Bump to 5.
5675 2015-06-29 Richard Biener <rguenther@suse.de>
5677 PR tree-optimization/66677
5678 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
5679 STMT_VINFO_VEC_STMT clobbering less strict.
5681 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
5684 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
5685 division, compute max and min when value ranges for dividend and
5686 divisor are available.
5688 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
5689 Sandra Loosemore <sandra@codesourcery.com>
5691 * regrename.h (regrename_do_replace): Change to return bool.
5692 * regrename.c (rename_chains): Check return value of
5694 (regrename_do_replace): Re-validate the modified insns and
5696 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
5697 Update to match rename_chains changes.
5698 * config/c6x/c6x.c (try_rename_operands): Assert that
5699 regrename_do_replace returns true.
5701 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
5703 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
5704 operand 2 here. Use copy_addr_to_reg to copy non-index
5705 register operand 2 to a temporary.
5706 (<mode>_stx): Ditto for operand 1.
5707 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
5708 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
5709 (ix86_store_bounds): Ditto.
5711 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
5713 * print-tree.c (print_node) [TREE_VEC]: Print its length.
5715 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
5717 * gimple.c (gimple_call_set_fndecl): Remove.
5718 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
5719 build1_loc directly instead of build_fold_addr_expr_loc.
5721 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
5723 * hash-map.h (hash_map::traverse): Use the definition of the
5724 Key typedef rather than the typedef itself.
5726 2015-06-26 Martin Jambor <mjambor@suse.cz>
5729 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
5730 NULL instead of calling dump_enabled_p.
5732 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5734 * config/aarch64/aarch64.opt: (override): New.
5735 * doc/invoke.texi (override): Document.
5736 * config/aarch64/aarch64.c (aarch64_flag_desc): New
5737 (aarch64_fusible_pairs): Likewise.
5738 (aarch64_tuning_flags): Likewise.
5739 (aarch64_tuning_override_function): Likewise.
5740 (aarch64_tuning_override_functions): Likewise.
5741 (aarch64_parse_one_option_token): Likewise.
5742 (aarch64_parse_boolean_options): Likewise.
5743 (aarch64_parse_fuse_string): Likewise.
5744 (aarch64_parse_tune_string): Likewise.
5745 (aarch64_parse_one_override_token): Likewise.
5746 (aarch64_parse_override_string): Likewise.
5747 (aarch64_override_options): Parse the -override string if it
5750 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5752 * config/aarch64/aarch64-protos.h (tune_params): Remove
5754 (aarch64_tune_params): Remove const, change to no longer be
5756 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
5757 change to no longer be a pointer, initialize to generic_tunings.
5758 (aarch64_min_divisions_for_recip_mul): Change dereference of
5759 aarch64_tune_params to member access.
5760 (aarch64_reassociation_width): Likewise.
5761 (aarch64_rtx_mult_cost): Likewise.
5762 (aarch64_address_cost): Likewise.
5763 (aarch64_branch_cost): Likewise.
5764 (aarch64_rtx_costs): Likewise.
5765 (aarch64_register_move_cost): Likewise.
5766 (aarch64_memory_move_cost): Likewise.
5767 (aarch64_sched_issue_rate): Likewise.
5768 (aarch64_builtin_vectorization_cost): Likewise.
5769 (aarch64_override_options): Take a copy of the selected tuning
5770 struct in to aarch64_tune_params, rather than just setting
5771 a pointer, change dereferences of aarch64_tune_params to member
5773 (aarch64_override_options_after_change): Change dereferences of
5774 aarch64_tune_params to member access.
5775 (aarch64_macro_fusion_p): Likewise.
5776 (aarch_macro_fusion_pair_p): Likewise.
5777 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
5779 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5781 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
5782 (aarch64_tune_flags): Likewise.
5783 (AARCH64_TUNE_FMA_STEERING): Likewise.
5784 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
5785 to AARCH64_FL_USE_FMA_STEERING_PASS.
5786 (cortex-a57.cortex-a53): Likewise.
5787 (cortex-a72): Use cortexa72_tunings.
5788 (cortex-a72.cortex-a53): Likewise.
5789 (exynos-m1): Likewise.
5790 * config/aarch64/aarch64-protos.h (tune_params): Add
5791 a field: extra_tuning_flags.
5792 * config/aarch64/aarch64-tuning-flags.def: New.
5793 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
5794 (aarch64_extra_tuning_flags): Likewise.
5795 (aarch64_tune_params): Declare here.
5796 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
5797 (cortexa53_tunings): Likewise.
5798 (cortexa57_tunings): Likewise.
5799 (thunderx_tunings): Likewise.
5800 (xgene1_tunings): Likewise.
5801 (cortexa72_tunings): New.
5802 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
5803 (gate): Check against aarch64_tune_params.
5804 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
5807 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
5809 * config/aarch64/aarch64-fusion-pairs.def: New.
5810 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
5811 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
5812 aarch64_fusion_pairs.
5813 (AARCH64_FUSE_MOV_MOVK): Likewise.
5814 (AARCH64_FUSE_ADRP_ADD): Likewise.
5815 (AARCH64_FUSE_MOVK_MOVK): Likewise.
5816 (AARCH64_FUSE_ADRP_LDR): Likewise.
5817 (AARCH64_FUSE_CMP_BRANCH): Likewise.
5819 2015-06-26 Jiong Wang <jiong.wang@arm.com>
5821 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
5822 SYMBOL_SMALL_GOT_28K.
5823 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
5824 relocation modifiers.
5825 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
5826 (ldr_got_small_28k_<mode>): New.
5827 (ldr_got_small_28k_sidi): New.
5828 * config/aarch64/iterators.md (got_modifier): New mode iterator.
5829 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
5830 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
5831 SYMBOL_SMALL_GOT_28K.
5832 (aarch64_rtx_costs): Add costs for new instruction sequences.
5833 (initialize_aarch64_code_model): Initialize new model.
5834 (aarch64_classify_symbol): Recognize new model and new symbol classification.
5835 (aarch64_asm_preferred_eh_data_format): Support new model.
5836 (aarch64_load_symref_appropriately): Generate new instruction
5837 sequences for -fpic.
5838 (TARGET_USE_PSEUDO_PIC_REG): New definition.
5839 (aarch64_use_pseudo_pic_reg): New function.
5841 2015-06-26 Jiong Wang <jiong.wang@arm.com>
5843 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
5844 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
5845 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
5846 (aarch64_expand_mov_immediate): Ditto.
5847 (aarch64_print_operand): Ditto.
5848 (aarch64_classify_symbol): Ditto.
5850 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
5852 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
5854 2015-06-26 Bin Cheng <bin.cheng@arm.com>
5857 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
5858 assertion failed. Remove assertion itself.
5860 2015-06-26 Richard Biener <rguenther@suse.de>
5862 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
5863 and -A CMP CST -> A CMP -CST which is redundant with a pattern
5865 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
5866 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
5867 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
5868 * match.pd: ... patterns here.
5870 2015-06-26 Marek Polacek <polacek@redhat.com>
5872 * match.pd ((x | y) & ~(x & y) -> x ^ y,
5873 (x | y) & (~x ^ y) -> x & y): New patterns.
5875 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
5877 * rtl.h (emit): Add an optional boolean parameter to control
5878 whether barriers are emitted.
5879 * emit-rtl.c (emit): Likewise.
5880 * gensupport.c (get_emit_function): Return null rather than "emit".
5881 * genemit.c (gen_emit_seq): Handle the null return value.
5882 Don't emit barriers after the final instruction in the sequence.
5883 * gentarget-def.c (main): Don't emit barriers after the instruction.
5885 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5887 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
5890 2015-06-26 Richard Biener <rguenther@suse.de>
5892 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
5894 2015-06-26 Richard Biener <rguenther@suse.de>
5896 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
5897 irrespective on whether the inner operation has a single use
5898 of both off are constant.
5900 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
5901 Segher Boessenkool <segher@kernel.crashing.org>
5904 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
5905 before doing PUT_MODE or PUT_CODE on operands to avoid
5906 in-place RTX modification.
5908 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
5910 * gentarget-def.c (def_target_insn): Cast return of strtol to
5913 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5915 * gimple.h (gimple_call_set_fn): Move inline function.
5916 * gimple.c (gimple_call_set_fn): Relocate here.
5918 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
5922 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
5923 the replacement insn will work.
5925 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
5927 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
5930 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
5932 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
5933 * cgraph.h: Include ipa-ref.h and plugin-api.h.
5934 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
5935 (symtab_node::address_can_be_compared_p): Move function.
5936 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
5938 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
5939 * auto-profile.c: Likewise.
5940 * bb-reorder.c: Likewise.
5941 * builtins.c: Likewise.
5942 * calls.c: Likewise.
5943 * cfgexpand.c: Likewise.
5944 * cgraphbuild.c: Likewise.
5945 * cgraphclones.c: Likewise.
5946 * cgraphunit.c: Likewise.
5947 * combine.c: Likewise.
5948 * coverage.c: Likewise.
5949 * data-streamer-in.c: Likewise.
5950 * data-streamer-out.c: Likewise.
5951 * data-streamer.c: Likewise.
5952 * dbxout.c: Likewise.
5953 * dwarf2out.c: Likewise.
5954 * except.c: Likewise.
5956 * final.c: Likewise.
5957 * fold-const.c: Likewise.
5958 * ggc-page.c: Likewise.
5959 * gimple-fold.c: Likewise.
5960 * gimple-iterator.c: Likewise.
5961 * gimple-pretty-print.c: Likewise.
5962 * gimple-streamer-in.c: Likewise.
5963 * gimple-streamer-out.c: Likewise.
5964 * gimple.c: Likewise.
5965 * gimplify.c: Likewise.
5966 * ipa-chkp.c: Likewise.
5967 * ipa-comdats.c: Likewise.
5968 * ipa-cp.c: Likewise.
5969 * ipa-devirt.c: Likewise.
5970 * ipa-icf-gimple.c: Likewise.
5971 * ipa-icf.c: Likewise.
5972 * ipa-inline-analysis.c: Likewise.
5973 * ipa-inline-transform.c: Likewise.
5974 * ipa-inline.c: Likewise.
5975 * ipa-polymorphic-call.c: Likewise.
5976 * ipa-profile.c: Likewise.
5977 * ipa-prop.c: Likewise.
5978 * ipa-pure-const.c: Likewise.
5979 * ipa-ref.c: Likewise.
5980 * ipa-reference.c: Likewise.
5981 * ipa-split.c: Likewise.
5982 * ipa-utils.c: Likewise.
5983 * ipa-visibility.c: Likewise.
5985 * langhooks.c: Likewise.
5986 * lto-cgraph.c: Likewise.
5987 * lto-compress.c: Likewise.
5988 * lto-opts.c: Likewise.
5989 * lto-section-in.c: Likewise.
5990 * lto-section-out.c: Likewise.
5991 * lto-streamer-in.c: Likewise.
5992 * lto-streamer-out.c: Likewise.
5993 * lto-streamer.c: Likewise.
5994 * omp-low.c: Likewise.
5995 * opts-global.c: Likewise.
5996 * passes.c: Likewise.
5997 * predict.c: Likewise.
5998 * print-tree.c: Likewise.
5999 * profile.c: Likewise.
6001 * sanopt.c: Likewise.
6002 * stor-layout.c: Likewise.
6003 * symtab.c: Likewise.
6004 * toplev.c: Likewise.
6005 * trans-mem.c: Likewise.
6006 * tree-cfg.c: Likewise.
6007 * tree-chkp.c: Likewise.
6008 * tree-eh.c: Likewise.
6009 * tree-emutls.c: Likewise.
6010 * tree-inline.c: Likewise.
6011 * tree-nested.c: Likewise.
6012 * tree-parloops.c: Likewise.
6013 * tree-pretty-print.c: Likewise.
6014 * tree-profile.c: Likewise.
6015 * tree-sra.c: Likewise.
6016 * tree-ssa-alias.c: Likewise.
6017 * tree-ssa-live.c: Likewise.
6018 * tree-ssa-loop-ivcanon.c: Likewise.
6019 * tree-ssa-loop-ivopts.c: Likewise.
6020 * tree-ssa-pre.c: Likewise.
6021 * tree-ssa-sccvn.c: Likewise.
6022 * tree-ssa-strlen.c: Likewise.
6023 * tree-ssa-structalias.c: Likewise.
6024 * tree-streamer-in.c: Likewise.
6025 * tree-streamer-out.c: Likewise.
6026 * tree-streamer.c: Likewise.
6027 * tree-switch-conversion.c: Likewise.
6028 * tree-tailcall.c: Likewise.
6029 * tree-vect-data-refs.c: Likewise.
6030 * tree-vect-stmts.c: Likewise.
6031 * tree-vectorizer.c: Likewise.
6034 * ubsan.c: Likewise.
6035 * value-prof.c: Likewise.
6036 * varasm.c: Likewise.
6037 * varpool.c: Likewise.
6038 * config/arm/arm.c: Likewise.
6039 * config/bfin/bfin.c: Likewise.
6040 * config/c6x/c6x.c: Likewise.
6041 * config/cris/cris.c: Likewise.
6042 * config/darwin-c.c: Likewise.
6043 * config/darwin.c: Likewise.
6044 * config/i386/i386.c: Likewise.
6045 * config/i386/winnt.c: Likewise.
6046 * config/microblaze/microblaze.c: Likewise.
6047 * config/mips/mips.c: Likewise.
6048 * config/rs6000/rs6000.c: Likewise.
6049 * config/rx/rx.c: Likewise.
6050 * config/s390/s390.c: Likewise.
6051 * config/tilegx/mul-tables.c: Likewise.
6053 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6055 * config/aarch64/aarch64.c, config/alpha/alpha.c,
6056 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
6057 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
6058 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
6059 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6060 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6061 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6062 config/microblaze/microblaze.c, config/mips/mips.c,
6063 config/mmix/mmix.c, config/mn10300/mn10300.c,
6064 config/moxie/moxie.c, config/msp430/msp430.c,
6065 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6066 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6067 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6068 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6069 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6070 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6071 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
6072 target-def.h include.
6073 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
6075 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6077 * Makefile.in (TARGET_DEF): Add target-insns.def.
6078 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
6079 (build/gentarget-def.o): New rule.
6080 (genprogrtl): Add target-def.
6081 * target-insns.def, gentarget-def.c: New files.
6082 * target.def: Add targetm.have_* and targetm.gen_* hooks,
6083 based on the contents of target-insns.def.
6084 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
6085 (HAVE_return, gen_return): Delete.
6086 * target-def.h: Include insn-target-def.h.
6087 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
6088 instead of direct calls. Rely on them to do the appropriate assertions.
6089 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
6090 (convert_jumps_to_returns): Use targetm interface instead of
6092 (thread_prologue_and_epilogue_insns): Likewise.
6093 * reorg.c (find_end_label, dbr_schedule): Likewise.
6094 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
6095 * shrink-wrap.c (convert_to_simple_return): Likewise.
6096 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
6098 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6100 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
6101 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6102 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
6103 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
6104 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6105 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6106 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6107 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
6108 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
6109 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6110 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6111 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6112 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6113 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6114 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6115 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
6118 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6120 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
6121 (unbounded_int_hashmap_traits::key_type): Likewise.
6122 * hash-map.h (hash_map): Get the key type from the traits.
6123 * hash-traits.h (default_hash_traits): By default, inherit from the
6125 * alias.c (alias_set_traits): Delete.
6126 (alias_set_entry_d::children): Use alias_set_hash as the first
6128 (record_alias_subset): Update accordingly.
6129 * except.c (tree_hash_traits): Delete.
6130 (type_to_runtime_map): Use tree_hash as the first template parameter.
6131 (init_eh): Update accordingly.
6132 * genmatch.c (capture_id_map_hasher): Delete.
6133 (cid_map_t): Use nofree_string_hash as first template parameter.
6134 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
6135 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
6136 Use symbol_compare_hash as the first template parameter in
6138 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
6139 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
6141 * passes.c (pass_registry_hasher): Delete.
6142 (name_to_pass_map): Use nofree_string_hash as the first template
6144 (register_pass_name): Update accordingly.
6145 * sanopt.c (sanopt_tree_map_traits): Delete.
6146 (sanopt_tree_triplet_map_traits): Delete.
6147 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
6149 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
6150 the first template parameter.
6151 * sese.c (rename_map_hasher): Delete.
6152 (rename_map_type): Use tree_ssa_name_hash as the first template
6154 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
6155 (function_summary::m_map): Use map_hash as the first template
6157 (function_summary::release): Update accordingly.
6158 * tree-if-conv.c (phi_args_hash_traits): Delete.
6159 (predicate_scalar_phi): Use tree_operand_hash as the first template
6160 parameter to phi_arg_map.
6161 * tree-inline.h (dependence_hasher): Delete.
6162 (copy_body_data::dependence_map): Use dependence_hash as the first
6164 * tree-inline.c (remap_dependence_clique): Update accordingly.
6165 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
6166 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
6168 (addr_stridxptr): Update accordingly.
6169 * value-prof.c (profile_id_traits): Delete.
6170 (cgraph_node_map): Use profile_id_hash as the first template
6172 (init_node_map): Update accordingly.
6173 * config/alpha/alpha.c (string_traits): Delete.
6174 (machine_function::links): Use nofree_string_hash as the first
6176 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
6177 * config/m32c/m32c.c (pragma_traits): Delete.
6178 (pragma_htab): Use nofree_string_hash as the first template parameter.
6179 (m32c_note_pragma_address): Update accordingly.
6180 * config/mep/mep.c (pragma_traits): Delete.
6181 (pragma_htab): Use nofree_string_hash as the first template parameter.
6182 (mep_note_pragma_flag): Update accordingly.
6183 * config/mips/mips.c (mips16_flip_traits): Delete.
6184 (mflip_mips16_htab): Use nofree_string_hash as the first template
6186 (mflip_mips16_use_mips16_p): Update accordingly.
6187 (local_alias_traits): Delete.
6188 (mips16_local_aliases): Use nofree_string_hash as the first template
6190 (mips16_local_alias): Update accordingly.
6192 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6194 * hash-map-traits.h (default_hashmap_traits): Delete.
6196 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6198 * hash-map-traits.h (unbounded_hashmap_traits): New class.
6199 (unbounded_int_hashmap_traits): Likewise.
6200 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
6202 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6204 * ipa-icf.h (symbol_compare_hash): New class.
6205 (symbol_compare_hashmap_traits): Use it.
6206 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
6207 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
6208 (mem_alloc_description::reverse_mem_map_t): Remove redundant
6209 default_hashmap_traits.
6210 * sanopt.c (sanopt_tree_triplet_hash): New class.
6211 (sanopt_tree_triplet_map_traits): Use it.
6213 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6215 * gengtype-parse.c (require_template_declaration): Allow '+' in
6216 template parameters. Consolidate cases.
6217 * hash-traits.h (int_hash): New class.
6218 * alias.c (alias_set_hash): New structure.
6219 (alias_set_traits): Use it.
6220 * symbol-summary.h (function_summary::map_hash): New class.
6221 (function_summary::summary_hashmap_traits): Use it.
6222 * tree-inline.h (dependence_hash): New class.
6223 (dependence_hasher): Use it.
6224 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
6225 * value-prof.c (profile_id_hash): New class.
6226 (profile_id_traits): Use it.
6228 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6230 * config/mips/mips.c (mips16_flip_traits): Use it.
6231 (local_alias_traits, mips16_local_aliases): Convert from a map of
6232 rtxes to a map of symbol names.
6233 (mips16_local_alias): Update accordingly.
6235 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6237 * hash-traits.h (string_hash, nofree_string_hash): New classes.
6238 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
6239 * passes.c (pass_registry_hasher): Likewise.
6240 * config/alpha/alpha.c (string_traits): Likewise.
6241 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
6242 * config/m32c/m32c.c (pragma_traits): Likewise.
6243 * config/mep/mep.c (pragma_traits): Likewise.
6245 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6247 * tree-hash-traits.h (tree_hash): New class.
6248 * except.c: Include tree-hash-traits.h.
6249 (tree_hash_traits): Use tree_hash.
6251 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6253 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
6254 * sese.c: Include tree-hash-traits.h.
6255 (rename_map_hasher): Use tree_ssa_name_hasher.
6257 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6259 * tree-hash-traits.h (tree_decl_hash): New class.
6260 * tree-ssa-strlen.c: Include tree-hash-traits.h.
6261 (stridxlist_hash_traits): Use tree_decl_hash.
6263 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6265 * tree-hash-traits.h: New file.
6266 (tree_operand_hash): New class.
6267 * sanopt.c: Include tree-hash-traits.h.
6268 (sanopt_tree_map_traits): Use tree_operand_hash.
6269 * tree-if-conv.c: Include tree-hash-traits.h.
6270 (phi_args_hash_traits): Use tree_operand_hash.
6271 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
6272 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
6274 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6276 * hash-map-traits.h: Include hash-traits.h.
6277 (simple_hashmap_traits): New class.
6278 * mem-stats.h (hash_map): Change the default traits to
6279 simple_hashmap_traits<default_hash_traits<Key> >.
6281 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6283 * hash-table.h: Update comments.
6285 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6287 * hash-traits.h (default_hash_traits): New structure.
6288 * hash-set.h (default_hashset_traits): Delete.
6289 (hash_set): Use default_hash_traits<Key> instead of
6290 default_hashset_traits. Delete hash_entry type and use Key directly.
6291 * ipa-devirt.c (pair_traits): Delete.
6292 (default_hash_traits <type_pair>): Override.
6293 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
6294 (odr_types_equivalent_p, add_type_duplicate): Likewise.
6296 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6298 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
6300 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6302 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
6303 (has_is_empty, is_empty_helper): Delete.
6304 (has_mark_deleted, mark_deleted_helper): Delete.
6305 (has_mark_empty, mark_empty_helper): Delete.
6306 (hash_table::is_deleted): Call the Descriptor unconditionally.
6307 (hash_table::is_empty): Likewise.
6308 (hash_table::mark_deleted): Likewise.
6309 (hash_table::mark_empty): Likewise.
6311 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6313 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
6314 redundant typedefs and members.
6315 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
6317 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
6318 * ipa-devirt.c (odr_name_hasher): Likewise.
6319 (polymorphic_call_target_hasher): Likewise.
6320 * ira-costs.c (cost_classes_hasher): Likewise.
6321 * statistics.c (stats_counter_hasher): Likewise.
6322 * trans-mem.c (log_entry_hasher): Likewise.
6323 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
6324 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
6325 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
6326 * var-tracking.c (variable_hasher): Likewise.
6327 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
6328 Remove redundant typedefs and members.
6330 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6332 * hash-traits.h (ggc_cache_hasher): Rename to...
6333 (ggc_cache_remove): ...this and remove typedefs.
6334 (ggc_cache_ptr_hash): New class.
6335 * hash-table.h: Update commentary.
6336 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
6337 rather than ggc_cache_hasher.
6338 (const_wide_int_hasher, reg_attr_hasher): Likewise.
6339 (const_double_hasher, const_fixed_hasher): Likewise.
6340 * function.c (insn_cache_hasher): Likewise.
6341 * trans-mem.c (tm_wrapper_hasher): Likewise.
6342 * tree.h (tree_decl_map_cache_hasher): Likewise.
6343 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
6344 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
6345 * ubsan.c (tree_type_map_cache_hasher): Likewise.
6346 * varasm.c (tm_clone_hasher): Likewise.
6347 * config/i386/i386.c (dllimport_hasher): Likewise.
6348 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
6349 (tree_hasher): Likewise.
6351 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6353 * hash-traits.h (ggc_hasher): Rename to...
6354 (ggc_remover): ...this and remove typedefs.
6355 (ggc_cache_hasher): Update accordingly. Add typedefs.
6356 (ggc_ptr_hash): New class.
6357 * hash-table.h: Update comment.
6358 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
6360 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
6361 (tree_descriptor_hasher): Likewise.
6362 * cgraph.c (function_version_hasher): Likewise.
6363 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
6364 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
6365 (dw_loc_list_hasher, addr_hasher): Likewise.
6366 * function.h (used_type_hasher): Likewise.
6367 * function.c (temp_address_hasher): Likewise.
6368 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
6369 * libfuncs.h (libfunc_hasher): Likewise.
6370 * lto-streamer.h (decl_state_hasher): Likewise.
6371 * optabs.c (libfunc_decl_hasher): Likewise.
6372 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
6373 * varasm.c (section_hasher, object_block_hasher): Likewise.
6374 (const_rtx_desc_hasher): Likewise.
6375 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
6376 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
6378 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6380 * hash-traits.h (free_ptr_hash): New class.
6381 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
6382 rather than typed_free_remove. Remove redudant typedefs.
6383 (external_ref_hasher): Likewise.
6384 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
6385 (ehspec_hasher): Likewise.
6386 * ggc-common.c (saving_hasher): Likewise.
6387 * gimplify.c (gimplify_hasher): Likewise.
6388 * haifa-sched.c (delay_i2_hasher): Likewise.
6389 * loop-invariant.c (invariant_expr_hasher): Likewise.
6390 * loop-iv.c (biv_entry_hasher): Likewise.
6391 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
6392 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
6393 * tree-cfg.c (locus_discrim_hasher): Likewise.
6394 * tree-eh.c (finally_tree_hasher): Likewise.
6395 * tree-into-ssa.c (var_info_hasher): Likewise.
6396 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
6397 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
6398 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
6399 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
6400 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
6401 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
6402 (shared_bitmap_hasher): Likewise.
6403 * tree-ssa-threadupdate.c (redirection_data): Likewise.
6404 * tree-vectorizer.h (peel_info_hasher): Likewise.
6405 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
6406 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
6408 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6410 * hash-table.h: Update comments.
6411 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
6412 (nofree_ptr_hash): New class.
6413 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
6414 than typed_noop_remove. Remove redudant typedefs.
6415 * attribs.c (attribute_hasher): Likewise.
6416 * cfg.c (bb_copy_hasher): Likewise.
6417 * cselib.c (cselib_hasher): Likewise.
6418 * dse.c (invariant_group_base_hasher): Likewise.
6419 * dwarf2cfi.c (trace_info_hasher): Likewise.
6420 * dwarf2out.c (macinfo_entry_hasher): Likewise.
6421 (comdat_type_hasher, loc_list_hasher): Likewise.
6422 * gcse.c (pre_ldst_expr_hasher): Likewise.
6423 * genmatch.c (id_base): Likewise.
6424 * genrecog.c (test_pattern_hasher): Likewise.
6425 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
6426 * haifa-sched.c (delay_i1_hasher): Likewise.
6427 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
6428 * ipa-icf.h (congruence_class_group_hash): Likewise.
6429 * ipa-profile.c (histogram_hash): Likewise.
6430 * ira-color.c (allocno_hard_regs_hasher): Likewise.
6431 * lto-streamer.h (string_slot_hasher): Likewise.
6432 * lto-streamer.c (tree_entry_hasher): Likewise.
6433 * plugin.c (event_hasher): Likewise.
6434 * postreload-gcse.c (expr_hasher): Likewise.
6435 * store-motion.c (st_expr_hasher): Likewise.
6436 * tree-sra.c (uid_decl_hasher): Likewise.
6437 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
6438 (ssa_name_var_hash): Likewise.
6439 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
6440 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
6441 * tree-ssa-pre.c (pre_expr_d): Likewise.
6442 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
6443 * vtable-verify.h (registration_hasher): Likewise.
6444 * vtable-verify.c (vtbl_map_hasher): Likewise.
6445 * config/arm/arm.c (libcall_hasher): Likewise.
6446 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
6447 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
6448 * config/sol2.c (comdat_entry_hasher): Likewise.
6449 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
6450 (print_fold_checksum, fold_checksum_tree): Likewise.
6451 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
6452 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
6453 (fold_build_call_array_loc): Likewise.
6454 * tree-ssa-ccp.c (gimple_htab): Likewise.
6455 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
6456 rather than pointer_type.
6458 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6460 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
6461 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
6463 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6465 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
6466 (ggc_hasher::ggc_mx): Likewise.
6467 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
6468 that duplicate ggc_hasher ones.
6470 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6472 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
6473 (gt_cleare_cache): Check here for deleted and empty entries.
6474 Replace handle_cache_entry with a call to keep_cache_entry.
6475 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
6476 (ggc_cache_hasher::keep_cache_entry): New function.
6477 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
6478 (tm_wrapper_hasher::keep_cache_entry): New function.
6479 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
6480 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
6481 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
6482 (type_cache_hasher::keep_cache_entry): New function.
6483 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
6484 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
6485 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
6486 (tree_type_map_cache_hasher::keep_cache_entry): New function.
6487 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
6488 (tm_clone_hasher::keep_cache_entry): New function.
6489 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
6490 (dllimport_hasher::keep_cache_entry): New function.
6492 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6494 * hash-table.h: Include hash-traits.h.
6495 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
6496 (ggc_cache_hasher): Move to...
6497 * hash-traits.h: ...this new file.
6499 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6501 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
6502 struct cl_optimization.
6503 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
6504 * tree.c (make_node_stat): Allocate cl_optimization struct.
6505 (copy_node_stat): Allocate and copy cl_optimization struct.
6507 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6509 * function.h (struct incoming_args): Move struct.
6510 (pass_by_reference, reference_callee_copied): Remove prototypes.
6511 * emit-rtl.h (struct incoming_args): Relocate struct here.
6512 * calls.h (pass_by_reference, reference_callee_copied): Relocate
6514 * function.c (pass_by_reference, reference_callee_copied): Move.
6515 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
6516 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
6517 * ipa-chkp.c: Include calls.h.
6519 2015-06-25 Andrew Macleod <amacleod@redhat.com>
6521 * alias.h (alias_set_type): Move typedef.
6522 * coretypes.h (alias_set_type): Relocate typedef here.
6523 * rtl.h: Don't include alias.h.
6525 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6527 * cgraph.h (cgraph_rtl_info): Move to rtl.h
6528 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
6530 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
6531 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
6533 * calls.c: Include hard-reg-set.h before rtl.h.
6536 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6537 Vladimir Makarov <vmakarov@redhat.com>
6539 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
6542 2015-06-25 Richard Biener <rguenther@suse.de>
6544 * fold-const.c (fold_binary_loc): Move simplification of
6545 (X <<>> C1) & C2 ...
6546 * match.pd: ... here.
6548 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
6550 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
6552 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6554 * match.pd: Add patterns for vec_conds between 1 and 0.
6556 2015-06-25 Richard Biener <rguenther@suse.de>
6558 * tree-vect-stmts.c (vectorizable_conversion): Do not set
6559 STMT_VINFO_VEC_STMT for SLP.
6560 (vectorizable_store): Likewise.
6561 (vectorizable_load): Likewise.
6562 (vect_transform_stmt): Catch SLP vectorization clobbering
6563 STMT_VINFO_VEC_STMT.
6565 2015-06-25 Richard Biener <rguenther@suse.de>
6567 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
6569 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
6570 cleanup resulting dead code and parameters.
6571 (vect_transform_slp_perm_load): Adjust.
6573 2015-06-25 Nick Clifton <nickc@redhat.com>
6575 * config/bfin/bfin.c (bfin_expand_prologue): Set
6576 current_function_static_stack_size if flag_stack_usage_info is set.
6577 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
6578 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
6579 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6580 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
6582 2015-06-25 Tom de Vries <tom@codesourcery.com>
6584 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
6585 comment that the generated IV is unsigned.
6587 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6590 * config/arm/arm.c (arm_dbx_register_number): Return
6591 DWARF_FRAME_REGISTERS by default.
6593 2015-06-25 Tom de Vries <tom@codesourcery.com>
6595 * dominance.c (calculate_dominance_info): Fix verify_dominators call
6596 argument. Call verify_dominator when reusing dominator info.
6598 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
6601 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
6602 an additional element of the unspec vector. Modify indices
6604 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
6605 * config/sh/sh.c (prepare_move_operands): Pass incremented
6606 const_int to gen_GOTaddr2picreg.
6607 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
6609 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
6611 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
6612 Condition on TARGET_FLOAT.
6614 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
6616 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
6619 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
6621 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
6623 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
6624 aarch64_err_no_fpadvsimd.
6626 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
6627 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
6628 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
6629 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
6630 Turn error into assert, test TARGET_FLOAT.
6631 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
6634 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
6637 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
6639 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
6641 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
6643 2015-06-24 Renlin Li <renlin.li@arm.com>
6645 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
6646 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
6648 2015-06-24 Richard Biener <rguenther@suse.de>
6650 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
6652 (lower_opt_convert): Support lowering of conditional view_convert.
6653 (parser::parse_operation): Likewise.
6654 (parser::parse_for): Likewise.
6656 2015-06-24 Renlin Li <renlin.li@arm.com>
6658 * varasm.c (emit_local): Use unsigned int for align variable.
6660 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6663 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
6664 for negative numbers.
6666 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6668 PR rtl-optimization/66306
6669 * reload.c (find_reloads): Swap the match_dup info for
6670 commutative operands.
6672 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6674 * config/s390/vx-builtins.md
6675 ("vec_scatter_element<mode>_<non_vec_int>")
6676 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
6677 attribute with bhfgq.
6679 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6681 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
6683 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6685 * config/s390/s390-builtin-types.def: Add flag to indicate the
6686 options under which the function type is needed.
6687 * config/s390/s390-builtins.def: Add flag to indicate the options
6688 under which the builtin is enabled.
6689 * config/s390/s390-builtins.h: Add flags parameter to macro
6691 (bflags_for_builtin): New function.
6692 (flags_for_builtin): Renamed to ...
6693 (opflags_for_builtin): ... this.
6694 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
6695 flags_for_builtin to bflags_for_builtin and
6696 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
6697 * config/s390/s390.c: Add initialization of bflags_builtin and
6698 opflags_builtin arrays.
6699 Remove code for flags_builtin.
6700 (s390_init_builtins): Only create builtin function types if one of
6701 their flags is active.
6702 Only create builtins if all of their flags are active.
6703 (s390_expand_builtin): Rename flags_for_builtin to
6704 opflags_for_builtin.
6706 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6708 * config/s390/vecintrin.h: Remove internal builtins.
6710 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6712 * config/s390/s390.c (s390_secondary_reload): Fix check for
6713 GENERAL_REGS register class.
6715 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6717 * config/s390/s390.c (s390_support_vector_misalignment): Call
6718 default implementation for !TARGET_VX.
6720 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6722 * config/s390/s390.c (s390_legitimate_constant_p): Add
6725 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6727 * config/s390/s390.c (s390_vector_abi): New variable definition.
6728 (s390_check_type_for_vector_abi): New function.
6729 (TARGET_ASM_FILE_END): New macro definition.
6730 (s390_asm_file_end): New function.
6731 (s390_function_arg): Call s390_check_type_for_vector_abi.
6732 (s390_gimplify_va_arg): Likewise.
6733 * configure: Regenerate.
6734 * configure.ac: Check for .gnu_attribute Binutils feature.
6736 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
6739 * config/bfin/bfin.c (hwloop_optimize): Initialize
6740 JUMP_LABEL for newly created jump.
6742 2015-06-23 Tristan Gingold <gingold@adacore.com>
6744 * collect-utils.c (collect_wait): Unlink the response file here
6747 (utils_cleanup): ...and here.
6749 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
6751 * df-scan.c: Don't include target-def.h.
6752 * targhooks.c: Likewise.
6753 * config/arm/arm-c.c: Likewise.
6754 * config/i386/i386-c.c: Likewise.
6755 * config/nds32/nds32-cost.c: Likewise.
6756 * config/nds32/nds32-fp-as-gp.c: Likewise.
6757 * config/nds32/nds32-intrinsic.c: Likewise.
6758 * config/nds32/nds32-isr.c: Likewise.
6759 * config/nds32/nds32-md-auxiliary.c: Likewise.
6760 * config/nds32/nds32-memory-manipulation.c: Likewise.
6761 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6762 * config/nds32/nds32-predicates.c: Likewise.
6764 2015-06-23 Richard Biener <rguenther@suse.de>
6766 PR tree-optimization/66636
6767 * tree-vect-stmts.c (vectorizable_store): Properly compute the
6768 def type for further defs for strided stores.
6770 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
6772 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
6773 conditional selects.
6774 (setcc_int<mode>, setcc_float<mode>): Reformat.
6776 2015-06-23 Marek Polacek <polacek@redhat.com>
6778 * match.pd ((x + y) - (x | y) -> x & y,
6779 (x + y) - (x & y) -> x | y): New patterns.
6781 2015-06-23 Ludovic Courtès <ludo@gnu.org>
6784 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
6785 '-dynamic-linker' within %{!shared: ...}.
6787 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
6790 * config/i386/predicates.md (addsub_vm_operator): New predicate.
6791 (addsub_vs_operator): Ditto.
6792 (addsub_vs_parallel): Ditto.
6793 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
6794 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
6795 Put minus RTX before plus and adjust vec_merge selector.
6796 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
6797 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
6798 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
6799 (addsub vec_merge splitters): New combiner splitters.
6800 (addsub vec_select/vec_concat splitters): Ditto.
6802 2015-06-23 Bin Cheng <bin.cheng@arm.com>
6804 PR tree-optimization/66449
6805 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
6806 POINTER_PLUS_EXPR for pointers.
6808 2015-06-23 Alan Modra <amodra@gmail.com>
6810 * rtlanal.c (commutative_operand_precedence): Correct comments.
6811 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
6812 declaration. Return an int. Distinguish REG,REG return from
6814 (struct simplify_plus_minus_op_data): Make local to function.
6815 (simplify_plus_minus): Don't set canonicalized if merely sorting
6816 registers. Avoid packing ops if nothing changes. White space fixes.
6818 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
6820 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
6821 -fdump-ada-spec is passed but not if -fsyntax-only is.
6823 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
6826 * lra-lives.c (process_bb_lives): Check insn copying the same
6827 reload pseudo and don't create a copy for it.
6829 2015-06-22 Tom de Vries <tom@codesourcery.com>
6831 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
6834 2015-06-22 Tom de Vries <tom@codesourcery.com>
6836 * builtins.def (DEF_GOMP_BUILTIN): Test
6837 'flag_tree_parallelize_loops > 1' instead of
6838 'flag_tree_parallelize_loops'. Test flag_cilkplus.
6840 2015-06-22 Tom de Vries <tom@codesourcery.com>
6842 * dominance.c (calculate_dominance_info): Verify dominators if
6845 2015-06-22 Marek Polacek <polacek@redhat.com>
6847 * match.pd ((x ^ y) ^ (x | y) -> x & y,
6848 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
6849 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
6850 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
6852 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
6855 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
6856 cost of embedded comparison.
6858 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6861 * config/rs6000/predicates.md (altivec_register_operand): Permit
6862 virtual stack registers.
6863 (vsx_register_operand): Likewise.
6864 (vfloat_operand): Likewise.
6865 (vint_operand): Likewise.
6866 (vlogical_operand): Likewise.
6868 2015-06-22 Richard Biener <rguenther@suse.de>
6870 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
6871 and single_scalar_iteration_cost members.
6872 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
6873 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
6874 (vect_get_single_scalar_iteration_cost): Remove.
6875 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
6876 Use LOOP_VINFO_SCALAR_ITERATION_COST.
6877 * tree-vect-loop.c (destroy_loop_vec_info): Free
6879 (vect_get_single_scalar_iteration_cost): Compute result into
6880 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
6881 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
6882 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
6883 (vect_estimate_min_profitable_iters): Use them.
6885 2015-06-22 Christian Bruel <christian.bruel@st.com>
6888 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
6889 (TARGET_INSERT_ATTRIBUTES): Define.
6890 (thumb_flipper): New var.
6891 * config/arm/arm.opt (-mflip-thumb): New switch.
6893 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
6894 Martin Liska <mliska@suse.cz>
6897 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
6898 construction of arg_types.
6899 (sem_function::sem_function): Likewise.
6900 (sem_function::~sem_function): Remove destruction of arg_types.
6901 (sem_function::compatible_parm_types_p): New function.
6902 (sem_function::equals_wpa): Reorg matching of return values
6903 and parameter types.
6904 (sem_function::equals_private): Reorg mathcing of argument types.
6905 (sem_function::parse_tree_args): Remove.
6906 * ipa-icf.h (init_wpa): Do not call it.
6907 (parse_tree_args): Remove.
6908 (compatible_parm_types_p): Declare.
6909 (result_type): Remove.
6910 (arg_types): Remove.
6912 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
6915 * ipa-polymorphic-call.c
6916 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
6917 initializing alias oracle; fix formating; set base_alias_set if it
6920 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
6922 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
6923 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
6924 (find_inc): Likewise.
6925 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
6927 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
6928 * df-scan.c (df_swap_refs): Remove.
6929 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
6930 * dominance.c (link_roots): Use std::swap instead of manually swapping.
6931 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
6932 * fold-const.c (fold_relational_const): Likewise.
6933 * genattrtab.c (simplify_test_exp): Likewise.
6934 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
6935 gimple_simplify): Likewise.
6936 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
6937 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
6938 * ipa-devirt.c (add_type_duplicate): Likewise.
6939 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
6940 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
6941 * lra.c (lra_create_copy): Likewise.
6942 * lto-streamer-out.c (DFS::DFS): Likewise.
6943 * modulo-sched.c (get_sched_window): Likewise.
6944 * omega.c (omega_pretty_print_problem): Likewise.
6945 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
6946 * reload1.c (reloads_unique_chain_p): Likewise.
6947 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
6948 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
6950 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
6952 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
6953 predicate_mem_writes): Likewise.
6954 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
6955 * tree-predcom.c (combine_chains): Likewise.
6956 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
6957 refs_may_alias_p_1): Likewise.
6958 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
6959 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
6960 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
6961 number_of_iterations_cond): Likewise.
6962 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
6963 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
6964 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6965 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
6966 * tree-vrp.c (extract_range_from_binary_expr_1,
6967 extract_range_from_unary_expr_1): Likewise.
6969 2015-06-20 Marek Polacek <polacek@redhat.com>
6971 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
6973 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
6976 * config/sh/sh.c (prepare_move_operands): Replace subreg
6977 index term with R0 for base and index addressing.
6979 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
6981 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
6983 (movsf_aarch64): Change condition from register_operand to
6984 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
6985 load1. Change type for alternative 7 to store1.
6986 (movdf_aarch64): Likewise.
6988 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
6990 * config/vax/vax.md: Adjust sign/zero extend patterns to
6991 handle SUBREGs in operands[1].
6993 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6995 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
6996 of manually swapping.
6997 (expand_vec_perm_interleave2): Likewise.
6999 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
7001 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
7002 reuse bounds created for abnormal ssa names.
7004 2015-06-19 Jakub Jelinek <jakub@redhat.com>
7006 * config/nvptx/nvptx.md (allocate_stack): Rename to...
7007 (allocate_stack_<mode>): ... this, and add :P on both
7008 match_operand and unspec.
7009 (allocate_stack): New expander.
7011 2015-06-19 Christian Bruel <christian.bruel@st.com>
7015 * config/arm/arm.c (arm_set_current_function): Handle
7016 explicit default options.
7018 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7020 * config/i386/i386.md (*movsicc_noc_zext): New insn.
7021 (zero-extended cmove with mem peephole2): New pattern.
7022 (cmove with mem peephole2): Merge patterns.
7024 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7026 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
7028 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
7030 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
7031 * config/mips/mips.md (*madd4<mode>): Ditto.
7032 (*nmadd3<mode>) Ditto.
7033 (*nmadd4<mode>_fastmath): Ditto.
7034 (*nmadd3<mode>_fastmath): Ditto.
7035 (*nmsub4<mode>): Ditto.
7036 (*nmsub3<mode>): Ditto.
7037 (*nmsub4<mode>_fastmath): Ditto.
7038 (*nmsub3<mode>_fastmath): Ditto.
7040 2015-06-18 Michael Matz <matz@suse.de>
7043 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
7044 grouped strided stores.
7045 (vectorizable_load): Don't use the DR from first_stmt in
7046 the non-SLP grouped strided case.
7048 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7051 * function.c (assign_bounds): Add arguments assign_regs,
7052 assign_special, assign_bt.
7053 (assign_parms): For vararg functions handle bounds in BT
7054 and special slots after incoming vararg bounds.
7056 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7059 * cfgexpand.c (expand_return): Handle missing bounds.
7060 (expand_gimple_stmt_1): Likewise.
7061 * tree-chkp.c (chkp_expand_zero_bounds): New.
7062 * tree-chkp.h (chkp_expand_zero_bounds): New.
7064 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7067 * ipa-chkp.c (chkp_maybe_create_clone): Require
7068 functions to be instrumentable.
7069 * tree-chkp.c (chkp_replace_function_pointer): Use
7070 chkp_instrumentable_p instead of attribute check.
7072 2015-06-18 Richard Biener <rguenther@suse.de>
7074 PR tree-optimization/66510
7075 * tree-vect-stmts.c (vectorizable_load): Properly compute the
7076 number of vector loads for SLP permuted loads.
7077 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
7078 check the stride for loop vectorization.
7079 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
7080 vectorization factor.
7081 (vect_analyze_group_access): If the group size is not a power
7082 of two require a epilogue loop.
7083 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
7084 compute and optimizing and alias test pruning after final
7085 vectorization factor computation.
7086 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
7088 (vect_transform_slp_perm_load): Properly compute the original
7089 number of vector load stmts.
7091 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7093 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
7094 "unlikely character , in @var" warning.
7096 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
7098 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
7099 (ix86_function_arg_advance): Ditto.
7100 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
7102 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7104 * function.h (struct rtl_data): Remove struct and accessor macros.
7105 * emit-rtl.h (struct rtl_data): Relocate to here.
7106 * Makefile.in (GTFILES): Add emit-rtl.h.
7107 * df-core.c: Include emit-rtl.h.
7108 * genattrtab.c: Likewise.
7109 * genconditions.c: Likewise.
7110 * genpreds.c: Likewise.
7111 * genrecog.c: Likewise.
7112 * regcprop.c: Likewise.
7113 * resource.c: Likewise.
7114 * sched-rgn.c: Likewise.
7115 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
7116 * config/i386/winnt.c: Likewise.
7118 2015-06-17 Jakub Jelinek <jakub@redhat.com>
7121 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
7122 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
7123 and has_force_vectorize_loops flags from cfun into
7125 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
7126 if simduid is non-NULL.
7127 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
7128 * passes.def (pass_simduid_cleanup): Add new pass after loop
7130 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
7131 indirection from htab argument's type.
7132 (shrink_simd_arrays): New function.
7133 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
7134 Don't call adjust_simduid_builtins if there are no loops.
7135 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
7136 (pass_simduid_cleanup::execute): New method.
7137 (make_pass_simduid_cleanup): New function.
7139 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
7141 * tree-core.h (tree_target_option): Make opts field a pointer to a
7142 cl_target_option instead of an instance of the struct.
7143 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
7145 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
7147 (copy_node_stat): Allocate and copy struct cl_target_option.
7149 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7151 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
7152 Remove conditional exposure of prototypes.
7153 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
7154 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
7155 definitions in tree.h with functions.
7156 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
7158 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
7160 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
7162 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
7163 (*cmp<mode>_signed): ... this.
7164 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
7165 (*cmp<mode>_unsigned): ... this. Remove %b.
7167 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
7169 * coretypes.h: Include input.h and as-a.h.
7170 * rtl.h: Include input.h and as-a.h for generator files.
7171 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
7172 * vec.c: Don't include diagnostic-core.h.
7173 * alias.c: Do not include input.h, line-map.h or is-a.h.
7175 * attribs.c: Likewise.
7176 * auto-inc-dec.c: Likewise.
7177 * auto-profile.c: Likewise.
7178 * bb-reorder.c: Likewise.
7179 * bt-load.c: Likewise.
7180 * builtins.c: Likewise.
7181 * caller-save.c: Likewise.
7182 * calls.c: Likewise.
7185 * cfganal.c: Likewise.
7186 * cfgbuild.c: Likewise.
7187 * cfgcleanup.c: Likewise.
7188 * cfgexpand.c: Likewise.
7189 * cfghooks.c: Likewise.
7190 * cfgloop.c: Likewise.
7191 * cfgloop.h: Likewise.
7192 * cfgloopanal.c: Likewise.
7193 * cfgloopmanip.c: Likewise.
7194 * cfgrtl.c: Likewise.
7195 * cgraph.c: Likewise.
7196 * cgraphbuild.c: Likewise.
7197 * cgraphclones.c: Likewise.
7198 * cgraphunit.c: Likewise.
7199 * cilk-common.c: Likewise.
7200 * combine-stack-adj.c: Likewise.
7201 * combine.c: Likewise.
7202 * compare-elim.c: Likewise.
7203 * convert.c: Likewise.
7204 * coverage.c: Likewise.
7205 * cppbuiltin.c: Likewise.
7206 * cprop.c: Likewise.
7208 * cselib.c: Likewise.
7209 * data-streamer-in.c: Likewise.
7210 * data-streamer-out.c: Likewise.
7211 * data-streamer.c: Likewise.
7212 * dbxout.c: Likewise.
7215 * debug.c: Likewise.
7216 * df-core.c: Likewise.
7217 * df-problems.c: Likewise.
7218 * df-scan.c: Likewise.
7221 * diagnostic-core.h: Likewise.
7222 * diagnostic.c: Likewise.
7223 * dojump.c: Likewise.
7224 * dominance.c: Likewise.
7225 * domwalk.c: Likewise.
7226 * double-int.c: Likewise.
7228 * dumpfile.c: Likewise.
7229 * dumpfile.h: Likewise.
7230 * dwarf2asm.c: Likewise.
7231 * dwarf2cfi.c: Likewise.
7232 * dwarf2out.c: Likewise.
7233 * emit-rtl.c: Likewise.
7234 * et-forest.c: Likewise.
7235 * except.c: Likewise.
7236 * explow.c: Likewise.
7237 * expmed.c: Likewise.
7239 * final.c: Likewise.
7240 * fixed-value.c: Likewise.
7241 * fold-const.c: Likewise.
7242 * function.c: Likewise.
7243 * fwprop.c: Likewise.
7244 * gcc-plugin.h: Likewise.
7246 * generic-match-head.c: Likewise.
7247 * ggc-page.c: Likewise.
7248 * gimple-builder.c: Likewise.
7249 * gimple-expr.c: Likewise.
7250 * gimple-fold.c: Likewise.
7251 * gimple-iterator.c: Likewise.
7252 * gimple-low.c: Likewise.
7253 * gimple-match-head.c: Likewise.
7254 * gimple-pretty-print.c: Likewise.
7255 * gimple-ssa-isolate-paths.c: Likewise.
7256 * gimple-ssa-strength-reduction.c: Likewise.
7257 * gimple-streamer-in.c: Likewise.
7258 * gimple-streamer-out.c: Likewise.
7259 * gimple-streamer.h: Likewise.
7260 * gimple-walk.c: Likewise.
7261 * gimple.c: Likewise.
7262 * gimplify-me.c: Likewise.
7263 * gimplify.c: Likewise.
7264 * godump.c: Likewise.
7265 * graph.c: Likewise.
7266 * graphite-blocking.c: Likewise.
7267 * graphite-dependences.c: Likewise.
7268 * graphite-interchange.c: Likewise.
7269 * graphite-isl-ast-to-gimple.c: Likewise.
7270 * graphite-optimize-isl.c: Likewise.
7271 * graphite-poly.c: Likewise.
7272 * graphite-scop-detection.c: Likewise.
7273 * graphite-sese-to-poly.c: Likewise.
7274 * graphite.c: Likewise.
7275 * haifa-sched.c: Likewise.
7276 * hw-doloop.c: Likewise.
7277 * ifcvt.c: Likewise.
7278 * init-regs.c: Likewise.
7279 * input.c: Likewise.
7280 * internal-fn.c: Likewise.
7281 * ipa-chkp.c: Likewise.
7282 * ipa-comdats.c: Likewise.
7283 * ipa-cp.c: Likewise.
7284 * ipa-devirt.c: Likewise.
7285 * ipa-icf-gimple.c: Likewise.
7286 * ipa-icf.c: Likewise.
7287 * ipa-inline-analysis.c: Likewise.
7288 * ipa-inline-transform.c: Likewise.
7289 * ipa-inline.c: Likewise.
7290 * ipa-polymorphic-call.c: Likewise.
7291 * ipa-profile.c: Likewise.
7292 * ipa-prop.c: Likewise.
7293 * ipa-pure-const.c: Likewise.
7294 * ipa-ref.c: Likewise.
7295 * ipa-reference.c: Likewise.
7296 * ipa-split.c: Likewise.
7297 * ipa-utils.c: Likewise.
7298 * ipa-visibility.c: Likewise.
7300 * ira-build.c: Likewise.
7301 * ira-color.c: Likewise.
7302 * ira-conflicts.c: Likewise.
7303 * ira-costs.c: Likewise.
7304 * ira-emit.c: Likewise.
7305 * ira-lives.c: Likewise.
7308 * langhooks.c: Likewise.
7310 * loop-doloop.c: Likewise.
7311 * loop-init.c: Likewise.
7312 * loop-invariant.c: Likewise.
7313 * loop-iv.c: Likewise.
7314 * loop-unroll.c: Likewise.
7315 * lower-subreg.c: Likewise.
7316 * lra-assigns.c: Likewise.
7317 * lra-coalesce.c: Likewise.
7318 * lra-constraints.c: Likewise.
7319 * lra-eliminations.c: Likewise.
7320 * lra-lives.c: Likewise.
7321 * lra-remat.c: Likewise.
7322 * lra-spills.c: Likewise.
7324 * lto-cgraph.c: Likewise.
7325 * lto-compress.c: Likewise.
7326 * lto-opts.c: Likewise.
7327 * lto-section-in.c: Likewise.
7328 * lto-section-out.c: Likewise.
7329 * lto-streamer-in.c: Likewise.
7330 * lto-streamer-out.c: Likewise.
7331 * lto-streamer.c: Likewise.
7333 * mode-switching.c: Likewise.
7334 * modulo-sched.c: Likewise.
7335 * omega.c: Likewise.
7336 * omp-low.c: Likewise.
7337 * optabs.c: Likewise.
7338 * opts-global.c: Likewise.
7340 * passes.c: Likewise.
7341 * plugin.c: Likewise.
7342 * postreload-gcse.c: Likewise.
7343 * postreload.c: Likewise.
7344 * predict.c: Likewise.
7345 * pretty-print.h: Likewise.
7346 * print-rtl.c: Likewise.
7347 * print-tree.c: Likewise.
7348 * profile.c: Likewise.
7350 * realmpfr.c: Likewise.
7351 * recog.c: Likewise.
7353 * reg-stack.c: Likewise.
7354 * regcprop.c: Likewise.
7355 * reginfo.c: Likewise.
7356 * regrename.c: Likewise.
7357 * regstat.c: Likewise.
7358 * reload.c: Likewise.
7359 * reload1.c: Likewise.
7360 * reorg.c: Likewise.
7361 * resource.c: Likewise.
7362 * rtl-chkp.c: Likewise.
7363 * rtl-error.c: Likewise.
7364 * rtlanal.c: Likewise.
7365 * rtlhooks.c: Likewise.
7366 * sanopt.c: Likewise.
7367 * sched-deps.c: Likewise.
7368 * sched-ebb.c: Likewise.
7369 * sched-rgn.c: Likewise.
7370 * sched-vis.c: Likewise.
7371 * sdbout.c: Likewise.
7372 * sel-sched-dump.c: Likewise.
7373 * sel-sched-ir.c: Likewise.
7374 * sel-sched.c: Likewise.
7376 * shrink-wrap.c: Likewise.
7377 * simplify-rtx.c: Likewise.
7378 * stack-ptr-mod.c: Likewise.
7379 * statistics.c: Likewise.
7381 * stor-layout.c: Likewise.
7382 * store-motion.c: Likewise.
7383 * streamer-hooks.c: Likewise.
7384 * stringpool.c: Likewise.
7385 * symtab.c: Likewise.
7386 * target-globals.c: Likewise.
7387 * targhooks.c: Likewise.
7388 * toplev.c: Likewise.
7389 * tracer.c: Likewise.
7390 * trans-mem.c: Likewise.
7391 * tree-affine.c: Likewise.
7392 * tree-browser.c: Likewise.
7393 * tree-call-cdce.c: Likewise.
7394 * tree-cfg.c: Likewise.
7395 * tree-cfgcleanup.c: Likewise.
7396 * tree-chkp-opt.c: Likewise.
7397 * tree-chkp.c: Likewise.
7398 * tree-chrec.c: Likewise.
7399 * tree-complex.c: Likewise.
7400 * tree-data-ref.c: Likewise.
7401 * tree-dfa.c: Likewise.
7402 * tree-diagnostic.c: Likewise.
7403 * tree-dump.c: Likewise.
7404 * tree-eh.c: Likewise.
7405 * tree-emutls.c: Likewise.
7406 * tree-if-conv.c: Likewise.
7407 * tree-inline.c: Likewise.
7408 * tree-into-ssa.c: Likewise.
7409 * tree-iterator.c: Likewise.
7410 * tree-loop-distribution.c: Likewise.
7411 * tree-nested.c: Likewise.
7412 * tree-nrv.c: Likewise.
7413 * tree-object-size.c: Likewise.
7414 * tree-outof-ssa.c: Likewise.
7415 * tree-parloops.c: Likewise.
7416 * tree-phinodes.c: Likewise.
7417 * tree-predcom.c: Likewise.
7418 * tree-pretty-print.c: Likewise.
7419 * tree-profile.c: Likewise.
7420 * tree-scalar-evolution.c: Likewise.
7421 * tree-sra.c: Likewise.
7422 * tree-ssa-address.c: Likewise.
7423 * tree-ssa-alias.c: Likewise.
7424 * tree-ssa-ccp.c: Likewise.
7425 * tree-ssa-coalesce.c: Likewise.
7426 * tree-ssa-copy.c: Likewise.
7427 * tree-ssa-copyrename.c: Likewise.
7428 * tree-ssa-dce.c: Likewise.
7429 * tree-ssa-dom.c: Likewise.
7430 * tree-ssa-dse.c: Likewise.
7431 * tree-ssa-forwprop.c: Likewise.
7432 * tree-ssa-ifcombine.c: Likewise.
7433 * tree-ssa-live.c: Likewise.
7434 * tree-ssa-loop-ch.c: Likewise.
7435 * tree-ssa-loop-im.c: Likewise.
7436 * tree-ssa-loop-ivcanon.c: Likewise.
7437 * tree-ssa-loop-ivopts.c: Likewise.
7438 * tree-ssa-loop-manip.c: Likewise.
7439 * tree-ssa-loop-niter.c: Likewise.
7440 * tree-ssa-loop-prefetch.c: Likewise.
7441 * tree-ssa-loop-unswitch.c: Likewise.
7442 * tree-ssa-loop.c: Likewise.
7443 * tree-ssa-math-opts.c: Likewise.
7444 * tree-ssa-operands.c: Likewise.
7445 * tree-ssa-phiopt.c: Likewise.
7446 * tree-ssa-phiprop.c: Likewise.
7447 * tree-ssa-pre.c: Likewise.
7448 * tree-ssa-propagate.c: Likewise.
7449 * tree-ssa-reassoc.c: Likewise.
7450 * tree-ssa-sccvn.c: Likewise.
7451 * tree-ssa-scopedtables.c: Likewise.
7452 * tree-ssa-sink.c: Likewise.
7453 * tree-ssa-strlen.c: Likewise.
7454 * tree-ssa-structalias.c: Likewise.
7455 * tree-ssa-tail-merge.c: Likewise.
7456 * tree-ssa-ter.c: Likewise.
7457 * tree-ssa-threadedge.c: Likewise.
7458 * tree-ssa-threadupdate.c: Likewise.
7459 * tree-ssa-uncprop.c: Likewise.
7460 * tree-ssa-uninit.c: Likewise.
7461 * tree-ssa.c: Likewise.
7462 * tree-ssanames.c: Likewise.
7463 * tree-stdarg.c: Likewise.
7464 * tree-streamer-in.c: Likewise.
7465 * tree-streamer-out.c: Likewise.
7466 * tree-streamer.c: Likewise.
7467 * tree-switch-conversion.c: Likewise.
7468 * tree-tailcall.c: Likewise.
7469 * tree-vect-data-refs.c: Likewise.
7470 * tree-vect-generic.c: Likewise.
7471 * tree-vect-loop-manip.c: Likewise.
7472 * tree-vect-loop.c: Likewise.
7473 * tree-vect-patterns.c: Likewise.
7474 * tree-vect-slp.c: Likewise.
7475 * tree-vect-stmts.c: Likewise.
7476 * tree-vectorizer.c: Likewise.
7477 * tree-vrp.c: Likewise.
7480 * ubsan.c: Likewise.
7481 * valtrack.c: Likewise.
7482 * value-prof.c: Likewise.
7483 * var-tracking.c: Likewise.
7484 * varasm.c: Likewise.
7485 * varpool.c: Likewise.
7486 * vmsdbgout.c: Likewise.
7487 * vtable-verify.c: Likewise.
7489 * wide-int.cc: Likewise.
7490 * xcoffout.c: Likewise.
7491 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
7492 * common/common-targhooks.c: Likewise.
7493 * config/aarch64/aarch64-builtins.c: Likewise.
7494 * config/aarch64/aarch64.c: Likewise.
7495 * config/alpha/alpha.c: Likewise.
7496 * config/arc/arc.c: Likewise.
7497 * config/arm/aarch-common.c: Likewise.
7498 * config/arm/arm-builtins.c: Likewise.
7499 * config/arm/arm-c.c: Likewise.
7500 * config/arm/arm.c: Likewise.
7501 * config/avr/avr-c.c: Likewise.
7502 * config/avr/avr-log.c: Likewise.
7503 * config/avr/avr.c: Likewise.
7504 * config/bfin/bfin.c: Likewise.
7505 * config/c6x/c6x.c: Likewise.
7506 * config/cr16/cr16.c: Likewise.
7507 * config/cris/cris.c: Likewise.
7508 * config/darwin-c.c: Likewise.
7509 * config/darwin.c: Likewise.
7510 * config/default-c.c: Likewise.
7511 * config/epiphany/epiphany.c: Likewise.
7512 * config/epiphany/mode-switch-use.c: Likewise.
7513 * config/epiphany/resolve-sw-modes.c: Likewise.
7514 * config/fr30/fr30.c: Likewise.
7515 * config/frv/frv.c: Likewise.
7516 * config/ft32/ft32.c: Likewise.
7517 * config/glibc-c.c: Likewise.
7518 * config/h8300/h8300.c: Likewise.
7519 * config/i386/i386-c.c: Likewise.
7520 * config/i386/i386.c: Likewise.
7521 * config/i386/msformat-c.c: Likewise.
7522 * config/i386/winnt-cxx.c: Likewise.
7523 * config/i386/winnt-stubs.c: Likewise.
7524 * config/i386/winnt.c: Likewise.
7525 * config/ia64/ia64-c.c: Likewise.
7526 * config/ia64/ia64.c: Likewise.
7527 * config/iq2000/iq2000.c: Likewise.
7528 * config/lm32/lm32.c: Likewise.
7529 * config/m32c/m32c-pragma.c: Likewise.
7530 * config/m32c/m32c.c: Likewise.
7531 * config/m32r/m32r.c: Likewise.
7532 * config/m68k/m68k.c: Likewise.
7533 * config/mcore/mcore.c: Likewise.
7534 * config/mep/mep-pragma.c: Likewise.
7535 * config/mep/mep.c: Likewise.
7536 * config/microblaze/microblaze-c.c: Likewise.
7537 * config/microblaze/microblaze.c: Likewise.
7538 * config/mips/mips.c: Likewise.
7539 * config/mmix/mmix.c: Likewise.
7540 * config/mn10300/mn10300.c: Likewise.
7541 * config/moxie/moxie.c: Likewise.
7542 * config/msp430/msp430-c.c: Likewise.
7543 * config/msp430/msp430.c: Likewise.
7544 * config/nds32/nds32-cost.c: Likewise.
7545 * config/nds32/nds32-fp-as-gp.c: Likewise.
7546 * config/nds32/nds32-intrinsic.c: Likewise.
7547 * config/nds32/nds32-isr.c: Likewise.
7548 * config/nds32/nds32-md-auxiliary.c: Likewise.
7549 * config/nds32/nds32-memory-manipulation.c: Likewise.
7550 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7551 * config/nds32/nds32-predicates.c: Likewise.
7552 * config/nds32/nds32.c: Likewise.
7553 * config/nios2/nios2.c: Likewise.
7554 * config/nvptx/nvptx.c: Likewise.
7555 * config/pa/pa.c: Likewise.
7556 * config/pdp11/pdp11.c: Likewise.
7557 * config/rl78/rl78-c.c: Likewise.
7558 * config/rl78/rl78.c: Likewise.
7559 * config/rs6000/rs6000-c.c: Likewise.
7560 * config/rs6000/rs6000.c: Likewise.
7561 * config/rx/rx.c: Likewise.
7562 * config/s390/s390-c.c: Likewise.
7563 * config/s390/s390.c: Likewise.
7564 * config/sh/sh-c.c: Likewise.
7565 * config/sh/sh-mem.cc: Likewise.
7566 * config/sh/sh.c: Likewise.
7567 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
7568 * config/sh/sh_treg_combine.cc: Likewise.
7569 * config/sol2-c.c: Likewise.
7570 * config/sol2-cxx.c: Likewise.
7571 * config/sol2-stubs.c: Likewise.
7572 * config/sol2.c: Likewise.
7573 * config/sparc/sparc-c.c: Likewise.
7574 * config/sparc/sparc.c: Likewise.
7575 * config/spu/spu-c.c: Likewise.
7576 * config/spu/spu.c: Likewise.
7577 * config/stormy16/stormy16.c: Likewise.
7578 * config/tilegx/mul-tables.c: Likewise.
7579 * config/tilegx/tilegx-c.c: Likewise.
7580 * config/tilegx/tilegx.c: Likewise.
7581 * config/tilepro/mul-tables.c: Likewise.
7582 * config/tilepro/tilepro-c.c: Likewise.
7583 * config/tilepro/tilepro.c: Likewise.
7584 * config/v850/v850-c.c: Likewise.
7585 * config/v850/v850.c: Likewise.
7586 * config/vax/vax.c: Likewise.
7587 * config/visium/visium.c: Likewise.
7588 * config/vms/vms-c.c: Likewise.
7589 * config/vms/vms.c: Likewise.
7590 * config/vxworks.c: Likewise.
7591 * config/winnt-c.c: Likewise.
7592 * config/xtensa/xtensa.c: Likewise.
7594 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
7596 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
7598 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
7600 2015-06-17 Richard Biener <rguenther@suse.de>
7602 PR tree-optimization/66251
7603 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
7604 stmts for SLP strided stores.
7607 2015-05-22 Richard Biener <rguenther@suse.de>
7609 PR tree-optimization/66251
7610 * tree-vect-stmts.c (vectorizable_conversion): Properly
7611 set STMT_VINFO_VEC_STMT even for the SLP case.
7613 2015-05-26 Michael Matz <matz@suse.de>
7616 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
7617 STMT_VINFO_VEC_STMT, also with SLP.
7619 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
7622 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
7623 (*avx_addsubv4df3_1s): Ditto.
7624 (*sse3_addsubv2df3_1): Ditto.
7625 (*sse3_addsubv2df3_1s): Ditto.
7626 (*avx_addsubv8sf3_1): Ditto.
7627 (*avx_addsubv8sf3_1s): Ditto.
7628 (*sse3_addsubv4sf3_1): Ditto.
7629 (*sse3_addsubv4sf3_1s): Ditto.
7631 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
7633 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
7634 (SYSROOT_SUFFIX_SPEC): Update.
7635 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
7636 (STARTFILE_PREFIX_SPEC): Update.
7637 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
7638 (MULTILIB_REQUIRED): New.
7639 (MULTILIB_OSDIRNAMES): New.
7640 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
7641 (MULTILIB_REQUIRED): New.
7642 (MULTILIB_OSDIRNAMES): New.
7644 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
7646 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
7647 * config/aarch64/aarch64-options-extensions.def: Update "fP",
7648 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
7649 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
7650 (AARCH64_FL_PAN): New.
7651 (AARCH64_FL_LOR): New.
7652 (AARCH64_FL_RDMA): New.
7653 (AARCH64_FL_FOR_ARCH8_1): New.
7654 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
7655 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
7657 2015-06-16 Martin Liska <mliska@suse.cz>
7659 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
7660 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
7663 2015-06-16 Richard Biener <rguenther@suse.de>
7665 * tree-vect-stmts.c (vectorizable_store): Adjust.
7666 (vectorizable_load): Likewise.
7667 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7669 (vect_create_data_ref_ptr): Likewise.
7670 (bump_vector_ptr): Adjust.
7672 2015-06-16 Richard Biener <rguenther@suse.de>
7674 * tree-vect-stmts.c (vectorizable_load): Properly start loads
7675 with the first element if this is grouped loads.
7677 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
7679 * config/arm/arm-protos.h (struct tune_params): Rename
7680 log_op_non_sc to log_op_non_short_circuit, and rename enum
7681 values to expand SC to SHORT_CIRCUIT.
7682 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
7683 to LOG_OP_NON_SHORT_CIRCUIT.
7684 (arm_fastmul_tune):Likewise
7685 (arm_strongarm_tune): Likewise.
7686 (arm_xscale_tune): Likewise.
7687 (arm_9e_tune): Likewise.
7688 (arm_marvell_pj4_tune): Likewise.
7689 (arm_v6t2_tune): Likewise.
7690 (arm_cortex_tune): Likewise.
7691 (arm_cortex_a8_tune): Likewise.
7692 (arm_cortex_a7_tune): Likewise.
7693 (arm_cortex_a15_tune): Likewise.
7694 (arm_cortex_a53_tune): Likewise.
7695 (arm_cortex_a57_tune): Likewise.
7696 (arm_xgene1_tune): Likewise.
7697 (arm_cortex_a5_tune): Likewise.
7698 (arm_cortex_a9_tune): Likewise.
7699 (arm_cortex_a12_tune): Likewise.
7700 (arm_v7m_tune): Likewise.
7701 (arm_cortex_m7_tune): Likewise.
7702 (arm_v6m_tune): Likewise.
7703 (arm_fa726te_tune): Likewise.
7705 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
7707 * altivec.md: Delete UNSPEC_VMLADDUHM.
7708 (mulv4si3_p8): New pattern.
7709 (mulv4si3): Use it for POWER8.
7710 (mulv8hi3): Use vmladduhm with zero addend.
7711 (altivec_vmladduhm): Descriptive RTL.
7713 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
7715 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
7716 to use neon_move instead of mov_imm.
7717 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
7718 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
7720 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
7721 aarch64_float_const_zero_rtx_p check before TFmode check.
7722 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
7724 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
7725 code and attributes to match. Change condition from register_operand
7726 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
7727 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
7730 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
7733 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
7736 2015-06-14 Shiva Chen <shiva0217@gmail.com>
7738 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
7739 HOST_WIDE_INT parameter.
7741 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
7744 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
7745 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
7747 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
7749 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
7751 * rtl.h (classify_insn): Declare.
7752 * emit-rtl.c (classify_insn): Move to...
7753 * rtl.c: ...here and add generator support.
7754 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
7755 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
7756 * genemit.c (gen_emit_seq): New function.
7757 (gen_expand, gen_split): Use it.
7759 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
7761 * tree.c (make_vector_stat): Fix comment to state that the
7762 function returns a VECTOR_CST.
7764 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
7766 * gensupport.h (add_implicit_parallel): Declare.
7767 * genrecog.c (add_implicit_parallel): Move to...
7768 * gensupport.c (add_implicit_parallel): ...here.
7769 (process_one_cond_exec): Use it.
7770 * genemit.c (gen_insn): Likewise.
7772 2015-06-13 Iain Sandoe <iain@codesourcery.com>
7775 * passes.c (rest_of_decl_compilation): Do not register globals for
7776 early debug if they are declared in built-ins.
7778 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
7780 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
7782 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7784 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
7786 (noce_try_cmove_arith): Likewise.
7787 (noce_get_alt_condition): Likewise.
7789 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7791 * common/config/i386/i386-common.c
7792 (OPTION_MASK_ISA_MWAITX_SET): New.
7793 (ix86_handle_option): Handle mwaitx.
7794 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
7795 (x86_64-*-*): Likewise.
7796 * config/i386/mwaitxintrin.h: New header.
7797 * config/i386/cpuid.h (bit_MWAITX): Define.
7798 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
7800 * config/i386/i386.opt (mwaitx): New.
7801 * config/i386/i386-builtin-types.def
7802 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
7803 * config/i386/i386-c.c: Define __MWAITX__ if needed.
7804 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
7806 (ix86_option_override_internal): Handle new option.
7807 (processor_alias_table): Added PTA_MWAITX.
7808 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
7809 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
7810 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
7811 IX86_BUILTIN_MONITORX built-ins.
7812 * config/i386/i386.h (TARGET_MWAITX): New.
7813 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
7815 (mwaitx): New pattern.
7816 (monitorx_<mode>): New pattern.
7817 * config/i386/x86intrin.h: Include mwaitxintrin.h.
7818 * doc/extend.texi: Document monitorx and mwaitx builtins.
7819 * doc/invoke.texi: Document -mmwaitx option.
7821 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
7823 * emit-rtl.c (need_atomic_barrier_p): Mask model with
7824 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
7826 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
7828 * dbxout.c (xcoff_debug_hooks): Provide a function for
7829 register_main_translation_unit hook.
7831 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
7833 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
7834 variants cases from switch.
7835 (rs6000_post_atomic_barrier): Same.
7836 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
7837 (rs6000_expand_atomic_exchange): Same.
7838 (rs6000_expand_atomic_op): Same.
7839 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
7840 SYNC variants cases from switch.
7841 (atomic_load): Same.
7842 (atomic_store): Same.
7844 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
7846 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
7849 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
7852 * dwarf2out.c (check_die): Check for common duplicate attributes.
7853 (add_location_or_const_value_attribute): Do not add duplicate
7855 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
7857 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
7858 (gen_type_die_with_usage): Call check_die.
7859 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
7861 2015-06-11 Jason Merrill <jason@redhat.com>
7863 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
7866 2015-06-11 Marek Polacek <polacek@redhat.com>
7868 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
7870 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
7873 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
7874 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
7875 (*addx_extend_sp32): Fix pasto.
7876 (*subx_extend): Rename into...
7877 (*subx_extend_sp32): ...this.
7878 (*adddi3_extend_sp32): Add earlyclobber.
7879 (*subdi3_insn_sp32): Likewise.
7880 (*subdi3_extend_sp32): Likewise.
7881 (*and_not_di_sp32): Likewise.
7882 (*or_not_di_sp32): Likewise.
7883 (*xor_not_di_sp32): Likewise.
7884 (*negdi2_sp32): Likewise.
7885 (*one_cmpldi2_sp32): Likewise.
7887 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
7889 * debug.h (struct gcc_debug_hooks): Add a
7890 register_main_translation_unit hook.
7891 * debug.c (do_nothing_debug_hooks): Provide a function for this
7893 * dbxout.c (dbx_debug_hooks): Likewise.
7894 * sdbout.c (sdb_debug_hooks): Likewise.
7895 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7896 * dwarf2out.c (main_translation_unit): New global variable.
7897 (dwarf2out_register_main_translation_unit): New function
7898 implementing the new hook.
7899 (dwarf2_debug_hooks): Assign
7900 dwarf2out_register_main_translation_unit to this new hook.
7901 (dwarf2out_init): Associate any main translation unit to
7904 2015-06-11 Marek Polacek <polacek@redhat.com>
7906 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
7908 2015-06-11 Marek Polacek <polacek@redhat.com>
7910 * match.pd: Use single_use throughout.
7912 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7914 * config/arm/arm.c (arm_option_params_internal): When optimising
7915 for speed set max_insns_skipped when arm_restrict_it.
7917 2015-06-11 Christian Bruel <christian.bruel@st.com>
7920 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
7922 (arm_cpu_builtins): New function.
7923 (arm_pragma_target_parse): Call arm_cpu_builtins.
7924 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
7925 (arm_register_target_pragmas): Likewise.
7926 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
7927 Call arm_register_target_pragmas.
7928 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
7929 (arm_pragma_target_parse): Likewise.
7931 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
7933 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
7934 of the second operand.
7936 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
7939 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
7940 to prepare mask operand for AVX512 modes.
7942 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
7945 * doc/md.texi (Machine Constraints): Document that on the PowerPC
7946 if you use a constraint that targets a VSX register, you must use
7947 %x<n> in the template.
7949 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
7951 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
7952 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
7953 (define_insn "trap"): New definition.
7955 2015-06-10 Richard Biener <rguenther@suse.de>
7957 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
7959 (vect_supported_load_permutation_p): ... here. Handle
7960 supportable permutations in reductions.
7961 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
7962 for vectorizing strided group loads.
7964 2015-06-10 Jakub Jelinek <jakub@redhat.com>
7967 * config/i386/i386.c (ix86_split_long_move): For collisions
7968 involving direct tls segment refs, move the UNSPEC_TP possibly
7969 wrapped in ZERO_EXTEND out of the address for lea, to each of
7972 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7974 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
7975 dmb sy. Adjust tabs.
7977 2015-06-10 Tom de Vries <tom@codesourcery.com>
7979 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
7981 2015-06-10 Martin Liska <mliska@suse.cz>
7984 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
7985 all enum values in mem_alloc_origin.
7986 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
7988 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
7989 * bitmap.c (bitmap_register): Likewise.
7990 (dump_bitmap_statistics): Likewise.
7991 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
7992 (ggc_record_overhead): Likewise.
7993 * hash-map.h: Likewise.
7994 * hash-set.h: Likewise.
7995 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
7996 * hash-table.h: Likewise.
7997 * vec.c (vec_prefix::register_overhead): Likewise.
7998 (vec_prefix::release_overhead): Likewise.
7999 (dump_vec_loc_statistics): Likewise.
8001 2015-06-09 Christian Bruel <christian.bruel@st.com>
8004 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
8005 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
8006 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
8007 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
8008 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
8009 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
8010 (arm_valid_target_attribute_p): Likewise.
8011 (arm_set_current_function, arm_can_inline_p): Likewise.
8012 (arm_valid_target_attribute_rec): Likewise.
8013 (arm_previous_fndecl): New variable.
8014 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8015 (TARGET_CAN_INLINE_P): Define.
8016 (arm_asm_trampoline_template): Emit mode.
8017 (arm_file_start): Don't set unified syntax.
8018 (arm_declare_function_name): Set unified syntax and mode.
8019 (arm_option_override): Init target_option_default_node.
8020 and target_option_current_node.
8021 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
8022 (*call_symbol): Likewise.
8023 * doc/extend.texi: Document ARM/Thumb target attribute.
8024 * doc/invoke.texi: Likewise.
8026 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8029 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8030 PR rtl-optimization/64164
8031 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8032 * tree-ssa-copyrename.c: Removed.
8033 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8034 -ftree-coalesce-vars.
8035 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8036 * common.opt (ftree-copyrename): Ignore.
8037 (ftree-coalesce-inlined-vars): Likewise.
8038 * doc/invoke.texi: Remove the ignored options above.
8039 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8040 * tree-ssa-coalesce.h: ... here.
8041 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8042 headers required by it.
8043 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8044 across variables when flag_tree_coalesce_vars. Check register
8045 use and promoted modes to allow coalescing. Moved to
8046 tree-ssa-coalesce.c.
8047 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8048 with its member functions to tree-ssa-coalesce.c.
8049 (var_map_base_init): Likewise. Renamed to
8050 compute_samebase_partition_bases.
8051 (partition_view_normal): Drop want_bases parameter.
8052 (partition_view_bitmap): Likewise.
8053 * tree-ssa-live.h: Adjust declarations.
8054 * tree-ssa-coalesce.c: Include explow.h.
8055 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8056 default defs at the entry point.
8057 (dump_part_var_map): New.
8058 (compute_optimized_partition_bases): New, called by...
8059 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8060 of compute_samebase_partition_bases. Adjust.
8061 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8062 * cfgexpand.c (leader_merge): New.
8063 (get_rtl_for_parm_ssa_default_def): New.
8064 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8065 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8066 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8067 redundant MEM attr setting.
8068 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8070 (expand_one_stack_var): ... this. New wrapper to check and
8071 skip already expanded SSA partitions.
8072 (record_alignment_for_reg_var): New, factored out of...
8073 (expand_one_var): ... this.
8074 (expand_one_ssa_partition): New.
8075 (adjust_one_expanded_partition_var): New.
8076 (expand_one_register_var): Check and skip already expanded SSA
8078 (expand_used_vars): Don't create DECLs for anonymous SSA
8079 names. Expand all SSA partitions, then adjust all SSA names.
8080 (pass::execute): Replace the loops that set
8081 SA.partition_to_pseudo from partition leaders and cleared
8082 DECL_RTL for multi-location variables, and that which used to
8083 rename vars and set attrs, with one that clears DECL_RTL and
8084 checks that PARMs and RESULTs default_defs match DECL_RTL.
8085 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8086 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8087 * explow.c (promote_ssa_mode): New.
8088 * explow.h (promote_ssa_mode): Declare.
8089 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8090 * function.c: Include cfgexpand.h.
8091 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8092 (use_register_for_parm_decl): Wrapper for the above to
8093 special-case the result_ptr.
8094 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8095 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8097 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8098 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
8099 (assign_parm_setup_block): Prefer SSA-assigned location.
8100 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
8101 if stack_parm is NULL.
8102 (assign_parm_setup_stack): Prefer SSA-assigned location.
8103 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
8104 rtl before testing for pointer bounds. Special-case result_ptr.
8105 (expand_function_start): Maybe reset DECL_RTL of result.
8106 Prefer SSA-assigned location for result and static chain.
8107 Factor out DECL_RESULT and SET_DECL_RTL.
8108 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8109 anonymous SSA names. Use promote_ssa_mode.
8110 (get_temp_reg): Likewise.
8111 (remove_ssa_form): Adjust.
8112 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8113 and get its reg_usage for reg invalidation.
8114 (compute_bb_dataflow): Pass it insn.
8115 (emit_notes_in_bb): Likewise.
8116 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8117 fail assert on conversion between unsigned types.
8119 2015-06-09 Tom de Vries <tom@codesourcery.com>
8121 PR tree-optimization/65460
8122 * omp-low.c (expand_omp_target): Set parallelized_function on
8123 cgraph_node for child_fn.
8125 2015-06-09 Tom de Vries <tom@codesourcery.com>
8127 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
8128 parallelized_function before add_new_function.
8130 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
8132 * gcc-plugin.h: Move decls to plugin.h and include it.
8133 * plugin.h: Relocate decls from gcc-plugin.h
8134 * ggc-page.c: Include required header files.
8135 * passes.c: Likewise.
8136 * cgraphunit.c: Likewise.
8138 2015-06-09 Tom de Vries <tom@codesourcery.com>
8140 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
8142 2015-06-09 Jason Merrill <jason@redhat.com>
8145 * toplev.c (check_global_declaration): Don't warn about a clone.
8147 2015-06-09 Marek Polacek <polacek@redhat.com>
8149 PR tree-optimization/66299
8150 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
8151 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
8154 2015-06-09 Richard Biener <rguenther@suse.de>
8156 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
8157 (vect_analyze_slp_instance): Instead do not falsely drop
8160 2015-06-09 Richard Biener <rguenther@suse.de>
8163 * match.pd: Handle A % (unsigned)(1 << B).
8165 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
8167 * varasm.c (output_object_block_htab): Remove.
8168 (output_object_block_compare): New.
8169 (output_object_blocks): Sort named object_blocks before outputting
8172 2015-06-09 Richard Biener <rguenther@suse.de>
8174 PR tree-optimization/66419
8175 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
8176 consider GROUP_GAP when detecting a perfect subchain.
8178 2015-06-09 Nick Clifton <nickc@redhat.com>
8180 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
8181 place read only data in the .frodata section.
8183 2015-06-09 Shiva Chen <shiva0217@gmail.com>
8185 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
8186 (atomic_store<mode>): Likewise.
8188 2015-06-09 Richard Biener <rguenther@suse.de>
8190 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
8192 2015-06-09 Richard Biener <rguenther@suse.de>
8195 * tree-inline.c (insert_init_debug_bind): Unshare value.
8197 2015-06-09 Richard Biener <rguenther@suse.de>
8199 PR tree-optimization/66396
8200 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
8201 Rename virtual operands.
8203 2015-06-09 Tom de Vries <tom@codesourcery.com>
8205 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
8206 always return false.
8208 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8210 PR rtl-optimization/64164
8211 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8212 * tree-ssa-copyrename.c: Removed.
8213 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8214 -ftree-coalesce-vars.
8215 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8216 * common.opt (ftree-copyrename): Ignore.
8217 (ftree-coalesce-inlined-vars): Likewise.
8218 * doc/invoke.texi: Remove the ignored options above.
8219 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8220 * tree-ssa-coalesce.h: ... here.
8221 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8222 headers required by it.
8223 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8224 across variables when flag_tree_coalesce_vars. Check register
8225 use and promoted modes to allow coalescing. Moved to
8226 tree-ssa-coalesce.c.
8227 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8228 with its member functions to tree-ssa-coalesce.c.
8229 (var_map_base_init): Likewise. Renamed to
8230 compute_samebase_partition_bases.
8231 (partition_view_normal): Drop want_bases parameter.
8232 (partition_view_bitmap): Likewise.
8233 * tree-ssa-live.h: Adjust declarations.
8234 * tree-ssa-coalesce.c: Include explow.h.
8235 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8236 default defs at the entry point.
8237 (dump_part_var_map): New.
8238 (compute_optimized_partition_bases): New, called by...
8239 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8240 of compute_samebase_partition_bases. Adjust.
8241 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8242 * cfgexpand.c (leader_merge): New.
8243 (get_rtl_for_parm_ssa_default_def): New.
8244 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8245 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8246 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8247 redundant MEM attr setting.
8248 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8250 (expand_one_stack_var): ... this. New wrapper to check and
8251 skip already expanded SSA partitions.
8252 (record_alignment_for_reg_var): New, factored out of...
8253 (expand_one_var): ... this.
8254 (expand_one_ssa_partition): New.
8255 (adjust_one_expanded_partition_var): New.
8256 (expand_one_register_var): Check and skip already expanded SSA
8258 (expand_used_vars): Don't create DECLs for anonymous SSA
8259 names. Expand all SSA partitions, then adjust all SSA names.
8260 (pass::execute): Replace the loops that set
8261 SA.partition_to_pseudo from partition leaders and cleared
8262 DECL_RTL for multi-location variables, and that which used to
8263 rename vars and set attrs, with one that clears DECL_RTL and
8264 checks that PARMs and RESULTs default_defs match DECL_RTL.
8265 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8266 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
8267 * explow.c (promote_ssa_mode): New.
8268 * explow.h (promote_ssa_mode): Declare.
8269 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8270 * function.c: Include cfgexpand.h.
8271 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8272 (use_register_for_parm_decl): Wrapper for the above to
8273 special-case the result_ptr.
8274 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8275 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8277 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8278 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
8279 (assign_parm_setup_block): Prefer SSA-assigned location.
8280 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
8281 if stack_parm is NULL.
8282 (assign_parm_setup_stack): Prefer SSA-assigned location.
8283 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
8284 rtl before testing for pointer bounds. Special-case result_ptr.
8285 (expand_function_start): Maybe reset DECL_RTL of result.
8286 Prefer SSA-assigned location for result and static chain.
8287 Factor out DECL_RESULT and SET_DECL_RTL.
8288 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8289 anonymous SSA names. Use promote_ssa_mode.
8290 (get_temp_reg): Likewise.
8291 (remove_ssa_form): Adjust.
8292 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8293 and get its reg_usage for reg invalidation.
8294 (compute_bb_dataflow): Pass it insn.
8295 (emit_notes_in_bb): Likewise.
8296 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
8297 fail assert on conversion between unsigned types.
8299 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8302 * tree-inline.c (reset_debug_binding): New.
8303 (reset_debug_bindings): Likewise.
8304 (expand_call_inline): Call it.
8306 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
8308 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
8311 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
8313 * lto-streamer-out.c (lto_output_location): Stream
8314 reserved locations correctly.
8315 * lto-streamer-in.c (lto_output_location): Likewise.
8317 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
8319 * coretypes.h: Include hash-table.h and hash-set.h for host files.
8320 * ggc.h: Don't include statistics.h>
8321 * hash-map.h: Remove all includes.
8322 * hash-set.h: Likewise.
8323 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
8324 the include list. Remove <new>.
8325 * inchash.h: Remove all includes.
8326 * mem-stats.h: Likewise.
8327 * vec.h: No special processing for generators or ggc.
8328 * alias.c : Adjust include files.
8329 * alloc-pool.c : Likewise.
8330 * alloc-pool.h : Likewise.
8331 * asan.c : Likewise.
8332 * attribs.c : Likewise.
8333 * auto-inc-dec.c : Likewise.
8334 * auto-profile.c : Likewise.
8335 * bb-reorder.c : Likewise.
8336 * bitmap.c : Likewise.
8337 * bitmap.h : Likewise.
8338 * bt-load.c : Likewise.
8339 * builtins.c : Likewise.
8340 * caller-save.c : Likewise.
8341 * calls.c : Likewise.
8342 * ccmp.c : Likewise.
8344 * cfganal.c : Likewise.
8345 * cfgbuild.c : Likewise.
8346 * cfgcleanup.c : Likewise.
8347 * cfgexpand.c : Likewise.
8348 * cfghooks.c : Likewise.
8349 * cfgloop.c : Likewise.
8350 * cfgloop.h : Likewise.
8351 * cfgloopanal.c : Likewise.
8352 * cfgloopmanip.c : Likewise.
8353 * cfgrtl.c : Likewise.
8354 * cgraph.c : Likewise.
8355 * cgraphbuild.c : Likewise.
8356 * cgraphclones.c : Likewise.
8357 * cgraphunit.c : Likewise.
8358 * cilk-common.c : Likewise.
8359 * combine-stack-adj.c : Likewise.
8360 * combine.c : Likewise.
8361 * compare-elim.c : Likewise.
8362 * context.c : Likewise.
8363 * convert.c : Likewise.
8364 * coverage.c : Likewise.
8365 * cppbuiltin.c : Likewise.
8366 * cprop.c : Likewise.
8368 * cselib.c : Likewise.
8369 * data-streamer-in.c : Likewise.
8370 * data-streamer-out.c : Likewise.
8371 * data-streamer.c : Likewise.
8372 * data-streamer.h : Likewise.
8373 * dbxout.c : Likewise.
8376 * debug.c : Likewise.
8377 * df-core.c : Likewise.
8378 * df-problems.c : Likewise.
8379 * df-scan.c : Likewise.
8382 * dojump.c : Likewise.
8383 * dominance.c : Likewise.
8384 * domwalk.c : Likewise.
8385 * double-int.c : Likewise.
8387 * dumpfile.c : Likewise.
8388 * dwarf2asm.c : Likewise.
8389 * dwarf2cfi.c : Likewise.
8390 * dwarf2out.c : Likewise.
8391 * emit-rtl.c : Likewise.
8392 * et-forest.c : Likewise.
8393 * except.c : Likewise.
8394 * except.h : Likewise.
8395 * explow.c : Likewise.
8396 * expmed.c : Likewise.
8397 * expr.c : Likewise.
8398 * final.c : Likewise.
8399 * fixed-value.c : Likewise.
8400 * fold-const.c : Likewise.
8401 * function.c : Likewise.
8402 * fwprop.c : Likewise.
8403 * gcc-plugin.h : Likewise.
8405 * gcse-common.c : Likewise.
8406 * gcse.c : Likewise.
8407 * genattrtab.c : Likewise.
8408 * genautomata.c : Likewise.
8409 * genconditions.c : Likewise.
8410 * genemit.c : Likewise.
8411 * generic-match-head.c : Likewise.
8412 * genextract.c : Likewise.
8413 * gengtype-state.c : Likewise.
8414 * gengtype.c : Likewise.
8415 * genhooks.c : Likewise.
8416 * genmatch.c : Likewise.
8417 * genmodes.c : Likewise.
8418 * genrecog.c : Likewise.
8419 * gensupport.c : Likewise.
8420 * ggc-common.c : Likewise.
8421 * ggc-internal.h : Likewise.
8422 * ggc-none.c : Likewise.
8423 * ggc-page.c : Likewise.
8424 * gimple-builder.c : Likewise.
8425 * gimple-expr.c : Likewise.
8426 * gimple-fold.c : Likewise.
8427 * gimple-iterator.c : Likewise.
8428 * gimple-low.c : Likewise.
8429 * gimple-match-head.c : Likewise.
8430 * gimple-pretty-print.c : Likewise.
8431 * gimple-ssa-isolate-paths.c : Likewise.
8432 * gimple-ssa-strength-reduction.c : Likewise.
8433 * gimple-ssa.h : Likewise.
8434 * gimple-streamer-in.c : Likewise.
8435 * gimple-streamer-out.c : Likewise.
8436 * gimple-streamer.h : Likewise.
8437 * gimple-walk.c : Likewise.
8438 * gimple.c : Likewise.
8439 * gimplify-me.c : Likewise.
8440 * gimplify.c : Likewise.
8441 * godump.c : Likewise.
8442 * graph.c : Likewise.
8443 * graphds.c : Likewise.
8444 * graphite-blocking.c : Likewise.
8445 * graphite-dependences.c : Likewise.
8446 * graphite-interchange.c : Likewise.
8447 * graphite-isl-ast-to-gimple.c : Likewise.
8448 * graphite-optimize-isl.c : Likewise.
8449 * graphite-poly.c : Likewise.
8450 * graphite-scop-detection.c : Likewise.
8451 * graphite-sese-to-poly.c : Likewise.
8452 * graphite.c : Likewise.
8453 * haifa-sched.c : Likewise.
8454 * hard-reg-set.h : Likewise.
8455 * hw-doloop.c : Likewise.
8456 * ifcvt.c : Likewise.
8457 * inchash.c : Likewise.
8458 * incpath.c : Likewise.
8459 * init-regs.c : Likewise.
8460 * input.c : Likewise.
8461 * internal-fn.c : Likewise.
8462 * ipa-chkp.c : Likewise.
8463 * ipa-comdats.c : Likewise.
8464 * ipa-cp.c : Likewise.
8465 * ipa-devirt.c : Likewise.
8466 * ipa-icf-gimple.c : Likewise.
8467 * ipa-icf.c : Likewise.
8468 * ipa-inline-analysis.c : Likewise.
8469 * ipa-inline-transform.c : Likewise.
8470 * ipa-inline.c : Likewise.
8471 * ipa-polymorphic-call.c : Likewise.
8472 * ipa-profile.c : Likewise.
8473 * ipa-prop.c : Likewise.
8474 * ipa-pure-const.c : Likewise.
8475 * ipa-ref.c : Likewise.
8476 * ipa-reference.c : Likewise.
8477 * ipa-split.c : Likewise.
8478 * ipa-utils.c : Likewise.
8479 * ipa-visibility.c : Likewise.
8481 * ira-build.c : Likewise.
8482 * ira-color.c : Likewise.
8483 * ira-conflicts.c : Likewise.
8484 * ira-costs.c : Likewise.
8485 * ira-emit.c : Likewise.
8486 * ira-lives.c : Likewise.
8488 * jump.c : Likewise.
8489 * langhooks.c : Likewise.
8491 * libfuncs.h : Likewise.
8492 * lists.c : Likewise.
8493 * loop-doloop.c : Likewise.
8494 * loop-init.c : Likewise.
8495 * loop-invariant.c : Likewise.
8496 * loop-iv.c : Likewise.
8497 * loop-unroll.c : Likewise.
8498 * lower-subreg.c : Likewise.
8499 * lra-assigns.c : Likewise.
8500 * lra-coalesce.c : Likewise.
8501 * lra-constraints.c : Likewise.
8502 * lra-eliminations.c : Likewise.
8503 * lra-lives.c : Likewise.
8504 * lra-remat.c : Likewise.
8505 * lra-spills.c : Likewise.
8507 * lto-cgraph.c : Likewise.
8508 * lto-compress.c : Likewise.
8509 * lto-opts.c : Likewise.
8510 * lto-section-in.c : Likewise.
8511 * lto-section-out.c : Likewise.
8512 * lto-streamer-in.c : Likewise.
8513 * lto-streamer-out.c : Likewise.
8514 * lto-streamer.c : Likewise.
8515 * lto-streamer.h : Likewise.
8517 * mode-switching.c : Likewise.
8518 * modulo-sched.c : Likewise.
8519 * omega.c : Likewise.
8520 * omp-low.c : Likewise.
8521 * optabs.c : Likewise.
8522 * opts-global.c : Likewise.
8523 * opts.h : Likewise.
8524 * passes.c : Likewise.
8525 * plugin.c : Likewise.
8526 * postreload-gcse.c : Likewise.
8527 * postreload.c : Likewise.
8528 * predict.c : Likewise.
8529 * print-rtl.c : Likewise.
8530 * print-tree.c : Likewise.
8531 * profile.c : Likewise.
8532 * read-md.c : Likewise.
8533 * read-md.h : Likewise.
8534 * read-rtl.c : Likewise.
8535 * real.c : Likewise.
8536 * realmpfr.c : Likewise.
8537 * recog.c : Likewise.
8539 * reg-stack.c : Likewise.
8540 * regcprop.c : Likewise.
8541 * reginfo.c : Likewise.
8542 * regrename.c : Likewise.
8543 * regstat.c : Likewise.
8544 * reload.c : Likewise.
8545 * reload1.c : Likewise.
8546 * reorg.c : Likewise.
8547 * resource.c : Likewise.
8548 * rtl-chkp.c : Likewise.
8551 * rtlanal.c : Likewise.
8552 * rtlhash.c : Likewise.
8553 * rtlhash.h : Likewise.
8554 * rtlhooks.c : Likewise.
8555 * sanopt.c : Likewise.
8556 * sched-deps.c : Likewise.
8557 * sched-ebb.c : Likewise.
8558 * sched-rgn.c : Likewise.
8559 * sched-vis.c : Likewise.
8560 * sdbout.c : Likewise.
8561 * sel-sched-dump.c : Likewise.
8562 * sel-sched-ir.c : Likewise.
8563 * sel-sched-ir.h : Likewise.
8564 * sel-sched.c : Likewise.
8565 * sese.c : Likewise.
8566 * shrink-wrap.c : Likewise.
8567 * shrink-wrap.h : Likewise.
8568 * simplify-rtx.c : Likewise.
8569 * stack-ptr-mod.c : Likewise.
8570 * statistics.c : Likewise.
8571 * stmt.c : Likewise.
8572 * stor-layout.c : Likewise.
8573 * store-motion.c : Likewise.
8574 * stringpool.c : Likewise.
8575 * symtab.c : Likewise.
8576 * target-globals.c : Likewise.
8577 * targhooks.c : Likewise.
8578 * tlink.c : Likewise.
8579 * toplev.c : Likewise.
8580 * tracer.c : Likewise.
8581 * trans-mem.c : Likewise.
8582 * tree-affine.c : Likewise.
8583 * tree-affine.h : Likewise.
8584 * tree-browser.c : Likewise.
8585 * tree-call-cdce.c : Likewise.
8586 * tree-cfg.c : Likewise.
8587 * tree-cfgcleanup.c : Likewise.
8588 * tree-chkp-opt.c : Likewise.
8589 * tree-chkp.c : Likewise.
8590 * tree-chrec.c : Likewise.
8591 * tree-complex.c : Likewise.
8592 * tree-data-ref.c : Likewise.
8593 * tree-dfa.c : Likewise.
8594 * tree-diagnostic.c : Likewise.
8595 * tree-dump.c : Likewise.
8596 * tree-eh.c : Likewise.
8597 * tree-eh.h : Likewise.
8598 * tree-emutls.c : Likewise.
8599 * tree-hasher.h : Likewise.
8600 * tree-if-conv.c : Likewise.
8601 * tree-inline.c : Likewise.
8602 * tree-inline.h : Likewise.
8603 * tree-into-ssa.c : Likewise.
8604 * tree-iterator.c : Likewise.
8605 * tree-loop-distribution.c : Likewise.
8606 * tree-nested.c : Likewise.
8607 * tree-nrv.c : Likewise.
8608 * tree-object-size.c : Likewise.
8609 * tree-outof-ssa.c : Likewise.
8610 * tree-parloops.c : Likewise.
8611 * tree-phinodes.c : Likewise.
8612 * tree-predcom.c : Likewise.
8613 * tree-pretty-print.c : Likewise.
8614 * tree-profile.c : Likewise.
8615 * tree-scalar-evolution.c : Likewise.
8616 * tree-sra.c : Likewise.
8617 * tree-ssa-address.c : Likewise.
8618 * tree-ssa-alias.c : Likewise.
8619 * tree-ssa-ccp.c : Likewise.
8620 * tree-ssa-coalesce.c : Likewise.
8621 * tree-ssa-copy.c : Likewise.
8622 * tree-ssa-copyrename.c : Likewise.
8623 * tree-ssa-dce.c : Likewise.
8624 * tree-ssa-dom.c : Likewise.
8625 * tree-ssa-dse.c : Likewise.
8626 * tree-ssa-forwprop.c : Likewise.
8627 * tree-ssa-ifcombine.c : Likewise.
8628 * tree-ssa-live.c : Likewise.
8629 * tree-ssa-loop-ch.c : Likewise.
8630 * tree-ssa-loop-im.c : Likewise.
8631 * tree-ssa-loop-ivcanon.c : Likewise.
8632 * tree-ssa-loop-ivopts.c : Likewise.
8633 * tree-ssa-loop-manip.c : Likewise.
8634 * tree-ssa-loop-niter.c : Likewise.
8635 * tree-ssa-loop-prefetch.c : Likewise.
8636 * tree-ssa-loop-unswitch.c : Likewise.
8637 * tree-ssa-loop.c : Likewise.
8638 * tree-ssa-math-opts.c : Likewise.
8639 * tree-ssa-operands.c : Likewise.
8640 * tree-ssa-phiopt.c : Likewise.
8641 * tree-ssa-phiprop.c : Likewise.
8642 * tree-ssa-pre.c : Likewise.
8643 * tree-ssa-propagate.c : Likewise.
8644 * tree-ssa-reassoc.c : Likewise.
8645 * tree-ssa-sccvn.c : Likewise.
8646 * tree-ssa-scopedtables.c : Likewise.
8647 * tree-ssa-sink.c : Likewise.
8648 * tree-ssa-strlen.c : Likewise.
8649 * tree-ssa-structalias.c : Likewise.
8650 * tree-ssa-tail-merge.c : Likewise.
8651 * tree-ssa-ter.c : Likewise.
8652 * tree-ssa-threadedge.c : Likewise.
8653 * tree-ssa-threadupdate.c : Likewise.
8654 * tree-ssa-uncprop.c : Likewise.
8655 * tree-ssa-uninit.c : Likewise.
8656 * tree-ssa.c : Likewise.
8657 * tree-ssanames.c : Likewise.
8658 * tree-stdarg.c : Likewise.
8659 * tree-streamer-in.c : Likewise.
8660 * tree-streamer-out.c : Likewise.
8661 * tree-streamer.c : Likewise.
8662 * tree-streamer.h : Likewise.
8663 * tree-switch-conversion.c : Likewise.
8664 * tree-tailcall.c : Likewise.
8665 * tree-vect-data-refs.c : Likewise.
8666 * tree-vect-generic.c : Likewise.
8667 * tree-vect-loop-manip.c : Likewise.
8668 * tree-vect-loop.c : Likewise.
8669 * tree-vect-patterns.c : Likewise.
8670 * tree-vect-slp.c : Likewise.
8671 * tree-vect-stmts.c : Likewise.
8672 * tree-vectorizer.c : Likewise.
8673 * tree-vectorizer.h : Likewise.
8674 * tree-vrp.c : Likewise.
8675 * tree.c : Likewise.
8676 * tsan.c : Likewise.
8677 * ubsan.c : Likewise.
8678 * valtrack.c : Likewise.
8679 * valtrack.h : Likewise.
8680 * value-prof.c : Likewise.
8681 * var-tracking.c : Likewise.
8682 * varasm.c : Likewise.
8683 * varpool.c : Likewise.
8685 * vmsdbgout.c : Likewise.
8686 * vtable-verify.c : Likewise.
8687 * vtable-verify.h : Likewise.
8689 * wide-int.cc : Likewise.
8690 * xcoffout.c : Likewise.
8691 * config/aarch64/aarch64-builtins.c : Likewise.
8692 * config/aarch64/aarch64.c : Likewise.
8693 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
8694 * config/alpha/alpha.c : Likewise.
8695 * config/arc/arc.c : Likewise.
8696 * config/arm/aarch-common.c : Likewise.
8697 * config/arm/arm-builtins.c : Likewise.
8698 * config/arm/arm-c.c : Likewise.
8699 * config/arm/arm.c : Likewise.
8700 * config/avr/avr-c.c : Likewise.
8701 * config/avr/avr-log.c : Likewise.
8702 * config/avr/avr.c : Likewise.
8703 * config/bfin/bfin.c : Likewise.
8704 * config/c6x/c6x.c : Likewise.
8705 * config/cr16/cr16.c : Likewise.
8706 * config/cris/cris.c : Likewise.
8707 * config/darwin-c.c : Likewise.
8708 * config/darwin.c : Likewise.
8709 * config/default-c.c : Likewise.
8710 * config/epiphany/epiphany.c : Likewise.
8711 * config/epiphany/mode-switch-use.c : Likewise.
8712 * config/epiphany/resolve-sw-modes.c : Likewise.
8713 * config/fr30/fr30.c : Likewise.
8714 * config/frv/frv.c : Likewise.
8715 * config/ft32/ft32.c : Likewise.
8716 * config/glibc-c.c : Likewise.
8717 * config/h8300/h8300.c : Likewise.
8718 * config/i386/i386-c.c : Likewise.
8719 * config/i386/i386.c : Likewise.
8720 * config/i386/msformat-c.c : Likewise.
8721 * config/i386/winnt-cxx.c : Likewise.
8722 * config/i386/winnt-stubs.c : Likewise.
8723 * config/i386/winnt.c : Likewise.
8724 * config/ia64/ia64-c.c : Likewise.
8725 * config/ia64/ia64.c : Likewise.
8726 * config/iq2000/iq2000.c : Likewise.
8727 * config/lm32/lm32.c : Likewise.
8728 * config/m32c/m32c-pragma.c : Likewise.
8729 * config/m32c/m32c.c : Likewise.
8730 * config/m32r/m32r.c : Likewise.
8731 * config/m68k/m68k.c : Likewise.
8732 * config/mcore/mcore.c : Likewise.
8733 * config/mep/mep-pragma.c : Likewise.
8734 * config/mep/mep.c : Likewise.
8735 * config/microblaze/microblaze-c.c : Likewise.
8736 * config/microblaze/microblaze.c : Likewise.
8737 * config/mips/mips.c : Likewise.
8738 * config/mmix/mmix.c : Likewise.
8739 * config/mn10300/mn10300.c : Likewise.
8740 * config/moxie/moxie.c : Likewise.
8741 * config/msp430/msp430-c.c : Likewise.
8742 * config/msp430/msp430.c : Likewise.
8743 * config/nds32/nds32-cost.c : Likewise.
8744 * config/nds32/nds32-fp-as-gp.c : Likewise.
8745 * config/nds32/nds32-intrinsic.c : Likewise.
8746 * config/nds32/nds32-isr.c : Likewise.
8747 * config/nds32/nds32-md-auxiliary.c : Likewise.
8748 * config/nds32/nds32-memory-manipulation.c : Likewise.
8749 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
8750 * config/nds32/nds32-predicates.c : Likewise.
8751 * config/nds32/nds32.c : Likewise.
8752 * config/nios2/nios2.c : Likewise.
8753 * config/nvptx/nvptx.c : Likewise.
8754 * config/pa/pa.c : Likewise.
8755 * config/pdp11/pdp11.c : Likewise.
8756 * config/rl78/rl78-c.c : Likewise.
8757 * config/rl78/rl78.c : Likewise.
8758 * config/rs6000/rs6000-c.c : Likewise.
8759 * config/rs6000/rs6000.c : Likewise.
8760 * config/rx/rx.c : Likewise.
8761 * config/s390/s390-c.c : Likewise.
8762 * config/s390/s390.c : Likewise.
8763 * config/sh/sh-c.c : Likewise.
8764 * config/sh/sh-mem.cc : Likewise.
8765 * config/sh/sh.c : Likewise.
8766 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
8767 * config/sh/sh_treg_combine.cc : Likewise.
8768 * config/sol2-c.c : Likewise.
8769 * config/sol2-cxx.c : Likewise.
8770 * config/sol2-stubs.c : Likewise.
8771 * config/sol2.c : Likewise.
8772 * config/sparc/sparc-c.c : Likewise.
8773 * config/sparc/sparc.c : Likewise.
8774 * config/spu/spu-c.c : Likewise.
8775 * config/spu/spu.c : Likewise.
8776 * config/stormy16/stormy16.c : Likewise.
8777 * config/tilegx/mul-tables.c : Likewise.
8778 * config/tilegx/tilegx-c.c : Likewise.
8779 * config/tilegx/tilegx.c : Likewise.
8780 * config/tilepro/mul-tables.c : Likewise.
8781 * config/tilepro/tilepro-c.c : Likewise.
8782 * config/tilepro/tilepro.c : Likewise.
8783 * config/v850/v850-c.c : Likewise.
8784 * config/v850/v850.c : Likewise.
8785 * config/vax/vax.c : Likewise.
8786 * config/visium/visium.c : Likewise.
8787 * config/vms/vms-c.c : Likewise.
8788 * config/vms/vms.c : Likewise.
8789 * config/vxworks.c : Likewise.
8790 * config/winnt-c.c : Likewise.
8791 * config/xtensa/xtensa.c : Likewise.
8793 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
8796 * ipa-utils.h (warn_types_mismatch): Update prototype.
8797 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
8799 (type_mismatch_p): New function.
8800 (warn_types_mismatch): Reorg to work better on non-C++ types.
8801 (odr_types_equivalent_p): Add loc1/loc2 parameters.
8802 (add_type_duplicate): Update.
8804 2015-06-08 Tom de Vries <tom@codesourcery.com>
8806 PR rtl-optimization/66444
8807 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
8810 2015-06-08 Richard Biener <rguenther@suse.de>
8812 PR tree-optimization/66422
8813 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
8814 block after inserted gcc_unreachable.
8816 2015-06-08 Nick Clifton <nickc@redhat.com>
8818 * config/rx/rx.c (rx_function_value): Do not promote vector types.
8819 (rx_promote_function_mode): Likewise.
8820 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
8822 2015-06-08 Jakub Jelinek <jakub@redhat.com>
8824 * genattrtab.c (insn_alternatives): Change type from int *
8826 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
8827 (get_attr_value): Change type of num_alt to uint64_t.
8828 (compute_alternative_mask): Change return type from
8829 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
8830 (make_alternative_compare, mk_attr_alt): Change argument type
8831 from int to uint64_t.
8832 (simplify_test_exp): Change type of i from int to uint64_t.
8833 Shift ((uint64_t) 1) instead of 1 up.
8834 (main): Adjust oballocvec first argument from int to uint64_t.
8835 Shift ((uint64_t) 1) instead of 1 up.
8837 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8840 * gdbhooks.py: Import sys.
8841 (intptr): New function. Replace int(...) by intptr(...).
8843 2015-06-08 Richard Biener <rguenther@suse.de>
8845 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
8846 adjustment for gaps at the end of a SLP load group properly.
8847 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
8848 all permutations we can generate.
8849 (vect_transform_slp_perm_load): Use the correct group-size.
8851 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
8853 * genmatch.c (expr::gen_transform): For conditions, guess the type
8854 from the second operand.
8856 2015-06-08 Tom de Vries <tom@codesourcery.com>
8858 PR tree-optimization/66442
8859 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
8860 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
8861 if the loop latch is not a singleton. Use
8862 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
8864 2015-06-08 Marek Polacek <polacek@redhat.com>
8867 * toplev.c (check_global_declaration): Don't warn about artificial
8870 2015-06-08 Tom de Vries <tom@codesourcery.com>
8872 PR tree-optimization/66436
8873 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
8875 * gimplify.c: Add tree-dump.h include.
8876 (gimplify_function_tree): Dump function to gimple dump file.
8877 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
8880 2015-06-08 Tom de Vries <tom@codesourcery.com>
8882 PR tree-optimization/66435
8883 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
8886 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
8888 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
8889 of ptr_type_node to not be ptr_to_node.
8890 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
8891 TREE_TYPE of pointers.
8892 * gimple-expr.c (useless_type_conversion): Reorder the check for
8893 function pointers and TYPE_CANONICAL.
8895 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
8898 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
8899 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
8900 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
8902 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
8903 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
8904 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
8905 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
8906 and non iso if unix2003.
8908 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
8910 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
8912 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
8914 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
8915 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
8916 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
8917 except.c, final.c, function.c, gcse-common.c, genemit.c,
8918 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
8919 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
8920 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
8921 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
8924 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
8926 * combine.c (combine_split_insns): Remove cast.
8927 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
8928 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
8929 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
8930 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
8931 * genemit.c (gen_split): Change return type of generated functions to
8933 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
8934 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
8935 gen_peephole2_* functions.
8936 (print_subroutine, main): Likewise.
8937 * recog.c (peephole2_optimize): Remove cast.
8938 (peep2_next_insn): Promote return type to rtx_insn.
8939 * recog.h (peep2_next_insn): Fix prototype.
8940 * rtl.h (try_split, split_insns): Likewise.
8942 2015-06-06 DJ Delorie <dj@redhat.com>
8944 * config/msp430/msp430.c (msp430_asm_integer): Support addition
8945 and subtraction too.
8947 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
8950 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
8951 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
8952 instead of Snd. Disparage Sid/z alternative with '^'.
8954 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
8956 * dwarf2out.c: Remove deferred_locations*.
8957 (dwarf2_debug_hooks): Add early_finish hook.
8958 Remove global_decl hook.
8959 Add early_global_decl and late_global_decl hook.
8960 New global early_dwarf.
8961 New structure set_early_dwarf.
8962 (output_die): Indicate whether a DIE was generated early
8963 when generating assembly with -dA.
8964 (struct limbo_die_struct): Document created_for field.
8965 Remove file_table_last_lookup.
8966 (remove_AT): Return TRUE if successful.
8967 (remove_child_TAG): Clear die_parent.
8968 (reparent_child): New function abstracted from...
8969 (splice_child_die): ...here.
8970 (new_die): ICE if a DIE ends up in limbo too late.
8972 (defer_location): Remove.
8973 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
8974 (fill_variable_array_bounds): New.
8975 (decl_start_label): Call fill_variable_array_bounds.
8976 (gen_formal_parameter_die): Rewrite to reuse previously generated
8978 (gen_subprogram_die): Same.
8979 (gen_variable_die): Same.
8980 (gen_const_die): Same.
8981 (gen_label_die): Same.
8982 (gen_lexical_block_die): Same.
8983 (decl_will_get_specification_p): New.
8984 (local_function_static): New.
8985 (gen_struct_or_union_type_die): Fill in variable-length fields.
8986 (gen_typedef_die): Fill in variable-length typedefs.
8987 (gen_tagged_type_die): Gracefully return on error_mark_node.
8989 (gen_type_die_with_usage): Handle variable-length types.
8990 Remove duplicate code for ARRAY_TYPE case.
8991 (process_scope_var): Only process imported modules during early
8993 (dwarf2out_early_global_decl): New.
8994 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
8995 (dwarf2out_type_decl): Set early_dwarf while calling
8997 (dwarf2out_decl): Verify that we did not recreate a previously
8999 Do not return on DECL_EXTERNALs in VAR_DECLs.
9000 Abstract some code to local_function_static.
9001 (lookup_filename): Remove use of file_table_last_lookup.
9002 Gracefully exit on missing file_name.
9003 (dwarf2out_finish): Verify limbo list.
9004 Remove deferred_locations_list use.
9005 Move deferred_asm_name and limbo flushing to...
9006 (dwarf2out_early_finish): ...here. New.
9007 (dwarf2out_c_finalize): Remove set of deferred_location_list,
9008 deferred_asm_name, and file_table_last_lookup.
9009 * cgraph.h (referred_to_p): Add default argument.
9010 * cgraphunit.c (referred_to_p): Add and handle include_self
9012 (analyze_functions): Add first_time argument.
9013 Call check_global_declaration for all symbols.
9014 Call late_global_decl for nodes for moribund nodes.
9015 (finalize_compilation_unit): Add new argument to
9017 Call early_global_decl for functions.
9018 Call early_finish debug hook.
9019 * dbxout.c (dbxout_early_global_decl): New.
9020 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
9021 (dbx_debug_hooks): Add new hooks.
9022 (xcoff_debug_hooks): Same.
9023 * debug.c (do_nothing_debug_hooks): Add early_finish field.
9024 Add early and late debug hooks.
9025 Remove global_decl hook.
9026 * debug.h (struct gcc_debug_hooks): Add early_finish,
9027 early_global_decl, and late_global_decl fields.
9028 Remove global_decl field.
9029 Document gcc_debug_hooks.
9030 * gengtype.c (output_typename): Remove.
9031 * godump.c (go_early_global_decl): New.
9032 (go_late_global_decl): New.
9033 (go_global_decl): Remove.
9034 (dump_go_spec_init): Remove global_decl. Add
9035 {early,late}_global_decl.
9036 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
9037 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
9038 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
9039 (write_global_declarations): Remove.
9040 (global_decl_processing): New.
9041 * langhooks.h (struct lang_hooks_for_decls): Remove
9042 final_write_globals field.
9043 Add post_compilation_parsing_cleanups field.
9044 * passes.c (rest_of_decl_compilation): Call early_global_decl.
9045 * sdbout.c: Add early and late_global_decl hooks. Remove
9046 sdbout_global_decl hook.
9047 Add early_finish field for sdb_debug_hooks.
9048 (sdbout_global_decl): Remove.
9049 (sdbout_early_global_decl): New.
9050 (sdbout_late_global_decl): New.
9051 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
9052 * toplev.c (check_global_declaration): Rename from
9053 check_global_declaration_1.
9054 Adapt to use symtab infrastructure.
9055 (check_global_declarations): Remove.
9056 (emit_debug_global_declarations): Remove.
9057 (compile_file): Remove call to final_write_globals langhook.
9058 Run the actual compilation process.
9059 Perform any post compilation parser cleanups.
9060 Generate late debug info.
9061 * toplev.h (check_global_declaration): New.
9062 (check_global_declaration_1): Remove.
9063 (check_global_declarations): Remove.
9064 (write_global_declarations): Remove.
9065 (emit_debug_global_declarations): Remove.
9066 (global_decl_processing): New.
9067 * tree-core.h (struct tree_block): Add DIE field.
9068 * tree.h (BLOCK_DIE): New.
9069 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
9071 (vmsdbgout_early_global_decl): New.
9072 (vmsdbgout_late_global_decl): New.
9073 Add early_finish debug hook field to vmsdbg_debug_hooks.
9074 Remove vmsdbgout_decl to vmsdbgout_function_decl.
9075 Add early and late_global_decl debug hooks.
9077 2015-06-05 Julian Brown <julian@codesourcery.com>
9078 Sandra Loosemore <sandra@codesourcery.com>
9080 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
9081 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
9082 to print-sysroot-suffix.sh script.
9084 2015-06-05 Tom de Vries <tom@codesourcery.com>
9086 merge from gomp4 branch:
9087 2015-05-28 Tom de Vries <tom@codesourcery.com>
9089 PR tree-optimization/65443
9090 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
9091 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
9092 (try_transform_to_exit_first_loop_alt): New function.
9093 (transform_to_exit_first_loop): Use
9094 try_transform_to_exit_first_loop_alt.
9096 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
9098 * builtins.c (expand_builtin_atomic_compare_exchange): Call
9099 emit_cmp_and_jump_insns with the mode of target.
9101 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9103 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
9105 2015-06-04 DJ Delorie <dj@redhat.com>
9107 * config/msp430/msp430.md (movsi_s): New. Special case for
9108 storing a 20-bit symbol into a 32-bit register.
9109 * config/msp430/msp430.c (msp430_subreg): Add support for it.
9110 * config/msp430/predicates.md (msp430_symbol_operand): New.
9112 2015-06-04 Sriraman Tallam <tmsriram@google.com>
9114 * c-family/c-common.c (noplt): New attribute.
9115 (handle_noplt_attribute): New handler.
9116 * calls.c (prepare_call_address): Check for noplt
9118 * config/i386/i386.c (ix86_expand_call): Check
9119 for noplt attribute.
9120 (ix86_nopic_noplt_attribute_p): New function.
9121 (ix86_output_call_insn): Output indirect call for non-pic
9123 * doc/extend.texi (noplt): Document new attribute.
9124 * doc/invoke.texi: Document new attribute.
9126 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
9128 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
9129 real.h, and fixed-value.h when included in host source files.
9130 * double-int.h: Remove redundant #includes listed above.
9131 * fixed-value.h: Likewise.
9133 * wide-int.h: Likewise.
9134 * inchash.h: Likewise.
9135 * rtl.h: Add some include files When included from a generator file.
9136 * target.h: Remove wide-int.h and insn-modes.h from the include list.
9137 * internal-fn.h: Don't include coretypes.h.
9138 * alias.c: Adjust includes for restructured coretypes.h.
9140 * attribs.c: Likewise.
9141 * auto-inc-dec.c: Likewise.
9142 * auto-profile.c: Likewise.
9143 * bb-reorder.c: Likewise.
9144 * bt-load.c: Likewise.
9145 * builtins.c: Likewise.
9146 * caller-save.c: Likewise.
9147 * calls.c: Likewise.
9150 * cfganal.c: Likewise.
9151 * cfgbuild.c: Likewise.
9152 * cfgcleanup.c: Likewise.
9153 * cfgexpand.c: Likewise.
9154 * cfghooks.c: Likewise.
9155 * cfgloop.c: Likewise.
9156 * cfgloop.h: Likewise.
9157 * cfgloopanal.c: Likewise.
9158 * cfgloopmanip.c: Likewise.
9159 * cfgrtl.c: Likewise.
9160 * cgraph.c: Likewise.
9161 * cgraphbuild.c: Likewise.
9162 * cgraphclones.c: Likewise.
9163 * cgraphunit.c: Likewise.
9164 * cilk-common.c: Likewise.
9165 * combine-stack-adj.c: Likewise.
9166 * combine.c: Likewise.
9167 * compare-elim.c: Likewise.
9168 * convert.c: Likewise.
9169 * coverage.c: Likewise.
9170 * cppbuiltin.c: Likewise.
9171 * cprop.c: Likewise.
9173 * cselib.c: Likewise.
9174 * data-streamer-in.c: Likewise.
9175 * data-streamer-out.c: Likewise.
9176 * data-streamer.c: Likewise.
9177 * dbxout.c: Likewise.
9180 * debug.c: Likewise.
9181 * df-core.c: Likewise.
9182 * df-problems.c: Likewise.
9183 * df-scan.c: Likewise.
9186 * dojump.c: Likewise.
9187 * dominance.c: Likewise.
9188 * domwalk.c: Likewise.
9189 * double-int.c: Likewise.
9191 * dumpfile.c: Likewise.
9192 * dwarf2asm.c: Likewise.
9193 * dwarf2cfi.c: Likewise.
9194 * dwarf2out.c: Likewise.
9195 * dwarf2out.h: Likewise.
9196 * emit-rtl.c: Likewise.
9197 * et-forest.c: Likewise.
9198 * except.c: Likewise.
9199 * explow.c: Likewise.
9200 * expmed.c: Likewise.
9202 * final.c: Likewise.
9203 * fixed-value.c: Likewise.
9204 * fold-const.c: Likewise.
9205 * function.c: Likewise.
9206 * fwprop.c: Likewise.
9207 * gcc-plugin.h: Likewise.
9209 * generic-match-head.c: Likewise.
9210 * ggc-page.c: Likewise.
9211 * gimple-builder.c: Likewise.
9212 * gimple-expr.c: Likewise.
9213 * gimple-fold.c: Likewise.
9214 * gimple-iterator.c: Likewise.
9215 * gimple-low.c: Likewise.
9216 * gimple-match-head.c: Likewise.
9217 * gimple-pretty-print.c: Likewise.
9218 * gimple-ssa-isolate-paths.c: Likewise.
9219 * gimple-ssa-strength-reduction.c: Likewise.
9220 * gimple-streamer-in.c: Likewise.
9221 * gimple-streamer-out.c: Likewise.
9222 * gimple-streamer.h: Likewise.
9223 * gimple-walk.c: Likewise.
9224 * gimple.c: Likewise.
9225 * gimplify-me.c: Likewise.
9226 * gimplify.c: Likewise.
9227 * godump.c: Likewise.
9228 * graph.c: Likewise.
9229 * graphite-blocking.c: Likewise.
9230 * graphite-dependences.c: Likewise.
9231 * graphite-interchange.c: Likewise.
9232 * graphite-isl-ast-to-gimple.c: Likewise.
9233 * graphite-optimize-isl.c: Likewise.
9234 * graphite-poly.c: Likewise.
9235 * graphite-scop-detection.c: Likewise.
9236 * graphite-sese-to-poly.c: Likewise.
9237 * graphite.c: Likewise.
9238 * haifa-sched.c: Likewise.
9239 * hooks.h: Likewise.
9240 * hw-doloop.c: Likewise.
9241 * ifcvt.c: Likewise.
9242 * incpath.c: Likewise.
9243 * init-regs.c: Likewise.
9244 * internal-fn.c: Likewise.
9245 * ipa-chkp.c: Likewise.
9246 * ipa-comdats.c: Likewise.
9247 * ipa-cp.c: Likewise.
9248 * ipa-devirt.c: Likewise.
9249 * ipa-icf-gimple.c: Likewise.
9250 * ipa-icf.c: Likewise.
9251 * ipa-inline-analysis.c: Likewise.
9252 * ipa-inline-transform.c: Likewise.
9253 * ipa-inline.c: Likewise.
9254 * ipa-polymorphic-call.c: Likewise.
9255 * ipa-profile.c: Likewise.
9256 * ipa-prop.c: Likewise.
9257 * ipa-pure-const.c: Likewise.
9258 * ipa-ref.c: Likewise.
9259 * ipa-reference.c: Likewise.
9260 * ipa-split.c: Likewise.
9261 * ipa-utils.c: Likewise.
9262 * ipa-visibility.c: Likewise.
9264 * ira-build.c: Likewise.
9265 * ira-color.c: Likewise.
9266 * ira-conflicts.c: Likewise.
9267 * ira-costs.c: Likewise.
9268 * ira-emit.c: Likewise.
9269 * ira-lives.c: Likewise.
9272 * langhooks.c: Likewise.
9274 * loop-doloop.c: Likewise.
9275 * loop-init.c: Likewise.
9276 * loop-invariant.c: Likewise.
9277 * loop-iv.c: Likewise.
9278 * loop-unroll.c: Likewise.
9279 * lower-subreg.c: Likewise.
9280 * lra-assigns.c: Likewise.
9281 * lra-coalesce.c: Likewise.
9282 * lra-constraints.c: Likewise.
9283 * lra-eliminations.c: Likewise.
9284 * lra-lives.c: Likewise.
9285 * lra-remat.c: Likewise.
9286 * lra-spills.c: Likewise.
9288 * lto-cgraph.c: Likewise.
9289 * lto-compress.c: Likewise.
9290 * lto-opts.c: Likewise.
9291 * lto-section-in.c: Likewise.
9292 * lto-section-out.c: Likewise.
9293 * lto-streamer-in.c: Likewise.
9294 * lto-streamer-out.c: Likewise.
9295 * lto-streamer.c: Likewise.
9297 * mode-switching.c: Likewise.
9298 * modulo-sched.c: Likewise.
9299 * omega.c: Likewise.
9300 * omp-low.c: Likewise.
9301 * optabs.c: Likewise.
9302 * opts-global.c: Likewise.
9303 * passes.c: Likewise.
9304 * plugin.c: Likewise.
9305 * postreload-gcse.c: Likewise.
9306 * postreload.c: Likewise.
9307 * predict.c: Likewise.
9308 * print-rtl.c: Likewise.
9309 * print-tree.c: Likewise.
9310 * profile.c: Likewise.
9312 * realmpfr.c: Likewise.
9313 * realmpfr.h: Likewise.
9314 * recog.c: Likewise.
9316 * reg-stack.c: Likewise.
9317 * regcprop.c: Likewise.
9318 * reginfo.c: Likewise.
9319 * regrename.c: Likewise.
9321 * regstat.c: Likewise.
9322 * reload.c: Likewise.
9323 * reload1.c: Likewise.
9324 * reorg.c: Likewise.
9325 * resource.c: Likewise.
9326 * rtl-chkp.c: Likewise.
9327 * rtlanal.c: Likewise.
9328 * rtlhooks.c: Likewise.
9329 * sanopt.c: Likewise.
9330 * sched-deps.c: Likewise.
9331 * sched-ebb.c: Likewise.
9332 * sched-rgn.c: Likewise.
9333 * sched-vis.c: Likewise.
9334 * sdbout.c: Likewise.
9335 * sel-sched-dump.c: Likewise.
9336 * sel-sched-ir.c: Likewise.
9337 * sel-sched.c: Likewise.
9339 * shrink-wrap.c: Likewise.
9340 * shrink-wrap.h: Likewise.
9341 * simplify-rtx.c: Likewise.
9342 * stack-ptr-mod.c: Likewise.
9343 * statistics.c: Likewise.
9345 * stor-layout.c: Likewise.
9346 * store-motion.c: Likewise.
9347 * stringpool.c: Likewise.
9348 * symtab.c: Likewise.
9349 * target-globals.c: Likewise.
9350 * targhooks.c: Likewise.
9351 * toplev.c: Likewise.
9352 * tracer.c: Likewise.
9353 * trans-mem.c: Likewise.
9354 * tree-affine.c: Likewise.
9355 * tree-affine.h: Likewise.
9356 * tree-browser.c: Likewise.
9357 * tree-call-cdce.c: Likewise.
9358 * tree-cfg.c: Likewise.
9359 * tree-cfgcleanup.c: Likewise.
9360 * tree-chkp-opt.c: Likewise.
9361 * tree-chkp.c: Likewise.
9362 * tree-chrec.c: Likewise.
9363 * tree-complex.c: Likewise.
9364 * tree-data-ref.c: Likewise.
9365 * tree-dfa.c: Likewise.
9366 * tree-diagnostic.c: Likewise.
9367 * tree-dump.c: Likewise.
9368 * tree-eh.c: Likewise.
9369 * tree-emutls.c: Likewise.
9370 * tree-if-conv.c: Likewise.
9371 * tree-inline.c: Likewise.
9372 * tree-into-ssa.c: Likewise.
9373 * tree-iterator.c: Likewise.
9374 * tree-loop-distribution.c: Likewise.
9375 * tree-nested.c: Likewise.
9376 * tree-nrv.c: Likewise.
9377 * tree-object-size.c: Likewise.
9378 * tree-outof-ssa.c: Likewise.
9379 * tree-parloops.c: Likewise.
9380 * tree-phinodes.c: Likewise.
9381 * tree-predcom.c: Likewise.
9382 * tree-pretty-print.c: Likewise.
9383 * tree-pretty-print.h: Likewise.
9384 * tree-profile.c: Likewise.
9385 * tree-scalar-evolution.c: Likewise.
9386 * tree-sra.c: Likewise.
9387 * tree-ssa-address.c: Likewise.
9388 * tree-ssa-alias.c: Likewise.
9389 * tree-ssa-ccp.c: Likewise.
9390 * tree-ssa-coalesce.c: Likewise.
9391 * tree-ssa-copy.c: Likewise.
9392 * tree-ssa-copyrename.c: Likewise.
9393 * tree-ssa-dce.c: Likewise.
9394 * tree-ssa-dom.c: Likewise.
9395 * tree-ssa-dse.c: Likewise.
9396 * tree-ssa-forwprop.c: Likewise.
9397 * tree-ssa-ifcombine.c: Likewise.
9398 * tree-ssa-live.c: Likewise.
9399 * tree-ssa-loop-ch.c: Likewise.
9400 * tree-ssa-loop-im.c: Likewise.
9401 * tree-ssa-loop-ivcanon.c: Likewise.
9402 * tree-ssa-loop-ivopts.c: Likewise.
9403 * tree-ssa-loop-manip.c: Likewise.
9404 * tree-ssa-loop-niter.c: Likewise.
9405 * tree-ssa-loop-prefetch.c: Likewise.
9406 * tree-ssa-loop-unswitch.c: Likewise.
9407 * tree-ssa-loop.c: Likewise.
9408 * tree-ssa-loop.h: Likewise.
9409 * tree-ssa-math-opts.c: Likewise.
9410 * tree-ssa-operands.c: Likewise.
9411 * tree-ssa-phiopt.c: Likewise.
9412 * tree-ssa-phiprop.c: Likewise.
9413 * tree-ssa-pre.c: Likewise.
9414 * tree-ssa-propagate.c: Likewise.
9415 * tree-ssa-reassoc.c: Likewise.
9416 * tree-ssa-sccvn.c: Likewise.
9417 * tree-ssa-scopedtables.c: Likewise.
9418 * tree-ssa-sink.c: Likewise.
9419 * tree-ssa-strlen.c: Likewise.
9420 * tree-ssa-structalias.c: Likewise.
9421 * tree-ssa-tail-merge.c: Likewise.
9422 * tree-ssa-ter.c: Likewise.
9423 * tree-ssa-threadedge.c: Likewise.
9424 * tree-ssa-threadupdate.c: Likewise.
9425 * tree-ssa-uncprop.c: Likewise.
9426 * tree-ssa-uninit.c: Likewise.
9427 * tree-ssa.c: Likewise.
9428 * tree-ssanames.c: Likewise.
9429 * tree-stdarg.c: Likewise.
9430 * tree-streamer-in.c: Likewise.
9431 * tree-streamer-out.c: Likewise.
9432 * tree-streamer.c: Likewise.
9433 * tree-switch-conversion.c: Likewise.
9434 * tree-tailcall.c: Likewise.
9435 * tree-vect-data-refs.c: Likewise.
9436 * tree-vect-generic.c: Likewise.
9437 * tree-vect-loop-manip.c: Likewise.
9438 * tree-vect-loop.c: Likewise.
9439 * tree-vect-patterns.c: Likewise.
9440 * tree-vect-slp.c: Likewise.
9441 * tree-vect-stmts.c: Likewise.
9442 * tree-vectorizer.c: Likewise.
9443 * tree-vrp.c: Likewise.
9446 * ubsan.c: Likewise.
9447 * valtrack.c: Likewise.
9448 * value-prof.c: Likewise.
9449 * var-tracking.c: Likewise.
9450 * varasm.c: Likewise.
9451 * varpool.c: Likewise.
9452 * vmsdbgout.c: Likewise.
9453 * vtable-verify.c: Likewise.
9455 * wide-int-print.cc: Likewise.
9456 * wide-int-print.h: Likewise.
9457 * wide-int.cc: Likewise.
9458 * xcoffout.c: Likewise.
9459 * config/aarch64/aarch64-builtins.c: Likewise.
9460 * config/aarch64/aarch64.c: Likewise.
9461 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9462 * config/alpha/alpha.c: Likewise.
9463 * config/arc/arc.c: Likewise.
9464 * config/arm/aarch-common.c: Likewise.
9465 * config/arm/arm-builtins.c: Likewise.
9466 * config/arm/arm-c.c: Likewise.
9467 * config/arm/arm.c: Likewise.
9468 * config/avr/avr-c.c: Likewise.
9469 * config/avr/avr-log.c: Likewise.
9470 * config/avr/avr.c: Likewise.
9471 * config/bfin/bfin.c: Likewise.
9472 * config/c6x/c6x.c: Likewise.
9473 * config/cr16/cr16.c: Likewise.
9474 * config/cris/cris.c: Likewise.
9475 * config/darwin-c.c: Likewise.
9476 * config/darwin.c: Likewise.
9477 * config/default-c.c: Likewise.
9478 * config/epiphany/epiphany.c: Likewise.
9479 * config/epiphany/mode-switch-use.c: Likewise.
9480 * config/epiphany/resolve-sw-modes.c: Likewise.
9481 * config/fr30/fr30.c: Likewise.
9482 * config/frv/frv.c: Likewise.
9483 * config/ft32/ft32.c: Likewise.
9484 * config/glibc-c.c: Likewise.
9485 * config/h8300/h8300.c: Likewise.
9486 * config/i386/i386-c.c: Likewise.
9487 * config/i386/i386.c: Likewise.
9488 * config/i386/msformat-c.c: Likewise.
9489 * config/i386/winnt-cxx.c: Likewise.
9490 * config/i386/winnt-stubs.c: Likewise.
9491 * config/i386/winnt.c: Likewise.
9492 * config/ia64/ia64-c.c: Likewise.
9493 * config/ia64/ia64.c: Likewise.
9494 * config/iq2000/iq2000.c: Likewise.
9495 * config/lm32/lm32.c: Likewise.
9496 * config/m32c/m32c-pragma.c: Likewise.
9497 * config/m32c/m32c.c: Likewise.
9498 * config/m32r/m32r.c: Likewise.
9499 * config/m68k/m68k.c: Likewise.
9500 * config/mcore/mcore.c: Likewise.
9501 * config/mep/mep-pragma.c: Likewise.
9502 * config/mep/mep.c: Likewise.
9503 * config/microblaze/microblaze-c.c: Likewise.
9504 * config/microblaze/microblaze.c: Likewise.
9505 * config/mips/mips.c: Likewise.
9506 * config/mmix/mmix.c: Likewise.
9507 * config/mn10300/mn10300.c: Likewise.
9508 * config/moxie/moxie.c: Likewise.
9509 * config/msp430/msp430-c.c: Likewise.
9510 * config/msp430/msp430.c: Likewise.
9511 * config/nds32/nds32-cost.c: Likewise.
9512 * config/nds32/nds32-fp-as-gp.c: Likewise.
9513 * config/nds32/nds32-intrinsic.c: Likewise.
9514 * config/nds32/nds32-isr.c: Likewise.
9515 * config/nds32/nds32-md-auxiliary.c: Likewise.
9516 * config/nds32/nds32-memory-manipulation.c: Likewise.
9517 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9518 * config/nds32/nds32-predicates.c: Likewise.
9519 * config/nds32/nds32.c: Likewise.
9520 * config/nios2/nios2.c: Likewise.
9521 * config/nvptx/nvptx.c: Likewise.
9522 * config/pa/pa.c: Likewise.
9523 * config/pdp11/pdp11.c: Likewise.
9524 * config/rl78/rl78-c.c: Likewise.
9525 * config/rl78/rl78.c: Likewise.
9526 * config/rs6000/rs6000-c.c: Likewise.
9527 * config/rs6000/rs6000.c: Likewise.
9528 * config/rx/rx.c: Likewise.
9529 * config/s390/s390-c.c: Likewise.
9530 * config/s390/s390.c: Likewise.
9531 * config/sh/sh-c.c: Likewise.
9532 * config/sh/sh-mem.cc: Likewise.
9533 * config/sh/sh.c: Likewise.
9534 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9535 * config/sh/sh_treg_combine.cc: Likewise.
9536 * config/sol2-c.c: Likewise.
9537 * config/sol2-cxx.c: Likewise.
9538 * config/sol2-stubs.c: Likewise.
9539 * config/sol2.c: Likewise.
9540 * config/sparc/sparc-c.c: Likewise.
9541 * config/sparc/sparc.c: Likewise.
9542 * config/spu/spu-c.c: Likewise.
9543 * config/spu/spu.c: Likewise.
9544 * config/stormy16/stormy16.c: Likewise.
9545 * config/tilegx/mul-tables.c: Likewise.
9546 * config/tilegx/tilegx-c.c: Likewise.
9547 * config/tilegx/tilegx.c: Likewise.
9548 * config/tilepro/mul-tables.c: Likewise.
9549 * config/tilepro/tilepro-c.c: Likewise.
9550 * config/tilepro/tilepro.c: Likewise.
9551 * config/v850/v850-c.c: Likewise.
9552 * config/v850/v850.c: Likewise.
9553 * config/vax/vax.c: Likewise.
9554 * config/visium/visium.c: Likewise.
9555 * config/vms/vms-c.c: Likewise.
9556 * config/vms/vms.c: Likewise.
9557 * config/vxworks.c: Likewise.
9558 * config/winnt-c.c: Likewise.
9559 * config/xtensa/xtensa.c: Likewise.
9560 * common/config/bfin/bfin-common.c: Likewise.
9562 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
9564 * tree.h (tree_code_for_canonical_type_merging): New function.
9565 * tree.c (gimple_canonical_types_compatible_p): Use
9566 tree_code_for_canonical_type_merging..
9568 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9572 * doc/tm.texi: Regenerate.
9573 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
9574 * target.def (TARGET_RELAXED_ORDERING): Likewise.
9575 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
9576 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
9577 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
9578 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
9579 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
9580 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
9581 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
9583 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9585 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
9586 register fma steering pass.
9587 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
9588 AARCH64_TUNE_FMA_STEERING.
9590 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
9592 * tree.c (verify_type_variant): Verify that type and variant is
9594 (gimple_canonical_types_compatible_p): Look for main variants.
9596 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
9598 * config.gcc (powerpc*-*-*): Add support for a new configure
9599 option --with-advance-toolchain=<xxx> which overrides using the
9600 default header files, libraries and dynamic linker.
9602 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
9603 specs to support the configure --with-advance-toolchain=<xxx>
9605 (INCLUDE_EXTRA_SPEC): Likewise.
9606 (LINK_OS_EXTRA_SPEC32): Likewise.
9607 (LINK_OK_EXTRA_SPEC64): Likewise.
9608 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
9609 (DYNAMIC_LINKER_PREFIX): Likewise.
9610 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
9612 (GLIBC_DYNAMIC_LINKER32): Likewise.
9613 (GLIBC_DYNAMIC_LINKER64): Likewise.
9614 (LINK_OS_LINUX_SPEC32): Likewise.
9615 (LINK_OS_LINUX_SPEC64): Likewise.
9617 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
9618 configuration option.
9620 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
9623 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
9624 to determine current function ABI.
9625 (ix86_function_value_regno_p): Ditto.
9627 2015-06-03 Martin Liska <mliska@suse.cz>
9629 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
9630 * bitmap.h (struct bitmap_usage): Likewise.
9631 * ggc-common.c (struct ggc_usage): Likewise.
9632 * mem-stats.h (struct mem_location): Likewise.
9633 (struct mem_usage): Likewise.
9634 * vec.c (struct vec_usage): Likewise.
9636 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
9638 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
9641 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
9643 * doc/plugins.texi (enum plugin_event): New event.
9644 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
9645 and PLUGIN_FINISH_FUNCTION.
9646 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
9647 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
9649 2015-06-03 Richard Biener <rguenther@suse.de>
9651 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
9652 compute GROUP_GAP for the first element.
9653 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
9656 2015-06-03 Nick Clifton <nickc@redhat.com>
9658 * config/rl78/rl78-real.md: Add peepholes to avoid a register
9659 copy when calling a function.
9660 * config/rl78/rl78.c (need_to_save): Do not push the frame
9661 pointer in an interrupt handler prologue if it is never used.
9663 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9665 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
9667 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
9669 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
9670 reference when cloning alias node.
9672 2015-06-03 Martin Liska <mliska@suse.cz>
9674 * alloc-pool.h (struct pool_usage): Correct space padding.
9675 * ggc-page.c (ggc_print_statistics): Align columns in a report.
9676 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
9677 * tree.c (dump_tree_statistics): Align columns in a report.
9679 2015-06-03 Martin Liska <mliska@suse.cz>
9681 * alloc-pool.c (allocate_pool_descriptor): Remove.
9682 (struct pool_output_info): Likewise.
9683 (print_alloc_pool_statistics): Likewise.
9684 (dump_alloc_pool_statistics): Likewise.
9685 * alloc-pool.h (struct pool_usage): New struct.
9686 (pool_allocator::initialize): Change usage of memory statistics
9688 (pool_allocator::release): Likewise.
9689 (pool_allocator::allocate): Likewise.
9690 (pool_allocator::remove): Likewise.
9691 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
9692 for a pool allocator.
9693 * mem-stats.h (struct mem_location): Add new ctor.
9694 (struct mem_usage): Add counter for number of
9696 (mem_alloc_description::register_descriptor): New overload of
9697 * mem-stats.h (mem_location::to_string): New function.
9698 * bitmap.h (struct bitmap_usage): Use this new function.
9699 * ggc-common.c (struct ggc_usage): Likewise.
9702 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
9704 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
9705 of GCC_INSN_FLAGS_H block.
9707 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
9709 * explow.c (plus_constant): Update check after force_const_mem call
9710 to see if the value returned is not a NULL_RTX.
9712 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
9714 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
9715 remove instumentation thunks calling reachable functions.
9716 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
9717 * lto/lto-partition.c (privatize_symbol_name_1): New.
9718 (privatize_symbol_name): Privatize both decl and orig_decl
9719 names for instrumented functions.
9720 * cgraph.c (cgraph_node::verify_node): Add transparent
9721 alias chain check for instrumented node.
9723 2015-06-03 Marek Polacek <polacek@redhat.com>
9727 * tree.c (attribute_value_equal): Handle attribute format.
9728 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
9730 2015-06-03 Richard Biener <rguenther@suse.de>
9732 PR tree-optimization/63916
9733 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9734 Forward-propagate non-invariant addresses by splicing their
9735 reference ops if the result isn't going to be used by PRE.
9736 (vn_reference_lookup_3): Remove pointless assert.
9738 2015-06-03 Richard Biener <rguenther@suse.de>
9740 PR tree-optimization/66375
9741 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
9742 add to the evolution before following SSA edges.
9744 2015-06-03 Bin Cheng <bin.cheng@arm.com>
9746 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
9747 (dump_use, dump_cand, find_induction_variables): Pass new argument
9749 (record_use): Preserve the ssa name information in IV.
9751 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
9753 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
9755 (add_mode_tests): Don't add mode tests if the predicate only
9756 accepts scalar constant integers. Otherwise, allow the mode
9757 of "op" to be VOIDmode if the predicate does accept such integers.
9759 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
9762 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
9763 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
9764 (aarch64_secondary_reload): Likewise
9765 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
9767 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
9770 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
9771 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9774 * cprop.c (try_replace_reg): Check cost of constants before propagating.
9776 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9778 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
9779 provide access to the IBM extended double floating point mode if
9780 long double is IEEE 128-bit floating point.
9781 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
9782 point if long double is the IBM extended double type.
9784 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
9785 enable adding IEEE 128-bit floating point support.
9786 (-mfloat128-software): Likewise.
9787 (-mfloat128-sw): Likewise.
9789 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
9790 128-bit floating point types to occupy any register if
9791 -mlong-double-64. Do not allow use of IFmode/KFmode unless
9792 -mfloat128-software is enabled.
9793 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
9795 (rs6000_option_override_internal): Add -mfloat128-* support.
9796 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
9798 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
9799 and float128 type nodes.
9800 (ieee128_float_type_node): Likewise.
9801 (ibm128_float_type_node): Likewise.
9803 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
9806 * config/aarch64/geniterators.sh: Rewrite in awk.
9808 2015-06-02 Martin Liska <mliska@suse.cz>
9810 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
9811 values to avoid -Wmaybe-uninitialized errors.
9813 2015-06-02 Richard Biener <rguenther@suse.de>
9816 * dwarf2out.c (lookup_context_die): New function.
9817 (resolve_addr): Avoid forcing a full DIE for the
9818 target of a DW_TAG_GNU_call_site during late compilation.
9819 Instead create a stub DIE without a type if we have a
9820 context DIE present.
9822 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
9824 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
9826 2015-06-02 Bin Cheng <bin.cheng@arm.com>
9828 PR tree-optimization/48052
9829 * cfgloop.h (struct control_iv): New.
9830 (struct loop): New field control_ivs.
9831 * tree-ssa-loop-niter.c : Include "stor-layout.h".
9832 (number_of_iterations_lt): Set no_overflow information.
9833 (number_of_iterations_exit): Init control iv in niter struct.
9834 (record_control_iv): New.
9835 (estimate_numbers_of_iterations_loop): Call record_control_iv.
9836 (loop_exits_before_overflow): New. Interface factored out of
9837 scev_probably_wraps_p.
9838 (scev_probably_wraps_p): Factor loop niter related code into
9839 loop_exits_before_overflow.
9840 (free_numbers_of_iterations_estimates_loop): Free control ivs.
9841 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
9843 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
9845 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
9846 the target doesn't belong to the current function.
9848 2015-06-02 Marek Polacek <polacek@redhat.com>
9851 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
9852 get_maxval_strlen does not produce an INTEGER_CST.
9854 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
9856 * config/arc/constraints.md: Use lower-case names in match_code.
9857 * config/mmix/constraints.md: Likewise.
9859 2015-06-02 Richard Biener <rguenther@suse.de>
9861 PR tree-optimization/65961
9862 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
9863 check and clarify dump message.
9864 (vect_build_slp_tree): If all children are built up from scalars
9865 build up the parent from scalars instead.
9866 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
9868 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9871 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
9872 instead of print ... .
9874 2015-06-02 Alan Modra <amodra@gmail.com>
9876 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
9879 2015-06-02 Bin Cheng <bin.cheng@arm.com>
9881 PR tree-optimization/52563
9882 PR tree-optimization/62173
9883 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
9884 (alloc_iv, set_iv): New parameter.
9885 (determine_biv_step): Delete.
9886 (find_bivs): Inline original determine_biv_step. Pass new
9888 (idx_find_step): Use no_overflow information for conversion.
9889 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
9890 resolve_mixers handle folded_casts.
9891 (instantiate_scev_name): Change bool parameter to bool pointer.
9892 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
9893 (instantiate_array_ref, instantiate_scev_not): Ditto.
9894 (instantiate_scev_3, instantiate_scev_2): Ditto.
9895 (instantiate_scev_1, instantiate_scev_r): Ditto.
9896 (instantiate_scev_convert, ): Change parameter. Pass argument
9897 to chrec_convert_aggressive.
9898 (instantiate_scev): Change argument.
9899 (resolve_mixers): New parameter and set it.
9900 (scev_const_prop): New argument.
9901 * tree-scalar-evolution.h (resolve_mixers): New parameter.
9902 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
9904 (chrec_convert): New parameter. Move definition below.
9905 (chrec_convert_aggressive): New parameter and set it. Call
9906 convert_affine_scev.
9907 * tree-chrec.h (chrec_convert): New parameter.
9908 (chrec_convert_aggressive): Ditto.
9910 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
9912 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
9913 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
9914 the LHS of a no-return call if its type has variable size.
9915 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
9916 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
9918 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
9920 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
9921 * config.in: Regenerate.
9923 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
9925 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
9926 consecutive accesses within outer-loop with force_vectorize
9927 for references with zero step in inner-loop.
9929 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
9931 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
9932 rather than from gcc/build directory.
9934 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
9937 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
9938 for __sync memory models, emit initial loads and final barriers as
9941 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
9944 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
9945 (aarch64_split_atomic_op): Check for __sync memory models, emit
9946 appropriate initial loads and final barriers.
9948 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
9950 * Makefile.in: Fix gcov dependencies that should
9951 not point to a build folder.
9953 2015-06-01 Richard Biener <rguenther@suse.de>
9956 2015-05-29 Richard Biener <rguenther@suse.de>
9958 PR tree-optimization/66314
9959 * tree-ssa-threadupdate.c (create_block_for_threading): Add
9960 parameter that says which loop the new block belongs to.
9961 (ssa_create_duplicates): Blocks duplicated for the threaded
9962 path belong to the loop of the thread destination.
9964 2015-06-01 Martin Liska <mliska@suse.cz>
9966 * sched-deps.c: Include pool-alloc.h before
9967 cselib.h header file is included.
9969 2015-06-01 Richard Biener <rguenther@suse.de>
9971 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
9974 2015-06-01 Martin Liska <mliska@suse.cz>
9976 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
9977 a function local variable.
9979 2015-06-01 Martin Liska <mliska@suse.cz>
9981 * alloc-pool.c (create_alloc_pool): Remove.
9982 (empty_alloc_pool): Likewise.
9983 (free_alloc_pool): Likewise.
9984 (free_alloc_pool_if_empty): Likewise.
9985 (pool_alloc): Likewise.
9986 (pool_free): Likewise.
9987 * alloc-pool.h: Remove old declarations.
9989 2015-06-01 Martin Liska <mliska@suse.cz>
9991 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
9992 (ira_create_object): Likewise.
9993 (ira_create_allocno): Likewise.
9994 (ira_create_live_range): Likewise.
9995 (copy_live_range): Likewise.
9996 (ira_finish_live_range): Likewise.
9997 (ira_free_allocno_costs): Likewise.
9998 (finish_allocno): Likewise.
9999 (finish_allocnos): Likewise.
10000 (initiate_prefs): Likewise.
10001 (ira_create_pref): Likewise.
10002 (finish_pref): Likewise.
10003 (finish_prefs): Likewise.
10004 (initiate_copies): Likewise.
10005 (ira_create_copy): Likewise.
10006 (finish_copy): Likewise.
10007 (finish_copies): Likewise.
10008 (finish_prefs): Likewise.
10010 2015-06-01 Martin Liska <mliska@suse.cz>
10012 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
10013 (allocate_and_init_ipcp_value): Likewise.
10014 (ipcp_lattice::add_value): Likewise.
10015 (merge_agg_lats_step): Likewise.
10016 (ipcp_driver): Likewise.
10017 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
10018 (ipa_free_all_structures_after_iinln): Likewise.
10019 * ipa-prop.h: Likewise.
10021 2015-06-01 Martin Liska <mliska@suse.cz>
10023 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
10025 (set_hint_predicate): Likewise.
10026 (inline_summary_alloc): Likewise.
10027 (reset_inline_edge_summary): Likewise.
10028 (reset_inline_summary): Likewise.
10029 (set_cond_stmt_execution_predicate): Likewise.
10030 (set_switch_stmt_execution_predicate): Likewise.
10031 (compute_bb_predicates): Likewise.
10032 (estimate_function_body_sizes): Likewise.
10033 (inline_free_summary): Likewise.
10035 2015-06-01 Martin Liska <mliska@suse.cz>
10037 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
10038 (ipa_edge_duplication_hook): Likewise.
10039 (ipa_free_all_structures_after_ipa_cp): Likewise.
10040 (ipa_free_all_structures_after_iinln): Likewise.
10042 2015-06-01 Martin Liska <mliska@suse.cz>
10044 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
10045 (ipa_profile_generate_summary): Likewise.
10046 (ipa_profile_read_summary): Likewise.
10047 (ipa_profile): Likewise.
10049 2015-06-01 Martin Liska <mliska@suse.cz>
10051 * tree-ssa-structalias.c (new_var_info): Use new type-based
10053 (new_constraint): Likewise.
10054 (init_alias_vars): Likewise.
10055 (delete_points_to_sets): Likewise.
10057 2015-06-01 Martin Liska <mliska@suse.cz>
10059 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
10060 (free_strinfo): Likewise.
10061 (pass_strlen::execute): Likewise.
10063 2015-06-01 Martin Liska <mliska@suse.cz>
10065 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
10067 (vn_reference_insert_pieces): Likewise.
10068 (vn_phi_insert): Likewise.
10069 (visit_reference_op_call): Likewise.
10070 (copy_phi): Likewise.
10071 (copy_reference): Likewise.
10072 (process_scc): Likewise.
10073 (allocate_vn_table): Likewise.
10074 (free_vn_table): Likewise.
10076 2015-06-01 Martin Liska <mliska@suse.cz>
10078 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
10080 (add_repeat_to_ops_vec): Likewise.
10081 (get_ops): Likewise.
10082 (maybe_optimize_range_tests): Likewise.
10083 (init_reassoc): Likewise.
10084 (fini_reassoc): Likewise.
10086 2015-06-01 Martin Liska <mliska@suse.cz>
10088 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
10090 (bitmap_set_new): Likewise.
10091 (get_or_alloc_expr_for_constant): Likewise.
10092 (get_or_alloc_expr_for): Likewise.
10093 (phi_translate_1): Likewise.
10094 (compute_avail): Likewise.
10095 (init_pre): Likewise.
10096 (fini_pre): Likewise.
10098 2015-06-01 Martin Liska <mliska@suse.cz>
10100 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
10101 (delete_dep_node): Likewise.
10102 (create_deps_list): Likewise.
10103 (free_deps_list): Likewise.
10104 (sched_deps_init): Likewise.
10105 (sched_deps_finish): Likewise.
10107 2015-06-01 Martin Liska <mliska@suse.cz>
10109 * regcprop.c (free_debug_insn_changes): Use new type-based
10111 (replace_oldest_value_reg): Likewise.
10112 (pass_cprop_hardreg::execute): Likewise.
10114 2015-06-01 Martin Liska <mliska@suse.cz>
10116 * ira-build.c (initiate_cost_vectors): Use new type-based
10118 (ira_allocate_cost_vector): Likewise.
10119 (ira_free_cost_vector): Likewise.
10120 (finish_cost_vectors): Likewise.
10122 2015-06-01 Martin Liska <mliska@suse.cz>
10124 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
10126 (free_sched_pools): Likewise.
10127 * sel-sched-ir.h (_list_alloc): Likewise.
10128 (_list_remove): Likewise.
10130 2015-06-01 Martin Liska <mliska@suse.cz>
10132 * stmt.c (add_case_node): Use new type-based pool allocator.
10133 (expand_case): Likewise.
10134 (expand_sjlj_dispatch_table): Likewise.
10136 2015-06-01 Martin Liska <mliska@suse.cz>
10138 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
10139 (free_bb): Likewise.
10140 (pass_cse_reciprocals::execute): Likewise.
10142 2015-06-01 Martin Liska <mliska@suse.cz>
10144 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
10145 (sra_deinitialize) Likewise.
10146 (create_access_1) Likewise.
10147 (build_accesses_from_assign) Likewise.
10148 (create_artificial_child_access) Likewise.
10150 2015-06-01 Martin Liska <mliska@suse.cz>
10152 * dse.c (get_group_info):Use new type-based pool allocator.
10153 (dse_step0) Likewise.
10154 (free_store_info) Likewise.
10155 (delete_dead_store_insn) Likewise.
10156 (free_read_records) Likewise.
10157 (record_store) Likewise.
10158 (replace_read) Likewise.
10159 (check_mem_read_rtx) Likewise.
10160 (scan_insn) Likewise.
10161 (dse_step1) Likewise.
10162 (dse_step7) Likewise.
10164 2015-06-01 Martin Liska <mliska@suse.cz>
10166 * df-scan.c (struct df_scan_problem_data):Use new type-based
10168 (df_scan_free_internal) Likewise.
10169 (df_scan_alloc) Likewise.
10170 (df_grow_reg_info) Likewise.
10171 (df_free_ref) Likewise.
10172 (df_insn_create_insn_record) Likewise.
10173 (df_mw_hardreg_chain_delete) Likewise.
10174 (df_insn_info_delete) Likewise.
10175 (df_free_collection_rec) Likewise.
10176 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
10177 (df_sort_and_compress_mws) Likewise.
10178 (df_ref_create_structure) Likewise.
10179 (df_ref_record) Likewise.
10181 2015-06-01 Martin Liska <mliska@suse.cz>
10183 * df-problems.c (df_chain_create):Use new type-based pool allocator.
10184 (df_chain_unlink_1) Likewise.
10185 (df_chain_unlink) Likewise.
10186 (df_chain_remove_problem) Likewise.
10187 (df_chain_alloc) Likewise.
10188 (df_chain_free) Likewise.
10189 * df.h (struct dataflow) Likewise.
10191 2015-06-01 Martin Liska <mliska@suse.cz>
10193 * cselib.c (new_elt_list):Use new type-based pool allocator.
10194 (new_elt_loc_list) Likewise.
10195 (unchain_one_elt_list) Likewise.
10196 (unchain_one_elt_loc_list) Likewise.
10197 (unchain_one_value) Likewise.
10198 (new_cselib_val) Likewise.
10199 (cselib_init) Likewise.
10200 (cselib_finish) Likewise.
10202 2015-06-01 Martin Liska <mliska@suse.cz>
10204 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
10205 (sh_reorg) Likewise.
10207 2015-06-01 Martin Liska <mliska@suse.cz>
10209 * cfg.c (initialize_original_copy_tables):Use new type-based
10211 (free_original_copy_tables) Likewise.
10212 (copy_original_table_clear) Likewise.
10213 (copy_original_table_set) Likewise.
10215 2015-06-01 Martin Liska <mliska@suse.cz>
10217 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
10219 (asan_mem_ref_new) Likewise.
10220 (free_mem_ref_resources) Likewise.
10222 2015-06-01 Martin Liska <mliska@suse.cz>
10224 * var-tracking.c (variable_htab_free):Use new type-based
10226 (attrs_list_clear) Likewise.
10227 (attrs_list_insert) Likewise.
10228 (attrs_list_copy) Likewise.
10229 (shared_hash_unshare) Likewise.
10230 (shared_hash_destroy) Likewise.
10231 (unshare_variable) Likewise.
10232 (var_reg_delete_and_set) Likewise.
10233 (var_reg_delete) Likewise.
10234 (var_regno_delete) Likewise.
10235 (drop_overlapping_mem_locs) Likewise.
10236 (variable_union) Likewise.
10237 (insert_into_intersection) Likewise.
10238 (canonicalize_values_star) Likewise.
10239 (variable_merge_over_cur) Likewise.
10240 (dataflow_set_merge) Likewise.
10241 (remove_duplicate_values) Likewise.
10242 (variable_post_merge_new_vals) Likewise.
10243 (dataflow_set_preserve_mem_locs) Likewise.
10244 (dataflow_set_remove_mem_locs) Likewise.
10245 (variable_from_dropped) Likewise.
10246 (variable_was_changed) Likewise.
10247 (set_slot_part) Likewise.
10248 (clobber_slot_part) Likewise.
10249 (delete_slot_part) Likewise.
10250 (loc_exp_insert_dep) Likewise.
10251 (notify_dependents_of_changed_value) Likewise.
10252 (emit_notes_for_differences_1) Likewise.
10253 (vt_emit_notes) Likewise.
10254 (vt_initialize) Likewise.
10255 (vt_finalize) Likewise.
10257 2015-06-01 Martin Liska <mliska@suse.cz>
10259 * ira-color.c (init_update_cost_records):Use new type-based
10261 (get_update_cost_record) Likewise.
10262 (free_update_cost_record_list) Likewise.
10263 (finish_update_cost_records) Likewise.
10264 (initiate_cost_update) Likewise.
10266 2015-06-01 Martin Liska <mliska@suse.cz>
10268 * lra.c (init_insn_regs): Use new type-based pool allocator.
10269 (new_insn_reg) Likewise.
10270 (free_insn_reg) Likewise.
10271 (free_insn_regs) Likewise.
10272 (finish_insn_regs) Likewise.
10273 (init_insn_recog_data) Likewise.
10274 (init_reg_info) Likewise.
10275 (finish_reg_info) Likewise.
10276 (lra_free_copies) Likewise.
10277 (lra_create_copy) Likewise.
10278 (invalidate_insn_data_regno_info) Likewise.
10280 2015-06-01 Martin Liska <mliska@suse.cz>
10282 * lra-lives.c (free_live_range): Use new type-based pool allocator.
10283 (free_live_range_list) Likewise.
10284 (create_live_range) Likewise.
10285 (copy_live_range) Likewise.
10286 (lra_merge_live_ranges) Likewise.
10287 (remove_some_program_points_and_update_live_ranges) Likewise.
10288 (lra_live_ranges_init) Likewise.
10289 (lra_live_ranges_finish) Likewise.
10291 2015-06-01 Martin Liska <mliska@suse.cz>
10293 * et-forest.c (et_new_occ): Use new type-based pool allocator.
10294 (et_new_tree): Likewise.
10295 (et_free_tree): Likewise.
10296 (et_free_tree_force): Likewise.
10297 (et_free_pools): Likewise.
10298 (et_split): Likewise.
10300 2015-06-01 Martin Liska <mliska@suse.cz>
10302 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
10304 * alloc-pool.h (pool_allocator::pool_allocator): New function.
10305 (pool_allocator::release): Likewise.
10306 (inline pool_allocator::release_if_empty): Likewise.
10307 (inline pool_allocator::~pool_allocator): Likewise.
10308 (pool_allocator::allocate): Likewise.
10309 (pool_allocator::remove): Likewise.
10311 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
10313 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
10316 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
10318 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
10320 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
10321 (arm_macro_fusion_p): Likewise.
10322 (arm_macro_fusion_pair_p): Likewise.
10324 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
10326 * config/aarch64/aarch64-protos.h (tune_params): Rename
10327 fuseable_ops to fusible_ops.
10328 * config/aarch64/aarch64.c (generic_tunings): Rename
10329 fuseable_ops to fusible_ops.
10330 (cortexa53_tunings): Likewise.
10331 (cortexa57_tunings): Likewise.
10332 (thunderx_tunings): Likewise.
10333 (xgene1_tunings): Likewise.
10334 (aarch64_macro_fusion_p): Likewise.
10335 (aarch64_macro_fusion_pair_p): Likewise.
10337 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
10339 * config/s390/driver-native.c: New file.
10340 * config/s390/x-native: New file.
10341 * config.host: Add new files for s390.
10342 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
10344 * config.gcc: Likewise.
10345 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
10346 * config/s390/s390-opts.h (enum processor_type): Ditto.
10347 * config/s390/s390.c (s390_option_override): Catch unhandled
10350 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
10353 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
10354 redirection for instrumented calls.
10355 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
10356 (append_compiler_options): Append -fcheck-pointer-bounds.
10357 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
10358 (chkp_redirect_edge): New.
10359 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
10360 (chkp_redirect_edge): New.
10362 2015-06-01 Richard Biener <rguenther@suse.de>
10364 PR tree-optimization/66280
10365 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
10368 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10370 * config/aarch64/aarch64.md
10371 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
10374 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
10376 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
10377 Remove obsolete kludge.
10379 2015-06-01 Richard Biener <rguenther@suse.de>
10381 * tree-ssa-reassoc.c (get_rank): Simplify.
10383 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
10385 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
10386 * configure: Regenerated.
10388 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
10390 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
10391 issue (add space between string literal and macro).
10392 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
10394 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
10396 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
10397 implict or explicit -fPIE or -fpie.
10399 2015-05-30 Mike Frysinger <vapier@gentoo.org>
10401 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
10403 2015-05-28 DJ Delorie <dj@redhat.com>
10405 * expmed.c (extract_bit_field_1): Avoid clobbering a
10406 yet-to-be-used base/index register.
10408 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
10410 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
10411 (alias_stats): Add num_universal.
10412 (alias_set_subset_of): Special case pointers; be ready for NULL
10414 (alias_sets_conflict_p): Special case pointers; be ready for NULL
10416 (init_alias_set_entry): Break out from ...
10417 (record_alias_subset): ... here; propagate new fields;
10418 allocate children only when really needed.
10419 (get_alias_set): Do less generous pointer globbing.
10420 (dump_alias_stats_in_alias_c): Update statistics.
10422 2015-05-30 Alan Modra <amodra@gmail.com>
10424 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
10425 correct block for use of r12.
10426 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
10428 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
10431 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
10434 2015-05-29 Jakub Jelinek <jakub@redhat.com>
10436 PR tree-optimization/66142
10437 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
10438 virtual phis that feed themselves.
10440 2015-05-29 Richard Biener <rguenther@suse.de>
10442 PR tree-optimization/66314
10443 * tree-ssa-threadupdate.c (create_block_for_threading): Add
10444 parameter that says which loop the new block belongs to.
10445 (ssa_create_duplicates): Blocks duplicated for the threaded
10446 path belong to the loop of the thread destination.
10448 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
10450 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
10451 to cleanup-saved-temps.
10452 * doc/sourcebuild.texi (Clean up generated test files): Expand
10454 (dg-keep-saved-temps): Document new proc.
10455 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
10456 cleanup-saved-temps): Remove.
10458 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
10460 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
10461 gcc_AC_CHECK_DECLS.
10462 * configure: Regenerate.
10464 2015-05-28 Mike Frysinger <vapier@gentoo.org>
10466 * config/nios2/linux.h (CPP_SPEC): Define.
10468 2015-05-28 Mike Frysinger <vapier@gentoo.org>
10470 * config/microblaze/linux.h (CPP_SPEC): Define.
10472 2015-05-28 Mike Frysinger <vapier@gentoo.org>
10474 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
10475 -pthread is specified.
10477 2015-05-28 Richard Biener <rguenther@suse.de>
10479 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
10480 (vect_fixup_scalar_cycles_with_patterns): Likewise.
10481 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
10482 after pattern recog.
10483 (vect_create_epilog_for_reduction): Properly handle reductions
10485 (vectorizable_reduction): Likewise.
10486 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
10488 (vect_get_constant_vectors): Create the correct number of
10489 initial values for reductions.
10490 (vect_schedule_slp_instance): Handle reduction chains that are
10491 type changing properly.
10492 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
10494 2015-05-28 Richard Biener <rguenther@suse.de>
10496 PR tree-optimization/66142
10497 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
10498 values better in memcpy destination handling. Handle non-aliasing
10501 2015-05-28 Lawrence Velázquez <vq@larryv.me>
10504 * config/darwin-c.c (version_components): New global enum.
10505 (parse_version, version_as_legacy_macro)
10506 (version_as_modern_macro, macosx_version_as_macro): New functions.
10507 (version_as_macro): Remove.
10508 (darwin_cpp_builtins): Use new function.
10510 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
10512 * builtins.c (expand_builtin_acc_on_device): Mark parameters
10513 with ATTRIBUTE_UNUSED.
10515 2015-05-28 Julian Brown <julian@codesourcery.com>
10519 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
10520 sequence for !ACCEL_COMPILER.
10522 2015-05-28 Nick Clifton <nickc@redhat.com>
10524 * config/rx/rx.c (push_regs): New function. Extracts code from...
10525 (rx_expand_prologue): ... here. Use push_regs to push even small
10526 spans of registers.
10527 (pop_regs): New function.
10528 (rx_expand_epilogue): Use pop_regs to pop even small spans of
10531 2015-05-28 Richard Biener <rguenther@suse.de>
10533 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
10535 (SLP_INSTANCE_BODY_COST_VEC): Remove.
10536 (vect_update_slp_costs_according_to_vf): Likewise.
10537 (vect_slp_analyze_operations): Update prototype.
10538 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
10539 vect_update_slp_costs_according_to_vf, adjust.
10540 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
10541 (vect_analyze_slp_cost_1): Likewise.
10542 (vect_analyze_slp_cost): Likewise. Properly deal with
10543 widening reduction ops. Commit body costs.
10544 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
10545 cost for loops from here.
10546 (vect_slp_analyze_operations): But do it from here when
10547 the vectorization factor is known and stmts are analyzed.
10548 (vect_bb_vectorization_profitable_p): Simplify.
10549 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
10550 (vect_update_slp_costs_according_to_vf): Remove.
10552 2015-05-27 Magnus Granberg <zorry@gentoo.org>
10553 H.J. Lu <hongjiu.lu@intel.com>
10555 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
10556 (BUILD_CFLAGS): Likewise.
10557 (BUILD_CXXFLAGS): Likewise.
10558 (LINKER): Add @NO_PIE_FLAG@.
10559 (BUILD_LDFLAGS): Likewise.
10560 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
10561 --enable-default-pie.
10562 * common.opt (fPIE): Initialize to -1.
10564 (no-pie): New option.
10565 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
10566 * configure.ac: Add --enable-default-pie.
10567 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
10568 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
10569 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
10570 * gcc.c (NO_PIE_SPEC): New.
10571 (PIE_SPEC): Likewise.
10572 (NO_FPIE1_SPEC): Likewise.
10573 (FPIE1_SPEC): Likewise.
10574 (NO_FPIE2_SPEC): Likewise.
10575 (FPIE2_SPEC): Likewise.
10576 (NO_FPIE2_SPEC): Likewise.
10577 (FPIE_SPEC): Likewise.
10578 (NO_FPIE_SPEC): Likewise.
10579 (NO_FPIC1_SPEC): Likewise.
10580 (FPIC1_SPEC): Likewise.
10581 (NO_FPIC2_SPEC): Likewise.
10582 (FPIC2_SPEC): Likewise.
10583 (NO_FPIC2_SPEC): Likewise.
10584 (FPIC_SPEC): Likewise.
10585 (NO_FPIC_SPEC): Likewise.
10586 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
10587 (FPIE1_OR_FPIC1_SPEC): Likewise.
10588 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
10589 (FPIE2_OR_FPIC2_SPEC): Likewise.
10590 (NO_FPIE_AND_FPIC_SPEC): Likewise.
10591 (FPIE_OR_FPIC_SPEC): Likewise.
10592 (LD_PIE_SPEC): Likewise.
10593 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
10594 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
10595 * config/darwin.h (PIE_SPEC): Renamed to ...
10596 (DARWIN_PIE_SPEC): This.
10597 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
10598 * config/darwin9.h (PIE_SPEC): Renamed to ...
10599 (DARWIN_PIE_SPEC): This.
10600 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
10601 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
10602 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
10603 FPIE2_OR_FPIC2_SPEC.
10604 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
10605 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
10606 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
10607 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
10608 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
10609 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
10610 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
10611 * config/m32r/m32r.h (ASM_SPEC): Likewise.
10612 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
10613 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
10614 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
10615 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
10616 * config/sparc/linux.h (ASM_SPEC): Likewise.
10617 * config/sparc/linux64.h (ASM_SPEC): Likewise.
10618 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
10619 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
10620 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
10621 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
10622 * config/sparc/sparc.h (ASM_SPEC): Likewise.
10623 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
10624 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
10625 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
10626 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
10627 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
10628 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
10629 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
10630 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
10631 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
10632 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
10633 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
10634 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
10635 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
10636 * config/vax/linux.h (ASM_SPEC): Likewise.
10637 * doc/install.texi: Document --enable-default-pie.
10638 * doc/invoke.texi: Document -no-pie.
10639 * config.in: Regenerated.
10640 * configure: Likewise.
10642 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
10644 PR rtl-optimization/66168
10645 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
10646 can_move_invariant_reg.
10648 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
10651 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
10652 REG_EQUAL note when doing insert.
10654 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
10655 instead of "%d" for 'o' operand.
10657 2015-05-27 Nathan Sidwell <nathan@acm.org>
10660 * tree.c (build_pointer_type_for_mode): Canonical type does not
10661 inherit can_alias_all.
10662 (build_reference_type_for_mode): Likewise.
10664 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
10666 * expr.h (array_at_struct_end_p): Move to...
10667 (array_ref_element_size): Likewise.
10668 (component_ref_field_offset): Likewise.
10669 * tree.h (array_ref_element_size): ...here.
10670 (array_at_struct_end_p): Likewise.
10671 (component_ref_field_offset): Likewise.
10672 * expr.c (array_ref_element_size): Move to...
10673 (array_ref_low_bound): Likewise.
10674 (array_at_struct_end_p): Likewise.
10675 (array_ref_up_bound): Likewise.
10676 (component_ref_field_offset): Likewise.
10677 * tree.c (array_ref_element_size): ...here.
10678 (array_ref_low_bound): Likewise.
10679 (array_ref_up_bound): Likewise.
10680 (array_at_struct_end_p): Likewise.
10681 (component_ref_field_offset): Likewise.
10683 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
10684 Szabolcs Nagy <szabolcs.nagy@arm.com>
10686 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
10688 2015-05-27 Jason Merrill <jason@redhat.com>
10691 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
10692 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
10693 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
10695 2015-05-22 Aditya Kumar <hiraditya@msn.com>
10697 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
10700 * statistics.c (statistics_fini_pass): Print pass name.
10702 2015-05-27 Richard Biener <rguenther@suse.de>
10704 PR tree-optimization/66272
10706 2014-08-15 Richard Biener <rguenther@suse.de>
10708 PR tree-optimization/62031
10709 * tree-data-ref.c (dr_analyze_indices): Do not set
10710 DR_UNCONSTRAINED_BASE.
10711 (dr_may_alias_p): All indirect accesses have to go the
10712 formerly DR_UNCONSTRAINED_BASE path.
10713 * tree-data-ref.h (struct indices): Remove
10714 unconstrained_base member.
10715 (DR_UNCONSTRAINED_BASE): Remove.
10717 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
10719 * dwarf2out.c: Remove block_map.
10720 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
10721 (gen_lexical_block_die): Same.
10722 (dwarf2out_function_decl): Remove block_map use.
10723 (dwarf2out_c_finalize): Same.
10724 * tree-core.h (struct tree_block): Add die field.
10725 * tree.h (BLOCK_DIE): New.
10727 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10730 * expr.c (memory_load_overlap): New function.
10731 (emit_push_insn): When pushing partial args to the stack would
10732 clobber the register part load the overlapping part into a pseudo
10733 and put it into the hard reg after pushing. Change return type
10734 to bool. Add bool argument.
10735 * expr.h (emit_push_insn): Change return type to bool.
10737 * calls.c (expand_call): Cancel sibcall optimization when encountering
10738 partial argument on targets with ARGS_GROW_DOWNWARD and
10739 !STACK_GROWS_DOWNWARD.
10740 (emit_library_call_value_1): Update callsite of emit_push_insn.
10741 (store_one_arg): Likewise.
10743 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
10745 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
10747 2015-05-27 Martin Liska <mliska@suse.cz>
10749 * Makefile.in: Add additional dependencies related to memory report
10751 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
10752 * bitmap.c (struct bitmap_descriptor_d): Remove.
10753 (struct loc): Likewise.
10754 (struct bitmap_desc_hasher): Likewise.
10755 (bitmap_desc_hasher::hash): Likewise.
10756 (bitmap_desc_hasher::equal): Likewise.
10757 (get_bitmap_descriptor): Likewise.
10758 (bitmap_register): User new memory descriptor API.
10759 (register_overhead): Likewise.
10760 (bitmap_find_bit): Register nsearches and search_iter statistics.
10761 (struct bitmap_output_info): Remove.
10762 (print_statistics): Likewise.
10763 (dump_bitmap_statistics): Use new memory descriptor.
10764 * bitmap.h (struct bitmap_usage): New class.
10765 * genmatch.c: Extend header file inclusion.
10766 * genpreds.c: Likewise.
10767 * ggc-common.c (struct ggc_usage): New class.
10768 (struct ggc_loc_desc_hasher): Remove.
10769 (ggc_loc_desc_hasher::hash): Likewise.
10770 (ggc_loc_desc_hasher::equal): Likewise.
10771 (struct ggc_ptr_hash_entry): Likewise.
10772 (struct ptr_hash_hasher): Likewise.
10773 (ptr_hash_hasher::hash): Likewise.
10774 (ptr_hash_hasher::equal): Likewise.
10775 (make_loc_descriptor): Likewise.
10776 (ggc_prune_ptr): Likewise.
10777 (dump_ggc_loc_statistics): Use new memory descriptor.
10778 (ggc_record_overhead): Likewise.
10779 (ggc_free_overhead): Likewise.
10780 (final_cmp_statistic): Remove.
10781 (cmp_statistic): Likewise.
10782 (ggc_add_statistics): Liekwise.
10783 (ggc_prune_overhead_list): Likewise.
10784 * hash-map-traits.h: New file.
10785 * hash-map.h (struct default_hashmap_traits): Move the traits to a
10786 separate header file.
10787 * hash-set.h: Pass memory statistics info to ctor.
10788 * hash-table.c (void dump_hash_table_loc_statistics): New function.
10789 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
10790 (hash_table::~hash_table): Register memory release operation.
10791 (hash_table::alloc_entries): Handle memory allocation operation.
10792 (hash_table::expand): Likewise.
10793 * inchash.c (iterative_hash_hashval_t): Move implementation to header
10795 (iterative_hash_host_wide_int): Likewise.
10796 * inchash.h (class hash): Likewise.
10797 * mem-stats-traits.h: New file.
10798 * mem-stats.h: New file.
10799 (mem_location): Add new class.
10800 (mem_usage): Likewise.
10801 (mem_alloc_description): Likewise.
10802 * sese.c: Add new header file inclusision.
10803 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
10805 * tree-sra.c: Add new header file inclusision.
10806 * vec.c (struct vec_descriptor): Remove.
10807 (hash_descriptor): Likewise.
10808 (struct vec_usage): Likewise.
10809 (struct ptr_hash_entry): Likewise.
10810 (hash_ptr): Likewise.
10811 (eq_ptr): Likewise.
10812 (vec_prefix::register_overhead): Use new memory descriptor API.
10813 (vec_prefix::release_overhead): Likewise.
10814 (add_statistics): Remove.
10815 (dump_vec_loc_statistics): Use new memory descriptor API.
10816 * vec.h (struct vec_prefix): Likewise.
10817 (va_heap::reserve): Likewise.
10818 (va_heap::release): Likewise.
10819 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
10821 2015-05-27 Richard Biener <rguenther@suse.de>
10823 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
10824 earlier and remove ??? comment.
10825 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
10826 and got called from loop analysis bail out. Always pass the SLP
10827 node to the vectorizable_* functions.
10828 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
10829 the premature SLP check here.
10830 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
10831 detected SLP stmts.
10832 (vect_detect_hybrid_slp_1): Likewise.
10834 2015-05-26 Jeff Law <law@redhat.com>
10836 * combine.c (find_split_point): Verify that the shift count is a
10837 constant when choosing (plus (ashift ...)) as a split point.
10839 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
10840 No functional changes.
10842 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
10844 * ipa-polymorphic-call.c
10845 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
10846 case when call target is already known.
10848 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
10851 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
10852 take into account the case that operands[1] and operands[2]
10853 are the same register.
10855 2015-05-26 Michael Matz <matz@suse.de>
10857 PR middle-end/66251
10859 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
10861 (vect_create_vectorized_demotion_stmts): Always set
10862 STMT_VINFO_VEC_STMT, also with SLP.
10863 (vectorizable_store): Handle strided group stores.
10865 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10868 * config/aarch64/aarch64.md
10869 (*adds_shift_imm_<mode>): New pattern.
10870 (*subs_shift_imm_<mode>): Likewise.
10871 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
10872 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
10873 (*add_uxt<mode>_shift2): Likewise.
10874 (*add_uxtsi_shift2_uxtw): Likewise.
10875 (*sub_uxt<mode>_shift2): Likewise.
10876 (*sub_uxtsi_shift2_uxtw): Likewise.
10878 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
10880 * config/rs6000/constraints.md (Y, U): Use match_test.
10882 2015-05-26 Christian Bruel <christian.bruel@st.com>
10885 * config/arm/arm.c (arm_option_check_internal)
10886 (arm_option_params_internal): Check opts->target_flags to set macros.
10887 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
10888 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
10889 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
10890 (builtin_define): Replaced with def_or_undef_macro.
10891 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
10892 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
10893 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
10894 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
10895 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
10896 (TARGET_ARM_FEATURE_LDREX_P)
10897 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
10898 * config/arm/arm-c.c (def_or_undef_macro): New function.
10899 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
10901 2015-05-26 Christian Bruel <christian.bruel@st.com>
10903 * c-common.h (builtin_define_with_int_value)
10904 (builtin_define_type_sizeof): Declare.
10905 * c-cppbuiltin.c (builtin_define_with_int_value)
10906 (builtin_define_type_sizeof): Externalize.
10907 (builtin_define_std): Cleanup declaration.
10908 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
10909 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
10910 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
10911 (builtin_define, builtin_assert): New macros.
10913 2015-05-26 Richard Biener <rguenther@suse.de>
10915 PR tree-optimization/66142
10916 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
10917 MEM_REFs for the same base address.
10919 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10922 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
10924 2015-05-26 Jason Merrill <jason@redhat.com>
10926 * configure.ac: Set CXXFLAGS for ISL test.
10927 * configure: Regenerate.
10929 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
10930 strstr and basename.
10931 * configure: Regenerate.
10933 2015-05-26 Richard Biener <rguenther@suse.de>
10935 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
10936 X % C -> X & (C - 1) for C being a power-of two to ...
10937 * match.pd: ... patterns.
10939 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
10941 * match.pd (swapped_tcc_comparison): New operator list.
10942 (-A CMP -B): New simplification.
10943 * fold-const.c (fold_comparison): Remove corresponding code.
10945 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
10947 * caller-save.c (init_caller_save): Base temporary register numbers
10948 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
10949 * cfgloopanal.c (init_set_costs): Likewise.
10950 * dojump.c (prefer_and_bit_test): Likewise.
10951 * expr.c (init_expr_target): Likewise.
10952 * ira.c (setup_prohibited_mode_move_regs): Likewise.
10953 * lower-subreg.c (init_lower_subreg): Likewise.
10954 * postreload.c (reload_cse_regs_1): Likewise.
10956 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
10958 * gensupport.h (compute_test_codes): Declare.
10959 * gensupport.c (compute_predicate_codes): Rename to...
10960 (compute_test_codes): ...this. Generalize error message.
10961 (process_define_predicate): Update accordingly.
10962 * genpreds.c (compute_maybe_allows): Delete.
10963 (add_constraint): Use compute_test_codes to determine whether
10964 something can accept a SUBREG, REG or MEM.
10966 2015-05-26 Torvald Riegel <triegel@redhat.com>
10968 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
10969 'memory model' to align with C++11; fix description of memory orders;
10972 2015-05-26 Richard Biener <rguenther@suse.de>
10974 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
10975 (vect_analyze_loop_operations): ... here. Remove slp parameter,
10976 detect whether we apply SLP. Remove call to
10977 vect_update_slp_costs_according_to_vf.
10978 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
10979 vect_update_slp_costs_according_to_vf from here. Dispatch
10980 to vect_slp_analyze_operations to analyze SLP stmts.
10981 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
10982 unused bb_vec_info parameter, adjust assert.
10983 (vect_slp_analyze_operations): Pass in the slp instance tree
10984 instead of bb_vec_info.
10985 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
10986 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
10988 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
10990 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
10991 Q_REGS. Expand comment.
10992 (REG_CLASS_NAMES): Ditto.
10993 (REG_CLASS_CONTENTS): Ditto.
10995 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
10998 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
10999 when LEGACY_INT_REGNO_P is processed.
11001 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11003 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
11005 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11007 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
11008 register if not marked dead/unused, before return.
11010 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11013 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
11014 is set; check for assembler name at LTO time.
11015 (type_in_anonymous_namespace): Remove hacks, check that all
11016 anonymous types are called "<anon>"
11017 (odr_type_p): Simplify; add check for "<anon>"
11018 (odr_subtypes_equivalent): Add odr_type_p check.
11019 * tree.c (need_assembler_name_p): Even anonymous namespace needs
11022 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11024 * ipa-utils.h (method_class_type): Remove.
11025 * cgraphunit.c (walk_polymorphic_call_targets): Use
11026 TYPE_METHOD_BASETYPE.
11027 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
11028 on main variants only.
11029 (method_class_type): Remove.
11030 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
11031 (build_type_inheritance_graph): Likewise.
11032 * ipa-icf.c (sem_function::equals_wpa): Likewise.
11033 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
11034 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
11036 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11038 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
11039 is_typedef_decl, typedef_variant_p): Constify.
11040 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
11041 is_typedef_decl, typedef_variant_p): Constify.
11043 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11045 * defaults.h (gen_tablejump): New function.
11046 (HAVE_tablejump): Add default value.
11048 * stmt.c: Likewise.
11050 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11052 * defaults.h (gen_store_multiple): New function.
11053 (HAVE_store_multiple): Add default value.
11054 * expr.c (move_block_from_reg): Adjust.
11056 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11058 * defaults.h (gen_load_multiple): New function.
11059 (HAVE_load_multiple): Add default value.
11060 * expr.c (move_block_to_reg): Adjust.
11062 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11064 * defaults.h (gen_mem_signal_fence): New function.
11065 (HAVE_mem_signal_fence): Add default value.
11066 * optabs.c: Adjust.
11068 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11070 * defaults.h (gen_memory_barrier): New function.
11071 (HAVE_memory_barrier): Add default value.
11072 * optabs.c: Adjust.
11074 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11076 * defaults.h (gen_mem_thread_fence): New function.
11077 (HAVE_mem_thread_fence): Add default definition.
11078 * optabs.c: Adjust.
11080 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11082 * combine.c (find_split_point): Check the value of HAVE_lo_sum
11083 instead of if it is defined.
11084 (combine_simplify_rtx): Likewise.
11085 * lra-constraints.c (process_address_1): Likewise.
11086 * config/darwin.c: Adjust.
11087 * genconfig.c (main): Always define HAVE_lo_sum.
11089 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11091 * genmatch.c (parser::parse_operation): Reject expanding
11092 operator-list inside 'for'.
11094 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11096 * genmatch.c (parser::parse_for): Reject iterator if used as
11099 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11101 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
11102 after end of id-list.
11104 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
11106 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
11107 we do not try to compute canonical type for type that does not need
11109 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
11111 * tree.h (type_with_alias_set_p): New.
11113 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
11115 * tree.c (gimple_canonical_types_compatible_p): Do not compare
11116 function attributes.
11117 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
11119 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
11121 * Makefile.in (check_gcc_parallelize): Delete.
11122 (lang_checks_parallelized): Update comment.
11124 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
11126 PR rtl-optimization/66237
11127 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
11128 location of an "as_a" cast.
11130 2015-05-22 Jeff Law <law@redhat.com>
11132 * config/pa/pa.md (non-canonical shift-add insns): Remove.
11133 (peepholes with non-canonical RTL sources): Remove.
11134 (peepholes for indexed stores of FP regs in integer modes): Match and
11135 generate canonical RTL.
11137 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11139 PR tree-optimization/63387
11140 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
11141 ((x ord x) & (y ord y) -> (x ord y),
11142 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
11143 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
11144 vectors like scalars.
11146 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11148 * convert.c (convert_to_integer, convert_to_vector): Include the
11149 types in the error message.
11151 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
11153 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
11156 2015-05-22 Jeff Law <law@redhat.com>
11158 * config/pa/pa.md (integer_indexed_store splitters): Use
11159 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
11160 insns -- adjusting the constant 2nd operand accordingly.
11162 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
11163 (plus (ashift X log2) Y) if it is a split point.
11165 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
11166 out of hppa_legitimize_address to handle both forms of a multiply
11168 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
11169 Always generate the ASHIFT variant as the result is not directly
11170 used in a MEM. Update comments and refactor slightly to improve
11173 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11176 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
11177 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
11178 (aarch64_composite_type_p): Return false if given type and mode are
11179 for a short vector.
11181 2015-05-22 Richard Biener <rguenther@suse.de>
11183 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
11185 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
11186 patterns when determining whether SLP is pure.
11187 (vect_is_slp_reduction): Remove check for pattern stmts.
11188 (vect_is_simple_reduction_1): Remove dead code.
11189 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
11190 (vect_get_and_check_slp_defs): Pass in the stmt number.
11191 Allow the first def in a reduction to be not a pattern stmt when
11192 the rest of the stmts def are patterns.
11193 (vect_build_slp_tree_1): Allow tcc_expression codes like
11194 SAD_EXPR and DOT_PROD_EXPR.
11195 (vect_build_slp_tree): Adjust.
11196 (vect_analyze_slp): Refactor and move BB vect error message ...
11197 (vect_slp_analyze_bb_1): ... here.
11199 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
11201 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
11202 for CSWTCH temporary.
11204 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11206 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
11207 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
11210 2015-05-22 Richard Biener <rguenther@suse.de>
11212 PR tree-optimization/66251
11213 * tree-vect-stmts.c (vectorizable_conversion): Properly
11214 set STMT_VINFO_VEC_STMT even for the SLP case.
11216 2015-05-22 Marek Polacek <polacek@redhat.com>
11218 * doc/extend.texi: Use @pxref instead of @xref.
11220 2015-05-22 hiraditya <hiraditya@msn.com>
11222 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
11225 2015-05-22 Richard Biener <rguenther@suse.de>
11227 PR tree-optimization/65701
11228 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
11229 Move peeling cost models into one place. Peel for alignment
11230 for single loads only if an aligned load is cheaper than
11233 2015-05-22 Marek Polacek <polacek@redhat.com>
11236 * doc/extend.texi (Enumerator Attributes): New section.
11237 Document syntax of enumerator attributes.
11239 2015-05-22 Richard Biener <rguenther@suse.de>
11241 * tree-vect-loop.c (get_reduction_op): New function.
11242 (vect_model_reduction_cost): Use it, add reduc_index parameter.
11243 Make ready for BB reductions.
11244 (vect_create_epilog_for_reduction): Use get_reduction_op.
11245 (vectorizable_reduction): Init reduc_index to a valid value.
11246 Adjust vect_model_reduction_cost call.
11247 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
11248 operand for reduction defaults. Add SAD_EXPR support.
11249 Assert we have a neutral op for SLP reductions.
11250 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
11251 walking pattern stmt ops only recurse to SSA names.
11253 2015-05-22 Richard Biener <rguenther@suse.de>
11255 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
11256 assert with guard, remove check on detected reduction.
11257 (vect_recog_sad_pattern): Likewise.
11258 (vect_recog_widen_sum_pattern): Likewise.
11260 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11262 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
11263 __always_inline__ attribute.
11264 (vaesdq_u8): Likewise.
11265 (vaesmcq_u8): Likewise.
11266 (vaesimcq_u8): Likewise.
11267 (vsha1cq_u32): Likewise.
11268 (vsha1mq_u32): Likewise.
11269 (vsha1pq_u32): Likewise.
11270 (vsha1h_u32): Likewise.
11271 (vsha1su0q_u32): Likewise.
11272 (vsha1su1q_u32): Likewise.
11273 (vsha256hq_u32): Likewise.
11274 (vsha256h2q_u32): Likewise.
11275 (vsha256su0q_u32): Likewise.
11276 (vsha256su1q_u32): Likewise.
11277 (vmull_p64): Likewise.
11278 (vmull_high_p64): Likewise.
11280 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11282 * final.c (final_scan_insn): Don't check HAVE_peephole with the
11284 * output.h: Likewise.
11285 * genconfig.c (main): Alwways define HAVE_peephole.
11286 * genpeep.c: Don't emit checks of HAVE_peephole.
11288 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11290 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
11291 check HAVE_conditional_move with the preprocessor.
11293 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11295 * genconfig.c (main): Always define HAVE_conditional_move.
11296 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
11297 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
11300 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11302 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
11303 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
11304 and FRAME_POINTER_REGNUM with the preprocessor.
11306 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11308 * defaults.h: Add default for STACK_PUSH_CODE.
11309 * expr.c: Don't redefine STACK_PUSH_CODE.
11310 * recog.c: Likewise.
11312 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11314 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
11315 sched-deps.c: Use if instead of preprocessor checks with
11316 STACK_GROWS_DOWNWARD.
11318 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11320 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
11322 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
11323 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
11324 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
11325 * doc/tm.texi: Regenerate.
11327 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
11330 * config/i386/constraints.md (Bg): New constraint for GOT memory
11332 * config/i386/i386.md (*call_got_x32): New pattern.
11333 (*call_value_got_x32): Likewise.
11334 * config/i386/predicates.md (GOT_memory_operand): New predicate.
11336 2015-05-21 Jakub Jelinek <jakub@redhat.com>
11338 PR tree-optimization/66233
11339 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
11342 2015-05-21 Jeff Law <law@redhat.com>
11344 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
11345 than MULT for shadd sequences.
11347 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
11349 * alias.c (alias_stats): New static var.
11350 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
11351 (dump_alias_stats_in_alias_c): New function.
11352 * alias.h (dump_alias_stats_in_alias_c): Declare.
11353 * tree-ssa-alias.c (dump_alias_stats): Call it.
11355 2015-05-08 Michael Matz <matz@suse.de>
11357 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
11359 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
11360 (STMT_VINFO_STRIDED_P): ... this.
11361 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
11362 (vect_verify_datarefs_alignment): Likewise.
11363 (vect_enhance_data_refs_alignment): Likewise.
11364 (vect_analyze_data_ref_access): Likewise.
11365 (vect_analyze_data_refs): Accept strided stores.
11366 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
11367 (vect_model_load_cost): Adjust for macro rename.
11368 (vectorizable_mask_load_store): Likewise.
11369 (vectorizable_load): Likewise.
11370 (vectorizable_store): Open code strided stores.
11372 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11374 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
11375 Document sqrt_insn.
11377 2015-05-21 Richard Biener <rguenther@suse.de>
11380 * match.pd: Guard pattern optimzing (int)(float)int
11381 conversions to apply only on GIMPLE.
11383 2015-05-21 Jeff Law <law@redhat.com>
11385 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
11386 multiply-accumulate/shift-add insn generation.
11388 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
11391 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
11392 operands[1] are the same.
11394 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
11396 PR middle-end/66221
11397 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
11398 build_distinct_type_copy to copy bounds.
11400 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
11402 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
11403 Change to unsigned int.
11405 2015-05-20 Jeff Law <law@redhat.com>
11407 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
11408 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
11409 (pa_shadd_constant_p): Allow constants for shadd insns rather
11410 than valid scaling constants for memory addresses.
11411 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
11412 * config/pa/predicates.md (mem_shadd_operand): New predicate.
11413 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
11414 (shift-add insns using ASHIFT): New patterns.
11416 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
11418 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
11420 (fix_up_fall_thru_edges): Likewise.
11421 (fix_crossing_conditional_branches): Likewise. Promote jump targets
11422 from to rtx_insn to rtx_code_label where feasible.
11423 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
11424 gen_move_insn (returned type changed to rtx_insn).
11425 * builtins.c (expand_errno_check): Fix arguments of
11426 do_compare_rtx_and_jump (now expects rtx_code_label).
11427 (expand_builtin_acc_on_device): Likewise.
11428 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
11429 invert_jump (now exprects rtx_jump_insn).
11430 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
11431 (construct_init_block): Use rtx_code_label.
11432 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
11433 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
11434 calling redirect_jump.
11435 (patch_jump_insn): Likewise.
11436 (redirect_branch_edge): Likewise.
11437 (force_nonfallthru_and_redirect): Likewise.
11438 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
11440 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
11441 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
11442 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
11443 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
11444 to store the value retured by gen_label_rtx.
11445 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
11447 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
11448 (split_branches): Fix calls of redirect_jump.
11449 * dojump.c (jumpifnot): Promote argument type from rtx to
11451 (jumpifnot_1): Likewise.
11452 (jumpif): Likewise.
11453 (jumpif_1): Likewise.
11454 (do_jump_1): Likewise.
11455 (do_jump): Likewise. Use rtx_code_label when feasible.
11456 (do_jump_by_parts_greater_rtx): Likewise.
11457 (do_jump_by_parts_zero_rtx): Likewise.
11458 (do_jump_by_parts_equality_rtx): Likewise.
11459 (do_compare_rtx_and_jump): Likewise.
11460 * dojump.h: Update function prototypes.
11461 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
11463 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
11465 (emit_label_before): Likewise.
11466 (emit_jump_insn_after_noloc): Likewise.
11467 (emit_jump_insn_after_setloc): Likewise.
11468 (emit_jump_insn_after): Likewise
11469 (emit_jump_insn_before_setloc): Likewise.
11470 (emit_jump_insn_before): Likewise.
11471 (emit_label_before): Promote return type to rtx_code_label.
11472 (emit_label): Likewise.
11473 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
11474 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
11476 (emit_stack_restore): Likewise.
11477 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
11478 (do_cmp_and_jump): Likewise.
11479 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
11480 from rtx to rtx_code_label.
11481 (gen_move_insn_uncast): New function.
11482 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
11483 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
11484 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
11485 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
11486 invert_jump_1 and redirect_jump_1.
11487 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
11488 do_compare_rtx_and_jump.
11489 (expand_addsub_overflow): Likewise.
11490 (expand_neg_overflow): Likewise.
11491 (expand_mul_overflow): Likewise.
11492 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
11493 return value of gen_move_insn.
11494 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
11495 * loop-doloop.c (add_test): Use rtx_code_label.
11496 (doloop_modify): Likewise.
11497 (doloop_optimize): Likewise.
11498 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
11499 * lra-constraints.c (emit_spill_move): Remove cast of value returned
11501 (inherit_reload_reg): Add cast when calling dump_insn_slim.
11502 (split_reg): Likewise.
11503 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
11505 * optabs.c (expand_binop_directly): Remove casts of values returned by
11507 (expand_unop_direct): Likewise.
11508 (expand_abs): Likewise.
11509 (maybe_emit_unop_insn): Likewise.
11510 (maybe_gen_insn): Promote return type to rtx_insn.
11511 * optabs.h: Update prototype of maybe_gen_insn.
11512 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
11514 * recog.c (struct peep2_insn_data): Promote type of insn field to
11516 (peep2_reinit_state): Use NULL instead of NULL_RTX.
11517 (peep2_attempt): Remove casts of insn in peep2_insn_data.
11518 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
11519 * recog.h (struct insn_gen_fn): Promote return types of function
11520 pointers and operator ().from rtx to rtx_insn.
11521 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
11522 (fill_eager_delay_slots): Likewise.
11523 (relax_delay_slots): Likewise.
11524 (make_return_insns): Likewise.
11525 (dbr_schedule): Likewise.
11526 (optimize_skips): Likewise.
11527 (reorg_redirect_jump): Likewise.
11528 (fill_slots_from_thread): Likewise.
11529 * reorg.h: Update prototypes.
11530 * resource.c (find_dead_or_set_registers): Use dyn_cast to
11531 rtx_jump_insn instead of check. Use it's jump_target method.
11532 * rtl.h (rtx_jump_insn::jump_label): Define new method.
11533 (rtx_jump_insn::jump_target): Define new method.
11534 (rtx_jump_insn::set_jump_target): Define new method.
11535 * rtlanal.c (tablejump_p): Promote type of one local variable.
11536 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
11537 (sched_analyze_insn): Likewise.
11538 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
11539 (print_insn): Likewise.
11540 * stmt.c (label_rtx): Promote return type to rtx_insn.
11541 (force_label_rtx): Likewise.
11542 (jump_target_rtx): Define new function.
11543 (expand_label): Use it, get rid of one cast.
11544 (expand_naked_return): Promote rtx to rtx_code_label.
11545 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
11546 (expand_case): Use rtx_code_label instread of rtx where feasible.
11547 (expand_sjlj_dispatch_table): Likewise.
11548 (emit_case_nodes): Likewise.
11549 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
11550 * store-motion.c (insert_store): Make use of new return type of
11551 gen_move_insn and remove a cast.
11552 (replace_store_insn): Likewise.
11554 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
11556 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
11557 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
11559 2015-05-20 Jeff Law <law@redhat.com>
11561 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
11562 dispose of the jump thread path when the jump threading
11563 opportunity is cancelled.
11565 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
11567 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
11568 when printing the caret character.
11570 2015-05-20 Marek Polacek <polacek@redhat.com>
11572 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
11574 2015-05-20 Marek Polacek <polacek@redhat.com>
11576 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
11577 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
11578 * gimple-fold.c (canonicalize_bool): Likewise.
11579 (same_bool_result_p): Likewise.
11580 * tree-if-conv.c (parse_predicate): Likewise.
11582 2015-05-20 Marek Polacek <polacek@redhat.com>
11584 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
11585 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
11587 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11589 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
11590 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
11593 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
11595 * config/mips/mips.h (micromips_globals): Declare.
11597 2015-05-20 David Malcolm <dmalcolm@redhat.com>
11599 * timevar.def (TV_INITIALIZE_RTL): New.
11600 * toplev.c (initialize_rtl): Use an auto_timevar to account this
11601 function's time to TV_INITIALIZE_RTL.
11603 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
11605 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
11606 gimple_build_nop calls.
11607 (chkp_find_bounds_for_elem): Likewise.
11608 (chkp_get_zero_bounds): Likewise.
11609 (chkp_get_none_bounds): Likewise.
11610 (chkp_get_bounds_by_definition): Likewise.
11611 (chkp_generate_extern_var_bounds): Likewise.
11612 (chkp_get_bounds_for_decl_addr): Likewise.
11613 (chkp_get_bounds_for_string_cst): Likewise.
11615 2015-05-20 Bin Cheng <bin.cheng@arm.com>
11617 PR tree-optimization/65447
11618 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
11619 (dump_use, dump_uses): Support to dump sub use.
11620 (record_use): New parameters to support sub use. Remove call to
11622 (record_sub_use, record_group_use): New functions.
11623 (compute_max_addr_offset, split_all_small_groups): New functions.
11624 (group_address_uses, rewrite_use_address): New functions.
11625 (strip_offset): New declaration.
11626 (find_interesting_uses_address): Call record_group_use.
11627 (add_candidate): New assertion.
11628 (infinite_cost_p): Move definition forward.
11629 (add_costs): Check INFTY cost and return immediately.
11630 (get_computation_cost_at): Clear setup cost and dependent bitmap
11632 (determine_use_iv_cost_address): Compute cost for sub uses.
11633 (rewrite_use_address_1): Rename from old rewrite_use_address.
11634 (free_loop_data): Free sub uses.
11635 (tree_ssa_iv_optimize_loop): Call group_address_uses.
11637 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11638 Jim Wilson <jim.wilson@linaro.org>
11640 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
11641 new fields loadv and storev.
11642 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
11643 Initialize loadv and storev.
11644 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
11645 (cortexa53_extra_costs): Likewise.
11646 (cortexa57_extra_costs): Likewise.
11647 (xgene1_extra_costs): Likewise.
11648 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
11651 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
11653 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
11655 (cortexa8_extra_costs): Likewise.
11656 (cortexa5_extra_costs): Likewise.
11657 (cortexa7_extra_costs): Likewise.
11658 (cortexa12_extra_costs): Likewise.
11659 (cortexa15_extra_costs): Likewise.
11660 (v7m_extra_costs): Likewise.
11662 2015-05-20 Jeff Law <law@redhat.com>
11664 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
11665 instead of open-coded version. Also delete the jump thread created
11666 within this function.
11668 2015-05-20 Alan Modra <amodra@gmail.com>
11670 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
11671 stack adjusting insn. Formatting.
11672 (rs6000_emit_prologue): Track stack adjusting insn, and use of
11673 r12. If possible, emit first -fsplit-stack arg pointer insn
11674 before stack adjust. Don't use r12 to save cr if split-stack.
11676 2015-05-20 Alan Modra <amodra@gmail.com>
11678 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
11680 (rs6000_supports_split_stack): New function.
11681 * gcc/config/rs6000/rs6000.c (machine_function): Add
11682 split_stack_arg_pointer.
11683 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
11684 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
11685 rather than virtual_incoming_args_rtx.
11686 (rs6000_va_start): Likewise.
11687 (split_stack_arg_pointer_used_p): New function.
11688 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
11689 (morestack_ref): New var.
11690 (gen_add3_const, rs6000_expand_split_stack_prologue,
11691 rs6000_internal_arg_pointer, rs6000_live_on_entry,
11692 rs6000_split_stack_space_check): New functions.
11693 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
11694 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
11695 (UNSPECV_SPLIT_STACK_RETURN): Define.
11696 (split_stack_prologue, load_split_stack_limit,
11697 load_split_stack_limit_di, load_split_stack_limit_si,
11698 split_stack_return, split_stack_space_check): New expands and insns.
11699 * gcc/config/rs6000/rs6000-protos.h
11700 (rs6000_expand_split_stack_prologue): Declare.
11701 (rs6000_split_stack_space_check): Declare.
11703 2015-05-20 Alan Modra <amodra@gmail.com>
11705 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
11706 (direct_return): Test vrsave_size rather than vrsave_mask.
11707 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
11708 (rs6000_emit_epilogue): Likewise.
11710 2015-05-20 Alan Modra <amodra@gmail.com>
11712 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
11713 when not saving registers.
11714 (debug_stack_info): Adjust to omit printing unused offsets,
11716 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
11719 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11722 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
11723 value_type to const char *.
11725 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
11727 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
11728 to build a biarch toolchain again.
11730 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
11732 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
11733 or implicit declarations.
11734 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
11736 (get_odr_type): Check type has linkage before adding bases.
11737 (register_odr_type): Check that type has linkage before adding it.
11738 (type_known_to_have_no_deriavations_p): Rename to ..
11739 (type_known_to_have_no_derivations_p): This one.
11740 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
11741 (type_known_to_have_no_derivations_p): This one.
11742 * ipa-polymorphic-call.c
11743 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
11746 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
11748 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
11749 (layout_type): Use RECORD_OR_UNION_TYPE_P.
11751 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11753 * config/s390/s390.c (s390_vector_bool_type_p): New function.
11754 (s390_invalid_binary_op): New function.
11755 (TARGET_INVALID_BINARY_OP): Define macro.
11757 2015-05-19 David Sherwood <david.sherwood@arm.com>
11759 * loop-invariant.c (create_new_invariant): Don't calculate address cost
11760 if mode is not a scalar integer.
11761 (get_inv_cost): Increase computational cost for unused invariants.
11763 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11765 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
11766 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
11767 * config/s390/s390-builtin-types.def: New file.
11768 * config/s390/s390-builtins.def: New file.
11769 * config/s390/s390-builtins.h: New file.
11770 * config/s390/s390-c.c: New file.
11771 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
11772 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
11773 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
11774 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
11776 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
11778 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
11779 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
11780 variable definitions.
11781 (s390_const_operand_ok): New function.
11782 (s390_expand_builtin): Rewrite.
11783 (s390_init_builtins): New function.
11784 (s390_handle_vectorbool_attribute): New function.
11785 (s390_attribute_table): Add s390_vector_bool attribute.
11786 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
11787 (s390_branch_condition_mask): Generate masks for new modes.
11788 (s390_expand_vec_compare_cc): New function.
11789 (s390_mangle_type): Add mangling for vector bool types.
11790 (enum s390_builtin): Remove.
11791 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
11793 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
11794 s390_cpu_cpp_builtins.
11795 (REGISTER_TARGET_PRAGMAS): New macro.
11796 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
11797 (insn_cmp mode attribute): Add new CC modes.
11798 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
11799 (lcbb): New pattern definition.
11800 * config/s390/s390intrin.h: Include vecintrin.h.
11801 * config/s390/t-s390: New file.
11802 * config/s390/vecintrin.h: New file.
11803 * config/s390/vector.md: Include vx-builtins.md.
11804 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
11807 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11809 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
11811 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
11812 (s390_select_ccmode): Likewise.
11813 (s390_canonicalize_comparison): Swap operands if necessary.
11814 (s390_expand_vec_compare_scalar): Expand DFmode compare using
11815 single element vector instructions.
11816 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
11817 (s390_branch_condition_mask): Generate CC masks for the new modes.
11818 * config/s390/s390.md (v0, vf, vd): New mode attributes.
11819 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
11820 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
11821 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
11822 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
11823 (*extend<DSF:mode><BFP:mode>2): New insn definition.
11824 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
11825 (extend<DSF:mode><BFP:mode>2): Turn into expander.
11826 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
11827 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
11828 (sqrt<mode>2): Add vector instruction.
11830 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11832 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
11834 * config/s390/predicates.md (const0_operand, constm1_operand)
11835 (constable_operand): Accept vector operands.
11836 * config/s390/s390-modes.def: Add supported vector modes.
11837 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
11838 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
11839 (s390_bytemask_vector_p, s390_expand_vec_strlen)
11840 (s390_expand_vec_compare, s390_expand_vcond)
11841 (s390_expand_vec_init): Add prototypes.
11842 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
11843 (s390_vector_mode_supported_p): New function.
11844 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
11845 (s390_contiguous_bitmask_vector_p): New function.
11846 (s390_bytemask_vector_p): New function.
11847 (s390_split_ok_p): Vector regs don't work either.
11848 (regclass_map): Add VEC_REGS.
11849 (s390_legitimate_constant_p): Handle vector constants.
11850 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
11851 (legitimate_reload_vector_constant_p): New function.
11852 (s390_preferred_reload_class): Handle CONST_VECTOR.
11853 (s390_reload_symref_address): Likewise.
11854 (s390_secondary_reload): Vector memory instructions only support
11855 short displacements. Rename reload*_nonoffmem* to reload*_la*.
11856 (s390_emit_ccraw_jump): New function.
11857 (s390_expand_vec_strlen): New function.
11858 (s390_expand_vec_compare): New function.
11859 (s390_expand_vcond): New function.
11860 (s390_expand_vec_init): New function.
11861 (s390_dwarf_frame_reg_mode): New function.
11862 (print_operand): Handle addresses with 'O' and 'R' constraints.
11863 (NR_C_MODES, constant_modes): Add vector modes.
11864 (s390_output_pool_entry): Handle vector constants.
11865 (s390_hard_regno_mode_ok): Handle vector registers.
11866 (s390_class_max_nregs): Likewise.
11867 (s390_cannot_change_mode_class): New function.
11868 (s390_invalid_arg_for_unprototyped_fn): New function.
11869 (s390_function_arg_vector): New function.
11870 (s390_function_arg_float): Remove size variable.
11871 (s390_pass_by_reference): Handle vector arguments.
11872 (s390_function_arg_advance): Likewise.
11873 (s390_function_arg): Likewise.
11874 (s390_return_in_memory): Vector values are returned in a VR if
11876 (s390_function_and_libcall_value): Handle vector arguments.
11877 (s390_gimplify_va_arg): Likewise.
11878 (s390_call_saved_register_used): Consider the arguments named.
11879 (s390_conditional_register_usage): Disable v16-v31 for non-vec
11881 (s390_preferred_simd_mode): New function.
11882 (s390_support_vector_misalignment): New function.
11883 (s390_vector_alignment): New function.
11884 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
11885 (TARGET_VECTOR_MODE_SUPPORTED_P)
11886 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
11887 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
11888 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
11889 (TARGET_VECTOR_ALIGNMENT): Define target macro.
11890 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
11891 (FIRST_PSEUDO_REGISTER): Increase value.
11892 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
11893 (VECTOR_REG_P): Define macros.
11894 (FIXED_REGISTERS, CALL_USED_REGISTERS)
11895 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
11896 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
11897 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
11898 Add vector registers.
11899 (CANNOT_CHANGE_MODE_CLASS): Call C function.
11900 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
11901 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
11903 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
11904 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
11905 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
11906 (VR*_REGNUM): New constants.
11907 (ALL): New mode iterator.
11908 (INTALL): Remove mode iterator.
11910 (movti): Implement TImode moves for VRs.
11911 Disable TImode splitter for VR targets.
11912 Implement splitting TImode GPR<->VR moves.
11913 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
11914 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
11915 reload<mode>_la_in, reload<mode>_la_out.
11916 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
11917 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
11918 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
11919 (mov<mode> SF SD): Prefer lder, lde for loading.
11920 Add lrl and strl instructions.
11921 Add vector instructions.
11922 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
11923 Call s390_expand_vec_strlen on z13.
11924 (*cc_to_int): Change predicate to nonimmediate_operand.
11925 (addti3): Rename to *addti3. New expander.
11926 (subti3): Rename to *subti3. New expander.
11927 * config/s390/vector.md: New file.
11929 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11931 * common/config/s390/s390-common.c (processor_flags_table): Add
11933 * config.gcc: Add z13.
11934 * config/s390/s390-opts.h (enum processor_type): Add
11935 PROCESSOR_2964_Z13.
11936 * config/s390/s390.c (s390_adjust_priority): Check for
11937 PROCESSOR_2964_Z13.
11938 (s390_reorg): Likewise.
11939 (s390_sched_reorder): Likewise.
11940 (s390_sched_variable_issue): Likewise.
11941 (s390_loop_unroll_adjust): Likewise.
11942 (s390_option_override): Likewise. Default to -mvx when available.
11943 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
11944 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
11945 (TARGET_VX_ABI): Define macros.
11947 (TARGET_DEFAULT): Add MASK_OPT_VX.
11948 * config/s390/s390.md ("cpu" attribute): Add z13.
11949 ("cpu_facility" attribute): Add vec.
11950 * config/s390/s390.opt (processor_type): Add z13.
11951 (mvx): New options.
11952 * doc/invoke.texi: Add z13 option for -march.
11954 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11956 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
11957 mode check to make sure that only scalar integer values are
11960 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
11962 * tree.c (verify_type_variant): Fix #undef.
11963 (gimple_canonical_types_compatible_p): Move here from lto.c
11964 (verify_type): Verify TYPE_CANONICAL compatibility.
11965 * tree.h (gimple_canonical_types_compatible_p): Declare.
11967 2015-05-19 Jakub Jelinek <jakub@redhat.com>
11969 PR middle-end/66199
11970 * tree.h (OMP_TEAMS_COMBINED): Define.
11971 * gimplify.c (enum gimplify_omp_var_data): Add
11972 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
11973 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
11974 (omp_notice_variable): Accept both ORT_TEAMS
11975 and ORT_COMBINED_TEAMS. Don't recurse if
11976 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
11977 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
11979 (omp_no_lastprivate): New function.
11980 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
11981 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
11982 notice_outer and set appropriate bits, otherwise make
11983 sure default(none) combined constructs won't complain.
11984 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
11985 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
11986 omp_no_lastprivate either remove the clause or turn it
11987 into OMP_CLAUSE_PRIVATE.
11988 (gimplify_omp_for): Fix up handling of implicit
11989 lastprivate or linear iterators.
11990 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
11991 ORT_COMBINED_TEAMS.
11992 * omp-low.c (lower_omp_for_lastprivate): For combined
11993 for simd use fd.loop.n2 from the for rather than simd.
11995 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
11997 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
11998 instead of gen_rtx_raw_REG.
11999 (cris_expand_epilogue): Likewise.
12000 * config/microblaze/microblaze.c (microblaze_classify_address):
12002 * config/sparc/sparc.md: Likewise.
12004 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
12006 * config/alpha/alpha.c (alpha_legitimize_reload_address)
12007 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
12008 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
12009 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
12010 Use CASE_CONST_SCALAR_INT.
12011 (print_operand) <case 'M'>: Use mode_width_operand to check the
12012 value of the constant.
12013 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
12014 * config/alpha/predicates.md (input_operand): Use general_operand
12015 instead of match_code as operand check.
12016 (symbolic_operand): Use match_code with subexpression digits.
12017 * config/alpha/constraints.md (Q): Ditto.
12019 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12021 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
12023 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12025 * config/s390/s390.c (s390_secondary_reload): Fix check for
12026 load/store relative.
12028 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12030 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
12031 alternative_mask to uint64_t.
12033 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12035 PR tree-optimization/66187
12036 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
12037 Pass TYPE_SIGN to tree_int_cst_min_precision. If
12038 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
12040 2015-05-19 David Malcolm <dmalcolm@redhat.com>
12042 * diagnostic.c (diagnostic_report_current_module): Strengthen
12043 local "new_map" from const line_map * to
12044 const line_map_ordinary *.
12045 * genmatch.c (error_cb): Likewise for local "map".
12046 (output_line_directive): Likewise for local "map".
12047 * input.c (expand_location_1): Likewise for local "map".
12048 Pass NULL rather than &map to
12049 linemap_unwind_to_first_non_reserved_loc, since the value is never
12050 read from there, and the value written back not read from here.
12051 (is_location_from_builtin_token): Strengthen local "map" from
12052 const line_map * to const line_map_ordinary *.
12053 (dump_location_info): Strengthen locals "map" from
12054 line_map *, one to const line_map_ordinary *, the other
12055 to const line_map_macro *.
12056 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
12057 const line_map * to const line_map_macro *.
12058 (maybe_unwind_expanded_macro_loc): Add a call to
12059 linemap_check_macro when writing to the "map" field of the
12061 Introduce local const line_map_ordinary * "ord_map", using it in
12062 place of "map" in the part of the function where we know we have
12063 an ordinary map. Strengthen local "m" from const line_map * to
12064 const line_map_ordinary *.
12066 2015-05-19 Nick Clifton <nickc@redhat.com>
12069 * config/msp430/msp430.md (zero_extendhisi2): Add support for
12070 separate source and destination registers.
12072 2015-05-19 Richard Biener <rguenther@suse.de>
12074 PR tree-optimization/66165
12075 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
12076 for no load permutation.
12078 PR tree-optimization/66185
12079 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
12080 when building the SLP node from scalars.
12082 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12083 Tristan Gingold <gingold@adacore.com>
12085 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
12086 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
12087 (expand_stack_restore): Call record_new_stack_level.
12088 (expand_stack_save): Do not call do_pending_stack_adjust.
12089 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
12090 * calls.c (expand_call): Call record_new_stack_level for alloca.
12091 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
12092 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
12093 (update_sjlj_context): New global function.
12094 * except.h (update_sjlj_context): Declare.
12095 * explow.c (record_new_stack_level): New global function.
12096 (allocate_dynamic_stack_space): Call record_new_stack_level.
12097 * explow.h (record_new_stack_level): Declare.
12098 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
12099 * cfgrtl.c (duplicate_insn_chain): Likewise.
12101 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12103 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
12104 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
12105 STACK_GROWS_DOWNWARD as normal if.
12106 (expand_call): Likewise.
12108 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
12111 * config/sh/sh.md (*round_int_even): New insn_and_split and
12112 accompanying new unnamed split.
12114 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12116 * bitmap.c (bitmap_set_range): Handle count==1 specially.
12117 (bitmap_clear_range): Likewise.
12118 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
12119 bitmap_set_range unconditionally.
12120 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12121 * df-scan.c (df_mark_reg): Likewise.
12122 * haifa-sched.c (setup_ref_regs): Likewise.
12123 * sched-rgn.c (update_live_1): Likewise.
12125 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12127 * regs.h (END_HARD_REGNO): Delete.
12128 (END_REGNO): Move to...
12130 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
12131 * caller-save.c (mark_set_regs): Likewise.
12132 * combine.c (move_deaths, distribute_notes): Likewise.
12133 * cse.c (invalidate, invalidate_for_call): Likewise.
12134 * df-scan.c (df_ref_record): Likewise.
12135 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
12136 (record_last_reg_set_info): Likewise.
12137 * reg-stack.c (convert_regs_exit): Likewise.
12138 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
12139 * resource.c (update_live_status): Likewise.
12140 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
12142 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12144 * rtl.h (reg_info): Add an nregs field.
12145 (REG_NREGS): Use it.
12146 (SET_REGNO_RAW): Delete.
12147 (set_regno_raw): New function.
12148 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
12149 (END_REGNO): Redefine in terms of REG_NREGS.
12150 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
12152 * emit-rtl.c (set_mode_and_regno): Likewise.
12153 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
12154 instead of SET_REGNO_RAW.
12156 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12158 * rtl.h (PUT_MODE_RAW): New macro.
12159 (PUT_REG_NOTE_KIND): Use it.
12160 (set_mode_and_regno): Declare.
12161 (gen_raw_REG): Change regno to "unsigned int".
12162 (gen_rtx_REG): Change "unsigned" to "unsigned int".
12163 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
12164 use set_mode_and_regno to change the mode of registers.
12165 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
12166 * emit-rtl.c (set_mode_and_regno): New function.
12167 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
12168 * caller-save.c (reg_save_code): Use set_mode_and_regno.
12169 * expr.c (init_expr_target): Likewise.
12170 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12171 * postreload.c (reload_cse_simplify_operands): Likewise.
12173 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12175 * caller-save.c (init_caller_save): Use word_mode and
12176 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
12177 * expr.c (init_expr_target): Likewise.
12178 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12179 * postreload.c (reload_cse_regs_1): Likewise.
12181 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12183 * rtl.def (REG): Change format to "r".
12184 * rtl.h (rtunion): Remove rt_reg.
12185 (reg_info): New structure.
12186 (rtx_def): Add reg field to main union.
12187 (X0REGATTR): Delete.
12188 (REG_CHECK): New macro.
12189 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
12190 * rtl.c (rtx_format): Document "r".
12191 (rtx_code_size): Handle REG specially.
12192 * gengenrtl.c (special_format): Return true for formats
12194 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
12195 Deal with REG_ATTRS after the field loop.
12196 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
12197 * expmed.c (init_expmed): Call gen_raw_REG instead of
12199 * expr.c (init_expr_target): Likewise.
12200 * regcprop.c (maybe_mode_change): Likewise.
12201 * varasm.c (make_decl_rtl): Likewise.
12202 * final.c (leaf_renumber_regs_insn): Return early after
12204 * genemit.c (gen_exp): Handle 'r' fields.
12205 * genpeep.c (match_rtx): Likewise.
12206 * gensupport.c (subst_pattern_match): Likewise.
12207 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
12208 (alter_constraints, subst_dup): Likewise.
12209 * read-rtl.c (read_rtx_code): Likewise.
12210 * print-rtl.c (print_rtx): Likewise.
12211 * genrecog.c (find_operand, find_matching_operand): Likewise.
12212 (validate_pattern, match_pattern_2): Likewise.
12213 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
12214 (rtx_test::regno_field): New function.
12215 (operator ==, safe_to_hoist_p, transition_parameter_type)
12216 (parameter_type_string, print_parameter_value)
12217 (print_nonbool_test, print_test): Handle new enum values.
12218 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
12219 * lra-constraints.c (operands_match_p): Likewise.
12221 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12223 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
12224 Change type of new_regno to unsigned int.
12225 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
12226 new_regno to unsigned int.
12227 (df_ref_change_reg_with_loc): Remove old_regno parameter.
12228 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
12229 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
12230 (SET_REGNO_RAW): Add space after ",".
12232 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12234 * rtl.h (REG_NREGS): New macro
12235 * alias.c (record_set): Use it.
12236 * cfgcleanup.c (mark_effect): Likewise.
12237 * combine.c (likely_spilled_retval_1): Likewise.
12238 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
12239 (move_deaths, distribute_notes): Likewise.
12240 * cselib.c (cselib_record_set): Likewise.
12241 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
12242 * df-scan.c (df_mark_reg): Likewise.
12243 * dse.c (look_for_hardregs): Likewise.
12244 * dwarf2out.c (reg_loc_descriptor): Likewise.
12245 (multiple_reg_loc_descriptor): Likewise.
12246 * expr.c (write_complex_part, read_complex_part): Likewise.
12247 (emit_move_complex): Likewise.
12248 * haifa-sched.c (setup_ref_regs): Likewise.
12249 * ira-lives.c (mark_hard_reg_live): Likewise.
12250 * lra.c (lra_set_insn_recog_data): Likewise.
12251 * mode-switching.c (create_pre_exit): Likewise.
12252 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
12253 (reload_combine_recognize_pattern): Likewise.
12254 (reload_combine_note_use, move2add_record_mode): Likewise.
12255 (reload_cse_move2add): Likewise.
12256 * reg-stack.c (subst_stack_regs_pat): Likewise.
12257 * regcprop.c (kill_value, copy_value): Likewise.
12258 (copyprop_hardreg_forward_1): Likewise.
12259 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
12260 (build_def_use): Likewise.
12261 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
12262 (deps_analyze_insn): Likewise.
12263 * sched-rgn.c (check_live_1, update_live_1): Likewise.
12264 * sel-sched.c (count_occurrences_equiv): Likewise.
12265 * valtrack.c (dead_debug_insert_temp): Likewise.
12267 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12269 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
12270 * dse.c (note_add_store): Likewise.
12271 * ira-lives.c (mark_hard_reg_dead): Likewise.
12272 * loop-invariant.c (mark_reg_store): Likewise.
12273 (mark_reg_death): Likewise.
12274 * postreload.c (reload_combine): Likewise.
12275 (reload_combine_note_store): Likewise.
12276 (reload_combine_note_use): Likewise.
12277 * recog.c (peep2_reg_dead_p): Likewise.
12279 2015-05-19 Alan Modra <amodra@gmail.com>
12281 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
12282 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
12283 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
12285 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
12286 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
12287 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
12288 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
12290 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
12292 * config/mips/mips.md (JOIN_MODE): New mode iterator.
12293 (join2_load_Store<JOIN_MODE:mode>): New pattern.
12294 (join2_loadhi): Likewise.
12295 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
12296 load-load and store-stores.
12297 * config/mips/mips.opt (mload-store-pairs): New option.
12298 (TARGET_LOAD_STORE_PAIRS): New macro.
12299 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
12300 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
12301 * config/mips/mips.c (mips_load_store_bonding_p): New function.
12303 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
12305 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
12307 * dojump.c (do_compare_rtx_and_jump): Likewise.
12308 * expmed.c (emit_store_flag_1): Likewise.
12309 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
12310 * final.c (sprint_ul): Use std::reverse for reversing a string.
12311 * fold-const.c (extract_muldiv_1): Use std::swap.
12312 * genmodes.c (emit_mode_int_n): Likewise.
12313 * ifcvt.c (dead_or_predicable): Likewise.
12314 * ira-build.c (ira_merge_live_ranges): Likewise.
12315 (swap_allocno_copy_ends_if_necessary): Likewise.
12316 * ira.c (ira_setup_alts): Likewise.
12317 * loop-iv.c (iv_analyze_expr): Likewise.
12318 (implies_p): Likewise.
12319 (canon_condition): Likewise.
12320 * lra-constraints.c (swap_operands): Likewise.
12321 * lra-lives.c (lra_merge_live_ranges): Likewise.
12322 * omega.c (swap): Remove.
12324 (omega_unprotect_1): Use std::swap.
12325 (omega_solve_geq): Likewise.
12326 * optabs.c (expand_binop_directly): Likewise.
12327 (expand_binop): Likewise.
12328 (emit_conditional_move): Likewise.
12329 (emit_conditional_add): Likewise.
12330 * postreload.c (reload_cse_simplify_operands): Likewise.
12331 * reg-stack.c (emit_swap_insn): Likewise.
12332 (swap_to_top): Likewise.
12333 (compare_for_stack_reg): Likewise.
12334 (subst_asm_stack_regs): Likewise.
12335 * reload.c (find_reloads): Likewise.
12336 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
12337 * sel-sched.c (invoke_reorder_hooks): Likewise.
12338 (create_block_for_bookkeeping): Likewise.
12339 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
12340 (lambda_matrix_right_hermite): Use std::swap.
12341 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
12342 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
12343 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
12344 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
12345 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
12346 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
12347 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
12348 * tree-vrp.c (compare_ranges): Likewise.
12349 * var-tracking.c (add_with_sets): Likewise.
12350 (vt_find_locations): Likewise.
12352 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
12354 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
12356 (FBSD_ENDFILE_SPEC): Likewise.
12357 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
12358 config/freebsd-spec.h.
12359 (ENDFILE_SPEC): Likewise.
12361 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
12362 Richard Henderson <rth@redhat.com>
12365 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
12366 Check for a memory location that is not a reference (using an AND)
12367 to an unaligned location here.
12368 * config/alpha/predicates.md (normal_memory_operand): Remove.
12370 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
12372 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
12373 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
12375 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
12377 * config/mips/mips.c (micromips_globals): New variable.
12378 (mips_set_compression_mode): Save and reinitialize target-dependent
12379 state for microMIPS.
12381 2015-05-18 Martin Liska <mliska@suse.cz>
12383 * dbgcnt.def: Add new counter.
12384 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
12386 2015-05-18 Martin Liska <mliska@suse.cz>
12388 * dbgcnt.def: Sort counters.
12389 * opts.c (common_handle_option): Do not compile if
12390 -fdbg-cnt-list is enabled.
12392 2015-05-18 Tom de Vries <tom@codesourcery.com>
12394 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
12395 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
12396 address operator to va_list operand.
12397 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
12399 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
12401 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
12402 * config/s390/s390.c (s390_gimplify_va_arg): Same.
12403 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
12405 2015-05-18 Tom de Vries <tom@codesourcery.com>
12407 * tree-ssa-tail-merge.c: Fix whitespace.
12409 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
12411 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
12412 cortex-a17, and cortex-a17.cortex-a7.
12414 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
12417 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
12419 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
12422 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
12423 QImode inner modes for TARGET_AVX512BW. Force mask operand
12424 to a register for AVX512F modes.
12426 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
12428 * toplev.c (emit_debug_global_declarations): Do not output debug info
12429 when doing slim LTO objects.
12431 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
12433 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
12434 odr_types_equivalent_p): Declare.
12435 (odr_type_p): Use gcc_checking_assert.
12436 (type_in_anonymous_namespace_p) Declare.
12437 (type_with_linkage_p): Declare.
12438 * common.opt (Wlto-type-mismatch): New warning.
12439 * ipa-devirt.c (compound_type_base): New function.
12440 (odr_or_derived_type_p): New function.
12441 (odr_types_equivalent_p): New function.
12442 (add_type_duplicate): Simplify.
12443 (type_with_linkage_p): Add hack to prevent false positives on C types
12444 (type_in_anonymous_namespace_p): Likewise.
12445 * tree.c (need_assembler_name_p): Use type_with_linkage.
12446 * tree.h (type_in_anonymous_namespace_p): Remove.
12447 * doc/invoke.texi (-Wlto-type-mismatch): Document
12449 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
12451 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
12452 (verify_type): Verify STRING_FLAG.
12454 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
12457 * tree-pretty-print.c (percent_K_format): Replace locus pointer
12458 with accessor function.
12459 * tree-diagnostic.c (diagnostic_report_current_function): Use
12460 diagnostic_location function.
12461 (maybe_unwind_expanded_macro_loc): Likewise.
12462 (virt_loc_aware_diagnostic_finalizer): Likewise.
12463 (default_tree_printer): Replace locus pointer with accessor function.
12464 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
12465 (diagnostic_set_info_translated): Initialize second location.
12466 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
12467 (diagnostic_show_locus): Handle two locations. Call
12468 diagnostic_print_caret_line.
12469 (diagnostic_print_caret_line): New.
12470 (default_diagnostic_starter): Use diagnostic_location function.
12471 (diagnostic_report_diagnostic): Use diagnostic_location function.
12472 (verbatim): Do not set text.locus.
12473 * diagnostic.h (struct diagnostic_info): Remove location field.
12474 (struct diagnostic_context): Make caret_chars an array of two.
12475 (diagnostic_location): New inline.
12476 (diagnostic_expand_location): Handle two locations.
12477 (diagnostic_same_line): New inline.
12478 (diagnostic_print_caret_line): Declare.
12479 (CARET_LINE_MARGIN): New constant.
12480 * pretty-print.c (pp_printf): Do not set text.locus.
12481 (pp_verbatim): Do not set text.locus.
12482 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
12483 (struct text_info): Replace locus pointer with locations
12484 array. Add accessor functions.
12486 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
12487 Zhenqiang Chen <zhenqiang.chen@linaro.org>
12490 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
12491 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
12492 large constants in register instead of splitting them.
12494 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
12497 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
12498 replacements in memory addresses.
12499 (get_unaligned_address): Ditto.
12501 2015-05-16 James Bowman <james.bowman@ftdichip.com>
12503 * config/ft32/*: New files for FT32 port.
12504 * doc/install.texi: Add FT32 information.
12505 * doc/invoke.texi: Add FT32 information.
12506 * doc/md.texi: Add FT32 information.
12507 * doc/contrib.texi: Self added.
12509 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
12511 PR tree-optimization/64454
12512 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
12513 (-1 - A -> ~A): Remove unnecessary condition.
12515 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
12517 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
12518 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
12519 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
12521 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
12523 * ipa-chkp.h (chkp_wrap_function): New.
12524 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
12525 (chkp_wrap_function_name): New.
12526 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
12527 to get wrapper name.
12528 * lto-cgraph.c: Include ipa-chkp.h.
12529 (input_cgraph_1): Avoid alias chain for wrappers.
12531 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
12533 PR middle-end/66134
12534 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
12535 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
12537 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12539 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
12540 (AARCH64_FL_SLOWMUL): Delete.
12541 (AARCH64_FL_CRC): Redefine to 1<<3.
12542 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
12544 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12546 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
12549 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
12551 * config/alpha/alpha.md (extendqidi2): Use general_operand
12552 instead of some_operand for operand[1] predicate.
12553 (extendhidi2): Ditto.
12554 (cbranchdi4): Use general_operand instead of some_operand
12555 for operand[1] and operands[2] predicates.
12556 (cstoredi4): Ditto.
12557 * config/alpha/predicates.md (some_operand): Remove unused predicate.
12558 (some_ni_operand): Ditto.
12560 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
12562 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
12563 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
12564 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
12565 low part of the constant using alpha_emit_set_const_1.
12566 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
12568 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
12570 * varasm.c (output_constant_pool_1): Pass down alignment from
12571 constant pool entry's descriptor to output_constant_pool_2.
12572 (output_object_block): Add comment prior to call to
12573 output_constant_pool_1.
12575 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
12577 PR rtl-optimization/65862
12578 * target.def (ira_change_pseudo_allocno_class): New hook.
12579 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
12581 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
12582 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
12584 * ira-costs.c (find_costs_and_classes): Call the hook and change
12585 classes when it is necessary.
12586 * doc/tm.texi: Update.
12588 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
12590 * config/i386/i386.md (sibcall_memory): Check that register with
12591 callee address is not also used as one of the arguments, instead
12592 of checking that it is not live after the sibcall.
12593 (sibcall_pop_memory): Ditto.
12594 (sibcall_value_memory): Ditto.
12595 (sibcall_value_pop_memory): Ditto.
12597 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
12599 * generic-match-head.c (types_match): Handle non-types.
12600 * gimple-match-head.c (types_match): Likewise.
12601 * match.pd: Remove unnecessary TREE_TYPE for types_match.
12603 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
12605 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
12606 (csneg3<mode>_insn): Enable expansion of pattern.
12608 2015-05-14 Nick Clifton <nickc@redhat.com>
12610 * config/rl78/rl78.c (rl78_select_section): Select the correct
12611 default section based upon the category of the decl.
12613 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
12615 PR rtl-optimization/30967
12616 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
12617 destination mode for the cost of scc patterns.
12619 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
12621 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
12622 using SWIM248 mode iterator.
12623 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
12624 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
12625 for operand[2] constraint.
12626 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
12628 2015-05-13 Jakub Jelinek <jakub@redhat.com>
12630 PR middle-end/66133
12631 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
12632 make sure it is never noreturn, even when the task body does not
12634 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
12635 right before GIMPLE_OMP_RETURN.
12636 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
12637 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
12638 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
12640 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12642 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
12643 * tree-ssa-math-opts.c: Include params.h
12644 (pow_synth_sqrt_info): New struct.
12645 (representable_as_half_series_p): New function.
12646 (get_fn_chain): Likewise.
12647 (print_nested_fn): Likewise.
12648 (dump_fractional_sqrt_sequence): Likewise.
12649 (dump_integer_part): Likewise.
12650 (expand_pow_as_sqrts): Likewise.
12651 (gimple_expand_builtin_pow): Use above to attempt to expand
12652 pow as series of square roots. Removed now unused variables.
12654 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
12656 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
12657 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
12658 Remove *p0 and *p1 arguments. Rewrite function.
12659 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
12660 (alpha_split_const_mov): Update calls to alpha_extract_integer and
12661 alpha_emit_set_long_const.
12662 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
12663 (alpha_output_mi_thunk_osf): Ditto.
12664 * config/alpha/alpha.md (movti): Do not check operands[1]
12667 2015-05-13 Richard Biener <rguenther@suse.de>
12669 PR tree-optimization/66129
12670 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
12672 (vect_schedule_slp_instance): Fix typo.
12674 2015-05-13 David Malcolm <dmalcolm@redhat.com>
12676 * common.opt (fdump-internal-locations): New option.
12677 * input.c: Include diagnostic-core.h.
12678 (get_end_location): New function.
12679 (write_digit): New function.
12680 (write_digit_row): New function.
12681 (dump_location_range): New function.
12682 (dump_labelled_location_range): New function.
12683 (dump_location_info): New function.
12684 * input.h (dump_location_info): New prototype.
12685 * toplev.c (compile_file): Handle flag_dump_locations.
12687 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
12689 * gimple-expr.h (is_gimple_constant): Reorder.
12690 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
12692 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
12694 * combine.c (simplify_set): When generating a CC set, if the
12695 source already is in the correct mode, do not wrap it in a
12696 compare. Simplify the rest of that code.
12698 2015-05-13 Richard Biener <rguenther@suse.de>
12700 PR tree-optimization/66123
12701 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
12704 2015-05-13 Richard Biener <rguenther@suse.de>
12706 PR middle-end/66110
12707 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
12709 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
12711 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
12713 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
12714 * aclocal.m4: Regenerated with automake-1.11.6.
12716 2015-05-13 Tom de Vries <tom@codesourcery.com>
12718 PR tree-optimization/66010
12719 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
12720 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
12721 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
12722 and rval based on do_deref.
12724 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
12727 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
12728 link time constants into adress expressions and therefore set
12731 2015-05-13 Jakub Jelinek <jakub@redhat.com>
12734 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
12735 Use SWI248 iterator instead of SWI.
12736 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
12737 Use eq_attr "alternative" "0" instead of match_test in
12738 length_immediate attribute computation.
12739 (*mulvhi4, *mulvhi4_1): New define_insns.
12742 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
12743 SIGNED to get precision of non-negative value.
12745 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
12748 * function.c (diddle_return_value_1): Process bounds first.
12749 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
12752 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
12754 PR rtl-optimization/64616
12755 * loop-invariant.c (can_move_invariant_reg): New.
12756 (move_invariant_reg): Call above new function to decide whether
12757 instruction can just be moved, skipping creation of temporary
12760 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
12762 PR target/pr66047.c
12763 * i386.c (ix86_function_sseregparm): Only return -1 if local function
12764 with implied regparm is called from -mno-sse function.
12765 (init_cumulative_args): Output error if ix86_function_sseregparm
12766 return -1 and SSE register would be needed.
12767 (function_arg_advance_32): Likewise.
12768 (function_arg_32): Likewise.
12769 * i386.h (ix86_args): Add decl field.
12771 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
12774 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
12775 inlines across optimization boundary.
12777 2015-05-12 Jason Merrill <jason@redhat.com>
12779 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
12780 string literal and macro name.
12782 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
12784 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
12785 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
12786 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
12788 2015-05-12 David Malcolm <dmalcolm@redhat.com>
12790 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
12791 (-Wmisleading-indentation): New option.
12792 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
12794 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
12796 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
12797 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
12798 (alpha_extract_integer): Ditto.
12799 (alpha_legitimate_constant_p): Ditto.
12800 (alpha_split_tmode_pair): Ditto.
12801 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
12802 (alpha_expand_mov): Ditto.
12803 (print_operand): Remove handling of 'H' modifier.
12804 <case 'm'>: Remove CONST_DOUBLE handling.
12805 (summarize_insn): Handle CONST_WIDE_INT.
12806 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
12808 (movti): Handle CONST_WIDE_INT.
12809 * config/alpha/constraints.md ('H'): Remove constraint definition.
12810 ('G'): Do not match MODE_FLOAT class.
12811 * config/alpha/predicates.md (const0_operand): Also match
12813 (non_add_const_operand): Ditto.
12814 (non_zero_const_operand): Ditto.
12815 (some_operand): Ditto.
12816 (input_operand): Ditto. Handle CONST_WIDE_INT.
12817 (and_operand): Do not match const_double.
12818 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
12820 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
12823 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
12824 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
12825 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
12826 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
12827 is_mm_seq_cst, is_mm_sync): New accessor functions.
12828 * builtins.c (expand_builtin_sync_operation,
12829 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
12830 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
12831 (get_memmodel, expand_builtin_atomic_compare_exchange,
12832 expand_builtin_atomic_load, expand_builtin_atomic_store,
12833 expand_builtin_atomic_clear): Use new accessor routines.
12834 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
12835 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
12836 (maybe_emit_sync_lock_test_and_set): Use new accessors and
12837 MEMMODEL_SYNC_ACQUIRE.
12838 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
12839 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
12840 expand_atomic_store): Use new accessors.
12841 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
12842 * tsan.c (instrument_builtin_call): Update check for memory model beyond
12843 final enum to use MEMMODEL_LAST.
12844 * c-family/c-common.c: Use new accessor for memmodel_base.
12845 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
12847 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
12848 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
12849 mem_thread_fence, *dmb): Likewise.
12850 * config/alpha/alpha.c (alpha_split_compare_and_swap,
12851 alpha_split_compare_and_swap_12): Likewise.
12852 * config/arm/arm.c (arm_expand_compare_and_swap,
12853 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
12854 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
12855 atomic_loaddi): Likewise.
12856 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
12858 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
12859 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
12861 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
12862 atomic_store<mode>, atomic_compare_and_swap<mode>,
12863 atomic_exchange<mode>): Use new accessors.
12864 * config/mips/mips.c (mips_process_sync_loop): Likewise.
12865 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
12866 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
12867 rs6000_post_atomic_barrier): Add new cases.
12868 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
12869 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
12870 (atomic_load<mode>): Add new cases and use new accessors.
12871 (store_quadpti): Add new cases.
12872 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
12874 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
12875 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
12878 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
12880 * ipa-devirt.c (type_with_linkage_p): New function.
12881 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
12883 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
12884 (can_be_name_hashed_p): Simplify.
12885 (hash_odr_name): Check that type has linkage before checking if it is
12887 (types_same_for_odr): Likewise.
12888 (odr_name_hasher::equal): Likewise.
12889 (odr_subtypes_equivalent_p): Likewise.
12890 (warn_types_mismatch): Likewise.
12891 (get_odr_type): Likewise.
12892 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
12893 * ipa-utils.h (odr_type_p): Move offline.
12894 * tree.c (need_assembler_name_p): Fix handling of types
12896 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
12898 2015-05-12 David Malcolm <dmalcolm@redhat.com>
12900 * timevar.c (timevar_enable): Delete in favor of...
12901 (g_timer): New global.
12902 (struct timevar_def): Move to timevar.h inside class timer.
12903 (struct timevar_stack_def): Likewise.
12904 (timevars): Delete global in favor of field "m_timevars" within
12905 class timer in timevar.h
12906 (stack): Likewise, in favor of field "m_stack".
12907 (unused_stack_instances): Likewise, in favor of field
12908 "m_unused_stack_instances".
12909 (start_time): Likewise, in favor of field "m_start_time".
12910 (get_time): Eliminate check for timevar_enable.
12911 (timer::timer): New function, built from part of timevar_init.
12912 (timevar_init): Rewrite idempotency test from using
12913 "timevar_enable" bool to using dynamic allocation of "g_timer".
12914 Move rest of implementation into timer's constructor.
12915 (timevar_push_1): Rename to...
12916 (timer::push): ...this, adding "m_" prefixes to variables that
12917 are now fields of timer.
12918 (timevar_pop_1): Likewise, rename to...
12919 (timer::pop): ...this, and add "m_" prefixes.
12920 (timevar_start): Replace test for "timevar_enable" with one for
12921 "g_timer", and move bulk of implementation to...
12922 (timer::start): ...here, adding "m_" prefixes.
12923 (timevar_stop): Likewise, from here...
12924 (timer::stop): ...to here.
12925 (timevar_cond_start): Likewise, from here...
12926 (timer::cond_start): ...to here.
12927 (timevar_cond_stop): Likewise, from here...
12928 (timer::cond_stop): ...to here.
12929 (validate_phases): Rename to...
12930 (timer::validate_phases): ...this, and add "m_" prefixes. Make
12931 locals "total" and "tv" const.
12932 (timevar_print): Rename to...
12933 (timer::print): ...this, and add "m_" prefixes. Make locals
12934 "total" and "tv" const. Eliminate test for timevar_enable.
12935 * timevar.h (timevar_enable): Eliminate.
12936 (g_timer): New declaration.
12937 (timevar_push_1): Eliminate.
12938 (timevar_pop_1): Eliminate.
12939 (timevar_print): Eliminate.
12940 (class timer): New class.
12941 (timevar_push): Rewrite to use g_timer.
12942 (timevar_pop): Likewise.
12943 * toplev.c (toplev::~toplev): Likewise.
12945 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
12947 * arm-protos.h (arm_sched_autopref): Delete.
12948 (tune_params): Re-organize, use enums for flag values.
12949 (FUSE_OPS): New macro.
12950 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
12951 (ARM_PREFETCH_BENEFICIAL): Likewise.
12952 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
12953 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12954 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
12955 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
12956 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
12957 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
12958 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
12959 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
12961 (arm_option_override, thumb2_reorg, arm_print_tune_info)
12962 (aarch_macro_fusion_pair_p): Update uses of current_tune.
12963 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
12965 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
12967 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
12970 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
12971 Sandra Loosemore <sandra@codesourcery.com>
12973 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
12975 (REG_CLASS_NAMES): Add "IJMP_REGS".
12976 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
12977 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
12978 use new "c" register constraint.
12979 * config/nios2/constraint.md (c): New register constraint
12980 corresponding to IJMP_REGS.
12982 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
12984 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
12985 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
12986 define_splits): Delete, revamp, transmogrify into ...
12987 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
12988 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
12989 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
12992 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
12994 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
12995 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
12997 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
12999 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
13000 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
13001 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
13002 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
13003 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
13004 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
13005 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
13006 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
13007 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
13008 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13009 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
13010 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
13011 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
13012 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
13013 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
13014 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
13015 and 30 corresponding splitters): Delete.
13017 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13019 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
13022 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13024 * combine.c (recog_for_combine_1): New function, factored out
13025 from recog_for_combine.
13026 (change_zero_ext): New function.
13027 (recog_for_combine): If recog fails, try again with the pattern
13028 modified by change_zero_ext; if that still fails, restore the
13031 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13033 * combine.c (get_undo_marker): New function.
13034 (undo_to_marker): New function, largely factored out from ...
13035 (undo_all): ... this. Adjust.
13037 2015-05-12 Richard Biener <rguenther@suse.de>
13039 PR tree-optimization/66101
13040 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
13041 fixup if we turn a loop exit edge to a fallthru edge.
13043 2015-05-12 Richard Biener <rguenther@suse.de>
13045 PR tree-optimization/37021
13046 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
13047 (SLP_TREE_TWO_OPERATORS): New define.
13048 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
13049 SLP_TREE_TWO_OPERATORS.
13050 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
13052 (vect_build_slp_tree): Adjust.
13053 (vect_analyze_slp_cost_1): Likewise.
13054 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
13055 emitting two vector stmts and mixing the results.
13057 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
13059 * call.c (print_z_candidates): Remove dead code.
13061 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13063 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
13064 and zEC12_simple_fp.
13065 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
13068 2015-05-12 Tom de Vries <tom@codesourcery.com>
13070 PR tree-optimization/66010
13071 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
13073 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
13074 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
13075 va_lists are passed, and remove corresponding handling.
13076 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
13077 do_deref argument to ifn_va_arg.
13078 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
13081 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13084 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
13085 REG before taking its REGNO.
13087 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
13089 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
13090 rsp->sign_bit_copies and rsp->nonzero_bits into ...
13091 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
13092 present to get more accurate information about the number of sign bit
13093 copies and non zero bits.
13095 2015-05-12 Richard Biener <rguenther@suse.de>
13097 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
13098 do not allow unrolling.
13100 2015-05-11 Richard Henderson <rth@redhat.com>
13102 * config/i386/i386-modes.def (CCP): New.
13103 * config/i386/i386.c (put_condition_code): Handle it.
13104 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
13106 2015-05-11 Richard Henderson <rth@redhat.com>
13108 * target.def (md_asm_clobbers): Replace with...
13109 (md_asm_adjust): this.
13110 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
13111 (TARGET_MD_ASM_ADJUST): New.
13112 * tm.texi: Rebuild.
13113 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
13114 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
13115 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
13117 * cfgexpand.c (check_operand_nalternatives): Accept vector of
13118 constraints instead of lists of outputs and inputs.
13119 (expand_asm_stmt): Save and restore input_location around the
13120 body of the function. Move asm data into vectors instead of
13121 building tree lists. Generate cleanup sequences as needed,
13122 rather than waiting til the end. Use new md_asm_adjust hook.
13124 * config/vxworks.c: Include vec.h before target.h.
13125 * gimple.c: Likewise.
13126 * incpath.c: Likewise.
13127 * mode-switching.c: Likewise.
13129 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
13130 (cris_md_asm_adjust): this.
13131 (TARGET_MD_ASM_CLOBBERS): Remove.
13132 (TARGET_MD_ASM_ADJUST): New.
13133 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
13134 (ix86_md_asm_adjust): this.
13135 (TARGET_MD_ASM_CLOBBERS): Remove.
13136 (TARGET_MD_ASM_ADJUST): New.
13137 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
13138 (mn10300_md_asm_adjust): this.
13139 (TARGET_MD_ASM_CLOBBERS): Remove.
13140 (TARGET_MD_ASM_ADJUST): New.
13141 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
13142 (rs6000_md_asm_adjust): this.
13143 (TARGET_MD_ASM_CLOBBERS): Remove.
13144 (TARGET_MD_ASM_ADJUST): New.
13145 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
13146 (visium_md_asm_adjust): this.
13147 (TARGET_MD_ASM_CLOBBERS): Remove.
13148 (TARGET_MD_ASM_ADJUST): New.
13150 2015-05-11 Richard Henderson <rth@redhat.com>
13152 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
13153 if noutputs is zero.
13154 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
13156 * cfgexpand.c (expand_asm_operands): Merge into...
13157 (expand_asm_stmt): ... here.
13159 * cfgexpand.c (expand_asm_operands): Don't call
13160 resolve_asm_operand_names.
13161 * stmt.c (resolve_asm_operand_names): Clarify block comment.
13163 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
13165 * dwarf2out.c (gen_member_die): Sanity check that we access
13166 TYPE_MAIN_VARIANT for TYPE_METHODS.
13167 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
13168 checking TYPE_METHODS.
13169 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
13171 (build_distinct_type_copy): Clear TYPE_METHODS.
13172 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
13173 (verify_type): Allow TYPE_METHODS to be error_mark_node.
13174 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
13176 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
13178 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
13179 (emit_pattern_before_setloc): Likewise.
13181 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
13183 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
13184 for define_peephole2s.
13185 (get_peephole2_pattern): New function.
13186 (main): Use it. Call validate_pattern.
13188 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13190 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
13191 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
13192 (Last callee saved reg is different for AVR_TINY architecture)
13194 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
13196 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
13197 when looking for memory references.
13199 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
13202 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
13203 via function pointers.
13205 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
13207 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
13208 indirect call by forcing address into a pseudo with -fno-plt.
13209 * common.opt (flag_plt): New option.
13210 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
13211 ([-fno-plt]): Document.
13213 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
13216 * config/rs6000/option-defaults.h: Add space between string literal
13219 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
13221 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
13222 accross ARM targets.
13224 2015-05-11 Christian Bruel <christian.bruel@st.com>
13226 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
13227 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
13229 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
13231 PR rtl-optimization/66076
13232 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
13233 Don't grow the heap array if it is already big enough from a
13234 previous iteration.
13236 2015-05-11 Christian Bruel <christian.bruel@st.com>
13238 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
13239 (is_called_in_ARM_mode): Remove.
13240 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
13241 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
13242 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
13243 arm_declare_function_name.
13245 2015-05-11 Christian Bruel <christian.bruel@st.com>
13247 * config/arm/arm.c (arm_option_override): Reoganized and split into :
13248 (arm_option_params_internal); New function.
13249 (arm_option_check_internal): New function.
13250 (arm_option_override_internal): New function.
13251 (thumb_code, thumb1_code): Remove.
13252 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
13253 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
13254 (thumb_code, thumb1_code): Remove.
13255 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
13257 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
13259 * config/alpha/alpha.c (alpha_emit_set_const_1)
13260 (alpha_emit_set_long_const, alpha_extract_integer)
13261 (alpha_legitimate_constant_p, alpha_split_const_mov)
13262 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
13263 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13264 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
13266 * config/alpha/predicates.md (mode_mask_operand): Do not match
13268 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13269 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
13270 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
13271 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
13272 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
13274 2015-05-11 Jakub Jelinek <jakub@redhat.com>
13277 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
13278 default_binds_local_p_2.
13279 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
13280 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
13282 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
13284 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
13286 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
13288 Patch by Richard Biener
13289 * coverage.c (coverage_obj_init): Delay building of type variant
13290 until the type is finished.
13292 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
13294 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
13295 mismatch between C and C++ type; compoare correctly ARG_TYPES
13296 for non-prototypes and output correctly parameter index for METHOD_TYPE.
13297 (odr_types_equivalent_p): Fix wording of warning about attributes;
13298 it is OK to match prototype and non-prototype.
13300 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
13302 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
13303 TYPE_ARG_TYPES list.
13304 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
13305 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
13307 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
13309 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
13310 * tree.h (is_lang_specific): Constify.
13312 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
13314 PR tree-optimization/64454
13315 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
13318 2015-05-08 Jason Merrill <jason@redhat.com>
13320 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
13321 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
13322 config/darwin.h, config/darwin9.h, config/elfos.h,
13323 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
13324 config/microblaze/microblaze.h, config/mips/mips.h,
13325 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
13326 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
13327 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
13328 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
13329 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
13330 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
13331 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
13332 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
13333 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
13334 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
13335 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
13336 between string literal and macro name.
13338 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13340 * jump.c: Change argument types to rtx_insn *.
13343 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13345 * lra-constraints.c: Change argument type to rtx_insn *.
13347 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13349 * df-problems.c: Change argument type to rtx_insn *.
13351 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13353 * combine.c: Change argument type to rtx_insn *.
13355 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13358 * rtlanal.c: Change argument type to rtx_insn *.
13360 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13362 * sched-deps.c: Change argument types to rtx_insn *.
13363 * sched-int.h: Adjust.
13365 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13367 * dwarf2cfi.c: Change argument type to rtx_insn *.
13369 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13371 * ira.c (decrease_live_ranges_number): Changetype of local
13372 variable to rtx_insn *.
13373 * recog.c: Change argument types to rtx_insn *.
13376 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13378 * reorg.c: Change argument types to rtx_insn *.
13380 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13382 * ira-color.c: Change argument types to rtx_insn *.
13383 * lra-eliminations.c: Likewise.
13386 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13388 * gcse.c: Change argument types to rtx_insn *.
13390 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13392 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
13394 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13396 * emit-rtl.c (emit_debug_insn_before): Change argument type to
13400 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13402 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
13405 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13407 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
13410 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13412 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
13415 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13417 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
13420 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13422 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
13426 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13428 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
13432 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13434 * except.c (can_nonlocal_goto): Change type of argument to
13438 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13440 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
13443 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13445 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
13446 * cfgrtl.c (can_delete_label_p): Adjust.
13449 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13451 * reorg.c (stop_search_p): Change argument to rtx_insn *.
13453 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13455 * except.c (make_reg_eh_region_note): Change argument to
13457 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
13458 * except.h: Adjust.
13460 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13462 * mode-switching.c (commit_mode_sets): Change type of local
13463 variable from rtx to rtx_insn *.
13465 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
13467 * doc/install.texi (--enable-languages): Add missing jit and lto info.
13468 Add ^ to grep command.
13469 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
13470 arg to last gimple_simplify declaration. Add missing gimple_build
13471 declaration for built-in function case with four tree args.
13473 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
13474 Szabolcs Nagy <szabolcs.nagy@arm.com>
13476 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
13477 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
13478 (GNU_USER_DYNAMIC_LINKERN32): Update.
13480 2015-05-08 Richard Biener <rguenther@suse.de>
13482 PR tree-optimization/66036
13483 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13484 Handle strided group loads.
13485 (vect_verify_datarefs_alignment): Likewise.
13486 (vect_enhance_data_refs_alignment): Likewise.
13487 (vect_analyze_group_access): Likewise.
13488 (vect_analyze_data_ref_access): Likewise.
13489 (vect_analyze_data_ref_accesses): Likewise.
13490 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
13491 (vectorizable_load): Likewise.
13493 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
13495 * config/rs6000/rs6000.md: Require operand inequality in one
13498 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
13499 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13501 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
13503 * config/rx/rx.md (movdi, movdf): Likewise.
13504 Likewise for define_peephole2s.
13506 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
13508 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
13509 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
13510 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
13511 vtst_u64): Rewrite using gcc vector extensions.
13513 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
13515 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
13516 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
13518 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
13520 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
13522 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
13524 * config/glibc-stdint.h (OPTION_MUSL): Define.
13525 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
13526 Change the definition based on OPTION_MUSL for 64 bit targets.
13527 * config/linux.h (OPTION_MUSL): Redefine.
13528 * config/alpha/linux.h (OPTION_MUSL): Redefine.
13529 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
13530 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
13532 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
13533 Szabolcs Nagy <szabolcs.nagy@arm.com>
13535 * config.gcc (LIBC_MUSL): New tm_defines macro.
13536 * config/linux.h (OPTION_MUSL): Define.
13537 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
13538 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
13539 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
13540 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
13541 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
13542 * config/linux.opt (mmusl): New option.
13543 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
13544 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
13545 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
13546 * configure: Regenerate.
13548 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
13549 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13552 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
13553 * config/i386/knetbsd-gnu64.h: New file.
13555 2015-05-08 Marek Polacek <polacek@redhat.com>
13558 * doc/invoke.texi: Document -Woverride-init-side-effects.
13560 2015-05-07 Marek Polacek <polacek@redhat.com>
13563 * doc/invoke.texi: Document -Wshift-negative-value.
13565 2015-05-06 Aditya Kumar <hiraditya@msn.com>
13567 * gcov-tool.c (do_merge): Refactore to remove int ret.
13568 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
13569 !type == FUNC to type != FUNC.
13570 * reload.h (struct target_reload): Changee to type of
13571 x_spill_indirect_levels from bool to unsigned char.
13573 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
13575 * rtl.h (always_void_p): New function.
13576 * gengenrtl.c (always_void_p): Likewise.
13577 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
13578 with code foo are always VOIDmode.
13579 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
13580 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
13581 compare-elim.c, config/aarch64/aarch64.c,
13582 config/aarch64/aarch64.md, config/alpha/alpha.c,
13583 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
13584 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
13585 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
13586 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
13587 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
13588 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
13589 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
13590 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
13591 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
13592 config/ia64/vect.md, config/iq2000/iq2000.c,
13593 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
13594 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
13595 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
13596 config/mep/mep.c, config/microblaze/microblaze.c,
13597 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
13598 config/mn10300/mn10300.c, config/msp430/msp430.c,
13599 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
13600 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
13601 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
13602 config/rs6000/altivec.md, config/rs6000/rs6000.c,
13603 config/rs6000/rs6000.md, config/rs6000/vector.md,
13604 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
13605 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
13606 config/sh/sh.md, config/sh/sh_treg_combine.cc,
13607 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
13608 config/spu/spu.md, config/stormy16/stormy16.c,
13609 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
13610 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
13611 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
13612 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
13613 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
13614 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
13615 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
13616 var-tracking.c: Update calls accordingly.
13618 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
13621 PR middle-end/54303
13622 * varasm.c (function_mergeable_rodata_prefix): New function.
13623 (mergeable_string_section): Use it.
13624 (mergeable_constant_section): Use it.
13626 2015-05-07 Jeff Law <law@redhat.com>
13629 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
13630 simplifier to narrow arithmetic.
13631 * generic-match-head.c: (types_match, single_use): New functions.
13632 * gimple-match-head.c: (types_match, single_use): New functions.
13634 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13636 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
13639 2015-05-07 Richard Biener <rguenther@suse.de>
13641 PR tree-optimization/66002
13642 * passes.def: Schedule another pass_merge_phi after ifcombine, right
13645 2015-05-07 Marek Polacek <polacek@redhat.com>
13646 Martin Uecker <uecker@eecs.berkeley.edu>
13648 * doc/invoke.texi: Document -fsanitize=bounds-strict.
13649 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
13650 into SANITIZE_NONDEFAULT.
13651 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
13653 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
13656 * config/alpha/alpha.c (alpha_override_options_after_change): New.
13657 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
13658 (alpha_override_options): Move align_loops, align_jumps and
13659 align_functions handling into alpha_override_options_after_change.
13661 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
13662 Chris Jones <chrisj@nvidia.com>
13663 Joshua Conner <jconner@nvidia.com>
13665 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
13666 linking of crtfastmath.o.
13667 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
13669 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13671 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
13672 (cstore<mode>4_unsigned_imm): New expander.
13673 (cstore<mode>4): Remove empty constraint strings. Use the new
13676 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
13679 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
13682 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
13684 * config/aarch64/geniterators.sh: Use standard BRE in sed.
13686 2015-05-06 Alan Modra <amodra@gmail.com>
13689 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
13690 (UNSPEC_NOP): Define.
13691 (reload_vsx_from_gpr<mode>): Add missing DONE.
13692 (reload_gpr_from_vsx<mode>): Likewise.
13693 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
13694 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
13696 2015-05-06 Christian Bruel <christian.bruel@st.com>
13699 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
13700 align_jumps, align_functions into aarch64_override_options_after_change.
13702 2015-05-06 Richard Biener <rguenther@suse.de>
13704 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
13705 vect_transform_slp_perm_load to check if we support a permutation
13706 for basic-block vectorization.
13708 2015-05-06 Nick Clifton <nickc@redhat.com>
13710 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
13711 used, even if it is not being used as a frame pointer.
13713 2015-05-05 Jason Merrill <jason@redhat.com>
13715 * dwarf2out.c (gen_member_die): Don't emit anything for an
13716 anonymous class constructor.
13718 2015-05-05 David Malcolm <dmalcolm@redhat.com>
13720 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
13721 that it reflects the block structure.
13722 (afdo_propagate_edge): Likewise.
13723 (afdo_calculate_branch_prob): Likewise.
13724 (afdo_annotate_cfg): Likewise.
13725 * cfgcleanup.c (equal_different_set_p): Likewise.
13726 (try_crossjump_to_edge): Likewise.
13727 * cgraph.c (cgraph_node::verify_node): Likewise.
13728 * cgraphunit.c (expand_all_functions): Likewise.
13729 * config/i386/i386.c (ix86_expand_copysign): Likewise.
13730 (exact_dependency_1): Likewise.
13731 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
13732 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
13733 * gensupport.c (process_define_subst): Likewise.
13734 * lto-wrapper.c (merge_and_complain): Likewise.
13735 * tree-if-conv.c (if_convertible_bb_p): Likewise.
13736 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
13737 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
13738 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
13739 * tree-vect-loop.c (vectorizable_reduction): Likewise.
13740 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
13741 * tree-vect-stmts.c (vectorizable_shift): Likewise.
13742 * tree-vrp.c (vrp_finalize): Likewise.
13743 * tree.c (variably_modified_type_p): Likewise.
13745 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
13747 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
13748 on darwin12 and later.
13749 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
13750 file to pass -rdynamic on darwin12 and later.
13751 * config/darwin.opt (rdynamic): Add.
13753 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
13755 * doc/extend.texi (C Extensions): Update menu for moved Variable
13756 Attributes and Type Attributes sections.
13758 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
13761 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
13762 if rep_8byte stringop strategy was specified for 32-bit target.
13764 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
13767 * config/i386/i386.md (vector convert to float spltiter): Check for
13768 xmm16+, when splitting scalar float conversion.
13769 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
13771 2015-05-05 Nick Clifton <nickc@redhat.com>
13773 * config/msp430/msp430-opts.h (enum msp430_regions): New.
13774 * config/msp430/msp430.c (msp430_override_options): Complain if
13775 -mcode-region or -mdata-region is used on a non MSP430X.
13776 (msp430_section_attr): New function. Checks lower, upper and
13778 (msp430_attribute_table): Add lower, upper and either.
13779 (gen_prefix): New function. Generates a prefix for a section
13781 (msp430_select_section): New function - handles the choice of
13782 section for an object. Takes into account memory region
13783 attributes and options.
13784 (msp430_function_section): Use gen_prefix.
13785 (TARGET_SECTION_TYPE_FLAGS): Define.
13786 (msp430_section_type_flags): New function.
13787 (TARGET_ASM_UNIQUE_SECTION): Define.
13788 (msp430_unique_section): New function.
13789 (msp430_output_aligned_decl_common): New function.
13790 (msp430_do_not_relax_short_jumps): New function.
13791 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
13793 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
13794 * config/msp430/msp430-protos.h
13795 (msp430_do_not_relax_short_jumps): New prototype.
13796 (msp430_output_aligned_decl_common): New prototype.
13797 * config/msp430/msp430.md (length): New attribute.
13798 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
13799 then use a long code sequence for short jumps.
13800 * config/msp430/msp430.opt (mcode-region): New.
13801 (mdata-region): New.
13802 * doc/invoke.texi: Document new options.
13803 * doc/extend.texi: Document new attributes.
13805 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
13807 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
13808 (tune_params): Add field branch_costs.
13809 (aarch64_branch_cost): Declare.
13810 * gcc/config/aarch64.c (generic_branch_cost): New.
13811 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
13812 (cortexa53_tunings): Likewise.
13813 (cortexa57_tunings): Likewise.
13814 (thunderx_tunings): Likewise.
13815 (xgene1_tunings): Likewise.
13816 (aarch64_branch_cost): Define.
13817 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
13819 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
13821 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
13822 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
13823 * config/i386/i386.md: Ditto.
13824 * config/i386/winnt.c: Ditto.
13826 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
13828 * doc/extend.texi (__atomic Builtins): Move implementation details
13829 to the end of the description, rewrite opening paragraphs, state
13830 difference with __sync builtins, state C11/C++11 assumptions,
13831 weaken itemized descriptions, add explanation of memory model
13832 behaviour, expand description of compare-exchange, simplify text.
13834 2015-05-05 Renlin Li <renlin.li@arm.com>
13836 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
13838 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
13840 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
13841 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
13842 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
13843 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
13844 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
13845 * configure: Regenerate.
13846 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
13847 * doc/install.texi (aarch64*-*-*): Document new
13848 --enable-fix-cortex-a53-843419 option.
13849 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
13850 and -mno-fix-cortex-a53-843419 options.
13852 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
13855 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
13857 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
13859 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
13860 fix overactive TYPE_MIN_VALUE check and add FIXME for type
13861 compatibility problems.
13863 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
13865 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
13867 (cbranchsi4_reg): New.
13868 * config/microblaze/microblaze.c
13869 (microblaze_expand_conditional_branch_reg): New.
13870 * config/microblaze/microblaze-protos.h
13871 (microblaze_expand_conditional_branch_reg): New prototype.
13873 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
13875 * config/microblaze/microblaze.md (peephole2): New.
13877 2015-05-04 Jeff Law <law@redhat.com>
13880 2015-05-04 Jeff Law <law@redhat.com>
13882 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
13883 simplifier to narrow arithmetic.
13884 * generic-match-head.c: (types_match, single_use): New functions.
13885 * gimple-match-head.c: (types_match, single_use): New functions.
13887 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
13890 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
13891 (split_branches): Likewise.
13893 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
13895 * common.opt (fdelete-null-pointer-checks): Init to -1.
13896 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
13897 override flag_delete_null_pointer_checks default.
13898 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
13899 behavior re address zero. Better document target-specific behavior.
13900 (-fisolate-errneous-paths-dereference): Mention relationship to
13901 -fdelete-null-pointer-checks.
13903 2015-05-04 Jakub Jelinek <jakub@redhat.com>
13905 PR tree-optimization/65984
13906 * ubsan.c: Include tree-cfg.h.
13907 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
13908 stmt_could_throw_p test, rename can_throw variable to ends_bb.
13910 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
13912 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
13913 to CONST_DOUBLE_P predicate.
13914 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
13915 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
13916 allow only operands that satisfy standard_sse_constant_p predicate.
13917 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
13918 to CONST_DOUBLE_P predicate.
13920 2015-05-04 Jeff Law <law@redhat.com>
13922 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
13923 simplifier to narrow arithmetic.
13924 * generic-match-head.c: (types_match, single_use): New functions.
13925 * gimple-match-head.c: (types_match, single_use): New functions.
13927 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
13929 * config/arm/arm.c: Restore bootstrap.
13931 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
13933 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
13934 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
13935 as CONST_WIDE_INT, not CONST_DOUBLE.
13936 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
13937 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
13938 (ix86_find_base_term): Do not check for CONST_DOUBLE.
13939 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
13940 (ix86_build_signbit_mask): Rewrite using wide ints.
13941 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
13942 (ix86_rtx_costs): Handle CONST_WIDE_INT.
13943 (find_constant): Ditto.
13944 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
13945 using gen_int_mode.
13946 * config/i386/predicates.md (x86_64_immediate_operand)
13947 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
13948 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
13949 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
13950 (const0_operand): Also match const_wide_int.
13951 (constm1_operand): Ditto.
13952 (const1_operand): Ditto.
13954 2015-05-04 Richard Biener <rguenther@suse.de>
13956 PR tree-optimization/65965
13957 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
13958 store groups at gaps.
13960 2015-05-04 Richard Biener <rguenther@suse.de>
13962 PR tree-optimization/65935
13963 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
13964 then make sure to apply that swapping to the IL.
13966 2015-05-04 Jakub Jelinek <jakub@redhat.com>
13968 * Makefile.in (PATCHLEVEL_c): New variable.
13969 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
13970 expand the same way as if DEVPHASE_c was non-empty.
13972 2015-05-04 Kai Tietz <ktietz@redhat.com>
13975 * lto-wrapper.c (run_gcc): Open filename
13978 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
13980 * doc/extend.texi (Variable Attributes, Type Attributes): Move
13981 sections up in file, to immediately after the Function Attributes
13984 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
13986 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
13988 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13990 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
13991 (insert_partition_copy_on_edge): Adjust.
13992 (insert_rtx_to_part_on_edge): Likewise.
13993 (insert_part_to_rtx_on_edge): Likewise.
13995 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13997 * function.c (set_return_jump_label): Change type of argument to
13999 * function.h (set_return_jump_label): Adjust.
14001 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14003 * reload.h (struct reg_equivs_t): Change type of init to
14005 * ira.c (fix_reg_equiv_init): Adjust.
14006 * reload1.c (eliminate_regs_1): Likewise.
14007 (init_eliminable_invariants): Likewise.
14009 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14011 * cselib.c (fp_setter_insn): Take a rtx_insn *.
14012 * cselib.h (fp_setter_insn): Adjust.
14014 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14016 * recog.c (struct validate_replace_src_data): Change type of
14017 insn field to rtx_insn *.
14018 (validate_replace_src_group): Change type of argument to rtx_insn *.
14019 * recog.h (validate_replace_src_group): Adjust.
14021 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14023 * haifa-sched.c: Change the type of some variables to rtx_insn *.
14024 * sched-deps.c: Likewise.
14025 * sched-int.h: Likewise.
14026 * sched-rgn.c: Likewise.
14027 * sel-sched.c: Likewise.
14029 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14032 * config/i386/i386.c: Change the type of some arguments to
14034 * config/arm/arm.c: Likewise.
14036 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14038 * lra-constraints.c: Change type of some arguments to rtx_insn *.
14040 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14042 * regcprop.c (kill_autoinc_value): Change type of argument to
14045 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14047 * genrecog.c (print_subroutine): Adjust.
14048 * recog.c (get_bool_attr_mask_uncached): Likewise.
14049 * recog.h (struct recog_data_d): Change the type of insn to
14052 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14054 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
14056 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14058 * df-problems.c (df_set_note): Change type of argument to
14061 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14063 * builtins.c (expand_builtin_trap): Change type of local
14064 variable to rtx_insn *.
14065 (add_sched_insns_for_speculation): Likewise.
14066 (ix86_emit_save_regs): Likewise.
14067 (get_scratch_register_on_entry): Likewise.
14068 (ix86_emit_restore_reg_using_pop): Likewise.
14069 (ix86_emit_leave): Likewise.
14070 (ix86_emit_restore_regs_using_mov): Likewise.
14071 (ix86_expand_epilogue): Likewise.
14073 (rl78_alloc_physical_registers_umul): Likewise.
14074 * cselib.c (discard_useless_locs): Likewise.
14075 (cselib_invalidate_regno): Likewise.
14076 (cselib_invalidate_mem): Likewise.
14077 * function.c (expand_function_start): Likewise.
14078 (emit_use_return_register_into_block): Likewise.
14079 * gcse.c: Likewise.
14080 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
14081 * ifcvt.c (noce_get_alt_condition): Likewise.
14082 * loop-doloop.c (doloop_condition_get): Likewise.
14083 * lra-constraints.c (inherit_in_ebb): Likewise.
14084 * modulo-sched.c (sms_schedule_by_order): Likewise.
14085 * recog.c (next_insn_tests_no_inequality): Likewise.
14086 * reorg.c (emit_delay_sequence): Likewise.
14087 (update_reg_dead_notes): Likewise.
14088 (fix_reg_dead_note): Likewise.
14089 (fill_slots_from_thread): Likewise.
14090 (delete_computation): Likewise.
14092 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
14094 * doc/extend.texi (Variable Attributes): Add menu and proper
14095 @nodes to subsections. Move Microsoft Windows attributes to
14096 their own subsection.
14097 (Type Attributes): Reorganize introduction to remove duplicate
14098 list of attributes. Add menu and proper @nodes to subsections.
14099 Alphabetize the main table of common attributes.
14101 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
14103 * match.pd: New simplification patterns.
14104 (x + (x & 1)) -> ((x + 1) & ~1)
14105 (x & ~(x & y)) -> ((x & ~y))
14106 (x | ~(x | y)) -> ((x | ~y))
14108 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14110 * target.def (attribute_table): Mention that struct attribute_spec
14111 is defined in tree-core.h rather than tree.h
14112 * doc/tm.texi: Regenerate.
14114 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
14116 * genrecog.c (test): Rename to rtx_test. Update rest of file
14119 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
14121 PR translation/65959
14122 * params.h (DEFPARAM): Rename msgid to nocmsgid.
14124 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14126 * gcc/config/aarch64/aarch64-protos.h (tune_params):
14127 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
14128 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
14129 Return value depending on target.
14130 (generic_tunings): Initialize new target settings.
14131 (cortexa53_tunings): Likewise.
14132 (cortexa57_tunings): Likewise.
14133 (thunderx_tunings): Likewise.
14134 (xgene1_tunings): Likewise.
14136 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14138 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
14139 Make Cortex-A53 shift costs more accurate.
14141 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14143 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
14146 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
14148 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
14149 Calculate cost of op0 and op1 in PLUS and MINUS cases.
14151 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14153 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
14154 Add cost of op0 in the compare-with-fpzero case.
14156 2015-04-30 David Malcolm <dmalcolm@redhat.com>
14158 * builtins.c (fold_builtin_1): Remove spurious second
14160 * cgraph.h (symtab_node::get_availability): Likewise.
14161 * opts.c (common_handle_option): Remove spurious second semicolon.
14162 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
14163 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
14165 2015-04-30 Caroline Tice <cmtice@google.com>
14167 PR gcov-profile/65929
14168 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
14169 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
14170 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
14171 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
14172 * doc/tm.texi: Regenerate.
14173 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
14174 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
14175 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
14176 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
14178 2015-04-30 Marek Polacek <polacek@redhat.com>
14180 * varasm.c (handle_cache_entry): Fix logic.
14182 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14184 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
14185 (*extrsi5_insn_uxtw_alt): Likewise.
14186 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
14187 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
14190 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14192 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
14195 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14197 * config/aarch64/aarch64.md
14198 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
14199 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
14200 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
14201 appropriately. Handle alternative EON form.
14203 2015-04-30 Renlin Li <renlin.li@arm.com>
14205 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
14206 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
14208 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
14211 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
14212 -fstrict-aliasing boundaries.
14214 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14216 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
14217 and [SU]MNEGL patterns.
14219 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14221 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
14222 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
14223 combined arithmetic-shift ops. Properly handle all shift and extend
14224 operations that can occur in combination with PLUS/MINUS.
14225 Rename maybe_fma to compound_p.
14226 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
14227 arithmetic and shift operations.
14229 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14231 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
14232 rather than arith_shift cost when costing ADD/MINUS of an
14235 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
14238 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
14241 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
14243 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
14244 are for the same position.
14246 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
14248 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
14250 (vectorize_loops): Use it.
14252 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
14254 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
14255 for aggregate types.
14256 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
14257 type to be non_ODR.
14258 * tree.c (need_assembler_name_p): Compute mangled name for
14259 non-fundamental types and integer types.
14261 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
14263 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
14265 * expr.c (expand_expr_real_2): Likewise.
14267 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
14269 * tree.c (build_common_builtin_nodes): Do not build
14270 __builtin_alloca_with_align as equivalent of library alloca.
14272 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
14274 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
14275 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
14277 * tree.c: Include print-tree.h and ipa-utils.h
14278 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
14279 (free_lang_data_in_cgraph): Call verify_type.
14280 (verify_type_variant): New function.
14281 (verify_type): New function.
14282 * tree.h (verify_type): Declare.
14284 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
14286 * config/mips/mips-cpus.def: (mips4): Change default processor
14287 from PROCESSOR_R8000 to PROCESSOR_R10000.
14289 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
14291 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
14292 la/jalr instead of jal.
14294 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
14297 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
14298 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
14299 (setcc+movzbl peephole2): Check also clobbered reg.
14300 (setcc+andl peephole2): Ditto.
14302 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
14305 * config/nvptx/mkoffload.c (target_ilp32): New variable.
14306 (main): Set it depending on "-foffload-abi=[...]".
14307 (compile_native, main): Use it to pass "-m32" or "-m64" to the
14310 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
14313 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
14314 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
14315 Flip lane index back at assembly time for bigendian.
14317 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
14319 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
14320 * gimplify.c (gimplify_omp_workshare): Use it.
14322 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
14324 * Makefile.in (build/genrecog.o): Depend on inchash.h.
14325 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
14327 * genrecog.c: Rewrite most of the code except for the third page.
14329 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
14331 * inchash.h, inchash.c: Include bconfig.h for build objects.
14332 * Makefile.in (build/inchash.o): New rule.
14334 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
14337 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
14338 number in type attribute expression.
14340 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
14342 * loop-iv.c (canon_condition): Generalize to all types of integer
14345 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
14347 * gimple-walk.c: Prune duplicate or unneeded includes.
14348 (walk_gimple_asm): Only call parse_input_constraint or
14349 parse_output_constraint if their findings are used.
14350 Honour parse_input_constraint and parse_output_constraint
14353 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
14355 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
14357 2015-04-29 Tom de Vries <tom@codesourcery.com>
14359 PR tree-optimization/65893
14360 * passes.def (pass_all_optimizations): Move pass_stdarg to after
14363 2015-04-29 Richard Biener <rguenther@suse.de>
14365 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
14366 compute GROUP_SIZE for basic-block SLP.
14367 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
14368 take into account gaps.
14369 (vect_get_mask_element): Properly reject references to previous
14371 (vect_transform_slp_perm_load): Likewise.
14373 2015-04-29 Christian Bruel <christian.bruel@st.com>
14376 * config/i386/i386.c (ix86_default_align): New function.
14377 (ix86_override_options_after_change): Call ix86_default_align.
14378 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
14379 (ix86_override_options_after_change): New function.
14381 2015-04-28 Jeff Law <law@redhat.com>
14383 * tree-ssa-dom.c (record_equality); Fix comment typos.
14385 2015-04-28 Tom de Vries <tom@codesourcery.com>
14387 PR tree-optimization/65887
14388 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
14390 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
14392 * doc/extend.texi (Declaring Attributes of Functions): Split into
14393 subsections by target. Alphabetize the table of common attributes.
14394 Rewrite some of the introductory text to reflect the new structure.
14395 Update some cross-references to point to the new subsections.
14396 (Attribute Syntax): Put paragraph about "__" naming here. Remove
14397 duplicate copies in the discussion of function, label, and type
14400 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
14403 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
14405 2015-04-28 Jason Merrill <jason@redhat.com>
14408 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
14409 (finalize_type_size): Respect TYPE_USER_ALIGN.
14410 (layout_type) [ARRAY_TYPE]: Likewise.
14412 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
14414 * config/arm/arm.md (*arm_movt): Fix type attribute.
14415 (*cmpsi_shiftsi): Likewise.
14416 (*cmpsi_shiftsi_swp): Likewise.
14417 (*movsicc_insn): Likewise.
14418 (*cond_move): Likewise.
14419 (*if_plus_move): Likewise.
14420 (*if_move_plus): Likewise.
14421 (*if_arith_move): Likewise.
14422 (*if_move_arith): Likewise.
14423 (*if_shift_move): Likewise.
14424 (*if_move_shift): Likewise.
14425 (*arm_movtas_ze): Likewise.
14426 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
14427 redundancy and type attribute.
14428 (*thumb2_movsi_insn): Fix type attribute.
14429 (*thumb2_addsi_short): Likewise.
14430 (thumb2_addsi3_compare0): Likewise.
14431 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
14432 attributes accordingly.
14434 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
14437 * function.c (pad_to_arg_alignment): Add parentheses.
14439 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
14441 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
14442 libgcc/config/frv/elf-lib.h.
14444 2015-04-28 Tom de Vries <tom@codesourcery.com>
14446 * tree-call-cdce.c: Fix example in header comment.
14448 2015-04-28 Richard Biener <rguenther@suse.de>
14450 PR tree-optimization/62283
14451 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
14452 fails fatally and we are vectorizing a basic-block simply
14453 cause the child to be constructed piecewise.
14454 (vect_analyze_slp_cost_1): Adjust.
14455 (vect_detect_hybrid_slp_stmts): Likewise.
14456 (vect_bb_slp_scalar_cost): Likewise.
14457 (vect_get_constant_vectors): For piecewise constructed
14458 constants place them after the last def.
14459 (vect_get_slp_defs): Adjust.
14460 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
14461 externals for basic-block vectorization.
14463 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14466 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
14468 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
14469 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
14470 (AARCH64_TUNE_FMA_STEERING): Likewise.
14471 * config/aarch64/aarch64-cores.def: Set
14472 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
14473 FMUL/FMADD instructions.
14474 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
14475 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
14476 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
14477 * config/aarch64/cortex-a57-fma-steering.h: New file.
14478 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14480 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
14482 * gensupport.c (std_preds): Add missing codes to address_operand entry.
14484 2015-04-28 Richard Biener <rguenther@suse.de>
14486 PR tree-optimization/65851
14487 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
14488 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
14489 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
14490 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
14491 (ccp_visit_phi_node): Adjust.
14492 (evaluate_stmt): For simplifications to SSA names return its
14493 lattice value if that isn't VARYING. Return immediately when
14494 simplified to a constant.
14495 (visit_assignment): Adjust.
14496 (ccp_visit_stmt): Likewise.
14498 2015-04-28 Tom de Vries <tom@codesourcery.com>
14500 PR tree-optimization/65818
14501 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
14504 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14506 * calls.c (save_fixed_argument_area): Don't check
14507 ARGS_GROW_DOWNWARD with the preprocessor.
14508 (restore_fixed_argument_area): Likewise.
14509 (mem_overlaps_already_clobbered_arg_p): Likewise.
14510 (check_sibcall_argument_overlap): Likewise.
14511 (expand_call): Likewise.
14512 (emit_library_call_value_1): Likewise.
14513 (store_one_arg): Likewise.
14514 * function.c (assign_parms): Likewise.
14515 (locate_and_pad_parm): Likewise.
14516 (pad_to_arg_alignment): Likewise.
14517 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14519 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14521 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
14522 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
14523 * calls.c (save_fixed_argument_area): Don't chekc if
14524 ARGS_GROW_DOWNWARD is defined.
14525 (restore_fixed_argument_area): Likewise.
14526 (mem_overlaps_already_clobbered_arg_p): Likewise.
14527 (check_sibcall_argument_overlap): Likewise.
14528 (expand_call): Likewise.
14529 (emit_library_call_value_1): Likewise.
14530 (store_one_arg): Likewise.
14531 * function.c (assign_parms): Likewise.
14532 (locate_and_pad_parm): Likewise.
14533 (pad_to_arg_alignment): Likewise.
14534 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
14536 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14538 * defaults.h (gen_epilogue): New function.
14539 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
14541 * cfgrtl.c (cfg_layout_finalize): Likewise.
14542 * df-scan.c: Likewise.
14543 * function.c (thread_prologue_and_epilogue_insns): Likewise.
14544 (reposition_prologue_and_epilogue_notes): Likewise.
14545 * reorg.c (find_end_label): Likewise.
14546 * toplev.c: Likewise.
14548 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14550 * bb-reorder.c (HAVE_return): Don't check if its undefined.
14551 * defaults.h (gen_simple_return): New function.
14552 (gen_simple_return): Likewise.
14553 (HAVE_return): Add default definition to false.
14554 (HAVE_simple_return): Likewise.
14555 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
14556 HAVE_return and HAVE_simple_return are defined.
14557 * function.c (gen_return_pattern): Likewise.
14558 (convert_jumps_to_returns): Likewise.
14559 (thread_prologue_and_epilogue_insns): Likewise.
14560 * reorg.c (find_end_label): Likewise.
14561 (dbr_schedule): Likewise.
14562 * shrink-wrap.c: Likewise.
14563 * shrink-wrap.h: Likewise.
14565 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14567 * defaults.h (EPILOGUE_USES): Add default definition of false.
14568 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
14569 * resource.c (init_resource_info): Likewise.
14571 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14573 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
14575 * dwarf2out.c (field_byte_offset): REmove check if
14576 PCC_BITFIELD_TYPE_MATTERS is defined.
14577 * stor-layout.c (layout_decl): Likewise.
14578 (update_alignment_for_field): Likewise.
14579 (place_field): Likewise.
14581 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14583 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
14585 * regrename.c (check_new_reg_p): Remove check if
14586 HARD_REGNO_RENAME_OK is defined.
14587 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
14589 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14591 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
14592 * cse.c (fold_rtx): Likewise.
14593 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
14594 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
14595 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
14596 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
14597 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
14598 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
14599 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
14600 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
14601 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
14602 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
14604 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
14605 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
14606 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
14607 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
14608 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
14609 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
14610 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
14611 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
14612 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
14613 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
14614 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
14615 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
14616 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
14617 * doc/tm.texi: Regenerate.
14618 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
14619 either true or false.
14621 2015-04-27 Jeff Law <law@redhat.com>
14623 PR tree-optimization/65217
14624 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
14625 of them has a single use, make sure it is the LHS of the implied
14628 2015-04-28 Alan Modra <amodra@gmail.com>
14631 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
14632 (offsettable_ok_by_alignment): Use minimum of decl and toc
14633 pointer alignment. Replace dead code with assertion.
14634 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
14635 case if size exceeds toc pointer alignment.
14636 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
14637 (rs6000_emit_move): Likewise.
14638 * configure.ac: Add linker toc pointer alignment check.
14639 * configure: Regenerate.
14640 * config.in: Regenerate.
14642 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
14644 * config.gcc: Add h8300-*-linux.
14645 * config/h8300/linux.h: New.
14646 * config/h8300/t-linux: New.
14647 * config/h8300/h8300.c (h8300_option_override): Normal mode
14648 is not supported for h8300-*-linux.
14649 (h8300_file_start): Target priority change.
14650 (get_shift_alg): Likewise.
14651 (h8300_shift_need_scratch_p): Likewise.
14652 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
14653 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
14655 2015-04-27 Caroline Tice <cmtice@google.com>
14657 * final.c (final_scan_insn): Output cold_function_name as function
14659 * varasm.c (cold_function_name): Make global.
14660 (assemble_start_function): Re-set cold_function_name.
14661 (assemble_end_function): Output cold partition size.
14662 * varasm.h (cold_function_name): Declare global.
14664 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
14666 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
14667 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
14669 (*movxi_internal_avx512f): Ditto.
14670 (define_split): Check for xmm16+, when splitting scalar float_extend.
14671 (*extendsfdf2_mixed): Use "v" constraint.
14672 (define_split): Check for xmm16+, when splitting scalar float_truncate.
14673 (*truncdfsf_fast_sse): Use "v" constraint.
14674 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
14675 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
14676 (define_peephole2): Check for xmm16+, when converting scalar
14678 (define_peephole2): Check for xmm16+, when converting scalar
14680 (*fop_<mode>_comm_mixed): Use "v" constraint.
14681 (*fop_<mode>_comm_sse): Ditto.
14682 (*fop_<mode>_1_mixed): Ditto.
14683 (*sqrt<mode>2_sse): Ditto.
14684 (*ieee_s<ieee_maxmin><mode>3): Ditto.
14686 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14688 * combine.c (simplify_if_then_else): Use std::swap instead
14689 of manually swapping.
14690 (known_cond): Likewise.
14691 (simplify_comparison): Likewise.
14693 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
14696 * config/rs6000/htm.md: Remove all define_expands.
14697 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
14698 UNSPECV_HTM_TABORTWCI): Remove.
14699 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
14700 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
14701 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
14702 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
14703 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
14704 tabortwci_internal): Remove define_insns.
14705 (tabort<wd>c, tabort<wd>ci): New define_insns.
14706 (tabort): Use gpc_reg_operand.
14707 (tcheck): Remove operand.
14708 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
14709 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
14711 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
14712 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
14713 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
14714 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
14715 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
14716 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
14717 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
14718 (tcheck): Remove builtin argument.
14719 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
14721 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
14722 tabortdc and tabortdci builtins when not in 64-bit mode.
14723 Modify code to handle the loss of the HTM define_expands.
14724 Emit code to copy the CR register to TARGET.
14725 (htm_init_builtins): Modify code to handle the loss of the HTM
14727 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
14728 (RS6000_BTC_64BIT): Likewise.
14729 (RS6000_BTC_CR): New macro.
14730 * doc/extend.texi: Update documentation for htm builtins.
14732 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14734 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
14735 of manually swapping.
14736 (simplify_associative_operation): Likewise.
14737 (simplify_binary_operation): Likewise.
14738 (simplify_plus_minus): Likewise.
14739 (simplify_relational_operation): Likewise.
14740 (simplify_ternary_operation): Likewise.
14742 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
14744 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
14745 (xs_hi_nonmemory_operand): Remove error.
14746 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
14747 general_operand rather than xs_hi_general_operand.
14749 2015-04-27 Richard Biener <rguenther@suse.de>
14751 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
14752 (record_equivalences_from_stmt): Valueize rhs.
14753 (record_equality): Canonicalize x and y order via
14754 tree_swap_operands_p. Do not swap operands for same loop depth.
14756 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
14760 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
14761 Add hint how to use own spec file.
14763 2015-04-27 Jakub Jelinek <jakub@redhat.com>
14765 PR tree-optimization/65875
14766 * tree-vrp.c (update_value_range): If in is_new case setting
14767 old_vr to VR_VARYING, also set new_vr to it. Remove
14768 old_vr->type == VR_VARYING test.
14769 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
14770 SSA_PROP_INTERESTING if update_value_range returned true,
14771 but new range is VR_VARYING.
14773 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
14775 * combine.c (sign_extend_short_imm): New.
14776 (set_nonzero_bits_and_sign_copies): Use above new function for sign
14777 extension of src short immediate.
14778 (reg_nonzero_bits_for_combine): Likewise for tem.
14780 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
14782 * stor-layout.c (self_referential_component_ref_p): New predicate.
14783 (copy_self_referential_tree_r): Use it.
14784 (self_referential_size): Punt for simple operations directly involving
14785 self-referential component references.
14786 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
14788 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
14790 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
14792 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
14794 * vec.h (vec): Make splice arguments const. Update definitions
14797 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
14799 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
14802 2015-04-26 Tom de Vries <tom@codesourcery.com>
14804 PR tree-optimization/65826
14805 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
14807 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
14809 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
14810 (*madd3<mode>): Ditto.
14811 (*msub4<mode>): Ditto.
14812 (*msub3<mode>): Ditto.
14813 (*nmadd4<mode>): Ditto.
14814 (*nmadd3<mode>): Ditto.
14815 (*nmadd4<mode>_fastmath): Ditto.
14816 (*nmadd3<mode>_fastmath): Ditto.
14817 (*nmsub4<mode>): Ditto.
14818 (*nmsub3<mode>): Ditto.
14819 (*nmsub4<mode>_fastmath): Ditto.
14820 (*nmsub3<mode>_fastmath): Ditto.
14822 2015-04-24 Jason Merrill <jason@redhat.com>
14825 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
14826 down when building TYPE_CANONICAL.
14827 (build_pointer_type_for_mode): Likewise.
14829 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
14831 * genrecog.c (validate_pattern): Check matching constraint refers
14832 to a lower numbered operand.
14834 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14837 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
14838 save to independent variables use the Save attribute. This will
14839 allow these options to be modified with the #pragma/attribute
14841 (-mallow-movmisalign): Likewise.
14842 (-mallow-df-permute): Likewise.
14843 (-msched-groups): Likewise.
14844 (-malways-hint): Likewise.
14845 (-malign-branch-targets): Likewise.
14846 (-mvectorize-builtins): Likewise.
14847 (-msave-toc-indirect): Likewise.
14849 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
14850 can be set via the #pragma/attribute target support.
14851 (rs6000_opt_vars): Likewise.
14852 (rs6000_inner_target_options): If VSX was set, also set
14853 -mno-avoid-indexed-addresses.
14855 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14857 * config/arm/iterators.md (shiftable_ops): Rename to...
14858 (SHIFTABLE_OPS): ... This. Update use in comments.
14859 (ior_xor): Rename to...
14860 (IOR_XOR): ... This.
14861 (vqh_ops): Rename to...
14862 (VQH_OPS): ... This.
14863 (vqhs_ops): Rename to...
14864 (VQHS_OPS): ... This.
14865 (rshifts): Rename to...
14866 (RSHIFTS): ... This.
14867 (returns): Rename to...
14868 (RETURNS): ... This.
14869 * config/arm/arm.md: Update uses of the above.
14870 * config/arm/neon.md: Likewise.
14872 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14874 * config.host (case ${host}): Add aarch64*-*-linux case.
14875 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
14876 fields to all the cores.
14877 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
14878 Add MCPU_MTUNE_NATIVE_SPECS.
14879 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
14880 field to all extensions.
14881 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
14882 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
14883 Adjust definition of AARCH64_OPT_EXTENSION.
14884 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
14885 (MCPU_MTUNE_NATIVE_SPECS): Define.
14886 * config/aarch64/driver-aarch64.c: New file.
14887 * config/aarch64/x-arch64: New file.
14888 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
14891 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
14892 Wei Mi <wmi@google.com>
14894 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
14895 * config/i386/i386.c (extract_base_offset_in_addr): New function.
14896 (ix86_operands_ok_for_move_multiple): Ditto.
14897 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
14898 (movlpd/movhpd to movupd peephole2): Ditto.
14900 2015-04-24 Marek Polacek <polacek@redhat.com>
14903 * input.h (from_macro_expansion_at): Define.
14906 * doc/invoke.texi: Update description of -Wlogical-op.
14908 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14910 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
14911 ternary operator in fprintf and harmonize spacing.
14913 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
14915 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
14916 Mark operand1 commutative.
14918 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
14920 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
14921 input operands in memory.
14922 (*vec_concatv2si_sse4_1): Ditto.
14923 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
14924 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
14926 (vec_extract_hi_v32hi): Ditto.
14927 (vec_extract_hi_v64hi): Ditto.
14928 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
14930 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
14931 Steven Bosscher <steven@gcc.gnu.org>
14933 PR rtl-optimization/34503
14934 * cprop.c (cprop_reg_p): New.
14935 (hash_scan_set): Use above function to check if register can be
14937 (find_avail_set): Return up to two sets, one whose source is a
14938 register and one whose source is a constant. Sets are returned in an
14939 array passed as parameter rather than as a return value.
14940 (cprop_insn): Use a do while loop rather than a goto. Try each of the
14941 sets returned by find_avail_set, starting with the one whose source is
14942 a constant. Use cprop_reg_p to check if register can be propagated.
14943 (do_local_cprop): Use cprop_reg_p to check if register can be
14945 (implicit_set_cond_p): Likewise.
14947 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
14949 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
14950 (sem_function::equals): IGNORED_NODES parameter is now unused;
14951 update call of equals_private.
14952 (sem_function::equals_private): Do not call equals_wpa; skip
14953 gimple body matching if there is no body.
14954 (sem_function::init): Add logic to hash tthunk info.
14955 (sem_function::parse): Also parse thunks.
14956 * ipa-icf.h (equals_private): Update declaration.
14958 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14960 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
14961 asterisk from name so this can be generated directly.
14962 (*altivec_stvx_<mode>_internal): Likewise.
14963 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
14964 that this is never called during or after reload/lra.
14965 (rs6000_frame_related): Remove split_reg
14966 argument and logic that references it.
14967 (emit_frame_save): Remove last parameter from call to
14968 rs6000_frame_related.
14969 (rs6000_emit_prologue): Remove last parameter from eight calls to
14970 rs6000_frame_related. Force generation of stvx instruction for
14971 Altivec register saves. Remove split_reg handling, which is no
14973 (rs6000_emit_epilogue): Force generation of lvx instruction for
14974 Altivec register restores.
14976 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14978 * config/rs6000/rs6000.opt (mcrypto): Change option description to
14979 match category changes in ISA 2.07B.
14981 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14983 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
14985 (cmp_op, cmp_type): New code attributes.
14986 (NEON_VCMP, NEON_VACMP): New int iterators.
14987 (cmp_op_unsp): New int attribute.
14988 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
14989 (neon_vceq<mode>): Delete.
14990 (neon_vc<cmp_op><mode>_insn): New pattern.
14991 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
14992 (neon_vcgeu<mode>): Delete.
14993 (neon_vcle<mode>): Likewise.
14994 (neon_vclt<mode>: Likewise.
14995 (neon_vcage<mode>): Likewise.
14996 (neon_vcagt<mode>): Likewise.
14997 (neon_vca<cmp_op><mode>): New define_expand.
14998 (neon_vca<cmp_op><mode>_insn): New pattern.
14999 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
15001 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15003 * tree.h (attribute_value_equal): Declare.
15004 * tree.c (attribute_value_equal): Export.
15006 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15008 * ipa-icf.c (sem_item::compare_attributes): New function.
15009 (sem_item::compare_referenced_symbol_properties): Compare variable
15011 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
15012 (sem_function::param_used_p): New function.
15013 (sem_function::equals_wpa): Fix attribute comparsion; match
15014 parameter type codes; do not compare paremter flags when
15015 they are not used; compare edge flags; compare indirect calls.
15016 (sem_item::update_hash_by_addr_refs): Hash reference type.
15017 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
15018 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
15019 reference use type.
15020 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
15021 * ipa-icf.h (compare_attributes, param_used_p): Declare.
15023 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15025 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
15027 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
15028 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
15029 (sem_item::compare_referenced_symbol_properties): New.
15030 (sem_item::hash_referenced_symbol_properties): New.
15031 (sem_item::compare_cgraph_references): Rename to ...
15032 (sem_item::compare_symbol_references): ... this one; use
15033 compare_referenced_symbol_properties.
15034 (sem_function::equals_wpa): Do not compare
15035 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
15036 DECL_IS_OPERATOR_NEW; compare pointer sizes.
15037 (sem_item::update_hash_by_addr_refs): Call
15038 hash_referenced_symbol_properties.
15039 (sem_item::update_hash_by_local_refs): Cleanup.
15040 (sem_function::merge): Do not mix up symbol properties.
15041 (sem_variable::equals_wpa): Use compare_symbol_references.
15042 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
15043 (sem_item::hash_referenced_symbol_properties): New.
15044 (sem_item::compare_symbol_references): New.
15045 (sem_item::compare_cgraph_references): Remove.
15047 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
15050 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
15051 Emit size of local.
15053 2015-04-23 Nick Clifton <nickc@redhat.com>
15055 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
15056 ATTRIBUTE_UNUSED to x parameter.
15057 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
15059 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15061 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
15062 TARGET_CRYPTO to TARGET_P8_VECTOR>
15063 (crypto_vpermxor_<mode>): Likewise.
15064 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
15065 (BU_CRYPTO_3A): Likewise.
15066 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
15067 (BU_CRYPTO_OVERLOAD_3A): New #define.
15068 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
15069 (VPMSUMH): Likewise.
15070 (VPMSUMW): Likewise.
15071 (VPMSUMD): Likewise.
15072 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
15073 (VPERMXOR_V4SI): Likewise.
15074 (VPERMXOR_V8HI): Likewise.
15075 (VPERMXOR_V16QI): Likewise.
15076 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
15077 BU_CRYPTO_OVERLOAD_2A.
15078 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
15079 BU_CRYPTO_OVERLOAD_3A.
15080 * config/rs6000/rs6000.opt (mcrypto): Change description of
15083 2015-04-23 Richard Biener <rguenther@suse.de>
15085 * passes.def: Remove copy propagation passes run directly after CCP.
15086 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
15088 (ccp_visit_phi_node): Rework to handle first executable edge
15091 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
15093 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15094 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15095 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
15096 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
15097 (thumb_legimitimize_reload_address): Remove.
15098 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
15100 (thumb_legimitimize_reload_address): Remove.
15102 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15104 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
15106 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15108 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
15110 (store_multiple): Likewise.
15112 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15114 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
15115 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
15116 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
15117 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
15118 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
15119 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
15120 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
15121 Specify issue_rate value.
15122 (arm_issue_rate): Look up issue rate from tuning structs. Remove
15123 large switch statement.
15124 (arm_marvell_pj4_tune): New struct.
15125 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
15128 2015-04-23 Richard Biener <rguenther@suse.de>
15130 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
15131 (vect_find_last_store_in_slp_instance): Rename to ...
15132 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
15133 (vect_analyze_slp_cost_1): Use vector_load for constant defs
15134 and vec_construct for external defs when estimating prologue cost.
15135 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
15136 Compute costs here only when vectorizing loops.
15137 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
15138 have been determined.
15139 (vect_schedule_slp_instance): Simplify vectorized code placement
15140 and prepare for in-BB external defs.
15141 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
15142 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
15143 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
15145 (vect_model_load_cost): Likewise.
15146 (vectorizable_store): Instead add it here.
15147 (vectorizable_load): Likewise.
15148 (vect_is_simple_use): Dump def type textually.
15150 2015-04-23 Richard Biener <rguenther@suse.de>
15152 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
15153 * cfgloop.c (verify_loop_structure): Verify the root loop node.
15154 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
15155 instead of get_eh_region_from_lp_number.
15156 * loop-init.c (fix_loop_structure): If we removed a loop, reset
15159 2015-04-23 Anton Blanchard <anton@samba.org>
15161 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
15162 need for -mprofile-kernel to save LR to stack.
15164 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15166 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
15168 (insn_is_swappable_p): Return 1 for a convert from double to
15169 single precision when all of its uses are splats of BE element
15172 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
15174 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
15176 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15179 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
15180 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
15181 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
15183 (rs6000_builtin_mask_for_load): Return 0 for targets with
15184 efficient unaligned VSX accesses so that the vectorizer will use
15185 direct unaligned loads.
15186 (rs6000_builtin_support_vector_misalignment): Always return true
15187 for targets with efficient unaligned VSX accesses.
15188 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
15189 stores on targets with efficient unaligned VSX accesses is almost
15190 always the same as the cost of an aligned load or store, so model
15192 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
15193 unaligned vectors if we have efficient unaligned VSX accesses.
15194 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
15195 undocumented option.
15197 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15200 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
15202 * config.gcc (LIBC_MUSL): New tm_defines macro.
15203 * config/linux.h (OPTION_MUSL): Define.
15204 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15205 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15206 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15208 * config/linux.opt (mmusl): New option.
15209 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15210 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15212 * configure: Regenerate.
15214 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
15216 * config.gcc (LIBC_MUSL): New tm_defines macro.
15217 * config/linux.h (OPTION_MUSL): Define.
15218 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
15219 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
15220 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
15222 * config/linux.opt (mmusl): New option.
15223 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
15224 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
15226 * configure: Regenerate.
15228 2015-04-22 Yury Gribov <y.gribov@samsung.com>
15230 * doc/invoke.texi (-fsanitize-sections): Update description.
15231 * asan.c (set_sanitized_sections): Parse incoming arg.
15232 (section_sanitized_p): Support wildcards.
15234 2015-04-22 Tom de Vries <tom@codesourcery.com>
15236 PR tree-optimization/65823
15237 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
15238 equality between ap_copy and ap.
15240 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15243 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
15245 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15248 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
15250 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15253 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
15254 remove already contained t-files.
15256 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15258 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
15259 Remove unneeded forward declarations.
15260 (suitable_for_tail_call_opt_p): Commentary typo fix.
15262 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15264 * varasm.c (emit_bss): Remove redundant guard.
15266 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15268 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
15270 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15272 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
15274 2015-04-22 Hale Wang <hale.wang@arm.com>
15275 Terry Guo <terry.guo@arm.com>
15277 PR rtl-optimization/64818
15278 * combine.c (can_combine_p): Don't combine user-specified
15279 register if it is in an asm input.
15281 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
15284 * passes.def (early_optimizations): Add pass_dse.
15286 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15288 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
15289 * reorg.c (redundant_insn): Remove ifdef
15290 INSN_REFERENCES_ARE_DELAYED.
15291 * resource.c (mark_referenced_resources): Likewise.
15293 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15295 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
15296 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
15297 * resource.c (mark_set_resources): Likewise.
15299 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15301 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
15302 * cfgcleanup.c (flow_find_cross_jump): Likewise.
15303 (flow_find_head_matching_sequence): Likewise.
15304 (try_head_merge_bb): Likewise.
15305 * combine.c (can_combine_p): Likewise.
15306 (try_combine): Likewise.
15307 (distribute_notes): Likewise.
15308 * df-problems.c (can_move_insns_across): Likewise.
15309 * final.c (final): Likewise.
15310 * gcse.c (insert_insn_end_basic_block): Likewise.
15311 * ira.c (find_moveable_pseudos): Likewise.
15312 * reorg.c (try_merge_delay_insns): Likewise.
15313 (fill_simple_delay_slots): Likewise.
15314 (fill_slots_from_thread): Likewise.
15315 * sched-deps.c (sched_analyze_2): Likewise.
15317 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15319 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
15320 PIC_OFFSET_TABLE_REGNUM.
15322 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15324 * alias.c (init_alias_target): Remove ifdef
15325 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
15326 * df-scan.c (df_insn_refs_collect): Likewise.
15327 (df_get_regular_block_artificial_uses): Likewise.
15328 (df_get_eh_block_artificial_uses): Likewise.
15329 (df_get_entry_block_def_set): Likewise.
15330 (df_get_exit_block_use_set): Likewise.
15331 * emit-rtl.c (gen_rtx_REG): Likewise.
15332 * ira.c (ira_setup_eliminable_regset): Likewise.
15333 * reginfo.c (init_reg_sets_1): Likewise.
15334 * regrename.c (rename_chains): Likewise.
15335 * reload1.c (reload): Likewise.
15336 (eliminate_regs_in_insn): Likewise.
15337 * resource.c (mark_referenced_resources): Likewise.
15338 (init_resource_info): Likewise.
15340 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15342 * defaults.h (MASK_RETURN_ADDR): New definition.
15343 * except.c (expand_builtin_extract_return_addr): Remove ifdef
15346 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15348 * defaults.h (RETURN_ADDR_OFFSET): New definition.
15349 * except.c (expand_builtin_extract_return_addr): Remove ifdef
15350 RETURN_ADDR_OFFSET.
15351 (expand_builtin_frob_return_addr): Likewise.
15353 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15355 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
15356 (try_redirect_by_replacing_jump): Likewise.
15357 (rtl_tidy_fallthru_edge): Likewise.
15358 * combine.c (insn_a_feeds_b): Likewise.
15359 (find_split_point): Likewise.
15360 (simplify_set): Likewise.
15361 * cprop.c (cprop_jump): Likewise.
15362 * cse.c (cse_extended_basic_block): Likewise.
15363 * df-problems.c (can_move_insns_across): Likewise.
15364 * function.c (emit_use_return_register_into_block): Likewise.
15365 * haifa-sched.c (sched_init): Likewise.
15366 * ira.c (find_moveable_pseudos): Likewise.
15367 * loop-invariant.c (find_invariant_insn): Likewise.
15368 * lra-constraints.c (curr_insn_transform): Likewise.
15369 * postreload.c (reload_combine_recognize_const_pattern):
15371 * reload.c (find_reloads): Likewise.
15372 * reorg.c (delete_scheduled_jump): Likewise.
15373 (steal_delay_list_from_target): Likewise.
15374 (steal_delay_list_from_fallthrough): Likewise.
15375 (redundant_insn): Likewise.
15376 (fill_simple_delay_slots): Likewise.
15377 (fill_slots_from_thread): Likewise.
15378 (delete_computation): Likewise.
15379 * sched-rgn.c (add_branch_dependences): Likewise.
15381 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15383 * genconfig.c (main): Always define HAVE_cc0.
15384 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
15386 * cfgcleanup.c (flow_find_cross_jump): Likewise.
15387 (flow_find_head_matching_sequence): Likewise.
15388 (try_head_merge_bb): Likewise.
15389 * cfgrtl.c (rtl_merge_blocks): Likewise.
15390 (try_redirect_by_replacing_jump): Likewise.
15391 (rtl_tidy_fallthru_edge): Likewise.
15392 * combine.c (do_SUBST_MODE): Likewise.
15393 (insn_a_feeds_b): Likewise.
15394 (combine_instructions): Likewise.
15395 (can_combine_p): Likewise.
15396 (try_combine): Likewise.
15397 (find_split_point): Likewise.
15399 (simplify_set): Likewise.
15400 (distribute_notes): Likewise.
15401 * cprop.c (cprop_jump): Likewise.
15402 * cse.c (cse_extended_basic_block): Likewise.
15403 * df-problems.c (can_move_insns_across): Likewise.
15404 * final.c (final): Likewise.
15405 (final_scan_insn): Likewise.
15406 * function.c (emit_use_return_register_into_block): Likewise.
15407 * gcse.c (insert_insn_end_basic_block): Likewise.
15408 * haifa-sched.c (sched_init): Likewise.
15409 * ira.c (find_moveable_pseudos): Likewise.
15410 * loop-invariant.c (find_invariant_insn): Likewise.
15411 * lra-constraints.c (curr_insn_transform): Likewise.
15412 * optabs.c (prepare_cmp_insn): Likewise.
15413 * postreload.c (reload_combine_recognize_const_pattern):
15415 * reload.c (find_reloads): Likewise.
15416 (find_reloads_address_1): Likewise.
15417 * reorg.c (delete_scheduled_jump): Likewise.
15418 (steal_delay_list_from_target): Likewise.
15419 (steal_delay_list_from_fallthrough): Likewise.
15420 (try_merge_delay_insns): Likewise.
15421 (redundant_insn): Likewise.
15422 (fill_simple_delay_slots): Likewise.
15423 (fill_slots_from_thread): Likewise.
15424 (delete_computation): Likewise.
15425 (relax_delay_slots): Likewise.
15426 * sched-deps.c (sched_analyze_2): Likewise.
15427 * sched-rgn.c (add_branch_dependences): Likewise.
15429 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15431 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
15432 that is trivially ded on non cc0 targets.
15433 (simplify_set): Likewise.
15434 (mark_used_regs_combine): Likewise.
15435 * cse.c (new_basic_block): Likewise.
15436 (fold_rtx): Likewise.
15437 (cse_insn): Likewise.
15438 (cse_extended_basic_block): Likewise.
15439 (set_live_p): Likewise.
15440 * rtlanal.c (canonicalize_condition): Likewise.
15441 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15443 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15445 * conditions.h: Define macros even if HAVE_cc0 is undefined.
15446 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
15447 * final.c: Likewise.
15448 * jump.c: Likewise.
15449 * recog.c: Likewise.
15450 * recog.h: Declare functions even when HAVE_cc0 is undefined.
15451 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
15453 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15455 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
15456 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
15457 * builtins.c (expand_builtin): Remove check if
15458 EH_RETURN_DATA_REGNO is defined.
15459 * df-scan.c (df_bb_refs_collect): Likewise.
15460 (df_get_exit_block_use_set): Likewise.
15461 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
15462 * ira-lives.c (process_bb_node_lives): Likewise.
15463 * lra-lives.c (process_bb_lives): Likewise.
15465 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
15467 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
15468 FIRST_PSEUDO_REG): New.
15469 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
15470 (ARG_POINTER_REGNUM): Define to ARGP_REG.
15471 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
15472 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
15473 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
15474 (FIRST_INT_REG): New.
15475 (LAST_INT_REG): New.
15476 (FIRST_*_REG): Define using *_REG.
15477 (LAST_*_REG): Ditto.
15478 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
15479 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
15480 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
15482 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15484 * expmed.c: (synth_mult): Only assume overlapping
15485 shift with previous steps in alg_sub_t_m2 case.
15487 2015-04-21 Richard Biener <rguenther@suse.de>
15489 PR tree-optimization/65650
15490 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
15491 transitions involving copies.
15492 (set_lattice_value): Adjust for copy lattice state.
15493 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
15494 if that doesn't dominate the merge point.
15495 (bit_value_unop): Adjust what we treat as varying mask.
15496 (bit_value_binop): Likewise.
15497 (bit_value_assume_aligned): Likewise.
15498 (evaluate_stmt): When we simplified to a SSA name record a copy
15499 instead of dropping to varying.
15500 (visit_assignment): Simplify.
15502 * gimple-match.h (gimple_simplify): Add another callback.
15503 * gimple-fold.c (fold_stmt_1): Adjust caller.
15504 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
15505 for the 2nd callback.
15506 * gimple-match-head.c (gimple_simplify): Add a callback that is
15507 used to valueize the stmt operands and use it that way.
15509 2015-04-21 Richard Biener <rguenther@suse.de>
15511 PR tree-optimization/65788
15512 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
15514 2015-04-21 Richard Biener <rguenther@suse.de>
15516 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
15517 vec_construct cost by vec_stmt_cost.
15519 2015-04-21 Richard Biener <rguenther@suse.de>
15521 * cfghooks.h (create_basic_block): Replace with two overloads
15522 for RTL and GIMPLE.
15523 (split_block): Likewise.
15524 * cfghooks.c (split_block): Rename to ...
15525 (split_block_1): ... this.
15526 (split_block): Add two type-safe overloads for RTL and GIMPLE.
15527 (split_block_after_labels): Call split_block_1.
15528 (create_basic_block): Rename to ...
15529 (create_basic_block_1): ... this.
15530 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
15531 (create_empty_bb): Call create_basic_block_1.
15532 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
15533 split_block_after_labels.
15534 * omp-low.c (expand_parallel_call): Likewise.
15535 (expand_omp_target): Likewise.
15536 (simd_clone_adjust): Likewise.
15537 * tree-chkp.c (chkp_get_entry_block): Likewise.
15538 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
15539 create_basic_block overload.
15540 (cgraph_node::expand_thunk): Likewise.
15541 * tree-cfg.c (make_blocks): Likewise.
15542 (handle_abnormal_edges): Likewise.
15543 * tree-inline.c (copy_bb): Likewise.
15545 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15547 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
15549 (*xor_one_cmplsidi3_ze): Likewise.
15551 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
15553 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
15554 use df_remove_problem rather than manually removing problems, leaving
15555 holes in df->problems_in_order[].
15557 2015-04-21 Tom de Vries <tom@codesourcery.com>
15559 PR tree-optimization/65802
15560 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
15562 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15564 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
15566 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
15567 at '.'. Assert that there's enough space for everything.
15569 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
15571 PR tree-optimization/64950
15573 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
15576 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
15579 2015-04-20 Shiva Chen <shiva0217@gmail.com>
15581 PR rtl-optimization/64916
15582 * cfgcleanup.c (values_equal_p): New function.
15583 (can_replace_by): Use it.
15585 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
15588 * doc/invoke.texi ([-Wnarrowing]): Update.
15590 2015-04-20 Jeff Law <law@redhat.com>
15592 PR tree-optimization/65658
15593 * tree-ssa-threadupdate.c (redirection_block_p): Remove
15594 redundant test for GIMPLE_ASSIGN in last change.
15596 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
15598 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
15599 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
15600 (legitimize_tls_address): Ditto.
15601 (ix86_expand_move): Ditto.
15602 (ix86_expand_binary_operator): Remove reload_in_progress checks.
15603 (ix86_expand_unary_operator): Ditto.
15604 * config/i386/predicates.md (index_register_operand): Ditto.
15606 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
15608 * reorg.c (try_merge_delay_insns): Improve correctness checking
15609 for targets with multiple delay slots.
15611 2015-04-20 Jeff Law <law@redhat.com>
15613 PR tree-optimization/65658
15614 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
15617 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
15619 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
15620 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
15623 2015-04-20 Jakub Jelinek <jakub@redhat.com>
15626 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
15628 2015-04-20 Richard Biener <rguenther@suse.de>
15630 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
15631 * gimple-fold.c (gimple_build_valueize): New function.
15632 (gimple_build): Always use gimple_build_valueize as valueize hook.
15634 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
15637 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
15638 and overwrite variable parts if <= 1/2 the elements are variable.
15640 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
15642 PR rtl-optimization/65805
15643 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
15644 Don't use difference of offset and previous offset if
15645 update_sp_offset is non-zero.
15646 (eliminate_regs_in_insn): Ditto.
15647 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
15648 lra_eliminate_regs_1 call.
15649 * lra-constraints.c (get_equiv_with_elimination): Ditto.
15651 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
15653 * hash-table.h: Remove version of hash_table that stored value_type *.
15654 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
15655 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
15656 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
15657 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
15658 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
15659 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
15660 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15661 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
15662 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
15663 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
15664 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
15665 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
15666 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
15667 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15668 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
15669 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
15671 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15672 Jakub Jelinek <jakub@redhat.com>
15675 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
15676 subsequent SH_NONE operand does not overwrite an existing *special
15678 (adjust_extract): Handle case where a vec_extract operation is
15679 wrapped in a PARALLEL.
15681 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
15684 * config/i386/i386.c (ix86_binds_local_p): Define only if
15685 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
15687 2015-04-17 Jeff Law <law@redhat.com>
15689 PR tree-optimization/47679
15690 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
15691 * tree-ssa-scopedtables.c: New file.
15692 * tree-ssa-scopedtables.h: New file.
15693 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
15694 (const_and_copies): Change name/type.
15695 (record_const_or_copy): Move into tree-ssa-scopedtables.c
15696 (record_const_or_copy_1): Similarly.
15697 (restore_vars_to_original_value): Similarly.
15698 (pass_dominator::execute): Create and destroy const_and_copies table.
15699 (thread_across_edge): Update passing of const_and_copies.
15700 (record_temporary_equivalence): Use method calls rather than
15701 manipulating const_and_copies directly.
15702 (record_equality, cprop_into_successor_phis): Similarly.
15703 (dom_opt_dom_walker::before_dom_children): Similarly.
15704 (dom_opt_dom_walker::after_dom_children): Similarly.
15705 (eliminate_redundant_computations): Similarly.
15706 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
15707 (record_temporary_equivalence): Likewise.
15708 (invalidate_equivalences): Likewise.
15709 (record_temporary_equivalences_from_phis): Update due to type
15710 change of const_and_copies. Use method calls rather than
15711 manipulating the stack directly.
15712 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
15713 (thread_through_normal_block, thread_across_edge): Likewise.
15714 (thread_across_edge): Likewise.
15715 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15716 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
15718 (identify_jump_threads): Update due to type change of equiv_stack.
15719 (finalize_jump_threads): Delete the equiv_stack when complete.
15721 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
15723 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
15724 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
15725 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
15727 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
15730 * config.gcc: Exit with a comment when we do not have a major version
15731 number for the FreeBSD target.
15733 2015-04-17 Jakub Jelinek <jakub@redhat.com>
15736 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
15737 maybe_allows_mem bitfields.
15738 (maybe_allows_none_start, maybe_allows_none_end,
15739 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
15740 maybe_allows_mem_end): New variables.
15741 (compute_maybe_allows): New function.
15742 (add_constraint): Use it to initialize maybe_allows_reg and
15743 maybe_allows_mem fields.
15744 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
15745 is_address constraints such that those that allow neither mem nor
15746 reg come first, then those that only allow reg but not mem, then
15747 those that only allow mem but not reg, then the rest.
15748 (write_allows_reg_mem_function): New function.
15749 (write_tm_preds_h): Call it.
15750 * stmt.c (parse_output_constraint, parse_input_constraint): Use
15751 the generated insn_extra_constraint_allows_reg_mem function
15752 instead of always setting *allows_reg = true; *allows_mem = true;
15753 for unknown extra constraints.
15755 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
15758 * output.h (default_binds_local_p_3): New.
15759 * varasm.c (default_binds_local_p_3): Make it public. Take an
15760 argument to indicate if common symbol may be local. If common
15761 symbol may be local, treat non-external variable as defined
15763 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
15764 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
15765 * config/i386/i386.c (ix86_binds_local_p): New.
15766 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
15767 ix86_binds_local_p.
15769 2015-04-17 Jakub Jelinek <jakub@redhat.com>
15772 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
15773 trying mem_loc_descriptor on XEXP (rtl, 0).
15775 2015-04-17 Martin Liska <mliska@suse.cz>
15777 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15778 Release symbol_compare_collection.
15779 * ipa-reference.c: Add TODO that a vector should be released.
15781 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
15784 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
15785 to new AVR-LibC file layout (bug #44574).
15786 (*avrlibc_devicelib): Same.
15787 * config/avr/avr-mcus.def: Adjust comments.
15788 * config/avr/avr.opt (nodevicelib): Adjust help.
15790 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
15792 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
15794 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
15797 * gimplify.c (gimplify_init_constructor): Always emit a
15798 side-effecting constructor.
15800 2015-04-17 Tom de Vries <tom@codesourcery.com>
15802 PR tree-optimization/64950
15803 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
15804 in cfun->curr_properties.
15805 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
15806 if we generate an IFN_VA_ARG.
15807 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
15808 function if PROP_gimple_lva is not set in src function.
15810 2015-04-17 Tom de Vries <tom@codesourcery.com>
15811 Michael Matz <matz@suse.de>
15813 PR tree-optimization/64950
15814 * gimple-iterator.c (update_modified_stmts): Remove static.
15815 * gimple-iterator.h (update_modified_stmts): Declare.
15816 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
15817 (gimplify_va_arg_internal): New function.
15818 (gimplify_va_arg_expr): Use IFN_VA_ARG.
15819 * gimplify.h (gimplify_va_arg_internal): Declare.
15820 * internal-fn.c (expand_VA_ARG): New unreachable function.
15821 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
15822 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
15823 (expand_ifn_va_arg): New function.
15824 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
15825 (pass_stdarg::execute): Call expand_ifn_va_arg.
15826 (pass_data_lower_vaarg): New pass_data.
15827 (pass_lower_vaarg): New gimple_opt_pass.
15828 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
15829 (make_pass_lower_vaarg): New function.
15830 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
15831 properties_required field.
15832 * passes.def (all_passes): Add pass_lower_vaarg.
15833 * tree-pass.h (PROP_gimple_lva): Add define.
15834 (make_pass_lower_vaarg): Declare.
15836 2015-04-17 Tom de Vries <tom@codesourcery.com>
15838 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
15839 * calls.c (call_expr_flags): Same.
15841 2015-04-17 Tom de Vries <tom@codesourcery.com>
15843 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
15844 (pass_stdarg::execute): ... here.
15846 2015-04-17 Tom de Vries <tom@codesourcery.com>
15847 Michael Matz <matz@suse.de>
15849 * tree-cfg.c (make_blocks_1): Factor out of ...
15850 (make_blocks): ... here.
15851 (make_edges_bb): Factor out of ...
15852 (make_edges): ... here.
15853 (gimple_find_sub_bbs): New function.
15854 * tree-cfg.h (gimple_find_sub_bbs): Declare.
15856 2015-04-17 Tom de Vries <tom@codesourcery.com>
15858 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
15860 2015-04-17 Yury Gribov <y.gribov@samsung.com>
15862 * asan.c (set_sanitized_sections): New function.
15863 (section_sanitized_p): Ditto.
15864 (asan_protect_global): Optionally sanitize user-defined
15866 * asan.h (set_sanitized_sections): Declare new function.
15867 * common.opt (fsanitize-sections): New option.
15868 * doc/invoke.texi (-fsanitize-sections): Document new option.
15869 * opts-global.c (handle_common_deferred_options): Handle new
15872 2015-04-17 Jakub Jelinek <jakub@redhat.com>
15875 * dwarf2out.c (loc_list_from_tree): Return NULL
15876 for DEBUG_EXPR_DECL.
15878 2015-04-17 Christian Bruel <christian.bruel@st.com>
15880 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
15883 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
15885 * ira-color.c (setup_left_conflict_sizes_p): Do not process
15886 node itself when computing left conflict subnode size.
15888 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
15890 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
15891 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
15892 *fop_<mode>_1_sse using enabled attribute. Use
15893 register_mixssei387nonimm_operand operand 1 predicate. Change
15894 alternative 3 constraints from "x" to "v".
15896 2015-04-16 Richard Biener <rguenther@suse.de>
15898 PR tree-optimization/65774
15899 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
15900 bit-value tracking on.
15902 2015-04-16 Richard Biener <rguenther@suse.de>
15904 PR tree-optimization/64277
15905 * tree-vrp.c (check_array_ref): Fix anti-range handling,
15906 simplify upper bound handling.
15907 (search_for_addr_array): Simplify.
15908 (check_array_bounds): Handle ADDR_EXPRs here.
15909 (check_all_array_refs): Simplify.
15911 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
15913 * config/i386/i386.c (print_reg): Rewrite function.
15915 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15917 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
15918 Invert the condition.
15920 2015-04-16 Renlin Li <renlin.li@arm.com>
15922 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
15923 simplifications for UNSIGNED_FLOAT.
15925 2015-04-16 Nick Clifton <nickc@redhat.com>
15927 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
15929 (enum rl78_cpu_type): New.
15930 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
15931 (umulhi3_shift_virt): Remove m constraint from operand 1.
15932 (umulqihi3_virt): Likewise.
15933 * config/rl78/rl78.c (rl78_option_override): Add code to process
15934 -mcpu and -mmul options.
15935 (rl78_alloc_physical_registers): Add code to handle divhi and
15936 divsi valloc attributes.
15937 (set_origin): Likewise.
15938 * config/rl78/rl78.h (RL78_MUL_G14): Define.
15939 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
15940 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
15942 (ASM_SPEC): Pass -mcpu on to assembler.
15943 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
15944 (mulqi3_rl78): Likewise.
15945 (mulhi3_g13): Likewise.
15946 (mulhi3): Generate the G13 or G14 versions of the insn directly.
15947 (mulsi3): Likewise.
15948 (mulhi3_g14): Add clobbers of AX and BC.
15949 (mulsi3_g14): Likewise.
15950 (mulsi3_g13): Likewise.
15951 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
15952 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
15953 * config/rl78/rl78.opt (mmul): Initialise value to
15955 (mcpu): New option.
15956 (m13, m14, mrl78): New option aliases.
15957 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
15958 (MULTILIB_DIRNAMES): Add g13 and g14.
15959 * doc/invoke.texi: Document -mcpu and -mmul options.
15961 2015-04-16 Richard Biener <rguenther@suse.de>
15963 * tree-ssa-ccp.c (likely_value): See if we have operands that
15964 are marked as never simulate again and return CONSTANT in this
15966 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
15967 not have any operands that will be simulated again as
15968 not being simulated again.
15970 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
15972 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
15973 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
15974 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
15976 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
15978 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
15979 *float<SWI48:mode><MODEF:mode>2_sse.
15980 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
15982 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
15985 2015-04-15 Tom de Vries <tom@codesourcery.com>
15988 * function.c (push_dummy_function): New function.
15989 (init_dummy_function_start): Use push_dummy_function.
15990 (pop_dummy_function): New function. Factored out of ...
15991 (expand_dummy_function_end): ... here.
15992 * function.h (push_dummy_function, pop_dummy_function): Declare.
15993 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
15994 pop_dummy_function.
15995 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
15997 2015-04-15 Jeff Law <law@redhat.com>
15999 PR tree-optimization/47679
16000 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
16001 need for forward declaration in upcoming changes.
16002 (record_conditions, record_edge_info): Likewise.
16004 PR rtl-optimization/42522
16005 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
16006 SIGN_EXTRACT as a whole object rather than simplifying
16009 2015-04-15 Jakub Jelinek <jakub@redhat.com>
16012 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
16013 and GIMPLE_PREDICT use break instead of return true. For
16014 GIMPLE_EH_DISPATCH, compare dispatch region.
16016 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
16018 * doc/extend.texi (__sync Builtins): Simplify some text. Update
16019 details about the implementation. Make clear preference for
16020 __atomic builtins. Reduce possibility of future change.
16022 2015-04-15 Nick Clifton <nickc@redhat.com>
16024 * config/rx/rx.opt (mallow-string-insns): New option.
16025 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
16026 builtin if string instructions are denied.
16027 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
16028 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
16030 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
16031 * config/rx/rx.md (movstr): Enable pattern only if string
16032 instructions are allowed.
16033 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
16034 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
16035 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
16036 (MULTILIB_DIRNAMES): Add no-strings.
16037 * doc/invoke.texi: Document -mno-allow-string-insns.
16039 2015-04-15 Alan Modra <amodra@gmail.com>
16043 PR middle-end/36043
16044 * calls.c (load_register_parameters): Don't load past end of
16045 mem unless suitably aligned.
16047 2015-04-15 Nick Clifton <nickc@redhat.com>
16049 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
16050 decrement instruction as being frame related.
16051 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
16053 If zero extending a function address enclose the operation in
16055 (rl78_preferred_reload_class): New function.
16056 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16057 * config/rl78/rl78.md: Remove useless constraints in expanders.
16058 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
16059 (mulhi3_rl78): Likewise.
16060 (mulhi3_g13): Likewise.
16061 (mulsi3_rl78): Likewise.
16062 (es_addr): Move to before the multiply patterns.
16064 2015-04-15 Alan Modra <amodra@gmail.com>
16066 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
16067 and sequence_stack. Add seq.
16068 (seq_stack): Delete.
16069 * function.c (prepare_function_start): Don't access x_last_insn.
16070 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
16071 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
16072 * emit_rtl.c (start_sequence, push_topmost_sequence,
16073 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
16074 sequence accessors.
16075 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
16076 remove_insn): Likewise. Simplify.
16077 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
16078 and pop_topmost_sequence.
16079 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
16081 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
16083 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
16086 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
16089 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
16091 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
16092 (LEGACY_INT_REGNO_P): Ditto.
16093 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
16094 (ANY_MASK_REG_P): Remove.
16095 (BND_REG_P): Rename from ANY_BND_REG_P.
16096 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
16097 legacy integer registers. Do not handle MMX_REG_P in a special way.
16098 Merge 64byte and 32byte SSE handling.
16100 2015-04-14 Nick Clifton <nickc@redhat.com>
16102 * expr.c (expand_assignment): Force an address offset computation
16103 into a register before changing its mode.
16104 (expand_expr_real_1): Likewise.
16106 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
16108 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
16109 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
16110 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
16111 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
16112 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
16113 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
16114 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
16115 and __aarch64_vget_lane_any.
16117 2015-04-14 Jakub Jelinek <jakub@redhat.com>
16119 PR rtl-optimization/65761
16120 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
16121 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
16123 2015-04-14 Richard Biener <rguenther@suse.de>
16125 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
16126 (graphite_can_represent_scev): Use POINTER_TYPE_P.
16128 2015-04-14 Richard Biener <rguenther@suse.de>
16130 PR tree-optimization/65758
16131 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
16133 (ccp_lattice_meet): Likewise.
16134 (bit_value_unop): Likewise.
16135 (bit_value_binop): Likewise.
16136 (bit_value_assume_aligned): Likewise.
16138 2015-04-14 Christian Bruel <christian.bruel@st.com>
16140 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
16143 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
16145 PR tree-optimization/63387
16146 * match.pd ((x unord x) | (y unord y) -> (x unord y),
16147 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
16149 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
16151 * config/i386/predicates.md (any_QIreg_operand): Rename from
16152 q_regs_operand. Do not process subregs.
16153 (QIreg_operand): Use QI_REGNO_P predicate.
16154 (ext_QIreg_operand): Ditto.
16155 (ext_register_operand): Ditto.
16156 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
16157 (AND splitters): Ditto.
16158 (AND with -65536 splitter): Add SWI48 mode for operand 0.
16159 (AND with -256 splitter): Use any_QIreg_operand predicate and
16160 SWI248 mode for operand 0.
16161 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
16162 mode for operand 0.
16163 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
16165 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
16167 * doc/plugins.texi: Rewrite first introductory paragraph.
16169 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16171 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
16172 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
16174 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16176 * ipa-profie.c (ipa_profile): Check number of parameters
16177 and possible polymorphic call targets before
16180 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
16182 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
16183 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
16185 2015-04-13 Richard Biener <rguenther@suse.de>
16187 PR tree-optimization/65204
16188 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
16189 takens for bit-CCP.
16191 2015-04-13 Richard Biener <rguenther@suse.de>
16194 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
16195 and cond_not_taken_branch_cost to 4 and 2.
16196 (bdver2_cost): Likewise.
16197 (bdver3_cost): Likewise.
16198 (bdver4_cost): Likewise.
16200 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16202 * hash-table.h (hash_table constructor): Add mem stats.
16203 (alloc_entries): Likewise.
16205 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16207 * ipa-cp.c (ipcp_driver): Relase prev_edge.
16208 * passes.c (execute_one_pass): Only add transform if pass has one.
16210 2015-04-12 Joseph Myers <joseph@codesourcery.com>
16212 * config/i386/i386.c (ix86_option_override_internal): Don't set
16213 -fprefetch-loop-arrays if optimizing for size.
16215 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
16216 Gerald Pfeifer <gerald@pfeifer.com>
16218 * doc/contrib.texi (Contributors): Add Martin Jambor and
16221 2015-04-12 Jakub Jelinek <jakub@redhat.com>
16223 * BASE-VER: Set to 6.0.0.
16225 PR tree-optimization/65747
16226 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
16227 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
16229 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
16231 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
16232 sentence. Improve grammar.
16234 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
16236 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
16238 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
16241 * ipa-inline-transform.c (speculation_removed): Remove static var.
16242 (check_speculations): New function.
16243 (clone_inlined_nodes): Do not check spculations.
16244 (inline_call): Call check_speculations.
16245 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
16246 consider non-invariants.
16248 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
16249 Martin Liska <mliska@suse.cz>
16252 * ipa-icf.c (sem_item::compare_cgraph_references): function and
16253 variable can not match.
16254 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
16255 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
16257 2015-04-11 Jakub Jelinek <jakub@redhat.com>
16259 PR tree-optimization/65735
16260 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
16261 Remove visited_phis argument, add visited_bbs, avoid recursing into the
16262 same bb rather than just into the same phi node.
16263 (thread_through_normal_block): Adjust caller.
16265 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
16267 * doc/contrib.texi (Contributors): Add Ira Rosen.
16269 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
16271 * gcov.c (find_source): Fix miswording in error message.
16272 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
16273 (ix86_expand_sse_comi_round): Fix typo in error message.
16275 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
16277 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
16279 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
16281 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
16283 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
16286 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
16287 Print bad_spills_num and insn_pseudos_num.
16289 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16292 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
16293 when creating +1 values for SImode.
16295 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
16298 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
16301 2015-04-10 Jakub Jelinek <jakub@redhat.com>
16302 Iain Sandoe <iain@codesourcery.com>
16305 * configure: Regenerate.
16307 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
16310 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
16312 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
16314 * doc/contrib.texi (Contributors): Add John Marino.
16316 2015-04-09 Jakub Jelinek <jakub@redhat.com>
16318 PR tree-optimization/65709
16319 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
16320 TREE_TYPE (TREE_TYPE (t)).
16322 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
16325 * lra-int.h (lra_bad_spill_regno_start): New.
16326 * lra.c (lra_bad_spill_regno_start): New.
16327 (lra): Set up lra_bad_spill_regno_start. Set up
16328 lra_constraint_new_regno_start unconditionally.
16329 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
16332 2015-04-09 Marek Polacek <polacek@redhat.com>
16333 Jakub Jelinek <jakub@redhat.com>
16335 PR middle-end/65554
16336 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
16337 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
16340 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
16342 PR rtl-optimization/65693
16343 * combine.c (is_parallel_of_n_reg_sets): Move outside of
16346 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
16349 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
16350 device specs file if "device-specs%s" didn't resolve to a path.
16352 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
16355 * config/i386/i386.c (fixup_modeless_constant): New.
16356 (ix86_expand_args_builtin): Fixup modeless constant operand.
16357 (ix86_expand_round_builtin): Ditto.
16358 (ix86_expand_special_args_builtin): Ditto.
16359 (ix86_expand_builtin): Ditto.
16361 2015-04-09 Jakub Jelinek <jakub@redhat.com>
16364 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
16365 any pow2 integer in between 2 and 0x80000000U inclusive.
16367 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
16369 PR rtl-optimization/65693
16370 * combine.c (is_parallel_of_n_reg_sets): Change first argument
16371 from an rtx_insn * to an rtx.
16372 (try_combine): Adjust both callers. Use it once more.
16374 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
16376 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
16377 (chkp_make_static_const_bounds): Search existing
16378 symbol by assembler name. Use make_decl_one_only.
16379 (chkp_get_zero_bounds_var): Remove node search which
16380 is now performed in chkp_make_static_const_bounds.
16381 (chkp_get_none_bounds_var): Likewise.
16383 2015-04-08 Michael Witten <mfwitten@gmail.com>
16385 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
16388 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16390 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
16392 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
16394 * doc/extend.texi (__sync Builtins): Fix grammar.
16396 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16398 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
16400 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16402 * varasm.c (emit_local): Move definition of align.
16404 2015-04-08 Julian Brown <julian@codesourcery.com>
16406 * config/nvptx/mkoffload.c (process): Support variable mapping.
16408 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
16410 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
16412 (alpha_write_one_linkage): Correct typo.
16414 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
16416 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
16418 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
16420 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
16422 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
16424 * tree-chkp.h (chkp_insert_retbnd_call): New.
16425 * tree-chkp.c (chkp_insert_retbnd_call): New.
16426 * ipa-split.c (insert_bndret_call_after): Remove.
16427 (split_function): Use chkp_insert_retbnd_call.
16428 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
16429 bounds for instrumented functions.
16431 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
16434 * calls.c (initialize_argument_information): When producing tail
16435 call also turn SSA_NAMES passed by references to original PARM_DECLs
16437 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
16440 * lra-remat.c (do_remat): Process input and non-input insn
16441 registers separately.
16443 2015-04-07 Jakub Jelinek <jakub@redhat.com>
16446 * valtrack.c (debug_lowpart_subreg): New function.
16447 (dead_debug_insert_temp): Use it.
16449 PR middle-end/65680
16450 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
16451 into signed HOST_WIDE_INT the same as negative bit_offset.
16453 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
16455 * ipa-comdats.c (ipa_comdats): Visit all thunks
16456 to set proper comdat group.
16458 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16461 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
16462 on constants for NEON VSTRUCT modes.
16464 2015-04-07 Jakub Jelinek <jakub@redhat.com>
16465 Iain Sandoe <iain@codesourcery.com>
16468 * configure: Regenerate.
16470 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16473 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
16474 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
16475 that LFD is used to load double constants instead of LFS. Add
16476 defaults for all costs structures. Add comments for missing
16477 initialization fields.
16478 (size32_cost): Likewise.
16479 (size64_cost): Likewise.
16480 (rs64a_cost): Likewise.
16481 (mpccore_cost): Likewise.
16482 (ppc403_cost): Likewise.
16483 (ppc405_cost): Likewise.
16484 (ppc440_cost): Likewise.
16485 (ppc476_cost): Likewise.
16486 (ppc601_cost): Likewise.
16487 (ppc603_cost): Likewise.
16488 (ppc604_cost): Likewise.
16489 (ppc604e_cost): Likewise.
16490 (ppc620_cost): Likewise.
16491 (ppc630_cost): Likewise.
16492 (ppccell_cost): Likewise.
16493 (ppc750_cost): Likewise.
16494 (ppc7450_cost): Likewise.
16495 (ppc8540_cost): Likewise.
16496 (ppce300c2c3_cost): Likewise.
16497 (ppce500mc_cost): Likewise.
16498 (ppce500mc64_cost): Likewise.
16499 (ppce5500_cost): Likewise.
16500 (ppce6500_cost): Likewise.
16501 (titan_cost): Likewise.
16502 (power4_cost): Likewise.
16503 (power6_cost): Likewise.
16504 (power7_cost): Likewise.
16505 (power8_cost): Likewise.
16506 (ppca2_cost): Likewise.
16507 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
16509 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
16510 instead of XXLOR to copy SFmode to clear out dirty bits created
16511 when SFmode denormals are generated.
16512 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
16513 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
16515 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
16517 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
16518 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
16519 * config/aarch64/aarch64-tune.md: Regenerate.
16521 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
16523 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
16524 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
16525 * config/arm/arm-cores.def (exynos-m1): New core.
16526 * config/arm/arm-tune.md: Regenerate.
16527 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
16528 * config/arm/bpabi.h: Likewise.
16530 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
16532 * ipa-cp (set_single_call_flag): Remove too
16533 restrictive assert.
16535 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
16537 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
16538 GOMP_offload_unregister from the destructor.
16540 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
16542 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
16543 flags for instrumentation thunk.
16544 (chkp_produce_thunks): Likewise.
16546 2015-04-05 Martin Liska <mliska@suse.cz>
16549 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
16550 has computed data structure.
16551 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
16553 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
16555 * invoke.texi (inline-unit-growth): Increase growth to 20%
16556 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
16558 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
16561 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
16563 (lra_rematerialization_iter): New.
16564 * lra.c (lra): Initialize lra_rematerialization_iter.
16565 Stop updating lra_constraint_new_regno_start after switching of
16566 inheritance and rematerialization.
16567 * lra-remat.c (lra_rematerialization_iter): New.
16568 (lra_remat): Add printing pass iteration. Do rematerialization
16569 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
16571 2015-04-04 Richard Biener <rguenther@suse.de>
16573 PR tree-optimization/64909
16574 PR tree-optimization/65660
16575 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
16576 to take a cost vector for scalar iteration cost.
16577 (vect_get_single_scalar_iteration_cost): Likewise.
16578 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
16579 Compute the scalar iteration cost into a cost vector.
16580 (vect_get_known_peeling_cost): Use the scalar cost vector to
16581 account for the cost of the peeled iterations.
16582 (vect_estimate_min_profitable_iters): Likewise.
16583 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16586 2015-04-04 Alan Modra <amodra@gmail.com>
16590 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
16591 0.0 constant unless TARGET_VSX.
16592 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
16595 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
16598 * ipa-inline-transform.c (inline_call): Skip sanity check to work
16601 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
16604 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
16605 speculative indirect edges to avoid ordering issue.
16607 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
16610 * ipa-inline.c (edge_badness): Add combined size to the denominator.
16612 2015-04-03 Jakub Jelinek <jakub@redhat.com>
16614 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
16615 TYPE_ARTIFICIAL on the .omp_data* types.
16617 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
16619 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
16620 instrumentation thunks.
16622 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
16624 * config/i386/i386.c (ix86_expand_call): Avoid nested
16625 PARALLEL in returned call value.
16627 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
16629 * lto-cgraph.c (input_cgraph_1): Always link instrumented
16630 assembler name with original one.
16632 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
16634 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
16636 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
16638 Revert parts of r216820.
16639 * config/i386/i386.md (movqi_internal): Correct type calculation
16640 for alternatives 3 and 5.
16642 2015-04-02 Jakub Jelinek <jakub@redhat.com>
16644 PR preprocessor/61977
16645 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
16646 predefine __vector/__bool/__pixel macros nor context sensitive
16647 macros for CLK_ASM.
16648 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
16650 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
16652 * config/pa/pa.c (pa_output_move_double): Directly handle register
16653 indexed memory operand. Simplify handling of scaled register indexed
16656 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
16659 * config/i386/linux-common.h (MPX_SPEC): New.
16660 (CHKP_SPEC): Add MPX_SPEC.
16661 * doc/invoke.texi (-fcheck-pointer-boudns): Document
16662 possible issues with '-z bndplt' support in linker.
16664 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
16666 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
16667 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
16668 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
16669 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
16670 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
16672 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
16674 * config/i386/sync.md (UNSPEC_MOVA): Remove.
16675 (atomic_load<mode>): Change operand 0 predicate to
16676 nonimmediate_operand and fix up the destination when needed.
16678 (atomic_loaddi_fpu): Use UNSPEC_LDA.
16679 (atomic_store<mode>): Change operand 1 predicate to
16680 nonimmendate_operand and move the source to register when needed.
16682 (atomic_store<mode>_1): Use UNSPEC_STA.
16683 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
16684 Fix moves from memory operand. Use UNSPEC_STA.
16686 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
16688 * expmed.c (strict_volatile_bitfield_p): Check that the access will
16689 not cross a MODESIZE boundary.
16690 (store_bit_field, extract_bit_field): Added assertions in the
16691 strict volatile bitfields code path.
16693 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
16696 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
16697 Increase args array size by one to avoid buffer overflow.
16699 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
16701 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
16703 * ipa-inline.c (edge_badness): Add wrapper penalty.
16704 (sum_callers): Move up.
16705 (inline_small_functions): Set single_caller.
16706 * ipa-inline.h (inline_summary): Add single_caller.
16707 * ipa-split.c (split_function): Set split_part.
16708 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
16709 * cgraph.h (cgraph_node): Add split_part.
16711 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
16714 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
16715 Do not split operands 0 and operands 2 to halfmode.
16716 (atomic_compare_and_swap<mode>): Update for
16717 atomic_compare_and_swap<dwi>_doubleword changes.
16719 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
16721 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
16722 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
16723 no caching is done.
16725 2015-03-31 Martin Liska <mliska@suse.cz>
16728 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
16729 has already filled up function summary.
16730 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
16732 2015-03-31 Richard Biener <rguenther@suse.de>
16734 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
16737 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
16739 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
16741 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
16742 (s390_asm_output_function_label): Adapt to new signature of
16743 s390_function_num_hotpatch_hw
16744 Optimise the code generating assembler output.
16745 Add comments to assembler file.
16747 2015-03-31 Richard Biener <rguenther@suse.de>
16749 PR middle-end/65626
16750 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
16751 of the noreturn call so it is last and cleanup_control_flow_bb
16752 can do the CFG part.
16754 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
16757 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
16758 same_comdat_group for external symbols.
16759 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
16760 infinite same_comdat_group traversal loop.
16762 2015-03-31 Jakub Jelinek <jakub@redhat.com>
16765 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
16766 automatically to $headers.
16768 2015-03-30 Jakub Jelinek <jakub@redhat.com>
16771 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
16772 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
16774 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
16776 * ipa-prop.c (param_type_may_change_p): Likewise.
16777 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
16778 (remove_unused_scope_block_p): Add in_ctor_dtor_block
16779 argument. Before inlining, preserve
16780 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
16781 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
16783 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
16785 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
16788 * ipa-inline.c (edge_badness): Base denominator on callee's
16791 2015-03-27 Martin Jambor <mjambor@suse.cz>
16794 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
16795 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
16796 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
16797 node_calling_single_call.
16798 * ipa-cp.c (count_callers): New function.
16799 (set_single_call_flag): Likewise.
16800 (initialize_node_lattices): Count callers and set single_flag_call if
16802 (incorporate_penalties): New function.
16803 (good_cloning_opportunity_p): Use it, dump new flags.
16804 (propagate_constants_topo): Set node_within_scc flag if appropriate.
16805 * doc/invoke.texi (ipa-cp-recursion-penalty,
16806 ipa-cp-single-call-pentalty): Document.
16808 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
16811 * symtab.c (symtab_node::get_partitioning_class): Register vars
16813 * varpool.c (symbol_table::output_variables) Do not assemble unefined
16814 decls for non-symbols.
16816 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
16819 * output.h (default_binds_local_p_2): New.
16820 * varasm.c (default_binds_local_p_2): Renamed to ...
16821 (default_binds_local_p_3): This. Don't return true on protected
16822 data symbol if protected data may be external.
16823 (default_binds_local_p): Use default_binds_local_p_3.
16824 (default_binds_local_p_1): Likewise.
16825 (default_binds_local_p_2): New.
16826 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
16827 default_binds_local_p_2 if TARGET_MACHO is undefined.
16829 2015-03-27 Jakub Jelinek <jakub@redhat.com>
16832 * config/i386/i386.c (legitimize_pic_address): If base
16833 is SYMBOL_REF or LABEL_REF using %rip addressing, force
16834 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
16836 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
16839 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
16842 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
16845 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
16846 of optimized out indirect call.
16847 (redirect_to_unreachable): Always build symbol table node for
16848 BUILT_IN_UNREACHABLE
16850 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
16853 * ira-costs.c (record_reg_classes): Process all constraint string
16856 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
16858 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
16862 * config/c6x/constraints.md (S3): New constraint.
16863 * config/c6x/c6x.md (real_jump): Use it.
16865 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
16867 PR middle-end/65595
16868 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
16869 do redirection if the call is not optimized out.
16871 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
16874 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
16875 (fchkp-check-incomplete-type): Add LTO.
16876 (fchkp-zero-input-bounds-for-main): Likewise.
16877 (fchkp-first-field-has-own-bounds): Likewise.
16878 (fchkp-narrow-bounds): Likewise.
16879 (fchkp-narrow-to-innermost-array): Likewise.
16880 (fchkp-use-static-bounds): Likewise.
16881 (fchkp-use-static-const-bounds): Likewise.
16882 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
16884 2015-03-27 Marek Polacek <polacek@redhat.com>
16886 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
16888 2015-03-27 Marek Polacek <polacek@redhat.com>
16891 * ubsan.c (ubsan_create_edge): New function.
16892 (instrument_bool_enum_load): Call it.
16893 (instrument_nonnull_arg): Likewise.
16894 (instrument_nonnull_return): Likewise.
16895 (instrument_object_size): Likewise.
16897 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
16899 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
16902 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
16905 * lto-streamer.h (class lto_location_cache): New.
16906 (struct data_in): Add location_cache.
16907 (lto_input_location): Update prototype.
16908 (stream_input_location_now): New.
16909 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
16910 pointer to location.
16911 (stream_input_location): Update.
16912 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
16913 (warn_odr): Apply location cache before warning.
16914 (lto_input_location): Update prototype.
16915 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
16916 Use stream_input_location_now.
16917 * lto-streamer-in.c (lto_location_cache::current_cache): New static
16919 (lto_location_cache::cmp_loc): New function.
16920 (lto_location_cache::apply_location_cache): New function.
16921 (lto_location_cache::accept_location_cache): New function.
16922 (lto_location_cache::revert_location_cache): New function.
16923 (lto_location_cache::input_location): New function.
16924 (lto_input_location): Do location caching.
16925 (stream_input_location_now): New function.
16926 (input_eh_region, input_struct_function_base): Use
16927 stream_input_location_now.
16928 (lto_data_in_create): use new.
16929 (lto_data_in_delete): Use delete.
16930 * tree-streamer-in.c (unpack_ts_block_value_fields,
16931 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
16932 lto_input_ts_exp_tree_pointers): Update for cached location api.
16934 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
16937 * passes.def: Add pass_nothrow.
16938 * ipa-pure-const.c: (pass_data_nothrow): New.
16939 (pass_nothrow): New.
16940 (pass_nothrow::execute): New.
16941 (make_pass_nothrow): New.
16942 * tree-pass.h (make_pass_nothrow): Declare.
16944 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
16946 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
16947 edge to change by speculation resolution or redirection.
16948 (edge_set_predicate): Likewise.
16949 (inline_summary_t::duplicate): Likewise.
16950 (remap_edge_summaries): Likewise.
16952 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
16954 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
16956 (can_inline_edge_p): Relax option matching for always inline functions.
16958 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
16961 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
16962 Check operand 4 and operand 0 for equality.
16963 (avx512f_vextract<shuffletype>32x4_1_maskm):
16964 Check operand 6 and operand 0 for equality.
16965 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
16967 (vec_extract_hi_<mode>_maskm): Ditto.
16969 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
16971 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
16972 dead calls back to live.
16973 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
16975 (cgraph_node::verify_node): ... here; verify only callee edges,
16977 * cif-code.def (CILK_SPAWN): New code.
16979 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
16981 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
16982 (edge_set_predicate): Use it to mark unreachable edges.
16983 (inline_summary_t::duplicate): Remove unnecesary code.
16984 (remap_edge_summaries): Likewise.
16985 (dump_inline_summary): Report contains_cilk_spawn.
16986 (compute_inline_parameters): Compute contains_cilk_spawn.
16987 (inline_read_section, inline_write_summary): Stream
16988 contains_cilk_spawn.
16989 * ipa-inline.c (can_inline_edge_p): Do not touch
16990 DECL_STRUCT_FUNCTION that may not be available;
16991 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
16992 remove check for callee_fun->can_throw_non_call_exceptions and
16993 replace it by optimization attribute check; check for flag_exceptions.
16994 * ipa-inline-transform.c (inline_call): Maintain
16995 DECL_FUNCTION_PERSONALITY
16996 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
16998 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17000 PR tree-optimization/65551
17001 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
17002 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
17004 2015-03-26 Richard Biener <rguenther@suse.de>
17006 PR middle-end/65555
17007 * tree-cfg.c (verify_gimple_call): Do not require a call to
17008 have no LHS if it wasn't recognized as control altering yet.
17010 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17012 PR tree-optimization/64715
17013 * passes.def: Add another instance of pass_object_sizes before ccp1.
17014 * tree-object-size.c (pass_object_sizes::execute): In
17015 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
17016 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
17017 __bos result and the computed constant. Remove redundant
17018 checks, obsoleted by gimple_call_builtin_p test.
17020 * var-tracking.c (variable_tracking_main_1): Don't track
17021 variables for targetm.no_register_allocation targets.
17023 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
17025 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
17026 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
17028 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17031 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
17032 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
17033 0.0 is correctly setup.
17034 (extenddftf2_internal): Likewise.
17036 2015-03-25 Sebastian Pop <s.pop@samsung.com>
17038 PR tree-optimization/65177
17039 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
17041 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
17042 edges not adjacent on the path to the original code.
17044 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
17047 * doc/install.texi (Building a native compiler): Document new
17048 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
17049 configuration assumes that the host supports the linker plugin.
17051 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
17054 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
17055 chain for generated call.
17057 2015-03-25 Richard Biener <rguenther@suse.de>
17059 * passes.c (pass_manager::execute_early_local_passes): Guard
17060 execution of pass_chkp_instrumentation_passes with
17061 flag_check_pointer_bounds.
17062 (pass_chkp_instrumentation_passes::gate): Likewise.
17064 2015-03-25 Martin Liska <mliska@suse.cz>
17066 PR tree-optimization/65538
17067 * symbol-summary.h (function_summary::~function_summary):
17068 Relese memory for allocated summaries.
17069 (function_summary::release): New function.
17071 2015-03-25 Jakub Jelinek <jakub@redhat.com>
17074 * lto-streamer-out.c (DFS::worklist): New struct.
17075 (DFS::worklist_vec): New data member.
17076 (DFS::next_dfs_num): Remove.
17077 (DFS::DFS): Rewritten using worklist instead of recursion,
17078 using most of code from DFS::DFS_write_tree.
17079 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
17080 pass it to DFS_write_tree calls.
17081 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
17082 quick initial checks push it into worklist_vec and return.
17084 2015-03-25 Richard Biener <rguenther@suse.de>
17086 PR middle-end/65519
17087 * genmatch.c (expr::gen_transform): Re-write to avoid
17088 using gimple_build.
17090 2015-03-25 Bin Cheng <bin.cheng@arm.com>
17092 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
17094 2015-03-25 Bin Cheng <bin.cheng@arm.com>
17096 * config/arm/arm.opt (print_tune_info): New option.
17097 * config/arm/arm.c (arm_print_tune_info): New function.
17098 (arm_file_start): Call arm_print_tune_info.
17099 * config/arm/arm-protos.h (struct tune_params): Add comment.
17100 * doc/invoke.texi (@item -mprint-tune-info): New item.
17101 (-mtune): mention it in ARM Option Summary.
17103 2015-03-25 DJ Delorie <dj@redhat.com>
17105 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
17108 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
17109 Martin Liska <mliska@suse.cz>
17111 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
17112 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
17113 (sem_item::add_type): New function.
17114 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
17115 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
17116 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
17117 (sem_function::equals_wpa): Fix typo.
17118 * ipa-icf.h (sem_item::add_type): New function.
17119 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
17122 2015-03-24 Jakub Jelinek <jakub@redhat.com>
17124 PR tree-optimization/65533
17125 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
17126 with swapped operands, call vect_free_slp_tree on
17127 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
17130 2015-03-24 Richard Biener <rguenther@suse.de>
17132 PR middle-end/65517
17133 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
17134 for fixup if necessary.
17136 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
17138 * doc/extend.texi (Function Attributes): Add @cindex entries
17139 for all attributes and regularize their format. Delete text
17140 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
17141 information about "eightbit_data", "tiny_data", and "model"
17142 variable attributes to the Variable Attributes section. Fix
17143 some obvious typos and copy-editing issues.
17144 (Variable Attributes, Type Attributes): Likewise add/fix
17145 @cindex entries for all attributes.
17147 2015-03-23 Jakub Jelinek <jakub@redhat.com>
17150 * tree-chkp.c (chkp_build_returned_bound): Ignore
17151 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
17153 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
17156 * config/sh/predicates.md (simple_mem_operand,
17157 displacement_mem_operand): Add test for reg.
17158 (short_displacement_mem_operand): Test for displacement_mem_operand
17159 before invoking sh_disp_addr_displacement.
17160 * config/sh/constraints.md (Sdd, Sra): Simplify.
17161 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
17162 Remove redundant displacement_mem_operand tests.
17164 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
17167 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
17168 the same -mmcu=MCU more than once.
17170 2015-03-23 Jakub Jelinek <jakub@redhat.com>
17173 * ipa-devirt.c: Remove duplicate demangle.h include.
17176 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
17178 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
17179 REG_POINTER on *destptr after adjusting it for prologue size.
17182 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
17183 ultimate_alias_target ()->order ints instead of
17184 ultimate_alias_target () pointers.
17186 2015-03-23 Richard Biener <rguenther@suse.de>
17188 PR tree-optimization/65518
17189 * tree-vect-stmts.c (vectorizable_load): Reject single-element
17190 interleaving cases we generate absymal code for.
17192 2015-03-23 Richard Biener <rguenther@suse.de>
17194 PR tree-optimization/65494
17195 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
17197 (vect_analyze_slp_instance): But do that here, always and once.
17199 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17201 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
17202 adding T or multiplying by T+1 and subracting T.
17204 2015-03-22 Jeff Law <law@redhat.com>
17206 PR rtl-optimization/64317
17207 * Makefile.in (OBJS): Add gcse-common.c
17208 * gcse.c: Include gcse-common.h
17209 (struct modify_pair_s): Move structure definition to gcse-common.h
17210 (compute_transp): Move function to gcse-common.c.
17211 (canon_list_insert): Similarly.
17212 (record_last_mem_set_info): Break out some code and put it into
17213 gcse-common.c. Call into the new common code.
17214 (compute_local_properties): Pass additional arguments to compute_transp.
17215 * postreload-gcse.c: Include gcse-common.h and df.h
17216 (modify_mem_list_set, blocks_with_calls): New variables.
17217 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
17218 (get_bb_avail_insn): Pass in the expression index too.
17219 (alloc_mem): Allocate memory for the new bitmaps and lists.
17220 (free_mem): Free memory for the new bitmaps and lists.
17221 (insert_expr_in_table): Record a bitmap index for each entry we
17223 (record_last_mem_set_info): Call into common code in gcse-common.c.
17224 (get_bb_avail_insn): If no available insn was found in the requested
17225 BB. If BB has a single predecessor, see if the expression is
17226 transparent in BB and available in that single predecessor.
17227 (compute_expr_transp): New wrapper for compute_transp.
17228 (eliminate_partially_redundant_load): Pass expression's bitmap_index
17229 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
17230 (gcse_after_reload_main): If there are elements in the hash table,
17231 then compute transparency for all the elements in the hash table.
17232 * gcse-common.h: New file.
17233 * gcse-common.c: New file.
17235 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
17237 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
17239 (System Headers): Likewise.
17241 (Traditional macros): Likewise.
17242 (Invocation): Likewise.
17243 (Option Index): Likewise.
17244 * doc/cppopts.texi (-M): Likewise.
17245 (-finput-charset): Likewise.
17246 (--help): Likewise.
17247 * doc.invoke.texi (AVR Options): Likewise.
17248 (V850 Options): Likewise.
17250 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
17253 * ipa-devirt.c: Include demangle.h
17254 (odr_type_d): Add field rtti_broken.
17255 (odr_subtypes_equivalent_p): Do not require name to match.
17256 (compare_virtual_tables): Fix typo; if type already has ODR violation,
17257 bypass the tests; be ready for function referneces in vtables that are
17258 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
17259 (warn_odr): Give up for nameless types.
17260 (warn_types_mismatch): Report mismatch in mangled names;
17261 report mismatch in anonymous namespaces; look into component types to
17262 give useful error; report when mismatch is dragged in from other ODR
17264 (odr_types_equivalent_p): Match types for being polymorphic; avoid
17265 duplicated diagnostics.
17266 (add_type_duplicate): Reorder checks so more informative ones come
17267 first; fix typo; do not output "the extra base is defined here" when
17269 (BINFO_N_BASE_BINFOS): Relax sanity check.
17271 2015-03-22 Martin Liska <mliska@suse.cz>
17272 Jakub Jelinek <jakub@redhat.com>
17274 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
17275 masks that can potentially include a builtin.
17276 (ix86_add_new_builtins): Introduce fast filter for isa values
17277 that cannot trigger builtin inclusion.
17279 2015-03-22 Martin Liska <mliska@suse.cz>
17281 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
17282 (sem_item::update_hash_by_local_refs): Likewise.
17283 (sem_variable::get_hash): Empty line is fixed.
17284 (sem_item_optimizer::execute): Include adding of hash references.
17285 (sem_item_optimizer::update_hash_by_addr_refs): New function.
17286 (sem_item_optimizer::build_hash_based_classes): Use local hash.
17287 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
17288 (sem_item::update_hash_by_local_refs): Likewise.
17290 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
17293 * ipa-comdats.c (enqueue_references): Walk through thunks.
17294 (ipa_comdats): Likewise.
17295 (set_comdat_group_1): New function.
17297 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
17300 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
17303 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
17304 Gerald Pfeifer <gerald@pfeifer.com>
17306 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
17308 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
17309 Sandra Loosemore <sandra@codesourcery.com>
17311 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
17312 function parameter declaration.
17313 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
17314 Update arguments to nios2_adjust_call_address().
17315 (sibcall_internal): Rename from *sibcall.
17316 (sibcall_value_internal): Rename from *sibcall_value.
17317 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
17318 (nios2_large_got_address): Add target temp reg parameter.
17319 (nios2_got_address): Adjust call to nios2_large_got_address, add
17320 force_reg around it.
17321 (nios2_load_pic_address): Add target temp reg parameter, replace call
17322 to nios2_got_address with corresponding code.
17323 (nios2_legitimize_constant_address): Update call to
17324 nios2_load_pic_address.
17325 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
17326 to use temp reg for PIC loading purposes.
17327 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
17328 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17329 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
17331 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
17333 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
17334 usage of "the @option{...}".
17335 (-Wopenmp-simd): Likewise.
17336 (-fsanitize-recover): Likewise.
17337 (-fsanitize-undefined-trap-on-error): Likewise.
17339 (tracer-dynamic-coverage-feedback): Likewise.
17340 (reorder-block-duplicate-feedback): Likewise.
17341 (loop-unroll-jam-size): Likewise.
17344 (-mabs=legacy): Likewise.
17345 (-mupper-regs-df): Likewise.
17346 (-mupper-regs-sf): Likewise.
17347 (-mpointers-to-nested-functions): Likewise.
17349 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
17351 * doc/extend.texi (Cilk Plus Builtins): Add markup.
17353 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
17355 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
17356 additional index entries and cross-references.
17357 (-fchkp-check-incomplete-type): Likewise.
17358 (-fchkp-first-field-has-own-bounds): Likewise.
17359 (-fchkp-narrow-to-innermost-array): Likewise.
17360 (-fchkp-use-fast-string-functions): Likewise.
17361 (-fchkp-use-nochk-string-functions): Likewise.
17362 (-fchkp-use-static-const-bounds): Likewise.
17363 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17364 (-fchkp-instrument-marked-only): Likewise.
17365 (-fchkp-use-wrappers): Likewise.
17366 (-static-libmpx): Likewise.
17367 (-static-libmpxwrappers): Likewise.
17368 * doc/extend.texi (bnd_legacy): Likewise.
17369 (bnd_instrument): Likewise.
17370 (bnd_variable_size): Likewise.
17371 (Pointer Bounds Checker builtins): Likewise.
17373 2015-03-21 Tom de Vries <tom@codesourcery.com>
17375 PR tree-optimization/65458
17376 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
17377 * cgraph.h (cgraph_node): Add parallelized_function field.
17378 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
17379 (input_overwrite_node): Read parallelized_function field.
17380 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
17381 parallelized_function on cgraph_node for child_fn.
17382 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
17383 Remove include of gt-tree-parloops.h.
17384 (parallelized_functions): Remove static variable.
17385 (parallelized_function_p): Rewrite using parallelized_function field of
17387 (create_loop_fn): Remove adding to parallelized_functions.
17388 * Makefile.in (GTFILES): Remove tree-parloops.c
17390 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
17392 PR rtl-optimization/64366
17393 * lra.c (lra_update_insn_regno_info): Consider regs in
17394 CALL_INSN_FUNCTION_USAGE memory.
17396 2015-03-20 Richard Biener <rguenther@suse.de>
17398 PR middle-end/64715
17399 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
17400 for type comparison and gcc_checking_assert.
17401 (chrec_fold_plus_poly_poly): Likewise.
17402 (chrec_fold_multiply_poly_poly): Likewise.
17403 (chrec_convert_1): Likewise.
17404 * gimplify.c (gimplify_expr): Remove premature folding of
17405 &X + CST to &MEM[&X, CST].
17407 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
17409 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
17411 (ipa_inline): Recompute inline_failed codes.
17412 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
17413 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
17416 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
17418 PR rtl-optimization/60851
17419 * recog.c (constrain_operands): Accept a pseudo register before reload
17420 for LRA enabled targets.
17422 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
17425 * config/rs6000/predicates.md (easy_fp_constant): Remove special
17426 -ffast-math handling that kept non-0 constants live in the RTL
17427 until reload. Remove logic testing the number of instructions it
17428 took to create a constant in a GPR that was never used, due to a
17429 test for soft-float earlier.
17430 (memory_fp_constant): Delete, no longer used.
17432 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
17433 alternatives for loading non-0 constants into GPRs for hard
17434 floating point that is no longer needed due to changes in
17435 easy_fp_constant. Add support for loading 0.0 into GPRs.
17436 (mov<mode>_hardfloat32): Likewise.
17437 (mov<mode>_hardfloat64): Likewise.
17438 (mov<mode>_64bit_dm): Likewise.
17439 (movtd_64bit_nodm): Likewise.
17440 (pre-reload move FP constant define_split): Delete define_split,
17441 since it is no longer used.
17442 (extenddftf2_internal): Remove GHF constraints that are not valid
17445 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
17447 PR rtl-optimization/63491
17448 * lra-constraints.c (check_and_process_move): Use src instead of
17449 sreg. Remove some dead code.
17451 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
17454 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
17455 (sem_variable::merge): Likewise.
17457 2015-03-19 Martin Liska <mliska@suse.cz>
17460 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
17461 all fields of cgraph_thunk_info.
17463 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
17465 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
17466 clone instrumented thunks.
17468 2015-03-19 Richard Biener <rguenther@suse.de>
17471 2015-03-10 Richard Biener <rguenther@suse.de>
17473 PR middle-end/63155
17474 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
17475 * tree-ssa-coalesce.c: Include timevar.h.
17476 (attempt_coalesce): Handle graph being NULL.
17477 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
17478 Split out abnormal coalescing to ...
17479 (perform_abnormal_coalescing): ... this function.
17480 (coalesce_ssa_name): Perform abnormal coalescing without computing
17482 (verify_ssa_coalescing_worker): New function.
17483 (verify_ssa_coalescing): Likewise.
17485 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
17486 Jakub Jelinek <jakub@redhat.com>
17489 * tsan.c (instrument_gimple): Clear tail call flag on
17492 2015-03-19 Jakub Jelinek <jakub@redhat.com>
17495 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
17496 call in the return bb.
17497 (find_split_points): Add RETURN_BB argument, don't call
17499 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
17500 if true append TSAN_FUNC_EXIT internal call after the call to
17501 the split off function.
17502 (execute_split_functions): Call find_return_bb here.
17503 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
17504 Adjust find_split_points and split_function calls.
17506 2015-03-18 DJ Delorie <dj@redhat.com>
17508 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
17509 (iorqi3_virt): Likewise.
17511 2015-03-18 Tom de Vries <tom@codesourcery.com>
17513 * tree-parloops.c (parallelize_loops): Make static.
17514 * tree-parloops.h (parallelize_loops): Remove extern declaration.
17516 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
17518 PR middle-end/64491
17520 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
17522 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
17523 condition would be removed due to undefined behaviour.
17525 2015-03-18 Martin Liska <mliska@suse.cz>
17528 * cgraph.c (cgraph_node::get_create): Remove unnecessary
17529 xstrdup_for_dump wrapper.
17530 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
17532 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
17533 with xstrdup_for_dump.
17534 (sem_variable::equals): Likewise.
17535 (sem_item_optimizer::read_section): Use symtab_node::name instead of
17537 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
17538 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
17539 symtab_node::asm_name with xstrdup_for_dump.
17540 (congruence_class::dump): Use symtab_node::name instead of
17542 * ipa-icf.h (symtab_node::name): Remove.
17543 (symtab_node::asm_name): Likewise.
17545 2015-03-18 Jakub Jelinek <jakub@redhat.com>
17547 PR tree-optimization/65450
17548 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
17550 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
17551 it instead of duplicate_ssa_name_ptr_info.
17554 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
17556 2015-03-18 Richard Biener <rguenther@suse.de>
17558 * tree-data-ref.h (struct access_matrix): Remove.
17559 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
17560 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
17561 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
17562 (am_vector_index_for_loop): Likewise.
17563 (struct data_reference): Remove access_matrix member.
17564 (DR_ACCESS_MATRIX): Remove.
17565 (lambda_vector_new): Add comment.
17566 (lambda_matrix_new): Use XOBNEWVEC.
17568 2015-03-18 Richard Biener <rguenther@suse.de>
17570 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
17571 (pass_ch::execute): Cleanup the CFG only if we did sth.
17572 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
17574 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17576 * expmed.c (synth_mult): Use std::swap instead of manually
17577 swapping algorithms.
17579 2015-03-18 Jakub Jelinek <jakub@redhat.com>
17582 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
17584 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
17587 * config/avr/avr.opt (-nodevicelib): New option.
17588 * doc/invoke.texi (AVR Options): Document it.
17589 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
17590 libgcc.a, libc.a, libm.a.
17591 * config/avr/specs.h: Same.
17592 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
17593 which don't (directly) depend on the device. Print more help.
17594 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
17595 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
17596 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
17598 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
17599 for specs file name.
17600 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
17601 * config/avr/avr-mcus.def: Adjust initializers and comments.
17603 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
17605 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
17606 DECL_ONE_ONLY to check if decl is one only.
17607 * ipa-split.c (consider_split): Limit splitt of one only functions.
17609 2015-03-16 Jakub Jelinek <jakub@redhat.com>
17611 PR tree-optimization/65427
17612 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
17614 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
17616 2015-03-16 Marek Polacek <polacek@redhat.com>
17618 * cgraph.h (add_new_static_var): Remove declaration.
17619 * varpool.c (add_new_static_var): Remove function.
17621 2015-03-16 Jakub Jelinek <jakub@redhat.com>
17623 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
17624 instead of vec<tree> * with vec_alloc and release for args.
17627 PR middle-end/65431
17628 * omp-low.c (delete_omp_context): Only splay_tree_delete
17629 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
17630 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
17632 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
17635 * cfgexpand.c (align_base): New function.
17636 (alloc_stack_frame_space): Call it.
17637 (expand_stack_vars): Align prev_frame to be sure
17638 data->asan_vec elements aligned properly.
17640 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
17642 PR middle-end/65409
17643 * expr.c (store_field): Do not do a direct block copy if the source is
17644 a PARALLEL with BLKmode.
17646 2015-03-16 Tom de Vries <tom@codesourcery.com>
17648 PR middle-end/65414
17650 2015-03-12 Tom de Vries <tom@codesourcery.com>
17652 PR rtl-optimization/64895
17653 * lra-lives.c (check_pseudos_live_through_calls): Use
17654 actual_call_used_reg_set instead of call_used_reg_set, if available.
17656 2015-03-16 Alan Modra <amodra@gmail.com>
17659 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
17660 Modify Z->r bswapdi splitter to use dest in place of scratch.
17661 In r->Z and Z->r bswapdi splitter rename word_high, word_low
17662 to word1, word2 and rearrange logic to suit.
17663 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
17664 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
17665 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
17666 Add one '?' on r->r. Modify Z->r splitter to avoid need for
17669 2015-03-14 Jakub Jelinek <jakub@redhat.com>
17671 PR tree-optimization/65369
17672 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
17673 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
17674 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
17676 PR tree-optimization/65418
17677 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
17678 are casts in the first PLUS_EXPR operand, ensure tbias and
17679 *totallowp are in the inner type.
17681 PR rtl-optimization/65401
17682 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
17683 argument. If true, adjust_address_nv of x with big-endian
17684 correction for the mode widening to GET_MODE (y).
17685 (make_field_assignment): Don't do MEM mode widening here.
17686 Use MEM_P instead of GET_CODE == MEM.
17688 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
17690 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
17691 the external decls.
17693 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17696 * config/arm/arm.c (arm_gen_constant, AND case): Use
17697 ARM_SIGN_EXTEND when constructing AND mask.
17699 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
17701 * graph.c (print_graph_cfg): Make function names visible and append
17702 parenthesis to it. Also make groups of basic blocks belonging to the
17703 same function visible.
17705 2015-03-12 Richard Biener <rguenther@suse.de>
17707 PR middle-end/44563
17708 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
17709 to avoid quadratic behavior with inline expansion splitting blocks.
17710 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
17711 with the successor if the predecessor will be merged with it.
17712 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
17713 entry block with its successor.
17715 2015-03-13 Richard Biener <rguenther@suse.de>
17717 PR middle-end/44563
17718 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
17719 (cleanup_tree_cfg_1): Do not call it.
17720 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
17721 (fixup_noreturn_call): Mark the stmt as control altering.
17722 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
17724 (pass_data_fixup_cfg): Produce a dump file.
17725 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
17726 (need_noreturn_fixup): New global.
17727 (pass_dominator::execute): Fixup queued noreturn calls.
17728 (optimize_stmt): Queue calls that became noreturn for fixup.
17729 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
17730 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
17731 (el_to_fixup): New global.
17732 (eliminate_dom_walker::before_dom_childre): Queue calls that
17733 became noreturn for fixup.
17734 (eliminate): Fixup queued noreturn calls.
17735 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
17736 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
17737 (substitute_and_fold_dom_walker::before_dom_children): Queue
17738 alls that became noreturn for fixup.
17739 (substitute_and_fold): Fixup queued noreturn calls.
17741 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
17743 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
17744 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
17745 are building; for methods check ODR type of class they belong to if
17746 they may lead to a polymorphic call.
17747 (sem_function::compare_polymorphic_p): Be bit smarter about testing
17748 when function may lead to a polymorphic call.
17749 (sem_function::compare_type_list): Remove.
17750 (sem_variable::equals): Update use of compatible_types_p.
17751 (sem_variable::parse_tree_refs): Remove.
17752 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
17754 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
17756 (func_checker::compatible_polymorphic_types_p): Break out from ...
17757 (unc_checker::compatible_types_p): ... here.
17758 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
17760 (unc_checker::compatible_types_p): Update.
17761 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
17764 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17766 PR rtl-optimization/65235
17767 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
17768 When first element of vec_concat is const_int, calculate its size
17769 using second element.
17771 2015-03-12 Richard Biener <rguenther@suse.de>
17773 PR middle-end/65270
17774 * fold-const.c (operand_equal_p): Fix ordering of resetting
17775 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
17777 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
17779 * config/s390/s390.c (s390_reorg): Move code to output nops after label
17781 (s390_asm_output_function_label): Likewise.
17782 * config/s390/s390.c (s390_asm_output_function_label):
17783 Fix function label alignment with -mhtopatch.
17784 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
17785 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
17786 ("nop_2_byte"): New define_insn.
17787 ("nop_4_byte"): Likewise.
17788 ("nop_6_byte"): Likewise.
17789 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
17790 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
17792 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
17795 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
17798 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
17801 * toplev.c (process_options): Restrict Pointer Bounds Checker
17802 usage with Address Sanitizer.
17804 2015-03-12 Richard Biener <rguenther@suse.de>
17806 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
17808 * omp-low.c (expand_omp_taskreg): Split block before removing
17810 (expand_omp_target): Likewise.
17811 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
17812 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
17813 stmt to split_block.
17815 2015-03-12 Tom de Vries <tom@codesourcery.com>
17817 PR rtl-optimization/64895
17818 * lra-lives.c (check_pseudos_live_through_calls): Use
17819 actual_call_used_reg_set instead of call_used_reg_set, if available.
17821 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
17823 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
17824 (cgraph_node::remove): Likewise.
17825 (cgraph_node::get_untransformed_body): Likewise.
17826 * varpool.c (varpool_node::remove): Likewise.
17827 (varpool_node::get_constructor): Add sanity check.
17829 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
17831 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
17833 (-fabi-compat-version): Likewise.
17834 (-ffriend-injection): Likewise.
17835 (-Wdeclaration-after-statement): Likewise.
17836 (-fomit-frame-pointer): Likewise.
17837 (-ftree-coalesce-inlined-vars): Likewise.
17838 (-fvisibility=): Likewise.
17839 * doc/extend.texi (Typeof): Likewise.
17840 (Zero Length): Likewise.
17841 (Escaped Newlines): Likewise.
17842 (Compound Literals): Likewise.
17843 (Function Attributes): Likewise.
17844 (Label Attributes): Likewise.
17845 (Type Attributes): Likewise.
17846 (Function Names): Likewise.
17847 (Other Builtins): Likewise.
17848 (Function Specific Option Pragmas): Likewise.
17849 (C++ Interface): Likewise.
17851 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
17853 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
17855 2015-03-11 Marek Polacek <polacek@redhat.com>
17857 PR tree-optimization/65388
17858 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
17860 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
17863 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
17864 * configure: Regenerate.
17865 * config.in: Regenerate.
17866 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
17867 [-mn-flash]: Document it.
17868 [__AVR_ARCH__]: Document avrtiny.
17870 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
17871 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
17872 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
17874 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17876 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
17878 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
17881 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
17882 allow reloads of PLUS in floating point/VSX registers.
17884 2015-03-11 Junmo Park <junmoz.park@samsung.com>
17886 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
17887 crypto_sha256_fast.
17888 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
17890 2015-03-11 Richard Biener <rguenther@suse.de>
17892 PR tree-optimization/65310
17893 * tree-sra.c (build_ref_for_offset): Also preserve larger
17896 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
17898 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
17900 2015-03-10 Jakub Jelinek <jakub@redhat.com>
17903 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
17905 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
17907 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
17909 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
17910 (sem_function::equals_wpa): ... here.
17912 2015-03-10 Marek Polacek <polacek@redhat.com>
17913 Jakub Jelinek <jakub@redhat.com>
17916 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
17917 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
17920 2015-03-10 Jakub Jelinek <jakub@redhat.com>
17923 * config/rs6000/t-linux: For powerpc64* target set
17924 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
17926 2015-03-10 Richard Biener <rguenther@suse.de>
17928 PR middle-end/44563
17929 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
17930 for redirect_all_calls.
17932 2015-03-10 Marek Polacek <polacek@redhat.com>
17934 * gdbinit.in (pcfun): Define and document.
17936 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
17938 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
17939 of libgomp-plugin.h.
17940 (find_target_compiler): Support a case when the path to gcc is
17941 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
17942 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
17943 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
17945 (main): Use GCC_INSTALL_NAME as target_driver_name.
17946 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
17948 (mkoffload.o): Remove obsolete include path and defines.
17949 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
17951 2015-03-10 Richard Biener <rguenther@suse.de>
17953 PR middle-end/63155
17954 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
17955 * tree-ssa-coalesce.c: Include timevar.h.
17956 (attempt_coalesce): Handle graph being NULL.
17957 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
17958 Split out abnormal coalescing to ...
17959 (perform_abnormal_coalescing): ... this function.
17960 (coalesce_ssa_name): Perform abnormal coalescing without computing
17962 (verify_ssa_coalescing_worker): New function.
17963 (verify_ssa_coalescing): Likewise.
17965 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
17968 * config.gcc (extra_options) [avr]: Remove.
17969 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
17970 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
17971 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
17973 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
17974 (-mmcu=): Add Var and MissingArgError properties.
17976 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
17977 * config/avr/t-multilib: Regenerate.
17978 * config/avr/specs.h: New file.
17979 * config/avr/driver-avr.c: New file.
17980 * config/avr/genopt.sh: Remove file.
17981 * config/avr/avr-tables.opt: Remove file.
17982 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
17983 * config/avr/avr-c.c: Same.
17984 * avr-arch.h: Same.
17985 (avr_current_device): Remove proto.
17986 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
17987 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
17988 (EXTRA_SPEC_FUNCTIONS): Define.
17989 (avr_devicespecs_file): New specs function proto.
17990 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
17991 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
17992 (avr_current_device): Remove definition and usage.
17993 (avr_set_core_architecture): New static function.
17994 (avr_option_override): Use it.
17995 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
17996 (mcu_name): New static array.
17997 (comparator, avr_archs_str, avr_mcus_str): New static functions.
17998 (avr_inform_devices, avr_inform_core_architectures): New functions.
17999 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
18000 (avrlibc.h) [WITH_AVRLIBC]: Include.
18001 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
18002 (print_mcu): Rewrite from scratch.
18003 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
18004 Forward to avr-specific specs defined in device-specs file.
18005 * config/avr/t-avr (driver-avr.o): New rule.
18006 (avr-devices.o): Depend on avr-arch.h.
18007 (avr-mcus): No more depend on avr-tables.opt.
18008 (avr-tables.opt): Remove rule.
18009 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
18011 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18013 * c-family/c.opt (fchkp-use-wrappers): New.
18014 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
18015 (chkp_wrap_function): New.
18016 (chkp_build_instrumented_fndecl): Support wrapped
18018 * doc/invoke.texi (-fcheck-pointer-bounds): New.
18019 (-fchkp-check-incomplete-type): New.
18020 (-fchkp-first-field-has-own-bounds): New.
18021 (-fchkp-narrow-bounds): New.
18022 (-fchkp-narrow-to-innermost-array): New.
18023 (-fchkp-optimize): New.
18024 (-fchkp-use-fast-string-functions): New.
18025 (-fchkp-use-nochk-string-functions): New.
18026 (-fchkp-use-static-bounds): New.
18027 (-fchkp-use-static-const-bounds): New.
18028 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
18029 (-fchkp-check-read): New.
18030 (-fchkp-check-write): New.
18031 (-fchkp-store-bounds): New.
18032 (-fchkp-instrument-calls): New.
18033 (-fchkp-instrument-marked-only): New.
18034 (-fchkp-use-wrappers): New.
18035 (-static-libmpx): New.
18036 (-static-libmpxwrappers): New.
18038 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18040 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
18041 (CHKP_SPEC): Add wrappers library.
18042 * c-family/c.opt (static-libmpxwrappers): New.
18044 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18046 * config/i386/linux-common.h (LIBMPX_LIBS): New.
18047 (LIBMPX_SPEC): New.
18049 * gcc.c (CHKP_SPEC): New.
18050 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
18051 * c-family/c.opt (static-libmpx): New.
18053 2015-03-10 Richard Biener <rguenther@suse.de>
18055 PR middle-end/44563
18056 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
18058 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
18059 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
18060 (cgraph_add_edge_to_call_site_hash): Likewise.
18061 (cgraph_node::get_edge): Likewise.
18062 (cgraph_edge::set_call_stmt): Likewise.
18063 (cgraph_edge::remove_caller): Likewise.
18065 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
18067 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
18068 (callee_saved_gpr_regs_size): ... this.
18069 (callee_saved_regs_first_regno): Rename to ...
18070 (callee_saved_first_gpr_regno): ... this.
18071 (callee_saved_regs_last_regno) Rename to ...
18072 (callee_saved_last_gpr_regno): ... this.
18073 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
18075 (nds32_initial_elimination_offset): Likewise.
18076 (nds32_expand_prologue): Likewise.
18077 (nds32_expand_epilogue): Likewise.
18078 (nds32_expand_prologue_v3push): Likewise.
18079 (nds32_expand_epilogue_v3pop): Likewise.
18080 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
18081 Adjust renamed variables.
18082 (nds32_output_stack_pop): Likewise.
18084 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
18086 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
18089 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18091 PR rtl-optimization/65321
18092 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
18094 * var-tracking.c (use_narrower_mode): Likewise.
18096 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18098 PR tree-optimization/65355
18099 * varasm.c (notice_global_symbol): Do not produce RTL.
18100 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
18102 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
18103 check for section anchors.
18105 2015-03-10 Alan Modra <amodra@gmail.com>
18108 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
18109 to be single-arch by default. Set cpu_is_64bit for powerpc64
18110 given --with-cpu=native.
18111 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
18112 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
18114 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
18115 rs6000_isa_flags rather than TARGET_64BIT.
18117 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
18118 Kaz Kojima <kkojima@gcc.gnu.org>
18120 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
18122 2015-03-09 Jakub Jelinek <jakub@redhat.com>
18125 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
18126 on a TREE_BINFO, instead use BINFO_TYPE.
18128 2015-03-09 Richard Biener <rguenther@suse.de>
18130 PR middle-end/65270
18131 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
18132 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
18133 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
18134 of that. When comparing dereferences compare alignment.
18135 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
18137 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
18139 * ipa-inline-analysis.c (check_callers): Check
18140 node->can_remove_if_no_direct_calls_and_refs_p.
18141 (growth_likely_positive): Reorganize to call
18142 can_remove_if_no_direct_calls_p later.
18143 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
18144 will_be_removed_from_program_if_no_direct_calls_p): Add
18145 will_inline parameter.
18146 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
18147 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18148 Handle inliner case correctly.
18150 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
18152 PR tree-optimization/63743
18153 * cfgexpand.c (reorder_operands): Also reorder if only second operand
18154 had its definition forwarded by TER.
18156 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
18159 * ipa-utils.h (types_odr_comparable): Add strict argument.
18160 * ipa-devirt.c: Fix whitespace;
18161 (odr_hasher): Remove.
18162 (odr_name_hasher, odr_vtable_hasher): New hashers.
18163 (can_be_name_hashed_p): New predicate.
18164 (hash_type_name): remove.
18165 (hash_odr_name): New.
18166 (odr_name_hasher::hash): new.
18167 (can_be_vtable_hashed_p): New.
18168 (hash_odr_vtable): New.
18169 (odr_vtable_hasher::hash): New.
18170 (types_same_for_odr): Add strict parameter.
18171 (types_odr_comparable): Likewise.
18172 (odr_name_hasher::equal): New.
18173 (odr_vtable_hasher::equal): New.
18174 (odr_name_hasher::remove): New.
18175 (odr_hash_type): Change to hash_table<odr_name_hasher>.
18176 (odr_vtable_hash_type): New.
18177 (odr_vtable_hash): New.
18178 (odr_subtypes_equivalent_p): Do strict comparsion.
18179 (add_type_duplicate): Merge type names; cleanup; avoid type
18181 (register_odr_type): Initialize vtable hash.
18182 (build_type_inheritance_graph): Likewise
18183 (get_odr_type): Reorg to use two hashes.
18184 (dump_possible_polymorphic_call_targets): Move sanity check after debug
18186 (ipa_devirt): Dump type_inheritance_graph.
18187 (types_same_for_odr): Add strict mode.
18189 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18192 * cgraph.h (symtab_node): Add definition_alignment,
18193 can_increase_alignment_p and increase_alignment.
18194 * symtab.c (symtab_node::can_increase_alignment_p,
18195 increase_alignment_1, symtab_node::increase_alignment,
18196 symtab_node::definition_alignment): New.
18197 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
18198 can_increase_alignment_p.
18199 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
18200 * tree-vect-stmts.c (ensure_base_align): Likewise.
18201 * varasm.c (function_section_1): Use definition_alignment.
18202 (assemble_start_function): Likewise.
18203 (emit_local): likewise.
18204 (build_constant_desc): Likewsie.
18205 (output_constant_def_contents): Likewise.
18206 (place_block_symbol): Likewise.
18207 (output_object_block): Likewise.
18209 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18212 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
18213 when outputting debug.
18215 2015-03-07 Marek Polacek <polacek@redhat.com>
18216 Martin Uecker <uecker@eecs.berkeley.edu>
18219 * doc/invoke.texi: Update description of -fsanitize=bounds.
18221 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
18223 * tree-ssa-phiopt.c (neg_replacement): Remove.
18224 (tree_ssa_phiopt_worker): Remove negate optimization.
18226 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18229 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
18231 2015-03-06 Richard Biener <rguenther@suse.de>
18233 PR middle-end/64928
18234 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
18235 and liveout_obstack members.
18236 (calculate_live_on_exit): Remove.
18237 (calculate_live_ranges): Change declaration.
18238 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
18239 (new_tree_live_info): Adjust.
18240 (calculate_live_ranges): Delete livein when not wanted.
18241 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
18242 Deal with partly deleted live info.
18243 (loe_visit_block): Remove temporary bitmap by using
18244 bitmap_ior_and_compl_into.
18245 (live_worklist): Adjust accordingly.
18246 (calculate_live_on_exit): Make static.
18247 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
18248 we do not need livein.
18250 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
18252 * real.c (real_from_string): Fix typo in assertion.
18254 2015-03-06 Alex Velenko <alex.velenko@arm.com>
18256 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
18259 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
18261 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
18263 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
18266 * lra-assigns.c (find_hard_regno_for): Rename to
18267 find_hard_regno_for_1. Add a new parameter.
18268 (find_hard_regno_for): New function using find_hard_regno_for_1.
18270 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
18272 PR rtl-optimization/65067
18273 * expmed.c (store_bit_field, extract_bit_field): Reworked the
18274 strict volatile bitfield handling.
18276 2015-03-05 Martin Liska <mliska@suse.cz>
18279 * ipa-icf.c (sem_variable::equals): Compare variables types.
18281 2015-03-05 Richard Henderson <rth@redhat.com>
18284 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
18285 correctly check weak symbol binding.
18287 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
18289 PR middle-end/65315
18290 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
18293 2015-03-05 Martin Liska <mliska@suse.cz>
18295 * ipa-inline.c (inline_small_functions): Set default value to
18296 prevent warning during bootstrap.
18297 * tree.h: Add pragma guard that ignores false positives during
18300 2015-03-05 Richard Biener <rguenther@suse.de>
18302 PR tree-optimization/65310
18303 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18304 Properly preserve alignment of the base of the access.
18306 2015-03-05 Richard Biener <rguenther@suse.de>
18309 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
18310 Compare dependence info.
18312 2015-03-05 Richard Biener <rguenther@suse.de>
18314 PR middle-end/65233
18315 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
18317 (walk_ssa_copies): Revert last chage. Instead do not walk
18318 SSA names registered for SSA update.
18320 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
18323 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
18324 vtable references for their containing type.
18325 (sem_function::equals_wpa): Compare TYPE_RESTRICT
18326 and type attributes.
18328 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
18330 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
18331 before negating it.
18332 * stor-layout.c (finalize_record_size): Revert latest change.
18334 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
18336 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
18338 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
18340 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
18341 for correct comdat handling.
18342 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
18344 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
18345 (used_from_object_file_p_worker): Remove.
18346 (cgraph_node::only_called_directly_or_alised): Add
18347 used_from_object_file_p.
18348 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
18349 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
18350 can_remove_if_no_direct_calls_and_refs_p.
18352 2015-03-04 Nick Clifton <nickc@redhat.com>
18354 * config/rl78/rl78.h (enum reg_class): Remove real registers from
18355 General register class.
18356 * config/rl78/rl78-real.md: Replace general register constraints
18357 with real+virtual register constraints.
18359 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18361 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
18362 from checking for -mhtm option.
18364 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
18366 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
18367 (struct ipa_sra_check_caller_data): Add has_thunk field.
18368 (ipa_sra_check_caller): Check for thunk.
18369 (ipa_sra_preliminary_function_checks): Give up on function with
18371 (ipa_early_sra): Use call_for_symbol_and_aliases.
18373 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
18376 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
18377 called for __stack_chk_guard symbol.
18379 2015-03-03 DJ Delorie <dj@redhat.com>
18381 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
18383 (*addhi3_real): Likewise.
18384 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
18385 pattern to match incrementing memory.
18386 * config/rl78/predicates.md (rl78_1_2_operand): New.
18387 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
18388 it's the same and only mem.
18389 (rl78_alloc_physical_registers_op2): If there's effectively only
18390 one MEM, transcode it into HL.
18391 (rl78_far_p): Reject addresses that aren't legitimate.
18393 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
18395 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
18398 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
18400 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
18402 Implement call0 ABI for xtensa
18403 * config/xtensa/constraints.md ("a" constraint): Include stack
18404 pointer in case of call0 ABI.
18405 ("q" constraint): Make empty in case of call0 ABI.
18406 ("D" constraint): Include stack pointer in case of call0 ABI.
18407 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
18408 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
18410 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
18412 (xtensa_regno_to_class): Make it a local variable in the
18413 function xtensa_regno_to_class.
18414 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
18415 macro, function prototype and implementation.
18416 (reg_nonleaf_alloc_order): Make it a local variable in the
18417 function order_regs_for_local_alloc.
18418 (xtensa_conditional_register_usage): New function.
18419 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
18420 (xtensa_valid_move): Allow direct moves to stack pointer
18421 register in call0 ABI.
18422 (xtensa_setup_frame_addresses): Only spill register windows in
18424 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
18425 call0 ABI respectively.
18426 (xtensa_function_arg_1): Only mark a7 register for copying in
18428 (xtensa_call_save_reg): New function.
18429 (compute_frame_size): Add space for callee saved register
18430 storage to the frame size in call0 ABI.
18431 (xtensa_expand_prologue): Generate code to set up stack frame
18432 and save callee-saved registers in call0 ABI.
18433 (xtensa_expand_epilogue): New function.
18434 (xtensa_set_return_address): New function.
18435 (xtensa_return_addr): Calculate return address in call0 ABI.
18436 (xtensa_builtin_saveregs): Only mark a7 register for copying and
18437 emit copying code in windowed ABI.
18438 (order_regs_for_local_alloc): Add preferred register allocation
18439 order for non-leaf function in call0 ABI.
18440 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
18441 (xtensa_asm_trampoline_template): Add trampoline generation for
18443 (xtensa_trampoline_init): Add trampoline initialization for
18445 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
18447 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
18448 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
18449 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
18450 ABI call-used registers.
18451 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
18452 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
18454 (REG_CLASS_CONTENTS): Include all registers into the preferred
18455 reload registers set, adjust the set in the
18456 xtensa_conditional_register_usage.
18457 (xtensa_regno_to_class): Drop variable declaration.
18458 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
18460 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
18462 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
18463 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
18464 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
18465 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
18466 location in call0 ABI.
18467 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
18468 stack adjustment size when handling exception.
18469 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
18470 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
18472 ("return" pattern): Generate ret.n/ret in call0 ABI.
18473 ("epilogue" pattern): Expand epilogue.
18474 ("nonlocal_goto" pattern): Use default in call0 ABI.
18475 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
18476 emit eh_set_a0_* depending on ABI.
18477 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
18478 ("eh_set_a0_call0", "blockage"): New patterns.
18480 2015-03-03 Martin Liska <mliska@suse.cz>
18483 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
18485 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18488 * config/rs6000/rs6000-tables.opt: Regenerate table.
18490 2015-03-03 Renlin Li <renlin.li@arm.com>
18492 * doc/md.texi (@item ^): Change ? into ^.
18494 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
18496 * doc/tm.texi: Regenerated.
18498 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
18500 * builtins.c (expand_builtin_return_addr): Add
18501 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
18502 surrounding #ifdef.
18503 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
18505 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
18507 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
18509 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
18512 2015-03-03 Martin Jambor <mjambor@suse.cz>
18513 Eric Botcazou <ebotcazou@adacore.com>
18515 * tree-sra.c (ipa_sra_check_caller_data): New type.
18516 (has_caller_p): Removed.
18517 (ipa_sra_check_caller): New function.
18518 (ipa_sra_preliminary_function_checks): Use it.
18520 2015-03-03 Martin Liska <mliska@suse.cz>
18522 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
18523 instead of if branch.
18525 2015-03-03 Martin Liska <mliska@suse.cz>
18528 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
18530 2015-03-23 Jeff Law <law@redhat.com>
18532 PR tree-optimization/65241
18533 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
18534 hash table if INSERT is true.
18536 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
18539 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
18541 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
18544 * config/avr/avr.c (context.h, tree-pass.h): Include them.
18545 (avr_pass_data_recompute_notes): New static variable.
18546 (avr_pass_recompute_notes): New class.
18547 (avr_register_passes): New static function.
18548 (avr_option_override): Call it.
18550 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
18552 Fix various problems with specs file generation.
18555 * config.gcc (extra_gcc_objs) [avr]: Remove.
18556 * config/avr/driver-avr.c: Remove file.
18557 * config/avr/t-avr (driver-avr.o): Remove rule.
18558 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
18559 INCLUDES to build. Depend on TM_H.
18560 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
18561 build warnings. Fix non-matching types and non-existing %-codes.
18563 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
18564 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
18565 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
18566 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
18567 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
18568 (LIBGCC_SPEC): Remove definitions.
18570 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
18572 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
18573 to create a register in testing mode.
18575 2015-03-03 Martin Liska <mliska@suse.cz>
18576 Jan Hubicka <hubicka@ucw.cz>
18579 * cgraph.c (cgraph_node::has_thunk_p): New function.
18580 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
18581 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
18582 (sem_function::merge): Assert is changed.
18584 2015-03-03 Martin Liska <mliska@suse.cz>
18585 Martin Jambor <mjambor@suse.cz>
18588 * ipa-icf.c (sem_item_optimizer::execute): Change function
18589 return value to boolean.
18590 (sem_item_optimizer::merge_classes): Likewise.
18591 (ipa_icf_driver): Return TODO_remove_functions in case there's
18592 a merge operation processed.
18593 * ipa-icf.h: Change function return value to boolean.
18595 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
18598 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
18599 processor type for 64-bit little endian PowerPC.
18601 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
18602 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
18603 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
18604 printing built-in mask so it does not pass NULL pointers.
18606 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
18609 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
18612 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
18613 !ISA_HAS_FP_CONDMOVE.
18615 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
18617 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
18620 2015-03-02 Ulrich Drepper <drepper@gmail.com>
18622 * doc/invoke.texi (Options for Code Generation Conventions):
18623 Fix URL of DSO paper.
18625 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
18628 * ipa-inline.c (check_callers): Looks for recursion.
18629 (inline_to_all_callers): Give up on uninlinable or recursive edges.
18630 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
18631 summary of inline clones.
18632 (do_estimate_growth_1): Fix recursion check.
18634 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
18637 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
18640 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
18641 Aldy Hernandez <aldyh@redhat.com>
18644 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
18645 when checking TYPE_BINFO.
18647 2015-03-02 Richard Biener <rguenther@suse.de>
18650 * ipa-icf-gimple.c: Include builtins.h.
18651 (func_checker::compare_memory_operand): Compare base alignment.
18653 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
18656 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
18657 are never passed by reference.
18659 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
18662 * tree-chkp.c (chkp_check_lower): Don't check against
18663 zero bounds for already instrumented functions.
18664 (chkp_check_upper): Likewise.
18665 (chkp_fini): Clean pass local data to avoid wrong reusage.
18667 2015-02-28 Martin Liska <mliska@suse.cz>
18668 Jan Hubicka <hubicka@ucw.cz>
18670 * ipa-icf.c (sem_variable::equals): Improve debug output;
18671 get variable constructor.
18672 (sem_variable::parse): Do not filter out too early; give up on
18673 volatile and register vars.
18674 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
18676 * ipa-icf.h (sem_variable::init): Do not set ctor.
18677 (sem_variable::ctor): Remove.
18679 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
18681 PR middle-end/65233
18682 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
18684 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
18686 * ipa-icf.c: Include stor-layout.h
18687 (sem_function::compare_cgraph_references): Rename to ...
18688 (sem_item::compare_cgraph_references): ... this one.
18689 (sem_variable::equals_wpa): New function
18690 (sem_variable::equals): Do not check stuff already verified by
18692 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
18693 * ipa-icf.h (sem_item): Add compare_cgraph_references.
18694 (sem_function): Remove compare_cgraph_references.
18695 (sem_variable): Turns equals_wpa into non-inline.
18697 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
18699 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
18700 (sem_item::add_expr): New function.
18701 (sem_function::hash_stmt): Handle operands of most statements.
18702 (sem_variable::get_hash): Hash the actual constructor.
18703 * ipa-icf.h (sem_item): Add add_expr.
18704 (sem_function): Update prototype of hash_stmt
18706 2015-02-28 Martin Liska <mliska@suse.cz>
18707 Jan Hubicka <hubicka@ucw.cz>
18710 * ipa-icf-gimple.c (func_checker::compare_function_decl):
18712 (func_checker::compare_variable_decl): Skip symtab vars.
18713 (func_checker::compare_cst_or_decl): Update.
18714 * ipa-icf.c (sem_function::parse): Do not consider aliases.
18715 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
18716 use correct symtab predicates.
18717 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
18718 (sem_variable::parse): Update comment.
18719 (sem_item_optimizer::build_graph): Consider ultimate aliases
18722 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
18724 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
18727 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
18729 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
18730 (sem_variable::merge) Likewise.
18732 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
18734 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
18735 target; also match flag_ipa_devirt.
18737 2015-03-01 Martin Liska <mliska@suse.cz>
18738 Jan Hubicka <hubicka@ucw.cz>
18740 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
18741 Validate variable alignment.
18742 * ipa-icf.c (sem_function::equals_private): Be more precise
18743 about non-common function attributes.
18744 (sem_variable::equals): Likewise.
18746 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
18749 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
18750 across COMDAT group boundary.
18752 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
18755 * ipa-icf.c (clear_decl_rtl): New function.
18756 (sem_function::merge): Clear RTL before forming alias.
18757 (sem_variable::merge): Clear RTL before forming alias.
18759 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
18762 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
18764 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
18766 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
18769 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
18771 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
18772 a typo in the description.
18774 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
18777 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
18778 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
18779 * lra-constraints.c: Include "params.h".
18780 (EBB_PROBABILITY_CUTOFF): Use
18781 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
18782 (lra_inheritance): Use '<' instead of '<=' for
18783 EBB_PROBABILITY_CUTOFF.
18784 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
18787 2015-02-27 Martin Liska <mliska@suse.cz>
18789 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
18790 vector length condition.
18792 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
18794 * doc/extend.texi (x86 transactional memory intrinsics):
18795 Reorganize discussion of _xbegin. Clarify that the return
18796 value is a bit mask. Expand example and move to end of section.
18798 2015-02-26 Jakub Jelinek <jakub@redhat.com>
18799 Aldy Hernandez <aldyh@redhat.com>
18801 PR rtl-optimization/65220
18802 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
18804 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
18807 * lra-remat.c (update_scratch_ops): New.
18808 (do_remat): Call it.
18809 * lra.c (lra_register_new_scratch_op): New. Take code from ...
18810 (remove_scratches): ... here.
18811 * lra-int.h (lra_register_new_scratch_op): New prototype.
18813 2015-02-27 Marek Polacek <polacek@redhat.com>
18816 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
18817 -Wformat-signedness anymore.
18819 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18821 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
18823 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
18825 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18827 * config/s390/s390.c (enum s390_builtin):
18828 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
18829 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
18830 (s390_init_builtins): Generate new builtin functions.
18831 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
18832 (s390_sfpc, s390_efpc): New pattern definitions.
18834 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18836 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
18837 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
18838 (s390_builtin_decls): New array.
18839 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
18840 (s390_builtin_decl): New function.
18841 (TARGET_BUILTIN_DECL): Define macro.
18843 2015-02-27 Richard Biener <rguenther@suse.de>
18845 PR middle-end/63175
18846 * builtins.c (get_object_alignment_2): Make sure to re-apply
18847 the ANDed mask after recursing to its operand gets us a new
18848 misalignment bit position.
18850 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
18851 Martin Liska <mliska@suse.cz>
18854 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
18855 Use address_matters_p.
18856 (redirect_all_callers, set_addressable): New functions.
18857 (sem_function::merge): Reorganize and fix merging issues.
18858 (sem_variable::merge): Likewise.
18859 (sem_variable::compare_sections): Remove.
18860 * common.opt (fmerge-all-constants, fmerge-constants): Remove
18862 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
18864 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
18866 (address_matters_1): New function.
18867 (symtab_node::address_matters_p): New function.
18868 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
18869 check for merged flag.
18870 * cgraph.h (address_matters_p): Declare.
18871 (symtab_node::address_taken_from_non_vtable_p): Remove.
18872 (symtab_node::address_can_be_compared_p): New method.
18873 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
18874 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
18876 (comdat_can_be_unshared_p_1) Use address_matters_p.
18877 (update_vtable_references): Fix formating.
18878 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
18879 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
18880 * cgraphclones.c: Preserve merged and icf_merged flags.
18882 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
18884 * doc/extend.texi (Function Attributes): Fix spelling and typos.
18885 (Label Attributes): Likewise.
18886 (Cilk Plus Builtins): Likewise.
18887 (ARC SIMD Built-in Functions): Likewise.
18888 (ARM C Language Extensions (ACLE)): Likewise.
18889 (PowerPC Built-in Functions): Likewise.
18890 (PowerPC Hardware Transactional Memory Built-in Functions):
18893 2015-02-26 Jakub Jelinek <jakub@redhat.com>
18895 PR tree-optimization/65216
18896 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
18897 new stmt and new SSA_NAME for lhs whenever the arguments have
18898 changed and weren't just swapped. Fix comment typo.
18900 PR tree-optimization/65215
18901 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
18902 for PDP endian targets.
18903 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
18904 Fix up formatting issues.
18905 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
18906 size is smaller than the original, adjust MEM_REF offset by the
18907 difference of sizes. Use is_gimple_mem_ref_addr instead of
18908 is_gimple_min_invariant test to avoid adding address temporaries.
18910 2015-02-26 Martin Liska <mliska@suse.cz>
18911 Jan Hubicka <hubicka@ucw.cz>
18914 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
18915 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
18916 (sem_item_optimizer::process_cong_reduction): Include division by
18917 sensitive references.
18918 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
18919 * ipa-ref.c (ipa_ref::address_matters_p): New function.
18920 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
18922 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
18925 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
18927 * config/avr/avr.c: Same.
18928 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
18929 Refuse any constant address not in 0..0xbf.
18930 * config/avr/avr.md (*mov<mode>, *movsf): Remove
18931 tiny_valid_direct_memory_access_range from insn conditions.
18932 (mov<mode>): Don't special-case expansion of avrtiny addresses.
18934 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
18937 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
18938 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
18939 * config/sh/predicates.md (const_logical_operand): New predicate.
18940 * config/sh/sh.md: Add new peephole2 patterns.
18942 2015-02-26 Marek Polacek <polacek@redhat.com>
18945 * ipa-inline.c (early_inliner): Recompute inline parameters.
18947 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18950 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
18951 instructions with TImode operands are included in the analysis.
18953 2015-02-26 Sebastian Pop <s.pop@samsung.com>
18955 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
18956 of an EDGE_FSM_THREAD.
18958 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
18960 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
18962 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
18965 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
18967 2015-02-26 Sebastian Pop <s.pop@samsung.com>
18969 PR tree-optimization/65048
18970 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
18971 (thread_through_all_blocks): Call valid_jump_thread_path.
18972 Remove invalid FSM jump-thread paths.
18974 2015-02-26 Jakub Jelinek <jakub@redhat.com>
18976 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
18977 (ipa_write_optimization_summaries): Likewise.
18978 * tree-streamer.h: Include data-streamer.h.
18979 (streamer_mode_table): Declare extern variable.
18980 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
18981 * lto-streamer-out.c (lto_output_init_mode_table,
18982 lto_write_mode_table): New functions.
18983 (produce_asm_for_decls): Call lto_write_mode_table when streaming
18985 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
18986 (lto_create_simple_input_block): Add mode_table argument to the
18987 lto_input_block constructors.
18988 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
18990 * data-streamer-in.c (string_for_index): Likewise.
18991 * ipa-inline-analysis.c (inline_read_section): Likewise.
18992 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
18993 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
18994 * lto-streamer-in.c (lto_read_body_or_constructor,
18995 lto_input_toplevel_asms): Likewise.
18996 (lto_input_mode_table): New function.
18997 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
18998 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
18999 Use bp_pack_machine_mode.
19000 * real.h (struct real_format): Add name field.
19001 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
19002 (class lto_input_block): Add mode_table member.
19003 (lto_input_block::lto_input_block): Add mode_table_ argument,
19004 initialize mode_table.
19005 (struct lto_file_decl_data): Add mode_table field.
19006 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
19007 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
19008 unpack_ts_decl_common_value_fields,
19009 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
19010 * tree-streamer.c (streamer_mode_table): New variable.
19011 * real.c (ieee_single_format, mips_single_format,
19012 motorola_single_format, spu_single_format, ieee_double_format,
19013 mips_double_format, motorola_double_format,
19014 ieee_extended_motorola_format, ieee_extended_intel_96_format,
19015 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
19016 ibm_extended_format, mips_extended_format, ieee_quad_format,
19017 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
19018 decimal_single_format, decimal_double_format, decimal_quad_format,
19019 ieee_half_format, arm_half_format, real_internal_format): Add name
19021 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
19023 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
19026 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
19027 reordering for selective scheduling.
19029 2015-02-26 Terry Guo <terry.guo@arm.com>
19031 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
19032 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
19033 (arm_arch_no_volatile_ce): Declare new global variable.
19034 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
19035 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
19036 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
19037 (TARGET_NO_VOLATILE_CE): New macro.
19038 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
19039 volatile memory access in IT block
19041 2015-02-25 Kai Tietz <ktietz@redhat.com>
19043 PR tree-optimization/61917
19044 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
19045 that reduc_def_stmt is null.
19047 2015-02-25 Martin Liska <mliska@suse.cz>
19049 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
19050 hard register variables.
19052 2015-02-25 Kai Tietz <ktietz@redhat.com>
19055 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
19056 (symtab::noninterposable_alias): Likewise.
19058 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
19061 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
19063 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
19065 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
19068 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
19069 as split condition; force split via '#' in output pattern.
19071 2015-02-25 Richard Biener <rguenther@suse.de>
19072 Kai Tietz <ktietz@redhat.com>
19074 PR tree-optimization/61917
19075 * tree-vect-loop.c (vectorizable_reduction): Allow
19076 vect_internal_def without reduction to exit graceful.
19078 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19081 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
19082 only with NONDEBUG_INSN_P.
19084 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19086 Use variadic macros with avr-log.c.
19088 * config/avr/avr-protos.h (avr_vdump): New prototype.
19089 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
19090 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
19091 * config/avr/avr-log.c: Adjust comments.
19092 (avr_vdump): New function.
19093 (avr_vadump): Pass caller as 2nd argument instead of format string.
19094 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
19095 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
19097 2015-02-25 Jakub Jelinek <jakub@redhat.com>
19100 * target.def (target_option_stream_in): New target hook.
19101 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
19102 targetm.target_option.post_stream_in if non-NULL.
19103 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
19104 * doc/tm.texi: Updated.
19105 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
19107 (TARGET_OPTION_POST_STREAM_IN): Redefine.
19109 2015-02-24 Jeff Law <law@redhat.com>
19112 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
19113 of operand 0 and operand 2.
19114 (zero_cost_loop_end, loop_end): Similarly.
19116 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
19118 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
19121 2015-02-24 DJ Delorie <dj@redhat.com>
19123 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
19124 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
19125 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
19126 instead of hardcoding SImode.
19128 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
19130 * omp-low.c (create_omp_child_function): Tag entrypoint
19131 functions with a special attribute.
19133 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
19136 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
19138 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
19140 PR rtl-optimization/65123
19141 * lra-remat.c (operand_to_remat): Check hard regs in insn
19144 2015-02-24 Nick Clifton <nickc@redhat.com>
19146 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
19149 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
19152 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
19153 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
19154 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
19155 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
19156 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
19157 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
19158 (BUILT_IN_GOACC_PARALLEL): Specify as
19159 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
19160 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
19161 * builtin-types.def
19162 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19163 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19164 Remove function types.
19165 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
19166 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
19167 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
19168 New function types.
19170 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
19172 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
19174 2015-02-24 Jakub Jelinek <jakub@redhat.com>
19176 PR tree-optimization/65170
19177 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
19178 if val[1] < 0, clear also val[2] and return 3.
19180 2015-02-24 Alan Modra <amodra@gmail.com>
19183 * config/rs6000/rs6000.c (get_memref_parts): Only return true
19184 when *base is a reg. Handle nested plus addresses. Simplify
19187 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
19189 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
19190 use natural alignment when optimizing for size.
19192 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
19195 * config/sh/sh.md (movsicc_true+3): Remove peephole.
19196 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
19197 * config/sh/sh.c (replace_n_hard_rtx): Remove.
19199 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
19202 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
19203 too big for a wide_int. Implement missing wrapping operation.
19205 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
19208 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
19209 instead of const_int 4294901760.
19211 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
19213 * config/avr/t-avr: Fix typo in comment.
19215 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
19217 * doc/rtl.texi (fma): Clarify documentation.
19219 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
19222 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
19223 over input_location.
19225 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
19227 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
19228 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
19229 restrict alignments to absolute_biggest_alignment.
19230 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
19232 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
19233 * doc/tm.texi: Regenerate.
19234 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
19236 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
19239 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
19241 2015-02-20 Richard Biener <rguenther@suse.de>
19243 PR tree-optimization/65136
19244 * tree-ssa-propagate.c: Include cfgloop.h.
19245 (replace_phi_args_in): Avoid replacing loop latch edge PHI
19246 arguments with constants.
19248 2015-02-20 Jakub Jelinek <jakub@redhat.com>
19249 Martin Liska <mliska@suse.cz>
19252 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
19253 don't try to create_thunk if stdarg_p. If
19254 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
19255 redirect_callers if possible.
19256 (sem_item_optimizer::execute): Call unregister_hooks here...
19257 (ipa_icf_driver): ... instead of here.
19259 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19261 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
19262 Mark operand 0 as earlyclobber in 2nd alternative.
19263 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
19264 Write negated shift amount into QI lowpart operand 0 and use it
19266 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
19268 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
19270 * cgraph.h (clone_function_name_1): Declare.
19271 * cgraphclones.c (clone_function_name_1): New function.
19272 (clone_function_name): Use it.
19273 * lto-partition.c: Include "stringpool.h".
19274 (must_not_rename, maybe_rewrite_identifier)
19275 (validize_symbol_for_target): New static functions.
19276 (privatize_symbol_name): Use must_not_rename.
19277 (promote_symbol): Call validize_symbol_for_target.
19278 (lto_promote_cross_file_statics): Likewise.
19279 (lto_promote_statics_nonwpa): Likewise.
19281 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
19284 * config/avr/avr.md (pushhi_insn): New insn.
19285 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
19287 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
19288 Jakub Jelinek <jakub@redhat.com>
19290 * tree-streamer.c (preload_common_nodes): Don't preload
19291 TI_VA_LIST* for offloading.
19292 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
19295 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
19297 * config/pa/pa.c (pa_emit_move_sequence): Always force
19298 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
19301 * config/pa/pa.c (pa_reloc_rw_mask): New function.
19302 (TARGET_ASM_RELOC_RW_MASK): Define.
19303 (pa_cannot_force_const_mem): Revert previous change.
19305 2015-02-19 Martin Jambor <mjmabor@suse.cz>
19306 Jan Hubicka <hubicka@ucw.cz>
19309 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
19310 across jump functions.
19312 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
19314 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
19316 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
19318 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
19320 2015-02-19 Richard Henderson <rth@redhat.com>
19322 PR middle-end/65074
19323 * varasm.c (default_binds_local_p_2): Don't test node->definition;
19324 test DECL_EXTERNAL independent of symtab_node.
19326 2015-02-19 Jakub Jelinek <jakub@redhat.com>
19329 * varpool.c (varpool_node::get_constructor): Return early
19330 if this->lto_file_data is NULL.
19332 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19334 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
19335 (rank_for_schedule_debug): Update.
19336 (ready_sort): Make static. Move sorting logic to ...
19337 (ready_sort_debug, ready_sort_real): New static functions.
19338 (schedule_block): Sort both debug insns and real insns in preparation
19339 for ready list trimming. Improve debug output.
19340 * sched-int.h (ready_sort): Remove global declaration.
19342 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
19344 * ipa-icf.c (sem_function::equals_private): Adjust.
19345 (sem_function::bb_dict_test): Take a vec<int> * instead of
19347 * ipa-icf.h (bb_dict_test): Likewise.
19349 2015-02-18 Jakub Jelinek <jakub@redhat.com>
19351 PR gcov-profile/64634
19352 * tree-eh.c (frob_into_branch_around): Fix up typos
19353 in function comment.
19354 (lower_catch): Put eh_seq resulting from EH lowering of
19355 the cleanup sequence after the cleanup rather than before it.
19357 2015-02-18 Tom de Vries <tom@codesourcery.com>
19359 * common.opt (fstdarg-opt): New option.
19360 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
19361 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
19362 (@item -fstdarg-opt): New item.
19364 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
19367 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
19368 for common symbols.
19370 2015-02-18 Jakub Jelinek <jakub@redhat.com>
19372 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
19374 (ALL_HOST_OBJS): Add mkoffload.o.
19375 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
19377 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
19379 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
19380 (compare_virtual_tables): Be smarter about skipping typeinfos;
19381 do sane output on virtual table table mismatch.
19382 (warn_odr): Be ready for forward declarations of enums;
19383 output sane info on base mismatch and virtual table mismatch.
19384 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
19385 when only one type is polymorphic.
19386 (get_odr_type): Fix hashtable corruption.
19387 (dump_odr_type): Dump mangled names.
19389 2015-02-18 Richard Biener <rguenther@suse.de>
19391 PR tree-optimization/65063
19392 * tree-predcom.c (determine_unroll_factor): Return 1 if we
19393 have replaced looparound PHIs.
19395 2015-02-18 Martin Liska <mliska@suse.cz>
19397 * lto-streamer.c (lto_streamer_init): Encapsulate
19398 streamer_check_handled_ts_structures with checking macro.
19400 2015-02-18 Jakub Jelinek <jakub@redhat.com>
19403 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
19404 section if !implicit_section.
19405 (cgraph_node::create_version_clone_with_body): Likewise.
19406 * trans-mem.c (ipa_tm_create_version): Likewise.
19408 2015-02-18 Richard Biener <rguenther@suse.de>
19410 PR tree-optimization/62217
19411 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
19414 2015-02-18 Marek Polacek <polacek@redhat.com>
19417 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
19418 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
19419 is in range [-16K, -1]. Don't issue run-time error if
19420 (ptr > ptr + offset).
19422 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
19424 * doc/install.texi (nvptx-*-none): New section.
19425 * doc/invoke.texi (Nvidia PTX Options): Likewise.
19426 * config/nvptx/nvptx.opt: Update.
19428 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
19429 (access_check): New functions, copied from
19430 config/i386/intelmic-mkoffload.c.
19431 (main): For non-installed testing, look in all COMPILER_PATHs for
19434 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
19436 2015-02-18 Andrew Pinski <apinski@cavium.com>
19437 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19439 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
19440 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
19442 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
19444 * ipa-visibility.c (function_and_variable_visibility): Only
19445 check locality if node is not already local.
19446 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
19447 call_for_symbol_and_aliases instead of
19448 call_for_symbol_thunks_and_aliases.
19449 (ipa_inline): Likewise.
19450 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
19451 first walk aliases.
19452 * ipa.c (symbol_table::remove_unreachable_nodes): Use
19453 call_for_symbol_and_aliases.
19454 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
19455 (ipa_propagate_frequency_1): Use it; use opt_for_fn
19456 (ipa_propagate_frequency): Update.
19457 (ipa_profile): Add opt_for_fn gueards.
19459 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
19461 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
19462 * doc/invoke.texi (SH options): Document it.
19463 * config/sh/sh.c (sh_insn_length_adjustment): Check
19464 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
19466 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
19468 * common.opt (fipa-cp-alignment): New.
19469 * ipa-cp.c (ipcp_store_alignment_results): Check
19470 flag_ipa_cp_alignment.
19471 * opts.c (default_options_table): Enable -fipa-cp-alignment for
19473 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
19474 * doc/invoke.texi: Document -fipa-cp-alignment.
19476 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
19479 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
19480 to nil. Adjust comments.
19482 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
19484 * ipa-visibility.c (function_and_variable_visibility): Only
19485 check locality if node is not already local.
19486 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
19487 call_for_symbol_and_aliases instead of
19488 call_for_symbol_thunks_and_aliases.
19489 (ipa_inline): Likewise.
19490 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
19491 first walk aliases.
19492 * ipa.c (symbol_table::remove_unreachable_nodes): Use
19493 call_for_symbol_and_aliases.
19494 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
19495 (ipa_propagate_frequency_1): Use it; use opt_for_fn
19496 (ipa_propagate_frequency): Update.
19497 (ipa_profile): Add opt_for_fn guards.
19499 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
19501 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
19502 skipping of "strange" tokens.
19504 2015-02-17 Jeff Law <law@redhat.com>
19506 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
19509 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
19511 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
19512 as forcing a HARD_DEP between instructions, thereby
19513 disallowing rewriting to break dependencies.
19515 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
19517 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
19518 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
19519 variables in boundary that have no inlitalizer encoded and are
19521 * varasm.c (default_binds_local_p_2): External definitions do not
19522 count as definitions here.
19524 2015-02-16 Jeff Law <law@redhat.com>
19526 PR tree-optimization/64823
19527 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
19529 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
19530 threading through blocks with PHIs, but no statements.
19531 (thread_through_normal_block): Distinguish between blocks where
19532 we did not process all the statements and blocks with no statements.
19534 2015-02-16 Jakub Jelinek <jakub@redhat.com>
19535 James Greenhalgh <james.greenhalgh@arm.com>
19538 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
19539 section if not linkonce. Fix up formatting.
19540 (cgraph_node::create_version_clone_with_body): Copy section.
19541 * trans-mem.c (ipa_tm_create_version): Likewise.
19543 2015-02-16 Richard Biener <rguenther@suse.de>
19545 PR tree-optimization/65077
19546 * tree-ssa-structalias.c (get_constraint_for_1): Handle
19547 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
19548 (find_func_aliases): Allow float values to carry pointers again.
19550 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
19552 * doc/install.texi (Specific): Reorder targets list to put
19553 aarch64 in alphabetical order. Add a link to aarch64*-*-*
19556 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
19557 David Edelsohn <dje.gcc@gmail.com>
19560 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
19561 mapping class to external variable or function reference.
19562 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
19565 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
19568 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
19569 ASM_WEAKEN_DECL if defined.
19571 2015-02-16 Richard Biener <rguenther@suse.de>
19574 * varasm.c (default_file_start): For LTO produced units
19575 emit <artificial> as file directive.
19577 2015-02-16 Richard Biener <rguenther@suse.de>
19579 PR tree-optimization/63593
19580 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
19581 stmts and releasing SSA names until...
19582 (execute_pred_commoning): ... after processing all chains.
19584 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
19587 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
19588 external functions.
19590 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
19592 * doc/bugreport.texi: Adjust section titles throughout the file
19593 to use "Title Case".
19594 * doc/extend.texi: Likewise.
19595 * doc/gcov.texi: Likewise.
19596 * doc/implement-c.texi: Likewise.
19597 * doc/implement-cxx.texi: Likewise.
19598 * doc/invoke.texi: Likewise.
19599 * doc/objc.texi: Likewise.
19600 * doc/standards.texi: Likewise.
19601 * doc/trouble.texi: Likewise.
19603 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
19605 * cgraph.h (symtab_node::has_aliases_p): Simplify.
19606 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
19607 * tree.c (lookup_binfo_at_offset): Make static.
19608 (get_binfo_at_offset): Do not shadow offset; add explanatory
19611 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
19613 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
19614 for all floading point loads and stores except those using a register
19616 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
19619 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
19621 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
19622 (do_estimate_growth_1): Record if any uninlinable edge was seen.
19623 (estimate_growth): Handle uninlinable edges correctly.
19624 (check_callers): New.
19625 (growth_likely_positive): Handle aliases correctly.
19627 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
19629 * ipa-chkp.c: Use iterate_direct_aliases.
19630 * symtab.c (resolution_used_from_other_file_p): Move inline.
19631 (symtab_node::create_reference): Fix formating.
19632 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
19633 (symtab_node::iterate_reference): Move inline.
19634 (symtab_node::iterate_referring): Move inline.
19635 (symtab_node::iterate_direct_aliases): Move inline.
19636 (symtab_node::used_from_object_file_p_worker): Inline into ...
19637 (symtab_node::used_from_object_file_p): ... this one; move inline.
19638 (symtab_node::call_for_symbol_and_aliases): Move inline;
19639 use iterate_direct_aliases.
19640 (symtab_node::call_for_symbol_and_aliases_1): New method.
19641 (cgraph_node::call_for_symbol_and_aliases): Move inline;
19642 use iterate_direct_aliases.
19643 (cgraph_node::call_for_symbol_and_aliases_1): New method.
19644 (varpool_node::call_for_node_and_aliases): Rename to ...
19645 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
19646 use iterate_direct_aliases.
19647 (varpool_node::call_for_symbol_and_aliases_1): New method.
19648 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
19649 (ipa_discover_readonly_nonaddressable_var): Update.
19650 * ipa-devirt.c: Fix formating.
19651 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
19653 (cgraph_node::call_for_symbol_and_aliases): Move inline.
19654 (cgraph_node::call_for_symbol_and_aliases_1): New function..
19655 * cgraph.h (used_from_object_file_p_worker): Remove.
19656 (resolution_used_from_other_file_p): Move inline.
19657 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
19658 (symtab_node::iterate_reference): Move inline.
19659 (symtab_node::iterate_referring): Move inline.
19660 (symtab_node::iterate_direct_aliases): Move inline.
19661 (symtab_node::used_from_object_file_p_worker): Inline into ...
19662 (symtab_node::used_from_object_file_p): Move inline.
19663 * tree-emutls.c (ipa_lower_emutls): Update.
19664 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
19665 (varpool_node::call_for_node_and_aliases): Remove.
19667 2015-02-14 Jakub Jelinek <jakub@redhat.com>
19669 PR tree-optimization/62209
19670 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
19671 op == range->exp, insert seq and gimplified code after labels
19672 instead of after the phi.
19674 2015-02-13 Jeff Law <law@redhat.com>
19677 Revert my change for tree-optimization/64823.
19679 2015-02-13 Jakub Jelinek <jakub@redhat.com>
19681 PR tree-optimization/65053
19682 * tree-ssa-phiopt.c (value_replacement): When moving assign before
19683 cond, either reset VR on lhs or set it to phi result VR.
19685 2015-02-13 Jeff Law <law@redhat.com>
19687 PR tree-optimization/64823
19688 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
19689 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
19690 threading through blocks with PHIs, but no statements.
19691 (thread_through_normal_block): Distinguish between blocks where
19692 we did not process all the statements and blocks with no statements.
19694 PR rtl-optimization/47477
19695 * match.pd (convert (plus/minus (convert @0) (convert @1): New
19696 simplifier to narrow arithmetic.
19698 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
19701 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
19702 polymorphic call info when type is not known to be preserved.
19704 2015-02-13 Maritn Jambor <mjambor@suse.cz>
19707 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
19708 (inline_call): Use it.
19710 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
19712 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
19713 GOMP_DEVICE_NVIDIA_PTX.
19715 2015-02-13 Jakub Jelinek <jakub@redhat.com>
19718 * stmt.c (emit_case_nodes): Use void_type_node instead of
19719 NULL_TREE as LABEL_DECL type.
19721 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
19723 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
19725 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
19726 symbolic references to data to be forced to constant memory on the
19729 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
19731 PR tree-optimization/65002
19732 * tree-cfg.c (pass_data_fixup_cfg): Don't update
19734 * tree-sra.c (some_callers_have_no_vuse_p): New.
19735 (ipa_early_sra): Reject functions whose callers
19736 assume function is read only.
19738 2015-02-13 Richard Biener <rguenther@suse.de>
19741 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
19742 for LTO produced CUs.
19744 2015-02-13 Bin Cheng <bin.cheng@arm.com>
19746 PR tree-optimization/64705
19747 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
19748 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
19749 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
19750 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
19751 expand_simple_operations.
19753 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
19754 Richard Henderson <rth@redhat.com>
19757 * cgraphunit.c (cgraph_node::finalize_function): Set definition
19758 before notice_global_symbol.
19759 (varpool_node::finalize_decl): Likewise.
19760 * varasm.c (default_binds_local_p_2): Rename from
19761 default_binds_local_p_1, add weak_dominate argument. Use direct
19762 returns instead of assigning to local variable. Unify varpool and
19763 cgraph paths via symtab_node. Reject undef weak variables before
19764 testing visibility. Reorder tests for simplicity.
19765 (default_binds_local_p): Use default_binds_local_p_2.
19766 (default_binds_local_p_1): Likewise.
19767 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
19769 (default_elf_asm_output_external): Emit visibility when specified.
19771 2015-02-13 Alan Modra <amodra@gmail.com>
19773 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
19774 code setting up r11 for out-of-line fp restore.
19776 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
19778 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
19779 (muser-mode): Likewise.
19781 2015-02-13 Alan Modra <amodra@gmail.com>
19783 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
19784 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
19786 2015-02-12 David Howells <dhowells@redhat.com>
19788 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
19790 * tree-ssa-uninit.c (dump_predicates): Likewise.
19791 * opts.c (print_filtered_help): Likewise.
19793 2015-02-12 Jakub Jelinek <jakub@redhat.com>
19795 * dwarf2out.c (output_die): Use "%s", name instead of name to
19796 avoid -Wformat-security warning.
19798 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
19799 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
19800 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
19801 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
19803 2015-02-12 Jason Merrill <jason@redhat.com>
19805 * common.opt (-flifetime-dse): New.
19807 2015-02-12 Jakub Jelinek <jakub@redhat.com>
19810 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
19812 PR tree-optimization/65014
19813 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
19814 use original second operand of arg0 or arg1 instead of
19815 that adjusted by STRIP_NOPS.
19817 2015-02-11 Jeff Law <law@redhat.com>
19820 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
19821 that needs to be queued, just queue it for a single cycle.
19823 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
19825 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
19826 bodies of thunks; comment on why.
19827 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
19828 symbols are extern.
19830 2015-02-11 Richard Henderson <rth@redhat.com>
19833 * tree-eh.c (mark_reachable_handlers): Mark source and destination
19834 regions of __builtin_eh_copy_values.
19836 2015-02-11 Jakub Jelinek <jakub@redhat.com>
19838 PR middle-end/65003
19839 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
19840 ultimate alias is MEM with SYMBOL_REF satisfying
19841 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
19842 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
19844 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
19846 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
19847 "diagnostic-core.h".
19848 (main): Initialize progname, and call diagnostic_initialize.
19850 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
19851 instead of __OPENMP_TARGET__.
19853 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
19854 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
19855 hard-coding PTX_ID.
19857 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
19859 * doc/sourcebuild.texi (pie_enabled): Document.
19861 2015-02-11 Martin Liska <mliska@suse.cz>
19864 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
19865 a return value for call to a function that is noreturn.
19867 2015-02-11 Richard Biener <rguenther@suse.de>
19870 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
19873 2015-02-11 Andrew Pinski <apinski@cavium.com>
19876 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
19877 Change the first argument type to size_type_node and add another
19879 (aarch64_simd_expand_builtin): Handle the new argument to
19880 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
19881 print an out when the first two arguments are not
19882 nonzero integer constants.
19883 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
19884 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
19886 2015-02-11 Jakub Jelinek <jakub@redhat.com>
19889 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
19890 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
19891 (ix86_set_current_function): Rewritten.
19892 (ix86_add_new_builtins): Temporarily clear current_target_pragma
19893 when creating builtin fndecls.
19895 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
19898 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
19900 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
19901 have no comdat group.
19902 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
19903 (lto_output_varpool_node): Always output alias info.
19904 (output_refs): Output refs of boundary aliases, too.
19905 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
19906 (output_symtab): Output call eges in thunks in boundary.
19907 (get_alias_symbol): Remove.
19908 (input_node, input_varpool_node): Do not special case weakrefs.
19909 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
19910 alias and thunks targets in the boundary; do not take removed symbols
19911 from their comdat groups.
19912 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
19913 (cgraph_node::global_info): Remove.
19914 (cgraph_node::rtl_info): Look through aliases and thunks.
19915 * cgrpah.h (global_info): Remove.
19916 (non_local_p): Remove.
19918 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
19919 Sandra Loosemore <sandra@codesourcery.com>
19921 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
19922 to inline asm. List dialects in proper order.
19924 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
19925 Sandra Loosemore <sandra@codesourcery.com>
19927 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
19929 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
19931 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
19932 modified) reference to Solaris.
19934 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
19936 * doc/extend.texi (Extended Asm): Fix typos.
19938 2015-02-10 Jakub Jelinek <jakub@redhat.com>
19941 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
19943 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
19946 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
19947 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
19948 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
19949 * config/sh/constraints.md (Ara, Add): New constraints.
19950 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
19952 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
19953 atomic_mem_operand_0. Don't use force_reg on the memory address.
19954 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
19955 Sra constraint. Convert to insn_and_split. Add workaround for
19957 (atomic_compare_and_swap<mode>_hard): Copy to
19958 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
19959 Use atomic_mem_operand_0 predicate.
19960 (atomic_compare_and_swap<mode>_soft_gusa,
19961 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
19962 AraAdd constraints.
19963 (atomic_compare_and_swap<mode>_soft_tcb,
19964 atomic_compare_and_swap<mode>_soft_imask,
19965 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
19966 atomic_mem_operand_0 predicate and SraSdd constraints.
19967 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
19969 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
19970 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
19971 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
19972 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
19973 force_reg on the memory address.
19974 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
19975 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
19976 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
19977 atomic_mem_operand_1 predicate and Sra constraint.
19978 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
19979 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
19980 Use atomic_mem_operand_1 predicate.
19981 (atomic_<fetchop_name><mode>_hard): Copy to
19982 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
19983 Use atomic_mem_operand_1 predicate.
19984 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
19985 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
19986 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
19987 insn_and_split. Use atomic_mem_operand_1 predicate.
19988 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
19989 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
19990 Use atomic_mem_operand_1 predicate.
19991 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
19992 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
19993 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
19994 in generated insn with original mem operand before emitting the insn.
19995 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
19996 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
19997 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
19998 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
19999 Use atomic_mem_operand_1 predicate and AraAdd constraints.
20000 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
20001 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
20002 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
20003 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
20004 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
20005 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
20006 atomic_not_fetch<mode>_soft_tcb,
20007 atomic_<fetchop_name>_fetch<mode>_soft_imask,
20008 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
20009 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
20010 Use atomic_mem_operand_1 predicate and SraSdd constraints.
20012 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
20014 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
20015 and 3 earlyclobber operands.
20017 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20019 * common.opt (fstack-reuse): Mark as optimization.
20021 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20024 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
20026 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
20028 PR tree-optimization/64326
20029 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
20031 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
20033 PR gcov-profile/61889
20034 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
20036 2015-02-10 Richard Biener <rguenther@suse.de>
20038 PR tree-optimization/64995
20039 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
20040 value we use is final.
20041 (visit_reference_op_store): Always valueize op.
20042 (visit_use): Properly valueize vuses.
20044 2015-02-10 Richard Biener <rguenther@suse.de>
20046 PR tree-optimization/64909
20047 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
20048 pass a scalar-stmt count estimate to the cost model.
20049 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
20051 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
20053 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
20054 enabled by default together with var-tracking.
20056 2015-02-10 Nick Clifton <nickc@redhat.com>
20058 * config/rl78/rl78.c: Remove DIV attribute code accidentally
20059 included in previous rl78 commit.
20061 2015-02-10 Richard Biener <rguenther@suse.de>
20063 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
20064 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
20065 return the bitpack.
20067 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20069 PR gcov-profile/61889
20070 * config.in: regenerate.
20071 * configure.in: Likewise.
20072 * configure.ac: Check for ftw.h.
20073 * gcov-tool.c: Check for ftw.h before using nftw.
20075 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20078 * ipa-visibility.c (update_visibility_by_resolution_info): Only
20079 assert when not in lto mode.
20081 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20083 * ira-color.c (setup_left_conflict_sizes_p): Simplify
20084 initialization/assignment of conflict_size.
20086 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
20089 * ipa-cp.c (gather_caller_stats): Skip thunks.
20090 (propagate_constants_topo): Skip aliases.
20092 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
20095 * config/sh/sh.c (sh_option_override): Don't change
20096 -freorder-blocks-and-partition to -freorder-blocks even when
20097 unwinding is enabled.
20098 (sh_can_follow_jump): Return false if the followee jump is
20099 a crossing jump when -freorder-blocks-and-partition is specified.
20100 * config/sh/sh.md (*jump_compact_crossing): New insn.
20102 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
20103 Kaz Kojima <kkojima@gcc.gnu.org>
20106 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
20107 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
20108 (sh_can_redirect_branch): Rename to ...
20109 (sh_can_follow_jump): ... this. Constify argument types.
20110 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
20111 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
20112 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
20113 * doc/tm.texi: Regenerate.
20115 2015-02-09 Jakub Jelinek <jakub@redhat.com>
20118 * builtins.c (expand_builtin): Call targetm.expand_builtin
20119 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
20121 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20124 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
20126 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20129 * ipa-icf.c (set_local): New function.
20130 (sem_function::merge): Use it.
20132 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20134 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
20135 (add_type_duplicate): Fix comparison of BINFOs.
20137 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20139 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
20140 on getting VOID pointer.
20142 2015-02-09 Jakub Jelinek <jakub@redhat.com>
20145 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
20148 2015-02-09 Richard Biener <rguenther@suse.de>
20150 * genmatch.c (replace_id): Copy expr_type.
20152 2015-02-09 Richard Biener <rguenther@suse.de>
20154 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
20155 (streamer_write_tree_bitfields): Declare.
20156 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
20157 properly unpack padding.
20158 (unpack_value_fields): Inline ...
20159 (streamer_read_tree_bitfields): ... here.
20160 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
20161 and properly add padding bits.
20162 (streamer_pack_tree_bitfields): Fold into ...
20163 (streamer_write_tree_bitfields): ... this new function,
20164 exposing the bitpack object.
20165 * lto-streamer-out.c (lto_write_tree_1): Call
20166 streamer_write_tree_bitfields.
20168 2015-02-09 Richard Biener <rguenther@suse.de>
20170 PR tree-optimization/54000
20171 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
20172 (struct ivopts_data): Add loop_loc member.
20173 (tree_ssa_iv_optimize_loop): Dump loop location.
20174 (create_new_ivs): Likewise, also dump number of IVs generated.
20176 2015-02-09 Martin Liska <mliska@suse.cz>
20178 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
20179 just if not yet registered.
20180 (ipa_icf_generate_summary): Register callgraph hooks.
20182 2015-02-08 Andrew Pinski <apinski@cavium.com>
20184 * config/aarch64/aarch64.c (gty_dummy): Delete.
20186 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20189 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
20190 (cgraph_node::local_p): Remove thunk related FIXME.
20192 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20195 * i386.c (ix86_function_regparm): Look through aliases to see if callee
20196 is local and optimized.
20197 (ix86_function_sseregparm): Likewise; also use target's SSE math
20198 settings; error out instead of silently generating wrong code
20200 (init_cumulative_args): Look through aliases.
20202 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20205 * ipa-split.c (execute_split_functions): Split if function has aliases.
20207 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
20210 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
20211 aliases before trying to expand it.
20212 (cgraph_node::expand_thunk): Fix formating.
20214 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
20216 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
20217 (Using Assembly Language with C): Expand introduction.
20218 (Basic Asm): Copy-edit. Add more information about uses of
20220 (Extended Asm): Copy-edit. Document new escape syntax and
20222 (Global Reg Vars): Copy-edit.
20223 (Local Reg Vars): Likewise.
20225 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
20229 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
20230 (DBX_CONTIN_CHAR): Define.
20232 2015-02-06 Sebastian Pop <s.pop@samsung.com>
20233 Brian Rzycki <b.rzycki@samsung.com>
20235 PR tree-optimization/64878
20236 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
20237 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
20238 Stop recursion at loop phi nodes after having visited a loop phi node.
20240 2015-02-06 Jakub Jelinek <jakub@redhat.com>
20242 * toplev.c (process_options): Change flag_ipa_ra before creating
20243 optimization_{default,current}_node.
20246 * cgraphunit.c (cgraph_node::expand_thunk): If
20247 restype is not is_gimple_reg_type nor the thunk_fndecl
20248 returns aggregate_value_p, set restmp to a temporary variable
20249 instead of resdecl.
20251 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
20253 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
20255 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20258 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
20259 add a general secondary reload handler for SDmode, unless we have
20260 both read/write support for SDmode.
20262 2015-02-06 Jakub Jelinek <jakub@redhat.com>
20264 PR middle-end/64937
20265 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
20266 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
20267 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
20268 1 before, push it to abstract_vec.
20269 (dwarf2out_abstract_function): Adjust caller. Don't call
20270 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
20271 DECL_ABSTRACT_P flags for all abstract_vec elts.
20273 2015-02-06 Renlin Li <renlin.li@arm.com>
20275 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
20277 * tree-ssa.c (execute_update_addresses_taken): Likewise.
20279 2015-02-06 Jeff Law <law@redhat.com>
20282 * config/h8300/h8300.c (push): New argument "in_prologue".
20283 Pass "in_prologue" along to "F".
20284 (h8300_push_pop): Corresponding changes.
20285 (h8300_expand_prologue): Likewise.
20286 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
20288 2015-02-06 Jakub Jelinek <jakub@redhat.com>
20290 PR rtl-optimization/64957
20292 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
20293 IOR rather than for AND.
20295 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
20298 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
20299 of shift-add and (add + shift) operations. Rename local variable.
20301 2015-02-05 Jeff Law <law@redhat.com>
20304 * config/h8300/constraints.md (U): Correctly dectect
20305 "eightbit_data" memory addresses.
20306 * config/h8300/h8300.c (eightbit_constant_address_p): Also
20307 handle (const (plus (symbol_ref (x)))) where x is declared
20308 as an 8-bit data memory address.
20309 * config/h8300/h8300.md (call, call_value): Correctly detect
20310 "funcvec" functions.
20313 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
20314 24 to 28 bits for the H8/300.
20316 2015-02-06 Alan Modra <amodra@gmail.com>
20319 * config/rs6000/rs6000.c (chain_already_loaded): New function.
20320 (rs6000_call_aix): Use it.
20322 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
20324 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
20327 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
20329 * config/h8300/constraints.md ("U" constraint): Use strict
20330 variant of REG_OK_FOR_BASE_P after reload has started.
20332 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
20334 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
20335 define to zero if !TARGET_NEON.
20336 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
20338 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
20339 Trevor Saunders <tsaunders@mozilla.com>
20342 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
20344 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
20347 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
20348 when removing varpool nodes.
20350 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
20353 * varpool.c (varpool_node::remove): Fix order of variables.
20355 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
20358 * ipa-inline.c (inline_small_functions): Fix ordering issue between
20359 speculation resolution and key updates.
20361 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
20363 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
20364 about not letting any speculative edges unupdated.
20366 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
20369 * gcov-io.c (gcov_var): Export.
20371 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
20373 PR middle-end/64922
20374 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
20375 edges that become speculative.
20377 2015-02-04 Jakub Jelinek <jakub@redhat.com>
20379 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
20380 or DW_LANG_Fortran08.
20381 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
20383 (gen_compile_unit_die): Handle "GNU Fortran2003" and
20384 "GNU Fortran2008" language strings.
20385 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
20386 * langhooks.h (lang_GNU_Fortran): New prototype.
20387 * langhooks.c (lang_GNU_Fortran): New function.
20388 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
20391 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
20393 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
20394 (RTX_OK_FOR_OLO10_P): Likewise.
20396 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
20398 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
20400 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
20402 PR middle-end/64922
20403 * gimple.c: Include gimple-ssa.h.
20404 (maybe_remove_unused_call_args): New function.
20405 * gimple.h (maybe_remove_unused_call_args): Declare.
20406 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
20407 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
20408 * gimple-fold.c (gimple_fold_call): Likewise.
20410 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
20412 PR rtl-optimization/64905
20413 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
20414 pointer alignment if it isn't needed.
20416 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
20418 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
20419 cortex-a72.cortex-a53.
20420 * config/aarch64/aarch64-tune.md: Regenerate.
20421 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
20423 2015-02-04 Nick Clifton <nickc@redhat.com>
20425 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
20428 2015-02-04 Jakub Jelinek <jakub@redhat.com>
20430 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
20431 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
20432 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
20434 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
20435 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
20436 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
20437 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
20438 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
20439 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
20440 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
20441 * tree-core.h (enum built_in_function): In between
20442 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
20443 for builtins that use DEF_BUILTIN_CHKP macro.
20445 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
20448 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
20449 operands for tcc_comparison exprs. Fix typos.
20452 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
20453 of two XORs that have an intervening AND or IOR.
20456 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
20457 simplification of XOR of AND to not allocate new rtx before
20458 committing to a simplification.
20460 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20462 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
20463 manual swaps in all peepholes.
20465 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20467 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
20468 of manual swapping implementation.
20469 (aarch64_expand_vec_perm_const_1): Likewise.
20471 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
20473 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
20474 (generic_addrcost_table): Remove NAMED_PARAM.
20475 (cortexa57_addrcost_table): Likewise.
20476 (xgene1_addrcost_table): Likewise.
20477 (generic_regmove_table): Likewise.
20478 (cortexa53_regmove_table): Likewise.
20479 (xgene1_regmove_table): Likewise.
20480 (generic_vector_table): Likewise.
20481 (cortexa57_vector_table): Likewise.
20482 (xgene1_vector_table): Likewise.
20483 (generic_tunings): Likewise.
20484 (cortexa53_tunings): Likewise.
20485 (cortexa57_tunings): Likewise.
20486 (xgene1_tunings): Likewise.
20488 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
20490 * config/arm/arm-cores.def: Add cortex-a72 and
20491 cortex-a72.cortex-a53.
20492 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
20493 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
20494 * config/arm/arm-tune.md: Regenerate.
20495 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
20496 "cortex-a72.cortex-a53".
20497 * doc/invoke.texi (ARM Options/-mtune): Likewise.
20499 2015-02-04 Nick Clifton <nickc@redhat.com>
20502 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
20504 (nonimmediate_di_operand): Likewise.
20506 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
20507 prefixes of known F5 using MSP430 MCUs.
20509 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20511 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
20512 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
20513 instead of __builtin_sqrt.
20515 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
20517 * varasm.c (do_assemble_alias): Follow transparent alias
20519 (default_assemble_visibility): Follow transparent alias
20520 chain for decl name.
20522 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
20524 PR middle-end/62103
20525 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
20526 to compute size of referenced value in the constant case.
20528 2015-02-03 Jakub Jelinek <jakub@redhat.com>
20530 PR rtl-optimization/64756
20531 * cse.c (invalidate_dest): New function.
20532 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
20533 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
20534 invalidate and do not record it.
20536 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
20539 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
20540 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
20541 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
20542 atomic_nand<mode>_soft_tcb): New insns.
20543 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
20544 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
20545 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
20546 Split into atomic_not_fetchsi_hard if operands[0] is unused.
20547 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
20548 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
20549 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
20550 atomic_not<mode>_hard if operands[0] is unused.
20551 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
20552 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
20553 if operands[0] is unused.
20554 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
20555 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
20556 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
20557 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
20559 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
20560 into atomic_not<mode>_soft_tcb if operands[0] is unused.
20561 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
20562 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
20563 if operands[0] is unused.
20564 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
20565 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
20566 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
20567 atomic_nand_fetchsi_hard if operands[0] is unused.
20568 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
20569 atomic_nand<mode>_hard if operands[0] is unused.
20570 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
20571 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
20572 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
20573 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
20574 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
20575 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
20576 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
20577 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
20578 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
20579 atomic_not<mode>_hard if operands[0] is unused.
20580 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
20581 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
20583 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
20584 into atomic_not<mode>_soft_tcb if operands[0] is unused.
20585 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
20586 atomic_nand<mode>_hard if operands[0] is unused.
20587 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
20588 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
20590 2015-02-03 David Malcolm <dmalcolm@redhat.com>
20593 * Makefile.in (GCC_OBJS): Add gcc-main.o.
20594 * gcc-main.c: New file, containing "main" taken from gcc.c.
20595 * gcc.c (do_self_spec): Free decoded_options.
20596 (class driver): Move declaration to gcc.h.
20597 (main): Move declaration and implementation to new file
20599 (driver_get_configure_time_options): New function.
20600 * gcc.h (class driver): Move this declaration here, from
20602 (driver_get_configure_time_options): New declaration.
20604 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
20606 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
20607 cross-module inlining.
20608 * cgraph.h (cgraph_node): Add flag merged.
20609 * ipa-icf.c (sem_function::merge): Maintain it.
20611 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
20613 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
20614 instead of OBJECT_P.
20616 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
20619 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
20620 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
20621 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
20622 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
20624 2015-02-03 Jakub Jelinek <jakub@redhat.com>
20627 * combine.c (reg_n_sets_max): New variable.
20628 (can_change_dest_mode, reg_nonzero_bits_for_combine,
20629 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
20630 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
20631 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
20632 (rest_of_handle_combine): Initialize reg_n_sets_max.
20634 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
20636 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
20637 if some always_inline was inlined, apply changes before inlining
20640 2015-02-02 David Malcolm <dmalcolm@redhat.com>
20643 * config/arm/arm.c (arm_option_override): Set
20644 arm_selected_arch/cpu/tune to NULL on entry.
20646 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
20647 Andrew Pinski <pinskia@gcc.gnu.org>
20648 Jakub Jelinek <jakub@gcc.gnu.org>
20651 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
20652 integer typing for small model. Use IN_RANGE.
20654 2015-02-02 Richard Biener <rguenther@suse.de>
20656 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
20657 * tree-vrp.c (vrp_valueize_1): Likewise.
20659 2015-02-02 Alan Modra <amodra@gmail.com>
20661 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
20662 than mem for toc_restore.
20663 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
20664 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
20665 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
20667 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
20670 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
20671 explicit default options.
20673 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
20676 * ipa-utils.c (ipa_merge_profiles): Add release argument.
20677 * ipa-icf.c (sem_function::merge): Do not release body when merging.
20678 * ipa-utils.h (ipa_merge_profiles): Update prototype.
20680 2015-02-01 Jakub Jelinek <jakub@redhat.com>
20683 * cfgexpand.c (deep_ter_debug_map): New variable.
20684 (avoid_deep_ter_for_debug): New function.
20685 (expand_debug_expr): If TERed SSA_NAME is in
20686 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
20687 instead of trying to expand SSA_NAME's def stmt.
20688 (expand_debug_locations): When expanding debug bind
20689 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
20690 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
20692 (pass_expand::execute): Call avoid_deep_ter_for_debug on
20693 all debug bind stmts. Delete deep_ter_debug_map after
20694 expand_debug_location if non-NULL and clear it.
20696 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
20699 * config/sh/sync.md (atomic_fetch_notsi_hard,
20700 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
20701 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
20702 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
20703 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
20704 atomic_not_fetch<mode>_soft_imask): New insns.
20706 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20708 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
20709 (rank_for_schedule_debug): Split from ...
20710 (rank_for_schedule): ... this.
20711 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
20712 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
20714 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
20716 * doc/md.texi (Machine Constraints): Alphabetize table by target.
20717 * doc/extend.texi (x86 Variable Attributes): Move section to
20718 correct alphabetization after renaming.
20719 (x86 Type Attributes): Likewise.
20720 (Target Builtins): Re-alphabetize menu.
20721 (x86 Built-in Functions): Move section to correct alphabetization
20723 (x86 transactional memory intrinsics): Likewise.
20724 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
20725 and x86 Windows Options in table and menu.
20726 (x86 Options): Move section to correct alphabetization after
20728 (x86 Windows Options): Likewise.
20730 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
20732 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
20733 preferred names of the architecture and its 32- and 64-bit
20735 * doc/invoke.texi: Likewise.
20736 * doc/md.texi: Likewise.
20738 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
20741 * config/i386/predicates.md (address_no_seg_operand): Reject
20742 non-CONST_INT_P operands in invalid mode.
20744 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
20746 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
20747 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
20748 * config/i386/predicates.md (address_no_seg_operand): Call
20749 address_operand with VOIDmode.
20750 (vsib_address_operand): Ditto.
20751 (address_mpx_no_base_operand): Ditto.
20752 (address_mpx_no_index_operand): Ditto.
20754 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
20757 * lra-constraints.c (original_subreg_reg_mode): New.
20758 (simplify_operand_subreg): Try to simplify subreg of const. Use
20759 original_subreg_reg_mode for it.
20760 (swap_operands): Update original_subreg_reg_mode.
20761 (curr_insn_transform): Set up original_subreg_reg_mode.
20763 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
20766 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
20768 (process_alt_operands): Use it.
20769 (curr_insn_transform): Check the optional reload pseudo class is
20772 2015-01-30 Joseph Myers <joseph@codesourcery.com>
20774 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
20775 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
20777 * toplev.h (init_asm_output): Update comment on use of
20778 UNKNOWN_LOCATION with fatal_error.
20779 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
20780 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
20781 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
20782 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
20783 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
20784 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
20785 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
20786 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
20787 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
20788 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
20789 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
20790 fatal_error changed to pass input_location as first argument.
20792 2015-01-30 Martin Liska <mliska@suse.cz>
20794 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
20795 in #pragma GCC diagnostic guards.
20797 2015-01-30 Richard Biener <rguenther@suse.de>
20799 PR tree-optimization/64829
20800 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
20801 not add a widening conversion pattern but hand off extra
20802 widenings to callers.
20803 (vect_recog_widen_mult_pattern): Handle extra widening produced
20804 by vect_handle_widen_op_by_const.
20805 (vect_recog_widen_shift_pattern): Likewise.
20806 (vect_pattern_recog_1): Remove excess vertical space in dumping.
20807 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
20808 (vect_init_vector_1): Likewise.
20809 (vect_get_vec_def_for_operand): Likewise.
20810 (vect_finish_stmt_generation): Likewise.
20811 (vectorizable_load): Likewise.
20812 (vect_analyze_stmt): Likewise.
20813 (vect_is_simple_use): Likewise.
20815 2015-01-29 Jeff Law <law@redhat.com>
20817 * combine.c (try_combine): Fix typo in comment.
20819 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
20822 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
20823 (rs6000_stack_info): Add assert.
20824 (rs6000_output_savres_externs): New function, split off from...
20825 (rs6000_output_function_prologue): ... here. Do not call it for
20828 2015-01-29 Jeff Law <law@redhat.com>
20831 * combine.c (try_combine): If I0 is a memory load and I3 a store
20832 to a related address, increase the "goodness" of doing a 4-insn
20833 combination with I0-I3.
20834 (make_field_assignment): Handle SUBREGs in the ior+and case.
20836 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
20838 PR tree-optimization/64746
20839 * tree-if-conv.c (mask_exists): New function.
20840 (predicate_mem_writes): Save created mask with given size for further
20842 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
20843 (ifcvt_repair_bool_pattern): Collect all statements that are root
20844 of bool pattern and use iterative algorithm to remove multiple uses
20845 of predicates, display number of required iterations.
20847 2015-01-29 Richard Biener <rguenther@suse.de>
20849 PR tree-optimization/64853
20850 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
20851 stmt will get simulated again.
20852 * tree-ssa-ccp.c (valueize_op_1): Likewise.
20854 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20856 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
20857 return_in_pc. Remove redundant assignments.
20858 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
20859 (arm_expand_epilogue): Don't compare boolean with true in if condition.
20861 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
20863 * config/i386/i386.c (ix86_mode_after): Make static.
20865 2015-01-29 Richard Biener <rguenther@suse.de>
20867 PR tree-optimization/64844
20868 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
20869 dump cost model analysis.
20870 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20871 Do not register adjusted load/store costs here.
20873 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
20874 Uros Bizjak <ubizjak@gmail.com>
20876 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
20877 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
20878 using x86_use_pseudo_pic_reg.
20879 * config/i386/i386.c (ix86_conditional_register_usage): Remove
20880 support for fixed PIC register.
20881 (ix86_use_pseudo_pic_reg): Not static any more.
20883 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
20885 PR middle-end/64805
20886 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
20887 to avoid error in cgraph node verification.
20889 2015-01-29 Marek Polacek <polacek@redhat.com>
20891 * doc/standards.texi: Reflect that the default for C is gnu11.
20893 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
20896 * reorg.c (switch_text_sections_between_p): New function.
20897 (relax_delay_slots): Call it when testing if the jump insn
20898 is removable. Use targetm.can_follow_jump when testing if
20899 the conditional branch can follow an unconditional jump.
20901 2015-01-27 Caroline Tice <cmtice@google.com>
20903 Committing VTV Cywin/Ming patch for Patrick Wollgast
20904 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
20905 if -fvtable-verify=preinit/std is used.
20906 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
20907 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
20908 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
20909 if -fvtable-verify=preinit/std is used.
20910 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
20911 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
20912 if -fvtable-verify=preinit/std is used.
20913 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
20914 * config/i386/mingw32.h (LIB_SPEC): Likewise.
20915 * varasm.c (assemble_variable): Add code to properly set the comdat
20916 section and name for the .vtable_map_vars section in case the
20917 target is PE or COFF.
20919 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
20922 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
20923 make sane BB profile.
20924 (cgraph_node::expand_thunk): Make sane BB profile.
20925 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
20926 * cgraph.h (init_lowered_empty_function): Update prototype.
20927 * config/i386/i386.c (make_resolver_func): Update call.
20928 * predict.c (gate): Disable branch prediction pass if
20929 profile is already there.
20931 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
20933 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
20934 * opth-gen.awk: Likewise.
20935 * common.opt: Mark flag_fp_contract_mode as Optimization.
20937 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
20939 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
20940 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
20942 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
20945 * config/sh/predicates.md (atomic_arith_operand,
20946 atomic_logical_operand): Remove.
20947 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
20948 (atomic_arith_operand_0): New predicate.
20949 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
20950 Use atomic_arith_operand_0 for input values.
20951 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
20952 atomic_compare_and_swap<mode>_soft_gusa,
20953 atomic_compare_and_swap<mode>_soft_tcb,
20954 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
20955 arith_reg_operand instead of register_operand.
20956 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
20957 atomic_arith_operand_0 for newval input.
20958 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
20959 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
20960 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
20961 arith_reg_operand instead of register_operand.
20962 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
20963 fetchop_predicate_1, fetchop_constraint_1_llcs,
20964 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
20965 fetchop_constraint_1_imask): New code iterator attributes.
20966 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
20967 register_operand. Use fetchop_predicate_1.
20968 (atomic_fetch_<fetchop_name>si_hard,
20969 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
20970 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
20971 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
20972 and arith_reg_operand instead of register_operand. Use
20973 fetchop_predicate_1, fetchop_constraint_1_gusa.
20974 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
20975 and arith_reg_operand instead of register_operand. Use
20976 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
20978 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
20979 and arith_reg_operand instead of register_operand. Use
20980 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
20982 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
20983 register_operand. Use atomic_logical_operand_1.
20984 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
20985 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
20986 arith_reg_operand instead of register_operand.
20987 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
20988 Use arith_reg_dest and arith_reg_operand instead of register_operand.
20989 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
20990 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
20991 register_operand. Use fetchop_predicate_1.
20992 (atomic_<fetchop_name>_fetchsi_hard,
20993 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
20994 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
20995 fetchop_constraint_1_llcs.
20996 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
20997 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
20998 fetchop_constraint_1_gusa.
20999 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
21000 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21001 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
21002 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
21003 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21004 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
21005 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
21006 register_operand. Use atomic_logical_operand_1.
21007 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
21008 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
21009 arith_reg_operand instead of register_operand.
21010 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
21011 arith_reg_operand instead of register_operand. Use logical_operand
21012 and K08. Adjust asm sequence to allow R0 usage.
21013 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
21014 arith_reg_operand instead of register_operand. Use logical_operand
21017 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21020 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
21021 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
21022 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
21023 only get_full_len HOST_WIDE_INTs from get_val () array rather than
21024 all bits in *val_wide.
21026 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
21028 * varpool.c (tls_model_names): Fix names.
21029 (varpool_node::dump): Dump tls- prefix for tls models.
21031 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
21032 Bernd Schmidt <bernds@codesourcery.com>
21033 Nathan Sidwell <nathan@codesourcery.com>
21035 * config/nvptx/mkoffload.c: New file.
21036 * config/nvptx/t-nvptx: Add build rules for it.
21037 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
21038 (extra_programs): Add mkoffload.
21039 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
21041 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
21043 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
21045 PR middle-end/64809
21046 * cfgexpand.c (reorder_operands): Skip debug gimples.
21048 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
21050 PR tree-optimization/64277
21051 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
21052 range info when possible to refine estimation.
21054 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21056 PR tree-optimization/64718
21057 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
21058 be a 16bit unsigned integer when n->range is 16.
21059 (bswap_replace): Convert src to that type if necessary for all bswap
21060 sizes. Fix rotation right notation in nearby comment. Use bswap_type
21061 set in pass_optimize_bswap::execute ().
21063 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
21065 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
21066 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
21067 integer and floating point variants.
21068 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
21070 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
21072 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
21073 for all vector modes.
21075 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21078 * doc/sourcebuild.texi (comdat_group): Document.
21080 2015-01-28 Terry Guo <terry.guo@arm.com>
21082 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
21084 2015-01-27 David Malcolm <dmalcolm@redhat.com>
21086 * toplev.c (print_version): Add param "show_global_state", and
21087 only print GGC and plugin information if it is true.
21088 (init_asm_output): Pass in "true" for the new param when calling
21090 (process_options): Likewise.
21091 (toplev::main): Likewise.
21092 * toplev.h (print_version): Add new param to decl.
21094 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
21098 * tree.c (lookup_binfo_at_offset): New function.
21099 (get_binfo_at_offset): Use it.
21101 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
21104 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
21105 on vtable being vtable.
21107 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
21109 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
21110 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
21111 -mhotpatch= option.
21112 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
21113 -mno-hotpatch options. Change syntax of -mhotpatch= option.
21114 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
21116 (s390_hotpatch_trampoline_halfwords_max): Renamed.
21117 (s390_hotpatch_hw_max): New name.
21118 (s390_hotpatch_trampoline_halfwords): Renamed.
21119 (s390_hotpatch_hw_before_label): New name.
21120 (get_hotpatch_attribute): Removed.
21121 (s390_hotpatch_hw_after_label): New name.
21122 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
21124 (s390_attribute_table): Ditto.
21125 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
21126 (s390_function_num_hotpatch_hw): New name.
21127 Remove special handling of inline functions and hotpatching.
21128 Return number of nops before and after the function label.
21129 (s390_can_inline_p): Removed.
21130 (s390_asm_output_function_label): Emit a configurable number of nops
21131 after the function label.
21132 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
21133 (TARGET_CAN_INLINE_P) Removed.
21134 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
21136 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21137 Jiong Wang <jiong.wang@arm.com>
21139 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
21141 (cb<optab><mode>1): Likewise.
21142 * config/aarch64/iterators.md (bcond): New define_code_attr.
21144 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21146 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
21149 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21151 * config/s390/s390.c (s390_register_move_cost): Increase costs for
21154 2015-01-27 Richard Biener <rguenther@suse.de>
21156 * tree-vrp.c (update_value_range): Intersect the range with
21157 old recorded SSA name range information.
21159 2015-01-27 Nick Clifton <nickc@redhat.com>
21161 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
21162 BC, DE and HL registers directly, not via AX.
21163 When decrementing the stack pointer by a large amount, transfer SP
21164 into AX and perform the subtraction there.
21165 (rl78_expand_epilogue): Perform the inverse of the above
21168 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21170 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
21172 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21173 Yury Gribov <y.gribov@samsung.com>
21176 * ubsan.c (ubsan_source_location): Refactor code.
21177 (ubsan_type_descriptor): Update type size. Refactor code.
21179 2015-01-27 Richard Biener <rguenther@suse.de>
21181 PR tree-optimization/56273
21182 PR tree-optimization/59124
21183 PR tree-optimization/64277
21184 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
21185 from the first VRP pass.
21187 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21190 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
21191 handle the first argument in the same loop as all the other arguments.
21193 PR rtl-optimization/61058
21194 * jump.c (cleanup_barriers): Update basic block boundaries
21195 if BLOCK_FOR_INSN is non-NULL on PREV.
21197 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
21199 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
21200 bounds narrowing, already instrumented calls and calls to
21201 not instrumentable functions.
21203 2015-01-27 Jakub Jelinek <jakub@redhat.com>
21205 PR tree-optimization/64807
21206 * wide-int.cc (wi::divmod_internal): Clear
21207 b_dividend[dividend_blocks_needed].
21209 2015-01-26 DJ Delorie <dj@redhat.com>
21211 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
21212 volatile memory references.
21214 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
21217 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
21219 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
21220 shifts if it already fits into K08.
21222 2015-01-26 Jakub Jelinek <jakub@redhat.com>
21225 * ipa-inline.c (inline_small_functions): Print "unknown" even
21226 if edge->call_stmt is non-NULL, but has builtins or unknown
21229 PR middle-end/64421
21230 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
21231 with asterisk, skip the first character.
21233 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
21236 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
21239 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
21242 * config/i386/i386.md (*movdi_internal): Also check operand 0
21243 to determine TYPE_LEA operand.
21244 (*movsi_internal): Ditto.
21246 2015-01-26 Jakub Jelinek <jakub@redhat.com>
21248 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
21249 OPTION_MASK_QUAD_MEMORY_ATOMIC.
21251 2015-01-26 Renlin Li <renlin.li@arm.com>
21253 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
21255 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
21258 2015-01-26 Richard Biener <rguenther@suse.de>
21260 PR middle-end/64764
21261 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
21262 combining two BIT_AND_EXPR predicates.
21264 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
21267 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
21269 2015-01-26 Terry Guo <terry.guo@arm.com>
21271 * config/arm/arm.c (arm_file_start): Update the assignment of
21272 Tag_ABI_HardFP_use.
21274 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
21276 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
21278 config/arm/arm.md: Include the new Cortex-A57 model.
21279 (generic_sched): Don't use generic_sched when tuning for
21282 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
21283 Uros Bizjak <ubizjak@gmail.com>
21285 * config/i386/i386.c (get_builtin_code_for_version): Add
21286 support for BMI and BMI2 multiversion functions.
21288 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21290 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
21291 (extract_bit_field): Likewise.
21292 (extract_low_bits): Likewise.
21293 (expand_mult): Likewise.
21294 (expand_mult_highpart_adjust): Likewise.
21296 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
21298 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
21299 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
21300 * config/i386/i386.c (processor_model): Add
21301 M_INTEL_COREI7_BROADWELL.
21302 (arch_names_table): Add "broadwell".
21304 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
21313 * config/sh/sh-protos.h
21314 (sh_extending_set_of_reg::can_use_as_unextended_reg,
21315 sh_extending_set_of_reg::use_as_unextended_reg,
21316 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
21317 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
21318 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
21319 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
21320 (sh_treg_insns): New class.
21321 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
21322 (scope_counter): New class.
21323 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
21324 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
21325 sh_extending_set_of_reg::can_use_as_unextended_reg,
21326 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
21327 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
21328 sh_split_treg_set_expr): New functions.
21329 (addsubcosts): Handle treg_set_expr.
21330 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
21331 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
21332 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
21333 (sh_insn_operands_modified_between_p): Make non-static.
21334 * config/sh/predicates.md (zero_extend_movu_operand): Allow
21335 simple_mem_operand in addition to displacement_mem_operand.
21336 (zero_extend_operand): Don't allow zero_extend_movu_operand.
21337 (treg_set_expr, treg_set_expr_not_const01,
21338 arith_reg_or_treg_set_expr): New predicates.
21339 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
21340 arith_or_int_operand instead of logical_operand. Convert to
21341 insn_and_split. Try to optimize constant operand in splitter.
21342 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
21343 (*tstqi_t_zero): Delete.
21344 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
21345 (tstsi_t_and_not): Delete.
21346 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
21347 Convert to insn_and_split.
21348 (unnamed split, tstsi_t_zero_extract_xor,
21349 tstsi_t_zero_extract_subreg_xor_little,
21350 tstsi_t_zero_extract_subreg_xor_big): Delete.
21351 (*tstsi_t_shift_mask): New insn_and_split.
21352 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
21353 to recombine with surrounding insns when splitting.
21354 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
21355 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
21356 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
21357 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
21358 (*cbranch_div0s: Delete.
21359 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
21360 Try to recombine with surrounding insns when splitting. Add operand
21362 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
21363 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
21364 *addc_r_r_msb, *addc_2r_msb): Delete.
21365 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
21367 (*addc_negreg_t): New insn_and_split.
21368 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
21369 Try to recombine with surrounding insns when splitting.
21370 Add operand order variants.
21371 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
21372 insn_and_split patterns.
21373 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
21374 surrounding insns when splitting.
21375 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
21376 (*rotcl): Likewise. Add zero_extract variant.
21377 (*ashrsi2_31): New insn_and_split.
21378 (*negc): Convert to insn_and_split. Use treg_set_expr.
21379 (*zero_extend<mode>si2_disp_mem): Update comment.
21380 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
21382 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
21383 with surrounding insns when splitting.
21384 (any_treg_expr_to_reg): New insn_and_split.
21385 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
21386 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
21387 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
21388 *zero_extract_2): New single bit zero extract patterns.
21389 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
21390 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
21391 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
21392 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
21394 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
21395 register_operand for set source.
21397 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
21399 * i386.opt (prefetch_sse): New targetsave.
21400 * i386.c (ix86_function_specific_save): Save prefetch_sse.
21401 (ix86_function_specific_restore): Restore prefetch_sse and initialize
21402 ix86_cost/ix86_tune_cost.
21404 2015-01-23 David Malcolm <dmalcolm@redhat.com>
21406 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
21407 Support the JIT by using 0 as the language type.
21409 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
21412 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
21413 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
21414 (mark_regno_live, process_bb_lives): Pass new parameter value to
21415 make_hard_regno_born.
21417 2015-01-23 Jakub Jelinek <jakub@redhat.com>
21419 PR rtl-optimization/63637
21420 PR rtl-optimization/60663
21421 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
21422 if elt->cost is MAX_COST for ASM_OPERANDS.
21423 (find_sets_in_insn): Fix up comment typo.
21424 (cse_insn): Don't set src_volatile for all non-volatile
21425 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
21426 or with "memory" clobber. Set elt->cost to MAX_COST
21427 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
21428 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
21430 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
21432 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
21435 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
21437 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
21438 libgcc/config/i386/elf-lib.h.
21440 2015-01-23 Jakub Jelinek <jakub@redhat.com>
21443 * gcc.c (print_configuration): Don't print a blank line at the end
21445 (run_attempt): ... but here unstead.
21447 PR middle-end/64734
21448 * omp-low.c (scan_sharing_clauses): Don't ignore
21449 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
21450 on target data/update constructs.
21452 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
21455 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
21456 (DEBUG_RELOAD): Removed define.
21457 (m32c_limit_reload_class): Enable traces with if DEBUG0.
21458 (m32c_function_arg): Added a type cast.
21459 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
21460 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
21461 * config/m32c/bitops.md (andqi3_16): Likewise.
21462 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
21463 (push_a01_l): Likewise.
21465 2015-01-23 David Malcolm <dmalcolm@redhat.com>
21468 * main.c (main): Construct toplev instances with init_signals=true.
21469 * toplev.c (general_init): Add param "init_signals", and use it to
21470 conditionalize the calls to signal and host_hooks.extra_signals.
21471 (toplev::toplev): Add param "init_signals".
21472 (toplev::main): When invoking general_init, pass m_init_signals
21473 to control whether signal-handlers are installed.
21474 * toplev.h (toplev::toplev): Add param "init_signals".
21475 (toplev::m_init_signals): New field.
21477 2015-01-23 David Malcolm <dmalcolm@redhat.com>
21480 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
21481 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
21482 latter may be affected by the former (e.g. on i686).
21484 2015-01-23 Martin Liska <mliska@suse.cz>
21486 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
21487 false positive during profiledbootstrap.
21489 2015-01-23 Tom de Vries <tom@codesourcery.com>
21492 * lto-opts.c (lto_write_options): Output non-explicit conservative
21494 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
21495 (append_compiler_options): Pass -fopenacc through.
21497 2015-01-23 Tom de Vries <tom@codesourcery.com>
21500 * lto-opts.c (lto_write_options): Output non-explicit conservative
21502 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
21503 (append_compiler_options): Pass -fopenmp through.
21505 2015-01-23 Jakub Jelinek <jakub@redhat.com>
21508 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
21511 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
21512 * diagnostic.def (DK_ICE_NOBT): New kind.
21513 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
21514 like DK_ICE, but never print backtrace.
21515 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
21516 (internal_error_no_backtrace): New function.
21517 * gcc.c (execute): Use internal_error_no_backtrace instead of
21520 2015-01-22 Jeff Law <law@redhat.com>
21523 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
21524 improve code density for small immediate to memory case.
21525 (insv): Better handle bitfield assignments when the field is
21526 being set to all ones.
21527 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
21530 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21531 Jakub Jelinek <jakub@redhat.com>
21533 PR middle-end/64729
21534 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
21535 for !TARGET_LIBC_PROVIDES_SSP version and
21536 -fstack-protector-{all,strong,explicit} otherwise.
21537 * config/freebsd.h (LINK_SSP_SPEC): Handle
21538 -fstack-protector-{strong,explicit}.
21540 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
21541 H.J. Lu <hongjiu.lu@intel.com>
21544 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
21547 2015-01-22 Wei Mi <wmi@google.com>
21549 PR rtl-optimization/64557
21550 * dse.c (record_store): Call get_addr for mem_addr.
21551 (check_mem_read_rtx): Likewise.
21553 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
21555 * fold-const.c (const_binop): Add early return for non-tcc_binary.
21557 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
21559 * toplev.c (init_local_tick): Process the failure when read
21560 fails for random_seed.
21562 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
21563 'pretty_name' to avoid memory overflow.
21565 2015-01-22 Richard Biener <rguenther@suse.de>
21567 PR middle-end/64728
21568 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
21569 abnormal coalescing on undefined SSA names.
21571 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
21575 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
21577 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
21579 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
21581 PR middle-end/63325
21582 * fold-const.c (fold_checksum_tree): Don't include value of
21583 expr->decl_with_vis.symtab_node in the checksum.
21585 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21587 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
21589 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
21592 * gcc.c (insert_comments): New function.
21593 (try_generate_repro): Call it.
21594 (append_text): Removed.
21596 2015-01-22 Richard Biener <rguenther@suse.de>
21598 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
21599 with IL incompatible options. Properly honor user optimize
21602 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
21604 PR rtl-optimization/64682
21605 * combine.c (distribute_notes): When moving a death note for
21606 a register that is set in the new I2, make sure to put it
21607 before that new I2.
21609 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
21611 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
21612 not TARGET_DEFAULT.
21614 2015-01-21 Jakub Jelinek <jakub@redhat.com>
21617 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
21618 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
21619 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
21622 * doc/invoke.texi (-fsanitize=vptr): Document.
21624 PR rtl-optimization/62078
21625 * dse.c: Include cfgcleanup.h.
21626 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
21627 anything call purge_all_dead_edges and cleanup_cfg at the end
21630 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
21632 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
21635 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
21637 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
21640 2015-01-21 David Sherwood <david.sherwood@arm.com>
21641 Tejas Belagod <Tejas.Belagod@arm.com>
21643 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
21644 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
21645 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
21648 2015-01-21 David Sherwood <david.sherwood@arm.com>
21649 Tejas Belagod <Tejas.Belagod@arm.com>
21651 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
21652 (aarch64_reverse_mask): New decls.
21653 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
21654 (insn_count): New mode_attr.
21655 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
21656 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
21657 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
21658 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
21659 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
21660 (aarch64_simd_st4): New patterns.
21661 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
21662 (aarch64_reverse_mask): New functions.
21664 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
21666 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
21668 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
21669 addressing modes for BE.
21670 (aarch64_print_operand): Add 'R' specifier.
21671 (aarch64_simd_disambiguate_copy): Delete.
21672 (aarch64_simd_emit_reg_reg_move): New function.
21673 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
21674 in define_splits for structural moves.
21675 (mov<mode>): Use less restrictive predicates.
21676 (*aarch64_mov<mode>): Simplify and only allow for LE.
21677 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
21679 2015-01-21 Alan Hayward <alan.hayward@arm.com>
21681 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
21683 2015-01-21 Richard Henderson <rth@redhat.com>
21686 * ccmp.c (used_in_cond_stmt_p): Remove.
21687 (expand_ccmp_expr): Don't use it.
21689 2015-01-21 Nick Clifton <nickc@redhat.com>
21691 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
21694 2015-01-21 Richard Biener <rguenther@suse.de>
21696 PR middle-end/64313
21697 * tree-core.h (builtin_info, builtin_info_type): Turn from
21698 an object with two arrays into an array of an object with
21699 decl and two flags, implicit_p and declared_p.
21700 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
21701 set_builtin_decl, set_builtin_decl_implicit_p,
21702 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
21703 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
21704 * builtins.c (builtin_info): Adjust.
21705 * gimplify.c (gimplify_addr_expr): References to builtins
21706 that have been declared by the user makes them eligible for
21707 use by the compiler. Call set_builtin_decl_implicit_p on them.
21709 2015-01-20 Jeff Law <law@redhat.com>
21712 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
21713 allow pc-relative addresses in operand predicates or constraints.
21715 2015-01-21 Bin Cheng <bin.cheng@arm.com>
21717 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
21718 neon on aarch32 processors for stringops.
21720 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
21723 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
21725 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
21728 * ipa-inline.c: Include lto-streamer.h
21729 (report_inline_failed_reason): Output source file differences and
21730 flags on optimization/target node mismatch.
21731 (can_inline_edge_p): Consider caller to be the outer inline function;
21732 be less restrictive about matching opimize and optimize_size attributes.
21733 (inline_account_function_p): Break out from ...
21734 (inline_small_functions): ... here.
21735 * ipa-inline-transform.c (clone_inlined_nodes): Use
21736 inline_account_function_p.
21737 (inline_call): Use optimize attribution; use inline_account_function_p.
21738 (inline_transform): Use opt_for_fn.
21739 * ipa-inline.h (inline_account_function_p): Declare.
21741 2015-01-20 Jakub Jelinek <jakub@redhat.com>
21744 * dwarf2out.c (decl_piece_node): Don't put bitsize into
21745 mode if bitsize <= 0.
21746 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
21747 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
21748 sizes and positions.
21750 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
21752 * config/nios2/nios2.c (nios2_asm_file_end): Implement
21753 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
21755 (TARGET_ASM_FILE_END): Define.
21757 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21759 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
21760 (struct tune_params): Use the enum.
21761 * arm.c (arm_*_tune): Update.
21762 (arm_option_override): Update.
21764 2015-01-20 Richard Biener <rguenther@suse.de>
21767 * ipa-reference.c (add_static_var): Inline ...
21768 (analyze_function): ... here after splitting out from ...
21769 (is_proper_for_analysis): ... this.
21771 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
21774 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
21775 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
21776 replace the conditional with it's true branch.
21777 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
21778 (arm_lra_p): Remove.
21780 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
21782 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
21784 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21786 * config/tilegx/mul-tables.c: Move symtab.h include after
21787 coretypes.h include.
21788 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
21789 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
21790 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
21791 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
21792 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
21794 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
21798 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
21800 PR rtl-optimization/64081
21801 * loop-iv.c (def_pred_latch_p): New function.
21802 (latch_dominating_def): Allow specific cases with non-single
21804 (iv_get_reaching_def): Likewise.
21805 (check_complex_exit_p): New function.
21806 (check_simple_exit): Use check_complex_exit_p to allow certain cases
21807 with exits not executing on any iteration.
21809 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
21812 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
21813 to set branch cost.
21815 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
21818 * i386.c (gate): Check flag_expensive_optimizations and
21820 (ix86_option_override_internal): Drop optimize_size condition
21821 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
21822 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
21823 MASK_PREFER_AVX128.
21824 (ix86_avx256_split_vector_move_misalign,
21825 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
21826 * sse.md (all uses of TARGET_PREFER_AVX128): Add
21827 optimize_insn_for_speed_p check.
21829 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
21831 * config/mips/mips.h (FP_ASM_SPEC): New define.
21832 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
21835 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
21838 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
21839 nullptr for insn when reaching the first insn.
21840 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
21841 (sh_insn_operands_modified_between_p): Add nullptr check.
21842 (sh_find_extending_set_of_reg): Fix log message. Don't accept
21843 sign extending mem load if the insn contains any UNSPEC or
21846 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
21848 * params.def (inline-unit-growth): Drop to 15%.
21849 * invoke.texi (inline-unit-growth): Document change.
21851 2015-01-19 Martin Liska <mliska@suse.cz>
21854 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
21855 function for second argument of OBJ_TYPE_REF.
21857 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
21860 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
21861 whether function is an alias.
21863 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
21865 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
21868 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
21870 PR rtl-optimization/64671
21871 * lra-remat.c (operand_to_remat): Don't consider jump and call
21874 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
21877 * config/rs6000/default64.h: Include rs6000-cpus.def.
21878 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
21879 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
21880 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
21882 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
21884 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
21885 pseudo-op to specify assembler dialect.
21887 2015-01-19 Martin Liska <mliska@suse.cz>
21890 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
21891 Handle safe potentially removed nodes during filtering.
21893 2015-01-19 Martin Liska <mliska@suse.cz>
21895 * doc/extend.texi (no_icf): Add new attribute description.
21896 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
21897 where the pass attempts to merge a function with no_icf attribute.
21899 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21902 * doc/md.texi (ARM Options): Document register constraints.
21904 2015-01-19 Jiong Wang <jiong.wang@arm.com>
21905 Andrew Pinski <apinski@cavium.com>
21908 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
21909 (ashl<mode>3): Don't expand if operands[2] is not constant.
21911 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21914 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
21915 Match xor-and-xor RTL pattern.
21917 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
21919 PR rtl-optimization/64081
21920 * loop-iv.c (def_pred_latch_p): New function.
21921 (latch_dominating_def): Allow specific cases with non-single
21923 (iv_get_reaching_def): Likewise.
21924 (check_complex_exit_p): New function.
21925 (check_simple_exit): Use check_complex_exit_p to allow certain cases
21926 with exits not executing on any iteration.
21928 2015-01-19 Jakub Jelinek <jakub@redhat.com>
21930 * common.opt (fgraphite): Fix a typo.
21932 2015-01-19 Felix Yang <felix.yang@huawei.com>
21934 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
21936 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
21937 uminp, smax_nanp, smin_nanp): New builtins.
21938 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
21939 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
21940 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
21941 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
21942 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
21943 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
21944 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
21945 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
21946 vpminnms_f32): Rewrite using builtin functions.
21948 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
21951 * omp-low.c (offload_symbol_decl): Remove variable.
21952 (get_offload_symbol_decl): Remove function.
21953 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
21954 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
21955 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
21956 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
21957 BUILT_IN_GOACC_UPDATE don't pass it at all.
21959 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
21961 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
21964 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
21966 * ipa-chkp.c (chkp_produce_thunks): Add early param
21967 to split thunks production into two passes. Keep
21968 'always_inline' function bodies after the first pass.
21969 (pass_data_ipa_chkp_early_produce_thunks): New.
21970 (pass_ipa_chkp_early_produce_thunks): New.
21971 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
21972 chkp_produce_thunks signature.
21973 (make_pass_ipa_chkp_early_produce_thunks): New.
21974 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
21975 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
21976 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
21978 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
21980 * cgraph.c (cgraph_node::dump): Dump profile flags.
21982 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
21985 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
21986 reg appear first in the parallel.
21988 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
21990 * ipa-reference.c (set_reference_optimization_summary,
21991 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
21993 (ignore_module_statics): New static var.
21994 (propagate_bits): If ipa-reference is disabled, do not look into local
21996 (analyze_function): Disable analysis when ipa_reference is disabled.
21997 (generate_summary): Do not dump when reference is disabled;
21998 collect vars accessed from functions with ipa-reference disabled.
21999 (get_read_write_all_from_node): When ipa-reference is disabled, use the
22001 (gate): Enable for LTO.
22002 (ignore_edge_p): New function.
22003 (propagate): Skip functions w/o ipa-reference analysis.
22004 * optc-save-gen.awk: Handle optimize_debug correctly.
22005 * opth-gen.awk: Likewise.
22006 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
22007 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
22008 fira-share-save-slots, fira-share-spill-slots,
22009 fmodulo-sched-allow-regmoves, fpartial-inlining,
22010 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
22011 ftracer, ftree-parallelize-loops, fassociative-math,
22012 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
22014 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
22015 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
22017 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
22020 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22023 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
22025 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
22027 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
22029 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
22030 Remove duplicate option listings.
22032 2015-01-18 Felix Yang <felix.yang@huawei.com>
22034 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
22035 (autofdo_source_profile::get_callsite_total_count,
22036 function_instance::get_function_instance_by_decl,
22037 string_table::get_index, string_table::get_index_by_decl,
22038 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
22039 Fix comment typos. Reformatting and minor code rearrangement.
22041 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22043 * config/rs6000/rs6000.md (probe_stack): Delete.
22044 (probe_stack_address): New.
22046 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22048 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
22049 to test for 32-bit ABIs, not !TARGET_POWERPC64.
22051 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22053 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
22054 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
22055 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
22057 (rs6000_libcall_value): Use the new function.
22059 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
22061 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
22063 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
22065 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
22066 implement a more precise life analysis for it during backward scan.
22068 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
22070 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
22072 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
22074 PR rtl-optimization/52773
22075 * calls.c (emit_library_call_value): When pushing arguments use
22076 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
22077 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
22078 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
22080 2015-01-17 Jeff Law <law@redhat.com>
22082 PR rtl-optimization/32790
22083 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
22084 not ZERO_EXTEND in SET_DESTs.
22086 2015-01-17 Alan Modra <amodra@gmail.com>
22088 * cprop.c (do_local_cprop): Revert last change.
22090 2015-01-16 DJ Delorie <dj@redhat.com>
22091 Nick Clifton <nickc@redhat.com>
22093 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
22094 (addhi3_real): Likewise. Fix [HL+0] syntax.
22095 (subqi3_real): Likewise.
22096 (subhi3_real): Likewise.
22097 (cbranchqi4_real): Likewise. Allow saddr,#imm.
22098 (cbranchhi4_real): Likewise.
22099 (cbranchhi4_real_inverted): Likewise.
22100 (cbranchsi4_real_lt): Likewise.
22101 (cbranchsi4_real_ge): Likewise.
22102 (cbranchsi4_real_ge): Likewise.
22103 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
22104 (sub<mode>3_virt): Likewise.
22105 (cbranchqi4_virt): Likewise.
22106 (cbranchhi4_virt): Likewise.
22107 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
22108 always use '[reg+imm]' even when imm is zero.
22109 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
22110 (rl78_general_operand): New.
22111 (rl78_nonimmediate_operand): New.
22112 (rl78_nonfar_operand): Use them.
22113 (rl78_nonfar_nonimm_operand): Likewise.
22114 (rl78_stack_based_mem): Fix.
22115 * config/rl78/constraints.md (Ibqi): New.
22120 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
22121 (iorqi3): Likewise.
22122 (xorqi3): Likewise.
22123 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
22125 * config/rl78/constrains (Qs8): New constraint.
22126 * config/rl78/rl78.c (rl78_flags_already_set): New function.
22127 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
22128 * config/rl78/rl78-real.md (update_Z): New attribute.
22129 Update patterns to set it.
22130 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
22131 shorter compare and branch sequence can be used.
22132 (cbranchhi4_real): Likewise.
22133 (cbranchhi4_real_inverted): Likewise.
22135 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
22136 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
22138 * config/rl78/rl78.c (rl78_get_name_encoding): New.
22139 (rl78_option_override): Allow -mes0 only if C.
22140 (characterize_address): Support subregs of symbol_refs.
22141 (rl78_addr_space_address_mode): Move. Add __near.
22142 (rl78_far_p): Likewise.
22143 (rl78_addr_space_pointer_mode): Likewise.
22144 (rl78_as_legitimate_address): Likewise.
22145 (rl78_addr_space_subset_p): Likewise.
22146 (rl78_addr_space_convert): Likewise.
22147 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
22148 symbols with -mes0.
22149 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
22151 (rl78_alloc_physical_registers_op1): Change logic to prefer
22152 symbol[BC] addressing.
22153 (frodata_section): New.
22154 (rl78_asm_init_sections): Initialize it.
22155 (rl78_select_section): Put __far readonly symbols in .frodata.
22156 (rl78_make_type_far): New.
22157 (rl78_insert_attributes): Force all readonly symbols to be
22159 (rl78_asm_out_integer): New.
22160 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
22161 * config/rl78/rl78.opt (-mes0): New.
22163 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
22164 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
22165 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
22166 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
22167 (rl78_saddr_p): New.
22168 (rl78_output_aligned_common): New.
22169 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
22170 (rl78_handle_saddr_attribute): New.
22171 (rl78_handle_naked_attribute): New.
22172 (rl78_attribute_table): Add saddr.
22173 (rl78_print_operand_1): Don't print '!' on saddr operands.
22174 (rl78_print_operand_1): Strip encodings.
22176 (rl78_strip_name_encoding): New.
22177 (rl78_attrlist_to_encoding): New.
22178 (rl78_encode_section_info): New.
22179 (rl78_asm_init_sections): New.
22180 (rl78_select_section): New.
22181 (rl78_output_labelref): New.
22182 (rl78_output_aligned_common): New.
22183 (rl78_asm_out_integer): New.
22184 (rl78_asm_ctor_dtor): New.
22185 (rl78_asm_constructor): New.
22186 (rl78_asm_destructor): New.
22188 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
22189 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
22190 (transcode_memory_rtx): Update.
22191 (rl78_expand_epilogue): Use A_REG instead of 0.
22193 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22195 * config/arm/arm-protos.h (struct tune_params): New field
22196 sched_autopref_queue_depth.
22197 * config/arm/arm.c (sched-int.h): Include header.
22198 (arm_first_cycle_multipass_dfa_lookahead_guard,)
22199 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
22200 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
22201 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
22202 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
22203 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
22204 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
22205 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
22206 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
22207 * config/arm/t-arm (arm.o): Update.
22208 * haifa-sched.c (update_insn_after_change): Update.
22209 (rank_for_schedule): Use auto-prefetcher model, if requested.
22210 (autopref_multipass_init): New static function.
22211 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
22212 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
22213 variable for debug dumps.
22214 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
22215 (autopref_multipass_dfa_lookahead_guard): New global function that
22216 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
22217 (init_h_i_d): Update.
22218 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
22219 * sched-int.h (enum autopref_multipass_data_status): New const enum.
22220 (autopref_multipass_data_): Structure for auto-prefetcher data.
22221 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
22222 (struct _haifa_insn_data:autopref_multipass_data): New field.
22223 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
22224 (autopref_multipass_dfa_lookahead_guard): Declare.
22226 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22228 * rtlanal.c (get_base_term): Handle SCRATCH.
22230 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22232 * config/aarch64/aarch64.c
22233 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
22234 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22236 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
22237 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
22239 2015-01-17 Alan Modra <amodra@gmail.com>
22241 * cprop.c (do_local_cprop): Disallow replacement of fixed
22244 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22247 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
22250 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
22252 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
22253 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
22255 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22257 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
22258 * config/arm/thumb1.md: ... Here.
22260 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
22262 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
22263 TImode for TARGET_32BIT.
22265 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
22267 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
22268 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
22270 (rs6000_abi_word_mode): New function.
22272 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
22274 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
22275 instead of UNITS_PER_WORD to describe the size of stack slots.
22277 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
22279 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
22280 as rs6000_promote_function_mode. Move comment to there.
22281 (rs6000_promote_function_mode): New function.
22283 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
22285 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
22286 -mpowerpc64 is active.
22288 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
22290 PR middle-end/64353
22291 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
22294 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
22296 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
22297 introduced in revision 219724.
22299 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22300 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22303 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
22304 destination is not a GP reg.
22305 (*movdi_aarch64): Likewise.
22307 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
22310 * config/rs6000/default64.h: Revert ISA change.
22312 2015-01-16 Richard Biener <rguenther@suse.de>
22314 PR middle-end/64614
22315 * tree-ssa-uninit.c: Include tree-cfg.h.
22316 (MAX_SWITCH_CASES): New define.
22317 (convert_control_dep_chain_into_preds): Handle switch statements.
22318 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
22319 (normalize_one_pred_1): Do not split bit-manipulations.
22322 2015-01-16 Richard Biener <rguenther@suse.de>
22324 PR tree-optimization/64568
22325 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
22326 complex load rewriting for TARGET_MEM_REFs.
22328 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
22330 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
22332 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
22335 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
22337 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
22338 (aarch64_lra_p): Remove.
22340 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
22343 * ipa-chkp.h (chkp_instrumentable_p): New.
22344 * ipa-chkp.c: Include tree-inline.h.
22345 (chkp_instrumentable_p): New.
22346 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
22347 Fix processing of not instrumentable functions.
22348 (chkp_versioning): Use chkp_instrumentable_p. Warn about
22349 not instrumentable functions.
22350 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
22351 chkp_instrumentable_p.
22352 * tree-inline.h (copy_forbidden): New.
22353 * tree-inline.c (copy_forbidden): Not static anymore.
22355 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22357 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
22360 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
22362 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
22363 type OP_OUT to OP_INOUT.
22365 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
22367 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
22368 (high x) y) to y if x and y have the same base.
22370 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
22372 * config/arm/cortex-a57.md: New.
22373 * config/aarch64/aarch64.md: Include it.
22374 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
22375 * config/aarch64/aarch64-tune.md: Regenerate.
22377 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
22380 * ccmp.c (expand_ccmp_next): New function.
22381 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
22382 and compare insn sequence.
22383 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
22384 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
22385 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
22386 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
22387 (*ccmp_ior): Changed to ccmp_ior<mode>.
22388 (cmp<mode>): New pattern.
22389 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
22391 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
22393 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
22395 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
22396 _mm256_bsrli_epi128): New.
22397 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
22399 2015-01-15 Jiong Wang <jiong.wang@arm.com>
22401 * expmed.c (store_bit_field_using_insv): Improve warning message.
22402 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
22404 2015-01-15 Jiong Wang <jiong.wang@arm.com>
22406 PR rtl-optimization/64011
22407 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
22408 there is partial overflow.
22410 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
22412 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
22414 (nds32_expand_epilogue_v3pop): Likewise.
22415 * config/nds32/nds32.md (sibcall): Define this for sibling call
22417 (sibcall_register): Likewise.
22418 (sibcall_immediate): Likewise.
22419 (sibcall_value): Likewise.
22420 (sibcall_value_register): Likewise.
22421 (sibcall_value_immediate): Likewise.
22422 (sibcall_epilogue): Likewise.
22423 (epilogue): Pass false to indicate this is not a sibcall epilogue.
22424 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
22425 (nds32_expand_epilogue_v3pop): Likewise.
22427 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
22429 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
22430 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
22431 (return_internal): New.
22432 (return): Define this named pattern.
22433 (simple_return): Define this named pattern.
22434 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
22435 pattern instead of unspec_volatile_func_return.
22436 (nds32_expand_epilogue_v3pop): Likewise.
22437 (nds32_can_use_return_insn): New function.
22439 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
22441 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
22442 * config/nds32/nds32.md (pop25return): New.
22443 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
22444 pop25return pattern.
22446 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
22448 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
22449 -mforbid-fp-as-gp, and -mex9 options.
22451 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
22453 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
22454 remove -mgp-direct option.
22456 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
22458 * doc/invoke.texi (--param early-inlining-insns): Update default value.
22459 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
22461 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
22463 * ipa-inline.c (inline_small_functions): Work around hints
22466 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
22469 * doc/invoke.texi (Option Summary): Document new Nios II
22471 (Nios II Options): Likewise.
22472 * config/nios2/nios2.opt: Add -mgpopt= option support.
22473 Modify existing -mgpopt and -mno-gpopt options to be aliases.
22474 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
22475 * config/nios2/nios2.c (nios2_option_override): Adjust
22476 -mgpopt defaulting.
22477 (nios2_in_small_data_p): Return true for explicit small data
22478 sections even with -G0.
22479 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
22482 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
22485 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
22487 (inline_call): Fix removal of aliases.
22489 2015-01-15 Jakub Jelinek <jakub@redhat.com>
22491 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
22492 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
22493 * opts.c (common_handle_option): Add -fsanitize=vptr.
22494 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
22495 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
22496 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
22497 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
22498 (ubsan_expand_vptr_ifn): New prototype.
22499 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
22500 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
22501 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
22502 expand_LOOP_VECTORIZED): Make argument nameless, remove
22504 (expand_UBSAN_VPTR): New function.
22505 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
22507 (UBSAN_VPTR): New internal function.
22508 * sanopt.c (tree_map_traits): Renamed to ...
22509 (sanopt_tree_map_traits): ... this.
22510 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
22511 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
22512 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
22513 (maybe_optimize_ubsan_vptr_ifn): New function.
22514 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
22515 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
22517 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
22518 internal calls like pure functions for aliasing, even when they
22519 have other side-effects that prevent making them ECF_PURE.
22520 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
22521 (ubsan_expand_vptr_ifn): New function.
22523 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
22525 PR rtl-optimization/64110
22526 * stmt.c (parse_output_constraint): Process '^' and '$'.
22527 (parse_input_constraint): Ditto.
22528 * lra-constraints.c (process_alt_operands): Process the new
22530 * ira-costs.c (record_reg_classes): Process the new constraint
22532 * genoutput.c (indep_constraints): Add '^' and '$'.
22533 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
22534 * doc/md.texi: Add description of the new constraints.
22536 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
22537 Bernd Schmidt <bernds@codesourcery.com>
22538 Cesar Philippidis <cesar@codesourcery.com>
22539 James Norris <jnorris@codesourcery.com>
22540 Tom de Vries <tom@codesourcery.com>
22541 Ilmir Usmanov <i.usmanov@samsung.com>
22542 Dmitry Bocharnikov <dmitry.b@samsung.com>
22543 Evgeny Gavrin <e.gavrin@samsung.com>
22544 Jakub Jelinek <jakub@redhat.com>
22546 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
22547 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
22548 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
22549 New function types.
22550 * builtins.c: Include "gomp-constants.h".
22551 (expand_builtin_acc_on_device): New function.
22552 (expand_builtin, is_inexpensive_builtin): Handle
22553 BUILT_IN_ACC_ON_DEVICE.
22554 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
22556 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
22558 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
22559 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
22560 i386/intelmic-offload.h.
22561 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
22562 to libgomp and its dependencies.
22563 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
22564 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
22565 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
22566 * config/ia64/hpux.h (LIB_SPEC): Likewise.
22567 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
22568 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
22569 * doc/generic.texi: Update for OpenACC changes.
22570 * doc/gimple.texi: Likewise.
22571 * doc/invoke.texi: Likewise.
22572 * doc/sourcebuild.texi: Likewise.
22573 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
22574 GF_OMP_FOR_KIND_OACC_LOOP.
22575 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
22576 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
22577 GF_OMP_TARGET_KIND_OACC_UPDATE,
22578 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
22580 * gimple.c: Update comments for OpenACC changes.
22581 * gimple.def: Likewise.
22582 * gimple.h: Likewise.
22583 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
22584 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
22585 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
22586 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
22587 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
22589 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
22590 * gimplify.c: Include "gomp-constants.h".
22591 Update comments for OpenACC changes.
22592 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
22593 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
22594 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
22595 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
22596 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
22597 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
22598 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
22599 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
22600 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
22602 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
22603 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
22604 OMP_CLAUSE_SET_MAP_KIND.
22605 (gimplify_oacc_cache): New function.
22606 (gimplify_omp_for): Handle OACC_LOOP.
22607 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
22609 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
22610 OACC_EXIT_DATA, OACC_UPDATE.
22611 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
22612 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
22613 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
22614 (gimplify_body): Consider flag_openacc next to flag_openmp.
22615 * lto-streamer-out.c: Include "gomp-constants.h".
22616 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
22617 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
22618 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
22619 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
22620 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
22621 (BUILT_IN_ACC_ON_DEVICE): New builtins.
22622 * omp-low.c: Include "gomp-constants.h".
22623 Update comments for OpenACC changes.
22624 (struct omp_context): Add reduction_map, gwv_below, gwv_this
22626 (extract_omp_for_data, use_pointer_for_field, install_var_field)
22627 (new_omp_context, delete_omp_context, scan_sharing_clauses)
22628 (create_omp_child_function, scan_omp_for, scan_omp_target)
22629 (check_omp_nesting_restrictions, lower_reduction_clauses)
22630 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
22631 Update for OpenACC changes.
22632 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
22633 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
22634 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
22635 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
22636 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
22637 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
22639 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
22640 Handle GF_OMP_FOR_KIND_OACC_LOOP.
22641 (expand_omp_target, lower_omp_target): Handle
22642 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
22643 GF_OMP_TARGET_KIND_OACC_UPDATE,
22644 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
22645 GF_OMP_TARGET_KIND_OACC_DATA.
22646 (pass_expand_omp::execute, execute_lower_omp)
22647 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
22649 (offload_symbol_decl): New variable.
22650 (oacc_get_reduction_array_id, oacc_max_threads)
22651 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
22652 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
22653 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
22654 (oacc_gimple_assign, oacc_initialize_reduction_data)
22655 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
22657 (is_targetreg_ctx): Remove function.
22658 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
22659 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
22660 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
22661 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
22662 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
22663 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
22664 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
22665 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
22666 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
22667 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
22668 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
22669 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
22670 * tree-core.h: Update comments for OpenACC changes.
22671 (enum omp_clause_map_kind): Remove.
22672 (struct tree_omp_clause): Change type of map_kind member from enum
22673 omp_clause_map_kind to unsigned char.
22674 * tree-inline.c: Update comments for OpenACC changes.
22675 * tree-nested.c: Likewise. Include "gomp-constants.h".
22676 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
22677 (convert_tramp_reference_stmt, convert_gimple_call): Update for
22678 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
22679 OMP_CLAUSE_SET_MAP_KIND.
22680 * tree-pretty-print.c: Include "gomp-constants.h".
22681 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
22682 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
22683 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
22684 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
22685 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
22686 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
22687 instead of OMP_CLAUSE_MAP_*.
22688 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
22689 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
22690 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
22691 * tree-streamer-in.c: Include "gomp-constants.h".
22692 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
22693 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
22694 * tree-streamer-out.c: Include "gomp-constants.h".
22695 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
22697 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
22698 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
22699 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
22700 * tree.c (omp_clause_num_ops): Update accordingly.
22701 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
22703 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
22704 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
22705 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
22706 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
22707 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
22708 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
22709 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
22710 (OMP_CLAUSE_SET_MAP_KIND): New macro.
22711 * varpool.c (varpool_node::get_create): Consider flag_openacc next
22713 * config/i386/intelmic-offload.h: New file.
22714 * config/nvptx/offload.h: Likewise.
22716 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22718 * explow.h: Remove duplicate contents.
22719 * dojump.h: Likewise.
22721 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
22723 * arm.c (arm_xgene_tune): Add default initializer for instruction
22726 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
22730 * ipa.c (symbol_table::remove_unreachable_nodes):
22731 Do not put abstract origins into boundary.
22733 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
22735 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
22736 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
22738 2015-01-15 Steve Ellcey <sellcey@mips.com>
22740 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
22741 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
22742 builtins.def, and chkp-builtins.def.
22744 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
22746 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
22749 2015-01-15 Richard Biener <rguenther@suse.de>
22751 PR tree-optimization/61743
22752 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
22753 information on PHIs for some simple cases.
22755 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22757 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
22759 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
22760 * config/arm/arm-cores.def (xgene1): New entry.
22761 * config/arm/arm-tables.opt: Regenerate.
22762 * config/arm/arm-tune.md: Regenerate.
22763 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
22765 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
22767 * tree-if-conv.c: Include hash-map.h.
22768 (aggressive_if_conv): New variable.
22769 (fold_build_cond_expr): Add simplification of non-zero condition.
22770 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
22771 destination block is not always executed.
22772 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
22773 than two predecessors if AGGRESSIVE_IF_CONV is true.
22774 (if_convertible_stmt_p): Fix commentary.
22775 (all_preds_critical_p): New function.
22776 (has_pred_critical_p): New function.
22777 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
22778 BB can have more than two predecessors and all incoming edges can be
22780 (predicate_bbs): Skip predication for loop exit block, use build2_loc
22781 to compute predicate for true edge.
22782 (find_phi_replacement_condition): Delete this function.
22783 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
22784 Allow interchange PHI arguments if EXTENDED is false.
22785 Change check that block containing reduction statement candidate
22786 is predecessor of phi-block since phi may have more than two arguments.
22787 (phi_args_hash_traits): New helper structure.
22788 (struct phi_args_hash_traits): New type.
22789 (phi_args_hash_traits::hash): New function.
22790 (phi_args_hash_traits::equal_keys): New function.
22791 (gen_phi_arg_condition): New function.
22792 (predicate_scalar_phi): Add handling of phi nodes with more than two
22793 arguments, delete COND and TRUE_BB arguments, insert body of
22794 find_phi_replacement_condition to predicate ordinary phi nodes.
22795 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
22796 delete call of find_phi_replacement_condition and invoke
22797 predicate_scalar_phi with two arguments.
22798 (insert_gimplified_predicates): Add assert that non-predicated block
22799 don't have statements to insert.
22800 (ifcvt_split_critical_edges): New function.
22801 (ifcvt_split_def_stmt): Likewise.
22802 (ifcvt_walk_pattern_tree): Likewise.
22803 (stmt_is_root_of_bool_pattern): Likewise.
22804 (ifcvt_repair_bool_pattern): Likewise.
22805 (ifcvt_local_dce): Likewise.
22806 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
22807 is copy of inner or outer loop force_vectorize field, invoke
22808 ifcvt_split_critical_edges, ifcvt_local_dce and
22809 ifcvt_repair_bool_pattern for aggressive if-conversion.
22811 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
22813 * config/aarch64/aarch64.md: Include xgene1.md.
22814 * config/aarch64/xgene1.md: New file.
22816 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
22818 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
22819 xgene1 (APM XGene-1) core definition.
22820 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
22821 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
22822 * doc/invoke.texi: Document -mcpu=xgene1.
22824 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22826 * dojump.h: New header file.
22827 * explow.h: Likewise.
22828 * expr.h: Remove includes.
22829 Move expmed.c prototypes to expmed.h.
22830 Move dojump.c prototypes to dojump.h.
22831 Move alias.c prototypes to alias.h.
22832 Move explow.c prototypes to explow.h.
22833 Move calls.c prototypes to calls.h.
22834 Move emit-rtl.c prototypes to emit-rtl.h.
22835 Move varasm.c prototypes to varasm.h.
22836 Move stmt.c prototypes to stmt.h.
22837 (saved_pending_stack_adjust): Move to dojump.h.
22838 (adjust_address): Move to explow.h.
22839 (adjust_address_nv): Move to emit-rtl.h.
22840 (adjust_bitfield_address): Likewise.
22841 (adjust_bitfield_address_size): Likewise.
22842 (adjust_bitfield_address_nv): Likewise.
22843 (adjust_automodify_address_nv): Likewise.
22844 * explow.c (expr_size): Move to expr.c.
22845 (int_expr_size): Likewise.
22846 (tree_expr_size): Likewise.
22847 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22848 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
22849 * genemit.c (main): Generate includes statistics.h, real.h,
22850 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
22852 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
22853 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
22854 explow.h, emit-rtl.h, stmt.h.
22855 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
22856 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
22857 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
22858 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
22859 emit-rtl.h, varasm.h, stmt.h.
22860 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
22861 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
22862 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
22863 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
22864 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22865 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
22866 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
22867 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
22868 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
22869 tm.h tree.h varasm.h vec.h wide-int.h.
22870 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22871 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
22872 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
22873 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
22874 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
22875 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
22876 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
22877 * loop-iv.c: Likewise.
22878 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
22879 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
22880 statistics.h stmt.h tree.h varasm.h wide-int.h.
22881 * lra-constraints.c: Likewise.
22882 * lra-eliminations.c: Likewise.
22883 * lra-lives.c: Likewise.
22884 * lra-remat.c: Likewise.
22885 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22886 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
22887 statistics.h stmt.h tree.h varasm.h wide-int.h.
22888 * hw-doloop.c: Likewise.
22889 * ira-color.c: Likewise.
22890 * ira-emit.c: Likewise.
22891 * loop-doloop.c: Likewise.
22892 * loop-invariant.c: Likewise.
22893 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22894 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
22895 statistics.h stmt.h tree.h varasm.h wide-int.h.
22896 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
22897 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
22898 statistics.h stmt.h tree.h varasm.h wide-int.h.
22899 * combine-stack-adj.c: Likewise.
22902 * ifcvt.c: Likewise.
22903 * ira-costs.c: Likewise.
22904 * jump.c: Likewise.
22905 * lra-coalesce.c: Likewise.
22906 * lra-spills.c: Likewise.
22907 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22908 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
22909 stmt.h varasm.h wide-int.h.
22910 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
22911 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
22913 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
22914 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
22915 statistics.h stmt.h varasm.h wide-int.h.
22916 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
22917 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
22918 varasm.h wide-int.h.
22919 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
22920 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
22921 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
22922 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
22923 statistics.h stmt.h.
22924 * config/tilepro/tilepro.c: Likewise.
22925 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
22926 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
22927 * config/pdp11/pdp11.c: Likewise.
22928 * config/xtensa/xtensa.c: Likewise.
22929 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
22930 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
22932 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22933 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
22934 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
22935 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22936 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
22937 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
22938 * rtl-chkp.c: Likewise.
22939 * tree-chkp-opt.c: Likewise.
22940 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
22941 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
22942 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
22943 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22944 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
22945 statistics.h stmt.h.
22946 * tree-vect-data-refs.c: Likewise.
22947 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
22948 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22949 rtl.h statistics.h stmt.h varasm.h.
22950 * internal-fn.c: Likewise.
22951 * ipa-icf-gimple.c: Likewise.
22952 * lto-section-out.c: Likewise.
22953 * tree-data-ref.c: Likewise.
22954 * tree-nested.c: Likewise.
22955 * tree-outof-ssa.c: Likewise.
22956 * tree-predcom.c: Likewise.
22957 * tree-pretty-print.c: Likewise.
22958 * tree-scalar-evolution.c: Likewise.
22959 * tree-ssa-strlen.c: Likewise.
22960 * tree-vect-loop.c: Likewise.
22961 * tree-vect-patterns.c: Likewise.
22962 * tree-vect-slp.c: Likewise.
22963 * tree-vect-stmts.c: Likewise.
22964 * tsan.c: Likewise.
22965 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22966 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
22968 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
22969 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
22970 statistics.h stmt.h varasm.h.
22971 * loop-unroll.c: Likewise.
22972 * ubsan.c: Likewise.
22973 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
22974 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
22976 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
22977 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
22978 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
22979 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
22980 statistics.h stmt.h.
22981 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
22982 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
22983 statistics.h stmt.h varasm.h.
22984 * gimple-match-head.c: Likewise.
22985 * lto-cgraph.c: Likewise.
22986 * lto-section-in.c: Likewise.
22987 * lto-streamer-in.c: Likewise.
22988 * lto-streamer-out.c: Likewise.
22989 * tree-affine.c: Likewise.
22990 * tree-cfg.c: Likewise.
22991 * tree-cfgcleanup.c: Likewise.
22992 * tree-if-conv.c: Likewise.
22993 * tree-into-ssa.c: Likewise.
22994 * tree-ssa-alias.c: Likewise.
22995 * tree-ssa-copyrename.c: Likewise.
22996 * tree-ssa-dse.c: Likewise.
22997 * tree-ssa-forwprop.c: Likewise.
22998 * tree-ssa-live.c: Likewise.
22999 * tree-ssa-math-opts.c: Likewise.
23000 * tree-ssa-pre.c: Likewise.
23001 * tree-ssa-sccvn.c: Likewise.
23002 * tree-tailcall.c: Likewise.
23003 * tree-vect-generic.c: Likewise.
23004 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23005 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
23006 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23007 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
23008 * varasm.c: Likewise.
23009 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23010 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
23012 * init-regs.c: Likewise.
23014 * omp-low.c: Likewise.
23015 * stack-ptr-mod.c: Likewise.
23016 * tree-ssa-reassoc.c: Likewise.
23017 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23018 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
23020 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23021 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
23022 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23023 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
23024 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23025 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
23026 * tree-ssa-phiopt.c: Likewise.
23027 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23028 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23029 * config/fr30/fr30.c: Likewise.
23030 * config/frv/frv.c: Likewise.
23031 * expr.c: Likewise.
23032 * final.c: Likewise.
23033 * optabs.c: Likewise.
23034 * passes.c: Likewise.
23035 * simplify-rtx.c: Likewise.
23036 * stmt.c: Likewise.
23037 * toplev.c: Likewise.
23038 * var-tracking.c: Likewise.
23039 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23040 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23041 * lower-subreg.c: Likewise.
23042 * postreload-gcse.c: Likewise.
23044 * reginfo.c: Likewise.
23045 * store-motion.c: Likewise.
23046 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23047 fixed-value.h hashtab.h real.h stmt.h varasm.h.
23048 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23049 fixed-value.h hashtab.h statistics.h stmt.h.
23050 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23051 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23052 * except.c: Likewise.
23053 * explow.c: Likewise.
23054 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23055 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
23057 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23058 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
23059 * tree-ssa-structalias.c: Likewise.
23060 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23061 fixed-value.h insn-config.h real.h statistics.h.
23062 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23063 fixed-value.h insn-config.h real.h statistics.h stmt.h.
23064 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23065 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23066 * cfgbuild.c: Likewise.
23067 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23068 fixed-value.h real.h rtl.h statistics.h stmt.h.
23069 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23070 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23071 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23072 fixed-value.h real.h statistics.h stmt.h.
23073 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23074 fixed-value.h real.h statistics.h stmt.h varasm.h.
23075 * cprop.c: Likewise.
23076 * modulo-sched.c: Likewise.
23077 * postreload.c: Likewise.
23078 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23079 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
23080 statistics.h stmt.h varasm.h.
23081 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
23082 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23083 rtl.h statistics.h stmt.h varasm.h.
23084 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
23085 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
23087 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23088 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
23090 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
23091 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
23093 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
23094 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23095 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23096 function.h real.h statistics.h stmt.h varasm.h.
23097 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23098 insn-config.h real.h statistics.h stmt.h.
23099 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
23100 statistics.h stmt.h.
23101 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
23102 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
23103 statistics.h stmt.h varasm.h.
23104 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
23105 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
23106 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23107 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
23108 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
23109 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23110 statistics.h stmt.h varasm.h.
23111 * ipa-polymorphic-call.c: Likewise.
23112 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
23113 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23114 statistics.h stmt.h.
23115 * config/c6x/c6x.c: Likewise.
23116 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
23117 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23118 statistics.h stmt.h varasm.h.
23119 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
23120 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
23122 * ipa-split.c: Likewise.
23123 * tree-eh.c: Likewise.
23124 * tree-ssa-dce.c: Likewise.
23125 * tree-ssa-loop-niter.c: Likewise.
23126 * tree-vrp.c: Likewise.
23127 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
23128 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
23130 * config/nds32/nds32-fp-as-gp.c: Likewise.
23131 * config/nds32/nds32-intrinsic.c: Likewise.
23132 * config/nds32/nds32-isr.c: Likewise.
23133 * config/nds32/nds32-md-auxiliary.c: Likewise.
23134 * config/nds32/nds32-memory-manipulation.c: Likewise.
23135 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23136 * config/nds32/nds32-predicates.c: Likewise.
23137 * config/nds32/nds32.c: Likewise.
23138 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
23139 fixed-value.h hashtab.h real.h statistics.h.
23140 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
23141 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23142 * config/arm/arm.c: Likewise.
23143 * config/avr/avr.c: Likewise.
23144 * config/bfin/bfin.c: Likewise.
23145 * config/h8300/h8300.c: Likewise.
23146 * config/i386/i386.c: Likewise.
23147 * config/ia64/ia64.c: Likewise.
23148 * config/iq2000/iq2000.c: Likewise.
23149 * config/m32c/m32c.c: Likewise.
23150 * config/m32r/m32r.c: Likewise.
23151 * config/m68k/m68k.c: Likewise.
23152 * config/mcore/mcore.c: Likewise.
23153 * config/mep/mep.c: Likewise.
23154 * config/mips/mips.c: Likewise.
23155 * config/mn10300/mn10300.c: Likewise.
23156 * config/moxie/moxie.c: Likewise.
23157 * config/pa/pa.c: Likewise.
23158 * config/rl78/rl78.c: Likewise.
23159 * config/rx/rx.c: Likewise.
23160 * config/s390/s390.c: Likewise.
23161 * config/sh/sh.c: Likewise.
23162 * config/sparc/sparc.c: Likewise.
23163 * config/spu/spu.c: Likewise.
23164 * config/stormy16/stormy16.c: Likewise.
23165 * config/v850/v850.c: Likewise.
23166 * config/vax/vax.c: Likewise.
23167 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
23168 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23169 * config/msp430/msp430.c: Likewise.
23170 * predict.c: Likewise.
23171 * value-prof.c: Likewise.
23172 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
23173 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
23174 * config/microblaze/microblaze.c: Likewise.
23175 * config/nios2/nios2.c: Likewise.
23176 * config/rs6000/rs6000.c: Likewise.
23177 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23178 insn-config.h real.h rtl.h statistics.h stmt.h.
23179 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
23180 insn-config.h real.h statistics.h stmt.h.
23181 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
23182 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23183 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
23184 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23185 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
23186 fixed-value.h real.h statistics.h stmt.h.
23187 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
23188 fixed-value.h statistics.h stmt.h.
23189 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
23192 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23194 * gengtype.c (create_user_defined_type): Workaround
23195 -Wmaybe-uninitialized false positives.
23196 * cse.c (fold_rtx): Likewise.
23197 * loop-invariant.c (gain_for_invariant): Likewise.
23199 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
23201 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
23202 set the memory attributes in all cases but clear MEM_EXPR if need be.
23204 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
23206 PR tree-optimization/64434
23207 * cfgexpand.c (reorder_operands): New function.
23208 (expand_gimple_basic_block): Insert call of reorder_operands if
23211 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
23213 * config/mips/micromips.md (*swp): Remove explicit parallel.
23214 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
23215 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
23216 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
23217 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
23218 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
23219 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
23220 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
23221 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
23222 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
23223 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
23224 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
23225 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
23226 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
23227 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
23228 (mips_wrdsp): Likewise.
23229 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
23231 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
23232 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
23233 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
23234 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
23235 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
23236 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
23237 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
23238 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
23239 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
23241 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
23243 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
23244 (mips_print_operand): Support 'y' to print exact log2 in decimal
23246 * config/mips/mips.h (ISA_HAS_LSA): New define.
23247 (ISA_HAS_DLSA): Likewise.
23248 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
23249 * config/mips/predicates.md (const_immlsa_operand): New predicate.
23251 2015-01-15 Martin Liska <mliska@suse.cz>
23254 * optc-save-gen.awk: Add support for array types.
23256 2015-01-15 Richard Biener <rguenther@suse.de>
23258 PR middle-end/64365
23259 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
23260 for MEM_REF access functions with the same base can never partially
23263 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
23265 * common.opt: New option -fstack-protector-explicit.
23266 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
23267 (stack_protect_decl_phase): Handle stack_protect attribute for
23268 explicit stack protection requests.
23269 (expand_used_vars): Similarly.
23270 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
23271 * doc/extend.texi: Add documentation for "stack_protect" attribute.
23272 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
23274 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
23277 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
23279 (sh_extending_set_of_reg): New struct.
23280 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
23281 sh_remove_reg_dead_or_unused_notes): New Declarations.
23282 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
23283 sh_find_extending_set_of_reg, sh_split_tst_subregs,
23284 sh_extending_set_of_reg::use_as_extended_reg): New functions.
23285 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
23286 convert to insn_and_split and use new function sh_split_tst_subregs.
23288 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
23290 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
23292 (Optimization Options): Move -fuse-ld documentation to...
23293 (Link Options): ...here.
23295 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
23297 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
23299 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
23300 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
23301 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
23302 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
23303 instead of ZR for the memory operand of LL/SC.
23304 (compare_and_swap_12, sync_add<mode>): Likewise.
23305 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
23306 (sync_new_<optab>_12, sync_nand_12): Likewise.
23307 (sync_old_nand_12, sync_new_nand_12): Likewise.
23308 (sync_sub<mode>, sync_old_add<mode>): Likewise.
23309 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
23310 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
23311 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
23312 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
23313 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
23314 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
23315 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
23316 * doc/md.texi (ZC): Update description.
23318 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
23320 * builtins.c (expand_builtin_atomic_exchange): Remove error when
23321 memory model is CONSUME.
23322 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
23323 expand_builtin_atomic_store): Change invalid memory model errors to
23325 (expand_builtin_atomic_clear): Change invalid model errors to warnings
23326 and issue warning for CONSUME.
23328 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
23330 * lto-cgraph: Update function comments for
23331 lto_symtab_encoder_encode_*.
23333 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
23335 * Makefile.in (site.exp): Do not set ENABLE_LTO.
23337 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
23339 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
23340 * lto-cgraph.c (select_what_to_stream): Remove argument, use
23341 lto_stream_offload_p instead.
23342 * lto-streamer.h (select_what_to_stream): Remove argument.
23343 * passes.c (ipa_write_summaries): Likewise.
23344 * tree-pass.h (ipa_write_summaries): Likewise.
23346 2015-01-14 Richard Biener <rguenther@suse.de>
23348 PR tree-optimization/59354
23349 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
23350 groups larger than the slp group size as having gaps.
23352 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
23354 PR middle-end/59448
23355 * builtins.c (get_memmodel): Promote consume to acquire always.
23357 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
23360 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
23363 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
23366 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
23368 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
23369 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
23370 AVX512VBMI, as it implies AVX512BW.
23372 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
23375 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
23376 (vec_unpacks_hi_v16sf): Ditto.
23378 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23380 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
23383 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23385 * doc/invoke.texi (mapcs): Mention deprecation.
23386 (mapcs-frame): Likewise.
23388 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
23391 * config/arm/arm.c (callee_saved_reg_p): Define.
23392 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
23393 register is callee saved instead of !call_used_regs[reg].
23394 (thumb1_compute_save_reg_mask): Likewise.
23396 2015-01-14 Hale Wang <hale.wang@arm.com>
23398 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
23401 2015-01-14 Richard Biener <rguenther@suse.de>
23404 * tree-inline.c (insert_debug_decl_map): Check destination
23405 function MAY_HAVE_DEBUG_STMTS.
23406 (insert_init_debug_bind): Likewise.
23407 (insert_init_stmt): Remove redundant check.
23408 (remap_gimple_stmt): Drop debug stmts if the destination
23409 function has var-tracking assignments disabled.
23411 2015-01-14 Martin Liska <mliska@suse.cz>
23413 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
23414 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
23416 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23419 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
23420 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
23422 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
23424 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
23425 level from an ARCH; do not inject the default.
23426 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
23427 MIPS_ISA_LEVEL_SPEC.
23428 (MIPS_ISA_NAN2008_SPEC): Update comment.
23429 (BASE_DRIVER_SELF_SPECS): Likewise.
23430 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
23431 MIPS_DEFAULT_ISA_LEVEL_SPEC.
23432 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
23433 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
23434 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
23436 2015-01-14 Richard Biener <rguenther@suse.de>
23438 PR tree-optimization/64493
23439 PR tree-optimization/64495
23440 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
23441 assign the proper vectorized PHI to the inner loop exit PHIs.
23443 2015-01-14 Joey Ye <joey.ye@arm.com>
23445 * config/arm/arm.c (arm_compute_save_reg_mask):
23446 Do not save lr in case of tail call.
23447 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
23449 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
23451 * tree-vrp.c (check_array_ref): Emit more warnings
23452 for warn_array_bounds >= 2.
23453 * common.opt: New option -Warray-bounds=.
23454 * doc/invoke.texi: Document -Warray-bounds=.
23456 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
23458 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
23459 (mforbid-fp-as-gp): Remove.
23461 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
23462 (nds32_symbol_load_store_p): Remove.
23463 (nds32_fp_as_gp_check_available): Clean up implementation.
23464 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
23466 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
23467 fp-as-gp and ex9 cases.
23469 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
23471 * tree-profile.c (init_ic_make_global_vars): Drop workaround
23472 for bintuils bug 14342.
23473 (init_ic_make_global_vars): Likewise.
23474 (gimple_init_edge_profiler): Likewise.
23475 (gimple_gen_ic_func_profiler): Likewise.
23477 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
23479 * ipa-inline.c (inline_small_functions): Swap the operands in
23482 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
23485 * ipa-inline-analysis.c (node_growth_cache): Remove.
23486 (initialize_growth_caches): Do not initialize it.
23487 (free_growth_caches): Do not free it.
23488 (do_estimate_growth): Rename to ...
23489 (estimate_growth): ... this one; drop growth cache code.
23490 (growth_likely_positive): Always go the heuristics way.
23491 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
23492 (reset_edge_caches): Do not reset node growth.
23493 (heap_edge_removal_hook): Do not maintain cache.
23494 (inline_small_functions): Likewise; strenghten sanity check.
23495 (ipa_inline): Do not maintain caches.
23496 * ipa-inline.h (node_growth_cache): Remove.
23497 (do_estimate_growth): Remove to ...
23498 (estimate_growth): this one; remove inline version.
23499 (reset_node_growth_cache): Remove.
23501 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
23504 * ipa-inline.c (inline_small_functions): Update callee keys after
23505 resolving speculation
23506 (inline_small_functions): Always check monotonicity of the queue.
23508 2015-01-13 Marek Polacek <polacek@redhat.com>
23510 PR middle-end/64391
23511 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
23513 2015-01-13 Jakub Jelinek <jakub@redhat.com>
23515 PR rtl-optimization/64286
23516 * ree.c (combine_reaching_defs): Move part of comment earlier,
23517 remove !SCALAR_INT_MODE_P check.
23518 (add_removable_extension): Don't add vector mode
23519 extensions if all uses of the source register aren't the same
23522 2015-01-13 Renlin Li <renlin.li@arm.com>
23524 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
23525 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
23527 2015-01-13 Martin Liska <mliska@suse.cz>
23529 * ipa-icf.c (sem_function::equals_private): Call new functions
23530 cl_target_option_print_diff and cl_optimization_print_diff.
23531 * optc-save-gen.awk (cl_target_option_print_diff): New function.
23532 (cl_optimization_print_diff): Likewise.
23533 * opth-gen.awk: Likewise.
23535 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
23537 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
23538 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
23539 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
23540 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
23541 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
23542 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
23544 2015-01-13 Andrew Pinski <apinski@cavium.com>
23546 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
23547 instead of src mode.
23549 2015-01-13 Richard Biener <rguenther@suse.de>
23552 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
23555 2015-01-13 Andrew Pinski <apinski@cavium.com>
23557 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
23559 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
23561 2015-01-13 Jakub Jelinek <jakub@redhat.com>
23563 PR middle-end/63974
23564 * cfgexpand.c (expand_computed_goto): Don't call
23565 convert_memory_address here.
23567 2015-01-13 Richard Biener <rguenther@suse.de>
23569 PR tree-optimization/64406
23570 * tree-loop-distibution.c (pass_loop_distribution::execute):
23571 Reset the SCEV hashtable if we distributed anything.
23573 2015-01-13 Richard Biener <rguenther@suse.de>
23575 PR tree-optimization/64404
23576 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
23577 SLP types for CSEd loads.
23579 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
23581 PR tree-optimization/64436
23582 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
23583 merge of two symbolic numbers for a bitwise OR to ...
23584 (perform_symbolic_merge): This. Also fix computation of the range and
23585 end of the symbolic number corresponding to the result of a bitwise OR.
23587 2015-01-13 Richard Biener <rguenther@suse.de>
23589 PR tree-optimization/64568
23590 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
23591 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
23593 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
23595 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
23596 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
23598 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
23600 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
23601 target-specific symbol_ref flag.
23602 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
23603 resides in rodata section.
23604 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
23605 (nds32_encode_section_info): New function.
23607 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
23609 * config/nds32/nds32.md (call): Use pseudo instruction bal which
23610 clobbers TA_REGNUM if large code model is specified.
23611 (call_register): Likewise.
23612 (call_immediate): Likewise.
23613 (call_value): Likewise.
23614 (call_value_register): Likewise.
23615 (call_value_immediate): Likewise.
23617 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
23619 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
23620 (TARGET_CMODEL_MEDIUM): New macro.
23621 (TARGET_CMODEL_LARGE): New macro.
23622 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
23623 code model setting in assembly code.
23625 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
23627 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
23628 Remove MASK_GP_DIRECT flag.
23629 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
23630 one of the multilib default options.
23631 * config/nds32/nds32.opt (mgp-direct): Remove.
23632 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
23633 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
23635 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
23637 * config/nds32/nds32.opt (mcmodel): Add new option.
23638 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
23639 to describe code model.
23641 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
23644 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
23646 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
23648 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
23649 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
23650 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
23651 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
23652 __builtin_sh_set_fpscr.
23654 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
23656 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
23657 after a funtion name just to indicate it is a function.
23658 ([-fsanitize-undefined-trap-on-error]): Likewise.
23659 ([-fdbg-cnt=]): Likewise.
23660 ([-mmemcpy]): Likewise.
23661 ([-mflush-func]): Likewise.
23662 ([-msynci]): Likewise.
23664 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
23666 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
23669 2015-01-12 Jakub Jelinek <jakub@redhat.com>
23671 PR tree-optimization/64563
23672 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
23673 instead of != VR_VARYING.
23676 * config/i386/i386.c (ix86_expand_prologue): Add
23677 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
23679 PR tree-optimization/64454
23680 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
23681 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
23682 for signed or [0, op1 - 1] for unsigned modulo.
23683 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
23684 even if op1 does not satisfy integer_pow2p.
23687 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
23689 2015-01-12 Jeff Law <law@redhat.com>
23692 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
23693 (trunchiqi2, truncsihi2): Similarly.
23695 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
23696 rather than calling F.
23698 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
23700 * tsan.c (instrument_expr): Use force_gimple_operand.
23701 Use may_be_nonaddressable_p instead of is_gimple_addressable.
23703 2015-01-12 Richard Biener <rguenther@suse.de>
23705 PR tree-optimization/64530
23706 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
23709 2015-01-12 Richard Biener <rguenther@suse.de>
23711 PR middle-end/64357
23712 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
23715 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23717 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
23718 Cortex-A17 tuning parameters.
23719 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
23721 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23723 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
23724 * config/arm/arm.c (arm_macro_fusion_p): New function.
23725 (arm_macro_fusion_pair_p): Likewise.
23726 (TARGET_SCHED_MACRO_FUSION_P): Define.
23727 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
23728 (ARM_FUSE_NOTHING): Likewise.
23729 (ARM_FUSE_MOVW_MOVT): Likewise.
23730 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
23731 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
23732 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
23733 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
23734 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
23735 arm_cortex_a5_tune): Specify fuseable_ops value.
23737 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
23740 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
23741 test for PIE with copy reloc.
23742 * configure: Regenerated.
23744 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23746 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
23748 (arm_tls_descseq_addr): Likewise.
23749 (arm_gen_movmemqi): Likewise.
23750 (arm_expand_epilogue_apcs_frame): Likewise.
23751 (arm_expand_epilogue): Likewise.
23752 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
23755 2015-01-12 Martin Liska <mliska@suse.cz>
23758 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
23759 volatility for correct operands.
23761 2015-01-12 Martin Liska <mliska@suse.cz>
23763 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
23764 indication that a function is not leaf.
23765 (sem_function::compare_polymorphic_p): Likewise.
23767 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23769 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
23770 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
23771 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
23772 fold-const.h, tree-check.h.
23774 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
23778 * ipa-inline.c (compute_uninlined_call_time,
23779 compute_inlined_call_time): Use counts for extra precision when
23781 (big_speedup_p): Fix formating.
23782 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
23783 (relative_time_benefit): Remove.
23784 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
23785 merge guessed and read profile paths.
23786 (inline_small_functions): Count only !optimize_size functions into
23787 initial size; be more lax about sanity check when profile is used;
23788 be sure to update inlined function profile when profile is read.
23790 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
23793 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
23794 cost when edge becomes direct.
23795 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
23796 is resolved or when introducing new speculation.
23798 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
23802 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
23803 '||' to fix typo issue.
23805 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
23806 accept and return NULL.
23808 2015-01-12 Martin Liska <mliska@suse.cz>
23810 * cgraph.c (cgraph_edge::remove_callee): Move function to header
23811 file for being inlined.
23812 (cgraph_set_edge_callee): Delete.
23813 (cgraph_edge::redirect_callee): Move function to header file
23815 (cgraph_edge::make_direct): Use new function.
23816 (cgraph_edge::dump_edge_flags): New function created from
23817 static dump_edge_flags function.
23818 (cgraph_node::dump): Use new function.
23819 (cgraph_edge::verify_count_and_frequency): New function created
23820 from verify_edge_count_and_frequency.
23821 (cgraph_edge::verify_corresponds_to_fndecl): New function created
23822 from verify_edge_corresponds_to_fndecl.
23823 (verify_edge_corresponds_to_fndecl): Delete.
23824 (cgraph_node::verify_node): Use new function.
23825 * cgraph.h (cgraph_edge::set_callee): New function.
23826 (cgraph_edge::dump_edge_flags): Likewise.
23827 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
23829 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
23831 * ipa-utils.c (estimate_function_body_sizes): Do not
23832 free node params when called late with early=true.
23834 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
23836 * doc/md.texi (Instruction Patterns): Rewrite text for
23838 (Example): Likewise.
23840 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
23842 * doc/invoke.texi (Option Summary): Break long lines.
23843 [(-fdiagnostics-color)]: Put long literal in @smallexample
23845 [(-fsanitize-recover)]: Likewise.
23846 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
23847 [(-ffast-math)]: Likewise.
23848 [(--param max-inline-insns-recursive)]: Likewise.
23849 [(--param max-inline-recursive-depth)]: Likewise.
23850 [(-mno-text-section-literals)]: Likewise.
23852 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
23854 * doc/install.texi: Update for libgomp being renamed from "GNU
23855 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
23857 * doc/sourcebuild.texi: Likewise.
23859 2015-01-10 Anthony Green <green@moxielogic.com>
23861 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
23862 mul.x availability for moxiebox configuration.
23864 2015-01-09 Anthony Green <green@moxielogic.com>
23866 * config/moxie/moxie.md: Tabify assembly output.
23868 2015-01-09 Anthony Green <green@moxielogic.com>
23870 * config/moxie/moxie.md (CC_REG): Correct register definition.
23872 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
23874 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
23875 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
23878 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
23880 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
23882 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
23883 Jakub Jelinek <jakub@redhat.com>
23885 PR middle-end/64412
23886 * lto-streamer.h (lto_stream_offload_p): New declaration.
23887 * lto-streamer.c (lto_stream_offload_p): New variable.
23888 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
23889 at the same time as section_name_prefix.
23890 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
23891 if lto_stream_offload_p.
23892 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
23893 stream TREE_TARGET_OPTION if lto_stream_offload_p.
23894 (write_ts_function_decl_tree_pointers): Don't
23895 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
23896 * tree-streamer-in.c (unpack_value_fields): Don't stream
23897 TREE_TARGET_OPTION in if ACCEL_COMPILER.
23898 (lto_input_ts_function_decl_tree_pointers): Don't stream
23899 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
23900 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
23901 instead of section_name_prefix string comparisons.
23903 2015-01-09 Jakub Jelinek <jakub@redhat.com>
23905 PR rtl-optimization/64536
23906 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
23909 2015-01-09 Michael Collison <michael.collison@linaro.org>
23911 PR tree-optimization/64322
23912 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
23913 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
23915 2015-01-09 Tom de Vries <tom@codesourcery.com>
23917 PR rtl-optimization/64539
23918 * regcprop.c (kill_clobbered_values): Factor out of ...
23919 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
23920 instead of note_stores with kill_clobbered_value.
23922 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
23924 * ginclude/unwind-arm-common.h: Revert previous commit.
23926 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
23928 * config.gcc (arm*-*-freebsd*): New configuration.
23929 * config/arm/freebsd.h: New file.
23930 * config.host: Add extra components for arm*-*-freebsd*.
23931 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
23932 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
23934 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
23936 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
23938 * config/rs6000/t-rtems: Add e6500 multilibs.
23940 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
23942 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
23945 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
23947 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
23948 MULTILIB_EXCEPTIONS.
23950 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
23952 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
23953 MULTILIB_EXCEPTIONS.
23955 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
23957 * config/arm/t-rtems-eabi: Rename to...
23958 * config/arm/t-rtems: ...this.
23959 * config/arm/rtems-eabi.h: Rename to...
23960 * config/arm/rtems.h: ...this.
23961 * config.gcc (arm*-*-rtems*): Reflect changes above.
23963 2015-01-09 Richard Biener <rguenther@suse.de>
23965 PR tree-optimization/64410
23966 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
23968 (execute_update_addresses_taken): Deal with that.
23969 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
23970 loads/stores for complex variables.
23972 2015-01-09 Martin Liska <mliska@suse.cz>
23974 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
23976 (func_checker::compare_memory_operand): New function.
23977 (func_checker::compare_operand): Split case to newly
23979 (func_checker::compare_cst_or_decl): New function.
23980 (func_checker::compare_gimple_call): Identify
23982 (func_checker::compare_gimple_assign): Likewise.
23983 * ipa-icf-gimple.h: New function.
23985 2015-01-09 Martin Liska <mliska@suse.cz>
23988 * sreal.c (sreal::dump): Change unsigned format to signed for
23990 (sreal::to_double): Replace exp2 with scalbln.
23992 2015-01-09 Martin Liska <mliska@suse.cz>
23994 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
23995 * ipa-icf.c (sem_function::equals_private): Add support for target and
23996 (sem_item_optimizer::merge_classes): Remove redundant function
23997 optimization flags comparison.
23998 * tree.h (target_opts_for_fn): New function.
24000 2015-01-09 Tom de Vries <tom@codesourcery.com>
24002 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
24004 2015-01-09 Kito Cheng <kito@0xlab.org>
24006 PR rtl-optimization/64348
24007 * lra-constraints.c (split_reg): Fix caller-save store/restore
24008 instruction generation.
24010 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
24012 PR gcov-profile/61790
24013 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
24014 long long. Fallback to int64_t if host doesn't have long long and
24015 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
24017 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24019 PR tree-optimization/63989
24020 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
24021 from 1000 to 10000.
24022 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
24023 (get_stridx): If we don't have a record for certain SSA_NAME,
24024 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
24025 constant offset, call get_stridx_plus_constant.
24026 (get_stridx_plus_constant): New function.
24027 (zero_length_string): Don't use get_stridx here.
24030 PR middle-end/64388
24031 * dse.c (struct insn_info): Mention frame_read set also
24032 before reload for tail calls on some targets.
24033 (scan_insn): Revert 2014-12-22 change. Set frame_read
24034 also before reload for tail calls if
24035 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
24036 instead of add_non_frame_wild_read for non-const/memset
24037 tail calls after reload.
24039 2015-01-08 Jason Merrill <jason@redhat.com>
24041 * ubsan.c (do_ubsan_in_current_function): New.
24042 (pass_ubsan::gate): Use it.
24043 * ubsan.h: Declare it.
24044 * convert.c (convert_to_integer): Use it.
24046 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24049 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
24050 compare_code when it is unconditionally overwritten afterwards.
24051 Use ix86_reverse_condition instead of reverse_condition. Don't
24052 change code if *reverse_condition* returned UNKNOWN and don't
24053 swap ct/cf and negate diff in that case.
24055 2015-01-08 Mike Stump <mikestump@comcast.net>
24057 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
24058 (pass_tsan_O0::gate): Likewise.
24059 * extend.texi (Function Attributes): Add no_sanitize_thread
24062 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
24064 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
24065 for registering builtins.
24066 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
24067 add -fopenmp to the argv_obstack used when invoking
24068 compile_for_target.
24070 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
24071 add "-m32" or "-m64" to argv_obstack.
24072 (generate_host_descr_file): Likewise, when invoking host_compiler.
24073 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
24076 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24078 * config/sh/sh-mem.cc: Use constant as second operand when emitting
24081 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24084 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
24085 constant load if constant operand fits into I08.
24087 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24090 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
24091 and TREE_THIS_VOLATILE for MEM_REFs.
24092 (build5_stat): Fix up initialization of TREE_READONLY and
24093 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
24095 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
24098 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
24099 of r for the second alternative of the destination operand.
24101 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
24104 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
24106 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
24108 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
24110 ([-fivar-visibility], [-fvisibility]): Likewise.
24112 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
24114 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
24115 the file where @code, @command, etc is more appropriate.
24117 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
24119 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
24120 of -mrecip= documentation.
24122 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
24125 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
24126 correct reload handler if -m32 -mpowerpc64 is used.
24128 2015-01-06 Tom de Vries <tom@codesourcery.com>
24130 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
24132 2015-01-08 Christian Bruel <christian.bruel@st.com>
24135 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
24137 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
24139 PR tree-optimization/63259
24140 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
24141 if optab exists for 16bit byteswap.
24143 2015-01-06 Jakub Jelinek <jakub@redhat.com>
24145 * opts.c (common_handle_option): Add support for
24146 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
24147 * doc/invoke.texi: Document -fno-sanitize=all,
24148 -f{,no-}sanitize-recover=all. Document that
24149 -fsanitize=float-cast-overflow is not enabled
24150 by -fsanitize=undefined. Fix up documentation
24151 of -f{,no-}sanitize-recover.
24153 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
24155 * config.gcc: Add Visium support.
24156 * configure.ac: Likewise.
24157 * configure: Regenerate.
24158 * doc/extend.texi (interrupt attribute): Add Visium.
24159 * doc/invoke.texi: Document Visium options.
24160 * doc/install.texi: Document Visium target.
24161 * doc/md.texi: Document Visium constraints.
24162 * common/config/visium: New directory.
24163 * config/visium: Likewise.
24165 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
24167 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
24168 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
24170 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
24172 * combine.c (combine_validate_cost): Do not count the cost of a
24173 split I2 twice. Do not display it twice in the dump, either.
24175 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
24177 Revert parts of r219199.
24178 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
24180 ([-Wtraditional]): Restore markup on <limits.h>.
24182 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
24185 * doc/invoke.texi: Document -Wsuggest-override.
24187 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
24189 PR rtl-optimization/64287
24190 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
24191 (process_options): Disable flag_ipa_ra if profiling.
24193 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
24195 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
24197 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
24199 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
24200 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
24201 put under #if TARGET_LOOPS guard.
24203 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
24205 * config/i386/i386.c (output_387_binary_op): Use std::swap.
24207 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
24209 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
24210 * rtl.h (refers_to_regno_p): Add overload.
24212 * bt-load.c: Likewise.
24213 * combine.c: Likewise.
24214 * df-scan.c: Likewise.
24215 * sched-deps.c: Likewise.
24216 * config/s390/s390.c: Likewise.
24217 * config/m32r/m32r.c: Likewise.
24218 * config/rs6000/spe.md: Likewise.
24219 * config/rs6000/rs6000.c: Likewise.
24220 * config/pa/pa.c: Likewise.
24221 * config/stormy16/stormy16.c: Likewise.
24222 * config/cris/cris.c: Likewise.
24223 * config/arc/arc.md: Likewise.
24224 * config/arc/arc.c: Likewise.
24225 * config/sh/sh.md: Likewise.
24226 * config/sh/sh.c: Likewise.
24227 * config/frv/frv.c: Likewise.
24229 2015-01-05 Jakub Jelinek <jakub@redhat.com>
24232 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
24233 call as cleanup of the whole body.
24234 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
24235 * tsan.c (replace_func_exit): New function.
24236 (instrument_func_exit): Moved earlier.
24237 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
24238 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
24240 (tsan_pass): Don't call instrument_func_exit.
24241 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
24242 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
24246 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
24247 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
24248 it to libubsan handler instead of EXPR. Fold comparisons earlier,
24249 if the result is integer_zerop, return NULL_TREE.
24250 * convert.c (convert_to_integer): Pass expr as ARG.
24252 PR tree-optimization/64465
24253 * tree-inline.c (redirect_all_calls): During inlining
24254 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
24255 changed the stmt to a non-throwing call.
24257 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
24259 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
24260 etc markup throughout the file.
24262 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
24264 Enable experimental TSAN support for Ada.
24265 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
24267 2015-01-05 Jakub Jelinek <jakub@redhat.com>
24269 PR tree-optimization/64494
24270 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
24271 clear SSA_NAME_ANTI_RANGE_P flag.
24273 2015-01-05 Marek Polacek <polacek@redhat.com>
24275 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
24277 2015-01-05 Jakub Jelinek <jakub@redhat.com>
24279 Update copyright years.
24281 * gcc.c (process_command): Update copyright notice dates.
24282 * gcov-dump.c: Ditto.
24284 * doc/cpp.texi: Bump @copying's copyright year.
24285 * doc/cppinternals.texi: Ditto.
24286 * doc/gcc.texi: Ditto.
24287 * doc/gccint.texi: Ditto.
24288 * doc/gcov.texi: Ditto.
24289 * doc/install.texi: Ditto.
24290 * doc/invoke.texi: Ditto.
24292 * auto-profile.c, auto-profile.h: Fix up Copyright line.
24294 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
24296 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
24298 ([-fvtable-verify], [-fvtv-debug]): Likewise.
24299 ([-Wabi]): Likewise.
24300 ([-fmessage-length]): Likewise.
24301 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
24302 ([-Wno-discarded-qualifiers]): Likewise.
24303 ([-Wnodiscarded-array-qualifiers]): Likewise.
24304 ([-Wno-virtual-move-assign]): Likewise.
24305 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
24306 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
24307 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
24308 ([-fsanitize-undefined-trap-on-error]): Likewise.
24309 ([-floop-interchange]): Likewise.
24310 ([-ftree-coalesce-inlined-vars]): Likewise.
24311 ([-fvect-cost-model]): Likewise.
24312 ([-flto]): Likewise.
24313 ([--param]): Likewise.
24314 (Spec Files): Likewise.
24315 ([-mstrict-align]): Likewise.
24316 ([-mfix-cortex-a53-835769]): Likewise.
24317 ([-march], [-mtune]): Likewise.
24318 ([-mpic-register]): Likewise.
24319 ([-munaligned-access]): Likewise.
24320 ([-msp8]): Likewise.
24321 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
24322 (AVR Built-in Macros): Likewise.
24323 ([-mpreferred-stack-boundary]): Likewise.
24324 ([-mtune-crtl]): Likewise.
24325 ([-mashf]): Likewise.
24326 ([-mmcu=]): Likewise.
24327 ([-minrt]): Likewise.
24328 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
24329 ([-mupper-regs]): Likewise.
24330 ([-matomic-model]): Likewise.
24331 ([-mdiv]): Likewise.
24332 ([-mzdcbranch]): Likewise.
24333 ([-mdisable-callt]): Likewise.
24334 ([-msoft-float]): Likewise.
24335 ([-m8byte-align]): Likewise.
24336 ([-fstack-reuse]): Likewise.
24338 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
24340 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
24341 Fix markup, light copy-editing.
24342 ([-fauto-profile]): Rewrite to fix formatting and content
24345 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
24347 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
24348 Copy-edit description.
24349 ([-fisolate-erroneous-paths-attribute]): Likewise.
24350 * common.opt (fisolate-erroneous-paths-dereference):
24351 Copy-edit description.
24352 (fisolate-erroneous-paths-attribute): Likewise.
24354 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
24356 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
24359 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
24361 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
24362 ([-fvtv-debug]): Likewise.
24363 ([-Wc++-compat]): Likewise.
24364 ([-Wc++11-compat]): Likewise.
24365 ([-Wc++14-compat]): Likewise.
24366 ([-Wno-sized-deallocation]): Likewise.
24367 ([-femit-class-debug-always]): Likewise.
24368 ([-femit-struct-debug-detailed]): Likewise.
24369 ([-fno-keep-inline-dllexport]): Likewise.
24370 ([-fira-algorithm]): Likewise.
24371 ([-fira-region]): Likewise.
24372 ([-flra-remat]): Likewise.
24373 ([-fipa-ra]): Likewise.
24374 ([-fhoist-adjacent-loads]): Likewise.
24375 ([-fisolate-erroneous-paths-dereference]): Likewise.
24376 ([-fisolate-erroneous-paths-attribute]): Likewise.
24377 ([-ftree-switch-conversion]): Likewise.
24378 ([-ftree-tail-merge]): Likewise.
24379 ([-ftree-loop-if-convert]): Likewise.
24380 ([-ftree-loop-if-convert-stores]): Likewise.
24381 ([-ftree-loop-distribution]): Likewise.
24382 ([-ftree-loop-distribute-patterns]): Likewise.
24383 ([-flto-compression-level]): Likewise.
24384 ([-flto-report]): Likewise.
24385 ([-flto-report-wpa]): Likewise.
24386 ([-fuse-linker-plugin]): Likewise.
24387 ([-mfix-cortex-a53-835769]): Likewise.
24388 ([-mno-fix-cortex-a53-835769]): Likewise.
24389 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
24390 explicit listing; add a note to the discussion indicating they
24391 exist. Reorder table to group similar options. Add missing
24392 @opindex entries. Add @need commands throughout the table to
24393 allow it to be split across multiple pages.
24394 ([-m8bit-idiv]): Fix @opindex.
24395 ([-mavx256-split-unaligned-load]): Likewise.
24396 ([-mavx256-split-unaligned-store]): Likewise.
24397 ([-mstack-protector-guard]): Likewise.
24398 ([-mcpu=]): Likewise.
24399 ([-mcpu]): Likewise.
24400 ([-mpointer-size=]): Likewise.
24402 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
24404 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
24405 instead of `m' constraint. Likewise for unnamed movb comparison
24406 patterns using reg_before_reload_operand predicate.
24407 * config/pa/predicates.md (reg_before_reload_operand): Tighten
24408 predicate to reject register index and LO_SUM DLT memory forms
24411 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
24413 * doc/invoke.texi (Option Summary): Fix spelling of
24414 -fdevirtualize-at-ltrans.
24415 ([-fdevirtualize]): Fix markup.
24416 ([-fdevirtualize-speculatively]): Fix typo.
24417 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
24418 implementor-speaky.
24419 * common.opt (fdevirtualize-at-ltrans): Likewise.
24420 * ipa-devirt.c: Fix typos in comments throughout the file.
24421 (ipa_devirt): Fix typos in format strings for dump output.
24423 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
24425 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
24426 discussion of defaults, light copy-editing.
24428 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
24430 * tsan.c (instrument_expr): corrected previous checkin.
24432 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
24434 Instrument bit field and unaligned accesses for TSAN.
24435 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
24436 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
24437 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
24438 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
24439 unaligned memory regions.
24441 2015-01-01 Anthony Green <green@moxielogic.com>
24443 * config/moxie/predicates.md (moxie_general_movsrc_operand):
24444 Restrict move source register offsets to 16 bits.
24446 Copyright (C) 2015 Free Software Foundation, Inc.
24448 Copying and distribution of this file, with or without modification,
24449 are permitted in any medium without royalty provided the copyright
24450 notice and this notice are preserved.