0788036f3b47bf04caebfa1d68b5212a8c52cc1b
[gcc.git] / gcc / ChangeLog
1 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
2
3 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
4 current procedure should be profiled.
5
6 2014-01-15 Andrew Pinski <apinski@cavium.com>
7
8 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
9 of moving from/to the STACK_REG register class.
10
11 2014-01-15 Richard Henderson <rth@redhat.com>
12
13 PR debug/54694
14 * reginfo.c (global_regs_decl): Globalize.
15 * rtl.h (global_regs_decl): Declare.
16 * ira.c (do_reload): Diagnose frame_pointer_needed and it
17 reserved via global_regs.
18
19 2014-01-15 Teresa Johnson <tejohnson@google.com>
20
21 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
22
23 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
24
25 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
26 and vmulosh rather than call gen_vec_widen_smult_*.
27 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
28 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
29 (vec_widen_smult_even_v16qi): Likewise.
30 (vec_widen_umult_even_v8hi): Likewise.
31 (vec_widen_smult_even_v8hi): Likewise.
32 (vec_widen_umult_odd_v16qi): Likewise.
33 (vec_widen_smult_odd_v16qi): Likewise.
34 (vec_widen_umult_odd_v8hi): Likewise.
35 (vec_widen_smult_odd_v8hi): Likewise.
36 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
37 vmuloub rather than call gen_vec_widen_umult_*.
38 (vec_widen_umult_lo_v16qi): Likewise.
39 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
40 vmulosb rather than call gen_vec_widen_smult_*.
41 (vec_widen_smult_lo_v16qi): Likewise.
42 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
43 rather than call gen_vec_widen_umult_*.
44 (vec_widen_umult_lo_v8hi): Likewise.
45 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
46 rather than call gen_vec_widen_smult_*.
47 (vec_widen_smult_lo_v8hi): Likewise.
48
49 2014-01-15 Jeff Law <law@redhat.com>
50
51 PR tree-optimization/59747
52 * ree.c (find_and_remove_re): Properly handle case where a second
53 eliminated extension requires widening a copy created for elimination
54 of a prior extension.
55 (combine_set_extension): Ensure that the number of hard regs needed
56 for a destination register does not change when we widen it.
57
58 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
59
60 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
61 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
62 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
63 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
64 (avr-*-rtems*): Likewise.
65 (bfin*-rtems*): Likewise.
66 (moxie-*-rtems*): Likewise.
67 (h8300-*-rtems*): Likewise.
68 (i[34567]86-*-rtems*): Likewise.
69 (lm32-*-rtems*): Likewise.
70 (m32r-*-rtems*): Likewise.
71 (m68k-*-rtems*): Likewise.
72 (microblaze*-*-rtems*): Likewise.
73 (mips*-*-rtems*): Likewise.
74 (powerpc-*-rtems*): Likewise.
75 (sh-*-rtems*): Likewise.
76 (sparc-*-rtems*): Likewise.
77 (sparc64-*-rtems*): Likewise.
78 (v850-*-rtems*): Likewise.
79 (m32c-*-rtems*): Likewise.
80
81 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
82
83 PR rtl-optimization/59511
84 * ira.c (ira_init_register_move_cost): Use memory costs for some
85 cases of register move cost calculations.
86 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
87 instead of BB frequency.
88 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
89 * lra-assigns.c (find_hard_regno_for): Ditto.
90
91 2014-01-15 Richard Biener <rguenther@suse.de>
92
93 PR tree-optimization/59822
94 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
95 (vectorizable_load): Use it to hoist defs of uses of invariant
96 loads out of the loop.
97
98 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
99 Kugan Vivekanandarajah <kuganv@linaro.org>
100
101 PR target/59695
102 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
103 truncation.
104
105 2014-01-15 Richard Biener <rguenther@suse.de>
106
107 PR rtl-optimization/59802
108 * lcm.c (compute_available): Use inverted postorder to seed
109 the initial worklist.
110
111 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
112
113 PR target/59803
114 * config/s390/s390.c (s390_preferred_reload_class): Don't return
115 ADDR_REGS for invalid symrefs in non-PIC code.
116
117 2014-01-15 Jakub Jelinek <jakub@redhat.com>
118
119 PR other/58712
120 * builtins.c (determine_block_size): Initialize *probable_max_size
121 even if len_rtx is CONST_INT.
122
123 2014-01-14 Andrew Pinski <apinski@cavium.com>
124
125 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
126 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
127 (cortexa53_tunings): Likewise.
128 (aarch64_sched_issue_rate): New function.
129 (TARGET_SCHED_ISSUE_RATE): Define.
130
131 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
132
133 * ira-costs.c (find_costs_and_classes): Add missed
134 ira_init_register_move_cost_if_necessary.
135
136 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
137
138 PR target/59787
139 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
140
141 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
142
143 PR target/59794
144 * config/i386/i386.c (type_natural_mode): Add a bool parameter
145 to indicate if type is used for function return value. Warn
146 ABI change if the vector mode isn't available for function
147 return value.
148 (ix86_function_arg_advance): Pass false to type_natural_mode.
149 (ix86_function_arg): Likewise.
150 (ix86_gimplify_va_arg): Likewise.
151 (function_arg_32): Don't warn ABI change.
152 (ix86_function_value): Pass true to type_natural_mode.
153 (ix86_return_in_memory): Likewise.
154 (ix86_struct_value_rtx): Removed.
155 (TARGET_STRUCT_VALUE_RTX): Likewise.
156
157 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
158
159 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
160 converting a conditional jump into a conditional return.
161
162 2014-01-14 Richard Biener <rguenther@suse.de>
163
164 PR tree-optimization/58921
165 PR tree-optimization/59006
166 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
167 hoisting invariant stmts.
168 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
169 invariant loads on the preheader edge if possible.
170
171 2014-01-14 Joey Ye <joey.ye@arm.com>
172
173 * doc/plugin.texi (Building GCC plugins): Update to C++.
174
175 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
176
177 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
178 (_mm_rcp28_round_ss): Ditto.
179 (_mm_rsqrt28_round_sd): Ditto.
180 (_mm_rsqrt28_round_ss): Ditto.
181 (_mm_rcp28_sd): Ditto.
182 (_mm_rcp28_ss): Ditto.
183 (_mm_rsqrt28_sd): Ditto.
184 (_mm_rsqrt28_ss): Ditto.
185 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
186 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
187 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
188 (IX86_BUILTIN_RCP28SD): Ditto.
189 (IX86_BUILTIN_RCP28SS): Ditto.
190 (IX86_BUILTIN_RSQRT28SD): Ditto.
191 (IX86_BUILTIN_RSQRT28SS): Ditto.
192 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
193 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
194 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
195 (ix86_expand_special_args_builtin): Expand new FTYPE.
196 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
197 (srcp14<mode>): Make insn unary.
198 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
199 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
200 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
201 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
202 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
203 Fix rounding: make it SAE only.
204 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>): Ditto.
205 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>): Ditto.
206 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
207 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
208 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
209 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
210 (round_saeonly_mask_scalar_operand4): Ditto.
211 (round_saeonly_mask_scalar_op3): Ditto.
212 (round_saeonly_mask_scalar_op4): Ditto.
213
214 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
215
216 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
217 Implement -maltivec=be for vec_insert and vec_extract.
218
219 2014-01-10 DJ Delorie <dj@redhat.com>
220
221 * config/msp430/msp430.md (call_internal): Don't allow memory
222 references with SP as the base register.
223 (call_value_internal): Likewise.
224 * config/msp430/constraints.md (Yc): New. For memory references
225 that don't use SP as a base register.
226
227 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
228 "an integer without a # prefix"
229 * config/msp430/msp430.md (epilogue_helper): Use it.
230
231 2014-01-13 Jakub Jelinek <jakub@redhat.com>
232
233 PR target/59617
234 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
235 AVX512F gather builtins.
236 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
237 on gather decls with INTEGER_TYPE masktype.
238 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
239 directly into the builtin rather than hoisting it before loop.
240
241 PR tree-optimization/59387
242 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
243 (scev_const_prop): If folded_casts and type has undefined overflow,
244 use force_gimple_operand instead of force_gimple_operand_gsi and
245 for each added stmt if it is assign with
246 arith_code_with_undefined_signed_overflow, call
247 rewrite_to_defined_overflow.
248 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
249 gimple-fold.h instead.
250 (arith_code_with_undefined_signed_overflow,
251 rewrite_to_defined_overflow): Moved to ...
252 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
253 rewrite_to_defined_overflow): ... here. No longer static.
254 Include gimplify-me.h.
255 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
256 rewrite_to_defined_overflow): New prototypes.
257
258 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
259
260 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
261
262 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
263
264 * builtins.c (get_object_alignment_2): Minor tweak.
265 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
266
267 2014-01-13 Christian Bruel <christian.bruel@st.com>
268
269 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
270 optimized non constant lengths.
271
272 2014-01-13 Jakub Jelinek <jakub@redhat.com>
273
274 PR libgomp/59194
275 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
276 load as __atomic_load_N if possible.
277
278 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
279
280 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
281 target parameter.
282 (rs6000_expand_builtin): Adjust call.
283
284 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
285
286 PR target/58115
287 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
288 * config/rs6000/rs6000.c: Include target-globals.h.
289 (rs6000_set_current_function): Instead of doing target_reinit
290 unconditionally, use save_target_globals_default_opts and
291 restore_target_globals.
292
293 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
294 FPSCR.
295 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
296 (rs6000_expand_builtin): Handle mffs and mtfsf.
297 (rs6000_init_builtins): Define mffs and mtfsf.
298 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
299 (rs6000_mffs): New pattern.
300 (rs6000_mtfsf): New pattern.
301
302 2014-01-11 Bin Cheng <bin.cheng@arm.com>
303
304 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
305 Start narrowing with START. Apply candidate-use pair
306 and check overall cost in narrowing.
307 (iv_ca_prune): Pass new argument.
308
309 2014-01-10 Jeff Law <law@redhat.com>
310
311 PR middle-end/59743
312 * ree.c (combine_reaching_defs): Ensure the defining statement
313 occurs before the extension when optimizing extensions with
314 different source and destination hard registers.
315
316 2014-01-10 Jan Hubicka <jh@suse.cz>
317
318 PR ipa/58585
319 * ipa-devirt.c (build_type_inheritance_graph): Also add types of vtables
320 into the type inheritance graph.
321
322 2014-01-10 Jakub Jelinek <jakub@redhat.com>
323
324 PR rtl-optimization/59754
325 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
326 modes in the REGNO != REGNO case.
327
328 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
329
330 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
331
332 2014-01-10 Jakub Jelinek <jakub@redhat.com>
333
334 PR tree-optimization/59745
335 * tree-predcom.c (tree_predictive_commoning_loop): Call
336 free_affine_expand_cache if giving up because components is NULL.
337
338 * target-globals.c (save_target_globals): Allocate < 4KB structs using
339 GC in payload of target_globals struct instead of allocating them on
340 the heap and the larger structs separately using GC.
341 * target-globals.h (struct target_globals): Make regs, hard_regs,
342 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
343 of GTY((skip)) and change type to void *.
344 (reset_target_globals): Cast loads from those fields to corresponding
345 types.
346
347 2014-01-10 Steve Ellcey <sellcey@mips.com>
348
349 PR plugins/59335
350 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
351 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
352 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
353
354 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
355
356 PR target/59744
357 * aarch64-modes.def (CC_Zmode): New flags mode.
358 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
359 represents an equality.
360 (aarch64_get_condition_code): Handle CC_Zmode.
361 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
362
363 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
364
365 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
366 extraction in good case.
367
368 2014-01-10 Richard Biener <rguenther@suse.de>
369
370 PR tree-optimization/59374
371 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
372 checking after SLP discovery. Mark stmts not participating
373 in any SLP instance properly.
374
375 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
376
377 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
378 when handling a SET rtx.
379
380 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
381
382 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
383 (cortex-a57): Likewise.
384 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
385
386 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
387
388 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
389 non-iwmmxt builtins.
390
391 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
392
393 PR ipa/58252
394 PR ipa/59226
395 * ipa-devirt.c record_target_from_binfo): Take as argument
396 stack of binfos and lookup matching one for virtual inheritance.
397 (possible_polymorphic_call_targets_1): Update.
398
399 2014-01-10 Huacai Chen <chenhc@lemote.com>
400
401 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
402 kernel strings for Loongson-2E/2F/3A.
403
404 2014-01-10 Jakub Jelinek <jakub@redhat.com>
405
406 PR middle-end/59670
407 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
408 is_gimple_call before calling gimple_call_internal_p.
409
410 2014-01-09 Steve Ellcey <sellcey@mips.com>
411
412 * Makefile.in (TREE_FLOW_H): Remove.
413 (TREE_SSA_H): Add file names from tree-flow.h.
414 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
415 * tree.h: Remove tree-flow.h reference.
416 * hash-table.h: Remove tree-flow.h reference.
417 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
418 reference with tree-ssa-loop.h.
419
420 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
421
422 * doc/invoke.texi: Add -maltivec={be,le} options, and document
423 default element-order behavior for -maltivec.
424 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
425 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
426 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
427 when targeting big endian, at least for now.
428 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
429
430 2014-01-09 Jakub Jelinek <jakub@redhat.com>
431
432 PR middle-end/47735
433 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
434 var satisfies use_register_for_decl, just take into account type
435 alignment, rather than decl alignment.
436
437 PR tree-optimization/59622
438 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
439 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
440 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
441 Don't devirtualize for inplace at all. For targets.length () == 1,
442 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
443
444 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
445
446 * config/i386/i386.md (cpu): Remove the unused btver1.
447
448 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
449
450 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
451
452 2014-01-09 Jakub Jelinek <jakub@redhat.com>
453
454 PR target/58115
455 * tree-core.h (struct target_globals): New forward declaration.
456 (struct tree_target_option): Add globals field.
457 * tree.h (TREE_TARGET_GLOBALS): Define.
458 (prepare_target_option_nodes_for_pch): New prototype.
459 * target-globals.h (struct target_globals): Define even if
460 !SWITCHABLE_TARGET.
461 * tree.c (prepare_target_option_node_for_pch,
462 prepare_target_option_nodes_for_pch): New functions.
463 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
464 * config/i386/i386.c: Include target-globals.h.
465 (ix86_set_current_function): Instead of doing target_reinit
466 unconditionally, use save_target_globals_default_opts and
467 restore_target_globals.
468
469 2014-01-09 Richard Biener <rguenther@suse.de>
470
471 PR tree-optimization/59715
472 * tree-cfg.h (split_critical_edges): Declare.
473 * tree-cfg.c (split_critical_edges): Export.
474 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
475
476 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
477
478 * cfgexpand.c (expand_stack_vars): Optionally disable
479 asan stack protection.
480 (expand_used_vars): Likewise.
481 (partition_stack_vars): Likewise.
482 * asan.c (asan_emit_stack_protection): Optionally disable
483 after return stack usage.
484 (instrument_derefs): Optionally disable memory
485 access instrumentation.
486 (instrument_builtin_call): Likewise.
487 (instrument_strlen_call): Likewise.
488 (asan_protect_global): Optionally disable
489 global variables protection.
490 * doc/invoke.texi: Added doc for new options.
491 * params.def: Added new options.
492 * params.h: Likewise.
493
494 2014-01-09 Jakub Jelinek <jakub@redhat.com>
495
496 PR rtl-optimization/59724
497 * ifcvt.c (cond_exec_process_if_block): Don't call
498 flow_find_head_matching_sequence with 0 longest_match.
499 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
500 non-active insns if !stop_after.
501 (try_head_merge_bb): Revert 2014-01-07 changes.
502
503 2014-01-08 Jeff Law <law@redhat.com>
504
505 * ree.c (get_sub_rtx): New function, extracted from...
506 (merge_def_and_ext): Here.
507 (combine_reaching_defs): Use get_sub_rtx.
508
509 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
510
511 * cgraph.h (varpool_variable_node): Do not choke on null node.
512
513 2014-01-08 Catherine Moore <clm@codesourcery.com>
514
515 * config/mips/mips.md (simple_return): Attempt to use JRC for microMIPS.
516 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
517
518 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
519
520 PR rtl-optimization/59137
521 * reorg.c (steal_delay_list_from_target): Call update_block for
522 elided insns.
523 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
524
525 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
526
527 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
528 two duplicate entries.
529
530 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
531
532 Revert:
533 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
534
535 * config/mips/mips.c (mips_truncated_op_cost): New function.
536 (mips_rtx_costs): Adjust test for BADDU.
537 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
538
539 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
540
541 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
542 (*baddu_si): ...this new pattern.
543
544 2014-01-08 Jakub Jelinek <jakub@redhat.com>
545
546 PR ipa/59722
547 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
548
549 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
550
551 PR middle-end/57748
552 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
553 inner_reference_p.
554 (expand_expr, expand_normal): Adjust.
555 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
556 inner_reference_p. Use inner_reference_p to expand inner references.
557 (store_expr): Adjust.
558 * cfgexpand.c (expand_call_stmt): Adjust.
559
560 2014-01-08 Rong Xu <xur@google.com>
561
562 * gcov-io.c (gcov_var): Move from gcov-io.h.
563 (gcov_position): Ditto.
564 (gcov_is_error): Ditto.
565 (gcov_rewrite): Ditto.
566 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
567 only part to libgcc/libgcov.h.
568
569 2014-01-08 Marek Polacek <polacek@redhat.com>
570
571 PR middle-end/59669
572 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
573
574 2014-01-08 Marek Polacek <polacek@redhat.com>
575
576 PR sanitizer/59667
577 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
578
579 2014-01-08 Jakub Jelinek <jakub@redhat.com>
580
581 PR rtl-optimization/59649
582 * stor-layout.c (get_mode_bounds): For BImode return
583 0 and STORE_FLAG_VALUE.
584
585 2014-01-08 Richard Biener <rguenther@suse.de>
586
587 PR middle-end/59630
588 * gimple.h (is_gimple_builtin_call): Remove.
589 (gimple_builtin_call_types_compatible_p): New.
590 (gimple_call_builtin_p): New overload.
591 * gimple.c (is_gimple_builtin_call): Remove.
592 (validate_call): Rename to ...
593 (gimple_builtin_call_types_compatible_p): ... this and export. Also
594 check return types.
595 (validate_type): New static function.
596 (gimple_call_builtin_p): New overload and adjust.
597 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
598 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
599 (gimple_fold_stmt_to_constant_1): Likewise.
600 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
601
602 2014-01-08 Richard Biener <rguenther@suse.de>
603
604 PR middle-end/59471
605 * gimplify.c (gimplify_expr): Gimplify register-register type
606 VIEW_CONVERT_EXPRs to separate stmts.
607
608 2014-01-07 Jeff Law <law@redhat.com>
609
610 PR middle-end/53623
611 * ree.c (combine_set_extension): Handle case where source
612 and destination registers in an extension insn are different.
613 (combine_reaching_defs): Allow source and destination
614 registers in extension to be different under limited
615 circumstances.
616 (add_removable_extension): Remove restriction that the
617 source and destination registers in the extension are the
618 same.
619 (find_and_remove_re): Emit a copy from the extension's
620 destination to its source after the defining insn if
621 the source and destination registers are different.
622
623 PR middle-end/59285
624 * ifcvt.c (merge_if_block): If we are merging a block with more than
625 one successor with a block with no successors, remove any BARRIER
626 after the second block.
627
628 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
629
630 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
631
632 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
633
634 PR target/59652
635 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
636 for 14-bit register offsets when INT14_OK_STRICT is false.
637
638 2014-01-07 Roland Stigge <stigge@antcom.de>
639 Michael Meissner <meissner@linux.vnet.ibm.com>
640
641 PR 57386/target
642 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
643 Only check TFmode for SPE constants. Don't check TImode or
644 TDmode.
645
646 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
647
648 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
649 -mcpu.
650
651 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
652
653 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
654 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
655 rtx is const0_rtx or not.
656
657 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
658
659 PR target/58115
660 * target-globals.c (save_target_globals): Remove this_fn_optab
661 handling.
662 * toplev.c: Include optabs.h.
663 (target_reinit): Temporarily restore the global options if another
664 set of options are in force.
665
666 2014-01-07 Jakub Jelinek <jakub@redhat.com>
667
668 PR rtl-optimization/58668
669 * cfgcleanup.c (flow_find_cross_jump): Don't count
670 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
671 to determine what is counted.
672 (flow_find_head_matching_sequence): Use active_insn_p to determine
673 what is counted.
674 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
675 counting change.
676 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
677 determine what is counted.
678
679 PR tree-optimization/59643
680 * tree-predcom.c (split_data_refs_to_components): If one dr is
681 read and one write, determine_offset fails and the write isn't
682 in the bad component, just put the read into the bad component.
683
684 2014-01-07 Mike Stump <mikestump@comcast.net>
685 Jakub Jelinek <jakub@redhat.com>
686
687 PR pch/59436
688 * tree-core.h (struct tree_optimization_option): Change optabs
689 type from unsigned char * to void *.
690 * optabs.c (init_tree_optimization_optabs): Adjust
691 TREE_OPTIMIZATION_OPTABS initialization.
692
693 2014-01-06 Jakub Jelinek <jakub@redhat.com>
694
695 PR target/59644
696 * config/i386/i386.h (struct machine_function): Add
697 no_drap_save_restore field.
698 * config/i386/i386.c (ix86_save_reg): Use
699 !cfun->machine->no_drap_save_restore instead of
700 crtl->stack_realign_needed.
701 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
702 this function clears frame_pointer_needed. Set
703 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
704 and DRAP reg is needed.
705
706 2014-01-06 Marek Polacek <polacek@redhat.com>
707
708 PR c/57773
709 * doc/implement-c.texi: Mention that other integer types are
710 permitted as bit-field types in strictly conforming mode.
711
712 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
713
714 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
715 is newly allocated.
716
717 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
718
719 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
720
721 2014-01-06 Martin Jambor <mjambor@suse.cz>
722
723 PR ipa/59008
724 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
725 to int.
726 * ipa-prop.c (ipa_print_node_params): Fix indentation.
727
728 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
729
730 PR debug/59350
731 PR debug/59510
732 * var-tracking.c (add_stores): Preserve the value of the source even if
733 we don't record the store.
734
735 2014-01-06 Terry Guo <terry.guo@arm.com>
736
737 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
738
739 2014-01-05 Iain Sandoe <iain@codesourcery.com>
740
741 PR bootstrap/59541
742 * config/darwin.c (darwin_function_section): Adjust return values to
743 correspond to optimisation changes made in r206070.
744
745 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
746
747 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
748 from prefetch_block tune setting.
749 (nocona_cost): Correct size of prefetch block to 64.
750
751 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
752
753 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
754 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
755 used to save the static chain register in the computation of the offset
756 from which the FP registers need to be restored.
757
758 2014-01-04 Jakub Jelinek <jakub@redhat.com>
759
760 PR tree-optimization/59519
761 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
762 ICE if get_current_def (current_new_name) is already non-NULL, as long
763 as it is a phi result of some other phi in *new_exit_bb that has
764 the same argument.
765
766 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
767 or vmovdqu* for misaligned_operand.
768 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
769 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
770 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
771 aligned_mem for AVX512F masked aligned load and store builtins and for
772 non-temporal moves.
773
774 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
775
776 PR tree-optimization/59651
777 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
778 Address range for negative step should be added by TYPE_SIZE_UNIT.
779
780 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
781
782 * config/m68k/m68k.c (handle_move_double): Handle pushes with
783 overlapping registers also for registers other than the stack
784 pointer.
785
786 2014-01-03 Marek Polacek <polacek@redhat.com>
787
788 PR other/59661
789 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
790 __builtin_FILE.
791
792 2014-01-03 Jakub Jelinek <jakub@redhat.com>
793
794 PR target/59625
795 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
796 asm goto as jump.
797
798 * config/i386/i386.md (MODE_SIZE): New mode attribute.
799 (push splitter): Use <P:MODE_SIZE> instead of
800 GET_MODE_SIZE (<P:MODE>mode).
801 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
802 (mov -1, reg peephole2): Likewise.
803 * config/i386/sse.md (*mov<mode>_internal,
804 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
805 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
806 *<code><mode>3, *andnot<mode>3<mask_name>,
807 <mask_codefor><code><mode>3<mask_name>): Likewise.
808 * config/i386/subst.md (mask_mode512bit_condition,
809 sd_mask_mode512bit_condition): Likewise.
810
811 2014-01-02 Xinliang David Li <davidxl@google.com>
812
813 PR tree-optimization/59303
814 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
815 (dump_predicates): Better output format.
816 (pred_equal_p): New function.
817 (is_neq_relop_p): Ditto.
818 (is_neq_zero_form_p): Ditto.
819 (pred_expr_equal_p): Ditto.
820 (pred_neg_p): Ditto.
821 (simplify_pred): Ditto.
822 (simplify_preds_2): Ditto.
823 (simplify_preds_3): Ditto.
824 (simplify_preds_4): Ditto.
825 (simplify_preds): Ditto.
826 (push_pred): Ditto.
827 (push_to_worklist): Ditto.
828 (get_pred_info_from_cmp): Ditto.
829 (is_degenerated_phi): Ditto.
830 (normalize_one_pred_1): Ditto.
831 (normalize_one_pred): Ditto.
832 (normalize_one_pred_chain): Ditto.
833 (normalize_preds): Ditto.
834 (normalize_cond_1): Remove function.
835 (normalize_cond): Ditto.
836 (is_gcond_subset_of): Ditto.
837 (is_subset_of_any): Ditto.
838 (is_or_set_subset_of): Ditto.
839 (is_and_set_subset_of): Ditto.
840 (is_norm_cond_subset_of): Ditto.
841 (pred_chain_length_cmp): Ditto.
842 (convert_control_dep_chain_into_preds): Type change.
843 (find_predicates): Ditto.
844 (find_def_preds): Ditto.
845 (destroy_predicates_vecs): Ditto.
846 (find_matching_predicates_in_rest_chains): Ditto.
847 (use_pred_not_overlap_with_undef_path_pred): Ditto.
848 (is_pred_expr_subset): Ditto.
849 (is_pred_chain_subset_of): Ditto.
850 (is_included_in): Ditto.
851 (is_superset_of): Ditto.
852
853 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
854
855 Update copyright years.
856
857 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
858
859 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
860 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
861 config/arc/arc.md, config/arc/arc.opt,
862 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
863 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
864 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
865 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
866 config/linux-protos.h, config/linux.c, config/winnt-c.c,
867 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
868 vtable-verify.c, vtable-verify.h: Use the standard form for the
869 copyright notice.
870
871 2014-01-02 Tobias Burnus <burnus@net-b.de>
872
873 * gcc.c (process_command): Update copyright notice dates.
874 * gcov-dump.c: Ditto.
875 * gcov.c: Ditto.
876 * doc/cpp.texi: Bump @copying's copyright year.
877 * doc/cppinternals.texi: Ditto.
878 * doc/gcc.texi: Ditto.
879 * doc/gccint.texi: Ditto.
880 * doc/gcov.texi: Ditto.
881 * doc/install.texi: Ditto.
882 * doc/invoke.texi: Ditto.
883
884 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
885
886 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
887
888 2014-01-01 Jakub Jelinek <jakub@redhat.com>
889
890 * config/i386/sse.md (*mov<mode>_internal): Guard
891 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
892
893 PR rtl-optimization/59647
894 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
895 new_rtx into UNSIGNED_FLOAT rtxes.
896 \f
897 Copyright (C) 2014 Free Software Foundation, Inc.
898
899 Copying and distribution of this file, with or without modification,
900 are permitted in any medium without royalty provided the copyright
901 notice and this notice are preserved.