New syntax for -fsanitize-recover.
[gcc.git] / gcc / ChangeLog
1 2014-10-22 Jakub Jelinek <jakub@redhat.com>
2 Yury Gribov <y.gribov@samsung.com>
3
4 * common.opt (flag_sanitize_recover): New variable.
5 (fsanitize-recover): Remove Var/Init, deprecate.
6 (fsanitize-recover=): New option.
7 * doc/invoke.texi (fsanitize-recover): Update docs.
8 * opts.c (finish_options): Use opts->x_flag_sanitize
9 instead of flag_sanitize. Prohibit -fsanitize-recover
10 for anything besides UBSan. Formatting.
11 (common_handle_option): Handle OPT_fsanitize_recover_
12 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
13 instead of flag_sanitize.
14 * asan.c (pass_sanopt::execute): Fix up formatting.
15 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
16 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
17 instrument_bool_enum_load, ubsan_instrument_float_cast,
18 instrument_nonnull_arg, instrument_nonnull_return): Check
19 bits in flag_sanitize_recover bitmask instead of
20 flag_sanitize_recover as bool flag.
21
22 2014-10-22 Jiong Wang <jiong.wang@arm.com>
23
24 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
25
26 2014-10-22 Renlin Li <renlin.li@arm.com>
27
28 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
29 __ARM_FEATURE_IDIV__.
30
31 2014-10-22 Richard Biener <rguenther@suse.de>
32
33 * Makefile.in (s-match): Adjust dependencies to only catch
34 match.pd.
35
36 2014-10-22 Richard Biener <rguenther@suse.de>
37 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
38
39 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
40 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
41 (gimple-match.c): Generate by triggering s-match.
42 (generic-match.c): Likewise.
43 (s-match): Rule to build gimple-match.c and generic-match.c
44 by running the genmatch generator program.
45 (build/hash-table.o): Dependencies to build hash-table.c for the host.
46 (build/genmatch.o): Dependencies to build genmatch.
47 (genprog): Add match.
48 (build/genmatch): Likewise.
49 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
50 * generic-match-head.c: New file.
51 * gimple-match-head.c: Likewise.
52 * gimple-match.h: Likewise.
53 * genmatch.c: Likewise.
54 * match.pd: Likewise.
55 * builtins.h (fold_builtin_n): Export.
56 * builtins.c (fold_builtin_n): Likewise.
57 * gimple-fold.h (gimple_build): Declare various overloads.
58 (gimple_simplify): Likewise.
59 (gimple_convert): Re-implement in terms of gimple_build.
60 * gimple-fold.c (gimple_convert): Remove.
61 (gimple_build): New functions.
62 * doc/match-and-simplify.texi: New file.
63 * doc/gccint.texi: Add menu item Match and Simplify and include
64 match-and-simplify.texi.
65
66 2014-10-22 Jakub Jelinek <jakub@redhat.com>
67
68 PR target/63594
69 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
70 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
71 even for just TARGET_AVX2, not only for
72 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
73 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
74 otherwise build it using concatenation of 256-bit
75 broadcast.
76 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
77 avx512 broadcast patterns.
78 (vec_dup<mode>): Likewise. For avx2 use
79 v<sseintprefix>broadcast<bcstscalarsuff> instead of
80 vbroadcast<ssescalarmodesuffix>.
81 (AVX2_VEC_DUP_MODE): New mode iterator.
82 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
83 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
84
85 PR target/63542
86 * config/i386/i386.c (ix86_pic_register_p): Also return
87 true if x is a hard register with ORIGINAL_REGNO equal to
88 pic_offset_table_rtx pseudo REGNO.
89 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
90 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
91
92 2014-10-22 Alan Modra <amodra@gmail.com>
93
94 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
95 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
96 (gcc_obstack_init): Use obstack_specify_allocation in place of
97 _obstack_begin.
98 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
99 (regexp_representation): Likewise.
100 * godump.c (go_output_type): Likewise.
101
102 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
103
104 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
105 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
106 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
107
108 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
109
110 * doc/invoke.texi (pedantic-errors): Explain better.
111
112 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
113 Vidya Praveen <vidya.praveen@atmel.com>
114 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
115 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
116 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
117
118 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
119 __MEMX for avrtiny.
120 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
121 (avr_nonconst_pointer_addrspace): Likewise.
122 * config/avr/avr.h (AVR_HAVE_LPM): Define.
123
124 Added AVRTINY architecture to avr target.
125 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
126 (base_arch_s): member added for AVRTINY architecture.
127 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
128 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
129 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
130 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
131 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
132 in callee saved register list.
133 (avr_option_override): CCP address updated for AVRTINY.
134 (avr_init_expanders): tmp and zero rtx initialized as per arch.
135 Reset avr_have_dimode if AVRTINY.
136 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
137 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
138 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
139 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
140 (expand_epilogue): Likewise.
141 (avr_print_operand): Print CCP address in case of AVRTINY also.
142 <TBD>bad address
143 (function_arg_regno_p): Check different register list for arguments
144 if AVRTINY.
145 (init_cumulative_args): Check for AVRTINY to update number of argument
146 registers.
147 (tiny_valid_direct_memory_access_range): New function. Return false if
148 direct memory access range is not in accepted range for AVRTINY.
149 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
150 indirect load (with displacement) for AVRTINY.
151 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
152 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
153 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
154 indirect load (no displacement) for AVRTINY.
155 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
156 indirect load (with displacement) for AVRTINY.
157 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
158 indirect load for pre-decrement address.
159 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
160 functions. Update instruction length for AVRTINY.
161 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
162 SImode.
163 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
164 (out_movsi_r_mr): Likewise, for SImode.
165 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
166 indirect store (no displacement) for AVRTINY.
167 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
168 indirect store (with displacement) for AVRTINY.
169 (out_movsi_mr_r): Emit out insn for IO address store. Update store
170 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
171 store functions.
172 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
173 indirect load (no displacement) for PSImode in AVRTINY.
174 (avr_out_load_psi_reg_disp_tiny): New function to handle register
175 indirect load (with displacement) for PSImode in AVRTINY.
176 (avr_out_load_psi): Call PSImode register indirect load functions for
177 AVRTINY. Update instruction length for AVRTINY.
178 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
179 indirect store (no displacement) for PSImode in AVRTINY.
180 (avr_out_store_psi_reg_disp_tiny): New function to handle register
181 indirect store (with displacement) for PSImode in AVRTINY.
182 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
183 register indirect store functions for AVRTINY.
184 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
185 register indirect store (with displacement) for AVRTINY.
186 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
187 register indirect store function for QImode in AVRTINY.
188 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
189 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
190 indirect store (no displacement) for HImode in AVRTINY.
191 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
192 indirect store (with displacement) for HImode in AVRTINY.
193 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
194 indirect store for post-increment address in HImode.
195 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
196 register indirect store function for HImode in AVRTINY.
197 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
198 in case of AVRTINY.
199 (order_regs_for_local_alloc): Updated register allocation order for
200 AVRTINY.
201 (avr_conditional_register_usage): New function. It is a target hook
202 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
203 used registers list and register allocation order for AVRTINY.
204 (avr_return_in_memory): Update return value size for AVRTINY.
205 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
206 for AVRTINY arch and tiny program memory base address.
207 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
208 (avr_texinfo): Added description for AVRTINY arch.
209 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
210 STATIC_CHAIN_REGNUM for AVRTINY.
211 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
212 * config/avr/avr.md: Added constants for tmp/ zero registers in
213 AVRTINY. Attributes for AVRTINY added.
214 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
215 memory access range.
216 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
217 in AVRTINY memory access range.
218 (*mov<mode>): Likewise for HImode and SImode.
219 (*movsf): Likewise for SFmode.
220 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
221 not have sbiw.
222 * config/avr/avr-protos.h: Added function prototype for
223 tiny_valid_direct_memory_access_range.
224 * config/avr/avr-tables.opt: Regenerate.
225 * gcc/config/avr/t-multilib: Regenerate.
226 * doc/avr-mmcu.texi: Regenerate.
227
228 2014-10-21 Andrew Pinski <apinski@cavium.com>
229
230 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
231 available option also.
232 * config/aarch64/aarch64-cost-tables.h: New file.
233 * config/aarch64/aarch64-cores.def (thunderx): New core.
234 * config/aarch64/aarch64-tune.md: Regenerate.
235 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
236 of config/arm/aarch-cost-tables.h.
237 (thunderx_regmove_cost): New variable.
238 (thunderx_tunings): New variable.
239
240 2014-10-21 Dehao Chen <dehao@google.com>
241
242 * auto-profile.c: New file.
243 * auto-profile.h: New file.
244 * basic-block.h (maybe_hot_count_p): New export func.
245 (add_working_set): New export func.
246 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
247 (GCOV_TAG_AFDO_FUNCTION): Likewise.
248 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
249 * opts.c (enable_fdo_optimizations): New func.
250 (common_handle_option): Handle -fauto-profile flag.
251 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
252 (class pass_early_inline): Export early_inliner.
253 (early_inliner): Likewise.
254 (pass_early_inline::execute): Likewise.
255 * ipa-inline.h (early_inliner): Likewise.
256 * predict.c (maybe_hot_count_p): New export func.
257 (counts_to_freqs): AutoFDO logic.
258 (rebuild_frequencies): Likewise.
259 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
260 * profile.c (add_working_set): New func.
261 * Makefile.in (auto-profile.o): New object file.
262 * passes.def (pass_ipa_auto_profile): New pass.
263 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
264 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
265 * toplev.c (compile_file): AutoFDO logic.
266 * doc/invoke.texi (-fauto-profile): New doc.
267 * coverage.c (coverage_init): AutoFDO logic.
268 * common.opt (-fauto-profile): New flag.
269 * timevar.def (TV_IPA_AUTOFDO): New tag.
270 * value-prof.c (gimple_alloc_histogram_value): New export func.
271 (check_ic_target): Likewise.
272 * value-prof.h (gimple_alloc_histogram_value): Likewise.
273 (check_ic_target): Likewise.
274
275 2014-10-21 David Malcolm <dmalcolm@redhat.com>
276
277 * cgraph.c (cgraph_c_finalize): New function.
278 * cgraph.h (cgraph_c_finalize): New prototype.
279 (cgraphunit_c_finalize): New prototype.
280 * cgraphunit.c (first_analyzed): Move from analyze_functions
281 to file-scope.
282 (first_analyzed_var): Likewise.
283 (analyze_functions): Move static variables into file-scope.
284 (cgraphunit_c_finalize): New function.
285 * diagnostic.c (diagnostic_finish): Free the memory for
286 context->classify_diagnostic and context->printer, running the
287 destructor for the latter.
288 (bt_stop): Use toplev::main.
289 * dwarf2out.c (dwarf2out_finalize): New function.
290 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
291 * gcse.c (gcse_c_finalize): New function.
292 * gcse.h (gcse_c_finalize): New prototype.
293 * ggc-page.c (init_ggc): Make idempotent.
294 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
295 * ipa-cp.c (ipa_cp_c_finalize): New function.
296 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
297 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
298 a field of class pass_ipa_pure_const.
299 (node_duplication_hook_holder): Likewise.
300 (node_removal_hook_holder): Likewise.
301 (register_hooks): Convert to method...
302 (pass_ipa_pure_const::register_hooks): ...here, converting
303 static variable init_p into...
304 (pass_ipa_pure_const::init_p): ...new field.
305 (pure_const_generate_summary): Update invocation of
306 register_hooks to invoke as a method of current_pass.
307 (pure_const_read_summary): Likewise.
308 (propagate): Convert to...
309 (pass_ipa_pure_const::execute): ...method.
310 * ipa-reference.c (ipa_init): Move static bool init_p from here
311 to...
312 (ipa_init_p): New file-scope variable, so that it can be reset
313 when repeatedly invoking the compiler within one process by...
314 (ipa_reference_c_finalize): New function.
315 * ipa-reference.h (ipa_reference_c_finalize): New.
316 * main.c (main): Replace invocation of toplev_main with
317 construction of a toplev instance, and call its "main" method.
318 * params.c (global_init_params): Add an assert that
319 params_finished is false.
320 (params_c_finalize): New.
321 * params.h (params_c_finalize): New.
322 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
323 invoking generate_summary, for the benefit of pass_ipa_pure_const.
324 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
325 before calling write_summary hook.
326 (ipa_write_optimization_summaries_1): Likewise when calling
327 write_optimization_summary hook.
328 (ipa_read_summaries_1): Likewise for read_summary hook.
329 (ipa_read_optimization_summaries_1): Likewise for
330 read_optimization_summary hook.
331 (execute_ipa_stmt_fixups): Likewise.
332 * stringpool.c (init_stringpool): Clean up if we're called more
333 than once.
334 * timevar.c (timevar_init): Ignore repeated calls.
335 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
336 "ipa-prop.h".
337 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
338 (initialize_rtl): Move static local "initialized_once"
339 into file scope, and rename to...
340 (rtl_initialized): New variable.
341 (do_compile): Move timevar initialization from here to
342 toplev::start_timevars.
343 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
344 toplev::finalize): New functions.
345 (toplev_main): Rename to...
346 (toplev::main): ...this.
347 * toplev.h (class toplev): New class.
348
349 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
350
351 * loop-doloop.c: Include loop-unroll.h.
352
353 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
354
355 * cfg.h: New. Header file for cfg.c.
356 * cfganal.h: New. Header file for cfganal.c.
357 * lcm.h: New. Header file for lcm.c.
358 * loop-unroll.h: New. Header file for loop-unroll.h.
359 * cfgloop.h: (unroll_loops): Remove prototype.
360 * basic-block.h: Move prototypes and structs to new header files.
361 Include cfg.h, cfganal.h, and lcm.h.
362 * loop-init.c: Include loop-unroll.h.
363 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
364 * modulo-sched.c: Include loop-unroll.h.
365
366 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
367
368 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
369 MARKER_BYTE_UNKNOWN markers when handling casts.
370
371 2014-10-21 Richard Biener <rguenther@suse.de>
372
373 * tree-ssa-phiopt.c (value_replacement): Properly verify we
374 are the non-singleton PHI.
375
376 2014-10-21 Jakub Jelinek <jakub@redhat.com>
377
378 PR tree-optimization/63563
379 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
380 if either dra or drb stmts are not normal loads/stores.
381
382 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
383
384 * config/i386/i386.c (expand_vec_perm_1): Fix
385 expand_vec_perm_palignr case.
386 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
387 VI1_AVX512.
388
389 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
390
391 * cfgloopanal.c (seq_cost): Delete.
392 * rtl.h (seq_cost): New prototype.
393 * rtlanal.c (seq_cost): New function.
394 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
395
396 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
397
398 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
399 * basic-block.h: Remove prototypes for cfgrtl.c.
400 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
401 prototypes to cfgrtl.h.
402 * profile.h (profile_info): Add extern export declaration.
403 * rtl.h: Remove prototypes for cfgrtl.h.
404 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
405 * ipa-inline.c: Include profile.h.
406 * loop-unroll.c: Ditto.
407 * modulo-sched.c: Ditto.
408 * postreload-gcse.c: Ditto.
409 * predict.c: Ditto.
410 * sched-ebb.c: Ditto.
411 * sched-rgn.c: Ditto.
412 * tracer.c: Ditto.
413 * tree-ssa-loop-ivcanon.c: Ditto.
414
415 2014-10-20 Richard Biener <rguenther@suse.de>
416
417 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
418 operands to get a def operand kind match. Signal mismatches
419 to the parent so we can try swapping its operands.
420 (vect_build_slp_tree): Try swapping operands if they have
421 a mismatched operand kind.
422
423 2014-10-20 Alan Modra <amodra@gmail.com>
424
425 PR debug/60655
426 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
427 Increase "ops" array size. Correct array size tests. Init
428 n_constants in loop. Break out of innermost loop when finding
429 a trivial CONST expression.
430
431 2014-10-20 Martin Liska <mliska@suse.cz>
432
433 PR ipa/63583
434 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
435 Gimple tempate string is compared.
436
437 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
438
439 * varasm.c (const_alias_set): Remove.
440 (init_varasm_once): Remove initialization of const_alias_set.
441 (build_constant_desc): Do not set alias set to const_alias_set.
442
443 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
444
445 * configure: Regenerate.
446 * configure.ac: Move the test for section attribute specifier "e" in GAS
447 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
448 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
449 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
450 ifdef HAVE_GAS_SECTION_EXCLUDE.
451
452 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
453
454 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
455 match_operand expression.
456
457 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
458 David Edelsohn <dje.gcc@gmail.com>
459
460 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
461 function.
462 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
463
464 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
465
466 * doc/invoke.texi (Options to Request or Suppress Warnings):
467 Explain options precedence.
468 (Wtrampolines): Do not indent paragraph.
469
470 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
471
472 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
473 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
474 (pa_jump_in_call_delay): Likewise.
475 * config/pa/pa.c (pa_option_override): Remove jump in call delay
476 override.
477 (pa_output_millicode_call): Remove support for jump in call delay.
478 (pa_output_call): Likewise.
479 (pa_jump_in_call_delay): Delete.
480 (pa_following_call): Likewise.
481 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
482 (uncond_branch): Remove following call check from attribute length.
483
484 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
485
486 PR target/53513
487 * config/sh/sh-modes.def (PSI): Remove.
488 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
489 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
490 (sh_reorg): Remove commented out FPSCR code.
491 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
492 insn instead of move insn.
493 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
494 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
495 handling.
496 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
497 (sh1_builtin_p): Uncomment.
498 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
499 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
500 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
501 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
502 (general_movsrc_operand, general_movdst_operand): Disallow
503 fpscr_operand.
504 * config/sh/sh.md (FPSCR_FR): New constant.
505 (push_fpscr): Emit sts_fpscr insn.
506 (pop_fpscr): Emit lds_fpscr_insn.
507 (movsi_ie): Disallow FPSCR operands.
508 (fpu_switch, unnamed related split, extend_psi_si,
509 truncate_si_psi): Remove insns.
510 (lds_fpscr, sts_fpscr): New insns.
511 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
512
513 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
514
515 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
516 (clone_inlined_nodes): Do not overwrite the clone if above predicate
517 returns true.
518
519 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
520
521 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
522 (expand_vec_perm_d): Ditto.
523 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
524 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
525 V4DFmode.
526 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
527 (ix86_expand_sse_unpack): Handle V64QImode.
528 (expand_vec_perm_blend): Update conditions for TARGET, handle
529 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
530 (expand_vec_perm_pshufb): Handle V64QImode.
531 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
532 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
533 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
534 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
535 (ix86_expand_vecop_qihi): Handle V64QImode.
536 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
537 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
538 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
539 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
540 (mul<mode>3): Use VI1_AVX512.
541 (<sse2_avx2>_packsswb): Ditto.
542 (<sse2_avx2>_packuswb): Ditto.
543 (<ssse3_avx2>_pshufb<mode>3): Ditto.
544 (<shift_insn><mode>3): Ditto.
545
546 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
547
548 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
549 conditions to fix bootstrap.
550
551 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
552
553 gcc-plugin.h: Add tm.h and flattened includes from function.h.
554
555 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
556 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
557 Anna Tikhonova <anna.tikhonova@intel.com>
558 Ilya Tocar <ilya.tocar@intel.com>
559 Andrey Turetskiy <andrey.turetskiy@intel.com>
560 Ilya Verbin <ilya.verbin@intel.com>
561 Kirill Yukhin <kirill.yukhin@intel.com>
562 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
563
564 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
565 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
566 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
567 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
568 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
569 (define_expand "vec_init<mode>"): Use VF48_I1248.
570
571 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
572 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
573 Anna Tikhonova <anna.tikhonova@intel.com>
574 Ilya Tocar <ilya.tocar@intel.com>
575 Andrey Turetskiy <andrey.turetskiy@intel.com>
576 Ilya Verbin <ilya.verbin@intel.com>
577 Kirill Yukhin <kirill.yukhin@intel.com>
578 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
579
580 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
581 expand_sse2_mulvxdi3.
582
583 2014-10-17 Richard Biener <rguenther@suse.de>
584
585 * fold-const.c (fold_comparison): Remove redundant constant
586 folding and operand swapping.
587 (fold_binary_loc): Do comparison operand swapping here.
588 (fold_ternary_loc): Canonicalize operand order for
589 commutative ternary operations.
590 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
591 and FMA_EXPR.
592
593 2014-10-17 Jakub Jelinek <jakub@redhat.com>
594
595 PR tree-optimization/63464
596 * gimple.h (gimple_seq_discard): New prototype.
597 * gimple.c: Include stringpool.h and tree-ssanames.h.
598 (gimple_seq_discard): New function.
599 * optabs.h (lshift_cheap_p): New prototype.
600 * optabs.c (lshift_cheap_p): New function, moved from...
601 * tree-switch-conversion.c (lshift_cheap_p): ... here.
602 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
603 (reassoc_branch_fixups): New variable.
604 (update_range_test): Add otherrangep and seq arguments.
605 Unshare exp. If otherrange is NULL, use for other ranges
606 array of pointers pointed by otherrangep instead.
607 Emit seq before gimplified statements for tem.
608 (optimize_range_tests_diff): Adjust update_range_test
609 caller.
610 (optimize_range_tests_xor): Likewise. Fix up comment.
611 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
612 functions.
613 (optimize_range_tests): Adjust update_range_test caller.
614 Call optimize_range_tests_to_bit_test.
615 (branch_fixup): New function.
616 (execute_reassoc): Call branch_fixup.
617
618 PR tree-optimization/63302
619 * tree-ssa-reassoc.c (optimize_range_tests_xor,
620 optimize_range_tests_diff): Use !integer_pow2p () instead of
621 tree_log2 () < 0.
622
623 2014-10-17 Martin Liska <mliska@suse.cz>
624
625 * ipa-icf.c (sem_function::merge): Local flags are set to false
626 to enforce equal calling convention to be used.
627 * opts.c (common_handle_option): Indentation fix.
628
629 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
630
631 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
632
633 2014-10-17 Tom de Vries <tom@codesourcery.com>
634
635 PR rtl-optimization/61605
636 * regcprop.c (copyprop_hardreg_forward_1): Use
637 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
638
639 2014-10-17 Tom de Vries <tom@codesourcery.com>
640
641 PR rtl-optimization/61605
642 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
643 notice stores for noops. Don't regard noops as copies.
644
645 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
646
647 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
648 register in a special way.
649 (__cpuid_count): Ditto.
650 * config/i386/driver-i386.h: Protect with
651 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
652 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
653 is required to compile the function.
654
655 2014-10-16 DJ Delorie <dj@redhat.com>
656
657 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
658 integers.
659
660 * config/rs6000/rs6000-c.c (rid_int128): New.
661 (rs6000_macro_to_expand): Use instead of RID_INT128.
662
663 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
664
665 * function.h: Flatten file. Remove includes, adjust prototypes to
666 reflect only what is in function.h.
667 (enum direction, struct args_size, struct locate_and_pad_arg_data,
668 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
669 from expr.h.
670 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
671 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
672 prototypes to predict.h.
673 (init_varasm_status): Move prototype to varasm.h.
674 * expr.h: Adjust include files.
675 (enum direction, struct args_size, struct locate_and_pad_arg_data,
676 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
677 to function.h.
678 (locate_and_pad_parm): Move prototype to function.h.
679 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
680 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
681 assign_temp, reposition_prologue_and_epilogue_notes,
682 prologue_epilogue_contains, sibcall_epilogue_contains,
683 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
684 set_return_jump_label): Move prototypes to function.h.
685 * predict.h (optimize_function_for_size_p,
686 optimize_function_for_speed_p): Relocate prototypes from function.h.
687 * shrink-wrap.h (emit_return_into_block, active_insn_between,
688 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
689 function.h.
690 * varasm.h (init_varasm_status): Relocate prototype from function.h.
691 * genattrtab.c (write_header): Add predict.h to include list.
692 * genconditions.c (write_header): Add predict.h to include list.
693 * genemit.c (main): Adjust header file includes.
694 * gengtype.c (ifiles): Add flattened function.h header files.
695 * genoutput.c (output_prologue): Add predict.h to include list.
696 * genpreds.c (write_insn_preds_c): Adjust header file includes.
697 * genrecog.c (write_header): Add flattened function.h header files.
698 * alias.c: Adjust include files.
699 * auto-inc-dec.c: Likewise.
700 * basic-block.h: Likewise.
701 * bb-reorder.c: Likewise.
702 * bt-load.c: Likewise.
703 * builtins.c: Likewise.
704 * caller-save.c: Likewise.
705 * calls.c: Likewise.
706 * cfgbuild.c: Likewise.
707 * cfgcleanup.c: Likewise.
708 * cfgexpand.c: Likewise.
709 * cfgloop.c: Likewise.
710 * cfgloop.h: Likewise.
711 * cfgrtl.c: Likewise.
712 * cgraph.h: Likewise.
713 * cgraphclones.c: Likewise.
714 * cgraphunit.c: Likewise.
715 * combine-stack-adj.c: Likewise.
716 * combine.c: Likewise.
717 * coverage.c: Likewise.
718 * cprop.c: Likewise.
719 * cse.c: Likewise.
720 * cselib.c: Likewise.
721 * dbxout.c: Likewise.
722 * ddg.c: Likewise.
723 * df-core.c: Likewise.
724 * df-problems.c: Likewise.
725 * df-scan.c: Likewise.
726 * dojump.c: Likewise.
727 * dwarf2cfi.c: Likewise.
728 * dwarf2out.c: Likewise.
729 * emit-rtl.c: Likewise.
730 * except.c: Likewise.
731 * explow.c: Likewise.
732 * expr.c: Likewise.
733 * final.c: Likewise.
734 * function.c: Likewise.
735 * gcse.c: Likewise.
736 * gimple-fold.c: Likewise.
737 * gimple-low.c: Likewise.
738 * gimple-streamer.h: Likewise.
739 * haifa-sched.c: Likewise.
740 * ifcvt.c: Likewise.
741 * ira.c: Likewise.
742 * jump.c: Likewise.
743 * lcm.c: Likewise.
744 * loop-invariant.c: Likewise.
745 * lra-assigns.c: Likewise.
746 * lra-coalesce.c: Likewise.
747 * lra-constraints.c: Likewise.
748 * lra-eliminations.c: Likewise.
749 * lra-lives.c: Likewise.
750 * lra-spills.c: Likewise.
751 * lra.c: Likewise.
752 * lto-cgraph.c: Likewise.
753 * lto-section-in.c: Likewise.
754 * lto-section-out.c: Likewise.
755 * lto-streamer-in.c: Likewise.
756 * lto-streamer-out.c: Likewise.
757 * mode-switching.c: Likewise.
758 * modulo-sched.c: Likewise.
759 * omp-low.c: Likewise.
760 * optabs.c: Likewise.
761 * passes.c: Likewise.
762 * postreload-gcse.c: Likewise.
763 * postreload.c: Likewise.
764 * predict.c: Likewise.
765 * profile.c: Likewise.
766 * recog.c: Likewise.
767 * ree.c: Likewise.
768 * reg-stack.c: Likewise.
769 * regcprop.c: Likewise.
770 * reginfo.c: Likewise.
771 * regrename.c: Likewise.
772 * reload.c: Likewise.
773 * reload1.c: Likewise.
774 * reorg.c: Likewise.
775 * resource.c: Likewise.
776 * rtlanal.c: Likewise.
777 * sched-deps.c: Likewise.
778 * sched-ebb.c: Likewise.
779 * sched-rgn.c: Likewise.
780 * sel-sched-dump.c: Likewise.
781 * sel-sched-ir.c: Likewise.
782 * sel-sched.c: Likewise.
783 * shrink-wrap.c: Likewise.
784 * simplify-rtx.c: Likewise.
785 * statistics.c: Likewise.
786 * stmt.c: Likewise.
787 * stor-layout.c: Likewise.
788 * store-motion.c: Likewise.
789 * symtab.c: Likewise.
790 * targhooks.c: Likewise.
791 * toplev.c: Likewise.
792 * trans-mem.c: Likewise.
793 * tree-cfg.c: Likewise.
794 * tree-cfgcleanup.c: Likewise.
795 * tree-dfa.c: Likewise.
796 * tree-eh.c: Likewise.
797 * tree-inline.c: Likewise.
798 * tree-into-ssa.c: Likewise.
799 * tree-nested.c: Likewise.
800 * tree-nrv.c: Likewise.
801 * tree-profile.c: Likewise.
802 * tree-ssa-alias.c: Likewise.
803 * tree-ssa-ccp.c: Likewise.
804 * tree-ssa-copy.c: Likewise.
805 * tree-ssa-copyrename.c: Likewise.
806 * tree-ssa-dom.c: Likewise.
807 * tree-ssa-operands.c: Likewise.
808 * tree-ssa-propagate.c: Likewise.
809 * tree-ssa-structalias.c: Likewise.
810 * tree-ssa-tail-merge.c: Likewise.
811 * tree-ssa-threadedge.c: Likewise.
812 * tree-ssa-threadupdate.c: Likewise.
813 * tree-ssa-uncprop.c: Likewise.
814 * tree-ssa-uninit.c: Likewise.
815 * tree-ssa.c: Likewise.
816 * tree-stdarg.c: Likewise.
817 * tree-tailcall.c: Likewise.
818 * tree.c: Likewise.
819 * tsan.c: Likewise.
820 * valtrack.c: Likewise.
821 * varasm.c: Likewise.
822 * vmsdbgout.c: Likewise.
823 * web.c: Likewise.
824 * config/aarch64/aarch64.c: Add flattened includes from function.h.
825 * config/alpha/alpha.c: Likewise.
826 * config/arc/arc.c: Likewise.
827 * config/arm/arm.c: Likewise.
828 * config/avr/avr-log.c: Likewise.
829 * config/avr/avr.c: Likewise.
830 * config/bfin/bfin.c: Likewise.
831 * config/c6x/c6x.c: Likewise.
832 * config/cr16/cr16.c: Likewise.
833 * config/cris/cris.c: Likewise.
834 * config/darwin.c: Likewise.
835 * config/epiphany/epiphany.c: Likewise.
836 * config/epiphany/mode-switch-use.c: Likewise.
837 * config/epiphany/resolve-sw-modes.c: Likewise.
838 * config/fr30/fr30.c: Likewise.
839 * config/frv/frv.c: Likewise.
840 * config/h8300/h8300.c: Likewise.
841 * config/i386/i386.c: Likewise.
842 * config/ia64/ia64.c: Likewise.
843 * config/iq2000/iq2000.c: Likewise.
844 * config/lm32/lm32.c: Likewise.
845 * config/m32c/m32c.c: Likewise.
846 * config/m32r/m32r.c: Likewise.
847 * config/m68k/m68k.c: Likewise.
848 * config/mcore/mcore.c: Likewise.
849 * config/mep/mep-pragma.c: Likewise.
850 * config/mep/mep.c: Likewise.
851 * config/microblaze/microblaze.c: Likewise.
852 * config/mips/mips.c: Likewise.
853 * config/mmix/mmix.c: Likewise.
854 * config/mn10300/mn10300.c: Likewise.
855 * config/moxie/moxie.c: Likewise.
856 * config/msp430/msp430.c: Likewise.
857 * config/nds32/nds32-cost.c: Likewise.
858 * config/nds32/nds32-fp-as-gp.c: Likewise.
859 * config/nds32/nds32-intrinsic.c: Likewise.
860 * config/nds32/nds32-isr.c: Likewise.
861 * config/nds32/nds32-md-auxiliary.c: Likewise.
862 * config/nds32/nds32-memory-manipulation.c: Likewise.
863 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
864 * config/nds32/nds32-predicates.c: Likewise.
865 * config/nds32/nds32.c: Likewise.
866 * config/nios2/nios2.c: Likewise.
867 * config/pa/pa.c: Likewise.
868 * config/pdp11/pdp11.c: Likewise.
869 * config/rl78/rl78.c: Likewise.
870 * config/rs6000/rs6000.c: Likewise.
871 * config/rx/rx.c: Likewise.
872 * config/s390/s390.c: Likewise.
873 * config/score/score.c: Likewise.
874 * config/sh/sh.c: Likewise.
875 * config/sparc/sparc.c: Likewise.
876 * config/spu/spu.c: Likewise.
877 * config/stormy16/stormy16.c: Likewise.
878 * config/tilegx/tilegx.c: Likewise.
879 * config/tilepro/tilepro.c: Likewise.
880 * config/v850/v850.c: Likewise.
881 * config/vax/vax.c: Likewise.
882 * config/xtensa/xtensa.c: Likewise.
883
884 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
885
886 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
887 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
888
889 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
890
891 * config/sh/sh-protos.h (fldi_ok): Remove.
892 * config/sh/sh.c (fldi_ok): Likewise.
893 (sh_secondary_reload): Don't use fldi_ok.
894 * config/sh/constraints.md (G constraint, H constraint): Don't use
895 fldi_ok.
896
897 2014-10-16 Martin Liska <mliska@suse.cz>
898
899 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
900 Cast to unsigned long.
901 (sem_item_optimizer::dump_cong_classes): Likewise.
902
903 2014-10-16 Tom de Vries <tom@codesourcery.com>
904
905 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
906 with SSA_NAME_IN_FREELIST.
907
908 2014-10-16 Richard Biener <rguenther@suse.de>
909
910 PR middle-end/63554
911 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
912 (fold_builtin_strncat_chk): Move ...
913 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
914 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
915
916 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
917
918 PR target/59401
919 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
920 GBR to 0.
921
922 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
923 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
924 Anna Tikhonova <anna.tikhonova@intel.com>
925 Ilya Tocar <ilya.tocar@intel.com>
926 Andrey Turetskiy <andrey.turetskiy@intel.com>
927 Ilya Verbin <ilya.verbin@intel.com>
928 Kirill Yukhin <kirill.yukhin@intel.com>
929 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
930
931 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
932 V64QI modes.
933
934 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
935 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
936 Anna Tikhonova <anna.tikhonova@intel.com>
937 Ilya Tocar <ilya.tocar@intel.com>
938 Andrey Turetskiy <andrey.turetskiy@intel.com>
939 Ilya Verbin <ilya.verbin@intel.com>
940 Kirill Yukhin <kirill.yukhin@intel.com>
941 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
942
943 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
944 V16SI, V32HI, V64QI modes.
945
946 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
947
948 PR target/53513
949 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
950 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
951
952 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
953 to match fp insn patterns.
954 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
955 list.
956 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
957 expand_df_unop, expand_df_binop): Remove.
958 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
959 FPSCR_STAT_REG as not call clobbered.
960 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
961 invoking fpscr_set_from_mem.
962
963 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
964 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
965 FPSCR_STAT_REG.
966 (REGISTER_NAMES): Adjust.
967 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
968 (FIRST_PSEUDO_REGISTER): Increase to 156.
969 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
970 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
971 FPSCR_STAT_REG.
972 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
973 FPSCR_MODES_REG and FPSCR_STAT_REG.
974 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
975
976 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
977 FPSCR_SZ): Add new constants.
978 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
979
980 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
981 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
982 Use TARGET_FPU_ANY condition.
983 (fpu_switch peephole2): Remove.
984 (fpu_switch split): Use simple_mem_operand to capture the mem and
985 adjust split implementation.
986 (extend_psi_si, truncate_si_psi): New insns.
987 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
988 set of FPSCR_MODES_REG.
989
990 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
991 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
992 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
993 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
994 call_value_compact, call_value_compact_rettramp, call,
995 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
996 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
997 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
998 sibcall_value_compact, sibcall_value, call_value_pop_compact,
999 call_value_pop_compact_rettramp, various unnamed splits):
1000 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
1001 function uses.
1002
1003 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1004 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1005 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1006 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1007 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1008
1009 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1010 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1011 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1012 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1013 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1014 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1015 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
1016
1017 2014-10-16 Martin Liska <mliska@suse.cz>
1018 Jan Hubicka <hubicka@ucw.cz>
1019
1020 * Makefile.in: New object files included.
1021 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1022 is printed.
1023 (verify_edge_corresponds_to_fndecl): More sensitive verification
1024 of nodes that are merged by IPA ICF.
1025 * cgraph.h (cgraph_node::num_references): New function.
1026 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1027 * common.opt: New options ipa-icf, ipa-icf-functions and
1028 ipa-icf-variables introduced.
1029 * doc/invoke.texi: Documentation of new options introduced.
1030 * ipa-icf-gimple.c: New file.
1031 * ipa-icf-gimple.h: New file.
1032 * ipa-icf.c: New file.
1033 * ipa-icf.h: New file.
1034 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1035 (input_overwrite_node): Likewise.
1036 * lto-section-in.c: New icf section added.
1037 * lto-streamer.h (enum lto_section_type): Likewise.
1038 * opts.c (common_handle_option): New option added.
1039 * passes.def: New pass included.
1040 * timevar.def: Time variable for IPA ICF added.
1041 * tree-pass.h: New IPA ICF pass entry point added.
1042
1043 2014-10-16 Richard Biener <rguenther@suse.de>
1044
1045 PR tree-optimization/63168
1046 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1047 latches if after merging they are no longer simple.
1048 * cfghooks.c (merge_blocks): Handle merging a latch block
1049 into another block.
1050
1051 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1052 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1053 Anna Tikhonova <anna.tikhonova@intel.com>
1054 Ilya Tocar <ilya.tocar@intel.com>
1055 Andrey Turetskiy <andrey.turetskiy@intel.com>
1056 Ilya Verbin <ilya.verbin@intel.com>
1057 Kirill Yukhin <kirill.yukhin@intel.com>
1058 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1059
1060 * config/i386/sse.md
1061 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1062 support AVX-512VL instructions.
1063
1064 2014-10-16 DJ Delorie <dj@redhat.com>
1065
1066 * tree-core.h: Fix comment to not assume pointers are multiples of
1067 bytes.
1068
1069 2014-10-15 Tom Tromey <tromey@redhat.com>
1070
1071 * timevar.h (class auto_timevar): New class.
1072
1073 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
1074
1075 PR go/59432
1076 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1077 Remove the second alternative.
1078 (regprefix): Remove mode attribute.
1079 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1080 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1081
1082 Revert:
1083 2013-11-05 Ian Lance Taylor <iant@google.com>
1084
1085 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1086 If possible, add .cfi directives to record change to bx.
1087 * config/i386/i386.c (ix86_emit_cfi): New function.
1088 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1089
1090 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
1091
1092 PR lto/62026
1093 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1094 to duplicate.
1095 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1096 at WPA time.
1097
1098 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
1099
1100 PR rtl-optimization/63448
1101 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
1102 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
1103 (LRA_MAX_INHERITANCE_PASSES): Use it.
1104 (lra_constraint_iter_after_spill): Remove.
1105 (lra_assignment_iter): New.
1106 (lra_assignment_iter_after_spill): New.
1107 * lra-assigns.c (lra_assignment_iter): New.
1108 (lra_assignment_iter_after_spill): New.
1109 (former_reload_pseudo_spill_p): New.
1110 (spill_for): Set up former_reload_pseudo_spill_p.
1111 (setup_live_pseudos_and_spill_after_risky): Ditto.
1112 (assign_by_spills): Ditto.
1113 (lra_assign): Increment lra_assignment_iter. Print the iteration
1114 number. Reset former_reload_pseudo_spill_p. Check
1115 lra_assignment_iter_after_spill.
1116 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
1117 lra_assignment_iter and lra_assignment_iter_after_spill.
1118 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
1119 (lra_constraints): Remove code with
1120 lra_assignment_iter_after_spill.
1121
1122 2014-10-15 Teresa Johnson <tejohnson@google.com>
1123
1124 PR bootstrap/63432
1125 * tree-ssa-threadupdate.c (recompute_probabilities): Better
1126 overflow checking.
1127
1128 2014-10-15 Renlin Li <renlin.li@arm.com>
1129
1130 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1131 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
1132 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
1133 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
1134
1135 2014-10-15 Richard Biener <rguenther@suse.de>
1136
1137 * gimple-fold.c (gimple_fold_call): Properly keep virtual
1138 SSA form up-to-date when devirtualizing a call to
1139 __builtin_unreachable and avoid fixing up EH info here.
1140
1141 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1142 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1143 Anna Tikhonova <anna.tikhonova@intel.com>
1144 Ilya Tocar <ilya.tocar@intel.com>
1145 Andrey Turetskiy <andrey.turetskiy@intel.com>
1146 Ilya Verbin <ilya.verbin@intel.com>
1147 Kirill Yukhin <kirill.yukhin@intel.com>
1148 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1149
1150 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
1151 to support AVX-512BW.
1152 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
1153 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
1154 (define_insn "*<plusminus_insn><mode>3"): Ditto.
1155 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
1156 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1157 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
1158 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
1159 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
1160 (define_insn "*andnot<mode>3"): Ditto.
1161 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
1162 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
1163 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
1164 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
1165 (define_insn "*abs<mode>2"): Remove masking support.
1166 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
1167 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
1168 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
1169
1170 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
1171 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1172 Anna Tikhonova <anna.tikhonova@intel.com>
1173 Ilya Tocar <ilya.tocar@intel.com>
1174 Andrey Turetskiy <andrey.turetskiy@intel.com>
1175 Ilya Verbin <ilya.verbin@intel.com>
1176 Kirill Yukhin <kirill.yukhin@intel.com>
1177 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1178
1179 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
1180 * config/i386/sse.md
1181 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
1182 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
1183 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
1184 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1185 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
1186 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1187 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
1188
1189 2014-10-15 Renlin Li <renlin.li@arm.com>
1190
1191 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
1192
1193 2014-10-15 Jakub Jelinek <jakub@redhat.com>
1194
1195 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
1196 MINUS_EXPR in unsigned type to avoid undefined behavior.
1197
1198 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
1199
1200 * stor-layout.c (self_referential_size): Do not promote arguments.
1201
1202 2014-10-15 Marek Polacek <polacek@redhat.com>
1203
1204 * doc/invoke.texi: Update to reflect that GNU11 is the default
1205 mode for C.
1206 * c-common.h (c_language_kind): Update comment.
1207
1208 2014-10-15 Richard Biener <rguenther@suse.de>
1209
1210 * hash-table.c: Include bconfig.h if building for the host.
1211 * hash-table.h: Do not include ggc.h on the host but just declare
1212 a few ggc allocation templates.
1213
1214 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
1215 Jeff Law <law@redhat.com>
1216
1217 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
1218 multiple hard registers, use smaller mode derived from MODE.
1219
1220 2014-10-15 Andreas Schwab <schwab@suse.de>
1221
1222 * explow.c (convert_memory_address_addr_space_1): Mark in_const
1223 as ATTRIBUTE_UNUSED.
1224
1225 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
1226
1227 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
1228 (decide_unrolling): ... this one.
1229 (peel_loops_completely): Remove.
1230 (decide_peel_simple): Remove.
1231 (decide_peel_once_rolling): Remove.
1232 (decide_peel_completely): Remove.
1233 (peel_loop_simple): Remove.
1234 (peel_loop_completely): Remove.
1235 (unroll_and_peel_loops): Rename to ...
1236 (unroll_loops): ... this one; handle only unrolling.
1237 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
1238 LPT_PEEL_SIMPLE.
1239 (UAP_PEEL): Remove.
1240 (unroll_and_peel_loops): Remove.
1241 (unroll_loops): New.
1242 * passes.def: Replace
1243 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
1244 * loop-init.c (gate_rtl_unroll_and_peel_loops,
1245 rtl_unroll_and_peel_loops): Rename to ...
1246 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
1247 (pass_rtl_unroll_and_peel_loops): Rename to ...
1248 (pass_rtl_unroll_loops): ... this one.
1249 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
1250 (make_pass_rtl_unroll_loops): New.
1251 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
1252 (canonicalize_loop_induction_variables): Update.
1253
1254 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1255
1256 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
1257 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
1258 !TARGET_HARD_FLOAT_POSTINC.
1259 (*lsip, *ssip): new instructions.
1260
1261 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
1262
1263 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
1264 remove.
1265
1266 2014-10-14 Andrew Pinski <apinski@cavium.com>
1267
1268 * explow.c (convert_memory_address_addr_space): Rename to ...
1269 (convert_memory_address_addr_space_1): This. Add in_const argument.
1270 Inside a CONST RTL, permute the conversion and addition of constant
1271 for zero and sign extended pointers.
1272 (convert_memory_address_addr_space): New function.
1273
1274 2014-10-14 Andrew Pinski <apinski@cavium.com>
1275
1276 Revert:
1277 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
1278
1279 PR middle-end/49721
1280 * explow.c (convert_memory_address_addr_space): Also permute the
1281 conversion and addition of constant for zero-extend.
1282
1283 2014-10-14 DJ Delorie <dj@redhat.com>
1284
1285 * config/msp430/msp430-modes.def (PSI): Add.
1286
1287 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
1288 (msp430_hard_regno_nregs_with_padding): New.
1289 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
1290 (msp430_hard_regno_nregs_has_padding): New.
1291 (msp430_hard_regno_nregs_with_padding): New.
1292 (msp430_unwind_word_mode): Use PSImode instead of SImode.
1293 (msp430_addr_space_legitimate_address_p): New.
1294 (msp430_asm_integer): New.
1295 (msp430_init_dwarf_reg_sizes_extra): New.
1296 (msp430_print_operand): Use X suffix for PSImode even in small model.
1297 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
1298 (PTR_SIZE): ...but 4 bytes for EH.
1299 (SIZE_TYPE): Use __int20.
1300 (PTRDIFF_TYPE): Likewise.
1301 (INCOMING_FRAME_SP_OFFSET): Adjust.
1302 * config/msp430/msp430.md (movqi_topbyte): New.
1303 (movpsi): Use fixed suffixes.
1304 (movsipsi2): Enable for 430X, not large model.
1305 (extendhipsi2): Likewise.
1306 (zero_extendhisi2): Likewise.
1307 (zero_extendhisipsi2): Likewise.
1308 (extend_and_shift1_hipsi2): Likewise.
1309 (extendpsisi2): Likewise.
1310 (*bitbranch<mode>4_z): Fix suffix logic.
1311
1312 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
1313
1314 PR ada/62019
1315 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
1316 do not choke on null node.
1317 <VAR_DECL>: Likewise.
1318
1319 2014-10-14 DJ Delorie <dj@redhat.com>
1320
1321 * machmode.h (int_n_data_t): New.
1322 (int_n_enabled_p): New.
1323 (int_n_data): New.
1324 * tree.c (int_n_enabled_p): New.
1325 (int_n_trees): New.
1326 (make_or_reuse_type): Check for all __intN types, not just
1327 __int128.
1328 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
1329 entries.
1330 * tree.h (int128_integer_type_node): Remove.
1331 (int128_unsigned_type_node): Remove.
1332 (int_n_trees_t): New.
1333 (int_n_enabled_p): New.
1334 (int_n_trees): New.
1335 * toplev.c (standard_type_bitsize): New.
1336 (do_compile): Check which __intN types are enabled for the current
1337 run.
1338 * builtin-types.def (BT_INT128): Remove.
1339 (BT_UINT128): Remove.
1340 * machmode.def: Add macro to create __int128 for all targets.
1341 * stor-layout.c (mode_for_size): Support __intN types.
1342 (smallest_mode_for_size): Likewise.
1343 (initialize_sizetypes): Support __intN types.
1344 * genmodes.c (struct mode_data): Add int_n field.
1345 (blank_mode): Likewise.
1346 (INT_N): New.
1347 (make_int_n): New.
1348 (emit_insn_modes_h): Count __intN entries and define
1349 NUM_INT_N_ENTS.
1350 (emit_mode_int_n): New.
1351 (emit_insn_modes_c): Call it.
1352 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
1353 types, not just __int128.
1354 * tree-core.h (integer_type_kind): Remove __int128-specific
1355 entries, reserve spots for __intN entries.
1356
1357 * config/msp430/msp430-modes.def (PSI): Add.
1358
1359 2014-10-14 Kito Cheng <kito@0xlab.org>
1360
1361 * ira.c: Fix typo in comment.
1362 * ira.h: Ditto.
1363 * ira-build.c: Ditto.
1364 * ira-color.c: Ditto.
1365 * ira-emit.c: Ditto.
1366 * ira-int.h: Ditto.
1367 * ira-lives.c: Ditto.
1368
1369 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
1370
1371 PR rtl-optimization/63475
1372 * alias.c (true_dependence_1): Always use get_addr to extract
1373 true address operands from x_addr and mem_addr. Use extracted
1374 address operands to check for references with alignment ANDs.
1375 Use extracted address operands with find_base_term and
1376 base_alias_check. For noncanonicalized operands call canon_rtx with
1377 extracted address operand.
1378 (write_dependence_1): Ditto.
1379 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
1380
1381 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
1382
1383 PR target/63534
1384 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
1385 __morestack local.
1386
1387 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1388 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1389 Anna Tikhonova <anna.tikhonova@intel.com>
1390 Ilya Tocar <ilya.tocar@intel.com>
1391 Andrey Turetskiy <andrey.turetskiy@intel.com>
1392 Ilya Verbin <ilya.verbin@intel.com>
1393 Kirill Yukhin <kirill.yukhin@intel.com>
1394 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1395
1396 * config/i386/i386.c
1397 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
1398 (ix86_expand_int_vcond): Ditto.
1399
1400 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1401 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1402 Anna Tikhonova <anna.tikhonova@intel.com>
1403 Ilya Tocar <ilya.tocar@intel.com>
1404 Andrey Turetskiy <andrey.turetskiy@intel.com>
1405 Ilya Verbin <ilya.verbin@intel.com>
1406 Kirill Yukhin <kirill.yukhin@intel.com>
1407 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1408
1409 * config/i386/i386.c
1410 (emit_reduc_half): Handle V64QI and V32HI mode.
1411 * config/i386/sse.md
1412 (define_mode_iterator VI_AVX512BW): New.
1413 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
1414
1415 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1416 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1417 Anna Tikhonova <anna.tikhonova@intel.com>
1418 Ilya Tocar <ilya.tocar@intel.com>
1419 Andrey Turetskiy <andrey.turetskiy@intel.com>
1420 Ilya Verbin <ilya.verbin@intel.com>
1421 Kirill Yukhin <kirill.yukhin@intel.com>
1422 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1423
1424 * config/i386/sse.md
1425 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
1426
1427 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1428 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1429 Anna Tikhonova <anna.tikhonova@intel.com>
1430 Ilya Tocar <ilya.tocar@intel.com>
1431 Andrey Turetskiy <andrey.turetskiy@intel.com>
1432 Ilya Verbin <ilya.verbin@intel.com>
1433 Kirill Yukhin <kirill.yukhin@intel.com>
1434 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1435
1436 * config/i386/i386.c
1437 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
1438 * config/i386/sse.md
1439 (define_mode_iterator VI): Add V64QI and V32HI modes.
1440
1441 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1442 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1443 Anna Tikhonova <anna.tikhonova@intel.com>
1444 Ilya Tocar <ilya.tocar@intel.com>
1445 Andrey Turetskiy <andrey.turetskiy@intel.com>
1446 Ilya Verbin <ilya.verbin@intel.com>
1447 Kirill Yukhin <kirill.yukhin@intel.com>
1448 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1449
1450 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
1451
1452 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1453 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1454 Anna Tikhonova <anna.tikhonova@intel.com>
1455 Ilya Tocar <ilya.tocar@intel.com>
1456 Andrey Turetskiy <andrey.turetskiy@intel.com>
1457 Ilya Verbin <ilya.verbin@intel.com>
1458 Kirill Yukhin <kirill.yukhin@intel.com>
1459 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1460
1461 * config/i386/sse.md
1462 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
1463 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
1464
1465 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1467 Anna Tikhonova <anna.tikhonova@intel.com>
1468 Ilya Tocar <ilya.tocar@intel.com>
1469 Andrey Turetskiy <andrey.turetskiy@intel.com>
1470 Ilya Verbin <ilya.verbin@intel.com>
1471 Kirill Yukhin <kirill.yukhin@intel.com>
1472 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1473
1474 * config/i386/sse.md
1475 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
1476 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
1477
1478 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1479 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1480 Anna Tikhonova <anna.tikhonova@intel.com>
1481 Ilya Tocar <ilya.tocar@intel.com>
1482 Andrey Turetskiy <andrey.turetskiy@intel.com>
1483 Ilya Verbin <ilya.verbin@intel.com>
1484 Kirill Yukhin <kirill.yukhin@intel.com>
1485 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1486
1487 * config/i386/sse.md
1488 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
1489 (define_mode_iterator VI2_AVX2): Add V32HI mode.
1490 (define_expand "mul<mode>3<mask_name>"): Add masking.
1491 (define_insn "*mul<mode>3<mask_name>"): Ditto.
1492 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
1493 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
1494 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
1495 (define_mode_attr SDOT_PMADD_SUF): Ditto.
1496 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
1497 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
1498 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
1499 (define_insn "avx2_packusdw"): Delete.
1500 (define_insn "sse4_1_packusdw"): Ditto.
1501 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
1502
1503 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1504 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1505 Anna Tikhonova <anna.tikhonova@intel.com>
1506 Ilya Tocar <ilya.tocar@intel.com>
1507 Andrey Turetskiy <andrey.turetskiy@intel.com>
1508 Ilya Verbin <ilya.verbin@intel.com>
1509 Kirill Yukhin <kirill.yukhin@intel.com>
1510 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1511
1512 * config/i386/sse.md
1513 (define_insn "vec_dup<mode>"): Update constraints.
1514
1515 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1516 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1517 Anna Tikhonova <anna.tikhonova@intel.com>
1518 Ilya Tocar <ilya.tocar@intel.com>
1519 Andrey Turetskiy <andrey.turetskiy@intel.com>
1520 Ilya Verbin <ilya.verbin@intel.com>
1521 Kirill Yukhin <kirill.yukhin@intel.com>
1522 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1523
1524 * config/i386/sse.md
1525 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
1526 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
1527 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
1528
1529 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1530 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1531 Anna Tikhonova <anna.tikhonova@intel.com>
1532 Ilya Tocar <ilya.tocar@intel.com>
1533 Andrey Turetskiy <andrey.turetskiy@intel.com>
1534 Ilya Verbin <ilya.verbin@intel.com>
1535 Kirill Yukhin <kirill.yukhin@intel.com>
1536 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1537
1538 * config/i386/sse.md
1539 (define_expand "mul<mode>3<mask_name>"): Add masking.
1540
1541 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1542 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1543 Anna Tikhonova <anna.tikhonova@intel.com>
1544 Ilya Tocar <ilya.tocar@intel.com>
1545 Andrey Turetskiy <andrey.turetskiy@intel.com>
1546 Ilya Verbin <ilya.verbin@intel.com>
1547 Kirill Yukhin <kirill.yukhin@intel.com>
1548 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1549
1550 * config/i386/sse.md
1551 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
1552 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
1553
1554 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1555 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1556 Anna Tikhonova <anna.tikhonova@intel.com>
1557 Ilya Tocar <ilya.tocar@intel.com>
1558 Andrey Turetskiy <andrey.turetskiy@intel.com>
1559 Ilya Verbin <ilya.verbin@intel.com>
1560 Kirill Yukhin <kirill.yukhin@intel.com>
1561 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1562
1563 * config/i386/sse.md
1564 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
1565 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
1566 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
1567 Ditto.
1568
1569 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1570 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1571 Anna Tikhonova <anna.tikhonova@intel.com>
1572 Ilya Tocar <ilya.tocar@intel.com>
1573 Andrey Turetskiy <andrey.turetskiy@intel.com>
1574 Ilya Verbin <ilya.verbin@intel.com>
1575 Kirill Yukhin <kirill.yukhin@intel.com>
1576 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1577
1578 * config/i386/sse.md
1579 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
1580 use VF_128_256 mode iterator and update assembler emit code.
1581 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
1582 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
1583 Add masking, use VF_128_256 mode iterator.
1584 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
1585 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
1586 Add masking, use VF_128_256 mode iterator and update assembler emit
1587 code.
1588 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
1589 (define_mode_attr avx512flogicsuff): Delete.
1590 (define_insn "avx512f_<logic><mode>"): Ditto.
1591 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
1592 MODE_TI.
1593 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
1594
1595 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1596 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1597 Anna Tikhonova <anna.tikhonova@intel.com>
1598 Ilya Tocar <ilya.tocar@intel.com>
1599 Andrey Turetskiy <andrey.turetskiy@intel.com>
1600 Ilya Verbin <ilya.verbin@intel.com>
1601 Kirill Yukhin <kirill.yukhin@intel.com>
1602 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1603
1604 * config/i386/sse.md
1605 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
1606 (define_expand "vashr<mode>3<mask_name>"): Add masking,
1607 use VI12_128 mode iterator.
1608 (define_expand "ashrv2di3<mask_name>"): New.
1609
1610 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1611 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1612 Anna Tikhonova <anna.tikhonova@intel.com>
1613 Ilya Tocar <ilya.tocar@intel.com>
1614 Andrey Turetskiy <andrey.turetskiy@intel.com>
1615 Ilya Verbin <ilya.verbin@intel.com>
1616 Kirill Yukhin <kirill.yukhin@intel.com>
1617 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1618
1619 * config/i386/i386.c
1620 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
1621 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
1622 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
1623 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
1624 CODE_FOR_avx512vl_ucmpv4si3_mask.
1625 * config/i386/sse.md
1626 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
1627 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
1628 (define_insn
1629 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
1630 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
1631 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
1632 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
1633 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
1634 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
1635
1636 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1637 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1638 Anna Tikhonova <anna.tikhonova@intel.com>
1639 Ilya Tocar <ilya.tocar@intel.com>
1640 Andrey Turetskiy <andrey.turetskiy@intel.com>
1641 Ilya Verbin <ilya.verbin@intel.com>
1642 Kirill Yukhin <kirill.yukhin@intel.com>
1643 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1644
1645 * config/i386/sse.md
1646 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
1647 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
1648 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
1649 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
1650 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
1651 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
1652 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1653 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
1654 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
1655
1656 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
1657 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1658 Anna Tikhonova <anna.tikhonova@intel.com>
1659 Ilya Tocar <ilya.tocar@intel.com>
1660 Andrey Turetskiy <andrey.turetskiy@intel.com>
1661 Ilya Verbin <ilya.verbin@intel.com>
1662 Kirill Yukhin <kirill.yukhin@intel.com>
1663 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1664
1665 * config/i386/sse.md
1666 (define_insn "avx512f_blendm<mode>"): Delete.
1667 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
1668 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
1669 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
1670 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
1671 (define_insn
1672 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1673 Remove.
1674 (define_insn
1675 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1676 New.
1677 (define_insn
1678 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
1679 Ditto.
1680 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
1681 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
1682 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
1683 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
1684 Delete.
1685 (define_insn
1686 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
1687 New.
1688 (define_insn
1689 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
1690 Ditto.
1691 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
1692 Delete.
1693 (define_insn
1694 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
1695 New.
1696 (define_insn
1697 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
1698 Ditto.
1699
1700 2014-10-14 Richard Biener <rguenther@suse.de>
1701
1702 PR tree-optimization/63512
1703 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
1704 modified.
1705
1706 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
1707
1708 PR target/63260
1709 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
1710 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
1711 of FPSCR.
1712 (negsf2_i): Rename to *negsf2_i.
1713 (abssf2_i): Rename to *abssf2_i.
1714 (negdf2_i): Rename to *negdf2_i.
1715 (absdf2_i): Rename to *absdf2_i.
1716
1717 2014-10-14 Felix Yang <felix.yang@huawei.com>
1718 Jeff Law <law@redhat.com>
1719
1720 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
1721 "replace" into boolean bitfields; turn member "loop_depth" into a short
1722 integer; add new member "no_equiv" and "reserved".
1723 (no_equiv): Set no_equiv of struct equivalence if register is marked
1724 as having no known equivalence.
1725 (update_equiv_regs): Check all definitions for a multiple-set
1726 register to make sure that the RHS have the same value.
1727
1728 2014-10-13 Richard Henderson <rth@redhat.com>
1729
1730 * combine-stack-adj.c (no_unhandled_cfa): New.
1731 (maybe_merge_cfa_adjust): New.
1732 (combine_stack_adjustments_for_block): Use them.
1733
1734 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
1735
1736 * Makefile.in (TAGS): Tag ../include files.
1737
1738 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1739
1740 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
1741 to rs6000_dbx_register_number.
1742 (DWARF_FRAME_REGNUM): Redefine as identity map.
1743 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
1744 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
1745 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
1746 argument to handle .debug_frame and .eh_frame directly. Always
1747 translate SPE high register numbers. Add special treatment for CR,
1748 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
1749
1750 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
1751 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
1752 (RS6000_USE_DWARF_NUMBERING): Define.
1753 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
1754 (RS6000_USE_DWARF_NUMBERING): Define.
1755 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
1756 (RS6000_USE_DWARF_NUMBERING): Define.
1757 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
1758 (RS6000_USE_DWARF_NUMBERING): Define.
1759 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
1760 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
1761
1762 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1763
1764 * config/i386/i386.c (ix86_address_cost): Lower cost for
1765 when address contains GOT register.
1766
1767 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
1768 Vladimir Makarov <vmakarov@redhat.com>
1769
1770 PR target/8340
1771 PR middle-end/47602
1772 PR rtl-optimization/55458
1773 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
1774 (ix86_init_pic_reg): New.
1775 (ix86_select_alt_pic_regnum): Add check on pseudo register.
1776 (ix86_save_reg): Likewise.
1777 (ix86_expand_prologue): Remove PIC register initialization
1778 now performed in ix86_init_pic_reg.
1779 (ix86_output_function_epilogue): Add check on pseudo register.
1780 (set_pic_reg_ever_alive): New.
1781 (legitimize_pic_address): Replace df_set_regs_ever_live with new
1782 set_pic_reg_ever_alive.
1783 (legitimize_tls_address): Likewise.
1784 (ix86_pic_register_p): New check.
1785 (ix86_delegitimize_address): Add check on pseudo register.
1786 (ix86_expand_call): Insert move from pseudo PIC register to ABI
1787 defined REAL_PIC_OFFSET_TABLE_REGNUM.
1788 (TARGET_INIT_PIC_REG): New.
1789 (TARGET_USE_PSEUDO_PIC_REG): New.
1790 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
1791 if pic_offset_table_rtx exists.
1792 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
1793 Document.
1794 * doc/tm.texi: Regenerate.
1795 * function.c (assign_parms): Generate pseudo register for PIC.
1796 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
1797 register.
1798 * ira-color.c (color_pass): Add check on pseudo register.
1799 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
1800 register.
1801 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
1802 register.
1803 (ira): Add target specific PIC register initialization.
1804 (do_reload): Keep PIC pseudo register.
1805 * lra-assigns.c (spill_for): Add checks on pseudo register.
1806 * lra-constraints.c (contains_symbol_ref_p): New.
1807 (lra_constraints): Enable lra risky transformations when PIC is pseudo
1808 register.
1809 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
1810 * target.def (use_pseudo_pic_reg): New.
1811 (init_pic_reg): New.
1812
1813 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
1814
1815 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
1816 Remove m_SILVERMONT and m_INTEL from the tune.
1817
1818 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1819
1820 PR libfortran/63471
1821 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
1822 when _HPUX_SOURCE is defined.
1823
1824 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
1825
1826 PR tree-optimization/62127
1827 * tree.c (remap_type_1): When remapping array, remap
1828 also its type.
1829
1830 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
1831
1832 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
1833 longer impact parallelization.
1834
1835 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
1836
1837 PR bootstrap/63496
1838 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
1839
1840 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
1841
1842 * asan.c (instrument_derefs): BIT_FIELD_REF added.
1843
1844 2014-10-13 Richard Biener <rguenther@suse.de>
1845
1846 PR tree-optimization/63419
1847 * gimple-fold.h (gimple_convert): New function.
1848 * gimple-fold.c (gimple_convert): Likewise.
1849 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
1850 to split out required conversions early.
1851
1852 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
1853
1854 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
1855 Add the parts of an insn in reverse order, with the pattern at
1856 the top of the queue. Detect when we're iterating over a SEQUENCE
1857 pattern and in that case just consider patterns of subinstructions.
1858
1859 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
1860
1861 PR target/59401
1862 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
1863 of rtx.
1864 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
1865 insn walking.
1866 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
1867 address. Use def chains to handle GBR clobbering call insns.
1868
1869 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
1870
1871 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
1872 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
1873 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
1874 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
1875 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
1876 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
1877 * doc/gty.texi (for_user): Document new option.
1878 * gengtype.c (create_user_defined_type): Don't try to get a struct for
1879 char.
1880 (walk_type): Don't error out on for_user option.
1881 (write_func_for_structure): Emit user marking routines if requested by
1882 for_user option.
1883 (write_local_func_for_structure): Likewise.
1884 (main): Mark types with for_user option as used.
1885 * ggc.h (gt_pch_nx): Add overload for unsigned int.
1886 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
1887 * hash-table.h (ggc_hasher): New struct.
1888 (hash_table::create_ggc): New function.
1889 (gt_pch_nx): New overload for hash_table.
1890
1891 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
1892
1893 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
1894 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
1895 * config/sh/sh.c: Likewise.
1896 * config/sh/sh-mem.cc: Likewise.
1897 * config/sh/sh.md: Likewise.
1898 * config/sh/predicates.md: Likewise.
1899 * config/sh/sync.md: Likewise.
1900
1901 2014-10-11 Martin Liska <mliska@suse.cz>
1902
1903 PR middle-end/63376
1904 * cgraphunit.c (symbol_table::process_new_functions): Missing call
1905 for call_cgraph_insertion_hooks added.
1906
1907 2014-10-10 Jakub Jelinek <jakub@redhat.com>
1908
1909 PR c/63495
1910 * stor-layout.c (min_align_of_type): Don't decrease alignment
1911 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
1912 TYPE_USER_ALIGN is set.
1913
1914 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
1915
1916 PR rtl-optimization/63483
1917 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
1918 references when alignment ANDs are involved.
1919 (write_dependence_p): Ditto.
1920 (may_alias_p): Ditto.
1921
1922 2014-10-10 Marek Polacek <polacek@redhat.com>
1923
1924 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
1925 * doc/invoke.texi: Document -fsanitize=object-size.
1926 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
1927 or it into SANITIZE_UNDEFINED.
1928 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
1929 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
1930 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
1931 * opts.c (common_handle_option): Handle -fsanitize=object-size.
1932 * ubsan.c: Include tree-object-size.h.
1933 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
1934 (ubsan_expand_bounds_ifn): Use false instead of 0.
1935 (ubsan_expand_objsize_ifn): New function.
1936 (instrument_object_size): New function.
1937 (pass_ubsan::execute): Add object size instrumentation.
1938 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
1939
1940 2014-10-10 Richard Henderson <rth@redhat.com>
1941
1942 PR target/63404
1943 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
1944 Restrict the set of expressions we're willing to move.
1945
1946 2014-10-10 Jeff Law <law@redhat.com>
1947
1948 * ira.c (struct equivalence): Promote INIT_INSNs field to
1949 an rtx_insn_list. Add comments.
1950 (no_equiv): Promote LIST to an rtx_insn_list. Update
1951 testing for and creating the special marker. Use methods
1952 to extract the insn and next pointers. Promote INSN to an
1953 rtx_insn.
1954 (update_equiv_regs): Update test for special marker in the
1955 INIT_INSNs list.
1956
1957 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1958
1959 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
1960 * configure: Regenerate.
1961 * config/aarch64/aarch64.c (aarch64_override_options): Handle
1962 TARGET_FIX_ERR_A53_835769_DEFAULT.
1963 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
1964 value to 2.
1965 * doc/install.texi (aarch64*-*-*): Document
1966 new --enable-fix-cortex-a53-835769 option.
1967
1968 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1969 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1970
1971 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
1972 (ADJUST_INSN_LENGTH): Define.
1973 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
1974 * config/aarch64/aarch64.c (is_mem_p): New function.
1975 (is_memory_op): Likewise.
1976 (aarch64_prev_real_insn): Likewise.
1977 (is_madd_op): Likewise.
1978 (dep_between_memop_and_curr): Likewise.
1979 (aarch64_madd_needs_nop): Likewise.
1980 (aarch64_final_prescan_insn): Likewise.
1981 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
1982 and -mno-fix-cortex-a53-835769 options.
1983
1984 2014-10-10 Jakub Jelinek <jakub@redhat.com>
1985
1986 PR tree-optimization/63464
1987 * tree-switch-conversion.c (struct case_bit_test): Remove
1988 hi and lo fields, add wide_int mask field.
1989 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
1990 hi/lo fields into wide_int mask operations, optimize by pretending
1991 minval to be 0 if maxval is small enough.
1992 (process_switch): Adjust caller.
1993
1994 2014-10-10 Richard Biener <rguenther@suse.de>
1995
1996 PR tree-optimization/63379
1997 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
1998 a neutral operand for min/max when it is not a reduction chain.
1999
2000 2014-10-10 Richard Biener <rguenther@suse.de>
2001
2002 PR tree-optimization/63476
2003 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2004 (BB_LIVE_VOP_ON_EXIT): New define.
2005 (create_expression_by_pieces): Assign VUSEs to stmts.
2006 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2007 (pass_pre::execute): Assert virtual SSA form is up-to-date
2008 after insertion.
2009
2010 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
2011
2012 * lra-assigns.c (assign_by_spills): Error out on spill failure.
2013
2014 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
2015
2016 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2017 assertion.
2018
2019 2014-10-09 Richard Biener <rguenther@suse.de>
2020
2021 PR tree-optimization/63380
2022 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2023 may trap.
2024
2025 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
2026
2027 * config/avr/avr.opt (mmcu=): Change to have a string value.
2028 (mn-flash=, mskip-bug, march=, mrmw): New options.
2029 (HeaderInclude): New.
2030 (mmcu=): Remove Var / Init clauses.
2031 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2032 -specs option.
2033 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2034 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2035 (SYMBOL_FLAG_IO_LOW): Define.
2036 (avr_device_to_as, avr_device_to_ld): Don't declare.
2037 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2038 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2039 (EXTRA_SPEC_FUNCTIONS): Don't define.
2040 (ASM_SPEC): Translate -arch= option to -mmcu= option.
2041 (LINK_SPEC): Translate -arch= option to -m= option.
2042 Don't use device_to_ld / device_to_data_start.
2043 (STARTFILE_SPEC): Now empty.
2044 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2045 * config/avr/gen-avr-mmcu-specs.c: New file.
2046 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2047 (s-device-specs): Likewise.
2048 (GCC_PASSES): Add s-device-specs.
2049 (install-driver): Depend on install-device-specs.
2050 (install-device-specs): New rule.
2051 * config/avr/avr.c (avr_option_override): Look up mcu arch by
2052 avr_arch_index and provide fallback initialization for avr_n_flash.
2053 (varasm.h): #include.
2054 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2055 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2056 (avr_attribute_table): Add "io", "address" and "io_low".
2057 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2058 Add special handling for symbols with "io" and/or "address" attributes.
2059 (avr_asm_asm_output_aligned_bss): New function.
2060 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2061 as appropriate. Handle io_low attribute.
2062 (avr_out_sbxx_branch): Handle symbolic io addresses.
2063 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2064 avr_n_flash instead of avr_current_device->n_flash.
2065 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2066 (avr_emit_movmemhi): Likewise.
2067 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2068 Use TARGET_RMW instead of avr_current_device->dev_attributes.
2069 Don't define avr_current_device->macro (that's the specfile's job).
2070 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2071 * config/avr/avr.c (avr_2word_insn_p): Likewise.
2072 * config/avr/avr.md (*cpse.ne): Likewise.
2073 (mov<mode>): Use avr_eval_addr_attrib.
2074 (cbi): Change constraint for low_io_address_operand operand to "i".
2075 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2076 * config/avr/predicates.md (io_address_operand):
2077 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2078 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2079 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2080 Update prototype.
2081 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2082 * config/avr/genmultilib.awk: Use -march=.
2083 Remove Multilib matches processing.
2084 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2085 * config/avr/avr-arch.h: Add double include guard.
2086 (avr_mcu_t) <library_name>: Update comment.
2087 * config/avr/driver-avr.c (avr_device_to_as): Delete.
2088 (avr_device_to_ld, avr_device_to_data_start): Likewise.
2089 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2090 (avr_device_to_sp8): Likewise.
2091 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
2092
2093 * doc/extend.texi (io, address): Document new AVR variable attributes.
2094 (io_low): Likewise.
2095
2096 2014-10-09 Marek Polacek <polacek@redhat.com>
2097
2098 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
2099
2100 2014-10-08 Richard Biener <rguenther@suse.de>
2101
2102 PR tree-optimization/61969
2103 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
2104 variables.
2105
2106 2014-10-09 Richard Biener <rguenther@suse.de>
2107
2108 PR tree-optimization/63445
2109 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
2110 overflow for non-equality compares.
2111
2112 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
2113
2114 PR rtl-optimization/57003
2115 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
2116 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
2117 killing regs_invalidated_by_call.
2118
2119 2014-10-08 Teresa Johnson <tejohnson@google.com>
2120
2121 PR bootstrap/63432.
2122 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
2123 (ssa_fix_duplicate_block_edges): Invoke it.
2124 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
2125
2126 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
2127
2128 PR target/52941
2129 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
2130 atomic_fetch_<fetchop_name>si_hard,
2131 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
2132 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
2133 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
2134 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
2135
2136 2014-10-08 Rong Xu <xur@google.com>
2137
2138 * gcov-tool.c (profile_overlap): New driver function
2139 to compute profile overlap.
2140 (print_overlap_usage_message): New.
2141 (overlap_usage): New.
2142 (do_overlap): New.
2143 (print_usage): Add calls to overlap function.
2144 (main): Ditto.
2145 * doc/gcov-tool.texi: Add documentation.
2146
2147 2014-10-08 Steve Ellcey <sellcey@mips.com>
2148
2149 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
2150 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
2151
2152 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
2153
2154 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
2155 pattern matching of MEM_REF.
2156 (check_stmt_for_type_change): Update.
2157
2158 2014-10-08 Steve Ellcey <sellcey@mips.com>
2159
2160 * config/mips/linux64.h: Remove.
2161 * config/mips/gnu-user64.h: Remove.
2162 * gcc.config (mips*-*-*): Remove references to linux64.h and
2163 gnu-user64.h
2164 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
2165 with modified version from gnu-user64.h.
2166 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
2167 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
2168 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
2169 linux64.h.
2170 (GNU_USER_LINK_EMULATION64): Ditto.
2171 (GNU_USER_LINK_EMULATIONN32): Ditto.
2172 (GLIBC_DYNAMIC_LINKER32): Ditto.
2173 (GLIBC_DYNAMIC_LINKER64): Ditto.
2174 (GLIBC_DYNAMIC_LINKERN32): Ditto.
2175 (UCLIBC_DYNAMIC_LINKER32): Ditto.
2176 (UCLIBC_DYNAMIC_LINKER64): Ditto.
2177 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
2178 (BIONIC_DYNAMIC_LINKERN32): Ditto.
2179 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
2180 (GLIBC_DYNAMIC_LINKER): Delete.
2181 (UCLIBC_DYNAMIC_LINKER): Delete.
2182
2183 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
2184 Richard Biener <rguenther@suse.de>
2185
2186 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
2187 Get address space from operand 0 (BASE).
2188
2189 2014-10-07 Iain Sandoe <iain@codesourcery.com>
2190
2191 PR target/61387
2192 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
2193
2194 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
2195
2196 * dwarf2out.c: Remove current_function_has_inlines.
2197 (gen_subprogram_die): Same.
2198 (gen_inlined_subroutine_die): Same.
2199
2200 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
2201
2202 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
2203 type.
2204 (_addcarry_u64): Ditto.
2205 (_addcarryx_u64): Ditto.
2206
2207 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2208
2209 * cgraph.h (cgraph_node::get_fun): Declare.
2210 * cgraph.c (cgraph_node::get_fun): New method.
2211 * ipa-inline.c (can_inline_edge_p): Use it.
2212
2213 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
2214
2215 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
2216 and -ftrapping-math.
2217 * lto-wrapper.c (merge_and_complain): Likewise.
2218 (run_gcc): Likewise.
2219
2220 2014-10-06 Rong Xu <xur@google.com>
2221
2222 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
2223 * tree-profile.c: (params.h): New include.
2224 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
2225 and __gcov_indirect_call_topn_counters for
2226 indirect_call_topn_profile.
2227 (gimple_init_edge_profiler): New decls for
2228 __gcov_indirect_call_topn_profiler.
2229 (gimple_gen_ic_profiler): Generate the correct profiler call.
2230 (gimple_gen_ic_func_profiler): Fix format.
2231 * value-prof.c (params.h): New include.
2232 (dump_histogram_value): Hanlde indirect_call_topn counters.
2233 (stream_in_histogram_value): Ditto.
2234 (gimple_indirect_call_to_profile): Use indirect_call_topn
2235 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
2236 (gimple_find_values_to_profile): Hanlde indirect_call_topn
2237 counters.
2238 * value-prof.h (enum hist_type): Histrogram type for
2239 indirect_call_topn counters.
2240 * profile.c (instrument_values): Instrument
2241 indirect_call_topn counters.
2242
2243 2014-10-06 Rong Xu <xur@google.com>
2244
2245 * Makefile.in: Fix dependence.
2246 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
2247 indirect call topn profiler.
2248 * gcov-io.h: Ditto.
2249
2250 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2251
2252 * calls.c (expand_call): Do not use the target as the return slot if
2253 it is not sufficiently aligned.
2254
2255 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2256
2257 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
2258 discussion of permutes and why we don't handle them.
2259
2260 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2261
2262 * config/sparc/predicates.md (int_register_operand): Delete.
2263
2264 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
2265
2266 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
2267
2268 2014-10-06 Jakub Jelinek <jakub@redhat.com>
2269
2270 * ubsan.h (ubsan_get_source_location): New prototype.
2271 * ubsan.c (ubsan_source_location_type): New variable.
2272 Function renamed to ...
2273 (ubsan_get_source_location_type): ... this. Cache
2274 return value in ubsan_source_location_type variable.
2275 (ubsan_source_location, ubsan_create_data): Use
2276 ubsan_get_source_location_type instead of
2277 ubsan_source_location_type.
2278 * asan.c (asan_protect_global): Don't protect globals
2279 with ubsan_get_source_location_type () type.
2280 (asan_add_global): Provide global decl location info
2281 if possible.
2282
2283 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2284
2285 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
2286 sanity check.
2287
2288 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2289
2290 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
2291 on size.
2292 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
2293 into vptr pointer.
2294 (ipa_polymorphic_call_context::dump): Fix formating.
2295 (walk_ssa_copies): Add logic avoiding loops; update uses.
2296 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
2297
2298 2014-10-02 Mark Wielaard <mjw@redhat.com>
2299
2300 PR debug/63239
2301 * dwarf2out.c (gen_subprogram_die): When a member function is
2302 explicitly deleted then add a DW_AT_GNU_deleted attribute.
2303 * langhooks.h (struct lang_hooks_for_decls): Add
2304 function_decl_deleted_p langhook.
2305 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
2306 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
2307
2308 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2309
2310 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
2311 NULL pointer checks.
2312 (ipa_polymorphic_call_context::get_dynamic_type): Return true
2313 if type doesn't change.
2314 * cgraph.h (cgraph_indirect_call_info): New flag.
2315 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
2316 (cgraph_node::dump): Dump it.
2317 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
2318 of context.get_dynamic_type.
2319 (ipa_make_edge_direct_to_target): Do not speculate
2320 edge that is already speuclative.
2321 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
2322 speculate to __builtin_unreachable
2323 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
2324 vptr_changed.
2325 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
2326
2327 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
2328
2329 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
2330 get_dynamic_type; drop TODO.
2331 * ipa-polymorphic-call.c
2332 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
2333 for otr_type to be unknown.
2334
2335 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2336
2337 * common/config/score/score-common.c: Remove.
2338 * config.gcc: Remove support for score-*.
2339 * config/score/constraints.md: Remove.
2340 * config/score/elf.h: Remove.
2341 * config/score/predicates.md: Remove.
2342 * config/score/score-conv.h: Remove.
2343 * config/score/score-generic.md: Remove.
2344 * config/score/score-modes.def: Remove.
2345 * config/score/score-protos.h: Remove.
2346 * config/score/score.c: Remove.
2347 * config/score/score.h: Remove.
2348 * config/score/score.md: Remove.
2349 * config/score/score.opt: Remove.
2350 * doc/md.texi: Don't document score-*.
2351
2352 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
2353
2354 PR pch/63429
2355 * genconditions.c: Directly include ggc.h before rtl.h.
2356
2357 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2358
2359 * ipa-polymorphic-call.c
2360 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
2361 code determining speculative type.
2362 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
2363
2364 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2365
2366 * altivec.md (altivec_lvsl): New define_expand.
2367 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
2368 (altivec_lvsr): New define_expand.
2369 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
2370 * rs6000.c (rs6000_expand_builtin): Change to use
2371 altivec_lvs[lr]_direct; remove commented-out code.
2372
2373 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2374
2375 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2376 Issue a warning message when vec_lvsl or vec_lvsr is used with a
2377 little endian target.
2378
2379 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
2380
2381 * tree-pretty-print.c (dump_location): Make it extern. Dump also
2382 the column.
2383 * tree-pretty-print.h (dump_location): Declare.
2384 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
2385 (pp_gimple_stmt_1): Likewise.
2386 (dump_implicit_edges): Likewise.
2387 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
2388 LOCATION_LINE.
2389
2390
2391 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2392
2393 * gcc.c (driver::global_initializations): Remove "const" so
2394 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
2395 and decoded_options_count.
2396
2397 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
2398
2399 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
2400 macro.
2401 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
2402 TARGET_E500_DOUBLE case here.
2403
2404 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
2405
2406 PR c++/54427
2407 PR c++/57198
2408 PR c++/58845
2409 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
2410
2411 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
2412
2413 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
2414 * lto-cgraph.c (lto_output_edge, input_edge): Stream
2415 in_polymorphic_cdtor
2416 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
2417 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
2418 * cgraphclones.c (cgraph_edge::clone): Likewise.
2419 * ipa-prop.c (update_jump_functions_after_inlining,
2420 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
2421 to possible_dynamic_type_change.
2422 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
2423 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2424 IN_POLY_CDOTR argument.
2425
2426 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
2427 for BASE and OUTER_TYPE being NULL.
2428 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
2429 in_poly_cdtor parameter.
2430
2431 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2432
2433 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
2434 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
2435 TARGET_AVX512F.
2436 (expand_vec_perm_1): Likewise.
2437
2438 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2439 Uros Bizjak <ubizjak@gmail.com>
2440
2441 PR tree-optimization/61403
2442 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
2443 error in comment. Also optimize 256-bit vectors for AVX2
2444 or AVX (floating vectors only), provided the first permutation
2445 can be performed in one insn.
2446
2447 2014-10-03 David Malcolm <dmalcolm@redhat.com>
2448
2449 * gcc.c (class driver): New class.
2450 (main): Reimplement in terms of driver::main, moving most of the
2451 locals to be locals within individual methods of class driver.
2452 The remaining locals "explicit_link_files", "decoded_options" and
2453 "decoded_options_count" are used by multiple driver:: methods, and
2454 so become member data. Doing so isolates the argc/argv reads and
2455 writes. Replace "goto out" with a special exit code from
2456 new method driver::prepare_infiles. Split out the old
2457 implementation of main into the following...
2458 (driver::main): New function, corresponding to the old "main"
2459 implementation.
2460 (driver::set_progname): New function, taken from the old
2461 "main" implementation.
2462 (driver::expand_at_files): Likewise.
2463 (driver::decode_argv): Likewise.
2464 (driver::global_initializations): Likewise.
2465 (driver::build_multilib_strings): Likewise.
2466 (driver::set_up_specs): Likewise.
2467 (driver::putenv_COLLECT_GCC): Likewise.
2468 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
2469 (driver::handle_unrecognized_options): Likewise.
2470 (driver::maybe_print_and_exit): Likewise.
2471 (driver::prepare_infiles): Likewise.
2472 (driver::do_spec_on_infiles): Likewise.
2473 (driver::maybe_run_linker): Likewise.
2474 (driver::final_actions): Likewise.
2475 (driver::get_exit_code): Likewise.
2476
2477 2014-10-03 Yury Gribov <y.gribov@samsung.com>
2478
2479 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
2480 don't emit empty ctors.
2481
2482 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
2483
2484 * convert.c (convert_to_integer): Do not introduce useless conversions
2485 between integral types.
2486
2487 2014-10-03 David Sherwood <david.sherwood@arm.com>
2488
2489 * ira-int.h (ira_allocno): Mark hard_regno as signed.
2490
2491 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
2492
2493 * lra-constraints.c (inherit_in_ebb): Handle calls with
2494 multiple return values.
2495 * caller-save.c (save_call_clobbered_regs): Likewise.
2496
2497 2014-10-03 Jakub Jelinek <jakub@redhat.com>
2498
2499 * tree-vect-data-refs.c (vect_permute_load_chain,
2500 vect_shift_permute_load_chain): Fix a typo in temporary var names,
2501 suffle3 to shuffle3.
2502
2503 PR libgomp/61200
2504 * omp-low.c (taskreg_contexts): New variable.
2505 (scan_omp_parallel): Push newly created context into taskreg_contexts
2506 vector and move record layout code to finish_taskreg_scan.
2507 (scan_omp_task): Likewise.
2508 (finish_taskreg_scan): New function.
2509 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
2510 vector elements and release it.
2511
2512 PR target/62128
2513 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
2514 of palignr arguments can't be used due to min 0 or max - min
2515 too high, try also op0, op1 order of palignr arguments.
2516
2517 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
2518
2519 * cgraph.h (ipa_polymorphic_call_context):
2520 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
2521 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
2522 * ipa-polymorphic-call.c
2523 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
2524 past end of dynamic types.
2525 (ipa_polymorphic_call_context::stream_out,
2526 speculative_outer_type): Stream dynamic flag.
2527 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
2528 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
2529 Clear DYNAMIC.
2530 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
2531 set it.
2532 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
2533 * ipa-prop.c (update_jump_functions_after_inlining,
2534 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
2535
2536 2014-10-02 Teresa Johnson <tejohnson@google.com>
2537
2538 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
2539 up when synthesizing counts to avoid rounding errors.
2540
2541 2014-10-02 Teresa Johnson <tejohnson@google.com>
2542
2543 PR middle-end/63422
2544 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
2545 asserts to handle incoming insanities.
2546
2547 2014-10-02 Martin Jambor <mjambor@suse.cz>
2548
2549 PR tree-optimization/63375
2550 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
2551 references.
2552
2553 2014-10-02 Olivier Hainque <hainque@adacore.com>
2554
2555 * Makefile.in (CROSS): Define, to @CROSS.
2556
2557 2014-10-02 Jakub Jelinek <jakub@redhat.com>
2558
2559 PR target/62128
2560 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
2561 if it expands to a single insn only.
2562 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
2563 fail unless in_order is true. Add forward declaration.
2564 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
2565 is useful for one_operand_p.
2566 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
2567
2568 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2569
2570 * cgraphclones.c (build_function_type_skip_args): Do not make new
2571 type variant of old.
2572
2573 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2574
2575 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
2576 when speculation is added.
2577 (ipa_edge_args): Add polymorphic_call_contexts.
2578 (ipa_get_ith_polymorhic_call_context): New accesor.
2579 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
2580 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
2581 (ipa_compute_jump_functions_for_edge): Compute contexts.
2582 (update_jump_functions_after_inlining): Update contexts.
2583 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
2584 update dumping; add speculative edge creation.
2585 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
2586 context updating.
2587 (update_indirect_edges_after_inlining): Pass down context.
2588 (ipa_edge_duplication_hook): Duplicate contexts.
2589 (ipa_write_node_info): Stream out contexts.
2590 (ipa_read_node_info): Stream in contexts.
2591 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
2592 types.
2593 (try_speculative_devirtualization): New function.
2594 * ipa-utils.h (try_speculative_devirtualization): Declare.
2595
2596 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2597
2598 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
2599 dumping during WPA.
2600
2601 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2602
2603 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
2604 type variants.
2605
2606 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
2607
2608 * ipa-polymorphic-call.c
2609 (ipa_polymorphic_call_context::restrict_to_inner_class):
2610 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
2611 use speculation_consistent_p to do so; Add CONSDER_BASES
2612 and CONSIDER_PLACEMENT_NEW parameters.
2613 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
2614 short circuit obvious cases.
2615 (ipa_polymorphic_call_context::dump): Improve formatting.
2616 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
2617 combine_speculation_with to record speculations; Do not ICE when
2618 object is located in pointer type decl; do not ICE for methods
2619 of UNION_TYPE; do not record nonpolymorphic types.
2620 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
2621 (ipa_polymorphic_call_context::combine_speculation_with): New method.
2622 (ipa_polymorphic_call_context::combine_with): New method.
2623 (ipa_polymorphic_call_context::make_speculative): Move here; use
2624 combine speculation.
2625 * cgraph.h (ipa_polymorphic_call_context): Update
2626 restrict_to_inner_class prototype; add offset_by, make_speculative,
2627 combine_with, useless_p, combine_speculation_with and
2628 speculation_consistent_p methods.
2629 (ipa_polymorphic_call_context::offset_by): New method.
2630 (ipa_polymorphic_call_context::useless_p): New method.
2631
2632 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
2633
2634 PR rtl-optimization/62151
2635 * combine.c (can_combine_p): Allow the destination register of INSN
2636 to be clobbered in I3.
2637 (subst): Do not substitute into clobbers of registers.
2638
2639 2014-10-01 Jakub Jelinek <jakub@redhat.com>
2640
2641 PR debug/63342
2642 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
2643 offset, TARGET_MEM_REF and SSA_NAME.
2644
2645 * config/i386/i386.c (expand_vec_perm_palignr): Handle
2646 256-bit vectors for TARGET_AVX2.
2647
2648 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
2649 dfirst permutation.
2650
2651 PR target/63428
2652 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
2653 argument to avx2_permv2ti.
2654
2655 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2656
2657 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
2658
2659 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
2660
2661 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
2662 (fmod<mode>3): Ditto.
2663 (fpremxf4_i387): Ditto.
2664 (reminderxf3): Ditto.
2665 (reminder<mode>3): Ditto.
2666 (fprem1xf4_i387): Ditto.
2667
2668 2014-09-30 Teresa Johnson <tejohnson@google.com>
2669
2670 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
2671 duplicate_blocks bitmap.
2672 (remove_ctrl_stmt_and_useless_edges): Ditto.
2673 (create_block_for_threading): Ditto.
2674 (compute_path_counts): New function.
2675 (update_profile): Ditto.
2676 (recompute_probabilities): Ditto.
2677 (update_joiner_offpath_counts): Ditto.
2678 (freqs_to_counts_path): Ditto.
2679 (clear_counts_path): Ditto.
2680 (ssa_fix_duplicate_block_edges): Update profile info.
2681 (ssa_create_duplicates): Pass new parameter.
2682 (ssa_redirect_edges): Remove old profile update.
2683 (thread_block_1): New duplicate_blocks bitmap,
2684 remove old profile update.
2685 (thread_single_edge): Pass new parameter.
2686
2687 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
2688
2689 PR middle-end/62120
2690 * varasm.c (decode_reg_name_and_count): Check availability for
2691 registers from ADDITIONAL_REGISTER_NAMES.
2692
2693 2014-09-30 David Malcolm <dmalcolm@redhat.com>
2694
2695 PR plugins/63410
2696 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
2697 (PLUGIN_HEADERS): Add pass-instances.def.
2698
2699 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
2700
2701 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
2702 iterator.
2703 * config/aarch64/aarch64-simd.md
2704 (aarch64_sqdmull_laneq<mode>): Expand iterator.
2705 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
2706 (vqdmulls_lane_s32): Fix return type.
2707 (vqdmulls_laneq_s32): New.
2708
2709 2014-09-30 Jakub Jelinek <jakub@redhat.com>
2710
2711 PR inline-asm/63282
2712 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
2713 or invert_jump_1 if jump isn't any_condjump_p.
2714
2715 2014-09-30 Terry Guo <terry.guo@arm.com>
2716
2717 * config/arm/arm-cores.def (cortex-m7): New core name.
2718 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
2719 (fpv5-d16): Ditto.
2720 * config/arm/arm-tables.opt: Regenerated.
2721 * config/arm/arm-tune.md: Regenerated.
2722 * config/arm/arm.h (TARGET_VFP5): New macro.
2723 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
2724 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
2725 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
2726 * doc/invoke.texi: Document new cpu and fpu names.
2727
2728 2014-09-30 Jiong Wang <jiong.wang@arm.com>
2729
2730 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
2731 before sinking insn.
2732
2733 2014-09-30 David Sherwood <david.sherwood@arm.com>
2734
2735 * ira-int.h (ira_allocno): Add "wmode" field.
2736 * ira-build.c (create_insn_allocnos): Add new "parent" function
2737 parameter.
2738 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
2739 that cannot be accessed in wmode.
2740
2741 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
2742
2743 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
2744 integer overflow.
2745
2746 2014-09-29 Andi Kleen <ak@linux.intel.com>
2747
2748 * opts.c (print_filtered_help): Print --param min/max/default
2749 with -Q.
2750
2751 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
2752
2753 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
2754
2755 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
2756
2757 * tree-vrp.c (get_single_symbol): New function.
2758 (build_symbolic_expr): Likewise.
2759 (symbolic_range_based_on_p): New predicate.
2760 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
2761 for PLUS and MINUS. Do not drop symbolic ranges at the end.
2762 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
2763 operand is symbolic and based on the other operand.
2764
2765 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
2766
2767 * config/microblaze/microblaze.md (call_internal1): Use VOID
2768 instead of SI to fix "((void (*)(void)) 0)()" issue
2769
2770 2014-09-29 Nick Clifton <nickc@redhat.com>
2771
2772 * config/msp430/msp430.c (msp430_expand_prologue): Return a
2773 CLOBBER rtx for naked functions.
2774 (msp430_expand_epilogue): Likewise.
2775 (msp430_use_f5_series_hwmult): Cache result.
2776 (use_32bit_hwmult): Cache result.
2777 (msp430_no_hwmult): New function.
2778 (msp430_output_labelref): Use it.
2779
2780 2014-09-29 Jakub Jelinek <jakub@redhat.com>
2781
2782 PR middle-end/63247
2783 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
2784 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
2785 use the alignment of avar rather than ovar.
2786
2787 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
2788
2789 * config/pa/pa.c (pa_output_function_epilogue): Only update
2790 last_address when a nonnote insn is found.
2791
2792 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2793
2794 PR ipa/60665
2795 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
2796
2797 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2798
2799 PR ipa/62121
2800 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
2801 fix pasto in checking array size.
2802
2803 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
2804
2805 PR middle-end/35545
2806 * passes.def (pass_tracer): Move before last dominator pass.
2807
2808 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
2809
2810 * gcc.c (try_generate_repro): Remove argument "prog". Change all
2811 users.
2812 (run_attempt): Handle errors of "pex_run" invocation.
2813
2814 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
2815
2816 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
2817 (CC1_SPEC): Define.
2818 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
2819 (TARGET_ASAN_SHADOW_OFFSET): Define.
2820
2821 2014-09-26 Martin Liska <mliska@suse.cz>
2822
2823 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
2824 introduced.
2825 * cgraph.h: Likewise.
2826 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
2827 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
2828 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
2829 * tree-ssa-alias.h: Likewise.
2830
2831 2014-09-26 Jakub Jelinek <jakub@redhat.com>
2832 Max Ostapenko <m.ostapenko@partner.samsung.com>
2833
2834 * common.opt: New option.
2835 * doc/invoke.texi: Describe new option.
2836 * gcc.c (execute): Don't free first string early, but at the end
2837 of the function. Call retry_ice if compiler exited with
2838 ICE_EXIT_CODE.
2839 (main): Factor out common code.
2840 (print_configuration): New function.
2841 (files_equal_p): Likewise.
2842 (check_repro): Likewise.
2843 (run_attempt): Likewise.
2844 (do_report_bug): Likewise.
2845 (append_text): Likewise.
2846 (try_generate_repro): Likewise
2847
2848 2014-09-25 Andi Kleen <ak@linux.intel.com>
2849
2850 * config/i386/i386.c (x86_print_call_or_nop): New function.
2851 (x86_function_profiler): Support -mnop-mcount and
2852 -mrecord-mcount.
2853 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
2854 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
2855
2856 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2857
2858 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
2859 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
2860 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
2861 Remove.
2862
2863 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2864
2865 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
2866 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
2867 types_odr_comparable): Declare.
2868 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
2869 * ipa-polymorphic-call.c: New file.
2870 (contains_polymorphic_type_p, possible_placement_new,
2871 ipa_polymorphic_call_context::restrict_to_inner_class,
2872 contains_type_p, decl_maybe_in_construction_p,
2873 ipa_polymorphic_call_context::stream_out,
2874 ipa_polymorphic_call_context::debug,
2875 ipa_polymorphic_call_context::stream_in,
2876 ipa_polymorphic_call_context::set_by_decl,
2877 ipa_polymorphic_call_context::set_by_invariant,
2878 walk_ssa_copies,
2879 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2880 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
2881 extr_type_from_vtbl_ptr_store, record_known_type
2882 check_stmt_for_type_change,
2883 ipa_polymorphic_call_context::get_dynamic_type): Move here from
2884 ipa-devirt.c
2885 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
2886 and streamer-hooks.h
2887 (contains_polymorphic_type_p, possible_placement_new,
2888 ipa_polymorphic_call_context::restrict_to_inner_class,
2889 contains_type_p, decl_maybe_in_construction_p,
2890 ipa_polymorphic_call_context::stream_out,
2891 ipa_polymorphic_call_context::debug,
2892 ipa_polymorphic_call_context::stream_in,
2893 ipa_polymorphic_call_context::set_by_decl,
2894 ipa_polymorphic_call_context::set_by_invariant,
2895 walk_ssa_copies,
2896 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
2897 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
2898 extr_type_from_vtbl_ptr_store, record_known_type
2899 check_stmt_for_type_change,
2900 ipa_polymorphic_call_context::get_dynamic_type): Move to
2901 ipa-polymorphic-call.c
2902 (type_all_derivations_known_p, types_odr_comparable,
2903 types_must_be_same_for_odr): Export.
2904 (type_known_to_have_no_deriavations_p): New function.
2905 * Makefile.in: Add ipa-polymorphic-call.c
2906
2907 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
2908
2909 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
2910 for better storage.
2911 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
2912 (possible_polymorphic_call_targets): Instead of computing both
2913 speculative and non-speculative answers, do just one at a time.
2914 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
2915 (dump_targets): Break out from ...
2916 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
2917 and non-speculative lists.
2918 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
2919 * ipa-utils.h (possible_polymorphic_call_targets): Update.
2920
2921 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
2922
2923 PR rtl-optimization/63348
2924 * emit-rtl.c (try_split): Do not emit extra barrier.
2925
2926 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
2927
2928 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
2929 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
2930 new predicates.
2931 (aarch64_<sur>shll2_n<mode>): Likewise.
2932 (aarch64_<sur>shr_n<mode>): Likewise.
2933 (aarch64_<sur>sra_n<mode>: Likewise.
2934 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
2935 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
2936 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
2937 * config/aarch64/iterators.md (ve_mode): New.
2938 (offsetlr): Remap to infix text for use in new predicates.
2939 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
2940 (aarch64_simd_shift_imm_hi): Likewise.
2941 (aarch64_simd_shift_imm_si): Likewise.
2942 (aarch64_simd_shift_imm_di): Likewise.
2943 (aarch64_simd_shift_imm_offset_qi): Likewise.
2944 (aarch64_simd_shift_imm_offset_hi): Likewise.
2945 (aarch64_simd_shift_imm_offset_si): Likewise.
2946 (aarch64_simd_shift_imm_offset_di): Likewise.
2947 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
2948 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
2949 (aarch64_simd_shift_imm_bitsize_si): Likewise.
2950 (aarch64_simd_shift_imm_bitsize_di): Likewise.
2951
2952 2014-09-25 Jiong Wang <jiong.wang@arm.com>
2953
2954 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
2955 new created BB as the intersection of live-in from "old_dest" and
2956 live-out from "bb".
2957
2958 2014-09-25 Felix Yang <felix.yang@huawei.com>
2959
2960 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
2961 * genautomata.c (merge_states): Ditto.
2962
2963 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
2964
2965 PR target/62218
2966 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
2967 in instruction sequence.
2968
2969 2014-09-25 Nick Clifton <nickc@redhat.com>
2970
2971 PR target/62218
2972 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
2973 in instruction sequence.
2974
2975 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2976
2977 PR target/63335
2978 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
2979 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
2980
2981 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
2982 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2983 Anna Tikhonova <anna.tikhonova@intel.com>
2984 Ilya Tocar <ilya.tocar@intel.com>
2985 Andrey Turetskiy <andrey.turetskiy@intel.com>
2986 Ilya Verbin <ilya.verbin@intel.com>
2987 Kirill Yukhin <kirill.yukhin@intel.com>
2988 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2989
2990 * config/i386/sse.md
2991 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
2992 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
2993 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
2994 (define_expand "<avx512>_perm<mode>_mask"): ... this.
2995 Use VI8F_256_512 mode iterator.
2996 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
2997 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
2998
2999 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3000 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3001 Anna Tikhonova <anna.tikhonova@intel.com>
3002 Ilya Tocar <ilya.tocar@intel.com>
3003 Andrey Turetskiy <andrey.turetskiy@intel.com>
3004 Ilya Verbin <ilya.verbin@intel.com>
3005 Kirill Yukhin <kirill.yukhin@intel.com>
3006 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3007
3008 * config/i386/sse.md
3009 (define_insn "avx_movshdup256<mask_name>"): Add masking.
3010 (define_insn "sse3_movshdup<mask_name>"): Ditto.
3011 (define_insn "avx_movsldup256<mask_name>"): Ditto.
3012 (define_insn "sse3_movsldup<mask_name>"): Ditto.
3013 (define_insn "vec_dupv2df<mask_name>"): Ditto.
3014 (define_insn "*vec_concatv2df"): Add EVEX version.
3015
3016 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3017 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3018 Anna Tikhonova <anna.tikhonova@intel.com>
3019 Ilya Tocar <ilya.tocar@intel.com>
3020 Andrey Turetskiy <andrey.turetskiy@intel.com>
3021 Ilya Verbin <ilya.verbin@intel.com>
3022 Kirill Yukhin <kirill.yukhin@intel.com>
3023 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3024
3025 * config/i386/sse.md
3026 (define_insn "vec_set<mode>_0"): Add EVEX version.
3027
3028 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3029 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3030 Anna Tikhonova <anna.tikhonova@intel.com>
3031 Ilya Tocar <ilya.tocar@intel.com>
3032 Andrey Turetskiy <andrey.turetskiy@intel.com>
3033 Ilya Verbin <ilya.verbin@intel.com>
3034 Kirill Yukhin <kirill.yukhin@intel.com>
3035 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3036
3037 * config/i386/sse.md
3038 (define_insn
3039 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3040 New.
3041 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3042 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3043 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3044 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3045 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3046 (define_expand "sse2_cvtpd2ps_mask): New.
3047 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3048 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3049
3050 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3051 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3052 Anna Tikhonova <anna.tikhonova@intel.com>
3053 Ilya Tocar <ilya.tocar@intel.com>
3054 Andrey Turetskiy <andrey.turetskiy@intel.com>
3055 Ilya Verbin <ilya.verbin@intel.com>
3056 Kirill Yukhin <kirill.yukhin@intel.com>
3057 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3058
3059 * config/i386/i386.c
3060 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3061 (ufix_notruncv8dfv8si2_mask_round): ... this.
3062 * config/i386/sse.md
3063 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3064 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3065 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3066 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3067 (define_expand "sse2_cvtpd2dq"): Delete.
3068 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3069 make 2nd operand const0 vector.
3070 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3071 Delete.
3072 (define_mode_attr pd2udqsuff): New.
3073 (define_insn
3074 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3075 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3076 (define_insn "*avx_cvttpd2dq256_2"): Delete.
3077 (define_expand "sse2_cvttpd2dq"): Ditto.
3078 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3079 make 2nd operand const0 vector.
3080
3081 2014-09-25 Jakub Jelinek <jakub@redhat.com>
3082
3083 PR tree-optimization/63341
3084 * tree-vectorizer.h (vect_create_data_ref_ptr,
3085 vect_create_addr_base_for_vector_ref): Add another tree argument
3086 defaulting to NULL_TREE.
3087 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3088 argument, pass it down to vect_create_addr_base_for_vector_ref.
3089 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3090 add that to base_offset too if non-NULL.
3091 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3092 for dr_explicit_realign_optimized set it to vector byte size
3093 - 1 instead of setting offset, pass byte_offset down to
3094 vect_create_data_ref_ptr.
3095
3096 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3097
3098 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
3099 forgotten debug output; canonicalize querries more wtih LTO.
3100
3101 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3102
3103 * cgraph.h (class ipa_polymorphic_call_context): Move here from
3104 ipa-utils.h; add stream_int and stream_out methods.
3105 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
3106 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
3107 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
3108 add CONTEXT.
3109 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3110 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3111 ipa_polymorphic_call_context::clear_speculation,
3112 ipa_polymorphic_call_context::clear_outer_type): Move here from
3113 ipa-utils.h
3114 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
3115 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3116 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3117 ipa_polymorphic_call_context::clear_speculation,
3118 ipa_polymorphic_call_context::clear_outer_type): Likewise.
3119 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
3120 streamer-hooks.h
3121 (ipa_polymorphic_call_context::stream_out): New method.
3122 (ipa_polymorphic_call_context::stream_in): New method.
3123 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
3124 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
3125 OUTER_TYPE.
3126 (ipa_analyze_call_uses): Simplify.
3127 (update_indirect_edges_after_inlining): Do not care about outer_type.
3128 (ipa_write_indirect_edge_info): Update.
3129 (ipa_write_indirect_edge_info): Likewise.
3130 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
3131 (dump_edge_flags): Break out from ...
3132 (cgraph_node::dump): ... here; dump indirect edges.
3133
3134 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
3135
3136 * ipa-utils.h (polymorphic_call_context): Add
3137 metdhos dump, debug and clear_outer_type.
3138 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3139 (ipa_polymorphic_call_context::clear_outer_type): New method.
3140 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
3141 * ipa-devirt.c (types_odr_comparable): New function.
3142 (types_must_be_same_for_odr): New function.
3143 (odr_subtypes_equivalent_p): Simplify.
3144 (possible_placement_new): Break out from ...
3145 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
3146 be more cuatious about returning false in cases the context may be
3147 valid in derived type or via placement new.
3148 (contains_type_p): Clear maybe_derived_type
3149 (ipa_polymorphic_call_context::dump): New method.
3150 (ipa_polymorphic_call_context::debug): New method.
3151 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
3152 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
3153 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
3154 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
3155 to suceed on all valid cases; remove confused sanity check.
3156 (dump_possible_polymorphic_call_targets): Simplify.
3157
3158 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
3159
3160 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
3161 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
3162 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
3163 varpool.c: Rename all instances of DECL_ABSTRACT to
3164 DECL_ABSTRACT_P.
3165
3166 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3167
3168 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
3169 special handling for stores whose SET_SRC is an UNSPEC (such as
3170 UNSPEC_STVE).
3171
3172 2014-09-24 Jiong Wang <jiong.wang@arm.com>
3173
3174 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
3175 !REG_P (src) to release more instruction sink opportunities.
3176
3177 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
3178
3179 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
3180 move costs for 128-bit types.
3181
3182 2014-09-24 Martin Jambor <mjambor@suse.cz>
3183
3184 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
3185 when duplicating a PASS_THROUGH jump function when creating a
3186 speculative edge.
3187
3188 2014-09-24 Marek Polacek <polacek@redhat.com>
3189
3190 PR c/61405
3191 PR c/53874
3192 * asan.c (maybe_instrument_call): Add default case.
3193 * ipa-pure-const.c (special_builtin_state): Likewise.
3194 * predict.c (expr_expected_value_1): Likewise.
3195 * lto-streamer-out.c (write_symbol): Initialize variable.
3196
3197 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3198
3199 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
3200 the lane.
3201 (vmuld_laneq_f64): Likewise.
3202 (vmuls_lane_f32): Likewise.
3203 (vmuls_laneq_f32): Likewise.
3204
3205 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
3206
3207 PR bootstrap/63235
3208 * varpool.c (varpool_node::add): Pass decl attributes
3209 to lookup_attribute.
3210
3211 2014-09-24 Jakub Jelinek <jakub@redhat.com>
3212
3213 PR sanitizer/63316
3214 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
3215
3216 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
3217
3218 PR tree-optimization/63266
3219 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
3220 marker for unknown byte value.
3221 (MARKER_MASK): New macro.
3222 (MARKER_BYTE_UNKNOWN): New macro.
3223 (HEAD_MARKER): New macro.
3224 (do_shift_rotate): Mark bytes with unknown values due to sign
3225 extension when doing an arithmetic right shift. Replace hardcoded
3226 mask for marker by new MARKER_MASK macro.
3227 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
3228 numbers accordingly.
3229
3230 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3231 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3232 Anna Tikhonova <anna.tikhonova@intel.com>
3233 Ilya Tocar <ilya.tocar@intel.com>
3234 Andrey Turetskiy <andrey.turetskiy@intel.com>
3235 Ilya Verbin <ilya.verbin@intel.com>
3236 Kirill Yukhin <kirill.yukhin@intel.com>
3237 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3238
3239 * config/i386/sse.md
3240 (define_insn
3241 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
3242 Add masking.
3243 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
3244 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
3245
3246 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3247 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3248 Anna Tikhonova <anna.tikhonova@intel.com>
3249 Ilya Tocar <ilya.tocar@intel.com>
3250 Andrey Turetskiy <andrey.turetskiy@intel.com>
3251 Ilya Verbin <ilya.verbin@intel.com>
3252 Kirill Yukhin <kirill.yukhin@intel.com>
3253 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3254
3255 * config/i386/sse.md
3256 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
3257 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
3258 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
3259 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
3260 (define_expand "avx512vl_pshuflw_mask"): New.
3261 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
3262 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
3263 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
3264 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
3265 (define_expand "avx512vl_pshufhw_mask"): New.
3266 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
3267
3268 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3269 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3270 Anna Tikhonova <anna.tikhonova@intel.com>
3271 Ilya Tocar <ilya.tocar@intel.com>
3272 Andrey Turetskiy <andrey.turetskiy@intel.com>
3273 Ilya Verbin <ilya.verbin@intel.com>
3274 Kirill Yukhin <kirill.yukhin@intel.com>
3275 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3276
3277 * config/i386/i386.c
3278 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
3279 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
3280 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
3281 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
3282 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
3283 * config/i386/sse.md
3284 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
3285 (define_insn
3286 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
3287 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
3288 (define_insn
3289 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
3290 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
3291 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
3292 (define_expand "avx512vl_pshufd_mask"): New.
3293 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
3294
3295 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3296 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3297 Anna Tikhonova <anna.tikhonova@intel.com>
3298 Ilya Tocar <ilya.tocar@intel.com>
3299 Andrey Turetskiy <andrey.turetskiy@intel.com>
3300 Ilya Verbin <ilya.verbin@intel.com>
3301 Kirill Yukhin <kirill.yukhin@intel.com>
3302 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3303
3304 * config/i386/i386.c
3305 (CODE_FOR_avx2_extracti128): Rename to ...
3306 (CODE_FOR_avx_vextractf128v4di): this.
3307 (CODE_FOR_avx2_inserti128): Rename to ...
3308 (CODE_FOR_avx_vinsertf128v4di): this.
3309 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
3310 CODE_FOR_avx_vextractf128v4di.
3311 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
3312 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
3313 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
3314 CODE_FOR_avx512vl_vinsertv8si.
3315 * config/i386/sse.md
3316 (define_expand
3317 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
3318 AVX512_VEC mode iterator.
3319 (define_insn
3320 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
3321 Ditto.
3322 (define_expand
3323 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
3324 AVX512_VEC_2 mode iterator.
3325 (define_insn "vec_set_lo_<mode><mask_name>"): New.
3326 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3327 (define_expand "avx512vl_vinsert<mode>"): Ditto.
3328 (define_insn "avx2_vec_set_lo_v4di"): Delete.
3329 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
3330 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
3331 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3332 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
3333 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
3334 (define_expand "avx2_extracti128"): Delete.
3335 (define_expand "avx2_inserti128"): Ditto.
3336
3337 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3338 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3339 Anna Tikhonova <anna.tikhonova@intel.com>
3340 Ilya Tocar <ilya.tocar@intel.com>
3341 Andrey Turetskiy <andrey.turetskiy@intel.com>
3342 Ilya Verbin <ilya.verbin@intel.com>
3343 Kirill Yukhin <kirill.yukhin@intel.com>
3344 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3345
3346 * config/i386/sse.md
3347 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
3348 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
3349 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
3350 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
3351 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
3352 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
3353 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
3354 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
3355 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
3356 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
3357 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
3358 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
3359 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
3360
3361 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
3362
3363 PR rtl-optimization/63210
3364 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
3365 HARD_REGNO is not available for CONFLICT_A.
3366
3367 2014-09-23 Andi Kleen <ak@linux.intel.com>
3368
3369 * cgraph.h (symtab_node): Add no_reorder attribute.
3370 (symbol_table::output_asm_statements): Remove.
3371 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
3372 (cgraph_node::create_version_clone): Dito.
3373 (symbol_table::output_asm_statements): Remove.
3374 * trans-mem.c (ipa_tm_create_version_alias): Dito.
3375 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
3376 (output_in_order): Add no_reorder flag. Only handle no_reorder
3377 nodes when set.
3378 (symbol_table::compile): Add separate pass for no_reorder nodes.
3379 (process_common_attributes): Set no_reorder flag in symtab node.
3380 Add node argument.
3381 (process_function_and_variable_attributes): Pass symtab nodes to
3382 process_common_attributes.
3383 * doc/extend.texi (no_reorder): Document no_reorder attribute.
3384 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
3385 (lto_output_varpool_node): Dito.
3386 (input_overwrite_node): Dito.
3387 (input_varpool_node): Dito.
3388 * varpool.c (varpool_node::add): Set no_reorder attribute.
3389 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
3390 (symbol_table::output_variables): Dito.
3391 * symtab.c (symtab_node::dump_base): Print no_reorder.
3392
3393 2014-09-23 Jiong Wang <jiong.wang@arm.com>
3394
3395 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
3396 be INVALID_REGNUM.
3397
3398 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
3399
3400 * configure: Regenerate.
3401
3402 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
3403
3404 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
3405 when result_mode == shift_mode.
3406
3407 2014-09-23 Kostya Serebryany <kcc@google.com>
3408
3409 Update to match the changed asan API.
3410 * asan.c (asan_global_struct): Update the __asan_global definition
3411 to match the new API.
3412 (asan_add_global): Ditto.
3413 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
3414 to __asan_init_v4.
3415
3416 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3417
3418 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
3419 refine the constraints used on 32/64-bit floating point moves.
3420 (f32_av): Likewise.
3421 (f64_vsx): Likewise.
3422 (f64_dm): Likewise.
3423 (f64_av): Likewise.
3424 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
3425 (BOOL_REGS_OP1): Likewise.
3426 (BOOL_REGS_OP2): Likewise.
3427 (BOOL_REGS_UNARY): Likewise.
3428 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
3429 32/64-bit floating point moves. Do not use wa, instead use ww/ws
3430 for moves involving VSX registers. Do not use constraints that
3431 target VSX registers for decimal types.
3432 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
3433 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
3434
3435 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
3436
3437 * tree.h (int_bit_position): Turn into inline function;
3438 implement using wide int.
3439 * tree.c (int_bit_position): Remove.
3440
3441 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
3442
3443 PR bootstrap/63280
3444 * target-globals.c (target_globals::~target_globals): Fix location
3445 of ira_int destruction.
3446
3447 2014-09-23 Renlin Li <renlin.li@arm.com>
3448
3449 * config/aarch64/aarch64.md (return): New.
3450 (simple_return): Likewise.
3451 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
3452 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
3453
3454 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
3455
3456 * common/config/aarch64/aarch64-common.c:
3457 (default_options aarch_option_optimization_table):
3458 Default to -fsched-pressure.
3459
3460 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
3461
3462 * cfgcleanup.c (try_optimize_cfg): Do not remove label
3463 with LABEL_PRESERVE_P flag set.
3464
3465 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3467 Anna Tikhonova <anna.tikhonova@intel.com>
3468 Ilya Tocar <ilya.tocar@intel.com>
3469 Andrey Turetskiy <andrey.turetskiy@intel.com>
3470 Ilya Verbin <ilya.verbin@intel.com>
3471 Kirill Yukhin <kirill.yukhin@intel.com>
3472 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3473
3474 * config/i386/sse.md
3475 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
3476 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
3477 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
3478 (define_insn "sse2_shufpd_v2df_mask"): New.
3479
3480 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3481 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3482 Anna Tikhonova <anna.tikhonova@intel.com>
3483 Ilya Tocar <ilya.tocar@intel.com>
3484 Andrey Turetskiy <andrey.turetskiy@intel.com>
3485 Ilya Verbin <ilya.verbin@intel.com>
3486 Kirill Yukhin <kirill.yukhin@intel.com>
3487 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3488
3489 * config/i386/sse.md
3490 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
3491 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
3492 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
3493 (define_insn "sse_shufps_v4sf_mask"): New.
3494
3495 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3496 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3497 Anna Tikhonova <anna.tikhonova@intel.com>
3498 Ilya Tocar <ilya.tocar@intel.com>
3499 Andrey Turetskiy <andrey.turetskiy@intel.com>
3500 Ilya Verbin <ilya.verbin@intel.com>
3501 Kirill Yukhin <kirill.yukhin@intel.com>
3502 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3503
3504 * config/i386/sse.md
3505 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
3506 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
3507 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
3508 (define_insn "unpcklps128_mask"): New.
3509
3510 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
3511 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3512 Anna Tikhonova <anna.tikhonova@intel.com>
3513 Ilya Tocar <ilya.tocar@intel.com>
3514 Andrey Turetskiy <andrey.turetskiy@intel.com>
3515 Ilya Verbin <ilya.verbin@intel.com>
3516 Kirill Yukhin <kirill.yukhin@intel.com>
3517 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3518
3519 * config/i386/sse.md
3520 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
3521 (define_insn "avx512vl_unpckhpd128_mask"): New.
3522 (define_expand "avx_movddup256<mask_name>"): Add masking.
3523 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
3524 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
3525 (define_insn "avx512vl_unpcklpd128_mask"): New.
3526
3527 2014-09-22 Joseph Myers <joseph@codesourcery.com>
3528
3529 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3530 * doc/tm.texi: Regenerate.
3531 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
3532 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3533 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3534 Remove.
3535 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3536 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3537 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3538 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3539 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3540 Remove.
3541 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3542 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3543 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3544 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3545 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3546 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3547 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3548 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3549 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3550 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
3551 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
3552 Remove.
3553
3554 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
3555
3556 * tree-ssa-ccp.c (prop_value_d): Rename to ...
3557 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
3558 * ipa-prop.c (struct type_change_info): Rename to ...
3559 (prop_type_change_info): ... this; update uses.
3560 * ggc-page.c (globals): Rename to ...
3561 (static struct ggc_globals): ... this; update uses.
3562 * tree-ssa-loop-im.c (mem_ref): Rename to ...
3563 (im_mem_ref): ... this; update uses.
3564 * ggc-common.c (loc_descriptor): Rename to ...
3565 (ggc_loc_descriptor): ... this; update uses.
3566 * lra-eliminations.c (elim_table): Rename to ...
3567 (lra_elim_table): ... this; update uses.
3568 * bitmap.c (output_info): Rename to ...
3569 (bitmap_output_info): ... this; update uses.
3570 * gcse.c (expr): Rename to ...
3571 (gcse_expr) ... this; update uses.
3572 (occr): Rename to ...
3573 (gcse_occr): .. this; update uses.
3574 * tree-ssa-copy.c (prop_value_d): Rename to ...
3575 (prop_value_t): ... this.
3576 * predict.c (block_info_def): Rename to ...
3577 (block_info): ... this; update uses.
3578 (edge_info_def): Rename to ...
3579 (edge_info): ... this; update uses.
3580 * profile.c (bb_info): Rename to ...
3581 (bb_profile_info): ... this; update uses.
3582 * alloc-pool.c (output_info): Rename to ...
3583 (pool_output_info): ... this; update uses.
3584 * ipa-cp.c (topo_info): Rename to ..
3585 (ipa_topo_info): ... this; update uses.
3586 * tree-nrv.c (nrv_data): Rename to ...
3587 (nrv_data_t): ... this; update uses.
3588 * ipa-split.c (bb_info): Rename to ...
3589 (split_bb_info): ... this one.
3590 * profile.h (edge_info): Rename to ...
3591 (edge_profile_info): ... this one; update uses.
3592 * dse.c (bb_info): Rename to ...
3593 (dse_bb_info): ... this one; update uses.
3594 * cprop.c (occr): Rename to ...
3595 (cprop_occr): ... this one; update uses.
3596 (expr): Rename to ...
3597 (cprop_expr): ... this one; update uses.
3598
3599 2014-09-22 Jason Merrill <jason@redhat.com>
3600
3601 * Makefile.in (check-parallel-%): Add @.
3602
3603 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3604
3605 * config/aarch64/geniterators.sh: New.
3606 * config/aarch64/iterators.md (VDQF_DF): New.
3607 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
3608 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
3609
3610 2014-09-22 Peter A. Bigot <pab@pabigot.com>
3611
3612 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
3613 -lnosys when -msim absent.
3614
3615 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
3616
3617 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
3618
3619 2014-09-22 Richard Biener <rguenther@suse.de>
3620
3621 * gimplify.c (gimplify_init_constructor): Do not leave
3622 non-GIMPLE vector constructors around.
3623 * tree-cfg.c (verify_gimple_assign_single): Verify that
3624 CONSTRUCTORs have gimple elements.
3625
3626 2014-09-22 Jakub Jelinek <jakub@redhat.com>
3627
3628 PR debug/63328
3629 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
3630 insert a debug source bind stmt setting DEBUG_EXPR_DECL
3631 instead of a normal gimple assignment stmt.
3632
3633 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
3634
3635 * config/bfin/bfin.md: Fix use of constraints in define_split.
3636
3637 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3638
3639 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
3640 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
3641
3642 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3643
3644 * hard-reg-set.h: Include hash-table.h.
3645 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
3646 field.
3647 * target-globals.c (target_globals::~target_globals): Call
3648 hard_regs->finalize.
3649 * rtl.h (subreg_shape): New structure.
3650 (shape_of_subreg): New function.
3651 (simplifiable_subregs): Declare.
3652 * reginfo.c (simplifiable_subreg): New structure.
3653 (simplifiable_subregs_hasher): Likewise.
3654 (simplifiable_subregs): New function.
3655 (invalid_mode_changes): Delete.
3656 (alid_mode_changes, valid_mode_changes_obstack): New variables.
3657 (record_subregs_of_mode): Remove subregs_of_mode parameter.
3658 Record valid mode changes in valid_mode_changes.
3659 (find_subregs_of_mode): Remove subregs_of_mode parameter.
3660 Update calls to record_subregs_of_mode.
3661 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
3662 handling. Initialize new variables. Update call to
3663 find_subregs_of_mode.
3664 (invalid_mode_change_p): Check new variables instead of
3665 invalid_mode_changes.
3666 (finish_subregs_of_mode): Finalize new variables instead of
3667 invalid_mode_changes.
3668 (target_hard_regs::finalize): New function.
3669 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
3670 even when CLASS_CANNOT_CHANGE_MODE is undefined.
3671
3672 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3673
3674 * combine.c (subst): Use simplify_subreg_regno rather than
3675 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
3676
3677 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3678
3679 * rtl.h (subreg_info): Expand commentary
3680 * rtlanal.c (subreg_get_info): Likewise.
3681
3682 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
3683
3684 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3685 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3686 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
3687
3688 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
3689
3690 * config/arm/arm.c: #include "tm-constrs.h"
3691 (thumb1_size_rtx_costs): Adjust rtx costs.
3692
3693 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
3694
3695 * configure.ac (target_header_dir): Move block defining
3696 this to before the block setting inhibit_libc.
3697 (inhibit_libc): When considering $with_headers, just
3698 check it it's explicitly "no". If not, also check if
3699 $target_header_dir/stdio.h is present. If not, set
3700 inhibit_libc=true.
3701 * configure: Regenerate.
3702
3703 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
3704
3705 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
3706
3707 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3708
3709 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
3710 insn for divides by integer powers of two.
3711 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
3712 (mod<mode>3): Fix formatting.
3713 (three anonymous define_insn and two define_split): Delete.
3714
3715 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3716
3717 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
3718 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
3719 (floatdisf2_internal2): Ditto.
3720 (ashrdi3_no_power): Ditto. Fix formatting.
3721
3722 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3723
3724 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
3725 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
3726 Tidy.
3727
3728 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3729
3730 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
3731 constant, use addsi3 directly.
3732 (three anonymous define_insn, two define_split): Delete.
3733 (sub<mode>3): Move. Do not allow constant second operand.
3734 Generate different insn for constant first operand.
3735 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
3736 (subf<mode>3_imm): New.
3737 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
3738 (*plus_ltu<mode>): Only handle registers.
3739 (*plus_ltu<mode>_1): New. Handle integer third operand.
3740 (*plus_gtu<mode>): Only handle registers.
3741 (*plus_gtu<mode>_1): New. Handle integer third operand.
3742
3743 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3744
3745 * config/rs6000/rs6000.md (iorxor): New code_iterator.
3746 (iorxor): New code_attr.
3747 (IORXOR): New code_attr.
3748 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
3749 (ior<mode>3, xor<mode>3): Delete.
3750 (<iorxor><mode>3): New.
3751 (splitter for "big" integer ior, xor): New.
3752 (*bool<mode>3): Move. Also handle AND.
3753 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
3754 (splitter for "big" integer ior, xor): Delete.
3755
3756 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3757
3758 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
3759 (two anonymous define_insn and two define_split): Delete.
3760 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
3761
3762 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3763
3764 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
3765 (two anonymous define_insn and two define_split): Delete.
3766 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
3767
3768 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3769
3770 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
3771
3772 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
3773
3774 * config/rs6000/predicates.md (ca_operand): Allow subregs.
3775 (input_operand): Do not allow ca_operand.
3776 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
3777 carry bit, allow SImode and Pmode.
3778 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
3779
3780 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
3781
3782 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
3783 clobbered registers using clobber_reg. Remove UNSPEC decoration.
3784 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
3785 (*call_rex64_ms_sysv): Remove.
3786 (*call_value_rex64_ms_sysv): Ditto.
3787 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
3788
3789 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
3790
3791 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
3792 operand 3 to "CnL".
3793
3794 2014-09-20 Andreas Schwab <schwab@suse.de>
3795
3796 * config/ia64/ia64.md: Remove constraints from define_split
3797 patterns.
3798
3799 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3800
3801 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
3802 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
3803 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
3804 (get_dynamic_type): Remove.
3805 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
3806 (clear_speculation): Bring to ipa-deivrt.h
3807 (get_class_context): Rename to ...
3808 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
3809 (contains_type_p): Update.
3810 (get_dynamic_type): Rename to ...
3811 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
3812 (possible_polymorphic_call_targets): UPdate.
3813 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
3814 * ipa-prop.c (ipa_analyze_call_uses): Update.
3815
3816 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3817
3818 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
3819 privatize dynamic TLS variables.
3820
3821 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3822
3823 * diagnostic.c (warning_n): New function.
3824 * diagnostic-core.h (warning_n): Declare.
3825 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
3826 output dynamic counts when available.
3827
3828 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3829
3830 PR tree-optimization/63255
3831 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
3832 issue in setting body_removed flag.
3833
3834 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3835
3836 PR c++/61825
3837 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
3838 that visibility change is possible
3839 (handle_weakref_attribute): Likewise.
3840 * cgraph.h (symtab_node): Add method get_create and
3841 field refuse_visibility_changes.
3842 (symtab_node::get_create): New method.
3843 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
3844 * varasm.c (mark_weak): Verify that visibility change is
3845 possible.
3846
3847 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
3848
3849 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
3850 for base_reg_operand to be common between LO_SUM and PLUS.
3851 (fusion_gpr_mem_combo): New predicate to match a fused address
3852 that combines the addis and memory offset address.
3853
3854 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
3855 calling signature.
3856 (emit_fusion_gpr_load): Likewise.
3857
3858 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
3859 signature to pass each argument separately, rather than
3860 using an operands array. Rewrite the insns found by peephole2 to
3861 be a single insn, rather than hoping the insns will still be
3862 together when the peephole pass is done. Drop being called via a
3863 normal peephole.
3864 (emit_fusion_gpr_load): Change calling signature to be called from
3865 the fusion_gpr_load_<mode> insns with a combined memory address
3866 instead of the peephole pass passing the addis and offset
3867 separately.
3868
3869 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
3870 fusion.
3871 (power8 fusion peephole): Drop support for doing power8 via a
3872 normal peephole that was created by the peephole2 pass.
3873 (power8 fusion peephole2): Create a new insn with the fused
3874 address, so that the fused operation is kept together after
3875 register allocation is done.
3876 (fusion_gpr_load_<mode>): Likewise.
3877
3878 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
3879
3880 PR lto/63286
3881 * tree.c (need_assembler_name_p): Do not mangle variadic types.
3882
3883 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
3884
3885 * recog.c (scratch_operand): Do not simply allow all hard registers:
3886 only allow those that are allocatable.
3887
3888 2014-09-19 Felix Yang <felix.yang@huawei.com>
3889
3890 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
3891 comments and fix spacing to conform to coding style.
3892
3893 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3894
3895 * genrecog.c (validate_pattern): Allow empty constraints in
3896 a match_scratch.
3897
3898 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
3899
3900 * dwarf2out.c (decl_ultimate_origin): Update comment.
3901 * tree.c (block_ultimate_origin): Same.
3902
3903 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3904
3905 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
3906 Update GCC version name to GCC 5.
3907 (rs6000_function_arg_boundary): Likewise.
3908 (rs6000_function_arg): Likewise.
3909
3910 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3911
3912 * config/sh/sh.md: Fix use of constraints in define_split.
3913
3914 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
3915
3916 PR ipa/61998
3917 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
3918
3919 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3920
3921 * doc/md.texi (Modifiers): Consistently use "read/write"
3922 nomenclature rather than "input/output".
3923 * genrecog.c (constraints_supported_in_insn_p): New.
3924 (validate_pattern): If needed, also check constraints on
3925 MATCH_SCRATCH operands.
3926 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
3927 operands with no '=' or '+' modifier.
3928
3929 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
3930
3931 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
3932 scratch register as written.
3933
3934 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3935
3936 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
3937 assignment.
3938
3939 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3940
3941 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
3942 expanders.
3943
3944 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3945
3946 PR target/62662
3947 * config/s390/s390.c (s390_emit_epilogue): When doing the return
3948 address load optimization force s390_optimize_prologue to leave it
3949 that way. Only do the optimization if we already decided to push
3950 r14 into a stack slot.
3951
3952 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
3953
3954 * asan.c (build_check_stmt): Alignment arg was added.
3955 (asan_expand_check_ifn): Optimization for alignment >= 8.
3956
3957 2014-09-19 Olivier Hainque <hainque@adacore.com>
3958
3959 * config/i386/vxworksae.h: Remove obsolete definitions.
3960 (STACK_CHECK_PROTECT): Define.
3961 * config/i386/vx-common.h: Remove. Merge contents within
3962 config/i386/vxworks.h.
3963 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
3964 i386/vx-common.h.
3965
3966 2014-09-19 Olivier Hainque <hainque@adacore.com>
3967
3968 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
3969 * config/rs6000/t-vxworksmils: New file.
3970 * config/rs6000/vxworksmils.h: New file.
3971
3972 2014-09-19 Olivier Hainque <hainque@adacore.com>
3973
3974 * varasm.c (default_section_type_flags): Flag .persistent.bss
3975 sections as SECTION_BSS.
3976
3977 2014-09-19 Nick Clifton <nickc@redhat.com>
3978
3979 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
3980 pop'ed registers so that DCE does not eliminate them.
3981
3982 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
3983
3984 PR lto/63298
3985 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
3986
3987 2014-09-18 Joseph Myers <joseph@codesourcery.com>
3988
3989 * system.h (LIBGCC2_TF_CEXT): Poison.
3990 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
3991 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
3992 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
3993 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
3994 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
3995 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
3996 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
3997 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
3998 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
3999
4000 2014-09-19 Kito Cheng <kito@0xlab.org>
4001
4002 * except.h: Fix header guard.
4003 * addresses.h: Add missing header guard.
4004 * cfghooks.h: Likewise.
4005 * collect-utils.h: Likewise.
4006 * collect2-aix.h: Likewise.
4007 * conditions.h: Likewise.
4008 * cselib.h: Likewise.
4009 * dwarf2asm.h: Likewise.
4010 * graphds.h: Likewise.
4011 * graphite-scop-detection.h: Likewise.
4012 * gsyms.h: Likewise.
4013 * hw-doloop.h: Likewise.
4014 * incpath.h: Likewise.
4015 * ipa-inline.h: Likewise.
4016 * ipa-ref.h: Likewise.
4017 * ira-int.h: Likewise.
4018 * ira.h: Likewise.
4019 * lra-int.h: Likewise.
4020 * lra.h: Likewise.
4021 * lto-section-names.h: Likewise.
4022 * read-md.h: Likewise.
4023 * reload.h: Likewise.
4024 * rtl-error.h: Likewise.
4025 * sdbout.h: Likewise.
4026 * targhooks.h: Likewise.
4027 * tree-affine.h: Likewise.
4028 * xcoff.h: Likewise.
4029 * xcoffout.h: Likewise.
4030
4031 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4032
4033 PR debug/63285
4034 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4035 if advance != 0.
4036
4037 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4038
4039 PR target/61360
4040 * lra.c (lra): Call recog_init.
4041
4042 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4043
4044 PR c++/62017
4045 * asan.c (transform_statements): Don't instrument clobber statements.
4046
4047 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4048
4049 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4050 to neon_load1_1reg<q>.
4051
4052 2014-09-17 Jakub Jelinek <jakub@redhat.com>
4053
4054 PR debug/63284
4055 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4056 if there are only debug stmts after the noreturn call, instead
4057 remove the debug stmts.
4058
4059 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
4060
4061 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4062 (odr_types_equivalent_p): Use pair hash.
4063 (odr_subtypes_equivalent_p): Likewise, do structural compare
4064 on ODR types that may be mismatched.
4065 (warn_odr): Support warning when only one field is given.
4066 (odr_types_equivalent_p): Strenghten comparsions made;
4067 support VOIDtype.
4068 (add_type_duplicate): Update VISITED hash set.
4069
4070 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4071
4072 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4073 Enable selection of 'posix' or no thread model.
4074
4075 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
4076
4077 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4078 when architecture is older than ARMv7.
4079
4080 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
4081
4082 PR target/61853
4083 * config/pa/pa.c (pa_function_value): Directly handle aggregates
4084 that fit exactly in a word or double word.
4085
4086 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
4087
4088 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4089 zmm/k regs support.
4090
4091 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
4092 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4093 Anna Tikhonova <anna.tikhonova@intel.com>
4094 Ilya Tocar <ilya.tocar@intel.com>
4095 Andrey Turetskiy <andrey.turetskiy@intel.com>
4096 Ilya Verbin <ilya.verbin@intel.com>
4097 Kirill Yukhin <kirill.yukhin@intel.com>
4098 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4099
4100 * config/i386/i386.c
4101 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
4102 * config/i386/sse.md
4103 (define_mode_iterator VI48F_256): New.
4104 (define_mode_attr extract_type): Ditto.
4105 (define_mode_attr extract_suf): Ditto.
4106 (define_mode_iterator AVX512_VEC): Ditto.
4107 (define_expand
4108 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
4109 AVX512_VEC.
4110 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
4111 (define_insn
4112 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
4113 Ditto.
4114 (define_mode_attr extract_type_2): Ditto.
4115 (define_mode_attr extract_suf_2): Ditto.
4116 (define_mode_iterator AVX512_VEC_2): Ditto.
4117 (define_expand
4118 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
4119 AVX512_VEC_2 mode iterator.
4120 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4121 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
4122 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4123 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4124 (define_split for V16FI mode): Ditto.
4125 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4126 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4127 (define_split for VI8F_256 mode): Ditto.
4128 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4129 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
4130 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
4131 (define_split for VI4F_256 mode): Ditto.
4132 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
4133 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
4134 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
4135 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
4136 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
4137 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
4138 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
4139 Update `type' attribute, remove explicit `memory' attribute calculation.
4140
4141 2014-09-16 Kito Cheng <kito@0xlab.org>
4142
4143 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
4144 ira_spilled_reg_stack_slots_num if using lra.
4145 (do_reload): Remove release ira_spilled_reg_stack_slots part.
4146 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
4147 make sure not using lra.
4148 (ira_reuse_stack_slot): Likewise.
4149 (ira_mark_new_stack_slot): Likewise.
4150
4151 2014-09-15 Andi Kleen <ak@linux.intel.com>
4152
4153 * function.c (allocate_struct_function): Force
4154 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
4155 profiling is disabled.
4156
4157 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4158
4159 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
4160 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
4161 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
4162 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
4163 macro with statically checked member functions.
4164 * rtl.h (rtx_insn::deleted): New method.
4165 (rtx_insn::set_deleted): Likewise.
4166 (rtx_insn::set_undeleted): Likewise.
4167 (INSN_DELETED_P): Remove.
4168
4169 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
4170
4171 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
4172 result of emit_jump_insn_before to a new variable.
4173 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
4174 (mark_jump_label_1): Likewise.
4175 (mark_jump_label_asm): Likewise.
4176 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
4177 * rtl.h (mark_jump_label): Adjust.
4178
4179 2014-09-15 Jakub Jelinek <jakub@redhat.com>
4180
4181 * Makefile.in (dg_target_exps): Remove.
4182 (check_gcc_parallelize): Change to just an upper bound number.
4183 (check-%-subtargets): Always print the non-parallelized goals.
4184 (check_p_vars, check_p_comma, check_p_subwork): Remove.
4185 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
4186 check_p_numbers3, check_p_numbers4, check_p_numbers5,
4187 check_p_numbers6): New variables.
4188 (check_p_numbers): Set to sequence from 1 to 9999.
4189 (check_p_subdirs): Set to sequence from 1 to minimum of
4190 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
4191 or 128.
4192 (check-%, check-parallel-%): Rewritten so that for parallelized
4193 testing each job runs all the *.exp files, with
4194 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
4195
4196 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4197
4198 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
4199 rtx to rtx_insn *.
4200 (arc_sets_cc_p): Likewise.
4201 * config/arc/arc.c (arc_print_operand): Use methods of
4202 "final_sequence" for clarity, and to enable strengthening of
4203 locals "jump" and "delay" from rtx to rtx_insn *.
4204 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
4205 rtx_insn *; use method of rtx_sequence for typesafety.
4206 (arc_get_insn_variants): Use insn method of rtx_sequence for
4207 typesafety.
4208 (arc_pad_return): Likewise.
4209 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
4210 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
4211 dyn_cast to rtx_sequence *, using insn method for typesafety.
4212 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
4213 rtx_sequence * and use insn method when invoking get_attr_length.
4214 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
4215 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
4216 rtx_sequence *, introducing a local "seq", using its insn method
4217 from typesafety and clarity.
4218 (add_sched_insns_for_speculation): Strengthen local "next" from
4219 rtx to rtx_insn *.
4220 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
4221 (predicate_insn): Likewise.
4222 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
4223 second param.
4224 * config/cris/cris.c (cris_notice_update_cc): Likewise.
4225 * config/epiphany/epiphany-protos.h
4226 (extern void epiphany_insert_mode_switch_use): Likewise for param
4227 "insn".
4228 (get_attr_sched_use_fpu): Likewise for param.
4229 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
4230 Likewise for param "insn".
4231 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
4232 param "insn" of "target_insert_mode_switch_use" callback.
4233 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
4234 (frv_issues_to_branch_unit_p): Likewise.
4235 (frv_pack_insn_p): Likewise.
4236 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
4237 const rtx * (i.e. mutable rtx_def * const *) to
4238 rtx_insn * const *.
4239 * config/i386/i386-protos.h (standard_sse_constant_opcode):
4240 Strengthen first param from rtx to rtx_insn *.
4241 (output_fix_trunc): Likewise.
4242 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
4243 (output_fix_trunc): Likewise.
4244 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
4245 local "insn".
4246 (min_insn_size): Likewise for param "insn".
4247 (get_mem_group): Likewise.
4248 (is_cmp): Likewise.
4249 (get_insn_path): Likewise.
4250 (get_insn_group): Likewise.
4251 (count_num_restricted): Likewise.
4252 (fits_dispatch_window): Likewise.
4253 (add_insn_window): Likewise.
4254 (add_to_dispatch_window): Likewise.
4255 (debug_insn_dispatch_info_file): Likewise.
4256 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
4257 first param.
4258 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
4259 "cmp" and local "prev".
4260 (m32c_output_compare): Likewise for param "insn".
4261 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
4262 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
4263 (define_predicate "large_insn_p"): Likewise.
4264 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
4265 param from rtx to rtx_insn *.
4266 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
4267 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
4268 (m68k_sched_attr_size): Likewise.
4269 (sched_get_opxy_mem_type): Likewise for param "insn".
4270 (m68k_sched_attr_op_mem): Likewise.
4271 (sched_mem_operand_p): Likewise.
4272 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
4273 * config/mep/mep.c (mep_multi_slot): Likewise.
4274 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
4275 first param.
4276 (mips_sync_loop_insns): Likewise.
4277 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
4278 method of "final_sequence" for typesafety.
4279 (mips_process_sync_loop): Strengthen param "insn" from rtx to
4280 rtx_insn *.
4281 (mips_output_sync_loop): Likewise.
4282 (mips_sync_loop_insns): Likewise.
4283 (mips_74k_agen_init): Likewise.
4284 (mips_sched_init): Use NULL rather than NULL_RTX when working with
4285 insns.
4286 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
4287 Strengthen param "insn" from rtx to rtx_insn *.
4288 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
4289 local "insn".
4290 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
4291 param.
4292 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
4293 "insn". Use method of rtx_sequence for typesafety.
4294 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
4295 rtx_insn *.
4296 (branch_needs_nop_p): Likewise.
4297 (use_skip_p): Likewise.
4298 (pa_insn_refs_are_delayed): Likewise.
4299 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
4300 for locals "insn", "ninsn".
4301 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
4302 "insn".
4303 (is_cracked_insn): Likewise.
4304 (is_branch_slot_insn): Likewise.
4305 (is_nonpipeline_insn): Likewise.
4306 (insn_terminates_group_p): Likewise.
4307 (insn_must_be_first_in_group): Likewise.
4308 (insn_must_be_last_in_group): Likewise.
4309 (force_new_group): Likewise for param "next_insn".
4310 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
4311 "insn".
4312 (s390_sched_score): Likewise.
4313 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
4314 (rtx sfunc_uses_reg): Likewise for sole param.
4315 * config/sh/sh.c (sh_print_operand): Use insn method of
4316 final_sequence for typesafety.
4317 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
4318 Use insn method of final_sequence for typesafety.
4319 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
4320 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
4321 for param.
4322 (eligible_for_return_delay): Likewise.
4323 (eligible_for_sibcall_delay): Likewise.
4324 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
4325 (eligible_for_return_delay): Likewise.
4326 (eligible_for_sibcall_delay): Likewise.
4327 * config/stormy16/stormy16-protos.h
4328 (xstormy16_output_cbranch_hi): Likewise for final param.
4329 (xstormy16_output_cbranch_si): Likewise.
4330 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
4331 (xstormy16_output_cbranch_si): Likewise.
4332 * config/v850/v850-protos.h (notice_update_cc): Likewise.
4333 * config/v850/v850.c (notice_update_cc): Likewise.
4334
4335 * final.c (get_attr_length_1): Strengthen param "insn" and param
4336 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
4337 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
4338 (get_attr_min_length): Likewise.
4339 (shorten_branches): Likewise for signature of locals "length_fun"
4340 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
4341 from a checked cast and use its methods for clarity and to enable
4342 strengthening local "inner_insn" from rtx to rtx_insn *.
4343 * genattr.c (gen_attr): When writing out the prototypes of the
4344 various generated "get_attr_" functions, strengthen the params of
4345 the non-const functions from rtx to rtx_insn *.
4346 Similarly, strengthen the params of insn_default_length,
4347 insn_min_length, insn_variable_length_p, insn_current_length.
4348 (main): Similarly, strengthen the param of num_delay_slots,
4349 internal_dfa_insn_code, insn_default_latency, bypass_p,
4350 insn_latency, min_issue_delay, print_reservation,
4351 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
4352 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
4353 to hook_int_rtx_insn_unreachable.
4354 * genattrtab.c (write_attr_get): When writing out the generated
4355 "get_attr_" functions, strengthen the param "insn" from rtx to
4356 rtx_insn *, eliminating a checked cast.
4357 (make_automaton_attrs): When writing out prototypes of
4358 "internal_dfa_insn_code_", "insn_default_latency_" functions
4359 and the "internal_dfa_insn_code" and "insn_default_latency"
4360 callbacks, strengthen their params from rtx to rtx_insn *
4361 * genautomata.c (output_internal_insn_code_evaluation): When
4362 writing out code, add a checked cast from rtx to rtx_insn * when
4363 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
4364 (output_dfa_insn_code_func): Strengthen param of generated
4365 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
4366 (output_trans_func): Likewise for generated function
4367 "state_transition".
4368 (output_internal_insn_latency_func): When writing out generated
4369 function "internal_insn_latency", rename params from "insn" and
4370 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
4371 locals "insn" and "insn2" as rtx_insn * with checked casts once
4372 we've proven that we're not dealing with const0_rtx.
4373 (output_insn_latency_func): Strengthen param of generated
4374 function "insn_latency" from rtx to rtx_insn *.
4375 (output_print_reservation_func): Likewise for generated function
4376 "print_reservation".
4377 (output_insn_has_dfa_reservation_p): Likewise for generated
4378 function "insn_has_dfa_reservation_p".
4379 * hooks.c (hook_int_rtx_unreachable): Rename to...
4380 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
4381 from rtx to rtx_insn *.
4382 * hooks.h (hook_int_rtx_unreachable): Likewise.
4383 (extern int hook_int_rtx_insn_unreachable): Likewise.
4384 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
4385 (get_attr_min_length): Likewise.
4386 * recog.c (get_enabled_alternatives): Likewise.
4387 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
4388 * reorg.c (find_end_label): Introduce local rtx "pat" and
4389 strengthen local "insn" from rtx to rtx_insn *.
4390 (redundant_insn): Use insn method of "seq" rather than element for
4391 typesafety; strengthen local "control" from rtx to rtx_insn *.
4392 * resource.c (mark_referenced_resources): Add checked cast to
4393 rtx_insn * within INSN/JUMP_INSN case.
4394 (mark_set_resources): Likewise.
4395 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
4396 rtx to rtx_insn *.
4397
4398 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4399
4400 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
4401 param "label" from rtx to rtx_insn *.
4402 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
4403 and local "op".
4404 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
4405 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
4406 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
4407 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
4408 * final.c (default_label_align_after_barrier_max_skip): Strengthen
4409 param from rtx to rtx_insn *.
4410 (default_loop_align_max_skip): Likewise.
4411 (default_label_align_max_skip): Likewise.
4412 (default_jump_align_max_skip): Likewise.
4413 * target.def (label_align_after_barrier_max_skip): Likewise.
4414 (loop_align_max_skip): Likewise.
4415 (label_align_max_skip): Likewise.
4416 (jump_align_max_skip): Likewise.
4417 * targhooks.h (default_label_align_after_barrier_max_skip):
4418 Likewise.
4419 (default_loop_align_max_skip): Likewise.
4420 (default_label_align_max_skip): Likewise.
4421 (default_jump_align_max_skip): Likewise.
4422
4423 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4424
4425 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4426 from const_rtx to const rtx_insn *. Update union members from rtx
4427 to rtx_insn *.
4428 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
4429 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
4430 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
4431 strengthen both params from const_rtx to const rtx_insn *.
4432 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
4433 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
4434 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
4435 rtx_insn *.
4436 * target.def (can_follow_jump): Strengthen both params from
4437 const_rtx to const rtx_insn *, and update default implementation
4438 from hook_bool_const_rtx_const_rtx_true to
4439 hook_bool_const_rtx_insn_const_rtx_insn_true.
4440
4441 2014-09-15 David Malcolm <dmalcolm@redhat.com>
4442
4443 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
4444 "insn" from rtx to rtx_insn *.
4445 * sched-int.h (deps_start_bb): Likewise for 2nd param.
4446
4447 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4448 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4449 Anna Tikhonova <anna.tikhonova@intel.com>
4450 Ilya Tocar <ilya.tocar@intel.com>
4451 Andrey Turetskiy <andrey.turetskiy@intel.com>
4452 Ilya Verbin <ilya.verbin@intel.com>
4453 Kirill Yukhin <kirill.yukhin@intel.com>
4454 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4455
4456 * config/i386/sse.md
4457 (define_insn "vcvtph2ps<mask_name>"): Add masking.
4458 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
4459 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
4460 (define_expand "vcvtps2ph_mask"): New.
4461 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
4462 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
4463 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
4464
4465 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
4466 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4467 Anna Tikhonova <anna.tikhonova@intel.com>
4468 Ilya Tocar <ilya.tocar@intel.com>
4469 Andrey Turetskiy <andrey.turetskiy@intel.com>
4470 Ilya Verbin <ilya.verbin@intel.com>
4471 Kirill Yukhin <kirill.yukhin@intel.com>
4472 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4473
4474 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
4475 New.
4476 (define_mode_iterator VI24_AVX512BW_1): Ditto.
4477 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
4478 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
4479 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
4480 also for TARGET_AVX512VL.
4481 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
4482
4483 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
4484
4485 * doc/install.texi (Options specification): add
4486 --disable-libsanitizer item.
4487
4488 2014-09-14 James Clarke <jrtc27@jrtc27.com>
4489 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4490
4491 PR target/61407
4492 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
4493 and above.
4494 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
4495 kernel version check to avoid incrementing it after every major OS X
4496 release.
4497 (darwin_default_min_version): Avoid static memory buffer.
4498
4499 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
4500
4501 * tree.c (need_assembler_name_p): Store C++ type mangling only
4502 for aggregates.
4503
4504 2014-09-13 Marek Polacek <polacek@redhat.com>
4505
4506 * tree.c (protected_set_expr_location): Don't check whether T is
4507 non-null here.
4508
4509 2014-09-12 DJ Delorie <dj@redhat.com>
4510
4511 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
4512 (extend_and_shift1_hipsi2): Likewise.
4513 (extend_and_shift2_hipsi2): Likewise.
4514
4515 2014-09-12 David Malcolm <dmalcolm@redhat.com>
4516
4517 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4518 with NULL when dealing with an insn.
4519 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
4520 from rtx to rtx_insn *.
4521 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
4522 const_rtx to const rtx_insn *.
4523 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
4524
4525 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
4526
4527 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
4528 assert.
4529
4530 2014-09-12 Joseph Myers <joseph@codesourcery.com>
4531
4532 * target.def (libgcc_floating_mode_supported_p): New hook.
4533 * targhooks.c (default_libgcc_floating_mode_supported_p): New
4534 function.
4535 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
4536 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
4537 (LIBGCC2_HAS_TF_MODE): Remove.
4538 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
4539 * doc/tm.texi: Regenerate.
4540 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
4541 machine mode.
4542 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
4543 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
4544 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
4545 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
4546 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4547 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
4548 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
4549 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
4550 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
4551 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
4552 function.
4553 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
4554 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4555 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4556 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4557 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4558 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4559 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4560 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
4561 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
4562 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
4563 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
4564 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
4565 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
4566 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
4567 Remove.
4568 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
4569 New macro.
4570 (ia64_libgcc_floating_mode_supported_p): New function.
4571 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
4572 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
4573 (IA64_NO_LIBGCC_TFMODE): Define.
4574 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
4575 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
4576 macro.
4577 (pdp11_scalar_mode_supported_p): New function.
4578 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
4579 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
4580
4581 2014-09-12 Richard Biener <rguenther@suse.de>
4582
4583 PR middle-end/63237
4584 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
4585
4586 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
4587
4588 * tree.c (integer_each_onep): New function.
4589 * tree.h (integer_each_onep): Declare it.
4590 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
4591 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
4592 (X & 1) == 0 for vector and complex.
4593
4594 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4595
4596 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
4597 for A57.
4598 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
4599 cost to spilling from integer to FP registers.
4600
4601 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4602
4603 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
4604 move handling.
4605 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
4606 are now handled correctly.
4607
4608 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4609
4610 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
4611 handling of CALLER_SAVE_REGS and POINTER_REGS.
4612
4613 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
4614
4615 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
4616 the number of hard registers.
4617
4618 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4619 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4620 Anna Tikhonova <anna.tikhonova@intel.com>
4621 Ilya Tocar <ilya.tocar@intel.com>
4622 Andrey Turetskiy <andrey.turetskiy@intel.com>
4623 Ilya Verbin <ilya.verbin@intel.com>
4624 Kirill Yukhin <kirill.yukhin@intel.com>
4625 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4626
4627 * config/i386/sse.md
4628 (define_mode_iterator VI48_AVX512VL): New.
4629 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
4630 "avx512f_vternlog<mode>_maskz" and update mode iterator.
4631 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
4632 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
4633 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
4634 "avx512f_vternlog<mode>_mask" and update mode iterator.
4635 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
4636 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
4637 iterator.
4638 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
4639 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
4640 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
4641 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
4642 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
4643 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
4644
4645 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4646 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4647 Anna Tikhonova <anna.tikhonova@intel.com>
4648 Ilya Tocar <ilya.tocar@intel.com>
4649 Andrey Turetskiy <andrey.turetskiy@intel.com>
4650 Ilya Verbin <ilya.verbin@intel.com>
4651 Kirill Yukhin <kirill.yukhin@intel.com>
4652 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4653
4654 * config/i386/sse.md (VI128_256): Delete.
4655 (define_mode_iterator VI124_256): New.
4656 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
4657 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
4658 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
4659 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
4660 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
4661 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
4662 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
4663 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
4664 iterator.
4665 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
4666 in presence of AVX-512.
4667
4668 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
4669 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4670 Anna Tikhonova <anna.tikhonova@intel.com>
4671 Ilya Tocar <ilya.tocar@intel.com>
4672 Andrey Turetskiy <andrey.turetskiy@intel.com>
4673 Ilya Verbin <ilya.verbin@intel.com>
4674 Kirill Yukhin <kirill.yukhin@intel.com>
4675 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4676
4677 * config/i386/sse.md
4678 (define_expand "<avx512>_gathersi<mode>"): Rename from
4679 "avx512f_gathersi<mode>".
4680 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
4681 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
4682 (define_expand "<avx512>_gatherdi<mode>"): Rename from
4683 "avx512f_gatherdi<mode>".
4684 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
4685 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
4686 wide versions.
4687 (define_expand "<avx512>_scattersi<mode>"): Rename from
4688 "avx512f_scattersi<mode>".
4689 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
4690 (define_expand "<avx512>_scatterdi<mode>"): Rename from
4691 "avx512f_scatterdi<mode>".
4692 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
4693
4694 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
4695
4696 * ira.h (ira_finish_once): Delete.
4697 * ira-int.h (target_ira_int::~target_ira_int): Declare.
4698 (target_ira_int::free_ira_costs): Likewise.
4699 (target_ira_int::free_register_move_costs): Likewise.
4700 (ira_finish_costs_once): Delete.
4701 * ira.c (free_register_move_costs): Replace with...
4702 (target_ira_int::free_register_move_costs): ...this new function.
4703 (target_ira_int::~target_ira_int): Define.
4704 (ira_init): Call free_register_move_costs as a member function rather
4705 than a global function.
4706 (ira_finish_once): Delete.
4707 * ira-costs.c (free_ira_costs): Replace with...
4708 (target_ira_int::free_ira_costs): ...this new function.
4709 (ira_init_costs): Call free_ira_costs as a member function rather
4710 than a global function.
4711 (ira_finish_costs_once): Delete.
4712 * target-globals.c (target_globals::~target_globals): Call the
4713 target_ira_int destructor.
4714 * toplev.c: Include lra.h.
4715 (finalize): Call lra_finish_once rather than ira_finish_once.
4716
4717 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
4718
4719 * common.opt (flto-odr-type-merging): New flag.
4720 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
4721 (types_same_for_odr): Likewise.
4722 (odr_subtypes_equivalent_p): Likewise.
4723 (add_type_duplicate): Do not walk type variants.
4724 (register_odr_type): New function.
4725 * ipa-utils.h (register_odr_type): Declare.
4726 (odr_type_p): New function.
4727 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
4728 TYPE_DECLs
4729 * doc/invoke.texi (-flto-odr-type-merging): Document.
4730 * tree.c (need_assembler_name_p): Compute ODR names when asked
4731 for it.
4732 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
4733
4734 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
4735
4736 PR target/63228
4737 * config/i386/i386.c (ix86_option_override_internal): Also turn
4738 off OPTION_MASK_ABI_X32 for -m16.
4739
4740 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4741
4742 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
4743 GPR instead of P.
4744
4745 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
4746
4747 PR target/58757
4748 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
4749 Directly forward to __*_DENORM_MIN__.
4750
4751 2014-09-11 David Malcolm <dmalcolm@redhat.com>
4752
4753 * rtl.h (LABEL_REF_LABEL): New macro.
4754
4755 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
4756 of XEXP (, 0), where we know that we have a LABEL_REF.
4757 * cfgbuild.c (make_edges): Likewise.
4758 (purge_dead_tablejump_edges): Likewise.
4759 * cfgexpand.c (convert_debug_memory_address): Likewise.
4760 * cfgrtl.c (patch_jump_insn): Likewise.
4761 * combine.c (distribute_notes): Likewise.
4762 * cse.c (hash_rtx_cb): Likewise.
4763 (exp_equiv_p): Likewise.
4764 (fold_rtx): Likewise.
4765 (check_for_label_ref): Likewise.
4766 * cselib.c (rtx_equal_for_cselib_1): Likewise.
4767 (cselib_hash_rtx): Likewise.
4768 * emit-rtl.c (mark_label_nuses): Likewise.
4769 * explow.c (convert_memory_address_addr_space): Likewise.
4770 * final.c (output_asm_label): Likewise.
4771 (output_addr_const): Likewise.
4772 * gcse.c (add_label_notes): Likewise.
4773 * genconfig.c (walk_insn_part): Likewise.
4774 * genrecog.c (validate_pattern): Likewise.
4775 * ifcvt.c (cond_exec_get_condition): Likewise.
4776 (noce_emit_store_flag): Likewise.
4777 (noce_get_alt_condition): Likewise.
4778 (noce_get_condition): Likewise.
4779 * jump.c (maybe_propagate_label_ref): Likewise.
4780 (mark_jump_label_1): Likewise.
4781 (redirect_exp_1): Likewise.
4782 (rtx_renumbered_equal_p): Likewise.
4783 * lra-constraints.c (operands_match_p): Likewise.
4784 * reload.c (operands_match_p): Likewise.
4785 (find_reloads): Likewise.
4786 * reload1.c (set_label_offsets): Likewise.
4787 * reorg.c (get_branch_condition): Likewise.
4788 * rtl.c (rtx_equal_p_cb): Likewise.
4789 (rtx_equal_p): Likewise.
4790 * rtlanal.c (reg_mentioned_p): Likewise.
4791 (rtx_referenced_p): Likewise.
4792 (get_condition): Likewise.
4793 * sched-vis.c (print_value): Likewise.
4794 * varasm.c (const_hash_1): Likewise.
4795 (compare_constant): Likewise.
4796 (const_rtx_hash_1): Likewise.
4797 (output_constant_pool_1): Likewise.
4798
4799 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
4800
4801 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
4802 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
4803 instead of minus.
4804 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
4805 cr6_test_for_lt_reverse): Ditto.
4806
4807 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
4808
4809 PR c++/61489
4810 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
4811
4812 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
4813
4814 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
4815 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
4816 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
4817 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
4818 Delete.
4819
4820 (aarch64_fold_builtin): Remove all reinterpret cases.
4821
4822 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
4823
4824 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
4825
4826 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
4827 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
4828 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
4829 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
4830 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
4831 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
4832 aarch64_reinterpretv2df<mode>): Delete.
4833
4834 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
4835
4836 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
4837 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
4838 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
4839 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
4840 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
4841 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
4842 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
4843 vreinterpret_u32_f64): Use cast.
4844
4845 * config/aarch64/iterators.md (VD_RE): Delete.
4846
4847 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
4848
4849 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
4850 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
4851 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
4852 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
4853 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
4854 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
4855 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
4856 Replace inline assembler with __aarch64_vset_lane_any.
4857
4858 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
4859
4860 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
4861 types.
4862 (vmull_high_lane_s32): Likewise.
4863 (vmull_high_lane_u16): Likewise.
4864 (vmull_high_lane_u32): Likewise.
4865
4866 2014-09-11 Jason Merrill <jason@redhat.com>
4867
4868 PR c++/58678
4869 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
4870
4871 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
4872
4873 PR target/63223
4874 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
4875 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
4876 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
4877
4878 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
4879 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4880 Anna Tikhonova <anna.tikhonova@intel.com>
4881 Ilya Tocar <ilya.tocar@intel.com>
4882 Andrey Turetskiy <andrey.turetskiy@intel.com>
4883 Ilya Verbin <ilya.verbin@intel.com>
4884 Kirill Yukhin <kirill.yukhin@intel.com>
4885 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4886
4887 * config/i386/sse.md
4888 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
4889 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
4890 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
4891 New.
4892 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
4893 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
4894 iterator.
4895 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
4896 New.
4897 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
4898 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
4899 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
4900 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
4901 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
4902 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
4903 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
4904 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
4905 iterator.
4906 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
4907 New.
4908 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
4909 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
4910 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
4911
4912 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
4913
4914 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
4915 to access removed nodes.
4916
4917 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
4918
4919 PR tree-optimization/63186
4920 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
4921 (mark_nonssa_use): Likewise.
4922 (verify_non_ssa_vars): Verify all header blocks for label
4923 definitions.
4924
4925 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
4926 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4927 Anna Tikhonova <anna.tikhonova@intel.com>
4928 Ilya Tocar <ilya.tocar@intel.com>
4929 Andrey Turetskiy <andrey.turetskiy@intel.com>
4930 Ilya Verbin <ilya.verbin@intel.com>
4931 Kirill Yukhin <kirill.yukhin@intel.com>
4932 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4933
4934 * config/i386/sse.md
4935 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
4936 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
4937 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
4938 "<avx2_avx512f>_permvar<mode><mask_name>".
4939 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
4940 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
4941 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
4942 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
4943 Ditto.
4944 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
4945 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
4946 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
4947 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
4948
4949 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4950
4951 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
4952 V2DF, V4SF, DF, and DI modes.
4953 (vsx_fmav2df2): Likewise.
4954 (vsx_float_fix_<mode>2): Likewise.
4955 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
4956
4957 2014-09-10 Xinliang David Li <davidxl@google.com>
4958
4959 PR target/63209
4960 * config/arm/arm.md (movcond_addsi): Handle case where source
4961 and target operands are the same.
4962
4963 2014-09-10 David Malcolm <dmalcolm@redhat.com>
4964
4965 * final.c (this_is_asm_operands): Strengthen this variable from
4966 rtx to const rtx_insn *.
4967 * output.h (this_is_asm_operands): Likewise.
4968 * rtl-error.c (location_for_asm): Strengthen param "insn" from
4969 const_rtx to const rtx_insn *.
4970 (diagnostic_for_asm): Likewise.
4971 * rtl-error.h (error_for_asm): Likewise.
4972 (warning_for_asm): Likewise.
4973
4974 2014-09-10 David Malcolm <dmalcolm@redhat.com>
4975
4976 * genextract.c (print_header): When writing out insn_extract to
4977 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
4978 * recog.h (insn_extract): Strengthen the param from rtx to
4979 rtx_insn *.
4980
4981 2014-09-10 Mike Stump <mikestump@comcast.net>
4982
4983 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
4984 8.6.1.
4985
4986 2014-09-10 Martin Jambor <mjambor@suse.cz>
4987
4988 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
4989 (analyze): Do not set analyze flag if expand_thunk returns false;.
4990 (create_wrapper): Likewise.
4991 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
4992
4993 2014-09-10 Martin Jambor <mjambor@suse.cz>
4994
4995 PR ipa/61654
4996 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
4997 new decl properly. Analyze the new thunk if it is expanded.
4998
4999 2014-09-10 Andreas Schwab <schwab@suse.de>
5000
5001 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5002 [USED_FOR_TARGET]: Define.
5003
5004 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
5005
5006 * config/mips/mips.c (mips_secondary_reload_class): Handle
5007 regno < 0 case.
5008
5009 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
5010
5011 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5012 assignment.
5013
5014 2014-09-10 Jakub Jelinek <jakub@redhat.com>
5015
5016 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5017 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5018 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5019 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5020 flag_delete_null_pointer_checks for them.
5021 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5022 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5023 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5024 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5025 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5026 stmt's iterator.
5027 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5028 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5029 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5030 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5031 * doc/invoke.texi (-fsanitize=nonnull-attribute,
5032 -fsanitize=returns-nonnull-attribute): Document.
5033
5034 * ubsan.h (struct ubsan_mismatch_data): Removed.
5035 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5036 * ubsan.c (ubsan_source_location): For unknown locations,
5037 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5038 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5039 Allow more than one location and arbitrary extra arguments passed
5040 in ... instead of through MISMATCH pointer.
5041 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5042 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5043 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5044 callers.
5045
5046 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5047 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5048 Anna Tikhonova <anna.tikhonova@intel.com>
5049 Ilya Tocar <ilya.tocar@intel.com>
5050 Andrey Turetskiy <andrey.turetskiy@intel.com>
5051 Ilya Verbin <ilya.verbin@intel.com>
5052 Kirill Yukhin <kirill.yukhin@intel.com>
5053 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5054
5055 * config/i386/sse.md
5056 (define_mode_iterator VI48F): New.
5057 (define_insn "<avx512>_compress<mode>_mask"): Rename from
5058 "avx512f_compress<mode>_mask" and update mode iterator.
5059 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5060 "avx512f_compressstore<mode>_mask" and update mode iterator.
5061 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5062 "avx512f_expand<mode>_maskz" and update mode iterator.
5063 (define_insn "<avx512>_expand<mode>_mask"): Rename from
5064 "avx512f_expand<mode>_mask" and update mode iterator.
5065
5066 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5067 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5068 Anna Tikhonova <anna.tikhonova@intel.com>
5069 Ilya Tocar <ilya.tocar@intel.com>
5070 Andrey Turetskiy <andrey.turetskiy@intel.com>
5071 Ilya Verbin <ilya.verbin@intel.com>
5072 Kirill Yukhin <kirill.yukhin@intel.com>
5073 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5074
5075 * config/i386/i386.c
5076 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5077 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5078 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5079 avx512dq_rangepv4sf_mask.
5080 * config/i386/sse.md
5081 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5082 UNSPEC_RANGE.
5083 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5084 (define_insn "reduces<mode>"): Ditto.
5085 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5086 Ditto.
5087 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5088 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5089 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5090
5091 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5092 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5093 Anna Tikhonova <anna.tikhonova@intel.com>
5094 Ilya Tocar <ilya.tocar@intel.com>
5095 Andrey Turetskiy <andrey.turetskiy@intel.com>
5096 Ilya Verbin <ilya.verbin@intel.com>
5097 Kirill Yukhin <kirill.yukhin@intel.com>
5098 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5099
5100 * config/i386/i386.c
5101 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
5102 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
5103 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
5104 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
5105 avx512vl_getmantv2df_mask.
5106 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
5107 avx512f_vgetmantv4sf_round.
5108 * config/i386/sse.md
5109 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
5110 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
5111 mode iterator.
5112 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
5113 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
5114 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
5115 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
5116 iterator..
5117 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
5118 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
5119 update mode iterator.
5120 (define_expand
5121 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
5122 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
5123 mode iterator.
5124 (define_insn
5125 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
5126 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
5127 update mode iterator.
5128 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
5129 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
5130 iterator..
5131 (define_insn
5132 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
5133 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
5134 mode iterator..
5135 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
5136 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
5137 update mode iterator.
5138 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
5139 "avx512f_getmant<mode><round_saeonly_name>".
5140
5141 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5142
5143 PR ipa/63166
5144 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
5145
5146 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5147 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5148 Anna Tikhonova <anna.tikhonova@intel.com>
5149 Ilya Tocar <ilya.tocar@intel.com>
5150 Andrey Turetskiy <andrey.turetskiy@intel.com>
5151 Ilya Verbin <ilya.verbin@intel.com>
5152 Kirill Yukhin <kirill.yukhin@intel.com>
5153 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5154
5155 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
5156 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
5157 (define_mode_iterator FMAMODE_AVX512): New.
5158 (define_mode_iterator FMAMODE): Remove conditions.
5159 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
5160 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
5161 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
5162 mode iterator.
5163 (define_mode_iterator FMAMODE_NOVF512): Remove.
5164 (define_insn "*fma_fmadd_<mode>"): Rename from
5165 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
5166 FMAMODE mode iterator.
5167 (define_mode_iterator VF_SF_AVX512VL): New.
5168 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
5169 Use VF_SF_AVX512VL mode iterator.
5170 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
5171 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5172 iterator.
5173 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
5174 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5175 iterator.
5176 (define_insn "*fma_fmsub_<mode>"): Rename from
5177 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
5178 FMAMODE mode iterator.
5179 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
5180 Use VF_SF_AVX512VL mode iterator.
5181 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
5182 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5183 iterator.
5184 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
5185 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5186 iterator.
5187 (define_insn "*fma_fnmadd_<mode>"): Rename from
5188 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
5189 use FMAMODE mode iterator.
5190 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
5191 Use VF_SF_AVX512VL mode iterator.
5192 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
5193 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5194 iterator.
5195 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
5196 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5197 iterator.
5198 (define_insn "*fma_fnmsub_<mode>"): Rename from
5199 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
5200 FMAMODE mode iterator.
5201 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
5202 Use VF_SF_AVX512VL mode iterator.
5203 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
5204 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5205 iterator.
5206 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
5207 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5208 iterator.
5209 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
5210 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
5211 use VF_AVX512VL mode iterator.
5212 (define_insn "*fma_fmaddsub_<mode>"): Rename from
5213 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
5214 remove subst usage.
5215 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
5216 Use VF_SF_AVX512VL mode iterator.
5217 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
5218 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
5219 iterator.
5220 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
5221 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5222 iterator.
5223 (define_insn "*fma_fmsubadd_<mode>"): Rename from
5224 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
5225 remove usage of subst.
5226 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
5227 Use VF_SF_AVX512VL mode iterator.
5228 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
5229 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
5230 iterator.
5231 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
5232 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
5233 iterator.
5234
5235 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
5236
5237 Revert r213751:
5238 * calls.c (precompute_arguments): Check
5239 promoted_for_signed_and_unsigned_p and set the promoted mode.
5240 (promoted_for_signed_and_unsigned_p): New function.
5241 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
5242 and set the promoted mode.
5243 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
5244 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
5245 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
5246
5247 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5248
5249 * opth-gen.awk: Generate mapping from cpp message reasons to the
5250 options that enable them.
5251 * doc/options.texi (CppReason): Document.
5252
5253 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5254
5255 * doc/invoke.texi (Wnormalized=): Update.
5256
5257 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
5258
5259 PR target/63195
5260 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
5261 operands. Split off the constant operand alternative to ...
5262 (*bool<mode>3_imm): New.
5263
5264 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5265
5266 * rtl.h (single_set_2): Strengthen first param from const_rtx to
5267 const rtx_insn *, and move prototype to above...
5268 (single_set): ...this. Convert this from a macro to an inline
5269 function, enforcing the requirement that the param is a const
5270 rtx_insn *.
5271 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
5272
5273 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
5274 Strengthen both params from rtx to rtx_insn *.
5275 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5276 Likewise; introduce locals "producer_set", "consumer_set", using
5277 them in place of "producer" and "consumer" when dealing with SET
5278 rather than insn.
5279 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
5280 when invoking single_set in region guarded by INSN_P.
5281 (avr_out_bitop): Likewise.
5282 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
5283 region guarded by GET_CODE check, using methods to strengthen
5284 local "this_insn" from rtx to rtx_insn *, and for clarity.
5285 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
5286 Strengthen local "insn" from rtx to rtx_insn *.
5287 (define_insn_and_split "xload<mode>_A"): Likewise.
5288 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
5289 "insn".
5290 (find_load): Likewise for return type.
5291 (workaround_speculation): Likewise for both locals named
5292 "load_insn".
5293 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
5294 local "cc0_user".
5295 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
5296 for local "prev".
5297 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
5298 param 2.
5299 * config/h8300/h8300.c (notice_update_cc): Likewise.
5300 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
5301 "insn" and "dep_insn".
5302 (exact_store_load_dependency): Likewise for both params.
5303 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
5304 since this now clashes with inline function. Instead, delay
5305 calling single_set until the point where its needed, and then
5306 assign the result to "compare_set" and rework the conditional that
5307 follows.
5308 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
5309 local "last" from rtx to rtx_insn *.
5310 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
5311 second param.
5312 (mips_store_data_bypass_p): Likewise for both params.
5313 * config/mips/mips.c (mips_load_store_insns): Likewise for second
5314 param.
5315 (mips_store_data_bypass_p): Likewise for both params.
5316 (mips_orphaned_high_part_p): Likewise for param "insn".
5317 * config/mn10300/mn10300.c (extract_bundle): Likewise.
5318 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
5319 Introduce local rtx "insn2_pat".
5320 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
5321 "ninsn".
5322 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
5323 Introduce local rtx "set", using it in place of "insn" for the
5324 result of single_set. This appears to fix a bug, since the call
5325 to find_regno_note on a SET does nothing.
5326 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
5327 params from rtx to rtx_insn *.
5328 (set_to_load_agen): Likewise.
5329 * config/s390/s390.c (s390_label_align): Likewise for local
5330 "prev_insn". Introduce new rtx locals "set" and "src", using
5331 them in place of "prev_insn" for the results of single_set
5332 and SET_SRC respectively.
5333 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
5334 Introduce new rtx local "set" using in place of "jump" for the
5335 result of single_set. Use SET_SRC (set) rather than plain
5336 XEXP (set, 1).
5337 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
5338 rtx to rtx_insn *.
5339 (noncall_uses_reg): Likewise.
5340 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
5341 guarded by GET_CODE check, using its methods for clarity, and to
5342 enable strengthening local "this_insn" from rtx to rtx_insn *.
5343 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
5344 "insn" from rtx to rtx_insn *.
5345 (define_expand "umulhisi3"): Likewise.
5346 (define_expand "smulsi3_highpart"): Likewise.
5347 (define_expand "umulsi3_highpart"): Likewise.
5348 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
5349 local "after". Replace GET_CODE check with a dyn_cast,
5350 introducing new local rtx_sequence * "seq", using insn method for
5351 typesafety.
5352
5353 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
5354 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
5355 place of "insn" once we're dealing with patterns rather than the
5356 input insn.
5357 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
5358 (scan_trace): Likewise for local "elt", updating lookups within
5359 sequence to use insn method rather than element method.
5360 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
5361 to rtx_insn *.
5362 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
5363 * ifcvt.c (noce_try_abs): Likewise for local "insn".
5364 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
5365 invoking single_set.
5366 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
5367 "insn" from rtx to rtx_insn *.
5368 (skip_usage_debug_insns): Likewise for return type, adding a
5369 checked cast.
5370 (check_secondary_memory_needed_p): Likewise for local "insn".
5371 (inherit_reload_reg): Likewise.
5372 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
5373 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
5374 checked casts.
5375 (store_data_bypass_p): Likewise for both params.
5376 (if_test_bypass_p): Likewise.
5377 * recog.h (store_data_bypass_p): Likewise for both params.
5378 (if_test_bypass_p): Likewise.
5379 * reload.c (find_equiv_reg): Likewise for local "where".
5380 * reorg.c (delete_jump): Likewise for param "insn".
5381 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
5382 to const rtx_insn *.
5383 * store-motion.c (replace_store_insn): Likewise for param "del".
5384 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
5385 and use its methods for clarity, and to strengthen local "del"
5386 from rtx to rtx_insn *.
5387 (build_store_vectors): Use insn method of "st" when calling
5388 replace_store_insn for typesafety and clarity.
5389
5390 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5391
5392 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
5393 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
5394 on how to make it legal in future.
5395
5396 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5397
5398 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
5399 to rtx_insn *.
5400 (restinsn): Likewise.
5401 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
5402 Likewise for param.
5403 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
5404 Likewise.
5405 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
5406 first param.
5407 (arc_hazard): Likewise for both params.
5408 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
5409 checked casts to rtx_sequence * and uses of the insn method for
5410 type-safety.
5411 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
5412 (arc_adjust_insn_length): Likewise for param "insn".
5413 (struct insn_length_parameters_s): Likewise for first param of
5414 "get_variants" callback field.
5415 (arc_get_insn_variants): Likewise for first param and local
5416 "inner". Replace a check of GET_CODE with a dyn_cast to
5417 rtx_sequence *, using methods for type-safety and clarity.
5418 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
5419 rtx_sequence * and uses of the insn method for type-safety when
5420 invoking arc_adjust_insn_length.
5421 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
5422 for param.
5423 (arm_address_offset_is_imm): Likewise.
5424 (struct tune_params): Likewise for params 1 and 3 of the
5425 "sched_adjust_cost" callback field.
5426 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
5427 params 1 and 3 ("insn" and "dep").
5428 (xscale_sched_adjust_cost): Likewise.
5429 (fa726te_sched_adjust_cost): Likewise.
5430 (cortexa7_older_only): Likewise for param "insn".
5431 (cortexa7_younger): Likewise.
5432 (arm_attr_length_move_neon): Likewise.
5433 (arm_address_offset_is_imm): Likewise.
5434 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
5435 * config/avr/avr.c (avr_notice_update_cc): Likewise.
5436 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
5437 (workaround_speculation): Likewise for local "last_condjump".
5438 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
5439 (shadow_or_blockage_p): Likewise.
5440 (get_unit_reqs): Likewise.
5441 (get_unit_operand_masks): Likewise.
5442 (c6x_registers_update): Likewise.
5443 (returning_call_p): Likewise.
5444 (can_use_callp): Likewise.
5445 (convert_to_callp): Likewise.
5446 (find_last_same_clock): Likwise for local "t".
5447 (reorg_split_calls): Likewise for local "shadow".
5448 (hwloop_pattern_reg): Likewise for param "insn".
5449 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
5450 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
5451 (frv_extract_membar): Likewise.
5452 (frv_optimize_membar_local): Strengthen param "last_membar" from
5453 rtx * to rtx_insn **.
5454 (frv_optimize_membar_global): Strengthen param "membar" from rtx
5455 to rtx_insn *.
5456 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
5457 to rtx_insn **.
5458 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
5459 both params from rtx to rtx_insn *.
5460 (ia64_ld_address_bypass_p): Likewise.
5461 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
5462 "insn".
5463 (ia64_safe_type): Likewise.
5464 (group_barrier_needed): Likewise.
5465 (safe_group_barrier_needed): Likewise.
5466 (ia64_single_set): Likewise.
5467 (is_load_p): Likewise.
5468 (record_memory_reference): Likewise.
5469 (get_mode_no_for_insn): Likewise.
5470 (important_for_bundling_p): Likewise.
5471 (unknown_for_bundling_p): Likewise.
5472 (ia64_st_address_bypass_p): Likewise for both params.
5473 (ia64_ld_address_bypass_p): Likewise.
5474 (expand_vselect): Introduce new local rtx_insn * "insn", using it
5475 in place of rtx "x" after the emit_insn call.
5476 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
5477 Strengthen param from rtx to rtx_insn *.
5478 (ix86_agi_dependent): Likewise for both params.
5479 (ix86_attr_length_immediate_default): Likewise for param 1.
5480 (ix86_attr_length_address_default): Likewise for param.
5481 (ix86_attr_length_vex_default): Likewise for param 1.
5482 * config/i386/i386.c (ix86_attr_length_immediate_default):
5483 Likewise for param "insn".
5484 (ix86_attr_length_address_default): Likewise.
5485 (ix86_attr_length_vex_default): Likewise.
5486 (ix86_agi_dependent): Likewise for both params.
5487 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
5488 (vselect_insn): Likewise for this variable.
5489 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
5490 for param 1.
5491 (m68k_sched_attr_opy_type): Likewise.
5492 * config/m68k/m68k.c (sched_get_operand): Likewise.
5493 (sched_attr_op_type): Likewise.
5494 (m68k_sched_attr_opx_type): Likewise.
5495 (m68k_sched_attr_opy_type): Likewise.
5496 (sched_get_reg_operand): Likewise.
5497 (sched_get_mem_operand): Likewise.
5498 (m68k_sched_address_bypass_p): Likewise for both params.
5499 (sched_get_indexed_address_scale): Likewise.
5500 (m68k_sched_indexed_address_bypass_p): Likewise.
5501 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
5502 (m68k_sched_indexed_address_bypass_p): Likewise.
5503 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
5504 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
5505 removing another.
5506 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
5507 params from rtx to rtx_insn *.
5508 (mips_fmadd_bypass): Likewise.
5509 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
5510 (mips_linked_madd_p): Likewise.
5511 (mips_macc_chains_last_hilo): Likewise for this variable.
5512 (mips_macc_chains_record): Likewise for param.
5513 (vr4130_last_insn): Likewise for this variable.
5514 (vr4130_swap_insns_p): Likewise for both params.
5515 (mips_ls2_variable_issue): Likewise for param.
5516 (mips_need_noat_wrapper_p): Likewise for param "insn".
5517 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
5518 in place of "x" after the emit_insn.
5519 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
5520 params from rtx to rtx_insn *.
5521 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
5522 (pa_combine_instructions): Introduce local "par" for result of
5523 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
5524 to make_insn_raw.
5525 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
5526 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
5527 (rl78_alloc_physical_registers_op1): Likewise.
5528 (rl78_alloc_physical_registers_op2): Likewise.
5529 (rl78_alloc_physical_registers_ro1): Likewise.
5530 (rl78_alloc_physical_registers_cmp): Likewise.
5531 (rl78_alloc_physical_registers_umul): Likewise.
5532 (rl78_alloc_address_registers_macax): Likewise.
5533 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
5534 * config/s390/predicates.md (execute_operation): Likewise for
5535 local "insn".
5536 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
5537 params.
5538 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
5539 (addr_generation_dependency_p): Likewise for param "insn".
5540 (s390_agen_dep_p): Likewise for both params.
5541 (s390_fpload_toreg): Likewise for param "insn".
5542 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
5543 * config/sh/sh.c (sh_loop_align): Likewise for param and local
5544 "next".
5545 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
5546 * config/sh/sh_treg_combine.cc
5547 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
5548 and local "i".
5549 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
5550 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
5551 "and_insn", "load", "shift".
5552 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
5553 "insn".
5554 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
5555 for XEXP (note, 0) of the REG_CC_SETTER note.
5556 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
5557 rtx_insn *, eliminating a checked cast made redundant by this.
5558 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
5559 to rtx_insn *.
5560 * genattr.c (main): When writing out the prototype to
5561 const_num_delay_slots, strengthen the param from rtx to
5562 rtx_insn *.
5563 * genattrtab.c (write_const_num_delay_slots): Likewise when
5564 writing out the implementation of const_num_delay_slots.
5565 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
5566 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
5567 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
5568 favor of new rtx locals "src" and "set" and new local rtx_insn *
5569 "insn" and "seq".
5570 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
5571 to rtx_insn *.
5572 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
5573 locals "cond", "if_then_else", "set" and new rtx_insn * locals
5574 "insn" and "seq".
5575 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
5576 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
5577 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
5578 the top-level scope, replacing with new more tightly-scoped rtx
5579 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
5580 "new_insn", "copy_of_insn_b", and make local rtx "set" more
5581 tightly-scoped.
5582 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
5583 rtx_insn *.
5584 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
5585 "move_insn".
5586 (ira_setup_alts): Likewise for param "insn".
5587 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
5588 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
5589 and an rtx_insn *.
5590 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
5591 new more-tightly scoped rtx locals "add3_insn", "insn",
5592 "add2_insn" and rtx_insn * "move_insn".
5593 * postreload-gcse.c (eliminate_partially_redundant_load): Add
5594 checked cast on result of gen_move_insn when invoking
5595 extract_insn.
5596 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
5597 rtx_insn *.
5598 (verify_changes): Add a checked cast on "object" when invoking
5599 insn_invalid_p.
5600 (extract_insn_cached): Strengthen param "insn" from rtx to
5601 rtx_insn *.
5602 (extract_constrain_insn_cached): Likewise.
5603 (extract_insn): Likewise.
5604 * recog.h (insn_invalid_p): Likewise for param 1.
5605 (recog_memoized): Likewise for param.
5606 (extract_insn): Likewise.
5607 (extract_constrain_insn_cached): Likewise.
5608 (extract_insn_cached): Likewise.
5609 * reload.c (can_reload_into): Likewise for local "test_insn".
5610 * reload.h (cleanup_subreg_operands): Likewise for param.
5611 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
5612 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
5613 result of emit_insn. Remove a checked cast made redundant by this
5614 change.
5615 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
5616 rtx to rtx_insn *.
5617 * sel-sched.c (get_reg_class): Likewise.
5618
5619 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
5620 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5621
5622 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
5623 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
5624 Define.
5625 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
5626
5627 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5628
5629 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
5630 const rtx_insn *, and from rtx to rtx_insn * for the other
5631 overloaded variant.
5632 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
5633 INSN_LOCATION, since we know INSN_P holds.
5634 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
5635 (insn_file): Likewise.
5636 (insn_scope): Likewise.
5637 (insn_location): Likewise.
5638
5639 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
5640 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
5641 for the result of gen_load_const_gp.
5642 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
5643 param from rtx to rtx_insn *.
5644 * config/rs6000/rs6000.c (output_call): Likewise.
5645 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
5646 introducing a checked cast to rtx_sequence * and use of the insn
5647 method.
5648 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
5649 from rtx to rtx_insn *.
5650 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
5651 (insn_line): Likewise.
5652 (insn_file): Likewise.
5653 (insn_location): Likewise.
5654 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
5655 from rtx to rtx_insn *.
5656 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
5657 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
5658 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
5659 via a checked cast.
5660 * reorg.c (relax_delay_slots): Strengthen locals named "after"
5661 from rtx to rtx_insn *; use methods of "pat" for type-safety.
5662
5663 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5664
5665 * combine.c (try_combine): Eliminate checked cast on result of
5666 gen_rtx_INSN.
5667 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
5668 autogenerated one by strengthening the return type and params 2 and 3
5669 from rtx to rtx_insn *, and by naming the params.
5670 * gengenrtl.c (special_rtx): Add INSN to those that are
5671 special-cased.
5672 * rtl.h (gen_rtx_INSN): New prototype.
5673
5674 2014-09-09 David Malcolm <dmalcolm@redhat.com>
5675
5676 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
5677 than NULL_RTX.
5678 (no_equiv): Likewise.
5679 (update_equiv_regs): Likewise.
5680 (setup_reg_equiv): Likewise. Strengthen locals "elem",
5681 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
5682 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
5683 clarity.
5684 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
5685 from rtx to rtx_insn_list *.
5686 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
5687 rtx_insn_list * and use methods for clarity and typesafety.
5688 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
5689 "list".
5690 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
5691 redundant check on INSN_P (insns): this cannot hold, as "insns" is
5692 an INSN_LIST, not an insn.
5693 (reverse_equiv_p): Strengthen local "insns" from rtx to
5694 rtx_insn_list * and use methods for clarity and typesafety.
5695 (contains_reloaded_insn_p): Likewise for local "list".
5696
5697 2014-09-09 Jiong Wang <jiong.wang@arm.com>
5698
5699 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
5700 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
5701 (arm_builtin_vectorized_function): Likewise.
5702 * config/arm/arm_neon_builtins.def: New macro for copysignf.
5703 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
5704
5705 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
5706
5707 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
5708 * builtins.h (default_target_builtins): Likewise.
5709 * gcse.h (default_target_gcse): Likewise.
5710 * target-globals.h (target_globals): Add a destructor. Convert
5711 void-pointer fields back to their real type and change from
5712 GTY((atomic)) to GTY((skip)).
5713 (restore_target_globals): Remove casts accordingly.
5714 * target-globals.c (save_target_globals): Use XCNEW rather than
5715 ggc_internal_cleared_alloc to allocate non-GC structures.
5716 Use ggc_cleared_alloc to allocate the target_globals structure
5717 itself.
5718 (target_globals::~target_globals): Define.
5719
5720 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5721
5722 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
5723 mnemonic instead of fldmfdd.
5724 * config/arm/arm.c (vfp_output_fstmd): Rename to...
5725 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
5726 Output vpush when address register is SP.
5727 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
5728 (vfp_output_vstmd): ... This.
5729 * config/arm/vfp.md (push_multi_vfp): Update call to
5730 vfp_output_vstmd.
5731
5732 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5733
5734 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
5735
5736 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5737
5738 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
5739 (*sqrtdf2_vfp): Likewise.
5740 (*cmpsf_vfp): Likewise.
5741 (*cmpsf_trap_vfp): Likewise.
5742 (*cmpdf_vfp): Likewise.
5743 (*cmpdf_trap_vfp): Likewise.
5744
5745 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5746
5747 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
5748 (*truncdfsf2_vfp): Likewise.
5749 (*truncsisf2_vfp): Likewise.
5750 (*truncsidf2_vfp): Likewise.
5751 (fixuns_truncsfsi2): Likewise.
5752 (fixuns_truncdfsi2): Likewise.
5753 (*floatsisf2_vfp): Likewise.
5754 (*floatsidf2_vfp): Likewise.
5755 (floatunssisf2): Likewise.
5756 (floatunssidf2): Likewise.
5757
5758 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5759
5760 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
5761 (*muldf3_vfp): Likewise.
5762 (*mulsf3negsf_vfp): Likewise.
5763 (*muldf3negdf_vfp): Likewise.
5764 (*mulsf3addsf_vfp): Likewise.
5765 (*muldf3adddf_vfp): Likewise.
5766 (*mulsf3subsf_vfp): Likewise.
5767 (*muldf3subdf_vfp): Likewise.
5768 (*mulsf3negsfaddsf_vfp): Likewise.
5769 (*fmuldf3negdfadddf_vfp): Likewise.
5770 (*mulsf3negsfsubsf_vfp): Likewise.
5771 (*muldf3negdfsubdf_vfp): Likewise.
5772
5773 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5774
5775 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
5776 (*absdf2_vfp): Likewise.
5777 (*negsf2_vfp): Likewise.
5778 (*negdf2_vfp): Likewise.
5779 (*addsf3_vfp): Likewise.
5780 (*adddf3_vfp): Likewise.
5781 (*subsf3_vfp): Likewise.
5782 (*subdf3_vfp): Likewise.
5783 (*divsf3_vfp): Likewise.
5784 (*divdf3_vfp): Likewise.
5785
5786 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5787
5788 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
5789 multiple.
5790 (arm_print_operand): Don't convert real values to decimal
5791 representation in default case.
5792 (fp_immediate_constant): Delete.
5793 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
5794 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
5795 syntax.
5796 (*thumb2_movsi_vfp): Likewise.
5797 (*movdi_vfp): Likewise.
5798 (*movdi_vfp_cortexa8): Likewise.
5799 (*movhf_vfp_neon): Likewise.
5800 (*movhf_vfp): Likewise.
5801 (*movsf_vfp): Likewise.
5802 (*thumb2_movsf_vfp): Likewise.
5803 (*movdf_vfp): Likewise.
5804 (*thumb2_movdf_vfp): Likewise.
5805 (*movsfcc_vfp): Likewise.
5806 (*thumb2_movsfcc_vfp): Likewise.
5807 (*movdfcc_vfp): Likewise.
5808 (*thumb2_movdfcc_vfp): Likewise.
5809
5810 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
5811
5812 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
5813 (-mtune): Likewise.
5814 (-mcpu): Likewise.
5815
5816 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5817
5818 PR target/61749
5819 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
5820 Use qualifier_immediate for last operand. Rename to...
5821 (aarch64_types_ternop_lane_qualifiers): ... This.
5822 (TYPES_QUADOP): Rename to...
5823 (TYPES_TERNOP_LANE): ... This.
5824 (aarch64_simd_expand_args): Return const0_rtx when encountering user
5825 error. Change return of 0 to return of NULL_RTX.
5826 (aarch64_crc32_expand_builtin): Likewise.
5827 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
5828 ICE when expanding unknown builtin.
5829 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
5830 TERNOP_LANE qualifiers.
5831 (sqdmlsl_lane): Likewise.
5832 (sqdmlal_laneq): Likewise.
5833 (sqdmlsl_laneq): Likewise.
5834 (sqdmlal2_lane): Likewise.
5835 (sqdmlsl2_lane): Likewise.
5836 (sqdmlal2_laneq): Likewise.
5837 (sqdmlsl2_laneq): Likewise.
5838
5839 2014-09-09 Nick Clifton <nickc@redhat.com>
5840
5841 * doc/invoke.texi (Optimization Options): Add missing @gol to the
5842 end of a line.
5843 (S/390 and zSeries Options): Remove superfluous word from the
5844 description of the -mhotpatch option.
5845
5846 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
5847
5848 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
5849 * ira.c: #include "shrink-wrap.h"
5850 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
5851 * ifcvt.c: #include "shrink-wrap.h"
5852 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
5853
5854 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
5855
5856 * common/config/picochip/picochip-common.c: Remove.
5857 * config.gcc: Remove support for picochip.
5858 * config/picochip/constraints.md: Remove.
5859 * config/picochip/dfa_space.md: Remove.
5860 * config/picochip/dfa_speed.md: Remove.
5861 * config/picochip/picochip-protos.h: Remove.
5862 * config/picochip/picochip.c: Remove.
5863 * config/picochip/picochip.h: Remove.
5864 * config/picochip/picochip.md: Remove.
5865 * config/picochip/picochip.opt: Remove.
5866 * config/picochip/predicates.md: Remove.
5867 * config/picochip/t-picochip: Remove.
5868 * doc/md.texi: Don't document picochi.
5869
5870 2014-09-08 David Malcolm <dmalcolm@redhat.com>
5871
5872 * basic-block.h (control_flow_insn_p): Strengthen param from
5873 const_rtx to const rtx_insn *.
5874 * cfgbuild.c (control_flow_insn_p): Likewise.
5875
5876 2014-09-08 David Malcolm <dmalcolm@redhat.com>
5877
5878 * gcse.c (modify_mem_list): Strengthen this variable from
5879 vec<rtx> * to vec<rtx_insn *> *.
5880 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
5881 vec<rtx_insn *>.
5882 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
5883 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
5884 (record_last_mem_set_info): Strengthen param "insn" from rtx to
5885 rtx_insn *.
5886 (record_last_set_info): Likewise for local "last_set_insn".
5887
5888 2014-09-08 DJ Delorie <dj@redhat.com>
5889
5890 * doc/invoke.texi (MSP430 Options): Add -minrt.
5891
5892 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5893
5894 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
5895 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
5896 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
5897 handling SH_SPLAT.
5898 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
5899 of extracted lane.
5900 (adjust_splat): New function.
5901 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
5902 (dump_swap_insn_table): Add case for SH_SPLAT.
5903
5904 2014-09-08 Richard Biener <rguenther@suse.de>
5905
5906 PR ipa/63196
5907 * tree-inline.c (copy_loops): The source loop header should
5908 always be non-NULL.
5909 (tree_function_versioning): If loops need fixup after removing
5910 unreachable blocks fix them.
5911 * omp-low.c (simd_clone_adjust): Do not add incr block to
5912 loop under construction.
5913
5914 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
5915
5916 * config/aarch64/aarch64-builtins.c
5917 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
5918
5919 2014-09-08 Joseph Myers <joseph@codesourcery.com>
5920
5921 * config/i386/cygming.h (TF_SIZE): Remove.
5922 * config/i386/darwin.h (TF_SIZE): Remove.
5923 * config/i386/dragonfly.h (TF_SIZE): Remove.
5924 * config/i386/freebsd.h (TF_SIZE): Remove.
5925 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
5926 * config/i386/openbsdelf.h (TF_SIZE): Remove.
5927 * config/i386/sol2.h (TF_SIZE): Remove.
5928 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
5929 * config/ia64/linux.h (TF_SIZE): Remove.
5930 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
5931 * doc/tm.texi: Regenerate.
5932 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
5933
5934 2014-09-08 Joseph Myers <joseph@codesourcery.com>
5935
5936 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5937 Remove.
5938 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
5939 Remove.
5940 * doc/tm.texi: Regenerate.
5941 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
5942 Poison.
5943 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
5944 * config/cris/cris.h (__make_dp): Remove.
5945
5946 2014-09-08 Richard Biener <rguenther@suse.de>
5947
5948 PR bootstrap/63204
5949 * cfgloop.c (mark_loop_for_removal): Track former header
5950 unconditionally.
5951 * cfgloop.h (struct loop): Add former_header member unconditionally.
5952 * loop-init.c (fix_loop_structure): Enable bogus loop removal
5953 diagnostic unconditionally.
5954
5955 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
5956
5957 PR target/63190
5958 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
5959 constraint for operand0 and remove write only modifier from operand3.
5960
5961 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
5962
5963 PR rtl-optimization/62208
5964 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
5965 rather than const0_rtx in eq/ne-xor simplifications.
5966
5967 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
5968
5969 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
5970 (arc_output_mi_thunk): Likewise.
5971
5972 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
5973 arguments to silence bogus warning.
5974
5975 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
5976
5977 PR middle-end/63171
5978 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
5979
5980 2014-09-06 Tom de Vries <tom@codesourcery.com>
5981
5982 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
5983 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
5984 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
5985
5986 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
5987
5988 PR target/63188
5989 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
5990 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
5991
5992 2014-09-05 Easwaran Raman <eraman@google.com>
5993
5994 PR rtl-optimization/62146
5995 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
5996 hoisted instruction unconditional.
5997
5998 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
5999
6000 PR target/63187
6001 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6002 Do not allow any_mask_operand for operands[2].
6003 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6004
6005 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6006
6007 * config/arc/arc.c (arc_print_operand): Use insn method of
6008 final_sequence for type-safety.
6009 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6010 "insn" from rtx to rtx_insn *.
6011 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6012 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6013 Likewise for locals "branch", "label".
6014 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6015 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
6016 (same_cmp_following_p): Likewise for locals "i2", "i3".
6017 * config/sh/sh_optimize_sett_clrt.cc
6018 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6019 param "cbranch_insn".
6020 * function.c (convert_jumps_to_returns): Likewis for local "jump".
6021 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6022 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6023 const rtx_insn *.
6024 (condjump_p): Likewise.
6025 (condjump_in_parallel_p): Likewise.
6026 (pc_set): Likewise.
6027 (any_uncondjump_p): Likewise.
6028 (any_condjump_p): Likewise.
6029 (condjump_label): Likewise.
6030 (returnjump_p): Strengthen param "insn" from rtx to
6031 const rtx_insn *.
6032 (onlyjump_p): Strengthen param "insn" from const_rtx to
6033 const rtx_insn *.
6034 (jump_to_label_p): Likewise.
6035 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6036 (invert_jump): Likewise.
6037 * reorg.c (simplejump_or_return_p): Add checked cast when calling
6038 simplejump_p.
6039 (get_jump_flags): Strengthen param "insn" from rtx to
6040 const rtx_insn *.
6041 (get_branch_condition): Likewise.
6042 (condition_dominates_p): Likewise.
6043 (make_return_insns): Move declaration of local "pat" earlier, to
6044 after we've handled NONJUMP_INSN_P and non-sequences, using its
6045 methods to simplify the code and for type-safety.
6046 * rtl.h (find_constant_src): Strengthen param from const_rtx to
6047 const rtx_insn *.
6048 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6049 (condjump_p): Strengthen param from const_rtx to
6050 const rtx_insn *.
6051 (any_condjump_p): Likewise.
6052 (any_uncondjump_p): Likewise.
6053 (pc_set): Likewise.
6054 (condjump_label): Likewise.
6055 (simplejump_p): Likewise.
6056 (returnjump_p): Likewise.
6057 (onlyjump_p): Likewise.
6058 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6059 (invert_jump): Likewise.
6060 (condjump_in_parallel_p): Strengthen param from const_rtx to
6061 const rtx_insn *.
6062 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6063 to const rtx_insn *.
6064 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6065 to const rtx_insn *.
6066 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6067
6068 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6069
6070 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6071 above the conditional, and convert the check on GET_CODE to a
6072 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6073 the conditional. Simplify the conditional by using methods of
6074 "trial_seq".
6075
6076 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6077
6078 * haifa-sched.c (check_clobbered_conditions): Strengthen local
6079 "link" from rtx to rtx_insn_list *, and use its methods for
6080 clarity and type-safety.
6081 (toggle_cancelled_flags): Likewise.
6082 (restore_last_backtrack_point): Likewise.
6083 (queue_to_ready): Use insn method of "link" in one place.
6084 (schedule_block): Strengthen local "link" from rtx to
6085 rtx_insn_list *, and use its methods for clarity and type-safety.
6086
6087 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6088
6089 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6090 param "insn" from const_rtx to const rtx_insn *.
6091 (sched_get_reverse_condition_uncached): Likewise.
6092 (sched_get_condition_with_rev): Likewise.
6093 (sched_has_condition_p): Likewise.
6094 (sched_insns_conditions_mutex_p): Likewise for both params.
6095 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6096 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6097 (setup_insn_reg_uses): Move local "list" to be more tightly
6098 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
6099 its methods for clarity and type-safety.
6100 (sched_analyze_1): Strengthen local "pending" from rtx to
6101 rtx_insn_list *, and local "pending_mem" from rtx to
6102 rtx_expr_list *. Use methods of each for clarity and type-safety.
6103 (sched_analyze_2): Likewise.
6104 (sched_analyze_insn): Likewise.
6105
6106 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
6107 param from const_rtx to const rtx_insn *.
6108 (sched_insns_conditions_mutex_p): Likewise for both params.
6109 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
6110 param.
6111
6112 * system.h (CONST_CAST_RTX_INSN): New macro.
6113
6114 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6115
6116 * recog.c (peep2_attempt): Strengthen return type from rtx to
6117 rtx_insn *.
6118 (peep2_update_life): Likewise for params "last", "prev", removing
6119 a checked cast made redundant by this.
6120 (peephole2_optimize): Likewise for local "last".
6121
6122 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6123
6124 * basic-block.h (set_block_for_insn): Eliminate this macro in
6125 favor of...
6126 * rtl.h (set_block_for_insn): New inline function, imposing the
6127 requirement that the "insn" param is an rtx_insn *.
6128
6129 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6130
6131 * caller-save.c (setup_save_areas): Strengthen local "insn" from
6132 rtx to rtx_insn *.
6133 * final.c (get_call_reg_set_usage): Likewise for first param,
6134 eliminating a checked cast.
6135 * regs.h (get_call_reg_set_usage): Likewise for first param.
6136 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
6137 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
6138 cast, replacing references to "x" with "call_insn" where
6139 appropriate.
6140 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
6141 rtx_insn *, adding a checked cast.
6142
6143 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6144
6145 * output.h (final_scan_insn): Strengthen first param from rtx to
6146 rtx_insn *.
6147
6148 * final.c (final_scan_insn): Likewise, renaming it back from
6149 "uncast_insn" to "insn", eliminating the checked cast.
6150
6151 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
6152 "vec" with an rtx_sequence * "seq", taking a copy of
6153 "final_sequence", and using methods of "seq" for clarity, and for
6154 type-safety in the calls to final_scan_insn.
6155 * config/mips/mips.c (mips_output_conditional_branch): Use methods
6156 of "final_sequence" for clarity, and for type-safety in the call to
6157 final_scan_insn.
6158 * config/sh/sh.c (print_slot): Strengthen param from rtx to
6159 rtx_sequence * and rename from "insn" to "seq".
6160
6161 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6162
6163 * jump.c (delete_related_insns): Introduce a new local "table" by
6164 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
6165 get_labels method of "table" to simplify access to the labels in
6166 the jump table.
6167
6168 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6169
6170 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
6171 f_minmaxs, f_minmaxd types.
6172
6173 2014-09-05 Richard Biener <rguenther@suse.de>
6174
6175 * cfgloop.c (mark_loop_for_removal): Record former header
6176 when ENABLE_CHECKING.
6177 * cfgloop.h (strut loop): Add former_header member when
6178 ENABLE_CHECKING.
6179 * loop-init.c (fix_loop_structure): Sanity check loops
6180 marked for removal if they re-appeared.
6181
6182 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6183
6184 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
6185 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
6186
6187 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
6188 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
6189 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
6190 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
6191 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
6192 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
6193 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
6194 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
6195 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
6196 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
6197 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
6198 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
6199 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
6200 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
6201 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
6202 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
6203 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
6204 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
6205 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
6206 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
6207 with int{32,16,8}_t.
6208
6209 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6210
6211 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
6212 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
6213 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
6214 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
6215 Remove temporary __asm__ and reimplement.
6216
6217 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6218
6219 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
6220 handling cmge, cmgt, cmeq, cmtst.
6221
6222 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
6223 cmlt, cmgeu, cmgtu, cmtst): Remove.
6224
6225 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
6226 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
6227 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
6228 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
6229
6230 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6231
6232 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
6233 TYPES_TST): Define.
6234 (aarch64_fold_builtin): Update pattern for cmtst.
6235
6236 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
6237 Declare.
6238
6239 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
6240
6241 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
6242 Switch operands, separate out more cases, refactor.
6243
6244 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
6245
6246 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
6247 argument; rename old version to...
6248 (aarch64_const_vec_all_same_in_range_p): ...this.
6249 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
6250
6251 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
6252
6253 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6254
6255 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
6256 Remove qualifier_const_pointer, update comment.
6257
6258 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6259
6260 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
6261
6262 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6263
6264 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
6265 varargs with pointer parameter.
6266 (aarch64_simd_expand_builtin): pass pointer into previous.
6267
6268 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6269
6270 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
6271 alus_ext.
6272
6273 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
6274
6275 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
6276 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
6277 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
6278 Replace temporary asm with call to builtin.
6279 (vrbit_p8, vrbitq_p8): New functions.
6280
6281 2014-09-05 Richard Biener <rguenther@suse.de>
6282
6283 * cfgloop.c (mark_loop_for_removal): New function.
6284 * cfgloop.h (mark_loop_for_removal): Declare.
6285 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
6286 (merge_blocks): Likewise.
6287 (duplicate_block): Likewise.
6288 * except.c (sjlj_emit_dispatch_table): Likewise.
6289 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
6290 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
6291 (thread_through_loop_header): Likewise.
6292
6293 2014-09-05 Richard Biener <rguenther@suse.de>
6294
6295 PR middle-end/63148
6296 * fold-const.c (try_move_mult_to_index): Remove.
6297 (fold_binary_loc): Do not call it.
6298 * tree-data-ref.c (dr_analyze_indices): Strip conversions
6299 from the base object again.
6300
6301 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
6302
6303 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
6304 DImode.
6305
6306 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6307
6308 PR target/55701
6309 * config/arm/arm.md (setmem): New pattern.
6310 * config/arm/arm-protos.h (struct tune_params): New fields.
6311 (arm_gen_setmem): New prototype.
6312 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
6313 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
6314 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
6315 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
6316 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
6317 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
6318 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
6319 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
6320 (arm_const_inline_cost): New function.
6321 (arm_block_set_max_insns): New function.
6322 (arm_block_set_non_vect_profit_p): New function.
6323 (arm_block_set_vect_profit_p): New function.
6324 (arm_block_set_unaligned_vect): New function.
6325 (arm_block_set_aligned_vect): New function.
6326 (arm_block_set_unaligned_non_vect): New function.
6327 (arm_block_set_aligned_non_vect): New function.
6328 (arm_block_set_vect, arm_gen_setmem): New functions.
6329
6330 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6331
6332 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
6333
6334 2014-09-05 Bin Cheng <bin.cheng@arm.com>
6335
6336 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
6337
6338 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6339
6340 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
6341 an rtx.
6342 * valtrack.h: Adjust.
6343
6344 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6345
6346 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
6347 an rtx.
6348 (emit_jump_insn_before_noloc): Likewise.
6349 (emit_call_insn_before_noloc): Likewise.
6350 (emit_label_before): Likewise.
6351 (emit_label_after): Likewise.
6352 (emit_insn_before_setloc): Likewise.
6353 (emit_jump_insn_before_setloc): Likewise.
6354 (emit_call_insn_before_setloc): Likewise.
6355 (emit_call_insn_before): Likewise.
6356 * rtl.h: Adjust.
6357
6358 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6359
6360 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
6361 rtx_insn *, eliminating a checked cast.
6362
6363 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6364
6365 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
6366 const_rtx to const rtx_insn *.
6367 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
6368 cast.
6369
6370 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6371
6372 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
6373 fixup_args_size_notes.
6374 * expr.c (fixup_args_size_notes): Strengthen first two params from
6375 rtx to rtx_insn *, eliminating a checked cast.
6376 * rtl.h (fixup_args_size_notes): Strengthen first two params from
6377 rtx to rtx_insn *.
6378
6379 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6380
6381 * haifa-sched.c (get_ready_element): Strengthen return type from
6382 rtx to rtx_insn *.
6383 * sched-int.h (get_ready_element): Likewise.
6384
6385 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
6386
6387 PR target/63165
6388 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
6389 indexed_or_indirect_operand instead of memory_operand.
6390 (floatsi<mode>2_lfiwzx_mem): Ditto.
6391
6392 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6393
6394 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
6395 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
6396 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
6397
6398 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
6399
6400 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
6401 rtx.
6402 (get_last_nonnote_insn): Likewise.
6403 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
6404 * resource.c (find_basic_block): Likewise.
6405 * rtl.h: Adjust.
6406 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
6407 const_rtx.
6408
6409 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6410
6411 * genattr.c (main): Within the prototype of insn_latency written
6412 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
6413 * genautomata.c (output_internal_maximal_insn_latency_func):
6414 Within the implementation of insn_latency written out to
6415 insn-automata.c, strengthen both params from rtx to rtx_insn *,
6416 eliminating a pair of checked casts.
6417
6418 2014-09-04 David Malcolm <dmalcolm@redhat.com>
6419
6420 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
6421 rtx_insn *.
6422
6423 * rtl.h (eh_returnjump_p): Likewise.
6424
6425 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
6426
6427 * Makefile.in (TAGS): Handle constructs in timevar.def.
6428
6429 2014-09-04 Guozhi Wei <carrot@google.com>
6430
6431 PR target/62040
6432 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
6433 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
6434 it into two patterns.
6435 (move_lo_quad_internal_be_<mode>): Likewise.
6436
6437 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
6438
6439 * doc/options.texi: Document that Var and Init are required if CPP
6440 is given.
6441 * optc-gen.awk: Require Var and Init if CPP is given.
6442 * common.opt (Wpedantic): Use Init.
6443
6444 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6445
6446 * config/rs6000/rs6000.c (special_handling_values): Add
6447 SH_EXTRACT.
6448 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
6449 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
6450 as swappable with special handling SH_EXTRACT. Remove
6451 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
6452 optimization.
6453 (adjust_extract): New function.
6454 (handle_special_swappables): Add default to case statement; add
6455 case for SH_EXTRACT that calls adjust_extract.
6456 (dump_swap_insn_table): Handle SH_EXTRACT.
6457
6458 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6459
6460 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
6461 selection of 0th memory doubleword, regardless of endianness.
6462
6463 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6464
6465 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
6466
6467 2014-09-04 Alan Modra <amodra@gmail.com>
6468
6469 PR debug/60655
6470 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
6471 can't be output.
6472
6473 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
6474
6475 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
6476 * targhooks.c (default_dwarf_frame_reg_mode): New function.
6477 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
6478 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
6479 * doc/tm.texi: Regenerate.
6480 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
6481 selection logic to default_dwarf_frame_reg_mode.
6482
6483 2014-09-03 Marek Polacek <polacek@redhat.com>
6484
6485 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
6486 by -Wall.
6487
6488 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6489
6490 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
6491 the automodified register.
6492
6493 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
6494
6495 * output.h (get_some_local_dynamic_name): Declare.
6496 * final.c (some_local_dynamic_name): New variable.
6497 (get_some_local_dynamic_name): New function.
6498 (final_end_function): Clear some_local_dynamic_name.
6499 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
6500 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6501 (print_operand): Report an error if '%&' is used inappropriately.
6502 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
6503 (get_some_local_dynamic_name_1): Delete.
6504 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
6505 (rs6000_get_some_local_dynamic_name): Delete.
6506 (rs6000_get_some_local_dynamic_name_1): Delete.
6507 (print_operand): Report an error if '%&' is used inappropriately.
6508 * config/s390/s390.c (machine_function): Remove some_ld_name.
6509 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6510 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
6511 * config/sparc/sparc.c: Include rtl-iter.h.
6512 (machine_function): Remove some_ld_name.
6513 (sparc_print_operand): Report an error if '%&' is used inappropriately.
6514 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
6515
6516 2014-09-03 Richard Henderson <rth@redhat.com>
6517
6518 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
6519 (aarch64_popwb_pair_reg): Remove.
6520 (aarch64_set_frame_expr): Remove.
6521 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
6522 the restore ops performed by the insns generated.
6523 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
6524 insn. Perform the calls_eh_return addition later; do not attempt to
6525 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
6526 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
6527 special markup at all. Load cfun->machine->frame.hard_fp_offset
6528 into a local variable.
6529 (aarch64_frame_pointer_required): Don't check calls_alloca.
6530
6531 2014-09-03 Richard Biener <rguenther@suse.de>
6532
6533 * opts.c (default_options_optimization): Adjust
6534 max-combine-insns to 2 for -Og.
6535
6536 2014-09-03 Martin Jambor <mjambor@suse.cz>
6537
6538 PR ipa/62015
6539 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
6540 pass-trough jump functions correctly.
6541
6542 2014-09-03 Martin Jambor <mjambor@suse.cz>
6543
6544 PR ipa/61986
6545 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
6546 created replacements in ascending order of offsets.
6547 (known_aggs_to_agg_replacement_list): Likewise.
6548
6549 2014-09-03 Martin Liska <mliska@suse.cz>
6550
6551 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
6552 is set to set uninitialized value for vnresult.
6553
6554 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6555
6556 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
6557 for TARGET_MUST_PASS_IN_STACK.
6558
6559 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6560
6561 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
6562 for TARGET_ARG_PARTIAL_BYTES.
6563
6564 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6565
6566 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
6567 instructions for varargs implementation.
6568 (nds32_expand_epilogue): Emit stack adjustment instructions for
6569 varargs implementation.
6570
6571 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6572
6573 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
6574 optimization detection.
6575
6576 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6577
6578 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
6579 arguments.
6580 (nds32_function_arg_advance): Deal with nameless arguments.
6581 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
6582 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
6583 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
6584
6585 2014-09-03 Richard Biener <rguenther@suse.de>
6586
6587 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
6588 (struct bb_bitmap_sets): Remove deferred member.
6589 (BB_DEFERRED): Remove.
6590 (defer_or_phi_translate_block): Remove.
6591 (compute_antic_aux): Remove deferring of blocks, assert
6592 proper iteration order.
6593 (compute_antic): Do not set BB_DEFERRED.
6594 (eliminate): Allocate el_avail of proper size initially.
6595
6596 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6597
6598 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
6599 according to the value of crtl->args.pretend_args_size.
6600
6601 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6602
6603 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
6604 varargs information.
6605
6606 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6607
6608 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
6609 implementation for TARGET_SETUP_INCOMING_VARARGS.
6610 (nds32_strict_argument_naming): Refine comment.
6611 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
6612 Define for future implementation.
6613
6614 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
6615
6616 * config/i386/adxintrin.h (_subborrow_u32): New.
6617 (_addcarry_u32): Ditto.
6618 (_subborrow_u64): Ditto.
6619 (_addcarry_u64): Ditto.
6620 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
6621 IX86_BUILTIN_SBB64.
6622 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
6623 __builtin_ia32_sbb_u64
6624
6625 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6626
6627 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
6628 GPR-specific stuff.
6629 (nds32_function_arg_advance): Likewise.
6630 (nds32_init_cumulative_args): Likewise.
6631 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
6632 (NDS32_FIRST_GPR_REGNUM): Define.
6633 (NDS32_LAST_GPR_REGNUM): Define.
6634 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
6635 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6636 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
6637 (machine_function): Use GRP-specific stuff.
6638
6639 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6640
6641 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
6642 (nds32_expand_epilogue): Likewise.
6643 (nds32_expand_prologue_v3push): Likewise.
6644 (nds32_expand_epilogue_v3pop): Likewise.
6645
6646 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6647
6648 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
6649 v3push/v3pop for variadic function.
6650 * config/nds32/nds32.md (prologue, epilogue): Likewise.
6651
6652 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6653
6654 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
6655 Check rtx for varargs implementation.
6656 (nds32_output_stack_pop): Likewise.
6657 * config/nds32/nds32-protos.h: Have a rtx argument for
6658 nds32_output_stack_push and nds32_output_stack_pop.
6659 * config/nds32/nds32.md: Likewise.
6660
6661 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6662
6663 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
6664 to check if FUNC is an interrupt service routine.
6665 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
6666
6667 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6668
6669 * config/nds32/nds32.h (machine_function): Add some fields for variadic
6670 arguments implementation.
6671
6672 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6673
6674 * config/nds32/nds32-predicates.c
6675 (nds32_valid_stack_push_pop): Rename to ...
6676 (nds32_valid_stack_push_pop_p): ... this.
6677 * config/nds32/nds32-protos.h: Likewise.
6678 * config/nds32/predicates.md: Likewise.
6679
6680 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6681
6682 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
6683 (nds32_emit_stack_v3push): ... this.
6684 (nds32_gen_stack_v3pop): Rename to ...
6685 (nds32_emit_stack_v3pop): ... this and consider CFA restore
6686 information.
6687
6688 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6689
6690 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
6691 (nds32_emit_stack_push_multiple): ... this.
6692 (nds32_gen_stack_pop_multiple): Rename to ...
6693 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
6694 information.
6695
6696 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6697
6698 PR target/61078
6699 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
6700 and add a second splitter to handle the remaining cases.
6701
6702 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
6703
6704 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
6705
6706 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6707
6708 * cfgexpand.c (label_rtx_for_bb): Change type to
6709 hash_map<basic_block, rtx_code_label *> *.
6710 (expand_gimple_basic_block): Adjust.
6711 (pass_expand::execute): Likewise.
6712
6713 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6714
6715 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
6716 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
6717 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
6718 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
6719 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
6720 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
6721 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
6722 of rtx.
6723
6724 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
6725
6726 * alloc-pool.c: Include coretypes.h.
6727 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
6728 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
6729 hash_set instead of htab.
6730 * ggc-page.c (in_gc): New variable.
6731 (ggc_free): Do nothing if a collection is taking place.
6732 (ggc_collect): Set in_gc appropriately.
6733 * ggc.h (gt_ggc_mx(const char *)): New function.
6734 (gt_pch_nx(const char *)): Likewise.
6735 (gt_ggc_mx(int)): Likewise.
6736 (gt_pch_nx(int)): Likewise.
6737 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
6738 (hash_map::hash_entry::pch_nx): Likewise.
6739 (hash_map::hash_entry::pch_nx_helper): Likewise.
6740 (hash_map::hash_map): Adjust.
6741 (hash_map::create_ggc): New function.
6742 (gt_ggc_mx): Likewise.
6743 (gt_pch_nx): Likewise.
6744 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
6745 (default_hashset_traits::pch_nx): Likewise.
6746 (hash_set::hash_entry::ggc_mx): Likewise.
6747 (hash_set::hash_entry::pch_nx): Likewise.
6748 (hash_set::hash_entry::pch_nx_helper): Likewise.
6749 (hash_set::hash_set): Adjust.
6750 (hash_set::create_ggc): New function.
6751 (hash_set::elements): Likewise.
6752 (gt_ggc_mx): Likewise.
6753 (gt_pch_nx): Likewise.
6754 * hash-table.h (hash_table::hash_table): Adjust.
6755 (hash_table::m_ggc): New member.
6756 (hash_table::~hash_table): Adjust.
6757 (hash_table::expand): Likewise.
6758 (hash_table::empty): Likewise.
6759 (gt_ggc_mx): New function.
6760 (hashtab_entry_note_pointers): Likewise.
6761 (gt_pch_nx): Likewise.
6762
6763 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6764
6765 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
6766 built-in definition.
6767 (XVCVUXDDP_SCALE): Likewise.
6768 (XVCVDPSXDS_SCALE): Likewise.
6769 (XVCVDPUXDS_SCALE): Likewise.
6770 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6771 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
6772 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
6773 VSX_BUILTIN_XVCVDPUXDS_SCALE.
6774 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
6775 prototype.
6776 * config/rs6000/rs6000.c (real.h): New include.
6777 (rs6000_scale_v2df): New function.
6778 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
6779 (UNSPEC_VSX_XVCVUXDDP): Likewise.
6780 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
6781 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
6782 (vsx_xvcvsxddp_scale): New define_expand.
6783 (vsx_xvcvsxddp): New define_insn.
6784 (vsx_xvcvuxddp_scale): New define_expand.
6785 (vsx_xvcvuxddp): New define_insn.
6786 (vsx_xvcvdpsxds_scale): New define_expand.
6787 (vsx_xvcvdpsxds): New define_insn.
6788 (vsx_xvcvdpuxds_scale): New define_expand.
6789 (vsx_xvcvdpuxds): New define_insn.
6790 * doc/extend.texi (vec_ctf): Add new prototypes.
6791 (vec_cts): Likewise.
6792 (vec_ctu): Likewise.
6793 (vec_splat): Likewise.
6794 (vec_div): Likewise.
6795 (vec_mul): Likewise.
6796
6797 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6798
6799 PR target/62275
6800 * config/arm/neon.md
6801 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
6802 <v_cmp_result>): New pattern.
6803 * config/arm/iterators.md (NEON_VCVT): New int iterator.
6804 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
6805 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
6806 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
6807 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
6808 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
6809
6810 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6811
6812 PR target/62275
6813 * config/arm/iterators.md (FIXUORS): New code iterator.
6814 (VCVT): New int iterator.
6815 (su_optab): New code attribute.
6816 (su): Likewise.
6817 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
6818
6819 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6820
6821 * config/aarch64/predicates.md (aarch64_comparison_operation):
6822 New special predicate.
6823 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
6824 aarch64_comparison_operation instead of matching an operator.
6825 Update operand numbers.
6826 (csinc3<mode>_insn): Likewise.
6827 (*csinv3<mode>_insn): Likewise.
6828 (*csneg3<mode>_insn): Likewise.
6829 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
6830 * config/aarch64/aarch64.c (aarch64_get_condition_code):
6831 Return -1 instead of aborting on invalid condition codes.
6832 (aarch64_print_operand): Update aarch64_get_condition_code callsites
6833 to assert that the returned condition code is valid.
6834 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
6835
6836 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
6837
6838 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
6839 tree.def, and gimple.def
6840
6841 2014-09-02 Jakub Jelinek <jakub@redhat.com>
6842 Balaji V. Iyer <balaji.v.iyer@intel.com>
6843 Igor Zamyatin <igor.zamyatin@intel.com>
6844
6845 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
6846 (__cilkrts_cilk_for_64): Likewise.
6847 * cilk-common.c (declare_cilk_for_builtin): New function.
6848 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
6849 __cilkrts_cilk_for_64 bultins.
6850 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
6851 CILK_TI_F_LOOP_64.
6852 (cilk_for_32_fndecl): New define.
6853 (cilk_for_64_fndecl): Likewise.
6854 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
6855 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
6856 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
6857 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
6858 GF_OMP_FOR_COMBINED_INTO.
6859 * gimplify.c (gimplify_scan_omp_clauses): Added
6860 OMP_CLAUSE__CILK_FOR_COUNT_ case.
6861 (gimplify_adjust_omp_clauses): Ditto.
6862 (gimplify_omp_for): Added CILK_FOR case.
6863 (gimplify_expr): Ditto.
6864 * omp-low.c: Include cilk.h.
6865 (extract_omp_for_data): Set appropriate kind for
6866 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
6867 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
6868 (create_omp_child_function_name): Added second argument to handle
6869 cilk_for case.
6870 (cilk_for_check_loop_diff_type): New function.
6871 (expand_cilk_for_call): Likewise.
6872 (expand_cilk_for): Likewise.
6873 (create_omp_child_function): Set cilk_for_count; handle the cases when
6874 it is true; call create_omp_child_function_name with second argument.
6875 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
6876 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
6877 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
6878 * tree-nested.c (convert_nonlocal_omp_clauses): Added
6879 OMP_CLAUSE__CILK_FOR_COUNT_ case.
6880 (convert_local_omp_clauses): Ditto.
6881 * tree-pretty-print.c (dump_omp_clause): Added
6882 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
6883 (dump_generic_node): Added CILK_FOR case.
6884 * tree.c (omp_clause_num_ops): New element
6885 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
6886 (omp_clause_code_name): New element _Cilk_for_count_.
6887 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
6888 * tree.def: Add tree code for CILK_FOR.
6889
6890 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6891
6892 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
6893 (ppc403-compare): Add "exts with dot" case.
6894 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
6895 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
6896 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
6897 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
6898 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
6899 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
6900 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
6901 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
6902 cell-cmp-microcoded): Similarly.
6903 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
6904 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
6905 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
6906 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
6907 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
6908 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
6909 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
6910 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
6911 (power6-compare): Add "exts with dot" case.
6912 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
6913 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
6914 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
6915
6916 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
6917 if avoiding Cell microcode.
6918 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
6919 (is_cracked_insn): Ditto.
6920 (insn_must_be_first_in_group): Ditto.
6921 * config/rs6000/rs6000.md (dot): Adjust comment.
6922 (cell_micro): Handle exts+dot.
6923 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
6924 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
6925 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
6926 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
6927 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
6928 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
6929 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
6930
6931 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6932
6933 * config/rs6000/rs6000.md (QHSI): Delete.
6934 (EXTQI, EXTHI, EXTSI): New mode iterators.
6935 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
6936 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
6937 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
6938 9 anonymous instructions, and 8 splitters): Delete.
6939 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
6940 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
6941 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
6942 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
6943 *zero_extendsi<mode>2_dot2): New.
6944
6945 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6946
6947 * config/rs6000/rs6000.md (any_extend): New code iterator.
6948 (u, su): New code attributes.
6949 (dmode, DMODE): New mode attributes.
6950 (<su>mul<mode>3_highpart): New.
6951 (*<su>mul<mode>3_highpart): New.
6952 (<su>mulsi3_highpart_le): New.
6953 (<su>muldi3_highpart_le): New.
6954 (<su>mulsi3_highpart_64): New.
6955 (<u>mul<mode><dmode>3): New.
6956 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
6957 splitters): Delete.
6958 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
6959 splitters): Delete.
6960
6961 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
6962
6963 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
6964 *mulsi3_internal2, and two splitters): Delete.
6965 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
6966 Delete.
6967 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
6968
6969 2014-09-02 Richard Biener <rguenther@suse.de>
6970
6971 PR tree-optimization/62695
6972 * tree-ssa-structalias.c (find_func_clobbers): Add missing
6973 vector truncate.
6974
6975 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
6976
6977 PR target/62312
6978 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
6979
6980 2014-09-01 Andi Kleen <ak@linux.intel.com>
6981
6982 * file-find.c (add_prefix_begin): Add.
6983 (do_add_prefix): Rename from add_prefix with first argument.
6984 (add_prefix): Add new wrapper.
6985 * file-find.h (add_prefix_begin): Add.
6986 * gcc-ar.c (main): Support -B option.
6987
6988 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
6989
6990 * genemit.c: Include dumpfile.h.
6991 (gen_split): Print name of splitter function to dump file.
6992
6993 2014-09-01 Richard Biener <rguenther@suse.de>
6994
6995 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
6996 Use stack auto_vecs for constraint expressions.
6997 (find_func_aliases_for_call): Likewise.
6998 (find_func_aliases): Likewise.
6999 (find_func_clobbers): Likewise.
7000
7001 2014-09-01 Richard Biener <rguenther@suse.de>
7002
7003 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7004 operands vector in most cases. Remove redundant code.
7005
7006 2014-09-01 Olivier Hainque <hainque@adacore.com>
7007
7008 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7009 $WIND_BASE instead of designating a harcoded arbitrary home dir.
7010 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7011
7012 2014-09-01 Richard Biener <rguenther@suse.de>
7013
7014 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7015 copy_reference_ops_from_call, vn_nary_op_compute_hash,
7016 vn_reference_compute_hash, vn_reference_insert): Remove.
7017 (vn_reference_lookup_call): New function.
7018 * tree-ssa-sccvn.c (vn_reference_compute_hash,
7019 copy_reference_ops_from_ref, copy_reference_ops_from_call,
7020 vn_reference_insert, vn_nary_op_compute_hash): Make static.
7021 (create_reference_ops_from_call): Remove.
7022 (vn_reference_lookup_3): Properly update shared_lookup_references.
7023 (vn_reference_lookup_pieces): Assert that we updated
7024 shared_lookup_references properly.
7025 (vn_reference_lookup): Likewise.
7026 (vn_reference_lookup_call): New function.
7027 (visit_reference_op_call): Use it. Avoid re-building the
7028 reference ops.
7029 (visit_reference_op_load): Remove redundant lookup.
7030 (visit_reference_op_store): Perform special tail-merging work
7031 only when possibly doing tail-merging.
7032 (visit_use): Likewise.
7033 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7034
7035 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7036
7037 PR target/62025
7038 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7039 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7040 (find_inc): Revert 2014-08-13 change.
7041
7042 2014-09-01 Marek Polacek <polacek@redhat.com>
7043
7044 PR middle-end/61903
7045 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7046 Change the type of V to unsigned HOST_WIDE_INT.
7047
7048 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7049
7050 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7051 the size of byte markers.
7052 (do_shift_rotate): Fix confusion between host, target and marker byte
7053 size.
7054 (verify_symbolic_number_p): Likewise.
7055 (find_bswap_or_nop_1): Likewise.
7056 (find_bswap_or_nop): Likewise.
7057
7058 2014-09-01 Olivier Hainque <hainque@adacore.com>
7059
7060 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7061 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7062
7063 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7064
7065 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7066 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7067 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7068
7069 2014-09-01 Yury Gribov <y.gribov@samsung.com>
7070
7071 PR sanitizer/61897
7072 PR sanitizer/62140
7073 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7074 (build_check_stmt): Likewise.
7075 (instrument_strlen_call): Likewise.
7076 (asan_expand_check_ifn): Likewise and fix types.
7077 (maybe_cast_to_ptrmode): New function.
7078
7079 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7080
7081 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7082
7083 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
7084
7085 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7086
7087 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
7088
7089 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7090 prefix to function labels when generating fast indirect calls.
7091
7092 2014-08-30 David Malcolm <dmalcolm@redhat.com>
7093
7094 PR bootstrap/62304
7095
7096 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7097 param back from rtx_insn * to rtx. Rename param from "label" to
7098 "label_or_return", reintroducing "label" as an rtx_insn * after
7099 we've ensured it's not a RETURN.
7100 (first_active_target_insn): Likewise for return type and param;
7101 add a checked cast to rtx_insn * once we've ensured "insn" is not
7102 a RETURN.
7103 (steal_delay_list_from_target): Convert param "pnew_thread" back
7104 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
7105 with JUMP_LABEL.
7106 (own_thread_p): Convert param "thread" back from an rtx_insn * to
7107 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
7108 cast once we've established we're not dealing with a RETURN,
7109 renaming subsequent uses of "thread" to "thread_insn".
7110 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
7111 to JUMP_LABEL.
7112 (follow_jumps): Convert return type and param "label" from
7113 rtx_insn * back to rtx. Move initialization of "value" to after
7114 the handling for ANY_RETURN_P, adding a checked cast there to
7115 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
7116 rename to "this_label_or_return", reintroducing "this_label" as
7117 an rtx_insn * once we've handled the case where it could be an
7118 ANY_RETURN_P.
7119 (fill_slots_from_thread): Rename param "thread" to
7120 "thread_or_return", converting from an rtx_insn * back to an rtx.
7121 Reintroduce name "thread" as an rtx_insn * local with a checked
7122 cast once we've handled the case of it being an ANY_RETURN_P.
7123 Convert local "new_thread" from an rtx_insn * back to an rtx.
7124 Add a checked cast when assigning to "trial" from "new_thread".
7125 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
7126 checked cast to rtx_insn * from "new_thread" when invoking
7127 get_label_before.
7128 (fill_eager_delay_slots): Convert locals "target_label",
7129 "insn_at_target" from rtx_insn * back to rtx.
7130 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
7131 (relax_delay_slots): Convert locals "trial", "target_label" from
7132 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
7133 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
7134 invoking update_block.
7135 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
7136 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
7137
7138 * resource.h (mark_target_live_regs): Undo erroneous conversion
7139 of second param of r214693, converting it back from rtx_insn * to
7140 rtx, since it could be a RETURN.
7141
7142 * resource.c (find_dead_or_set_registers): Similarly, convert
7143 param "jump_target" back from an rtx_insn ** to an rtx *, as we
7144 could be writing back a RETURN. Rename local rtx_insn * "next" to
7145 "next_insn", and introduce "lab_or_return" as a local rtx,
7146 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
7147 (mark_target_live_regs): Undo erroneous conversion
7148 of second param of r214693, converting it back from rtx_insn * to
7149 rtx, since it could be a RETURN. Rename it from "target" to
7150 "target_maybe_return", reintroducing the name "target" as a local
7151 rtx_insn * with a checked cast, after we've handled the case of
7152 ANY_RETURN_P.
7153
7154 2014-08-29 DJ Delorie <dj@redhat.com>
7155
7156 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
7157 pointer size up to a power of two.
7158 * defaults.h (DWARF2_ADDR_SIZE): Round up.
7159 (POINTER_SIZE_UNITS): New, rounded up value.
7160 * dwarf2asm.c (size_of_encoded_value): Use it.
7161 (dw2_output_indirect_constant_1): Likewise.
7162 * expmed.c (init_expmed_one_conv): We now know the sizes of
7163 partial int modes.
7164 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
7165 * optabs.c (expand_float): Use precision, not size.
7166 (expand_fix): Likewise.
7167 * simplify-rtx (simplify_unary_operation_1): Likewise.
7168 * tree-dfa.c (get_ref_base_and_extent): Likewise.
7169 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
7170 (default_assemble_integer) Likewise.
7171 (dump_tm_clone_pairs): Likewise.
7172 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
7173 * var-tracking.c (adjust_mems): Allow partial-int modes also.
7174 (prepare_call_arguments): Likewise.
7175 * stor-layout.c (finalize_type_size): Preserve precision.
7176 (layout_type): Use precision, not size.
7177
7178 * expr.c (convert_move): If the target has an explicit converter,
7179 use it.
7180
7181 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7182
7183 * gdbinit.in: Skip various inline functions in rtl.h when
7184 stepping.
7185
7186 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
7187
7188 PR bootstrap/62301
7189 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
7190
7191 2014-08-29 Richard Biener <rguenther@suse.de>
7192
7193 PR tree-optimization/62291
7194 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
7195 exactly the vector size needed and use quick_push.
7196 (phi_translate_1): Adjust comment.
7197 (valid_in_sets): Remove block argument and remove pointless
7198 checking of NAMEs.
7199 (dependent_clean): Adjust for removal of block argument.
7200 (clean): Likewise.
7201 (compute_antic_aux): Likewise.
7202 (compute_partial_antic_aux): Likewise.
7203
7204 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7205 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7206 Anna Tikhonova <anna.tikhonova@intel.com>
7207 Ilya Tocar <ilya.tocar@intel.com>
7208 Andrey Turetskiy <andrey.turetskiy@intel.com>
7209 Ilya Verbin <ilya.verbin@intel.com>
7210 Kirill Yukhin <kirill.yukhin@intel.com>
7211 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7212
7213 * config/i386/sse.md
7214 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
7215 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
7216 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
7217 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
7218
7219 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
7220 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
7221 Anna Tikhonova <anna.tikhonova@intel.com>
7222 Ilya Tocar <ilya.tocar@intel.com>
7223 Andrey Turetskiy <andrey.turetskiy@intel.com>
7224 Ilya Verbin <ilya.verbin@intel.com>
7225 Kirill Yukhin <kirill.yukhin@intel.com>
7226 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
7227
7228 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
7229 * config/i386/sse.md
7230 (define_mode_iterator VI4_128_8_256): New.
7231 (define_mode_iterator VI2_128_4_256): Ditto.
7232 (define_mode_iterator PMOV_DST_MODE): Rename into
7233 (define_mode_iterator PMOV_DST_MODE_1): this.
7234 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
7235 Use PMOV_DST_MODE_1 mode iterator.
7236 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7237 Ditto.
7238 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
7239 Ditto.
7240 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
7241 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
7242 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
7243 (define_mode_iterator PMOV_DST_MODE_2): New.
7244 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
7245 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
7246 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
7247 Ditto.
7248 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
7249 (define_mode_attr pmov_dst_3): Ditto.
7250 (define_mode_attr pmov_dst_zeroed_3): Ditto.
7251 (define_mode_attr pmov_suff_3): Ditto.
7252 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
7253 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
7254 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
7255 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
7256 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
7257 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
7258 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
7259 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
7260 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
7261 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
7262 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
7263 (define_mode_attr pmov_dst_4): Ditto.
7264 (define_mode_attr pmov_dst_zeroed_4): Ditto.
7265 (define_mode_attr pmov_suff_4): Ditto.
7266 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
7267 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
7268 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
7269 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
7270 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
7271 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
7272 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
7273 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
7274 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
7275 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
7276 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
7277
7278 2014-08-29 Richard Biener <rguenther@suse.de>
7279
7280 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
7281 NON_LVALUE_EXPR in gimple.
7282
7283 2014-08-29 Richard Biener <rguenther@suse.de>
7284
7285 PR middle-end/62292
7286 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
7287 from previous refactoring.
7288 (gimple_fold_builtin_strncpy): Likewise.
7289
7290 2014-08-29 David Malcolm <dmalcolm@redhat.com>
7291
7292 PR bootstrap/62300
7293 * function.c (assign_parm_setup_reg): Remove erroneous checked
7294 cast to rtx_insn * on result of gen_extend_insn in favor of
7295 introducing a new local rtx "pat".
7296
7297 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7298
7299 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
7300 to silence warning.
7301 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
7302
7303 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7304
7305 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
7306 (next_insn): Likewise.
7307 * emit-rtl.c (next_insn): Likewise.
7308 (previous_insn): Likewise.
7309 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
7310 "insn" and "next" from rtx to rtx_insn *.
7311 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
7312 "insn", "insn1", "vliw_start", "prologue_end_note",
7313 "last_insn_in_packet".
7314
7315 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7316
7317 * shrink-wrap.h (active_insn_between): Strengthen both params from
7318 rtx to rtx_insn *.
7319 * function.c (active_insn_between): Likewise.
7320
7321 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7322
7323 * genattr.c (main): When writing out insn-attr.h, strengthen param
7324 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
7325 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
7326 writing out the definition of dfa_clear_single_insn_cache to the
7327 generated insn-automata.c
7328
7329 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7330
7331 * resource.h (clear_hashed_info_for_insn): Strengthen param from
7332 rtx to rtx_insn *.
7333 (incr_ticks_for_insn): Likewise.
7334 (init_resource_info): Likewise.
7335
7336 * resource.c (init_resource_info): Likewise.
7337 (clear_hashed_info_for_insn): Likewise.
7338 (incr_ticks_for_insn): Likewise.
7339
7340 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
7341 rtx to rtx_insn *.
7342 (steal_delay_list_from_target): Use methods of "seq".
7343 (try_merge_delay_insns): Use methods of "merged_insns".
7344 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
7345 (reorg_redirect_jump): Likewise for param "jump".
7346
7347 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7348
7349 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
7350 rtx to rtx_insn *.
7351 * config/s390/s390.c (s390_split_branches): Eliminate top-level
7352 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
7353 "set_insn".
7354 (s390_mainpool_finish): In three places, split out a local rtx
7355 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
7356 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
7357 and split another local rtx "insn" out into rtx "pat" and
7358 rtx_insn * "insn".
7359 * config/sh/sh.c (output_branchy_insn): Rather than working
7360 directly on operands[9], introduce local rtx_code_label *
7361 variables named "lab" in two places, working on them, and then
7362 assigning them to operands[9], so that the intervening operations
7363 are known by the type system to be on insns.
7364
7365 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7366
7367 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
7368 const rtx_insn *.
7369
7370 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
7371 in invocation of INSN_HAS_LOCATION.
7372
7373 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7374
7375 * config/rs6000/altivec.h (vec_xl): New #define.
7376 (vec_xst): Likewise.
7377 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
7378 (XXSPLTD_V2DI): Likewise.
7379 (DIV_V2DI): Likewise.
7380 (UDIV_V2DI): Likewise.
7381 (MUL_V2DI): Likewise.
7382 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7383 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
7384 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
7385 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
7386 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
7387 (UNSPEC_VSX_DIVSD): Likewise.
7388 (UNSPEC_VSX_DIVUD): Likewise.
7389 (UNSPEC_VSX_MULSD): Likewise.
7390 (vsx_mul_v2di): New insn-and-split.
7391 (vsx_div_v2di): Likewise.
7392 (vsx_udiv_v2di): Likewise.
7393 (vsx_xxspltd_<mode>): New insn.
7394
7395 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7396
7397 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
7398 NEXT_INSN.
7399 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
7400 (NEXT_INSN): Likewise.
7401 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
7402 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
7403 const rtx_insn *.
7404 (no_labels_between_p): Likewise for both params.
7405
7406 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
7407 cast when using NEXT_INSN on operands[2].
7408 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
7409 "insn" from rtx to rtx_insn *, adding a checked cast.
7410 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
7411 rtx_insn *.
7412 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
7413 for third param.
7414 (arc_text_label): Likewise for param "insn".
7415 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
7416 "insn".
7417 (arc_ccfsm_record_condition): Likewise for param "jump".
7418 (arc_text_label): Likewise for local "label".
7419 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
7420 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
7421 a method for typesafety. Add a checked cast.
7422 * config/arc/constraints.md (Clb): Add a checked cast when getting
7423 the CODE_LABEL from a LABEL_REF.
7424 * config/arm/arm.c (require_pic_register): Strengthen locals
7425 "seq", "insn" from rtx to rtx_insn *.
7426 (create_fix_barrier): Likewise for locals "selected", "next".
7427 (thumb1_reorg): Likewise for locals "prev", "insn".
7428 (arm_expand_prologue): Likewise for local "last".
7429 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
7430 operands[0].
7431 (thumb2_output_casesi): Likewise for operands[2].
7432 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
7433 strengthen local "insn" from rtx to rtx_insn *.
7434 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
7435 type and param "insn".
7436 (find_prev_insn_start): Likewise.
7437 (hwloop_optimize): Likewise for locals "insn", "last_insn",
7438 "prev".
7439 (gen_one_bundle): Likewise for loal "t".
7440 (find_load): Likewise for param "insn".
7441 (workaround_speculation): Likewise for locals "insn", "next",
7442 "target", "next_tgt".
7443 * config/c6x/c6x.c (assign_reservations): Likewise for both params
7444 and for locals "insn", "within", "last".
7445 (count_unit_reqs): Likewise for params "head", "tail" and local
7446 "insn".
7447 (try_rename_operands): Likewise for params "head", "tail".
7448 (reshuffle_units): Likewise for locals "head", "tail", "insn".
7449 (struct c6x_sched_context): Likewise for fields
7450 "last_scheduled_insn", "last_scheduled_iter0".
7451 (init_sched_state): Replace NULL_RTX with NULL.
7452 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
7453 to rtx_insn *.
7454 (undo_split_delayed_nonbranch): Likewise for param and for local
7455 "prev".
7456 (conditionalize_after_sched): Likewise for local "insn".
7457 (bb_earliest_end_cycle): Likewise.
7458 (filter_insns_above): Likewise for locals "insn", "next".
7459 (hwloop_optimize): Remove redundant checked cast.
7460 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
7461 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
7462 NULL_RTX with NULL.
7463 (cris_simple_epilogue): Likewise.
7464 (cris_expand_prologue): Likewise.
7465 (cris_expand_epilogue): Likewise.
7466 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
7467 local "insn" from rtx to rtx_insn *.
7468 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
7469 (struct frv_packet_group): Likewise for the elements within array
7470 fields "insns", "sorted", and for field "nop".
7471 (frv_packet): Likewise for the elements within array field
7472 "insns".
7473 (frv_add_insn_to_packet): Likewise for param "insn".
7474 (frv_insert_nop_in_packet): Likewise for param "insn" and local
7475 "last".
7476 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
7477 (frv_sort_insn_group_1): Likewise for local "insn".
7478 (frv_optimize_membar_local): Likewise.
7479 (frv_align_label): Likewise for locals "x", "last", "barrier",
7480 "label".
7481 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
7482 local.
7483 (ia64_sched_init): Likewise for local "insn".
7484 (scheduled_good_insn): Likewise for param "last".
7485 (struct _ia64_sched_context): Likewise for field
7486 "last_scheduled_insn".
7487 (ia64_init_sched_context): Replace NULL_RTX with NULL.
7488 (struct bundle_state): Likewise for field "insn".
7489 (issue_nops_and_insn): Likewise for param "insn".
7490 (get_next_important_insn): Likewise for return type and both
7491 params.
7492 (ia64_add_bundle_selector_before): Likewise for param "insn".
7493 (bundling): Likewise for params "prev_head_insn", "tail" and
7494 locals "insn", "next_insn", "b". Eliminate top-level local rtx
7495 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
7496 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
7497 Strengthen final param from rtx to rtx_insn *.
7498 (iq2000_move_1word): Likewise for second param.
7499 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
7500 param "cur_insn" and local "next_insn".
7501 (iq2000_move_1word): Likewise for param "insn".
7502 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
7503 casts when using NEXT_INSN on operands[1].
7504 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
7505 "insn" from rtx to rtx_insn *.
7506 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
7507 "x", introducing local rtx_insn * "insn" for when working with the
7508 CODE_LABEL of the LABEL_REF.
7509 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
7510 rtx_insn *.
7511 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
7512 param.
7513 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
7514 type.
7515 (conditionalize_block): Likewise for return type and param.
7516 (mcore_is_dead): Likewise for param "first" and local "insn".
7517 (emit_new_cond_insn): Likewise for return type.
7518 (conditionalize_block): Likewise for return type, param, and
7519 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
7520 "newinsn".
7521 (conditionalize_optimization): Likewise for local "insn".
7522 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
7523 using NEXT_INSN.
7524 * config/microblaze/microblaze.md: Add checked casts when using
7525 NEXT_INSN.
7526 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
7527 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
7528 and rtx_insn * "insn".
7529 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
7530 checked cast when using NEXT_INSN on operands[2].
7531 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
7532 local "insn" from rtx to rtx_insn *.
7533 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
7534 Likewise.
7535 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
7536 Add a checked cast when using NEXT_INSN on operands[1].
7537 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
7538 rtx to rtx_insn *.
7539 (pa_output_cbranch): Likewise for final param.
7540 (pa_output_lbranch): Likewise for second param.
7541 (pa_output_bb): Likewise for third param.
7542 (pa_output_bvb): Likewise.
7543 (pa_output_dbra): Likewise for second param.
7544 (pa_output_movb): Likewise.
7545 (pa_output_parallel_movb): Likewise.
7546 (pa_output_parallel_addb): Likewise.
7547 (pa_output_millicode_call): Likewise for first param.
7548 (pa_output_mul_insn): Likewise for second param.
7549 (pa_output_div_insn): Likewise for third param.
7550 (pa_output_mod_insn): Likewise for second param.
7551 (pa_jump_in_call_delay): Likewise for param.
7552 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
7553 (pa_output_div_insn): Likewise.
7554 (pa_output_mod_insn): Likewise.
7555 (pa_output_cbranch): Likewise.
7556 (pa_output_lbranch): Likewise.
7557 (pa_output_bb): Likewise.
7558 (pa_output_bvb): Likewise.
7559 (pa_output_dbra): Likewise.
7560 (pa_output_movb): Likewise.
7561 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
7562 to simplify and for typesafety.
7563 (pa_output_call): Use method of rtx_sequence *.
7564 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
7565 (pa_jump_in_call_delay): Likewise.
7566 (pa_output_parallel_movb): Likewise.
7567 (pa_output_parallel_addb): Likewise.
7568 (pa_following_call): Likewise.
7569 (pa_combine_instructions): Likewise for locals "anchor",
7570 "floater".
7571 (pa_can_combine_p): Likewise for params "anchor", "floater" and
7572 locals "start", "end".
7573 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
7574 param "insn" and local "local_insn".
7575 (picochip_final_prescan_insn): Likewise for local "local_insn".
7576 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
7577 local "insn".
7578 (uses_TOC): Likewise.
7579 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
7580 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
7581 splitting out to more tightly-scoped locals, 3 as rtx and one as
7582 rtx_insn *.
7583 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
7584 to rtx_insn *.
7585 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
7586 where needed.
7587 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
7588 to rtx_insn *.
7589 (fixup_addr_diff_vecs): Likewise.
7590 (reg_unused_after): Likewise for param 2.
7591 (sh_can_redirect_branch): Likewise for both params.
7592 (check_use_sfunc_addr): Likewise for param 1.
7593 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
7594 (find_barrier): Likewise for local "last_got".
7595 (gen_block_redirect): Likewise for return type, param "jump" and
7596 locals "prev", "scan", "next", "insn".
7597 (struct far_branch): Likewise for fields "near_label",
7598 "insert_place", "far_label".
7599 (gen_far_branch): Likewise for local "jump".
7600 (fixup_addr_diff_vecs): Likewise for param "first" and locals
7601 "insn", "prev".
7602 (barrier_align): Likewise for param and for locals "prev", "x".
7603 Introduce local rtx_sequence * "prev_seq" and use insn method for
7604 typesafety and clarity.
7605 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
7606 (get_dest_uid): Likewise for local "dest".
7607 (split_branches): Likewise for locals "next", "beyond", "label",
7608 "block", "far_label". Add checked casts when assigning to
7609 bp->far_label and "far_label".
7610 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
7611 (sequence_insn_p): Likewise.
7612 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
7613 more loop-scoped rtx "insn" when walking LABEL_REFS.
7614 (sh_can_redirect_branch): Strengthen both params from rtx to
7615 rtx_insn *.
7616 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
7617 new local rtx_sequence * "seq" via a dyn_cast, and use a method
7618 for clarity and typesafety.
7619 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
7620 "insn" from rtx to rtx_insn *.
7621 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
7622 when using NEXT_INSN on the CODE_LABEL in operands[2].
7623 (define_insn "casesi_worker_2"): Likewise.
7624 (define_insn "casesi_shift_media"): Likewise.
7625 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
7626 operands[3].
7627 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
7628 Strengthen field "insn" from rtx to rtx_insn *.
7629 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
7630 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
7631 param "start_insn" and local "start_insn".
7632 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
7633 field "insn".
7634 (find_set_of_reg_bb): Likewise for param "insn".
7635 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
7636 (trace_reg_uses): Likewise for param "start_insn".
7637 (sh_treg_combine::cbranch_trace): Likewise for field
7638 "cbranch_insn".
7639 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
7640 param "insn".
7641 (sh_treg_combine::record_set_of_reg): Likewise for param
7642 "start_insn" and local "i".
7643 (sh_treg_combine::can_remove_cstore): Likewise for local
7644 "prev_insn".
7645 (sh_treg_combine::try_optimize_cbranch): Likewise for param
7646 "insn".
7647 (sh_treg_combine::execute): Likewise for local "i".
7648 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
7649 param.
7650 (sparc_check_64): Likewise for second param.
7651 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
7652 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
7653 dyn_cast, using its insn method for typesafety and clarity.
7654 (empty_delay_slot): Strengthen param "insn" from rtx to
7655 rtx_insn *.
7656 (set_extends): Likewise.
7657 (sparc_check_64): Likewise.
7658 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
7659 for locals "seq", "last_insn".
7660 (combine_bnp): Likewise for param "insn".
7661 (xstormy16_reorg): Likewise for local "insn".
7662 * config/v850/v850.c (substitute_ep_register): Likewise for params
7663 "first_insn", "last_insn" and local "insn".
7664 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
7665 elements of "regs" array, and local "insn".
7666 * except.c (emit_note_eh_region_end): Likewise for param "insn".
7667 * final.c (final_sequence): Strengthen this global from rtx to
7668 rtx_sequence *.
7669 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
7670 rtx_insn *.
7671 (final_scan_insn): Update assignment to "final_sequence" to be
7672 from "seq", the cast version of "body", for type-safety.
7673 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
7674 "insns" from rtx to rtx_insn *.
7675 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
7676 * genattr.c (main): When writing out generated insn-attr.h,
7677 strengthen params 1 and 3 of eligible_for_delay,
7678 eligible_for_annul_true, eligible_for_annul_false from rtx to
7679 rtx_insn *.
7680 * genattrtab.c (write_eligible_delay): Likewise when writing out
7681 generated insn-attrtab.c; also local "insn" the generated
7682 functions.
7683 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
7684 to rtx_insn *.
7685 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
7686 "start_label" from rtx to rtx_insn *.
7687 * ira.c (decrease_live_ranges_number): Likewise for local "p".
7688 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
7689 "insns" and local "insn".
7690 (validate_equiv_mem): Likewise for param "start" and local "insn".
7691 (memref_used_between_p): Likewise for params "start", "end" and
7692 local "insn".
7693 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
7694 final param.
7695 * loop-doloop.c (doloop_optimize): Within region guarded by
7696 INSN_P (doloop_pat), introduce a new local rtx_insn *
7697 "doloop_insn" via a checked cast, and use it for typesafety,
7698 eventually writing the value back into doloop_pat.
7699 * output.h (final_sequence): Strengthen this global from rtx to
7700 rtx_sequence *.
7701 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
7702 reintroducing "insn" as an rtx_insn * via a checked cast.
7703 Strengthen param "attempt" and local "new_insn"from rtx to
7704 rtx_insn *.
7705 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
7706 to rtx_insn *.
7707 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
7708 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
7709 "p" in favor of more tightly-scoped replacements, sometimes rtx
7710 and sometimes rtx_insn *, as appropriate.
7711 (delete_output_reload): Eliminate top-level rtx "i1", splitting
7712 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
7713 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
7714 local "trial" from rtx to rtx_insn *.
7715 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
7716 rtx to rtx_insn *. Strenghten local "pat" from rtx to
7717 rtx_sequence * and use methods for clarity and typesafety.
7718 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
7719 rtx to rtx_insn *. Strenghten local "li" from rtx to
7720 rtx_insn_list * and use its methods for clarity and typesafety.
7721 (steal_delay_list_from_target): Strengthen param "insn" from rtx
7722 to rtx_insn *.
7723 (steal_delay_list_from_fallthrough): Likewise.
7724 (try_merge_delay_insns): Likewise for param "thread" and locals
7725 "trial", "next_trial", "delay_insn".
7726 (redundant_insn): Likewise for param "target" and local "trial".
7727 (own_thread_p): Likewise for param "thread" and locals
7728 "active_insn", "insn".
7729 (get_label_before): Likewise for param "insn".
7730 (fill_simple_delay_slots): Likewise for local "new_label"; use
7731 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
7732 (label_before_next_insn): Strengthen return type and local "insn"
7733 from rtx to rtx_insn *.
7734 (relax_delay_slots): Likewise for locals "other", "tmp".
7735 (make_return_insns): Likewise for param "first" and locals "insn",
7736 "jump_insn", "prev". Move declaration of "pat" to its assignment
7737 and strengthen from rtx to rtx_sequence *. Use its methods for
7738 clarity and typesafety.
7739 * rtlanal.c (no_labels_between_p): Strengthen params from
7740 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
7741 rtx_insn *.
7742 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
7743 from const_rtx to const rtx_insn *.
7744 (reg_set_between_p): Rename param "from_insn" to
7745 "uncast_from_insn", and reintroduce "from_insn" as a
7746 const rtx_insn * via a checked cast.
7747 (modified_between_p): Likewise for param "start" as "uncast_start".
7748 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
7749 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
7750 "tmp", head" from rtx to rtx_insn *.
7751 (recompute_rev_top_order): Likewise for local "insn".
7752 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
7753 * store-motion.c (build_store_vectors): Likewise for local "insn".
7754 Strengthen local "st" from rtx to rtx_insn_list * and use methods
7755 for clarity and typesafety.
7756 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
7757 rtx to rtx_insn *.
7758 (computation_cost): Likewise for local "seq".
7759 (get_address_cost): Likewise.
7760
7761 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7762
7763 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
7764 const rtx_insn *.
7765 (label_is_jump_target_p): Likewise for second param.
7766
7767 * rtlanal.c (tablejump_p): Likewise for param "insn".
7768 (label_is_jump_target_p): Likewise for param "jump_insn".
7769
7770 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7771
7772 * rtl.h (find_first_parameter_load): Strengthen return type and
7773 both params from rtx to rtx_insn *.
7774 * rtlanal.c (find_first_parameter_load): Strengthen return type,
7775 both params and locals "before", "first_set" from rtx to
7776 rtx_insn *. Remove now-redundant cast.
7777 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
7778
7779 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7780
7781 * rtl.h (find_last_value): Delete.
7782 * rtlanal.c (find_last_value): Delete.
7783
7784 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7785
7786 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
7787 from rtx to rtx_insn *.
7788 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
7789 rtx "note" with new local rtx_insn * "new_head" when calculating
7790 head insn of new basic block.
7791 * combine.c (combine_split_insns): Strengthen return type and local
7792 "ret" from rtx to rtx_insn *.
7793 (likely_spilled_retval_p): Likewise for locals "use" and "p".
7794 (try_combine): Eliminate local "m_split", splitting into new
7795 locals "m_split_insn" and "m_split_pat".
7796 (find_split_point): Strengthen local "seq" from rtx into
7797 rtx_insn *.
7798 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
7799 locals "label", "branch".
7800 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
7801 for local "insn".
7802 (define_expand "umulsi3_highpart"): Likewise for local "insn".
7803 * dse.c (note_add_store_info): Likewise for fields "first",
7804 "current".
7805 (note_add_store): Likewise for local "insn".
7806 (emit_inc_dec_insn_before): Likewise for locals "insn",
7807 "new_insn", "cur".
7808 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
7809 (replace_read): Likewise for locals "insns", "this_insn".
7810 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
7811 (notice_eh_throw): Likewise for param "insn".
7812 (before_next_cfi_note): Likewise for return type, param, and local
7813 "prev".
7814 (connect_traces): Likewise for local "note".
7815 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
7816 (verify_rtl_sharing): Likewise.
7817 (unshare_all_rtl_in_chain): Likewise for param "insn".
7818 (get_first_nonnote_insn): Likewise for local "insn".
7819 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
7820 "seq" and use its methods to clarify things.
7821 (next_insn): Strengthen return type from rtx to rtx_insn *.
7822 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
7823 local rtx_insn * using a checked cast, dropping a checked cast
7824 made redundant by this change. Use a cast to and method of
7825 rtx_sequence to clarify the code.
7826 (previous_insn): Rename param "insn" to "uncast_insn" and
7827 reintroduce "insn" as a local rtx_insn * using a checked cast,
7828 dropping a checked cast made redundant by this change. Use a cast
7829 to and method of rtx_sequence to clarify the code.
7830 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
7831 reintroduce "insn" as a local rtx_insn * using a checked cast,
7832 dropping a checked cast made redundant by this change.
7833 (next_nonnote_insn_bb): Likewise.
7834 (prev_nonnote_insn): Likewise.
7835 (prev_nonnote_insn_bb): Likewise.
7836 (next_nondebug_insn): Likewise.
7837 (prev_nondebug_insn): Likewise.
7838 (next_nonnote_nondebug_insn): Likewise.
7839 (prev_nonnote_nondebug_insn): Likewise.
7840 (next_real_insn): Likewise.
7841 (prev_real_insn): Likewise.
7842 (next_active_insn): Likewise.
7843 (prev_active_insn): Likewise.
7844 (next_cc0_user): Likewise. Use rtx_sequence and a method for
7845 clarity.
7846 (prev_cc0_setter): Likewise.
7847 (try_split): Rename param "trial" to "uncast_trial" and
7848 reintroduce "insn" as a local rtx_insn * using a checked cast,
7849 dropping checked casts made redundant by this change.
7850 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
7851 rtx to rtx_insn *.
7852 (remove_insn): Rename param "insn" to "uncast_insn" and
7853 reintroduce "insn" as a local rtx_insn * using a checked cast.
7854 (emit_pattern_after_setloc): Likewise for param "after", as
7855 "uncast_after".
7856 (emit_pattern_after): Likewise. Strengthen local "prev" from
7857 rtx to rtx_insn *.
7858 (emit_pattern_before_setloc): Rename param "before" to
7859 "uncast_before" and reintroduce "before" as a local rtx_insn *
7860 using a checked cast. Strengthen locals "first", "last" from
7861 rtx to rtx_insn *.
7862 (emit_pattern_before): Likewise rename/cast param "before" to
7863 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
7864 * except.c (copy_reg_eh_region_note_forward): Strengthen param
7865 "first" and local "insn" from rtx to rtx_insn *.
7866 (copy_reg_eh_region_note_backward): Likewise for param "last"
7867 and local "insn".
7868 * expr.c (fixup_args_size_notes): Rename param "last" to
7869 "uncast_last" and reintroduce "last" as a local rtx_insn *
7870 using a checked cast. Strengthen local "insn" from rtx to
7871 rtx_insn *.
7872 * function.c (set_insn_locations): Strengthen param "insn" from
7873 rtx to rtx_insn *.
7874 (record_insns): Likewise for param "insns" and local "tmp".
7875 (active_insn_between): Rename param "tail" to
7876 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
7877 using a checked cast.
7878 (thread_prologue_and_epilogue_insns): Split out top-level local
7879 rtx "seq" into three different rtx_insn * locals. Strengthen
7880 local "prologue_seq" from rtx to rtx_insn *.
7881 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
7882 from rtx to rtx_insn *.
7883 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
7884 (priority): Likewise for locals "prev_first", "twin".
7885 (setup_insn_max_reg_pressure): Likewise for param "after".
7886 (sched_setup_bb_reg_pressure_info): Likewise.
7887 (no_real_insns_p): Strengthen params from const_rtx to
7888 const rtx_insn *.
7889 (schedule_block): Strengthen local "next_tail" from rtx to
7890 rtx_insn *.
7891 * ifcvt.c (find_active_insn_before): Strengthen return type and
7892 param "insn" from rtx to rtx_insn *.
7893 (find_active_insn_after): Likewise.
7894 (cond_exec_process_insns): Likewise for param "start" and local "insn".
7895 (cond_exec_process_if_block): Likewise for locals "then_start",
7896 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
7897 (noce_process_if_block): Likewise for local "jump".
7898 (merge_if_block): Likewise for two locals named "end".
7899 (cond_exec_find_if_block): Likewise for local "last_insn".
7900 * jump.c (delete_related_insns): Rename param "insn" to
7901 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
7902 checked cast. Strengthen local "p" from rtx to rtx_insn *.
7903 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
7904 NULL.
7905 (split_reg): Likewise.
7906 * lra.c (lra_process_new_insns): Likewise.
7907 * modulo-sched.c (permute_partial_schedule): Strengthen param
7908 "last" from rtx to rtx_insn *.
7909 * optabs.c (add_equal_note): Likewise for param "insns" and local
7910 "last_insn".
7911 (expand_binop_directly): Add checked casts to rtx_insn * within
7912 NEXT_INSN (pat) uses.
7913 (expand_unop_direct): Likewise.
7914 (maybe_emit_unop_insn): Likewise.
7915 * recog.c (peep2_attempt): Strengthen locals "last",
7916 "before_try", "x" from rtx to rtx_insn *.
7917 * reorg.c (optimize_skip): Strengthen return type and local
7918 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
7919 and locals "trial", "next_trial" from rtx to rtx_insn *.
7920 * resource.c (next_insn_no_annul): Strengthen return type and
7921 param "insn" from rtx to rtx_insn *. Use a cast to and method of
7922 rtx_sequence to clarify the code.
7923 (mark_referenced_resources): Add a checked cast to rtx_insn *
7924 within PREV_INSN (x).
7925 (find_dead_or_set_registers): Strengthen return type, param
7926 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
7927 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
7928 to rtx_insn **.
7929 (mark_target_live_regs): Strengthen params "insns" and "target",
7930 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
7931 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
7932 the code.
7933 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
7934 from rtx to rtx_insn *.
7935 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
7936 from rtx to rtx_insn *.
7937 (copy_reg_eh_region_note_backward): Likewise.
7938 (unshare_all_rtl_in_chain): Likewise for sole param.
7939 (dump_rtl_slim): Strengthen second and third params from const_rtx
7940 to const rtx_insn *.
7941 * sched-deps.c (sched_free_deps): Strengthen params "head" and
7942 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
7943 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
7944 "next_tail" from rtx to rtx_insn *.
7945 (begin_move_insn): Likewise for local "next".
7946 * sched-int.h (sched_free_deps): Likewise for first and second
7947 params.
7948 (no_real_insns_p): Strengthen both params from const_rtx to
7949 const rtx_insn *.
7950 (sched_setup_bb_reg_pressure_info): Strengthen second params from
7951 rtx to rtx_insn *.
7952 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
7953 "next_tail".
7954 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
7955 and locals "insn", "tail" from const_rtx to const rtx_insn *.
7956 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
7957 rtx_insn *.
7958 (debug_rtl_slim): Strengthen params "first" and "last" from
7959 const_rtx to const rtx_insn *.
7960 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
7961 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
7962 (convert_to_simple_return): Likewise for param "returnjump".
7963 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
7964 "prologue_seq".
7965 (convert_to_simple_return): Likewise for param "returnjump".
7966 * valtrack.c (propagate_for_debug): Likewise for params
7967 "insn", "last".
7968 * valtrack.h (propagate_for_debug): Likewise for second param.
7969
7970 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7971
7972 * output.h (insn_current_reference_address): Strengthen param
7973 from rtx to rtx_insn *.
7974 * final.c (insn_current_reference_address): Likewise.
7975
7976 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7977
7978 * basic-block.h (inside_basic_block_p): Strengthen param from
7979 const_rtx to const rtx_insn *.
7980 * cfgbuild.c (inside_basic_block_p): Likewise.
7981
7982 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7983
7984 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
7985 rtx_insn *.
7986 (get_trace_info): Likewise for param "insn".
7987 (save_point_p): Likewise.
7988 (maybe_record_trace_start): Likewise for both params.
7989 (maybe_record_trace_start_abnormal): Likewise.
7990 (create_trace_edges): Likewise for sole param and for three of the
7991 locals named "lab".
7992 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
7993 to rtx_insn *, and update a call to pat->element to pat->insn.
7994
7995 2014-08-28 David Malcolm <dmalcolm@redhat.com>
7996
7997 * function.h (struct expr_status): Convert field "x_forced_labels"
7998 from rtx_expr_list * to rtx_insn_list *.
7999
8000 * cfgbuild.c (make_edges): Convert local "x" from an
8001 rtx_expr_list * to an rtx_insn_list *, replacing use of
8002 "element" method with "insn" method.
8003 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8004 * except.c (sjlj_emit_dispatch_table): Replace use of
8005 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8006 forced_labels.
8007 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8008 rtx_expr_list * to an rtx_insn_list *, replacing use of
8009 "element" method with "insn" method.
8010 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8011 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8012 rtx_insn *, adding a checked cast. Replace use of
8013 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8014 forced_labels.
8015 (expand_label): Likewise for local "label_r".
8016
8017 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8018
8019 * function.h (struct rtl_data): Convert field
8020 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8021 rtx_insn_list *.
8022 * rtl.h (remove_node_from_insn_list): New prototype.
8023
8024 * builtins.c (expand_builtin): When prepending to
8025 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8026 gen_rtx_EXPR_LIST.
8027 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8028 to rtx_insn_list *, and use its "insn" method rather than
8029 "element" method.
8030 * cfgrtl.c (delete_insn): Use new function
8031 remove_node_from_insn_list rather than
8032 remove_node_from_expr_list.
8033 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8034 to rtx_insn_list *, and use its "insn" method rather than
8035 "element" method.
8036 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8037 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8038 * rtlanal.c (remove_node_from_insn_list): New function, adapted
8039 from remove_node_from_expr_list.
8040 * stmt.c (expand_label): When prepending to
8041 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8042 gen_rtx_EXPR_LIST.
8043
8044 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8045
8046 * function.h (struct rtl_data): Strengthen fields "x_return_label"
8047 and "x_naked_return_label" from rtx to rtx_code_label *.
8048
8049 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8050
8051 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8052 (SET_NEXT_INSN): Likewise.
8053 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8054
8055 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8056 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
8057 to split out the SEQUENCE from local "bundle", strengthening the
8058 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8059 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8060 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8061 and the type of the elements of the "slot" array from rtx to
8062 rtx_insn *.
8063 (reorg_split_calls): Likewise for locals "insn" and "next", and
8064 the type of the elements of the "slot" array.
8065
8066 * config/frv/frv.c (frv_nops): Likewise for the elements of this
8067 array.
8068 (frv_function_prologue): Likewise for locals "insn", "next",
8069 "last_call".
8070 (frv_register_nop): Introduce a local "nop_insn" to be the
8071 rtx_insn * containing rtx "nop".
8072
8073 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8074 used as an insn and sometimes as a pattern, so rename it to
8075 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8076 using it where dealing with the core insn.
8077
8078 * config/picochip/picochip.c (reorder_var_tracking_notes):
8079 Strengthen locals "insn", "next", "last_insn", "queue",
8080 "next_queue", "prev" from rtx to rtx_insn *.
8081
8082 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8083 the second param is an rtx_insn ** rather than an rtx **.
8084 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8085 from rtx to rtx_sequence *, and introduce local named "sequence",
8086 using methods of rtx_sequence to clarify the code.
8087 (remove_insn): Introduce local rtx_sequence * named "sequence" and
8088 use its methods.
8089 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8090 Rename param "after" to "uncast_after", reintroducing "after" as a
8091 local rtx_insn * with a checked cast.
8092 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8093 reintroducing "after" as a local rtx_insn * with a checked cast.
8094 Strengthen local "last" from rtx to rtx_insn * and remove the
8095 now-redundant checked casts.
8096 (copy_delay_slot_insn): Strengthen return type and param from rtx
8097 to rtx_insn *.
8098
8099 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
8100 "last" from rtx to rtx_insn *.
8101
8102 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8103
8104 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
8105 param from rtx to rtx_insn *.
8106
8107 * emit-rtl.c (copy_delay_slot_insn): Likewise.
8108
8109 * reorg.c (skip_consecutive_labels): Strengthen return type, param
8110 and local "insn" from rtx to rtx_insn *.
8111 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
8112 (unfilled_slots_next): Likewise.
8113 (function_return_label): Strengthen from rtx to rtx_code_label *.
8114 (function_simple_return_label): Likewise.
8115 (first_active_target_insn): Strengthen return type and param from
8116 rtx to rtx_insn *.
8117 (find_end_label): Strengthen return type from rtx to
8118 rtx_code_label *; strengthen locals as appropriate.
8119 (emit_delay_sequence): Strengthen return type, param "insn" and
8120 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
8121 and local "li" from rtx to rtx_insn_list *, using methods of
8122 rtx_insn_list for clarity and typesafety.
8123 (add_to_delay_list): Strengthen return type and param "insn" from
8124 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
8125 rtx_insn_list * and use methods of rtx_insn_list.
8126 (delete_from_delay_slot): Strengthen return type, param "insn",
8127 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
8128 Strengthen local "seq" from rtx to rtx_sequence *, and local
8129 "delay_list" from rtx to rtx_insn_list *, using methods of
8130 rtx_sequence for clarity and type-safety.
8131 (delete_scheduled_jump): Add checked cast when invoking
8132 delete_from_delay_slot. Strengthen local "trial" from rtx to
8133 rtx_insn *.
8134 (optimize_skip): Strengthen return type and local "delay_list"
8135 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
8136 rtx_insn *.
8137 (steal_delay_list_from_target): Strengthen return type, param
8138 "delay_list" and local "new_delay_list" from rtx to
8139 rtx_insn_list *. Strengthen param "seq" from rtx to
8140 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
8141 rtx_insn **.
8142 Split out local "temp" into multiple more-tightly scoped locals:
8143 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
8144 of rtx_insn_list and rtx_sequence for clarity and typesafety.
8145 Strengthen locals named "trial" from rtx to rtx_insn *.
8146 (steal_delay_list_from_fallthrough): Strengthen return type and
8147 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
8148 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
8149 Strengthen local "trial" from rtx to rtx_insn *.
8150 (try_merge_delay_insns): Strength local "merged_insns" from rtx
8151 to rtx_insn_list * and use its methods. Strengthen local "pat"
8152 from rtx to rtx_sequence * and use its methods. Strengthen locals
8153 "dtrial" and "new_rtx" from rtx to rtx_insn *.
8154 (get_label_before): Strengthen return type and local "label" from
8155 rtx to rtx_insn *.
8156 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
8157 "next_trial", "next", prev". Strengthen local "delay_list" from
8158 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
8159 rtx_insn **.
8160 (follow_jumps): Strengthen return type, param "label" and locals
8161 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
8162 (fill_slots_from_thread): Strengthen return type, param
8163 "delay_list" from rtx to rtx_insn_list *. Strengthen params
8164 "insn", "thread", "opposite_thread" and locals "new_thread",
8165 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
8166 "sequence" from a checked cast to rtx_sequence so that we can call
8167 steal_delay_list_from_target and steal_delay_list_from_fallthrough
8168 with an rtx_sequence *.
8169 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
8170 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
8171 Strengthen local "delay_list" from rtx to rtx_insn_list *.
8172 (relax_delay_slots): Strengthen param "first" and locals "insn",
8173 "next", "trial", "delay_insn", "target_label" from rtx to
8174 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
8175 Introduce a local "trial_seq" for PATTERN (trial) of type
8176 rtx_sequence *, in both cases using methods of rtx_sequence.
8177 (dbr_schedule): Strengthen param "first" and locals "insn",
8178 "next", "epilogue_insn" from rtx to rtx_insn *.
8179
8180 2014-08-28 Richard Biener <rguenther@suse.de>
8181
8182 PR tree-optimization/62283
8183 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8184 Do not peel loops for alignment where the vector loop likely
8185 doesn't run at least VF times.
8186
8187 2014-08-28 Bin Cheng <bin.cheng@arm.com>
8188
8189 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
8190 important_candidates. Consider all important candidates if
8191 IVS doesn't give any result. Remove check on ivs->upto.
8192 (try_add_cand_for): Call iv_ca_add_use only once.
8193
8194 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8195 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8196 Anna Tikhonova <anna.tikhonova@intel.com>
8197 Ilya Tocar <ilya.tocar@intel.com>
8198 Andrey Turetskiy <andrey.turetskiy@intel.com>
8199 Ilya Verbin <ilya.verbin@intel.com>
8200 Kirill Yukhin <kirill.yukhin@intel.com>
8201 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8202
8203 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
8204 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
8205 masking.
8206 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
8207 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8208 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
8209 (define_insn "*mul<mode>3"): Add EVEX version.
8210
8211 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8212 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8213 Anna Tikhonova <anna.tikhonova@intel.com>
8214 Ilya Tocar <ilya.tocar@intel.com>
8215 Andrey Turetskiy <andrey.turetskiy@intel.com>
8216 Ilya Verbin <ilya.verbin@intel.com>
8217 Kirill Yukhin <kirill.yukhin@intel.com>
8218 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8219
8220 * config/i386/sse.md
8221 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
8222 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
8223 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
8224 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
8225 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
8226 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
8227 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
8228 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
8229 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
8230 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
8231 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
8232 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
8233 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
8234 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
8235 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
8236 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
8237
8238 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8239 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8240 Anna Tikhonova <anna.tikhonova@intel.com>
8241 Ilya Tocar <ilya.tocar@intel.com>
8242 Andrey Turetskiy <andrey.turetskiy@intel.com>
8243 Ilya Verbin <ilya.verbin@intel.com>
8244 Kirill Yukhin <kirill.yukhin@intel.com>
8245 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8246
8247 * config/i386/sse.md
8248 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
8249 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
8250 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
8251
8252 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8253 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8254 Anna Tikhonova <anna.tikhonova@intel.com>
8255 Ilya Tocar <ilya.tocar@intel.com>
8256 Andrey Turetskiy <andrey.turetskiy@intel.com>
8257 Ilya Verbin <ilya.verbin@intel.com>
8258 Kirill Yukhin <kirill.yukhin@intel.com>
8259 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8260
8261 * config/i386/sse.md
8262 (define_mode_iterator VI128_256): New.
8263 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
8264
8265 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
8266 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8267 Anna Tikhonova <anna.tikhonova@intel.com>
8268 Ilya Tocar <ilya.tocar@intel.com>
8269 Andrey Turetskiy <andrey.turetskiy@intel.com>
8270 Ilya Verbin <ilya.verbin@intel.com>
8271 Kirill Yukhin <kirill.yukhin@intel.com>
8272 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8273
8274 * config/i386/sse.md
8275 (define_mode_iterator VI8_256_512): New.
8276 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
8277 Ditto.
8278 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
8279 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
8280 Ditto.
8281 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
8282
8283 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8284
8285 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
8286 pointer to the cumulative reloc value and return the value for
8287 this reloc instead.
8288 (compute_reloc_for_rtx): Take a const_rtx. Call
8289 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
8290 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
8291 for_each_rtx for the CONST case.
8292
8293 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8294
8295 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
8296 (mark_constants_in_pattern): ...this new function to iterate over
8297 all the subrtxes.
8298 (mark_constants): Update accordingly.
8299
8300 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8301
8302 * varasm.c: Include rtl-iter.h.
8303 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
8304 Remove the pointer to the cumulative hashval_t and just return
8305 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
8306 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8307 Accumulate the hashval_ts here instead of const_rtx_hash_1.
8308
8309 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8310
8311 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
8312 Give real type of data parameter. Remove return value.
8313 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
8314 to iterate over subrtxes.
8315
8316 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8317
8318 * var-tracking.c (use_narrower_mode_test): Turn from being a
8319 for_each_rtx callback to being a function that examines each
8320 subrtx itself.
8321 (adjust_mems): Update accordingly.
8322
8323 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8324
8325 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
8326 callback to being a function that examines each subrtx itself.
8327 Remove handling of null rtxes.
8328 (add_uses): Update accordingly.
8329
8330 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8331
8332 * var-tracking.c: Include rtl-iter.h.
8333 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
8334 to being a function that examines each subrtx itself.
8335 (use_type): Update accordingly.
8336
8337 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8338
8339 * store-motion.c: Include rtl-iter.h.
8340 (extract_mentioned_regs_1): Delete.
8341 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
8342 for_each_rtx to iterate over subrtxes.
8343
8344 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8345
8346 * sel-sched.c: Include rtl-iter.h
8347 (count_occurrences_1): Delete.
8348 (count_occurrences_equiv): Turn rtxes into const_rtxes.
8349 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8350
8351 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8352
8353 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
8354 * rtlanal.c (tls_referenced_p_1): Delete.
8355 (tls_referenced_p): Take a const_rtx rather than an rtx.
8356 Use FOR_EACH_SUBRTX rather than for_each_rtx.
8357
8358 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8359
8360 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
8361 (for_each_inc_dec): Take an rtx rather than an rtx *.
8362 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
8363 (cselib_record_sets): Likewise.
8364 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
8365 (check_for_inc_dec): Likewise.
8366 * rtlanal.c (for_each_inc_dec_ops): Delete.
8367 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
8368 rather than a pointer to the memory address. Replace
8369 for_each_inc_dec_ops argument with separate function and data
8370 arguments. Abort on non-autoinc addresses.
8371 (for_each_inc_dec_find_mem): Delete.
8372 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
8373 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
8374
8375 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8376
8377 * rtl.h (find_all_hard_regs): Declare.
8378 * rtlanal.c (find_all_hard_regs): New function.
8379 (record_hard_reg_uses_1): Delete.
8380 (record_hard_reg_uses): Use find_all_hard_regs.
8381
8382 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8383
8384 * rtl.h (replace_label_data): Delete.
8385 (replace_label): Take the old label, new label and update-nuses flag
8386 as direct arguments. Return void.
8387 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
8388 * rtlanal.c (replace_label): Update interface as above. Handle
8389 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
8390 iterator. Use FOR_EACH_SUBRTX_PTR.
8391
8392 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8393
8394 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
8395 with const_rtx parameters.
8396 * varasm.c (get_pool_constant): Likewise.
8397 * rtlanal.c (rtx_referenced_p_1): Delete.
8398 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8399 Assert that the rtx we're looking for is nonnull. Allow searches
8400 for constant pool SYMBOL_REFs.
8401
8402 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8403
8404 * reload1.c: Include rtl-iter.h.
8405 (note_reg_elim_costly): Turn from being a for_each_rtx callback
8406 to being a function that examines each subrtx itself.
8407 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
8408
8409 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8410
8411 * regcprop.c (cprop_find_used_regs_1): Delete.
8412 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8413
8414 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8415
8416 * regcprop.c: Include rtl-iter.h.
8417 (kill_value): Take a const_rtx.
8418 (kill_autoinc_value): Turn from being a for_each_rtx callback
8419 to being a function that examines each subrtx itself.
8420 (copyprop_hardreg_forward_1): Update accordingly.
8421
8422 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8423
8424 * reg-stack.c: Include rtl-iter.h.
8425 (subst_stack_regs_in_debug_insn): Delete.
8426 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
8427 instead of for_each_rtx.
8428
8429 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8430
8431 * lower-subreg.c (find_decomposable_subregs): Turn from being
8432 a for_each_rtx callback to being a function that examines each
8433 subrtx itself. Remove handling of null rtxes.
8434 (decompose_multiword_subregs): Update accordingly.
8435
8436 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8437
8438 * lower-subreg.c (adjust_decomposed_uses): Delete.
8439 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
8440 Remove handling of null rtxes.
8441
8442 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8443
8444 * lower-subreg.c: Include rtl-iter.h.
8445 (resolve_subreg_use): Turn from being a for_each_rtx callback
8446 to being a function that examines each subrtx itself. Remove
8447 handling of null rtxes.
8448 (resolve_reg_notes, resolve_simple_move): Update accordingly.
8449 (decompose_multiword_subregs): Likewise.
8450
8451 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8452
8453 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
8454 to being a function that examines each subrtx itself.
8455 (simplify_using_condition, simplify_using_initial_values): Update
8456 accordingly.
8457
8458 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8459
8460 * loop-iv.c: Include rtl-iter.h.
8461 (find_single_def_src): New function.
8462 (replace_single_def_regs): Turn from being a for_each_rtx callback
8463 to being a function that examines each subrtx itself.
8464 (replace_in_expr, simplify_using_initial_values): Update accordingly.
8465
8466 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8467
8468 * jump.c (eh_returnjump_p_1): Delete.
8469 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8470 Remove handling of null rtxes.
8471
8472 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8473
8474 * jump.c: Include rtl-iter.h.
8475 (returnjump_p_1): Delete.
8476 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8477 Remove handling of null rtxes.
8478
8479 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8480
8481 * ira.c: Include rtl-iter.h.
8482 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
8483 to being a function that examines each subrtx itself. Remove
8484 handling of null rtxes.
8485 (update_equiv_regs): Update call accordingly.
8486
8487 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8488
8489 * fwprop.c: Include rtl-iter.h.
8490 (varying_mem_p): Turn from being a for_each_rtx callback to being
8491 a function that examines each subrtx itself.
8492 (propagate_rtx): Update accordingly.
8493
8494 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8495
8496 * function.c: Include rtl-iter.h
8497 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
8498 callback to being a function that examines each subrtx itself.
8499 Return the changed flag.
8500 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
8501 (instantiate_virtual_regs): Update calls accordingly.
8502
8503 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8504
8505 * final.c: Include rtl-iter.h.
8506 (mark_symbol_ref_as_used): Delete.
8507 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
8508 for_each_rtx.
8509
8510 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8511
8512 * emit-rtl.c: Include rtl-iter.h.
8513 (find_auto_inc): Turn from being a for_each_rtx callback to being
8514 a function that examines each subrtx itself. Assume the first operand
8515 to an RTX_AUTOINC is the automodified register.
8516 (try_split): Update call accordingly.
8517
8518 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8519
8520 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
8521 Return a bool, inverting the result so that 0/false means "not ok".
8522 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
8523 subrtxes of a CONST.
8524 (mem_loc_descriptor, add_const_value_attribute)
8525 (resolve_addr_in_expr): Update calls accordingly.
8526
8527 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8528
8529 * dwarf2out.c: Include rtl-iter.h.
8530 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
8531 Remove unused data parameter. Return a bool, inverting the result
8532 so that 0/false means "not ok".
8533 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
8534 instead of for_each_rtx.
8535
8536 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8537
8538 * dse.c: Include rtl-iter.h.
8539 (check_mem_read_rtx): Change void * parameter to real type.
8540 Remove return value.
8541 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
8542 for_each_rtx. Don't handle null rtxes.
8543
8544 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8545
8546 * df-problems.c: Include rtl-iter.h.
8547 (find_memory): Turn from being a for_each_rtx callback to being
8548 a function that examines each subrtx itself. Continue to look for
8549 volatile references even after a nonvolatile one has been found.
8550 (can_move_insns_across): Update calls accordingly.
8551
8552 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8553
8554 * ddg.c (walk_mems_2, walk_mems_1): Delete.
8555 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
8556 to iterate over subrtxes. Return a bool rather than an int.
8557
8558 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8559
8560 * ddg.c: Include rtl-iter.h.
8561 (mark_mem_use_1): Rename to...
8562 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
8563 instead of for_each_rtx.
8564 (mem_read_insn_p): Update accordingly.
8565
8566 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8567
8568 * cse.c (change_cc_mode_args): Delete.
8569 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
8570 a function that examines each subrtx itself. Take the fields of
8571 change_cc_mode_args as argument and return void.
8572 (cse_change_cc_mode_insn): Update calls accordingly.
8573
8574 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8575
8576 * cse.c (is_dead_reg): Change argument to const_rtx.
8577 (dead_debug_insn_data): Delete.
8578 (is_dead_debug_insn): Expand commentary. Turn from being a
8579 for_each_rtx callback to being a function that examines
8580 each subrtx itself. Take the fields of dead_debug_insn_data
8581 as argument.
8582 (delete_trivially_dead_insns): Update call accordingly.
8583
8584 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8585
8586 * cse.c (check_for_label_ref): Move earlier in file. Turn from
8587 being a for_each_rtx callback to being a function that examines
8588 each subrtx itself.
8589 (cse_extended_basic_block): Update call accordingly.
8590
8591 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8592
8593 * cse.c (check_dependence_data): Delete.
8594 (check_dependence): Change from being a for_each_rtx callback to being
8595 a function that examines all subrtxes itself. Don't handle null rtxes.
8596 (invalidate): Update call accordingly.
8597
8598 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8599
8600 * cse.c: Include rtl-iter.h.
8601 (approx_reg_cost_1): Delete.
8602 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8603 Don't handle null rtxes.
8604
8605 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8606
8607 * cfgcleanup.c: Include rtl-iter.h.
8608 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
8609 to being a function that examines each subrtx itself.
8610 (thread_jump): Update accordingly.
8611
8612 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8613
8614 * combine-stack-adj.c: Include rtl-iter.h.
8615 (record_stack_refs_data): Delete.
8616 (record_stack_refs): Turn from being a for_each_rtx callback
8617 to being a function that examines each subrtx itself.
8618 Take a pointer to the reflist. Invert sense of return value
8619 so that true means success and false means failure. Don't
8620 handle null rtxes.
8621 (combine_stack_adjustments_for_block): Update accordingly.
8622
8623 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8624
8625 * combine.c (record_truncated_value): Turn from being a for_each_rtx
8626 callback to a function that takes an rtx and returns a bool
8627 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
8628 for_each_rtx.
8629
8630 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8631
8632 * combine.c: Include rtl-iter.h.
8633 (unmentioned_reg_p_1): Delete.
8634 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
8635 Don't handle null rtxes.
8636
8637 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8638
8639 * calls.c: Include rtl-iter.h.
8640 (internal_arg_pointer_based_exp_1): Delete.
8641 (internal_arg_pointer_based_exp): Take a const_rtx.
8642 Use FOR_EACH_SUBRTX to iterate over subrtxes.
8643
8644 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8645
8646 * caller-save.c: Include rtl-iter.h.
8647 (add_used_regs_1): Delete.
8648 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
8649 to iterate over subrtxes. Assert that any remaining pseudos
8650 have been spilled.
8651
8652 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8653
8654 * bt-load.c: Include rtl-iter.h.
8655 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
8656 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
8657 to iterate over subrtxes.
8658 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
8659 find_btr_use rather than btr_referenced_p.
8660
8661 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8662
8663 * alias.c: Include rtl-iter.h.
8664 (refs_newer_value_cb): Delete.
8665 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
8666
8667 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
8668
8669 * rtl-iter.h: New file.
8670 * rtlanal.c: Include it.
8671 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
8672 (generic_subrtx_iterator <T>::add_single_to_queue)
8673 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
8674 (generic_subrtx_iterator <T>::free_array): New functions.
8675 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
8676 (generic_subrtx_iterator <const_rtx_accessor>)
8677 (generic_subrtx_iterator <rtx_var_accessor>
8678 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
8679 (setup_reg_subrtx_bounds): New function.
8680 (init_rtlanal): Call it.
8681
8682 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
8683
8684 PR target/62261
8685 * config/sh/sh.md (ashlsi3): Handle negative shift count for
8686 TARGET_SHMEDIA.
8687 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
8688
8689 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
8690
8691 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
8692
8693 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8694
8695 * rtl.h (JUMP_LABEL_AS_INSN): New.
8696
8697 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8698
8699 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
8700 rtx_expr_list **.
8701 (alloc_EXPR_LIST): Strengthen return type from rtx to
8702 rtx_expr_list *.
8703 (remove_free_EXPR_LIST_node): Likewise for param.
8704 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
8705 from rtx to rtx_expr_list *.
8706 * sched-int.h (struct deps_desc): Strengthen fields
8707 "pending_read_mems" and "pending_write_mems" from rtx to
8708 rtx_expr_list *.
8709
8710 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
8711 rtx to rtx_expr_list *.
8712 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
8713 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
8714 rtx_expr_list **.
8715 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
8716 from rtx to rtx_expr_list *.
8717 * loop-iv.c (simplify_using_initial_values): Strengthen local
8718 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
8719 "pnote_next" from rtx * to rtx_expr_list **.
8720 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
8721 param "exprp" from rtx * to rtx_expr_list **.
8722 (add_insn_mem_dependence): Strengthen local "mem_list" from
8723 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
8724 to rtx_expr_list *.
8725 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
8726 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
8727 param "old_mems_p" from rtx * to rtx_expr_list **.
8728 * var-tracking.c (struct adjust_mem_data): Strengthen field
8729 "side_effects" from rtx to rtx_expr_list *.
8730 (adjust_insn): Replace NULL_RTX with NULL when assigning to
8731 rtx_expr_list *.
8732 (prepare_call_arguments): Likewise.
8733
8734 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8735
8736 * function.h (struct rtl_data): Strengthen field
8737 "x_stack_slot_list" from rtx to rtx_expr_list *.
8738
8739 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
8740 when assigning to stack_slot_list.
8741
8742 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8743
8744 * function.h (struct rtl_data): Strengthen field
8745 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
8746 * rtl.h (remove_node_from_expr_list): Strengthen second param from
8747 rtx * to rtx_expr_list **.
8748
8749 * cfgbuild.c (make_edges): In loop over
8750 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
8751 rtx_expr_list *, and use methods of the latter class to clarify
8752 the code.
8753 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
8754 rtx_expr_list *, and use methods of the latter class to clarify
8755 the code.
8756 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8757 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8758 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
8759 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
8760 to rtx_expr_list *. Use methods of the latter class to clarify
8761 the code.
8762
8763 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8764
8765 * function.h (struct expr_status): Strengthen field
8766 "x_forced_labels" from rtx to rtx_expr_list *.
8767
8768 * cfgbuild.c (make_edges): Split local "x" into two locals,
8769 strengthening one from rtx to rtx_expr_list *, and using methods
8770 of said class.
8771 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
8772 loop over forced_labels, introduce strengthen it from rtx to
8773 rtx_expr_list *, using methods to clarify the code.
8774 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
8775 to rtx_expr_list *, using methods of said class to clarify the
8776 code.
8777 * reload1.c (set_initial_label_offsets): Split local "x" into two
8778 per-loop variables, strengthening the first from rtx to
8779 rtx_expr_list * and using methods.
8780
8781 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8782
8783 * coretypes.h (class rtx_expr_list): Add forward declaration.
8784 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
8785 * gengenrtl.c (special_rtx): Add EXPR_LIST.
8786 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
8787 invariant: GET_CODE (X) == EXPR_LIST.
8788 (is_a_helper <rtx_expr_list *>::test): New.
8789 (rtx_expr_list::next): New.
8790 (rtx_expr_list::element): New.
8791 (gen_rtx_EXPR_LIST): New.
8792
8793 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8794
8795 * varasm.c (mark_constants): Convert a GET_CODE check into a
8796 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8797 Use methods of rtx_sequence to clarify the code.
8798
8799 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8800
8801 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
8802 local "seq" via a checked cast, and use methods of rtx_sequence
8803 to simplify the code.
8804
8805 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8806
8807 * resource.c (mark_referenced_resources): Strengthen local
8808 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
8809 using methods of rtx_sequence to clarify the code.
8810 (find_dead_or_set_registers): Within the switch statement, convert
8811 a GET_CODE check to a dyn_cast, introducing local "seq". Within
8812 the JUMP_P handling, introduce another local "seq", adding a
8813 checked cast to rtx_sequence *. In both cases, use methods of
8814 rtx_sequence to clarify the code.
8815 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
8816 via a checked cast, and use methods of rtx_sequence to simplify
8817 the code.
8818
8819 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8820
8821 * reorg.c (redundant_insn): In two places in the function, replace
8822 a check of GET_CODE with a dyn_cast, introducing local "seq", and
8823 usings methods of rtx_sequence to clarify the code.
8824
8825 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8826
8827 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
8828 local "seq" with a checked cast, and use methods of rtx_sequence
8829 to clarify the code.
8830
8831 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8832
8833 * function.c (contains): Introduce local "seq" for PATTERN (insn),
8834 with a checked cast, in the region for where we know it's a
8835 SEQUENCE. Use methods of rtx_sequence.
8836
8837 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8838
8839 * final.c (get_attr_length_1): Replace GET_CODE check with a
8840 dyn_cast, introducing local "seq" and the use of methods of
8841 rtx_sequence.
8842 (shorten_branches): Likewise, introducing local "body_seq".
8843 Strengthen local "inner_insn" from rtx to rtx_insn *.
8844 (reemit_insn_block_notes): Replace GET_CODE check with a
8845 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
8846 Use methods of rtx_sequence.
8847 (final_scan_insn): Likewise, introducing local "seq" for when
8848 "body" is known to be a SEQUENCE, using its methods.
8849
8850 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8851
8852 * except.c (can_throw_external): Strengthen local "seq" from rtx
8853 to rtx_sequence *. Use methods of rtx_sequence.
8854 (insn_nothrow_p): Likewise.
8855
8856 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8857
8858 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
8859 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
8860 Use methods of rtx_sequence.
8861 (scan_trace): Likewise for local "pat".
8862
8863 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8864
8865 * coretypes.h (class rtx_sequence): Add forward declaration.
8866 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
8867 invariant: GET_CODE (X) == SEQUENCE.
8868 (is_a_helper <rtx_sequence *>::test): New.
8869 (is_a_helper <const rtx_sequence *>::test): New.
8870 (rtx_sequence::len): New.
8871 (rtx_sequence::element): New.
8872 (rtx_sequence::insn): New.
8873
8874 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8875
8876 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
8877 rtx_insn_list **.
8878 (alloc_INSN_LIST): Strengthen return type from rtx to
8879 rtx_insn_list *.
8880 (copy_INSN_LIST): Likewise for return type and param.
8881 (concat_INSN_LIST): Likewise for both params and return type.
8882 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
8883 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
8884 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
8885 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
8886
8887 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
8888 "implicit_sets", "control_uses", "clobbers" from rtx to
8889 rtx_insn_list *.
8890 (struct deps_desc): Likewise for fields "pending_read_insns",
8891 "pending_write_insns", "pending_jump_insns",
8892 "last_pending_memory_flush", "last_function_call",
8893 "last_function_call_may_noreturn", "sched_before_next_call",
8894 "sched_before_next_jump".
8895 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
8896 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
8897
8898 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
8899 from rtx to rtx_insn_list *.
8900 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
8901 rtx_insn_list *.
8902
8903 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
8904 to rtx_insn_list **.
8905 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
8906 rtx_insn_list *.
8907 (queue_insn): Likewise for local "link".
8908 (struct haifa_saved_data): Strengthen field "insn_queue" from
8909 rtx * to rtx_insn_list **.
8910 (save_backtrack_point): Update allocation of save->insn_queue to
8911 reflect the strengthening of elements from rtx to rtx_insn_list *.
8912 (queue_to_ready): Strengthen local "link" from rtx to
8913 rtx_insn_list *; use methods "next" and "insn" when traversing the
8914 list.
8915 (early_queue_to_ready): Likewise for locals "link", "next_link",
8916 "prev_link".
8917 (schedule_block): Update allocation of insn_queue to reflect the
8918 strengthening of elements from rtx to rtx_insn_list *. Strengthen
8919 local "link" from rtx to rtx_insn_list *, and use methods when
8920 working it.
8921 (add_to_speculative_block): Strengthen locals "twins" and
8922 "next_node" from rtx to rtx_insn_list *, and use methods when
8923 working with them. Strengthen local "twin" from rtx to
8924 rtx_insn *, eliminating a checked cast.
8925 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
8926 from rtx to rtx_insn_list *, and use methods when working with
8927 them.
8928
8929 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
8930 from rtx to rtx_insn_list *, adding a checked cast.
8931 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
8932 rtx_insn_list **.
8933 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
8934 "newlink" from rtx to rtx_insn_list *. Strengthen local
8935 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
8936 from rtx to rtx_insn *.
8937 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
8938 from rtx to rtx_insn_list *. Use methods of the latter class.
8939 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
8940 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
8941 (remove_free_INSN_LIST_node): Strengthen return type and local
8942 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
8943 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
8944 rtx_insn_list *, using "insn" method.
8945
8946 * sched-deps.c (add_dependence_list): Strengthen param "list"
8947 from rtx to rtx_insn_list *, and use methods when working with it.
8948 (add_dependence_list_and_free): Strengthen param "listp" from
8949 rtx * to rtx_insn_list **.
8950 (remove_from_dependence_list): Strenghten param "listp" from rtx *
8951 to rtx_insn_list **, and use methods when working with *listp.
8952 (remove_from_both_dependence_lists): Strengthen param "listp" from
8953 rtx * to rtx_insn_list **
8954 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
8955 to rtx_insn_list **. Eliminate local "link", in favor of two new
8956 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
8957 respectively.
8958 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
8959 by introducing local "cond_deps".
8960 (remove_from_deps): Strengthen param "insn" from rtx to
8961 rtx_insn *.
8962
8963 * sched-rgn.c (concat_insn_mem_list): Strengthen param
8964 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
8965 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
8966 Use methods of rtx_insn_list.
8967
8968 * store-motion.c (struct st_expr): Strengthen fields
8969 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
8970 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
8971 rtx_insn_list *.
8972 (find_moveable_store): Split out "tmp" into multiple more-tightly
8973 scoped locals. Use methods of rtx_insn_list *.
8974 (compute_store_table): Strengthen local "tmp" from rtx to
8975 rtx_insn *. Use methods of rtx_insn_list *.
8976
8977 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8978
8979 * coretypes.h (class rtx_insn_list): Add forward declaration.
8980 * rtl.h (class rtx_insn_list): New subclass of rtx_def
8981 (is_a_helper <rtx_insn_list *>::test): New.
8982 (rtx_insn_list::next): New.
8983 (rtx_insn_list::insn): New.
8984 (gen_rtx_INSN_LIST): Add prototype.
8985 * emit-rtl.c (gen_rtx_INSN_LIST): New.
8986 * gengenrtl.c (special_rtx): Add INSN_LIST.
8987
8988 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8989
8990 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
8991 "prev" from rtx to rtx_insn *.
8992
8993 2014-08-27 David Malcolm <dmalcolm@redhat.com>
8994
8995 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
8996 functions. Require merely an rtx for now, not an rtx_insn *.
8997 (BLOCK_FOR_INSN): Likewise.
8998 (INSN_LOCATION): Likewise.
8999 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9000
9001 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9002
9003 * rtl.h (PATTERN): Convert this macro into a pair of inline
9004 functions, for now, requiring const_rtx and rtx.
9005
9006 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9007
9008 * target.def (unwind_emit): Strengthen param "insn" from rtx to
9009 rtx_insn *.
9010 (final_postscan_insn): Likewise.
9011 (adjust_cost): Likewise.
9012 (adjust_priority): Likewise.
9013 (variable_issue): Likewise.
9014 (macro_fusion_pair_p): Likewise.
9015 (dfa_post_cycle_insn): Likewise.
9016 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9017 (first_cycle_multipass_issue): Likewise.
9018 (dfa_new_cycle): Likewise.
9019 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9020 (speculate_insn): Likewise for param "insn".
9021 (gen_spec_check): Likewise for params "insn" and "label".
9022 (get_insn_spec_ds): Likewise for param "insn".
9023 (get_insn_checked_ds): Likewise.
9024 (dispatch_do): Likewise.
9025 (dispatch): Likewise.
9026 (cannot_copy_insn_p): Likewise.
9027 (invalid_within_doloop): Likewise.
9028 (legitimate_combined_insn): Likewise.
9029 (needed): Likewise.
9030 (after): Likewise.
9031
9032 * doc/tm.texi: Automatically updated to reflect changes to
9033 target.def.
9034
9035 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9036 working with insn.
9037 (schedule_block): Likewise.
9038 (sched_init): Likewise.
9039 (sched_speculate_insn): Strengthen param "insn" from rtx to
9040 rtx_insn *.
9041 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9042 working with insn.
9043 * hooks.c (hook_bool_rtx_true): Rename to...
9044 hook_bool_rtx_insn_true): ...this, and strengthen first param from
9045 rtx to rtx_insn *.
9046 (hook_constcharptr_const_rtx_null): Rename to...
9047 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9048 first param from const_rtx to const rtx_insn *.
9049 (hook_bool_rtx_int_false): Rename to...
9050 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9051 param from rtx to rtx_insn *.
9052 (hook_void_rtx_int): Rename to...
9053 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9054 rtx to rtx_insn *.
9055
9056 * hooks.h (hook_bool_rtx_true): Rename to...
9057 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9058 rtx to rtx_insn *.
9059 (hook_bool_rtx_int_false): Rename to...
9060 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9061 param from rtx to rtx_insn *.
9062 (hook_void_rtx_int): Rename to...
9063 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9064 rtx to rtx_insn *.
9065 (hook_constcharptr_const_rtx_null): Rename to...
9066 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9067 first param from const_rtx to const rtx_insn *.
9068
9069 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9070 and local "prev" from rtx to rtx_insn *.
9071
9072 * sched-int.h (sched_speculate_insn): Strengthen first param from
9073 rtx to rtx_insn *.
9074
9075 * sel-sched.c (create_speculation_check): Likewise for local "label".
9076 * targhooks.c (default_invalid_within_doloop): Strengthen param
9077 "insn" from const_rtx to const rtx_insn *.
9078 * targhooks.h (default_invalid_within_doloop): Strengthen param
9079 from const_rtx to const rtx_insn *.
9080
9081 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9082 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9083
9084 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9085 "insn".
9086 (arc_invalid_within_doloop): Likewise, with const.
9087
9088 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9089 (arm_cannot_copy_insn_p): Likewise for param "insn".
9090 (arm_unwind_emit): Likewise.
9091
9092 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9093 "dep_insn".
9094
9095 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9096 (c6x_variable_issue): Likewise. Removed now-redundant checked
9097 cast.
9098 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
9099
9100 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
9101 Likewise for param "insn".
9102 (epiphany_mode_after): Likewise.
9103 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
9104 params "insn", "dep_insn".
9105 (epiphany_mode_needed): Likewise for param "insn".
9106 (epiphany_mode_after): Likewise.
9107
9108 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
9109 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
9110 (ix86_avx_u128_mode_needed): Likewise.
9111 (ix86_i387_mode_needed): Likewise.
9112 (ix86_mode_needed): Likewise.
9113 (ix86_avx_u128_mode_after): Likewise.
9114 (ix86_mode_after): Likewise.
9115 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
9116 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
9117 (ix86_adjust_priority): Likewise for param "insn".
9118 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
9119 (do_dispatch): Likewise.
9120 (has_dispatch): Likewise.
9121 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
9122
9123 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
9124 reflect renaming of default hook implementation from
9125 hook_constcharptr_const_rtx_null to
9126 hook_constcharptr_const_rtx_insn_null.
9127 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
9128 rtx to rtx_insn *.
9129 (ia64_variable_issue): Likewise for param "insn".
9130 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
9131 (ia64_dfa_new_cycle): Likewise.
9132 (ia64_get_insn_spec_ds): Likewise.
9133 (ia64_get_insn_checked_ds): Likewise.
9134 (ia64_speculate_insn): Likewise.
9135 (ia64_gen_spec_check): Likewise for params "insn", "label".
9136 (ia64_asm_unwind_emit): Likewise for param "insn".
9137
9138 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
9139
9140 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
9141 "insn", "def_insn".
9142 (m68k_sched_variable_issue): Likewise for param "insn".
9143
9144 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
9145 "def_insn".
9146
9147 * config/microblaze/microblaze.c (microblaze_adjust_cost):
9148 Likewise for params "insn", "dep".
9149
9150 * config/mips/mips.c (mips_adjust_cost): Likewise.
9151 (mips_variable_issue): Likewise for param "insn".
9152 (mips_final_postscan_insn): Likewise.
9153
9154 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
9155 for params "insn", "dep".
9156
9157 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
9158 "dep_insn".
9159 (pa_adjust_priority): Likewise for param "insn".
9160
9161 * config/picochip/picochip.c (picochip_sched_adjust_cost):
9162 Likewise for params "insn", "dep_insn".
9163
9164 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
9165 param "insn".
9166 (rs6000_variable_issue): Likewise.
9167 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
9168 (rs6000_debug_adjust_cost): Likewise.
9169 (rs6000_adjust_priority): Likewise for param "insn".
9170 (rs6000_use_sched_lookahead_guard): Likewise.
9171 (get_next_active_insn): Likewise for return type and both params.
9172 (redefine_groups): Likewise for params "prev_head_insn", "tail"
9173 and locals "insn", "next_insn".
9174 (pad_groups): Likewise.
9175
9176 * config/s390/s390.c (s390_adjust_priority): Likewise for param
9177 "insn".
9178 (s390_cannot_copy_insn_p): Likewise.
9179 (s390_sched_variable_issue): Likewise for third param, eliminating
9180 checked cast.
9181 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
9182 default hook implementation from hook_constcharptr_const_rtx_null
9183 to hook_constcharptr_const_rtx_insn_null.
9184
9185 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
9186 from rtx to rtx_insn *.
9187 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
9188 (sh_variable_issue): Likewise for param "insn".
9189 (sh_dfa_new_cycle): Likewise.
9190 (sh_mode_needed): Likewise.
9191 (sh_mode_after): Likewise.
9192
9193 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
9194 params "insn", "dep_insn".
9195 (hypersparc_adjust_cost): Likewise.
9196 (sparc_adjust_cost): Likewise.
9197
9198 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
9199 param, eliminated checked cast.
9200 (spu_sched_adjust_cost): Likewise for first and third params.
9201
9202 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
9203 params "insn" and "dep_insn" from rtx to rtx_insn *.
9204
9205 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
9206
9207 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9208
9209 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
9210 (set_is_load_p): ...this, updating to work on a SET pattern rather
9211 than an insn.
9212 (is_store_insn): Rename to...
9213 (set_is_store_p): ...this, updating to work on a SET pattern
9214 rather than an insn.
9215 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
9216 top of function to where it is needed. Rewrite the bogus
9217 condition that checks for "insn" and "dep" being PARALLEL to
9218 instead use single_set, introducing locals "insn_set" and
9219 "dep_set". Given that we only ever returned "cost" for a non-pair
9220 of SETs, bail out early if we don't have a pair of SET.
9221 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
9222 use the new locals "insn_set" and "dep_set", and update calls to
9223 is_load_insn and is_store_insn to be calls to set_is_load_p and
9224 set_is_store_p.
9225
9226 2014-08-27 Guozhi Wei <carrot@google.com>
9227
9228 PR target/62262
9229 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
9230 amount before using it.
9231
9232 2014-08-27 Richard Biener <rguenther@suse.de>
9233
9234 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
9235 get_maxval_strlen inside a more useful API.
9236 (gimple_fold_builtin_with_strlen): Remove and fold into ...
9237 (gimple_fold_builtin): ... caller.
9238 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
9239 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
9240 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
9241 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
9242 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
9243 gimple_fold_builtin_sprintf): Adjust to compute maxval
9244 themselves.
9245
9246 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
9247
9248 PR other/62248
9249 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
9250
9251 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9252 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9253 Anna Tikhonova <anna.tikhonova@intel.com>
9254 Ilya Tocar <ilya.tocar@intel.com>
9255 Andrey Turetskiy <andrey.turetskiy@intel.com>
9256 Ilya Verbin <ilya.verbin@intel.com>
9257 Kirill Yukhin <kirill.yukhin@intel.com>
9258 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9259
9260 * config/i386/sse.md
9261 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
9262 Use `concat_tg_mode' attribute to determine asm register size.
9263
9264 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9265 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9266 Anna Tikhonova <anna.tikhonova@intel.com>
9267 Ilya Tocar <ilya.tocar@intel.com>
9268 Andrey Turetskiy <andrey.turetskiy@intel.com>
9269 Ilya Verbin <ilya.verbin@intel.com>
9270 Kirill Yukhin <kirill.yukhin@intel.com>
9271 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9272
9273 * config/i386/sse.md
9274 (define_mode_iterator VI48_AVX512VL): New.
9275 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
9276 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
9277 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
9278 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9279 with VI1): Change mode iterator.
9280 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9281 with VI_ULOADSTORE_BW_AVX512VL): New.
9282 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9283 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9284 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9285 with VI1): Change mode iterator.
9286 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9287 with VI_ULOADSTORE_BW_AVX512VL): New.
9288 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
9289 with VI_ULOADSTORE_F_AVX512VL): Ditto.
9290 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9291 with VI1): Change mode iterator.
9292 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9293 with VI_ULOADSTORE_BW_AVX512VL): New.
9294 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
9295 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
9296 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
9297 (define_insn "<avx512>_storedqu<mode>_mask" with
9298 VI48_AVX512VL): New.
9299 (define_insn "<avx512>_storedqu<mode>_mask" with
9300 VI12_AVX512VL): Ditto.
9301
9302 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9304 Anna Tikhonova <anna.tikhonova@intel.com>
9305 Ilya Tocar <ilya.tocar@intel.com>
9306 Andrey Turetskiy <andrey.turetskiy@intel.com>
9307 Ilya Verbin <ilya.verbin@intel.com>
9308 Kirill Yukhin <kirill.yukhin@intel.com>
9309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9310
9311 * config/i386/sse.md
9312 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
9313 (define_mode_iterator VI48_AVX512BW): New.
9314 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
9315 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9316 with VI48_AVX2_48_AVX512F): New.
9317 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
9318 with VI2_AVX512VL): Ditto.
9319
9320 2014-08-27 Richard Biener <rguenther@suse.de>
9321
9322 PR middle-end/62239
9323 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
9324 (fold_builtin_3): Do not fold strcat_chk here.
9325 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
9326 from builtins.c.
9327 (gimple_fold_builtin): Fold strcat_chk here.
9328
9329 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
9330
9331 * dwarf2out.h (dwarf2out_decl): Remove prototype.
9332 * dwarf2out.c (dwarf2out_decl): Make static.
9333
9334 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
9335
9336 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
9337
9338 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9339
9340 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
9341 from rtx to rtx_insn *.
9342 (cselib_lookup_from_insn): Likewise for final param.
9343 (cselib_subst_to_values_from_insn): Likewise.
9344 (cselib_add_permanent_equiv): Likewise.
9345
9346 * cselib.c (cselib_current_insn): Likewise for this variable.
9347 (cselib_subst_to_values_from_insn): Likewise for param "insn".
9348 (cselib_lookup_from_insn): Likewise.
9349 (cselib_add_permanent_equiv): Likewise for param "insn" and local
9350 "save_cselib_current_insn".
9351 (cselib_process_insn): Replace use of NULL_RTX with NULL.
9352
9353 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
9354 from rtx to rtx_insn *.
9355
9356 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9357
9358 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
9359 rtx_insn *.
9360
9361 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9362
9363 * df.h (df_dump_insn_problem_function): Strengthen first param of
9364 this callback from const_rtx to const rtx_insn *.
9365 (struct df_insn_info): Strengthen field "insn" from rtx to
9366 rtx_insn *.
9367 (DF_REF_INSN): Eliminate this function, reinstating the older
9368 macro definition.
9369 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
9370 (df_reg_defined): Likewise.
9371 (df_find_use): Likewise.
9372 (df_reg_used): Likewise.
9373 (df_dump_insn_top): Strengthen param 1 from const_rtx to
9374 const rtx_insn *.
9375 (df_dump_insn_bottom): Likewise.
9376 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
9377 (df_insn_debug_regno): Likewise.
9378 (debug_df_insn): Likewise.
9379 (df_rd_simulate_one_insn): Likewise for param 2.
9380 (df_word_lr_simulate_defs): Likewise for param 1.
9381 (df_word_lr_simulate_uses): Likewise.
9382 (df_md_simulate_one_insn): Likewise for param 2.
9383 (df_simulate_find_noclobber_defs): Likewise for param 1.
9384 (df_simulate_find_defs): Likewise.
9385 (df_simulate_defs): Likewise.
9386 (df_simulate_uses): Likewise.
9387 (df_simulate_one_insn_backwards): Likewise for param 2.
9388 (df_simulate_one_insn_forwards): Likewise.
9389 (df_uses_create): Likewise for param 2.
9390 (df_insn_create_insn_record): Likewise for param 1.
9391 (df_insn_delete): Likewise.
9392 (df_insn_rescan): Likewise.
9393 (df_insn_rescan_debug_internal): Likewise.
9394 (df_insn_change_bb): Likewise.
9395 (df_notes_rescan): Likewise.
9396 * rtl.h (remove_death): Likewise for param 2.
9397 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
9398 const rtx_insn *.
9399 * sched-int.h (reemit_notes): Strengthen param from rtx to
9400 rtx_insn *.
9401 * valtrack.h (propagate_for_debug): Likewise for param 1.
9402
9403 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
9404 local "tmp_rtx" from const_rtx to const rtx_insn *.
9405 * combine.c (remove_death): Strengthen param "insn" from rtx to
9406 rtx_insn *.
9407 (move_deaths): Likewise for local "where_dead".
9408 * cse.c (delete_trivially_dead_insns): Introduce local
9409 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
9410 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
9411 rtx_insn *.
9412 (df_reg_defined): Likewise.
9413 (df_find_use): Likewise.
9414 (df_reg_used): Likewise.
9415 (df_dump_insn_problem_data): Strengthen param "insn" from
9416 const_rtx to const rtx_insn *.
9417 (df_dump_insn_top): Likewise.
9418 (df_dump_insn_bottom): Likewise.
9419 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
9420 (df_insn_debug_regno): Likewise.
9421 (debug_df_insn): Likewise.
9422 (DF_REF_INSN): Delete.
9423 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
9424 from rtx to rtx_insn *.
9425 (df_chain_insn_top_dump): Strengthen param "insn" from
9426 const_rtx to const rtx_insn *.
9427 (df_chain_insn_bottom_dump): Likewise.
9428 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
9429 rtx_insn *.
9430 (df_word_lr_simulate_uses): Likewise.
9431 (df_print_note): Likewise.
9432 (df_remove_dead_and_unused_notes): Likewise.
9433 (df_set_unused_notes_for_mw): Likewise.
9434 (df_set_dead_notes_for_mw): Likewise.
9435 (df_create_unused_note): Likewise.
9436 (df_simulate_find_defs): Likewise.
9437 (df_simulate_find_uses): Likewise.
9438 (df_simulate_find_noclobber_defs): Likewise.
9439 (df_simulate_defs): Likewise.
9440 (df_simulate_uses): Likewise.
9441 (df_simulate_one_insn_backwards): Likewise.
9442 (df_simulate_one_insn_forwards): Likewise.
9443 (df_md_simulate_one_insn): Likewise.
9444 * df-scan.c (df_uses_create): Likewise.
9445 (df_insn_create_insn_record): Likewise.
9446 (df_insn_delete): Likewise.
9447 (df_insn_rescan): Likewise.
9448 (df_insn_rescan_debug_internal): Likewise.
9449 (df_insn_change_bb): Likewise.
9450 (df_notes_rescan): Likewise.
9451 (df_refs_add_to_chains): Likewise.
9452 (df_insn_refs_verify): Likewise.
9453 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
9454 when invoking df_insn_delete.
9455 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
9456 (set_unique_reg_note): Add checked cast.
9457 * final.c (cleanup_subreg_operands): Likewise.
9458 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
9459 "insn" from rtx to rtx_insn *.
9460 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
9461 "last" from rtx to rtx_insn *.
9462 * ira-emit.c (change_regs_in_insn): New function.
9463 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
9464 Invoke change_regs_in_insn rather than change_regs.
9465 * ira.c (update_equiv_regs): Strengthen locals "insn",
9466 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
9467 for_each_rtx_in_insn rather than for_each_rtx.
9468 * recog.c (confirm_change_group): Add checked casts.
9469 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
9470 Add checked cast.
9471 (peep2_fill_buffer): Add checked cast.
9472 * rtlanal.c (remove_note): Likewise.
9473 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
9474 locals "next" "end" from rtx to rtx_insn *.
9475
9476 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9477
9478 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
9479 to rtx_insn *.
9480 (struct reg_use_data): Likewise for field "insn".
9481 (insn_cost): Likewise for param.
9482 (real_insn_for_shadow): Likewise for return type and param.
9483 (increase_insn_priority): Likewise for param 1.
9484 (debug_dependencies): Likewise for both params.
9485
9486 * haifa-sched.c (insn_delay): Likewise for param "insn".
9487 (real_insn_for_shadow): Likewise for return type and param "insn".
9488 (update_insn_after_change): Likewise for param "insn".
9489 (recompute_todo_spec): Likewise for param "next" and locals "pro",
9490 "other".
9491 (insn_cost): Likewise for param "insn".
9492 (increase_insn_priority): Likewise.
9493 (calculate_reg_deaths): Likewise.
9494 (setup_insn_reg_pressure_info): Likewise.
9495 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
9496 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
9497 (model_recompute): Likewise.
9498 (must_restore_pattern_p): Likewise for param "next".
9499 (model_excess_cost): Likewise for param "insn".
9500 (queue_remove): Likewise.
9501 (adjust_priority): Likewise for param "prev".
9502 (update_register_pressure): Likewise for param "insn".
9503 (setup_insn_max_reg_pressure): Likewise for local "insn".
9504 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
9505 (model_add_to_schedule): Likewise.
9506 (model_reset_queue_indices): Likewise for local "insn".
9507 (unschedule_insns_until): Strengthen local "recompute_vec" from
9508 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
9509 "con" from rtx to rtx_insn *.
9510 (restore_last_backtrack_point): Likewise for both locals "x". Add
9511 checked casts.
9512 (estimate_insn_tick): Likewise for param "insn".
9513 (commit_schedule): Likewise for params "prev_head", "tail" and
9514 local "x".
9515 (verify_shadows): Likewise for locals "i1", "i2".
9516 (dump_insn_stream): Likewise for params "head", "tail" and locals
9517 "next_tail", "insn".
9518 (schedule_block): Likewise for locals "insn", "x". Add a checked
9519 cast.
9520 (fix_inter_tick): Likewise for params "head", "tail".
9521 (create_check_block_twin): Likewise for local "jump".
9522 (haifa_change_pattern): Likewise for param "insn".
9523 (haifa_speculate_insn): Likewise.
9524 (dump_new_block_header): Likewise for params "head", "tail".
9525 (fix_jump_move): Likewise for param "jump".
9526 (move_block_after_check): Likewise.
9527 (sched_init_insn_luid): Likewise for param "insn".
9528 (sched_init_luids): Likewise for local "insn".
9529 (insn_luid): Likewise for param "insn".
9530 (init_h_i_d): Likewise.
9531 (haifa_init_h_i_d): Likewise for local "insn".
9532 (haifa_init_insn): Likewise for param "insn".
9533 * sched-deps.c (add_dependence): Likewise for local "real_pro",
9534 "other".
9535 (create_insn_reg_use): Likewise for param "insn".
9536 (setup_insn_reg_uses): Likewise. Add a checked cast.
9537 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
9538 "tail" from rtx to rtx_insn *.
9539 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
9540 "insn", "next_tail".
9541
9542 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9543
9544 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
9545 from rtx to rtx_insn *.
9546 (model_add_to_schedule): Likewise for locals "start", "end",
9547 "iter".
9548
9549 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9550
9551 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
9552 rtx_insn *.
9553 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
9554 "to" and locals "insn", "next", "copy". Remove now-redundant
9555 checked cast.
9556
9557 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9558
9559 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
9560 rtx_insn * and param 4 from rtx * to rtx_insn **.
9561 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
9562 param 2 from rtx * to rtx_insn **.
9563
9564 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
9565 rtx_insn * and final param from rtx * to rtx_insn **.
9566
9567 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
9568 from rtx to rtx_insn *.
9569 (try_head_merge_bb): Likewise for both locals named "move_upto".
9570 * df-problems.c (can_move_insns_across): Likewise for params
9571 "from", "to", "across_from", "across_to" and locals "insn",
9572 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
9573 rtx_insn **.
9574 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
9575 from rtx to rtx_insn *.
9576 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
9577 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
9578 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
9579 rtx_insn *.
9580 (noce_try_abs): Likewise.
9581 (noce_get_condition): Likewise for param "jump". Strengthen param
9582 "earliest" from rtx * to rtx_insn **.
9583 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
9584 rtx_insn *.
9585 (find_cond_trap): Likewise.
9586 (dead_or_predicable): Likewise for local "earliest".
9587 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
9588 checked cast.
9589 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
9590 and local "prev". Strengthen param "earliest" from rtx * to
9591 rtx_insn **.
9592 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
9593 Strengthen param "earliest" from rtx * to rtx_insn **.
9594
9595 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9596
9597 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
9598 "to" and local "insn" from rtx to rtx_insn *.
9599
9600 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9601
9602 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
9603 from rtx to rtx_insn *.
9604 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
9605 (code_motion_path_driver): Likewise for local "last_insn".
9606 (simplify_changed_insns): Likewise for local "insn".
9607
9608 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9609
9610 * rtl.h (push_to_sequence): Strengthen param from rtx to
9611 rtx_insn *.
9612 (push_to_sequence2): Likewise for both params.
9613 (delete_insns_since): Likewise for param.
9614 (reorder_insns_nobb): Likewise for all three params.
9615 (set_new_first_and_last_insn): Likewise for both params.
9616
9617 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
9618 rtx_insn *. Remove now-redundant cast.
9619 (set_last_insn): Likewise.
9620
9621 * builtins.c (expand_builtin_return): Strengthen local
9622 "call_fusage" from rtx to rtx_insn *.
9623 * cfgrtl.c (create_basic_block_structure): Likewise for local
9624 "after".
9625 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
9626 "first", "last" and local "insn".
9627 (delete_insns_since): Likewise for param "from".
9628 (reorder_insns_nobb): Likewise for params "from", "to", "after"
9629 and local "x".
9630 (push_to_sequence): Likewise for param "first" and local "last".
9631 (push_to_sequence2): Likewise for params "first" and "last".
9632 * lra.c (emit_add3_insn): Likewise for local "last".
9633 (lra_emit_add): Likewise.
9634 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
9635 "last_insn".
9636 (process_address_1): Likewise for locals "insn", last".
9637 * modulo-sched.c (ps_first_note): Likewise for return type.
9638 * optabs.c (expand_binop_directly): Likewise for param "last".
9639
9640 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9641
9642 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
9643 to rtx_insn*.
9644 * emit-rtl.c (get_last_insn_anywhere): Likewise.
9645
9646 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9647
9648 * function.h (struct sequence_stack): Strengthen fields "first"
9649 and "last" from rtx to rtx_insn *.
9650 (struct emit_status): Likewise for fields "x_first_insn" and
9651 "x_last_insn".
9652
9653 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
9654 (set_first_insn): Add checked cast.
9655 (get_last_insn): Remove now-redundant checked cast.
9656 (set_last_insn): Add checked cast.
9657
9658 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
9659 "saved_first" and "saved_last" from rtx to rtx_insn *.
9660
9661 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9662
9663 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
9664 (unlink_insn_chain): Strengthen both params from rtx to
9665 rtx_insn *.
9666
9667 * cfgrtl.c (cfg_layout_function_header): Likewise for this
9668 variable.
9669 (unlink_insn_chain): Likewise for params "first" and "last".
9670 Remove now-redundant checked cast.
9671 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
9672 (fixup_reorder_chain): Strengthen local "insn" from rtx to
9673 rtx_insn *.
9674 * emit-rtl.c (link_insn_into_chain): Likewise for all three
9675 params.
9676 (add_insn): Likewise for param "insn" and local "prev".
9677 (add_insn_after_nobb): Likewise for both params and local "next".
9678 (add_insn_before_nobb): Likewise for both params and local "prev".
9679 (add_insn_after): Rename param "after" to "uncast_after",
9680 introducing local "after" with another checked cast.
9681 (add_insn_before): Rename params "insn" and "before", giving them
9682 "uncast_" prefixes, adding the old names back using checked casts.
9683 (emit_note_after): Likewise for param "after".
9684 (emit_note_before): Likewise for param "before".
9685 (emit_label): Add a checked cast.
9686
9687 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9688
9689 * cselib.h (cselib_record_sets_hook): Strengthen initial param
9690 "insn" from rtx to rtx_insn *.
9691
9692 * cselib.c (cselib_record_sets_hook): Likewise.
9693
9694 * var-tracking.c (add_with_sets): Likewise, renaming back from
9695 "uncast_insn" to "insn" and eliminating the checked cast from rtx
9696 to rtx_insn *.
9697
9698 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9699
9700 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
9701 and "header_" from rtx to rtx_insn *.
9702 (struct basic_block_d): Likewise for field "head_" within "x"
9703 field of union basic_block_il_dependent.
9704 (BB_HEAD): Drop function...
9705 (SET_BB_HEAD): ...and this function in favor of...
9706 (BB_HEAD): ...reinstate macro.
9707 (BB_END): Drop function...
9708 (SET_BB_END): ...and this function in favor of...
9709 (BB_END): ...reinstate macro.
9710 (BB_HEADER): Drop function...
9711 (SET_BB_HEADER): ...and this function in favor of...
9712 (BB_HEADER): ...reinstate macro.
9713
9714 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
9715 (fix_crossing_unconditional_branches): Likewise.
9716 * caller-save.c (save_call_clobbered_regs): Likewise.
9717 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
9718 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
9719 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9720 (merge_blocks_move_successor_nojumps): Likewise.
9721 (outgoing_edges_match): Update use of for_each_rtx to
9722 for_each_rtx_in_insn.
9723 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
9724 (expand_gimple_cond): Likewise.
9725 (expand_gimple_tailcall): Likewise.
9726 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
9727 SET_BB_END.
9728 (construct_exit_block): Drop use of SET_BB_END.
9729 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
9730 rtx_insn *.
9731 (delete_insn): Rename param "insn" to "uncast_insn", introducing
9732 a new local "insn" with a checked cast to rtx_insn *. Drop use of
9733 SET_BB_HEAD and SET_BB_END.
9734 (create_basic_block_structure): Drop use of SET_BB_HEAD and
9735 SET_BB_END.
9736 (rtl_delete_block): Drop use of SET_BB_HEAD.
9737 (rtl_split_block): Drop use of SET_BB_END.
9738 (emit_nop_for_unique_locus_between): Likewise.
9739 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
9740 (block_label): Drop use of SET_BB_HEAD.
9741 (fixup_abnormal_edges): Drop use of SET_BB_END.
9742 (record_effective_endpoints): Drop use of SET_BB_HEADER.
9743 (relink_block_chain): Likewise.
9744 (fixup_reorder_chain): Drop use of SET_BB_END.
9745 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
9746 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
9747 rtx_insn **. Drop use of SET_BB_HEADER.
9748 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
9749 SET_BB_HEAD.
9750 (BB_HEAD): Delete this function.
9751 (SET_BB_HEAD): Likewise.
9752 (BB_END): Likewise.
9753 (SET_BB_END): Likewise.
9754 (BB_HEADER): Likewise.
9755 (SET_BB_HEADER): Likewise.
9756 * emit-rtl.c (add_insn_after): Rename param "insn" to
9757 "uncast_insn", adding a new local "insn" and a checked cast to
9758 rtx_insn *. Drop use of SET_BB_END.
9759 (remove_insn): Strengthen locals "next" and "prev" from rtx to
9760 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
9761 (reorder_insns): Drop use of SET_BB_END.
9762 (emit_insn_after_1): Strengthen param "first" and locals "last",
9763 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
9764 (emit_pattern_after_noloc): Add checked cast.
9765 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
9766 (restore_other_notes): Likewise.
9767 (move_insn): Likewise.
9768 (sched_extend_bb): Likewise.
9769 (fix_jump_move): Likewise.
9770 * ifcvt.c (noce_process_if_block): Likewise.
9771 (dead_or_predicable): Likewise.
9772 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
9773 * reg-stack.c (change_stack): Drop use of SET_BB_END.
9774 * sel-sched-ir.c (sel_move_insn): Likewise.
9775 * sel-sched.c (move_nop_to_previous_block): Likewise.
9776
9777 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
9778 SET_BB_END.
9779 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
9780
9781 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9782
9783 * basic-block.h (create_basic_block_structure): Strengthen params
9784 1 "head" and 2 "end" from rtx to rtx_insn *.
9785 * cfgrtl.c (create_basic_block_structure): Likewise.
9786 (rtl_create_basic_block): Update casts from void * to rtx to
9787 rtx_insn *, so that we can pass them as rtx_insn * to
9788 create_basic_block_structure.
9789 * sel-sched-ir.c (sel_create_basic_block): Likewise.
9790
9791 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9792
9793 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
9794 rtx_insn **.
9795 (check_for_inc_dec): Strengthen param "insn" from rtx to
9796 rtx_insn *.
9797
9798 * cselib.h (cselib_process_insn): Likewise.
9799
9800 * cselib.c (cselib_record_sets): Likewise.
9801 (cselib_process_insn): Likewise.
9802
9803 * dse.c (struct insn_info): Likewise for field "insn".
9804 (check_for_inc_dec_1): Likewise for local "insn".
9805 (check_for_inc_dec): Likewise for param "insn".
9806 (scan_insn): Likewise.
9807 (dse_step1): Likewise for local "insn".
9808
9809 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
9810 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
9811
9812 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9813
9814 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
9815 from rtx to rtx_insn *.
9816 (DEP_PRO): Delete this function and...
9817 (SET_DEP_PRO): ...this function in favor of...
9818 (DEP_PRO): ...reinstate this macro.
9819 (DEP_CON): Delete this function and...
9820 (SET_DEP_CON): ...this function in favor of...
9821 (DEP_CON): ...reinstate this old macro.
9822 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
9823 (init_dep): Likewise.
9824 (set_priorities): Likewise for both params.
9825 (sd_copy_back_deps): Likewise for params 1 and 2.
9826
9827 * haifa-sched.c (priority): Likewise for param "insn" and local
9828 "next".
9829 (set_priorities): Likewise for params "head" and "tail" and local
9830 "insn".
9831 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
9832 local "consumer".
9833 (add_to_speculative_block): Add a checked cast.
9834 (create_check_block_twin): Drop use of SET_DEP_CON.
9835 (add_jump_dependencies): Strengthen params "insn" and "jump" from
9836 rtx to rtx_insn *.
9837
9838 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
9839 Drop use of SET_DEP_PRO
9840 (init_dep): Strengthen params "pro" and "con" from rtx to
9841 rtx_insn *.
9842 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
9843 use of SET_DEP_CON.
9844 (DEP_PRO): Delete.
9845 (DEP_CON): Delete.
9846 (SET_DEP_PRO): Delete.
9847 (SET_DEP_CON): Delete.
9848
9849 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9850
9851 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
9852 from rtx to rtx_insn *.
9853 (VINSN_INSN_RTX): Eliminate rvalue function and...
9854 (SET_VINSN_INSN): ...lvalue function in favor of...
9855 (VINSN_INSN_RTX): reinstate this old macro.
9856
9857 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
9858 in favor of VINSN_INSN_RTX.
9859 (VINSN_INSN_RTX): Delete this function.
9860 (SET_VINSN_INSN_RTX): Likewise.
9861
9862 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9863
9864 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
9865 (BND_TO): Delete this function and...
9866 (SET_BND_TO): ...this functions in favor of...
9867 (BND_TO): ...reinstating this macro.
9868 (struct _fence): Strengthen field "executing_insns" from
9869 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
9870 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
9871 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
9872 and param "insn" from rtx to insn_t.
9873 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
9874 rtx_insn *.
9875
9876 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
9877 vec<rtx_insn *> .
9878 (rtx_vec_t): Likewise.
9879 (struct sched_deps_info_def): Strengthen param of "start_insn"
9880 callback from rtx to rtx_insn *. Likewise for param "insn2" of
9881 "note_mem_dep" callback and first param of "note_dep" callback.
9882
9883 * haifa-sched.c (add_to_speculative_block): Strengthen param
9884 "insn" from rtx to rtx_insn *.
9885 (clear_priorities): Likewise.
9886 (calc_priorities): Likewise for local "insn".
9887
9888 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
9889 Remove redundant checked cast.
9890 (haifa_note_mem_dep): Likewise for param "pending_insn".
9891 (haifa_note_dep): Likewise for param "elem".
9892 (note_mem_dep): Likewise for param "e".
9893 (sched_analyze_1): Add checked casts.
9894 (sched_analyze_2): Likewise.
9895
9896 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
9897 from rtx to rtx_insn *.
9898 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
9899 from vec<rtx> * to vec<rtx_insn *> *.
9900
9901 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
9902 scaffolding.
9903 (flist_add): Strengthen param "executing_insns" from
9904 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
9905 (advance_deps_context): Remove now-redundant checked cast.
9906 (init_fences): Replace uses of NULL_RTX with NULL.
9907 (merge_fences): Strengthen params "last_scheduled_insn" and
9908 "sched_next" from rtx to rtx_insn * and "executing_insns" from
9909 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
9910 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
9911 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
9912 an instruction, rather than doing double-duty as a pattern.
9913 (return_nop_to_pool): Update for change of insn_t.
9914 (deps_init_id): Remove now-redundant checked cast.
9915 (struct sched_scan_info_def): Strengthen param of "init_insn"
9916 callback from rtx to insn_t.
9917 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
9918 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
9919 NULL.
9920 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
9921 "end" from rtx to rtx_insn *.
9922 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
9923 (rtx insn_rtx, bool force_unique_p)
9924 (BND_TO): Delete function.
9925 (SET_BND_TO): Delete function.
9926
9927 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
9928 rtx to rtx_insn *.
9929 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
9930 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
9931 rtx to rtx_insn *.
9932 (undo_transformations): Likewise for param "insn".
9933 (update_liveness_on_insn): Likewise.
9934 (compute_live_below_insn): Likewise for param "insn" and local
9935 "succ".
9936 (update_data_sets): Likewise for param "insn".
9937 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
9938 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
9939 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
9940 rtx_insn *.
9941 (move_cond_jump): Likewise for param "insn".
9942 (move_cond_jump): Drop use of SET_BND_TO.
9943 (compute_av_set_on_boundaries): Likewise.
9944 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
9945 (update_and_record_unavailable_insns): Strengthen local "bb_end"
9946 from rtx to rtx_insn *.
9947 (maybe_emit_renaming_copy): Likewise for param "insn".
9948 (maybe_emit_speculative_check): Likewise.
9949 (handle_emitting_transformations): Likewise.
9950 (remove_insn_from_stream): Likewise.
9951 (code_motion_process_successors): Strengthen local "succ" from rtx
9952 to insn_t.
9953
9954 2014-08-26 David Malcolm <dmalcolm@redhat.com>
9955
9956 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
9957 ilist_t, not _xlist_t;
9958 (ILIST_INSN): Define in terms of new union field "insn".
9959 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
9960 _XLIST_NEXT.
9961 (struct _list_node): Add new field "insn" to the union, of type
9962 insn_t.
9963 (ilist_add): Replace macro with an inline function, requiring an
9964 insn_t.
9965 (ilist_remove): Define this macro directly in terms of
9966 _list_remove, rather than indirectly via _xlist_remove.
9967 (ilist_clear): Likewise, in terms of _list_clear rather than
9968 _xlist_clear.
9969 (ilist_is_in_p): Replace macro with an inline function, requiring
9970 an insn_t.
9971 (_list_iter_cond_insn): New function.
9972 (ilist_iter_remove): Define this macro directly in terms of
9973 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
9974 (ilist_iterator): Define directly in terms of _list_iterator
9975 rather than indirectly through _xlist_iterator.
9976 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
9977 than in terms of _FOR_EACH_X.
9978 (FOR_EACH_INSN_1): Likewise.
9979
9980 2014-08-26 Joseph Myers <joseph@codesourcery.com>
9981
9982 PR target/60606
9983 PR target/61330
9984 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
9985 DECL_HARD_REGISTER and return for invalid register specifications.
9986 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
9987 DECL_HARD_REGISTER, call expand_one_error_var.
9988 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
9989 CC_REGNUM with non-MODE_CC modes.
9990 (arm_regno_class): Return NO_REGS for PC_REGNUM.
9991
9992 2014-08-26 Marek Polacek <polacek@redhat.com>
9993
9994 PR c/61271
9995 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
9996
9997 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
9998
9999 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10000 qi cost; add di cost.
10001 (cortexa57_addrcost_table): Likewise.
10002
10003 2014-08-26 Marek Polacek <polacek@redhat.com>
10004
10005 PR c/61271
10006 * expr.c (is_aligning_offset): Remove logical not.
10007
10008 2014-08-26 Marek Polacek <polacek@redhat.com>
10009
10010 PR c/61271
10011 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10012 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10013
10014 2014-08-26 Richard Biener <rguenther@suse.de>
10015
10016 PR tree-optimization/62175
10017 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10018 expand possibly trapping operations.
10019
10020 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10021
10022 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10023 "insn" from rtx to rtx_insn *.
10024 (permute_load): Likewise for param "insn".
10025 (permute_store): Likewise.
10026 (handle_special_swappables): Likewise for local "insn".
10027 (replace_swap_with_copy): Likewise for locals "insn" and
10028 "new_insn".
10029 (rs6000_analyze_swaps): Likewise for local "insn".
10030
10031 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10032
10033 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10034 to rtx_insn *.
10035
10036 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10037
10038 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10039 "note_list" from rtx to rtx_insn *.
10040 (BB_NOTE_LIST): Replace this function and...
10041 (SET_BB_NOTE_LIST): ...this function with...
10042 (BB_NOTE_LIST): ...the former macro implementation.
10043
10044 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10045 local "from_start" from rtx to rtx_insn *. Strengthen param
10046 "to_endp" from rtx * to rtx_insn **.
10047
10048 * haifa-sched.c (concat_note_lists): Likewise.
10049 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10050 BB_NOTE_LIST.
10051 (sel_restore_notes): Likewise.
10052 (move_bb_info): Likewise.
10053 (BB_NOTE_LIST): Delete this function.
10054 (SET_BB_NOTE_LIST): Delete this function.
10055 * sel-sched.c (create_block_for_bookkeeping): Eliminate
10056 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10057
10058 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10059
10060 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10061 from rtx * to rtx_insn **.
10062 (reorder2): Likewise.
10063 (dependencies_evaluation_hook): Strengthen params "head", "tail"
10064 from rtx to rtx_insn *.
10065
10066 * doc/tm.texi: Update mechanically for above change to target.def.
10067
10068 * sched-int.h (note_list): Strengthen this variable from rtx to
10069 rtx_insn *.
10070 (remove_notes): Likewise for both params.
10071 (restore_other_notes): Likewise for return type and first param.
10072 (struct ready_list): Strengthen field "vec" from rtx * to
10073 rtx_insn **.
10074 (struct dep_replacement): Strenghten field "insn" from rtx to
10075 rtx_insn *.
10076 (struct deps_desc): Likewise for fields "last_debug_insn",
10077 "last_args_size".
10078 (struct haifa_sched_info): Likewise for callback field
10079 "can_schedule_ready_p"'s param, for first param of "new_ready"
10080 callback field, for both params of "rank" callback field, for
10081 first field of "print_insn" callback field (with a const), for
10082 both params of "contributes_to_priority" callback, for param
10083 of "insn_finishes_block_p" callback, for fields "prev_head",
10084 "next_tail", "head", "tail", for first param of "add_remove_insn"
10085 callback, for first param of "begin_schedule_ready" callback, for
10086 both params of "begin_move_insn" callback, and for second param
10087 of "advance_target_bb" callback.
10088 (add_dependence): Likewise for params 1 and 2.
10089 (sched_analyze): Likewise for params 2 and 3.
10090 (deps_analyze_insn): Likewise for param 2.
10091 (ready_element): Likewise for return type.
10092 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10093 (try_ready): Strenghten param from rtx to rtx_insn *.
10094 (sched_emit_insn): Likewise for return type.
10095 (record_delay_slot_pair): Likewise for params 1 and 2.
10096 (add_delay_dependencies): Likewise for param.
10097 (contributes_to_priority): Likewise for both params.
10098 (find_modifiable_mems): Likewise.
10099
10100 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
10101 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
10102 "first_older_only_insn" from rtx to rtx_insn *.
10103 (arm_sched_reorder): Strengthen param "ready" from rtx * to
10104 rtx_insn **.
10105
10106 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
10107 "last_scheduled_iter0" from rtx to rtx_insn *.
10108 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
10109 (c6x_sched_reorder_1): Strengthen param "ready" and locals
10110 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10111 "insn" from rtx to rtx_insn *.
10112 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
10113 rtx_insn **.
10114 (c6x_sched_reorder2): Strengthen param "ready" and locals
10115 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
10116 "insn" from rtx to rtx_insn *.
10117 (c6x_variable_issue): Add a checked cast when assigning from insn
10118 to ss.last_scheduled_iter0.
10119 (split_delayed_branch): Strengthen param "insn" and local "i1"
10120 from rtx to rtx_insn *.
10121 (split_delayed_nonbranch): Likewise.
10122 (undo_split_delayed_nonbranch): Likewise for local "insn".
10123 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
10124 "entry_after", "end_packet", "head_insn", "tail_insn",
10125 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
10126 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
10127 to rtx_insn **. Remove now-redundant checked cast on last_insn,
10128 but add a checked cast on loop->start_label. Consolidate calls to
10129 avoid assigning result of gen_spkernel to "insn", now an
10130 rtx_insn *.
10131
10132 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
10133 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
10134 rtx to rtx_insn *.
10135 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
10136 rtx_insn **. Strengthen locals "top", "next" from rtx to
10137 rtx_insn *.
10138 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
10139 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10140 (add_parameter_dependencies): Strengthen params "call", "head" and
10141 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
10142 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
10143 (add_dependee_for_func_arg): Likewise for param "arg" and local
10144 "insn".
10145 (ix86_dependencies_evaluation_hook): Likewise for params "head",
10146 "tail" and locals "insn", "first_arg".
10147
10148 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
10149 for params "head", "tail" and locals "insn", "next", "next_tail".
10150 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
10151 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
10152 "insn", "lowest", "highest" from rtx to rtx_insn *.
10153 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
10154 rtx_insn **.
10155 (ia64_sched_reorder2): Likewise.
10156
10157 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
10158 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
10159 from rtx * to rtx_insn **.
10160 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
10161 rtx_insn **.
10162 (mep_print_sched_insn): Strengthen param "insn" from rtx to
10163 rtx_insn *.
10164 (mep_sched_reorder): Strengthen param "ready" from rtx * to
10165 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
10166 to rtx_insn *.
10167
10168 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
10169 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
10170 to rtx_insn *.
10171 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
10172 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
10173 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
10174 rtx_insn **.
10175 (vr4130_reorder): Likewise.
10176 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
10177 rtx to rtx_insn *.
10178 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
10179 rtx_insn **.
10180 (mips_sched_reorder): Likewise.
10181 (mips_sched_reorder2): Likewise.
10182
10183 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
10184
10185 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
10186 Strengthen local "tmp" from rtx to rtx_insn *.
10187 (rs6000_sched_reorder2): Likewise.
10188
10189 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
10190 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
10191 (s390_sched_reorder): Strengthen param "ready" from rtx * to
10192 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
10193
10194 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
10195 "tmp2" from rtx to rtx_insn *.
10196 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
10197 Strengthen local "insn" from rtx to rtx_insn *.
10198 (ready_reorder): Strengthen param "ready" from rtx * to
10199 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
10200 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
10201 (sh_reorder2): Likewise.
10202
10203 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
10204 local "insn" from rtx to rtx_insn *.
10205
10206 * haifa-sched.c (note_list): Strengthen this variable from rtx to
10207 rtx_insn *.
10208 (scheduled_insns): Strengthen this variable from vec<rtx> to
10209 vec<rtx_insn *>.
10210 (set_modulo_params): Likewise for locals "i1", "i2".
10211 (record_delay_slot_pair): Likewise for params "i1", "i2".
10212 (add_delay_dependencies): Likewise for param "insn".
10213 (cond_clobbered_p): Likewise.
10214 (recompute_todo_spec): Likewise for local "prev".
10215 (last_scheduled_insn): Likewise for this variable.
10216 (nonscheduled_insns_begin): Likewise.
10217 (model_set_excess_costs): Strengthen param "insns" from rtx * to
10218 rtx_insn **.
10219 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
10220 rtx_insn *.
10221 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
10222 Strengthen local "insn" from rtx to rtx_insn *.
10223 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
10224 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10225 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
10226 (ready_remove_first): Likewise for return type and local "t".
10227 (ready_element): Likewise for return type.
10228 (ready_remove): Likewise for return type and local "t".
10229 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
10230 (check_clobbered_conditions): Strengthen local "x" from rtx to
10231 rtx_insn *, adding a checked cast.
10232 (schedule_insn): Likewise for param "insn".
10233 (remove_notes): Likewise for params "head", "tail" and locals
10234 "next_tail", "insn", "next".
10235 (struct haifa_saved_data): Likewise for fields
10236 "last_scheduled_insn", "nonscheduled_insns_begin".
10237 (save_backtrack_point): Update for change to field "vec" of
10238 struct ready_list.
10239 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
10240 rtx_insn **.
10241 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
10242 from rtx to rtx_insn *
10243 (resolve_dependencies): Strengthen param "insn" from rtx to
10244 rtx_insn *
10245 (restore_other_notes): Likewise for return type, for param "head"
10246 and local "note_head".
10247 (undo_all_replacements): Likewise for local "insn".
10248 (first_nonscheduled_insn): Likewise for return type and local "insn".
10249 (queue_to_ready): Likewise for local "insn", adding checked casts.
10250 (early_queue_to_ready): Likewise for local "insn".
10251 (debug_ready_list_1): Strengthen local "p" from rtx * to
10252 rtx_insn **.
10253 (move_insn): Strengthen param "insn" and local "note" from rtx to
10254 rtx_insn *
10255 (insn_finishes_cycle_p): Likewise for param "insn".
10256 (max_issue): Likewise for local "insn".
10257 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
10258 to rtx_insn **.
10259 (commit_schedule): Strengthen param "prev_head" and local "insn"
10260 from rtx to rtx_insn *
10261 (prune_ready_list): Likewise for local "insn".
10262 (schedule_block): Likewise for locals "prev_head", "head", "tail",
10263 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
10264 (set_priorities): Likewise for local "prev_head".
10265 (try_ready): Likewise for param "next".
10266 (fix_tick_ready): Likewise.
10267 (change_queue_index): Likewise.
10268 (sched_extend_ready_list): Update for change to field "vec" of
10269 struct ready_list.
10270 (generate_recovery_code): Strengthen param "insn" from rtx to
10271 rtx_insn *.
10272 (begin_speculative_block): Likewise.
10273 (create_check_block_twin): Likewise for param "insn" and locals
10274 "label", "check", "twin". Introduce local "check_pat" to avoid
10275 "check" being used as a plain rtx before being used as an insn.
10276 (fix_recovery_deps): Add a checked cast to rtx_insn * when
10277 extracting elements from ready_list.
10278 (sched_remove_insn): Strengthen param "insn" from rtx to
10279 rtx_insn *.
10280 (sched_emit_insn): Likewise for return type.
10281 (ready_remove_first_dispatch): Likewise for return type and local
10282 "insn".
10283
10284 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
10285
10286 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
10287 const rtx_insn *.
10288
10289 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
10290 from rtx to rtx_insn *.
10291 (add_dependence_list): Likewise for param "insn". Add a checked
10292 cast.
10293 (add_dependence_list_and_free): Strengthen param "insn" from rtx
10294 to rtx_insn *. Strengthen param "list_p" from rtx * to
10295 rtx_insn **.
10296 (chain_to_prev_insn): Strengthen param "insn" and locals
10297 "prec_nonnote", "i" from rtx to rtx_insn *.
10298 (flush_pending_lists): Likewise for param "insn".
10299 (cur_insn): Likewise for this variable.
10300 (haifa_start_insn): Add a checked cast.
10301 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
10302 (sched_analyze_reg): Likewise for param "insn".
10303 (sched_analyze_1): Likewise.
10304 (sched_analyze_2): Likewise. Add checked casts.
10305 (sched_analyze_insn): Likewise. Also for local "prev".
10306 (deps_analyze_insn): Likewise for param "insn".
10307 (sched_analyze): Likewise for params "head", "tail" and local "insn".
10308 (add_dependence_1): Likewise for params "insn", "elem".
10309 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
10310 (parse_add_or_inc): Likewise for param "insn".
10311 (find_inc): Likewise for local "inc_cand".
10312 (find_modifiable_mems): Likewise for params "head", "tail" and
10313 locals "insn", "next_tail".
10314
10315 * sched-ebb.c (init_ready_list): Likewise for local "insn".
10316 (begin_schedule_ready): Likewise for param "insn".
10317 (begin_move_insn): Likewise for params "insn" and "last".
10318 (ebb_print_insn): Strengthen param "insn" from const_rtx to
10319 const rtx_insn *.
10320 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
10321 (ebb_contributes_to_priority): Likewise for params "next", "insn".
10322 (ebb_add_remove_insn): Likewise for param "insn".
10323 (advance_target_bb): Likewise.
10324
10325 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
10326 "insn".
10327 (check_live): Likewise for param "insn".
10328 (init_ready_list): Likewise for local "insn".
10329 (can_schedule_ready_p): Likewise for param "insn".
10330 (begin_schedule_ready): Likewise.
10331 (new_ready): Likewise for param "next".
10332 (rgn_print_insn): Likewise for param "insn".
10333 (rgn_rank): Likewise for params "insn1", "insn2".
10334 (contributes_to_priority): Likewise for params "next", "insn".
10335 (rgn_insn_finishes_block_p): Likewise for param "insn".
10336 (add_branch_dependences): Likewise for params "head", "tail" and
10337 locals "insn", "last".
10338 (rgn_add_remove_insn): Likewise for param "insn".
10339 (advance_target_bb): Likewise.
10340
10341 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
10342 const_rtx to const rtx_insn *.
10343
10344 * sel-sched-dump.h (sel_print_insn): Likewise.
10345
10346 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
10347 (deps_init_id): Likewise.
10348
10349 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
10350 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
10351 rtx_insn **.
10352
10353 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10354
10355 * output.h (final_start_function): Strengthen param 1 from rtx to
10356 rtx_insn *.
10357
10358 * final.c (final_start_function): Likewise, renaming back from
10359 "uncast_first" to "first", and dropping the checked cast from rtx
10360 to rtx_insn *.
10361
10362 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10363
10364 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
10365 * final.c (final): Likewise. Rename param back from
10366 "uncast_first" to "first" and eliminate the checked cast from rtx
10367 to rtx_insn *.
10368
10369 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10370
10371 * output.h (shorten_branches): Strengthen param from rtx to
10372 rtx_insn *.
10373
10374 * final.c (shorten_branches): Likewise, renaming param back from
10375 "uncast_first" to "first", and dropping the checked cast from rtx
10376 to rtx_insn *.
10377
10378 * genattr.c (gen_attr): Likewise when writing out the prototype of
10379 shorten_branches.
10380
10381 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10382
10383 * sched-int.h (struct haifa_sched_info): Strengthen fields
10384 "prev_head" and "next_tail" from rtx to rtx_insn *.
10385
10386 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10387
10388 * rtl.h (rtx_jump_table_data::get_labels): New method.
10389 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
10390 with use of the new rtx_jump_table_data::get_labels method.
10391 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
10392 to rtx_jump_table_data *. Simplify by using get_labels method.
10393 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
10394 a dyn_cast, introducing local "table", using it to replace
10395 label-lookup logic with a get_labels method call.
10396 (patch_jump_insn): Simplify using get_labels method.
10397 * dwarf2cfi.c (create_trace_edges): Likewise.
10398 * rtlanal.c (label_is_jump_target_p): Likewise.
10399
10400 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10401
10402 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
10403 to rtx_insn *.
10404
10405 * emit-rtl.c (unshare_all_rtl_1): Likewise.
10406 (unshare_all_rtl_again): Likewise, also for local "p".
10407
10408 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10409
10410 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
10411 to rtx_insn *.
10412 * cfgrtl.c (delete_insn_and_edges): Likewise.
10413
10414 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10415
10416 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
10417 from rtx to rtx_insn *.
10418
10419 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
10420
10421 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10422
10423 * function.c (thread_prologue_and_epilogue_insns): Likewise for
10424 locals "returnjump", "epilogue_end", "insn", "next".
10425
10426 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
10427 "returnjump" from rtx * to rtx_insn **.
10428 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
10429
10430 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10431
10432 * basic-block.h (struct edge_def). Strengthen "r" within
10433 union edge_def_insns from rtx to rtx_insn *.
10434
10435 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
10436 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
10437 rtx_insn *.
10438 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
10439 from rtx to rtx_insn *.
10440 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
10441 rtx_insn *.
10442 * postreload-gcse.c (reg_killed_on_edge): Likewise.
10443 (reg_used_on_edge): Likewise.
10444 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
10445 (gt_pch_nx): New overload for rtx_insn *&.
10446 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
10447 from rtx to rtx_insn *.
10448
10449 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10450
10451 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
10452 from rtx to rtx_insn *.
10453 (BB_FOOTER): Replace function with access macro.
10454 (SET_BB_FOOTER): Delete.
10455
10456 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
10457 with BB_FOOTER.
10458 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10459 (emit_barrier_after_bb): Likewise.
10460 (record_effective_endpoints): Likewise.
10461 (relink_block_chain): Likewise.
10462 (fixup_fallthru_exit_predecessor): Likewise.
10463 (cfg_layout_duplicate_bb): Likewise.
10464 (cfg_layout_split_block): Likewise.
10465 (cfg_layout_delete_block): Likewise.
10466 (cfg_layout_merge_blocks): Likewise.
10467 (BB_FOOTER): Delete function.
10468 (SET_BB_FOOTER): Delete function.
10469 * combine.c (update_cfg_for_uncondjump): Replace uses of
10470 SET_BB_FOOTER with BB_FOOTER.
10471
10472 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10473
10474 * except.h (struct eh_landing_pad_d): Strengthen field
10475 "landing_pad" from rtx to rtx_code_label *.
10476
10477 * except.c (sjlj_emit_dispatch_table): Likewise for param
10478 "dispatch_label"
10479 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
10480
10481 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10482
10483 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
10484 first param from rtx to rtx_insn *.
10485 * config/xtensa/xtensa.c (struct machine_function): Likewise for
10486 field "set_frame_ptr_insn".
10487 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
10488 "csend" from rtx to rtx_code_label *.
10489 (xtensa_expand_atomic): Likewise for local "csloop".
10490 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
10491 rtx_insn *.
10492 (xtensa_call_tls_desc): Likewise for return type and locals
10493 "call_insn", "insns".
10494 (xtensa_legitimize_tls_address): Likewise for local "insns".
10495 (xtensa_expand_prologue): Likewise for locals "insn", "first".
10496
10497 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10498
10499 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
10500 first param from rtx to rtx_insn *.
10501 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
10502 "insn".
10503
10504 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10505
10506 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
10507 Strengthen param 1 from rtx to rtx_insn *.
10508 (tilepro_output_cbranch): Likewise.
10509 (tilepro_adjust_insn_length): Likewise.
10510 (tilepro_final_prescan_insn): Likewise for sole param.
10511
10512 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
10513 Likewise for local "last".
10514 (cbranch_predicted_p): Likewise for param "insn".
10515 (tilepro_output_simple_cbranch_with_opcode): Likewise.
10516 (tilepro_output_cbranch_with_opcode): Likewise.
10517 (tilepro_output_cbranch): Likewise.
10518 (frame_emit_load): Likewise for return type and locals "seq",
10519 "insn".
10520 (emit_sp_adjust): Likewise for return type and local "insn".
10521 (tilepro_expand_epilogue): Likewise for locals "last_insn",
10522 "insn".
10523 (tilepro_adjust_insn_length): Likewise for param "insn".
10524 (next_insn_to_bundle): Likewise for return type and params
10525 "r", "end".
10526 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
10527 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
10528 local "new_insns".
10529 (match_addli_pcrel): Likewise for param "insn".
10530 (replace_addli_pcrel): Likewise.
10531 (match_auli_pcrel): Likewise.
10532 (replace_auli_pcrel): Likewise.
10533 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
10534 "next_insn".
10535 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10536 "queue", "next_queue", "prev".
10537 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
10538 (tilepro_final_prescan_insn): Likewise for param "insn".
10539
10540 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10541
10542 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
10543 Strengthen param 1 from rtx to rtx_insn *.
10544 (tilegx_output_cbranch): Likewise.
10545 (tilegx_adjust_insn_length): Likewise.
10546 (tilegx_final_prescan_insn): Likewise for sole param.
10547
10548 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
10549 or local "last".
10550 (cbranch_predicted_p): Likewise for param "insn".
10551 (tilegx_output_simple_cbranch_with_opcode): Likewise.
10552 (tilegx_output_cbranch_with_opcode): Likewise.
10553 (tilegx_output_cbranch): Likewise.
10554 (frame_emit_load): Likewise for return type.
10555 (set_frame_related_p): Likewise for locals "seq", "insn".
10556 (emit_sp_adjust): Likewise for return type, and for local "insn".
10557 Introduce local "pat" for use in place of "insn" where the latter
10558 isn't an instruction.
10559 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
10560 from rtx to rtx_insn *.
10561 (tilegx_adjust_insn_length): Likewise for param "insn".
10562 (next_insn_to_bundle): Likewise for return type and params "r" and
10563 "end".
10564 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
10565 "end".
10566 (replace_insns): Likewise for params "old_insn", "new_insns".
10567 (replace_mov_pcrel_step1): Likewise for param "insn" and local
10568 "new_insns".
10569 (replace_mov_pcrel_step2): Likewise.
10570 (replace_mov_pcrel_step3): Likewise.
10571 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
10572 "next_insn".
10573 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
10574 "queue", "next_queue", "prev".
10575 (tilegx_output_mi_thunk): Likewise for local "insn".
10576 (tilegx_final_prescan_insn): Likewise for param "insn".
10577
10578 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10579
10580 * config/spu/spu.c (frame_emit_store): Strengthen return type from
10581 rtx to rtx_insn *.
10582 (frame_emit_load): Likewise.
10583 (frame_emit_add_imm): Likewise, also for local "insn".
10584 (spu_expand_prologue): Likewise for local "insn".
10585 (struct spu_bb_info): Likewise for field "prop_jump".
10586 (emit_nop_for_insn): Likewise for param "insn" and local
10587 "new_insn".
10588 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
10589 "hbr_insn".
10590 (spu_emit_branch_hint): Likewise for params "before", "branch" and
10591 locals "hint", "insn".
10592 (get_branch_target): Likewise for param "branch".
10593 (insn_clobbers_hbr): Likewise for param "insn".
10594 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
10595 locals "insn", "before_4", "before_16".
10596 (insert_hbrp): Likewise for local "insn".
10597 (spu_machine_dependent_reorg): Likewise for locals "branch",
10598 "insn", "next", "bbend".
10599 (uses_ls_unit): Likewise for param "insn".
10600 (get_pipe): Likewise.
10601 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
10602 introducing a checked cast.
10603 (spu_sched_adjust_cost): Likewise for params "insn" and
10604 "dep_insn".
10605 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
10606 (spu_sms_res_mii): Likewise.
10607
10608 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10609
10610 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
10611 from rtx to rtx_insn *.
10612 (output_cbranch): Likewise for param 6.
10613 (output_return): Likewise for param 1.
10614 (output_sibcall): Likewise.
10615 (output_v8plus_shift): Likewise.
10616 (output_v8plus_mult): Likewise.
10617 (output_v9branch): Likewise for param 7.
10618 (output_cbcond): Likewise for param 3.
10619
10620 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
10621 for local "insn".
10622 (sparc_legitimize_pic_address): Likewise.
10623 (sparc_emit_call_insn): Likewise.
10624 (emit_save_or_restore_regs): Likewise.
10625 (emit_window_save): Likewise for return type and local "insn".
10626 (sparc_expand_prologue): Likewise for local "insn".
10627 (sparc_flat_expand_prologue): Likewise.
10628 (output_return): Likewise for param "insn".
10629 (output_sibcall): Likewise for param "insn" and local "delay".
10630 (output_ubranch): Likewise for param "insn".
10631 (output_cbranch): Likewise.
10632 (output_cbcond): Likewise.
10633 (output_v9branch): Likewise.
10634 (output_v8plus_shift): Likewise.
10635 (sparc_output_mi_thunk): Likewise for local "insn".
10636 (get_some_local_dynamic_name): Likewise.
10637 (output_v8plus_mult): Likewise for param "insn".
10638
10639 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10640
10641 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
10642 from rtx to rtx_insn *.
10643 (output_branchy_insn): Likewise for param 3.
10644 (output_far_jump): Likewise for param 1.
10645 (final_prescan_insn): Likewise.
10646 (sh_insn_length_adjustment): Likewise for sole param.
10647
10648 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
10649 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
10650 rtx_code_label *.
10651 (sh_emit_compare_and_set): Likewise for local "lab".
10652 (output_far_jump): Strengthen param "insn" and local "prev" from
10653 rtx to rtx_insn *.
10654 (output_branchy_insn): Likewise for param "insn" and local
10655 "next_insn".
10656 (output_ieee_ccmpeq): Likewise for param "insn".
10657 (struct label_ref_list_d): Strengthen field "label" from rtx to
10658 rtx_code_label *.
10659 (pool_node): Likewise.
10660 (pool_window_label): Likewise for this global.
10661 (add_constant): Likewise for return type and locals "lab", "new_rtx".
10662 (dump_table): Strengthen params "start", "barrier" and local
10663 "scan" from rtx to rtx_insn *.
10664 (broken_move): Likewise for param "insn".
10665 (untangle_mova): Likewise for params "first_mova" and "new_mova".
10666 Strengthen param "first_mova" from rtx * to rtx_insn **.
10667 (mova_p): Likewise for param "insn".
10668 (fixup_mova): Likewise for param "mova".
10669 (find_barrier): Likewise for return type, params "mova" and
10670 "from", and locals "barrier_before_mova", "found_barrier",
10671 "good_barrier", "orig", "last_symoff", "next". Strengthen local
10672 "label" from rtx to rtx_code_label *.
10673 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
10674 rtx to rtx_insn *.
10675 (sh_reorg): Likewise for locals "link", "scan", "barrier".
10676 (split_branches): Likewise for param "first" and local "insn".
10677 (final_prescan_insn): Likewise for param "insn".
10678 (sequence_insn_p): Likewise for locals "prev", "next".
10679 (sh_insn_length_adjustment): Likewise for param "insn".
10680 (sh_can_redirect_branch): Likewise for local "insn".
10681 (find_r0_life_regions): Likewise for locals "end", "insn".
10682 (sh_output_mi_thunk): Likewise for local "insns".
10683
10684 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10685
10686 * config/score/score.c (score_output_mi_thunk): Strengthen local
10687 "insn" from rtx to rtx_insn *.
10688 (score_prologue): Likewise.
10689
10690 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10691
10692 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
10693 1 from rtx to rtx_insn *.
10694 (s390_emit_jump): Likewise for return type.
10695 (s390_emit_call): Likewise.
10696 (s390_load_got): Likewise.
10697
10698 * config/s390/s390.c (last_scheduled_insn): Likewise for this
10699 variable.
10700 (s390_match_ccmode): Likewise for param "insn".
10701 (s390_emit_jump): Likewise for return type.
10702 (s390_split_branches): Likewise for local "label".
10703 (struct constant): Strengthen field "label" from rtx to
10704 rtx_code_label *.
10705 (struct constant_pool): Likewise for field "label". Strengthen
10706 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
10707 rtx_insn *.
10708 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
10709 insns.
10710 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
10711 (s390_end_pool): Likewise.
10712 (s390_dump_pool): Likewise for local "insn".
10713 (s390_mainpool_start): Likewise.
10714 (s390_chunkify_start): Likewise.
10715 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
10716 with insns. Strengthen locals "label", "jump", "barrier", "next",
10717 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
10718 (s390_chunkify_finish): Strengthen local "insn" from rtx to
10719 rtx_insn *.
10720 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
10721 "jump", "label", "next_insn".
10722 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
10723 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
10724 "tbegin_insn".
10725 (s390_load_got): Likewise for return type and local "insns".
10726 (s390_save_gprs_to_fprs): Likewise for local "insn".
10727 (s390_restore_gprs_from_fprs): Likewise.
10728 (pass_s390_early_mach::execute): Likewise.
10729 (s390_emit_prologue): Likewise for local "insns".
10730 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
10731 rtx_code_label *.
10732 (s390_emit_call): Strengthen return type and local "insn" from
10733 rtx to rtx_insn *.
10734 (s390_emit_tpf_eh_return): Likewise for local "insn".
10735 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
10736 "next_insn", introducing locals "s_pat", "rpat" to allow this.
10737 (s390_fix_long_loop_prediction): Likewise for param "insn" and
10738 local "cur_insn".
10739 (s390_non_addr_reg_read_p): Likewise for param "insn".
10740 (find_cond_jump): Likewise for return type and param "insn".
10741 (s390_swap_cmp): Likewise for param "insn".
10742 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
10743 "prev_insn", "next_insn".
10744 (s390_reorg): Likewise for locals "insn", "target".
10745 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
10746 (s390_sched_variable_issue): For now, rename param "insn" to
10747 "uncast_insn", introducing a checked cast.
10748 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
10749 insn.
10750 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
10751 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
10752
10753 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10754
10755 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
10756 param from rtx to rtx_insn *.
10757 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
10758
10759 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10760
10761 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
10762 4 from rtx to rtx_insn *.
10763 (rs6000_final_prescan_insn): Likewise for first param.
10764 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
10765 local "insn".
10766 (rs6000_get_some_local_dynamic_name): Likewise.
10767 (output_cbranch): Likewise for param "insn".
10768 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
10769 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
10770 (rs6000_emit_allocate_stack): Likewise for local "insn".
10771 (load_cr_save): Likewise.
10772 (restore_saved_cr): Likewise.
10773 (restore_saved_lr): Likewise.
10774 (emit_cfa_restores): Likewise.
10775 (rs6000_output_function_epilogue): Likewise for locals "insn" and
10776 "deleted_debug_label".
10777 (rs6000_output_mi_thunk): Likewise for local "insn".
10778 (rs6000_final_prescan_insn): Likewise for param "insn".
10779
10780 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10781
10782 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
10783 Strengthen param "insn" from rtx to rtx_insn *.
10784 * config/picochip/picochip.c (picochip_current_prescan_insn):
10785 Likewise for this variable.
10786 (picochip_final_prescan_insn): Likewise for param "insn".
10787
10788 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10789
10790 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
10791 from rtx to rtx_insn *.
10792 (pa_output_indirect_call): Likewise.
10793 (pa_adjust_insn_length): Likewise.
10794 (pa_attr_length_millicode_call): Likewise.
10795 (pa_attr_length_call): Likewise.
10796 (pa_attr_length_indirect_call): Likewise.
10797
10798 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
10799 "insn".
10800 (pa_attr_length_millicode_call): Likewise.
10801 (pa_attr_length_call): Likewise.
10802 (pa_output_call): Likewise.
10803 (pa_attr_length_indirect_call): Likewise.
10804 (pa_output_indirect_call): Likewise.
10805
10806 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10807
10808 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
10809 Strengthen first param from rtx to rtx_insn *.
10810 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
10811 param "insn".
10812
10813 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10814
10815 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
10816 type from rtx to rtx_insn *.
10817 (mips_expand_call): Likewise.
10818 (mips_adjust_insn_length): Likewise for first param.
10819 (mips_output_conditional_branch): Likewise.
10820 (mips_output_order_conditional_branch): Likewise.
10821 (mips_final_prescan_insn): Likewise.
10822
10823 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
10824 rtx_insn * for the SEQUENCE case.
10825 (SEQ_END): Likewise.
10826 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
10827 (mips_emit_call_insn): Likewise, also for local "insn".
10828 (mips16_gp_pseudo_reg): Likewise for local "scan".
10829 (mips16_build_call_stub): Likewise for return type and for local
10830 "insn". Introduce a new local "pattern" so that "insn" can indeed
10831 be an insn.
10832 (mips_expand_call): Strengthen return type and local "insn" from
10833 rtx to rtx_insn *.
10834 (mips_block_move_loop): Strengthen local "label" from rtx to
10835 rtx_code_label *.
10836 (mips_expand_synci_loop): Likewise for locals "label",
10837 "end_label".
10838 (mips_set_frame_expr): Strengthen local "insn" from rtx to
10839 rtx_insn *.
10840 (mips16e_collect_argument_saves): Likewise for locals "insn",
10841 "next".
10842 (mips_find_gp_ref): Likewise for param of callback for "pred"
10843 param, and for local "insn".
10844 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
10845 (mips_insn_has_flexible_gp_ref_p): Likewise.
10846 (mips_epilogue_emit_cfa_restores): Likewise for return type and
10847 local "insn".
10848 (mips_epilogue_set_cfa): Likewise for local "insn".
10849 (mips_expand_epilogue): Likewise.
10850 (mips_adjust_insn_length): Likewise for param "insn".
10851 (mips_output_conditional_branch): Likewise.
10852 (mips_output_order_conditional_branch): Likewise.
10853 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
10854 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
10855 "falu2_turn_enabled_insn".
10856 (mips_builtin_branch_and_move): Strengthen locals "true_label",
10857 "done_label" from rtx to rtx_code_label *.
10858 (struct mips16_constant): Likewise for field "label".
10859 (mips16_add_constant): Likewise for return type.
10860 (mips16_emit_constants_1): Strengthen return type and param "insn"
10861 from rtx to rtx_insn *.
10862 (mips16_emit_constants): Likewise for param "insn".
10863 (mips16_insn_length): Likewise.
10864 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
10865 to rtx_code_label *.
10866 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
10867 from rtx to rtx_insn *.
10868 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
10869 "jump". Strengthen local "label" from rtx to rtx_code_label *.
10870 (r10k_simplify_address): Strengthen param "insn" and local
10871 "def_insn" from rtx to rtx_insn *.
10872 (r10k_safe_address_p): Strengthen param "insn" from rtx to
10873 rtx_insn *.
10874 (r10k_needs_protection_p_1): Update target type of cast of data
10875 from to rtx to rtx_insn *.
10876 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
10877 rtx * to rtx_insn **.
10878 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
10879 rtx_insn *.
10880 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
10881 (mips_call_expr_from_insn): Likewise for param "insn".
10882 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
10883 (mips_find_pic_call_symbol): Likewise for param "insn".
10884 (mips_annotate_pic_calls): Likewise for local "insn".
10885 (mips_sim_insn): Likewise for this variable.
10886 (struct mips_sim): Likewise for field "insn" within elements of
10887 last_set array.
10888 (mips_sim_wait_reg): Likewise for param "insn".
10889 (mips_sim_wait_regs): Likewise.
10890 (mips_sim_wait_units): Likewise.
10891 (mips_sim_wait_insn): Likewise.
10892 (mips_sim_issue_insn): Likewise.
10893 (mips_sim_finish_insn): Likewise.
10894 (mips_seq_time): Likewise for param "seq" and local "insn".
10895 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
10896 locals "first", "second".
10897 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
10898 "last", "last2", "next".
10899 (mips_avoid_hazard): Likewise for params "after", "insn".
10900 (mips_reorg_process_insns): Likewise for locals "insn",
10901 "last_insn", "subinsn", "next_insn".
10902 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
10903 (mips16_split_long_branches): Likewise for locals "insn" "jump",
10904 "jump_sequence".
10905 (mips_output_mi_thunk): Likewise for local "insn".
10906 (mips_final_prescan_insn): Likewise for param "insn".
10907
10908 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10909
10910 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
10911 Strengthen return type and local "insns" from rtx to rtx_insn *.
10912 (microblaze_legitimize_tls_address): Likewise for local "insns".
10913 (microblaze_block_move_loop): Strengthen local "label" from rtx
10914 to rtx_code_label *.
10915 (microblaze_expand_prologue): Strengthen two locals named "insn"
10916 from rtx to rtx_insn *.
10917 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
10918 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
10919 "insn". Strengthen locals "div_label", "div_end_label" from rtx
10920 to rtx_code_label *.
10921
10922 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10923
10924 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
10925 param from rtx to rtx_insn *.
10926 (mep_reuse_lo): Likewise for third param.
10927 (mep_use_post_modify_p): Likewise for first param.
10928 (mep_core_address_length): Likewise.
10929 (mep_cop_address_length): Likewise.
10930 (mep_final_prescan_insn): Likewise.
10931 (mep_store_data_bypass_p): Likewise for both params.
10932 (mep_mul_hilo_bypass_p): Likewise.
10933 (mep_ipipe_ldc_p): Likewise for param.
10934
10935 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
10936 (mep_rewrite_mult): Likewise.
10937 (mep_rewrite_mulsi3): Likewise.
10938 (mep_rewrite_maddsi3): Likewise.
10939 (mep_reuse_lo_p_1): Likewise.
10940 (mep_reuse_lo_p): Likewise.
10941 (mep_frame_expr): Likewise.
10942 (mep_make_parallel): Likewise for both params.
10943 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
10944 local "insn".
10945 (mep_use_post_modify_p): Likewise for param "insn".
10946 (mep_core_address_length): Likewise.
10947 (mep_cop_address_length): Likewise.
10948 (mep_reg_set_in_function): Likewise for local "insn".
10949 (mep_asm_without_operands_p): Likewise.
10950 (F): Likewise for return type and param "x".
10951 (add_constant): Likewise for local "insn".
10952 (maybe_dead_move): Likewise for return type and local "insn".
10953 (mep_expand_prologue): Likewise for local "insn".
10954 (mep_final_prescan_insn): Likewise for param "insn".
10955 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
10956 "next", "follow", "x".
10957 (mep_insert_repeat_label_last): Likewise for return type, param
10958 "last_insn", and locals "next", "prev". Strengthen param "label"
10959 from rtx to rtx_code_label *.
10960 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
10961 rtx_insn *.
10962 (struct mep_doloop_end): Likewise for fields "insn" and
10963 "fallthrough".
10964 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
10965 Strengthen local "repeat_label" from rtx to rtx_code_label *.
10966 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
10967 rtx_insn *.
10968 (mep_invert_branch): Likewise for params "insn" and "after".
10969 (mep_reorg_erepeat): Likewise for param "insns" and locals
10970 "insn", "prev", "new_last", "barrier", "user". Strengthen local
10971 "l" from rtx to rtx_code_label *.
10972 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
10973 from rtx to rtx_insn *.
10974 (mep_reorg_addcombine): Likewise for param "insns" and locals
10975 "i", "n".
10976 (add_sp_insn_p): Likewise for param "insn".
10977 (mep_reorg_noframe): Likewise for param "insns" and locals
10978 "start_frame_insn", "end_frame_insn", "next".
10979 (mep_reorg): Likewise for local "insns".
10980 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
10981 cast.
10982 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
10983 (mep_mul_hilo_bypass_p): Likewise.
10984 (mep_ipipe_ldc_p): Likewise for param "insn".
10985 (mep_make_bundle): Likewise for return type, param "cop" and local
10986 "insn", splitting out the latter into a new local "seq" for when it
10987 is a SEQUENCE rather than an insn.
10988 (core_insn_p): Likewise for param "insn".
10989 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
10990 "last", "first", "note", "prev", "core_insn".
10991
10992 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10993
10994 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
10995 rtx to rtx_insn *.
10996 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
10997 (m68k_final_prescan_insn): Likewise for first param.
10998
10999 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11000 (m68k_set_frame_related): Likewise for param "insn".
11001 (output_btst): Likewise for param "insn".
11002 (m68k_final_prescan_insn): Likewise.
11003 (m68k_move_to_reg): Likewise for local "insn".
11004 (m68k_call_tls_get_addr): Likewise for local "insns".
11005 (m68k_call_m68k_read_tp): Likewise.
11006 (strict_low_part_peephole_ok): Likewise for param "first_insn".
11007 (m68k_output_mi_thunk): Likewise for local "insn".
11008
11009 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11010
11011 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11012 first param from rtx to rtx_insn *.
11013 (iq2000_adjust_insn_length): Likewise.
11014 (iq2000_output_conditional_branch): Likewise.
11015 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11016 "insn" and local "nop_insn".
11017 (iq2000_annotate_frame_insn): Likewise for param "insn".
11018 (iq2000_expand_prologue): Likewise for both locals "insn".
11019 (iq2000_adjust_insn_length): Likewise for param "insn".
11020 (iq2000_output_conditional_branch): Likewise.
11021
11022 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11023
11024 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11025 "insns" from rtx to rtx_insn *.
11026 (ia64_emit_cond_move): Likewise for locals "insn", "first".
11027 (struct spill_fill_data): Likewise for field "init_after" and for
11028 elements of array field "prev_insn".
11029 (spill_restore_mem): Likewise for locals "insn", "first".
11030 (do_spill): Likewise for local "insn".
11031 (do_restore): Likewise.
11032 (ia64_expand_prologue): Likewise.
11033 (ia64_expand_epilogue): Likewise.
11034 (emit_insn_group_barriers): Likewise for locals "insn",
11035 "last_label".
11036 (emit_all_insn_group_barriers): Likewise for locals "insn",
11037 "last".
11038 (dfa_stop_insn): Likewise for this global.
11039 (dfa_pre_cycle_insn): Likewise.
11040 (ia64_nop): Likewise.
11041 (final_emit_insn_group_barriers): Likewise for locals "insn",
11042 "last".
11043 (emit_predicate_relation_info): Likewise for locals "head", "n",
11044 "insn", "b", "a".
11045 (ia64_reorg): Likewise for local "insn".
11046 (ia64_output_mi_thunk): Likewise.
11047 (expand_vec_perm_interleave_2): Likewise for local "seq".
11048
11049 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11050
11051 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11052 param 1 "insn" from rtx to rtx_insn *.
11053 (ix86_use_lea_for_mov): Likewise.
11054 (ix86_avoid_lea_for_addr): Likewise.
11055 (ix86_split_lea_for_addr): Likewise.
11056 (ix86_lea_for_add_ok): Likewise.
11057 (ix86_output_call_insn): Likewise.
11058
11059 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11060 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11061 (ix86_output_function_epilogue): Likewise for locals "insn",
11062 "deleted_debug_label".
11063 (legitimize_tls_address): Likewise for local "insn".
11064 (get_some_local_dynamic_name): Likewise.
11065 (increase_distance): Likewise for params "prev", "next".
11066 (distance_non_agu_define_in_bb): Likewise for params "insn",
11067 "start" and locals "prev", "next".
11068 (distance_non_agu_define): Likewise for param "insn".
11069 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11070 locals "next", "prev".
11071 (distance_agu_use): Likewise for param "insn".
11072 (ix86_lea_outperforms): Likewise.
11073 (ix86_ok_to_clobber_flags): Likewise.
11074 (ix86_avoid_lea_for_add): Likewise.
11075 (ix86_use_lea_for_mov): Likewise.
11076 (ix86_avoid_lea_for_addr): Likewise.
11077 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11078 (ix86_split_lea_for_addr): Likewise for param "insn".
11079 (ix86_lea_for_add_ok): Likewise for param "insn".
11080 (ix86_expand_carry_flag_compare): Likewise for local
11081 "compare_seq".
11082 (ix86_expand_int_movcc): Likewise.
11083 (ix86_output_call_insn): Likewise for param "insn".
11084 (ix86_output_call_insn): Likewise for local "i".
11085 (x86_output_mi_thunk): Introduce local "insn", using it in place
11086 of "tmp" when dealing with insns.
11087 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11088 "start".
11089 (ix86_pad_returns): Likewise for locals "ret", "prev".
11090 (ix86_count_insn_bb): Likewise for local "insn".
11091 (ix86_pad_short_function): Likewise for locals "ret", "insn".
11092 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11093 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11094 (expand_vec_perm_interleave2): Likewise for local "seq".
11095 (expand_vec_perm_vperm2f128_vblend): Likewise.
11096 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
11097 call to for_each_rtx with for_each_rtx_in_insn.
11098
11099 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11100
11101 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
11102 "label" from rtx to rtx_code_label *.
11103 (ix86_expand_prologue): Likewise.
11104 (ix86_expand_split_stack_prologue): Likewise for locals "label",
11105 "varargs_label".
11106 (ix86_split_idivmod): Likewise for locals "end_label" and
11107 "qimode_label".
11108 (ix86_expand_branch): Likewise for local "label2".
11109 (ix86_expand_aligntest): Likewise for return type and local "label".
11110 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
11111 "top_label".
11112 (expand_movmem_epilogue): Likewise for the various locals named
11113 "label".
11114 (expand_setmem_epilogue): Likewise.
11115 (expand_small_movmem_or_setmem): Likewise for local "label".
11116 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11117 Strengthen param "done_label" from rtx * to rtx_code_label **.
11118 Strengthen locals "loop_label" and "label" from rtx to
11119 rtx_code_label *.
11120 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
11121 Likewise for locals "loop_label", "label".
11122 (ix86_expand_set_or_movmem): Likewise for locals "label",
11123 "jump_around_label", "hot_label".
11124 (ix86_expand_strlensi_unroll_1): Likewise for locals
11125 "align_2_label", align_3_label", "align_4_label", "end_0_label",
11126 "end_2_label".
11127 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
11128 (void ix86_emit_i387_log1p): Likewise for locals "label1",
11129 "label2", "jump_label".
11130 (ix86_expand_sse_compare_and_jump): Likewise for return type and
11131 local "label".
11132 (ix86_expand_lfloorceil): Likewise for local "label".
11133 (ix86_expand_rint): Likewise.
11134 (ix86_expand_floorceildf_32): Likewise.
11135 (ix86_expand_floorceil): Likewise.
11136 (ix86_expand_rounddf_32): Likewise.
11137 (ix86_expand_trunc): Likewise.
11138 (ix86_expand_truncdf_32): Likewise.
11139 (ix86_expand_round): Likewise.
11140
11141 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11142
11143 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
11144 first param from rtx to rtx_insn *.
11145 (h8300_insn_length_from_table): Likewise.
11146 * config/h8300/h8300.c (F): Likewise for return type and param
11147 "x".
11148 (Fpa): Add a checked cast to rtx_insn *.
11149 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
11150 rtx_insn *.
11151 (final_prescan_insn): Likewise for param "insn".
11152 (h8300_binary_length): Likewise.
11153 (h8300_insn_length_from_table): Likewise.
11154
11155 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11156
11157 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
11158 Strengthen first param "insn" from rtx to rtx_insn *.
11159
11160 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
11161 Likewise.
11162 (frame_insn): Likewise for return type. Introduce local "insn"
11163 for use in place of local "x" for use as an rtx_insn *.
11164 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
11165 (epiphany_expand_prologue): Likewise for local "insn".
11166 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
11167 * config/epiphany/resolve-sw-modes.c
11168 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
11169 "seq".
11170
11171 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11172
11173 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
11174 param from rtx to rtx_insn *.
11175 (c6x_final_prescan_insn): Likewise for first param.
11176
11177 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
11178 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
11179 (c6x_expand_compare): Strengthen local "insns" from rtx to
11180 rtx_insn *.
11181 (c6x_get_unit_specifier): Likewise for param "insn".
11182 (c6x_print_unit_specifier_field): Likewise.
11183 (c6x_final_prescan_insn): Likewise.
11184 (emit_add_sp_const): Likewise for local "insn".
11185 (c6x_expand_prologue): Likewise.
11186
11187 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11188
11189 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
11190 param 1 from rtx to rtx_insn *.
11191 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
11192 the various locals named "insn".
11193 (expand_epilogue_reg_restore): Likewise.
11194 (frame_related_constant_load): Likewise.
11195 (add_to_reg): Likewise.
11196 (emit_link_insn): Likewise.
11197 (do_link): Likewise.
11198 (expand_interrupt_handler_prologue): Likewise.
11199 (branch_dest): Likewise for param "branch".
11200 (asm_conditional_branch): Likewise for param "insn".
11201 (gen_one_bundle): Likewise for elements of param "slot" and local
11202 "t".
11203 (bfin_gen_bundles): Likewise for locals "insn", "next" and
11204 elements of local "slot".
11205 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11206 "queue", "next_queue", "prev".
11207 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
11208 (add_sched_insns_for_speculation): Likewise for local "insn".
11209
11210 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11211
11212 * config/avr/avr-protos.h (output_movqi): Strengthen first param
11213 from rtx to rtx_insn *.
11214 (output_movhi): Likewise.
11215 (output_movsisf): Likewise.
11216 (avr_out_tstsi): Likewise.
11217 (avr_out_tsthi): Likewise.
11218 (avr_out_tstpsi): Likewise.
11219 (avr_out_compare): Likewise.
11220 (avr_out_compare64): Likewise.
11221 (avr_out_movpsi): Likewise.
11222 (ashlqi3_out): Likewise.
11223 (ashlhi3_out): Likewise.
11224 (ashlsi3_out): Likewise.
11225 (ashrqi3_out): Likewise.
11226 (ashrhi3_out): Likewise.
11227 (ashrsi3_out): Likewise.
11228 (lshrqi3_out): Likewise.
11229 (lshrhi3_out): Likewise.
11230 (lshrsi3_out): Likewise.
11231 (avr_out_ashlpsi3): Likewise.
11232 (avr_out_ashrpsi3): Likewise.
11233 (avr_out_lshrpsi3): Likewise.
11234 (avr_out_fract): Likewise.
11235 (avr_out_sbxx_branch): Likewise.
11236 (avr_out_round): Likewise.
11237 (avr_out_xload): Likewise.
11238 (avr_out_movmem): Likewise.
11239 (adjust_insn_length): Likewise.
11240 (avr_out_lpm): Likewise.
11241 (reg_unused_after): Likewise.
11242 (_reg_unused_after): Likewise.
11243 (avr_jump_mode): Likewise for second param.
11244 (jump_over_one_insn): Likewise for first param.
11245 (avr_final_prescan_insn): Likewise.
11246 (out_shift_with_cnt): Likewise for second param.
11247
11248 * config/avr/avr.c (get_sequence_length): Likewise for param
11249 "insns" and local "insn".
11250 (emit_push_byte): Likewise for local "insn".
11251 (emit_push_sfr): Likewise.
11252 (avr_prologue_setup_frame): Likewise for locals "insn",
11253 "fp_plus_insns", "sp_plus_insns".
11254 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
11255 "sp_plus_insns".
11256 (avr_jump_mode): Likewise for param "insn".
11257 (avr_final_prescan_insn): Likewise.
11258 (avr_find_unused_d_reg): Likewise.
11259 (avr_out_lpm_no_lpmx): Likewise.
11260 (avr_out_lpm): Likewise.
11261 (avr_out_xload): Likewise.
11262 (output_movqi): Likewise.
11263 (output_movhi): Likewise.
11264 (out_movqi_r_mr): Likewise.
11265 (out_movhi_r_mr): Likewise.
11266 (out_movsi_r_mr): Likewise.
11267 (out_movsi_mr_r): Likewise.
11268 (output_movsisf): Likewise.
11269 (avr_out_load_psi): Likewise.
11270 (avr_out_store_psi): Likewise.
11271 (avr_out_movpsi): Likewise.
11272 (out_movqi_mr_r): Likewise.
11273 (avr_out_movhi_mr_r_xmega): Likewise.
11274 (out_movhi_mr_r): Likewise.
11275 (compare_condition): Likewise for param "insn" and local "next".
11276 (compare_sign_p): Likewise for param "insn".
11277 (compare_diff_p): Likewise.
11278 (compare_eq_p): Likewise.
11279 (avr_out_compare): Likewise.
11280 (avr_out_compare64): Likewise.
11281 (avr_out_tsthi): Likewise.
11282 (avr_out_tstpsi): Likewise.
11283 (avr_out_tstsi): Likewise.
11284 (out_shift_with_cnt): Likewise.
11285 (ashlqi3_out): Likewise.
11286 (ashlhi3_out): Likewise.
11287 (avr_out_ashlpsi3): Likewise.
11288 (ashlsi3_out): Likewise.
11289 (ashrqi3_out): Likewise.
11290 (ashrhi3_out): Likewise.
11291 (avr_out_ashrpsi3): Likewise.
11292 (ashrsi3_out): Likewise.
11293 (lshrqi3_out): Likewise.
11294 (lshrhi3_out): Likewise.
11295 (avr_out_lshrpsi3): Likewise.
11296 (lshrsi3_out): Likewise.
11297 (avr_out_fract): Likewise.
11298 (avr_out_round): Likewise.
11299 (avr_adjust_insn_length): Likewise.
11300 (reg_unused_after): Likewise.
11301 (_reg_unused_after): Likewise.
11302 (avr_compare_pattern): Likewise.
11303 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
11304 and locals "branch1", "branch2", "insn2", "jump".
11305 (avr_reorg): Likewise for local "insn".
11306 (avr_2word_insn_p): Likewise for param "insn".
11307 (jump_over_one_insn_p): Likewise.
11308 (avr_out_sbxx_branch): Likewise.
11309 (avr_out_movmem): Likewise.
11310
11311 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11312
11313 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
11314 param from rtx to rtx_insn *.
11315 (thumb1_final_prescan_insn): Likewise.
11316 (thumb2_final_prescan_insn): Likewise.
11317
11318 * config/arm/arm.c (emit_set_insn): Strengthen return type from
11319 rtx to rtx_insn *.
11320 (struct minipool_node): Likewise for field "insn".
11321 (dump_minipool): Likewise for param "scan".
11322 (create_fix_barrier): Likewise for local "from". Strengthen local
11323 "label" from rtx to rtx_code_label *.
11324 (push_minipool_barrier): Strengthen param "insn" from rtx to
11325 rtx_insn *.
11326 (push_minipool_fix): Likewise.
11327 (note_invalid_constants): Likewise.
11328 (thumb2_reorg): Likewise for local "insn".
11329 (arm_reorg): Likewise.
11330 (thumb2_final_prescan_insn): Likewise for param
11331 "insn" and local "first_insn".
11332 (arm_final_prescan_insn): Likewise for param "insn" and locals
11333 "start_insn", "this_insn".
11334 (arm_debugger_arg_offset): Likewise for param "insn".
11335 (thumb1_emit_multi_reg_push): Likewise for return type and local
11336 "insn".
11337 (thumb1_final_prescan_insn): Likewise for param "insn".
11338 (thumb_far_jump_used_p): Likewise for local "insn".
11339 (thumb1_expand_prologue): Likewise.
11340 (arm_expand_epilogue_apcs_frame): Likewise.
11341 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
11342 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
11343 from rtx to rtx_code_label *.
11344 (arm_split_atomic_op): Likewise for local "label".
11345 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
11346
11347 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11348
11349 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
11350 first param from rtx to rtx_insn *.
11351 (arc_verify_short): Likewise.
11352 (arc_short_long): Likewise.
11353 (arc_need_delay): Likewise.
11354
11355 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
11356 "target_insn".
11357 (arc_ccfsm_advance): Likewise for param "insn" and locals
11358 "start_insn", "this_insn".
11359 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
11360 (arc_ccfsm_post_advance): Likewise for param "insn".
11361 (arc_next_active_insn): Likewise for return type and param "insn".
11362 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
11363 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
11364 (output_short_suffix): Likewise for local "insn".
11365 (arc_final_prescan_insn): Likewise for param "insn". Remove
11366 now-redundant checked cast.
11367 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
11368 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
11369 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
11370 for use where lc_set became an insn.
11371 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
11372 rtx to rtx_insn *.
11373 (arc_get_insn_variants): Likewise for local "prev".
11374 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
11375 "next".
11376 (arc_predicate_delay_insns): Likewise for local "insn".
11377 (arc_pad_return): Likewise for local "prev". For now, add a
11378 checked cast when extracting the insn from "final_sequence".
11379 (arc_short_long): Likewise for param "insn".
11380 (arc_need_delay): Likewise for param "insn" and local "next".
11381 (arc_label_align): Likewise for locals "prev", "next".
11382
11383 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11384
11385 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
11386 "insn" from rtx to rtx_insn *.
11387 (alpha_gp_save_rtx): Likewise for local "seq".
11388 (alpha_instantiate_decls): Likewise for local "top".
11389 (get_some_local_dynamic_name): Likewise for local "insn".
11390 (alpha_does_function_need_gp): Likewise.
11391 (set_frame_related_p): Likewise for return type and for locals
11392 "seq" and "insn".
11393 (emit_frame_store_1): Likewise for local "insn".
11394 (alpha_expand_prologue): Likewise for locals "insn", "seq".
11395 (alpha_end_function): Likewise for local "insn".
11396 (alpha_output_mi_thunk_osf): Likewise.
11397 (alphaev4_insn_pipe): Likewise for param "insn".
11398 (alphaev5_insn_pipe): Likewise.
11399 (alphaev4_next_group): Likewise for return type and param 1
11400 "insn".
11401 (alphaev5_next_group): Likewise.
11402 (alpha_align_insns_1): Likewise for return type and param 1 of
11403 callback param "next_group", and for locals "i", "next", "prev",
11404 "where", "where2", "insn".
11405
11406 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
11407
11408 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
11409 rather than modifying the stmt.
11410
11411 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11412
11413 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
11414 cgraph_state conversion.
11415
11416 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11417
11418 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11419 Strengthen local "insns" from rtx to rtx_insn *.
11420 (aarch64_set_frame_expr): Likewise for local "insn".
11421 (aarch64_save_or_restore_fprs): Likewise.
11422 (aarch64_save_or_restore_callee_save_registers): Likewise.
11423 (aarch64_expand_prologue): Likewise.
11424 (aarch64_expand_epilogue): Likewise.
11425 (aarch64_output_mi_thunk): Likewise.
11426 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
11427 "label2" from rtx to rtx_code_label *.
11428 (aarch64_split_atomic_op): Likewise for local "label".
11429
11430 2014-08-25 Martin Liska <mliska@suse.cz>
11431
11432 * cgraph.h (symtab_node):
11433 (bool needed_p (void)): created from decide_is_symbol_needed
11434 (bool referred_to_p (void)): created from referred_to_p
11435 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
11436 * cgraph.h (cgraph_node):
11437 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
11438 (void expand (void)): created from expand_function
11439 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
11440 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
11441 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
11442 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
11443 * cgraph.h (varpool_node):
11444 (static void add (tree decl): created from varpool_add_new_variable
11445 * cgraph.h (cgraph_edge):
11446 void remove (void);
11447 (void remove_caller (void)): created from cgraph_edge_remove_caller
11448 (void remove_callee (void)): created from cgraph_edge_remove_callee
11449 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
11450 created from cgraph_set_call_stmt
11451 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
11452 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
11453 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
11454 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
11455 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
11456 created from cgraph_speculative_call_info
11457 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
11458 int freq_scale, bool update_original)): created from cgraph_clone_edge
11459 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
11460 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
11461 (bool recursive_p (void)): created from cgraph_edge_recursive_p
11462 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
11463 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
11464 (static void rebuild_references (void)): created from cgraph_rebuild_references
11465 * cgraph.h (symbol_table):
11466 (create_reference): renamed from add_reference
11467 (maybe_create_reference): renamed from maybe_add_reference
11468 (void register_symbol (symtab_node *node)): new function
11469 (void clear_asm_symbols (void)): new function
11470 (void unregister (symtab_node *node)): new function
11471 (void release_symbol (cgraph_node *node, int uid)): new function
11472 (cgraph_node * allocate_cgraph_symbol (void)): new function
11473 (void initialize (void)): created from cgraph_init
11474 (symtab_node *first_symbol (void)):new function
11475 (asm_node *first_asm_symbol (void)):new function
11476 (symtab_node *first_defined_symbol (void)):new function
11477 (varpool_node *first_variable (void)):new function
11478 (varpool_node *next_variable (varpool_node *node)):new function
11479 (varpool_node *first_static_initializer (void)):new function
11480 (varpool_node *next_static_initializer (varpool_node *node)):new function
11481 (varpool_node *first_defined_variable (void)):new function
11482 (varpool_node *next_defined_variable (varpool_node *node)):new function
11483 (cgraph_node *first_defined_function (void)):new function
11484 (cgraph_node *next_defined_function (cgraph_node *node)):new function
11485 (cgraph_node *first_function (void)):new function
11486 (cgraph_node *next_function (cgraph_node *node)):new function
11487 (cgraph_node *first_function_with_gimple_body (void)):new function
11488 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
11489 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
11490 created from symtab_remove_unreachable_nodes
11491 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
11492 (void process_new_functions (void)): created from cgraph_process_new_functions
11493 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
11494 (bool output_variables (void)): created from varpool_node::output_variables
11495 (void output_asm_statements (void)): created from output_asm_statements
11496 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
11497 (void compile (void)): created from compile
11498 (void output_weakrefs (void)): created from output_weakrefs
11499 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
11500 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
11501 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
11502 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
11503 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
11504 created from cgraph_next_function_with_gimple_body
11505 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
11506 created from cgraph_remove_edge_removal_hook
11507 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
11508 created from cgraph_add_node_removal_hook
11509 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
11510 created from cgraph_remove_node_removal_hook
11511 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
11512 created from varpool_add_node_removal_hook
11513 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
11514 created from varpool_remove_node_removal_hook
11515 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
11516 created from cgraph_add_function_insertion_hook
11517 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
11518 created from cgraph_remove_function_insertion_hook
11519 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
11520 created from varpool_add_variable_insertion_hook
11521 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
11522 created from varpool_remove_variable_insertion_hook
11523 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
11524 created from cgraph_add_edge_duplication_hook
11525 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
11526 created from cgraph_remove_edge_duplication_hook
11527 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
11528 created from cgraph_add_node_duplication_hook
11529 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
11530 created from cgraph_remove_node_duplication_hook
11531 (void call_edge_removal_hooks (cgraph_edge *e)):
11532 created from cgraph_call_edge_removal_hooks
11533 (void call_cgraph_insertion_hooks (cgraph_node *node)):
11534 created from call_function_insertion_hooks
11535 (void call_cgraph_removal_hooks (cgraph_node *node)):
11536 created from cgraph_call_node_removal_hooks
11537 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
11538 created from cgraph_node::call_duplication_hooks
11539 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
11540 created from cgraph_call_edge_duplication_hooks
11541 (void call_varpool_removal_hooks (varpool_node *node)):
11542 created from varpool_call_node_removal_hooks
11543 (void call_varpool_insertion_hooks (varpool_node *node)):
11544 created from varpool_call_variable_insertion_hooks
11545 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
11546 created from insert_to_assembler_name_hash
11547 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
11548 created from unlink_from_assembler_name_hash
11549 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
11550 created from symtab_prevail_in_asm_name_hash
11551 (void symtab_initialize_asm_name_hash (void)):
11552 created from symtab_initialize_asm_name_hash
11553 (void change_decl_assembler_name (tree decl, tree name)):
11554 created from change_decl_assembler_name
11555 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
11556 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
11557 created from decl_assembler_name_hash
11558 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
11559 created from decl_assembler_name_equal
11560 (static hashval_t hash_node_by_assembler_name (const void *p)):
11561 created from hash_node_by_assembler_name
11562 (static int eq_assembler_name (const void *p1, const void *p2)):
11563 created from eq_assembler_name
11564
11565 2014-08-25 Marek Polacek <polacek@redhat.com>
11566
11567 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
11568
11569 2014-08-25 Petr Murzin <petr.murzin@intel.com>
11570
11571 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
11572 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
11573 SWI1248_AVX512BW mode iterator.
11574
11575 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
11576
11577 PR target/62111
11578 * config/sh/predicates.md (general_extend_operand): Disable
11579 TRUNCATE before reload completes.
11580
11581 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
11582
11583 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
11584
11585 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
11586
11587 PR target/61996
11588 * config/sh/sh.opt (musermode): Allow negative form.
11589 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
11590 targets that don't support it.
11591 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
11592 Document -mno-usermode option.
11593
11594 2014-08-24 Kito Cheng <kito@0xlab.org>
11595
11596 * system.h (CALLER_SAVE_PROFITABLE): Poison.
11597 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
11598 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
11599 * doc/tm.texi: Regenerate.
11600
11601 2014-08-24 Kito Cheng <kito@0xlab.org>
11602
11603 * ira.c: Fix typo in comment.
11604
11605 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
11606
11607 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
11608 Deprecate c++1y. Change language to reflect greater confidence in C++14.
11609
11610 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
11611
11612 PR target/62038
11613 * config/pa/pa.c (pa_output_function_epilogue): Don't set
11614 last_address when the current function is a thunk.
11615 (pa_asm_output_mi_thunk): When we don't have named sections or they
11616 are not being used, check that thunk can reach the stub table with a
11617 short branch.
11618
11619 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11620
11621 * web.c (union_match_dups): Strengthen param "insn" from rtx to
11622 rtx_insn *.
11623 (pass_web::execute): Likewise for local "insn".
11624
11625 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11626
11627 * var-tracking.c (struct micro_operation_def): Strengthen field
11628 "insn" from rtx to rtx_insn *.
11629 (struct emit_note_data_def): Likewise.
11630 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
11631 (vt_stack_adjustments): Likewise for local "insn".
11632 (adjust_insn): Likewise for param "insn".
11633 (val_store): Likewise.
11634 (val_resolve): Likewise.
11635 (struct count_use_info): Likewise for field "insn".
11636 (log_op_type): Likewise for param "insn".
11637 (reverse_op): Likewise.
11638 (prepare_call_arguments): Likewise.
11639 (add_with_sets): The initial param takes an insn, but we can't
11640 yet strengthen it from rtx to rtx_insn * since it's used as a
11641 cselib_record_sets_hook callback. For now rename initial param
11642 from "insn" to "uncast_insn", and introduce a local "insn" of
11643 the stronger rtx_insn * type, with a checked cast.
11644 (compute_bb_dataflow): Strengthen local "insn" from rtx to
11645 rtx_insn *.
11646 (emit_note_insn_var_location): Likewise.
11647 (emit_notes_for_changes): Likewise.
11648 (emit_notes_for_differences): Likewise.
11649 (next_non_note_insn_var_location): Likewise for return type and
11650 for param "insn".
11651 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
11652 (vt_initialize): Likewise for local "insn".
11653 (delete_debug_insns): Likewise for locals "insn" and "next".
11654
11655 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11656
11657 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
11658 rtx_insn *.
11659 (mark_constant_pool): Likewise for local "insn".
11660
11661 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11662
11663 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
11664 rtx to rtx_insn *.
11665 (dead_debug_promote_uses): Likewise.
11666 (dead_debug_insert_temp): Likewise.
11667
11668 2014-08-23 David Malcolm <dmalcolm@redhat.com>
11669
11670 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
11671 from const_rtx to const rtx_insn *.
11672 (store_killed_after): Likewise. Strengthen locals "last", "act"
11673 from rtx to rtx_insn *.
11674 (store_killed_before): Strengthen param "insn" from const_rtx to
11675 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
11676 (find_moveable_store): Strengthen param "insn" from rtx to
11677 rtx_insn *.
11678 (compute_store_table): Likewise for local "insn".
11679 (insert_insn_start_basic_block): Likewise for param "insn" and
11680 locals "prev", "before", "insn".
11681 (insert_store): For now, add a checked cast to rtx_insn * on the
11682 result of gen_move_insn.
11683 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
11684 to rtx_insn *.
11685 (replace_store_insn): Likewise. For now, add a checked cast to
11686 rtx_insn * on the result of gen_move_insn.
11687
11688 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11689
11690 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
11691 rtx_insn *.
11692 (expand_sjlj_dispatch_table): Likewise.
11693
11694 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11695
11696 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
11697 "insn" from rtx to rtx_insn *.
11698
11699 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11700
11701 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
11702 "insn" from rtx to rtx_insn *.
11703 (dup_block_and_redirect): Likewise for param 3 "before".
11704
11705 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
11706 from rtx to rtx_insn *.
11707 (move_insn_for_shrink_wrap): Likewise.
11708 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
11709 (dup_block_and_redirect): Likewise for param "before" and local
11710 "insn".
11711 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
11712 "end".
11713 (convert_to_simple_return): Likewise for local "start".
11714
11715 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
11716 Strengthen local "insn" from rtx to rtx_insn *, for use when
11717 invoking requires_stack_frame_p.
11718
11719 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11720
11721 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
11722 rtx_insn *.
11723 (speculate_expr): Likewise for locals "orig_insn_rtx",
11724 "spec_insn_rtx".
11725 (eq_transformed_insns): Likewise for locals "i1", "i2".
11726 (check_for_new_jump): Likewise for return type and local "end".
11727 (find_new_jump): Likewise for return type and local "jump".
11728 (sel_split_edge): Likewise for local "jump".
11729 (sel_create_recovery_block): Likewise.
11730 (sel_redirect_edge_and_branch_force): Likewise.
11731 (sel_redirect_edge_and_branch): Likewise.
11732
11733 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11734
11735 * sel-sched.c (substitute_reg_in_expr): Strengthen local
11736 "new_insn" from rtx to rtx_insn *.
11737 (create_insn_rtx_with_rhs): Likewise for return type and for local
11738 "insn_rtx".
11739 (create_insn_rtx_with_lhs): Likewise.
11740 (create_speculation_check): Likewise for local "insn_rtx".
11741 (implicit_clobber_conflict_p): Likewise for local "insn".
11742 (get_expr_cost): Likewise.
11743 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
11744 (move_cond_jump): Likewise for locals "next", "prev", "link",
11745 "head", "from", "to".
11746
11747 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11748
11749 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
11750 "next" from rtx to rtx_insn *.
11751 (find_conditional_protection): Likewise for local "next".
11752 (is_conditionally_protected): Likewise for local "insn1".
11753 (is_pfree): Likewise for locals "insn1", "insn2".
11754
11755 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11756
11757 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
11758 from rtx to rtx_insn *.
11759
11760 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
11761 locals "insn1", "insn2" from rtx to rtx_insn *.
11762 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
11763 locals "insn", "prev", "last_jump", "next_tail".
11764 (schedule_ebb): Likewise for params "head", "tail".
11765 (schedule_ebbs): Likewise for locals "tail", "head".
11766
11767 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
11768 to rtx_insn on "last_insn" in one of the invocations of
11769 schedule_ebb.
11770
11771 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11772
11773 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
11774 "elem", "insn" from rtx to rtx_insn *.
11775 (change_spec_dep_to_hard): Likewise.
11776 (get_back_and_forw_lists): Likewise for local "con".
11777 (sd_add_dep): Likewise for locals "elem", "insn".
11778 (sd_resolve_dep): Likewise for locals "pro", "con".
11779 (sd_unresolve_dep): Likewise.
11780 (sd_delete_dep): Likewise.
11781 (chain_to_prev_insn): Likewise for local "pro".
11782 (find_inc): Likewise for locals "pro", "con".
11783
11784 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11785
11786 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
11787 to rtx_insn *.
11788 (reg_set_between_p): Strengthen local "insn" from const_rtx to
11789 const rtx_insn *.
11790 (modified_between_p): Strengthen local "insn" from rtx to
11791 rtx_insn *.
11792 (remove_reg_equal_equiv_notes_for_regno): Likewise.
11793 (keep_with_call_p): Strengthen local "i2" from const_rtx to
11794 const rtx_insn *.
11795
11796 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11797
11798 * resource.c (next_insn_no_annul): Strengthen local "next" from
11799 rtx to rtx_insn *.
11800 (mark_referenced_resources): Likewise for local "insn".
11801
11802 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11803
11804 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
11805 to rtx_insn *.
11806 (find_reloads): Likewise for param 1.
11807 (subst_reloads): Likewise for sole param.
11808 (find_equiv_reg): Likwise for param 2.
11809 (regno_clobbered_p): Likwise for param 2.
11810 (reload): Likewise for param 1.
11811
11812 * caller-save.c (save_call_clobbered_regs): Strengthen local
11813 "insn" from rtx to rtx_insn *.
11814 (insert_one_insn): Likewise for local "insn".
11815
11816 * reload.c (this_insn): Likewise for this global.
11817 (find_reloads): Likewise for param "insn".
11818 (find_reloads_toplev): Likewise.
11819 (find_reloads_address): Likewise.
11820 (subst_reg_equivs): Likewise.
11821 (update_auto_inc_notes): Likewise.
11822 (find_reloads_address_1): Likewise.
11823 (find_reloads_subreg_address): Likewise.
11824 (subst_reloads): Likewise.
11825 (find_equiv_reg): Likewise, also for local "p".
11826 (regno_clobbered_p): Likewise for param "insn".
11827
11828 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
11829 array.
11830 (spill_reg_store): Likewise for the elements of this array.
11831 (remove_init_insns): Likewise for local "equiv_insn".
11832 (will_delete_init_insn_p): Likewise for param "insn".
11833 (reload): Likewise for param ""first" and local "insn".
11834 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
11835 rtx_insn *.
11836 (calculate_elim_costs_all_insns): Likewise.
11837 (delete_caller_save_insns): Likewise.
11838 (spill_failure): Likewise for param "insn".
11839 (delete_dead_insn): Likewise.
11840 (set_label_offsets): Likewise.
11841 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
11842 "prev_insn".
11843 (elimination_costs_in_insn): Likewise for param "insn".
11844 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
11845 when referring to an insn.
11846 (set_initial_label_offsets): Likewise.
11847 (set_offsets_for_label): Strengthen param "insn" from rtx to
11848 rtx_insn *.
11849 (init_eliminable_invariants): Likewise for param "first" and local
11850 "insn".
11851 (fixup_eh_region_note): Likewise for param "insn".
11852 (reload_as_needed): Likewise for locals "prev", "insn",
11853 "old_next", "old_prev", "next".
11854 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
11855 "last".
11856 (reload_inheritance_insn): Strengthen elements of this array from
11857 rtx to rtx_insn *.
11858 (failed_reload): Likewise for param "insn".
11859 (choose_reload_regs): Likewise for local "insn". Replace use of
11860 NULL_RTX with NULL when referring to an insn.
11861 (input_reload_insns): Strengthen elements of this array from rtx
11862 to rtx_insn *.
11863 (other_input_address_reload_insns): Likewise for this global.
11864 (other_input_reload_insns): Likewise for this global.
11865 (input_address_reload_insns): Likwise for the elements of this
11866 array.
11867 (inpaddr_address_reload_insns): Likwise for the elements of this
11868 array.
11869 (output_reload_insns): Likewise for the elements of this array.
11870 (output_address_reload_insns): Likewise for the elements of this
11871 array.
11872 (outaddr_address_reload_insns): Likewise for the elements of this
11873 array.
11874 (operand_reload_insns): Likewise for this global.
11875 (other_operand_reload_insns): Likewise for this global.
11876 (other_output_reload_insns): Likewise for the elements of this
11877 array.
11878 (new_spill_reg_store): Likewise for the elements of this
11879 array.
11880 (emit_input_reload_insns): Likewise for locals "insn", "temp".
11881 Strengthen local "where" from rtx * to rtx_insn **.
11882 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
11883 from rtx to rtx_insn *.
11884 (do_input_reload): Likewise for local "insn".
11885 (do_output_reload): Likewise for local "insn".
11886 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
11887 (emit_insn_if_valid_for_reload): Likewise for return type and local
11888 "last". Add checked cast to rtx_insn when returning "insn" since
11889 this has been through emit_insn.
11890 (gen_reload): Strengthen return type and locals "last", "insn", "set"
11891 from rtx to rtx_insn *. Add checked cast to rtx_insn when
11892 returning "insn" since it's been through
11893 emit_insn_if_valid_for_reload at this point.
11894 (delete_output_reload): Strengthen param "insn" and locals
11895 "output_reload_insn", "i2" from rtx to rtx_insn *.
11896 (delete_address_reloads): Likewise for params "dead_insn",
11897 "current_insn" and locals "prev", "next".
11898 (delete_address_reloads_1): Likewise for params "dead_insn",
11899 "current_insn" and locals "prev", "i2".
11900 (inc_for_reload): Likewise for locals "last", "add_insn".
11901 (add_auto_inc_notes): Strengthen param "insn" from rtx to
11902 rtx_insn *.
11903
11904 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
11905 param of this duplicate of the prototype from reload.h
11906
11907 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11908
11909 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
11910 rtx to rtx_insn *.
11911 (regstat_bb_compute_calls_crossed): Likewise.
11912
11913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11914
11915 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
11916 to rtx_insn *.
11917 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
11918 with an insn.
11919 (regrename_analyze): Strengthen local "insn" from rtx to
11920 rtx_insn *.
11921 (scan_rtx_reg): Likewise for param "insn".
11922 (scan_rtx_address): Likewise.
11923 (scan_rtx): Likewise.
11924 (restore_operands): Likewise.
11925 (record_out_operands): Likewise.
11926 (build_def_use): Likewise for local "insn". Replace use of
11927 NULL_RTX with NULL when dealing with an insn.
11928
11929 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11930
11931 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
11932 * reginfo.c (reg_scan): Likewise, also for local "insn".
11933 (reg_scan_mark_refs): Likewise for param "insn".
11934 (init_subregs_of_mode): Likewise for local "insn".
11935
11936 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11937
11938 * regcprop.c (struct queued_debug_insn_change): Strengthen field
11939 "insn" from rtx to rtx_insn *.
11940 (replace_oldest_value_reg): Likewise for param "insn".
11941 (replace_oldest_value_addr): Likewise.
11942 (replace_oldest_value_mem): Likewise.
11943 (apply_debug_insn_changes): Likewise for local "last_insn".
11944 (copyprop_hardreg_forward_1): Likewise for local "insn".
11945
11946 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11947
11948 * reg-stack.c (next_flags_user): Strengthen return type and param
11949 "insn" from rtx to rtx_insn *.
11950 (straighten_stack): Likewise for param "insn".
11951 (check_asm_stack_operands): Likewise.
11952 (remove_regno_note): Likewise.
11953 (emit_pop_insn): Likewise for return type, param "insn", local
11954 "pop_insn".
11955 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
11956 "limit" from rtx to rtx_insn *.
11957 (swap_to_top): Likewise for param "insn".
11958 (move_for_stack_reg): Likewise.
11959 (move_nan_for_stack_reg): Likewise.
11960 (swap_rtx_condition): Likewise.
11961 (compare_for_stack_reg): Likewise.
11962 (subst_all_stack_regs_in_debug_insn): Likewise.
11963 (subst_stack_regs_pat): Likewise, and local "insn2".
11964 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
11965 rtx_insn *.
11966 (subst_stack_regs): Likewise.
11967 (change_stack): Likewise.
11968 (convert_regs_1): Likewise for locals "insn", "next".
11969
11970 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11971
11972 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
11973 rtx_insn *.
11974 (combine_set_extension): Likewise for param "curr_insn".
11975 (transform_ifelse): Likewise for param "def_insn".
11976 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
11977 from vec<rtx> * to vec<rtx_insn *> *.
11978 (is_cond_copy_insn): Likewise for param "insn".
11979 (struct ext_state): Strengthen the four vec fields from vec<rtx>
11980 to vec<rtx_insn *>.
11981 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
11982 local "def_insn" from rtx to rtx_insn *.
11983 (get_sub_rtx): Likewise for param "def_insn".
11984 (merge_def_and_ext): Likewise.
11985 (combine_reaching_defs): Likewise.
11986 (add_removable_extension): Likewise for param "insn".
11987 (find_removable_extensions): Likewise for local "insn".
11988 (find_and_remove_re): Likewise for locals "curr_insn" and
11989 "def_insn". Strengthen locals "reinsn_del_list" and
11990 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
11991
11992 2014-08-22 David Malcolm <dmalcolm@redhat.com>
11993
11994 * recog.c (split_insn): Strengthen param "insn" and locals
11995 "first", "last" from rtx to rtx_insn *.
11996 (split_all_insns): Likewise for locals "insn", "next".
11997 (split_all_insns_noflow): Likewise.
11998
11999 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12000
12001 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12002 const rtx_insn *.
12003 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12004 (debug_rtx_find): Likewise for param 1 "x".
12005
12006 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12007 const_rtx to const rtx_insn *. Likewise for local "insn".
12008 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12009 (debug_rtx_find): Likewise for param 1 "x".
12010 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12011 from const_rtx to const rtx_insn * within the appropriate cases of
12012 the switch statement.
12013
12014 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12015 Strengthen local "insns" from rtx to rtx_insn * since this is
12016 passed to a call to debug_rtx_list.
12017
12018 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12019
12020 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12021 to rtx_insn *.
12022
12023 * function.c (stack_protect_epilogue): Add checked cast to
12024 rtx_insn for now when invoking predict_insn_def.
12025
12026 * predict.c (predict_insn): Strengthen param "insn" from rtx to
12027 rtx_insn *.
12028 (predict_insn_def): Likewise.
12029 (rtl_predict_edge): Likewise for local "last_insn".
12030 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12031 const rtx_insn *.
12032 (combine_predictions_for_insn): Strengthen param "insn" from rtx
12033 to rtx_insn *.
12034 (bb_estimate_probability_locally): Likewise for local "last_insn".
12035 (expensive_function_p): Likewise for local "insn".
12036
12037 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12038 local "jmp", since this is used when invoking predict_insn_def.
12039
12040 2014-08-22 Marek Polacek <polacek@redhat.com>
12041
12042 PR c++/62199
12043 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12044
12045 2014-08-22 Marek Polacek <polacek@redhat.com>
12046
12047 PR c/61271
12048 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12049 a comparison in parens.
12050 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12051 in parens.
12052
12053 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12054
12055 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12056 rtx_insn *.
12057
12058 * cprop.c (fis_get_condition): Likewise.
12059
12060 * postreload.c (reload_cse_regs): Likewise for param "first".
12061 (reload_cse_simplify): Likewise for param "insn".
12062 (reload_cse_regs_1): Likewise for local "insn".
12063 (reload_cse_simplify_set): Likewise for param "insn".
12064 (reload_cse_simplify_operands): Likewise.
12065 (struct reg_use): Likewise for field "insn".
12066 (reload_combine_purge_insn_uses): Likewise for param "insn".
12067 (fixup_debug_insns): Likewise for params "from", "to" and local
12068 "insn".
12069 (try_replace_in_use): Likewise for local "use_insn".
12070 (reload_combine_recognize_const_pattern): Likewise for param
12071 "insn" and locals "add_moved_after_insn", "use_insn".
12072 (reload_combine_recognize_pattern): Likewise for param "insn" and
12073 local "prev".
12074 (reload_combine): Likewise for locals "insn", "prev".
12075 (reload_combine_note_use): Likewise for param "insn".
12076 (move2add_use_add2_insn): Likewise.
12077 (move2add_use_add3_insn): Likewise.
12078 (reload_cse_move2add): Likewise, also for local "next".
12079 (move2add_note_store): Likewise for local "insn".
12080
12081 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12082
12083 * postreload-gcse.c (struct occr): Strengthen field "insn" from
12084 rtx to rtx_insn *.
12085 (struct unoccr): Likewise.
12086 (struct modifies_mem): Likewise.
12087 (alloc_mem): Likewise for local "insn".
12088 (insert_expr_in_table): Likewise for param "insn".
12089 (dump_expr_hash_table_entry): Likewise for local "insn".
12090 (oprs_unchanged_p): Likewise for param "insn".
12091 (load_killed_in_block_p): Likewise for local "setter".
12092 (record_last_reg_set_info): Likewise for param "insn".
12093 (record_last_reg_set_info_regno): Likewise.
12094 (record_last_mem_set_info): Likewise.
12095 (record_last_set_info): Likewise for local "last_set_insn".
12096 (record_opr_changes): Likewise for param "insn".
12097 (hash_scan_set): Likewise.
12098 (compute_hash_table): Likewise for local "insn".
12099 (get_avail_load_store_reg): Likewise for param "insn".
12100 (eliminate_partially_redundant_load): Likewise, also for locals
12101 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
12102 RTX for insns.
12103 (eliminate_partially_redundant_loads): Likewise for local "insn".
12104
12105 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12106
12107 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
12108 rtx to rtx_insn *.
12109 (expand_binop): Likewise for locals "entry_last", "last", "insns"
12110 (expand_twoval_unop): Likewise for locals entry_last", "last".
12111 (expand_twoval_binop): Likewise.
12112 (expand_twoval_binop_libfunc): Likewise for local "insns".
12113 (widen_leading): Likewise for local "last".
12114 (expand_doubleword_clz): Likewise for local "seq". Strengthen
12115 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
12116 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
12117 (expand_parity): Likewise for locals "last" and "seq".
12118 (expand_ffs): Likewise for local "seq". Strengthen local
12119 "nonzero_label" from rtx to rtx_code_label *.
12120 (expand_absneg_bit): Strengthen local "insns" from rtx to
12121 rtx_insn *.
12122 (expand_unop_direct): Likewise for local "last".
12123 (expand_unop): Likewise for locals "last", "insns".
12124 (expand_abs_nojump): Likewise for local "last".
12125 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
12126 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
12127 rtx_insn *.
12128 (expand_copysign_absneg): Strengthen local "label" from rtx to
12129 rtx_code_label *.
12130 (expand_copysign_bit): Strengthen local "insns" from rtx to
12131 rtx_insn *.
12132 (struct no_conflict_data): Likewise for fields "first", "insn".
12133 (emit_libcall_block_1): Likewise for param "insns" and locals
12134 "next", "last", "insn".
12135 (emit_libcall_block): For now, add a checked cast to rtx_insn *
12136 on "insns" when invoking emit_libcall_block_1. Ultimately we
12137 want to strengthen insns itself.
12138 (prepare_cmp_insn): Strengthen local "last" from rtx to
12139 rtx_insn *.
12140 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
12141 (prepare_float_lib_cmp): Likewise for local "insns".
12142 (emit_conditional_move): Likewise for local "last".
12143 (emit_conditional_add): Likewise.
12144 (have_sub2_insn): Likewise for local "seq".
12145 (expand_float): Likewise for local "insns". Strengthen locals
12146 "label", "neglabel" from rtx to rtx_code_label *.
12147 (expand_fix): Likewise for locals "last", "insn", "insns" (to
12148 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
12149 (expand_fixed_convert): Likewise for local "insns" (to
12150 rtx_insn *).
12151 (expand_sfix_optab): Likewise for local "last".
12152 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
12153 to rtx_code_label *.
12154 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
12155 from rtx to rtx_insn *.
12156 (expand_atomic_fetch_op): Likewise for local "insn".
12157 (maybe_legitimize_operand_same_code): Likewise for local "last".
12158 (maybe_legitimize_operands): Likewise.
12159
12160 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12161
12162 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
12163 "insn" from rtx to rtx_insn *.
12164 (ps_rtl_insn): Likewise for return type.
12165 (doloop_register_get): Likewise for params "head", "tail" and
12166 locals "insn", "first_insn_not_to_check".
12167 (schedule_reg_move): Likewise for local "this_insn".
12168 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
12169 of gen_move_insn for now.
12170 (reset_sched_times): Strengthen local "insn" from rtx to
12171 rtx_insn *.
12172 (permute_partial_schedule): Likewise.
12173 (duplicate_insns_of_cycles): Likewise for local "u_insn".
12174 (dump_insn_location): Likewise for param "insn".
12175 (loop_canon_p): Likewise for local "insn".
12176 (sms_schedule): Likewise.
12177 (print_partial_schedule): Likewise.
12178 (ps_has_conflicts): Likewise.
12179
12180 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12181
12182 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
12183 "tailp" from rtx * to rtx_insn **.
12184
12185 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
12186 from rtx to rtx_insn *.
12187 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
12188 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
12189 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
12190 rtx to rtx_insn *.
12191 * modulo-sched.c (const_iteration_count): Strengthen return type
12192 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
12193 use of NULL_RTX with NULL when working with insns.
12194 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
12195 to rtx_insn *.
12196 (sms_schedule): Likewise.
12197 * sched-rgn.c (init_ready_list): Likewise, also for locals
12198 "src_head" and "src_next_tail".
12199 (compute_block_dependences): Likewise.
12200 (free_block_dependencies): Likewise.
12201 (debug_rgn_dependencies): Likewise.
12202 (free_rgn_deps): Likewise.
12203 (compute_priorities): Likewise.
12204 (schedule_region): Likewise.
12205 * sel-sched.c (find_ebb_boundaries): Likewise.
12206
12207 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
12208 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
12209
12210 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12211
12212 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
12213 from rtx to rtx_insn *.
12214 (new_seginfo): Likewise for param "insn".
12215 (create_pre_exit): Likewise for locals "last_insn",
12216 "before_return_copy", "return_copy".
12217 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
12218 "mode_set".
12219
12220 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12221
12222 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
12223 from rtx to rtx_insn *.
12224 (lra_push_insn): Likewise for 1st param.
12225 (lra_push_insn_and_update_insn_regno_info): Likewise.
12226 (lra_pop_insn): Likewise for return type.
12227 (lra_invalidate_insn_data): Likewise for 1st param.
12228 (lra_set_insn_deleted): Likewise.
12229 (lra_delete_dead_insn): Likewise.
12230 (lra_process_new_insns): Likewise for first 3 params.
12231 (lra_set_insn_recog_data): Likewise for 1st param.
12232 (lra_update_insn_recog_data): Likewise.
12233 (lra_set_used_insn_alternative): Likewise.
12234 (lra_invalidate_insn_regno_info): Likewise.
12235 (lra_update_insn_regno_info): Likewise.
12236 (lra_former_scratch_operand_p): Likewise.
12237 (lra_eliminate_regs_1): Likewise.
12238 (lra_get_insn_recog_data): Likewise.
12239
12240 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
12241 rtx to rtx_insn *.
12242
12243 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
12244 "mv1" and "mv2".
12245 (substitute_within_insn): New.
12246 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
12247 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
12248 Replace call to "substitute" with call to substitute_within_insn.
12249
12250 * lra-constraints.c (curr_insn): Strengthen from rtx to
12251 rtx_insn *.
12252 (get_equiv_with_elimination): Likewise for param "insn".
12253 (match_reload): Strengthen params "before" and "after" from rtx *
12254 to rtx_insn **.
12255 (emit_spill_move): Likewise for return type. Add a checked cast
12256 to rtx_insn * on result of gen_move_insn for now.
12257 (check_and_process_move): Likewise for local "before". Replace
12258 NULL_RTX with NULL when referring to insns.
12259 (process_addr_reg): Strengthen params "before" and "after" from
12260 rtx * to rtx_insn **.
12261 (insert_move_for_subreg): Likewise.
12262 (simplify_operand_subreg): Strengthen locals "before" and "after"
12263 from rtx to rtx_insn *.
12264 (process_address_1): Strengthen params "before" and "after" from
12265 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
12266 rtx to rtx_insn *.
12267 (process_address): Strengthen params "before" and "after" from
12268 rtx * to rtx_insn **.
12269 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
12270 (curr_insn_transform): Strengthen locals "before" and "after"
12271 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
12272 to insns.
12273 (loc_equivalence_callback): Update cast of "data", changing
12274 resulting type from rtx to rtx_insn *.
12275 (substitute_pseudo_within_insn): New.
12276 (inherit_reload_reg): Strengthen param "insn" from rtx to
12277 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
12278 NULL when referring to insns. Add a checked cast to rtx_insn *
12279 when using usage_insn to invoke lra_update_insn_regno_info.
12280 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
12281 likewise for locals "restore", "save". Add checked casts to
12282 rtx_insn * when using usage_insn to invoke
12283 lra_update_insn_regno_info and lra_process_new_insns. Replace
12284 NULL_RTX with NULL when referring to insns.
12285 (split_if_necessary): Strengthen param "insn" from rtx to
12286 rtx_insn *.
12287 (update_ebb_live_info): Likewise for params "head", "tail" and local
12288 "prev_insn".
12289 (get_last_insertion_point): Likewise for return type and local "insn".
12290 (get_live_on_other_edges): Likewise for local "last".
12291 (inherit_in_ebb): Likewise for params "head", "tail" and locals
12292 "prev_insn", "next_insn", "restore".
12293 (remove_inheritance_pseudos): Likewise for local "prev_insn".
12294 (undo_optional_reloads): Likewise for local "insn".
12295
12296 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
12297 "insn".
12298 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
12299 insns.
12300 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
12301 rtx_insn *.
12302 (spill_pseudos): Likewise for local "insn".
12303 (init_elimination): Likewise.
12304 (process_insn_for_elimination): Likewise for param "insn".
12305
12306 * lra-lives.c (curr_insn): Likewise.;
12307
12308 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
12309 (remove_pseudos): Likewise for param "insn".
12310 (spill_pseudos): Likewise for local "insn".
12311 (lra_final_code_change): Likewise for locals "insn", "curr".
12312
12313 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
12314 (lra_set_insn_deleted): Likewise.
12315 (lra_delete_dead_insn): Likewise, and for local "prev".
12316 (new_insn_reg): Likewise for param "insn".
12317 (lra_set_insn_recog_data): Likewise.
12318 (lra_update_insn_recog_data): Likewise.
12319 (lra_set_used_insn_alternative): Likewise.
12320 (get_insn_freq): Likewise.
12321 (invalidate_insn_data_regno_info): Likewise.
12322 (lra_invalidate_insn_regno_info): Likewise.
12323 (lra_update_insn_regno_info): Likewise.
12324 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
12325 vec<rtx_insn *>.
12326 (lra_push_insn_1): Strengthen param "insn" from rtx to
12327 rtx_insn *.
12328 (lra_push_insn): Likewise.
12329 (lra_push_insn_and_update_insn_regno_info): Likewise.
12330 (lra_pop_insn): Likewise for return type and local "insn".
12331 (push_insns): Likewise for params "from", "to", and local "insn".
12332 (setup_sp_offset): Likewise for params "from", "last" and locals
12333 "before", "insn".
12334 (lra_process_new_insns): Likewise for params "insn", "before",
12335 "after" and local "last".
12336 (struct sloc): Likewise for field "insn".
12337 (lra_former_scratch_operand_p): Likewise for param "insn".
12338 (remove_scratches): Likewise for locals "insn", "last".
12339 (check_rtl): Likewise for local "insn".
12340 (add_auto_inc_notes): Likewise for param "insn".
12341 (update_inc_notes): Likewise for local "insn".
12342 (lra): Replace NULL_RTX with NULL when referring to insn.
12343
12344 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12345
12346 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
12347 to rtx_insn *.
12348 (resolve_reg_notes): Likewise.
12349 (resolve_simple_move): Likewise for return type, param "insn", and
12350 locals "insns", "minsn".
12351 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
12352 (resolve_use): Likewise.
12353 (resolve_debug): Likewise.
12354 (find_decomposable_shift_zext): Likewise.
12355 (resolve_shift_zext): Likewise for return type, param "insn", and
12356 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
12357 (decompose_multiword_subregs): Likewise for local "insn",
12358 "orig_insn", "decomposed_shift", "end".
12359
12360 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12361
12362 * basic-block.h (basic_block split_edge_and_insert): Strengthen
12363 param "insns" from rtx to rtx_insn *.
12364
12365 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
12366 rtx to rtx_insn *.
12367 (struct iv_to_split): Likewise.
12368 (loop_exit_at_end_p): Likewise for local "insn".
12369 (split_edge_and_insert): Likewise for param "insns".
12370 (compare_and_jump_seq): Likewise for return type, param "cinsn",
12371 and locals "seq", "jump".
12372 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
12373 "branch_code"; update invocations of compare_and_jump_seq to
12374 eliminate NULL_RTX in favor of NULL.
12375 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
12376 rtx to rtx_insn *.
12377 (reset_debug_uses_in_loop): Likewise.
12378 (analyze_insn_to_expand_var): Likewise for param "insn".
12379 (analyze_iv_to_split_insn): Likewise.
12380 (analyze_insns_in_loop): Likewise for local "insn".
12381 (insert_base_initialization): Likewise for param
12382 "insn" and local "seq".
12383 (split_iv): Likewise for param "insn" and local "seq".
12384 (expand_var_during_unrolling): Likewise for param "insn".
12385 (insert_var_expansion_initialization): Likewise for local "seq".
12386 (combine_var_copies_in_loop_exit): Likewise.
12387 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
12388 "insn".
12389 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
12390 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
12391 "next".
12392
12393 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12394
12395 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
12396 rtx_insn *.
12397 (iv_analyze_result): Likewise.
12398 (iv_analyze_expr): Likewise.
12399 (biv_p): Likewise.
12400
12401 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
12402 local "def_insn" from rtx to rtx_insn *.
12403 (get_biv_step_1): Likewise for local "insn".
12404 (iv_analyze_expr): Likewise for param "insn".
12405 (iv_analyze_def): Likewise for local "insn".
12406 (iv_analyze_op): Likewise for param "insn".
12407 (iv_analyze): Likewise.
12408 (iv_analyze_result): Likewise.
12409 (biv_p): Likewise.
12410 (suitable_set_for_replacement): Likewise.
12411 (simplify_using_initial_values): Likewise for local "insn".
12412 (iv_number_of_iterations): Likewise for param "insn".
12413 (check_simple_exit): Add checked cast to rtx_insn when invoking
12414 iv_number_of_iterations for now (until get_condition is
12415 strengthened).
12416
12417 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
12418 "insn" from rtx to rtx_insn *.
12419 (analyze_insns_in_loop): Likewise for local "insn".
12420
12421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12422
12423 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
12424 to rtx_insn *.
12425 (struct invariant): Likewise.
12426 (hash_invariant_expr_1): Likewise for param "insn".
12427 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
12428 (find_exits): Likewise for local "insn".
12429 (create_new_invariant): Likewise for param "insn".
12430 (check_dependencies): Likewise.
12431 (find_invariant_insn): Likewise.
12432 (record_uses): Likewise.
12433 (find_invariants_insn): Likewise.
12434 (find_invariants_bb): Likewise for local "insn".
12435 (get_pressure_class_and_nregs): Likewise for param "insn".
12436 (calculate_loop_reg_pressure): Likewise for local "insn".
12437
12438 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12439
12440 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
12441 to rtx_insn *.
12442 (add_test): Likewise for locals "seq", "jump".
12443 (doloop_modify): Likewise for locals "sequence", "jump_insn".
12444
12445 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12446
12447 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
12448 rtx_insn *.
12449 (rebuild_jump_labels_chain): Likewise for param "chain".
12450
12451 * cfgexpand.c (pass_expand::execute): Add checked cast to
12452 rtx_insn * when calling rebuild_jump_labels_chain in region where
12453 we know e->insns.r is non-NULL.
12454
12455 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
12456 rtx_insn *.
12457 (rebuild_jump_labels): Likewise.
12458 (rebuild_jump_labels_chain): Likewise for param "chain".
12459 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
12460 (init_label_info): Likewise for param "f".
12461 (maybe_propagate_label_ref): Likewise for params "jump_insn",
12462 "prev_nonjump_insn".
12463 (mark_all_labels): Likewise for param "f" and locals "insn",
12464 "prev_nonjump_insn".
12465
12466 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12467
12468 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
12469 from rtx to rtx_insn *insn.
12470 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
12471 (ira_add_allocno_copy): Likewise.
12472 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
12473 rtx to rtx_insn *.
12474 (ira_create_copy): Likewise.
12475 (ira_add_allocno_copy): Likewise.
12476 (create_bb_allocnos): Likewise for local "insn".
12477 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
12478 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
12479 process_regs_for_copy for rtx_insn * param.
12480 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
12481 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
12482 process_regs_for_copy for rtx_insn * param.
12483 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
12484 * ira-costs.c (record_reg_classes): Likewise for param "insn".
12485 (record_operand_costs): Likewise.
12486 (scan_one_insn): Likewise for return type, and for param "insn".
12487 (process_bb_for_costs): Likewise for local "insn".
12488 (process_bb_node_for_hard_reg_moves): Likewise.
12489 * ira-emit.c (struct move): Likewise for field "insn".
12490 (create_move): Eliminate use of NULL_RTX when dealing with an
12491 rtx_insn *.
12492 (emit_move_list): Strengthen return type and locals "result",
12493 "insn" from rtx to rtx_insn *insn.
12494 (emit_moves): Likewise for locals "insns", "tmp".
12495 (ira_emit): Likewise for local "insn".
12496 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
12497 "insn".
12498 (find_call_crossed_cheap_reg): Likewise.
12499 (process_bb_node_lives): Likewise for local "insn".
12500 * ira.c (decrease_live_ranges_number): Likewise.
12501 (compute_regs_asm_clobbered): Likewise.
12502 (build_insn_chain): Likewise.
12503 (find_moveable_pseudos): Likewise, also locals "def_insn",
12504 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
12505 to rtx_insn **. Add a checked cast when assigning from
12506 "closest_use" into closest_uses array in a region where we know
12507 it's a non-NULL insn.
12508 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
12509 to rtx_insn *.
12510 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
12511 "last_interesting_insn", "uin".
12512 (move_unallocated_pseudos): Likewise for locals "def_insn",
12513 "move_insn", "newinsn".
12514
12515 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12516
12517 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
12518 Strengthen locals "done_label", "do_error" from rtx to
12519 rtx_code_label *.
12520 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
12521 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
12522 rtx_code_label *.
12523 (ubsan_expand_si_overflow_neg_check): Likewise for locals
12524 "done_label", "do_error" to rtx_code_label * and local "last" to
12525 rtx_insn *.
12526 (ubsan_expand_si_overflow_mul_check): Likewise for locals
12527 "done_label", "do_error", "large_op0", "small_op0_large_op1",
12528 "one_small_one_large", "both_ops_large", "after_hipart_neg",
12529 "after_lopart_neg", "do_overflow", "hipart_different" to
12530 rtx_code_label * and local "last" to rtx_insn *.
12531
12532 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12533
12534 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
12535 "insn" and "move_insn" from rtx to rtx_insn *.
12536
12537 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12538
12539 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
12540 rtx_insn *.
12541 (cheap_bb_rtx_cost_p): Likewise.
12542 (first_active_insn): Likewise for return type and local "insn".
12543 (last_active_insn): Likewise for return type and locals "insn",
12544 "head".
12545 (struct noce_if_info): Likewise for fields "jump", "insn_a",
12546 "insn_b".
12547 (end_ifcvt_sequence): Likewise for return type and locals "insn",
12548 "seq".
12549 (noce_try_move): Likewise for local "seq".
12550 (noce_try_store_flag): Likewise.
12551 (noce_try_store_flag_constants): Likewise.
12552 (noce_try_addcc): Likewise.
12553 (noce_try_store_flag_mask): Likewise.
12554 (noce_try_cmove): Likewise.
12555 (noce_try_minmax): Likewise.
12556 (noce_try_abs): Likewise.
12557 (noce_try_sign_mask): Likewise.
12558 (noce_try_bitop): Likewise.
12559 (noce_can_store_speculate_p): Likewise for local "insn".
12560 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
12561 seq".
12562 (check_cond_move_block): Likewise for local "insn".
12563 (cond_move_convert_if_block): Likewise.
12564 (cond_move_process_if_block): Likewise for locals "seq",
12565 "loc_insn".
12566 (noce_find_if_block): Likewise for local "jump".
12567 (merge_if_block): Likewise for local "last".
12568 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
12569 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
12570 (block_has_only_trap): Likewise for return type and local "trap".
12571 (find_if_case_1): Likewise for local "jump".
12572 (dead_or_predicable): Likewise for locals "head", "end", "jump",
12573 "insn".
12574
12575 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12576
12577 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
12578 "last_insn", "loop_end" from rtx to rtx_insn *.
12579
12580 * hw-doloop.c (scan_loop): Likewise for local "insn".
12581 (discover_loop): Likewise for param "tail_insn".
12582 (discover_loops): Likewise for local "tail".
12583
12584 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
12585 cast to rtx_insn * when assigning from an rtx local to a
12586 hwloop_info's "last_insn" field.
12587
12588 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12589
12590 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
12591 (add_delay_dependencies): Strengthen local "pro" from rtx to
12592 rtx_insn *.
12593 (recompute_todo_spec): Likewise.
12594 (dep_cost_1): Likewise for locals "insn", "used".
12595 (schedule_insn): Likewise for local "dbg".
12596 (schedule_insn): Likewise for locals "pro", "next".
12597 (unschedule_insns_until): Likewise for local "con".
12598 (restore_pattern): Likewise for local "next".
12599 (estimate_insn_tick): Likewise for local "pro".
12600 (resolve_dependencies): Likewise for local "next".
12601 (fix_inter_tick): Likewise.
12602 (fix_tick_ready): Likewise for local "pro".
12603 (add_to_speculative_block): Likewise for locals "check", "twin",
12604 "pro".
12605 (sched_extend_bb): Likewise for locals "end", "insn".
12606 (init_before_recovery): Likewise for local "x".
12607 (sched_create_recovery_block): Likewise for local "barrier".
12608 (create_check_block_twin): Likewise for local "pro".
12609 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
12610 "consumer".
12611 (unlink_bb_notes): Update for change to type of bb_header.
12612 Strengthen locals "prev", "label", "note", "next" from rtx to
12613 rtx_insn *.
12614 (clear_priorities): Likewise for local "pro".
12615
12616 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12617
12618 * gcse.c (struct occr): Strengthen field "insn" from rtx to
12619 rtx_insn *.
12620 (test_insn): Likewise for this global.
12621 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
12622 const rtx_insn *.
12623 (oprs_anticipatable_p): Likewise.
12624 (oprs_available_p): Likewise.
12625 (insert_expr_in_table): Strengthen param "insn" from rtx to
12626 rtx_insn *.
12627 (hash_scan_set): Likewise.
12628 (hash_scan_clobber): Likewise.
12629 (hash_scan_call): Likewise.
12630 (hash_scan_insn): Likewise.
12631 (compute_hash_table_work): Likewise for local "insn".
12632 (process_insert_insn): Likewise for return type and local "pat".
12633 (insert_insn_end_basic_block): Likewise for locals "new_insn",
12634 "pat", "pat_end", "maybe_cc0_setter".
12635 (pre_edge_insert): Likewise for local "insn".
12636 (pre_insert_copy_insn): Likewise for param "insn".
12637 (pre_insert_copies): Likewise for local "insn".
12638 (struct set_data): Likewise for field "insn".
12639 (single_set_gcse): Likewise for param "insn".
12640 (gcse_emit_move_after): Likewise.
12641 (pre_delete): Likewise for local "insn".
12642 (update_bb_reg_pressure): Likewise for param "from" and local
12643 "insn".
12644 (should_hoist_expr_to_dom): Likewise for param "from".
12645 (hoist_code): Likewise for local "insn".
12646 (get_pressure_class_and_nregs): Likewise for param "insn".
12647 (calculate_bb_reg_pressure): Likewise for local "insn".
12648 (compute_ld_motion_mems): Likewise.
12649
12650 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12651
12652 * genpeep.c (main): Rename param back from "uncast_ins1" to
12653 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
12654 checked cast.
12655
12656 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
12657
12658 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12659
12660 PR target/62195
12661 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
12662 documentation to state it is only for VSX operations.
12663
12664 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
12665 constraint only active if VSX.
12666
12667 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
12668 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
12669 (lfiwzx): Likewise.
12670
12671 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12672
12673 * fwprop.c (single_def_use_dom_walker::before_dom_children):
12674 Strengthen local "insn" from rtx to rtx_insn *.
12675 (use_killed_between): Likewise for param "target_insn".
12676 (all_uses_available_at): Likewise for param "target_insn" and
12677 local "next".
12678 (update_df_init): Likewise for params "def_insn", "insn".
12679 (update_df): Likewise for param "insn".
12680 (try_fwprop_subst): Likewise for param "def_insn" and local
12681 "insn".
12682 (free_load_extend): Likewise for param "insn".
12683 (forward_propagate_subreg): Likewise for param "def_insn" and
12684 local "use_insn".
12685 (forward_propagate_asm): Likewise for param "def_insn" and local
12686 "use_insn".
12687 (forward_propagate_and_simplify): Likewise for param "def_insn"
12688 and local "use_insn".
12689 (forward_propagate_into): Likewise for locals "def_insn" and
12690 "use_insn".
12691
12692 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12693
12694 * function.c (emit_initial_value_sets): Strengthen local "seq"
12695 from rtx to rtx_insn *.
12696 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
12697 local "seq".
12698 (instantiate_virtual_regs): Likewise for local "insn".
12699 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
12700 (reorder_blocks_1): Likewise for param "insns" and local "insn".
12701 (expand_function_end): Likewise for locals "insn" and "seq".
12702 (epilogue_done): Likewise for local "insn".
12703 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
12704 "last", "trial".
12705 (reposition_prologue_and_epilogue_notes): Likewise for locals
12706 "insn", "last", "note", "first".
12707 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
12708 (pass_match_asm_constraints::execute): Likewise for local "insn".
12709
12710 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12711
12712 * output.h (final_scan_insn): Strengthen return type from rtx to
12713 rtx_insn *.
12714 (final_forward_branch_p): Likewise for param.
12715 (current_output_insn): Likewise for this global.
12716
12717 * final.c (rtx debug_insn): Likewise for this variable.
12718 (current_output_insn): Likewise.
12719 (get_attr_length_1): Rename param "insn" to "uncast_insn",
12720 adding "insn" back in as an rtx_insn * with a checked cast, so
12721 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
12722 first param.
12723 (compute_alignments): Strengthen local "label" from rtx to
12724 rtx_insn *.
12725 (shorten_branches): Rename param from "first" to "uncast_first",
12726 introducing a new local rtx_insn * "first" using a checked cast to
12727 effectively strengthen "first" from rtx to rtx_insn * without
12728 affecting the type signature. Strengthen locals "insn", "seq",
12729 "next", "label" from rtx to rtx_insn *.
12730 (change_scope): Strengthen param "orig_insn" and local "insn" from
12731 rtx to rtx_insn *.
12732 (final_start_function): Rename param from "first" to "uncast_first",
12733 introducing a new local rtx_insn * "first" using a checked cast to
12734 effectively strengthen "first" from rtx to rtx_insn * without
12735 affecting the type signature. Strengthen local "insn" from rtx to
12736 rtx_insn *.
12737 (dump_basic_block_info): Strengthen param "insn" from rtx to
12738 rtx_insn *.
12739 (final): Rename param from "first" to "uncast_first",
12740 introducing a new local rtx_insn * "first" using a checked cast to
12741 effectively strengthen "first" from rtx to rtx_insn * without
12742 affecting the type signature. Strengthen locals "insn", "next"
12743 from rtx to rtx_insn *.
12744 (output_alternate_entry_point): Strengthen param "insn" from rtx to
12745 rtx_insn *.
12746 (call_from_call_insn): Strengthen param "insn" from rtx to
12747 rtx_call_insn *.
12748 (final_scan_insn): Rename param from "insn" to "uncast_insn",
12749 introducing a new local rtx_insn * "insn" using a checked cast to
12750 effectively strengthen "insn" from rtx to rtx_insn * without
12751 affecting the type signature. Strengthen return type and locals
12752 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
12753 now-redundant checked cast to rtx_insn * from both invocations of
12754 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
12755 introducing a local "call_insn" for use when invoking
12756 call_from_call_insn.
12757 (notice_source_line): Strengthen param "insn" from rtx to
12758 rtx_insn *.
12759 (leaf_function_p): Likewise for local "insn".
12760 (final_forward_branch_p): Likewise.
12761 (leaf_renumber_regs): Likewise for param "first".
12762 (rest_of_clean_state): Likewise for locals "insn" and "next".
12763 (self_recursive_call_p): Likewise for param "insn".
12764 (collect_fn_hard_reg_usage): Likewise for local "insn".
12765 (get_call_fndecl): Likewise for param "insn".
12766 (get_call_cgraph_rtl_info): Likewise.
12767 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
12768 introducing a new local rtx_insn * "insn" using a checked cast to
12769 effectively strengthen "insn" from rtx to rtx_insn * without
12770 affecting the type signature.
12771
12772 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
12773 cast when assigning from param "insn" to current_output_insn.
12774 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
12775 so that we can assign it back to current_output_insn.
12776
12777 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12778
12779 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
12780 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
12781 atmxt540s and atmxt540sreva devices.
12782 * config/avr/avr-tables.opt: Regenerate.
12783 * config/avr/t-multilib: Regenerate.
12784 * doc/avr-mmcu.texi: Regenerate.
12785
12786 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12787
12788 * expr.c (convert_move): Strengthen local "insns" from rtx to
12789 rtx_insn *.
12790 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
12791 "top_label" from rtx to rtx_code_label *.
12792 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
12793 rtx_insn *.
12794 (emit_single_push_insn): Likewise for locals "prev", "last".
12795 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
12796 to rtx_code_label *.
12797 (store_constructor): Likewise for locals "loop_start", "loop_end".
12798 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
12799 rtx_insn *.
12800 (expand_expr_real_2): Likewise.
12801 (expand_expr_real_1): Strengthen local "label" from rtx to
12802 rtx_code_label *.
12803
12804 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12805
12806 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
12807 from rtx to rtx_insn *.
12808 (store_bit_field_1): Likewise.
12809 (extract_bit_field_1): Likewise.
12810 (expand_mult_const): Likewise for local "insns".
12811 (expmed_mult_highpart): Strengthen local "label" from rtx to
12812 rtx_code_label *.
12813 (expand_smod_pow2): Likewise.
12814 (expand_sdiv_pow2): Likewise.
12815 (expand_divmod): Strengthen locals "last", "insn" from rtx to
12816 rtx_insn *. Strengthen locals "label", "label1", "label2",
12817 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
12818 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
12819 (emit_store_flag): Likewise.
12820 (emit_store_flag_force): Strengthen local "label" from rtx to
12821 rtx_code_label *.
12822 (do_cmp_and_jump): Likewise for param "label".
12823
12824 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12825
12826 * explow.c (force_reg): Strengthen local "insn" from rtx to
12827 rtx_insn *.
12828 (adjust_stack_1): Likewise.
12829 (allocate_dynamic_stack_space): Likewise. Strengthen locals
12830 "final_label", "available_label", "space_available" from rtx to
12831 rtx_code_label *.
12832 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
12833 (anti_adjust_stack_and_probe): Likewise.
12834
12835 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12836
12837 * except.h (sjlj_emit_function_exit_after): Strengthen param
12838 "after" from rtx to rtx_insn *. This is only called with
12839 result of get_last_insn (in function.c) so type-change should be
12840 self-contained.
12841
12842 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
12843 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
12844 to rtx_insn *. These fields are only used from except.c so this
12845 type-change should be self-contained to this patch.
12846
12847 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
12848 local "last" from rtx to rtx_insn *.
12849 (dw2_build_landing_pads): Likewise for local "seq".
12850 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
12851 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
12852 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
12853 rtx to rtx_insn *.
12854 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
12855 to rtx_insn *.
12856 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
12857 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
12858 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
12859 referring to an insn. Strengthen local "dispatch_label" from
12860 rtx to rtx_code_label *.
12861 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
12862 rtx_insn *.
12863 (expand_eh_return): Strengthen local "around_label" from
12864 rtx to rtx_code_label *.
12865 (convert_to_eh_region_ranges): Strengthen locals "iter",
12866 "last_action_insn", "first_no_action_insn",
12867 "first_no_action_insn_before_switch",
12868 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
12869
12870 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12871
12872 * dwarf2out.c (last_var_location_insn): Strengthen this variable
12873 from rtx to rtx_insn *.
12874 (cached_next_real_insn): Likewise.
12875 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
12876 working with insns.
12877 (dwarf2out_var_location): Strengthen locals "next_real",
12878 "next_note", "expected_next_loc_note", "last_start", "insn" from
12879 rtx to rtx_insn *.
12880
12881 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12882
12883 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
12884 from rtx to rtx_insn *.
12885 (create_pseudo_cfg): Likewise for local "insn".
12886
12887 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12888
12889 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
12890 from rtx to rtx_insn *.
12891 (df_bb_regno_last_def_find): Likewise.
12892
12893 * df-problems.c (df_rd_bb_local_compute): Likewise.
12894 (df_lr_bb_local_compute): Likewise.
12895 (df_live_bb_local_compute): Likewise.
12896 (df_chain_remove_problem): Likewise.
12897 (df_chain_create_bb): Likewise.
12898 (df_word_lr_bb_local_compute): Likewise.
12899 (df_remove_dead_eq_notes): Likewise for param "insn".
12900 (df_note_bb_compute): Likewise for local "insn".
12901 (simulate_backwards_to_point): Likewise.
12902 (df_md_bb_local_compute): Likewise.
12903
12904 * df-scan.c (df_scan_free_bb_info): Likewise.
12905 (df_scan_start_dump): Likewise.
12906 (df_scan_start_block): Likewise.
12907 (df_install_ref_incremental): Likewise for local "insn".
12908 (df_insn_rescan_all): Likewise.
12909 (df_reorganize_refs_by_reg_by_insn): Likewise.
12910 (df_reorganize_refs_by_insn_bb): Likewise.
12911 (df_recompute_luids): Likewise.
12912 (df_bb_refs_record): Likewise.
12913 (df_update_entry_exit_and_calls): Likewise.
12914 (df_bb_verify): Likewise.
12915
12916 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12917
12918 * ddg.h (struct ddg_node): Strengthen fields "insn" and
12919 "first_note" from rtx to rtx_insn *.
12920 (get_node_of_insn): Likewise for param 2 "insn".
12921 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
12922
12923 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
12924 rtx_insn *.
12925 (mem_write_insn_p): Likewise.
12926 (mem_access_insn_p): Likewise.
12927 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
12928 (def_has_ccmode_p): Likewise for param "insn".
12929 (add_cross_iteration_register_deps): Likewise for locals
12930 "def_insn" and "use_insn".
12931 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
12932 (build_intra_loop_deps): Likewise for local "src_insn".
12933 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
12934 to rtx_insn *.
12935 (get_node_of_insn): Likewise for param "insn".
12936
12937 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12938
12939 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
12940 (deletable_insn_p): Strengthen param "insn" from rtx to
12941 rtx_insn *. Add checked cast to rtx_call_insn when invoking
12942 find_call_stack_args, since this is guarded by CALL_P (insn).
12943 (marked_insn_p): Strengthen param "insn" from rtx to
12944 rtx_insn *.
12945 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
12946 invoking find_call_stack_args, since this is guarded by
12947 CALL_P (insn).
12948 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
12949 rtx_insn *; we know this is an insn since this was called by
12950 mark_nonreg_stores.
12951 (mark_nonreg_stores_2): Likewise.
12952 (mark_nonreg_stores): Strengthen param "insn" from rtx to
12953 rtx_insn *.
12954 (find_call_stack_args): Strengthen param "call_insn" from rtx to
12955 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
12956 to rtx_insn *.
12957 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
12958 from rtx to rtx_insn *.
12959 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
12960 "next", "ref_insn".
12961 (delete_unmarked_insns): Likewise for locals "insn", "next".
12962 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
12963 (mark_reg_dependencies): Likewise for param "insn".
12964 (rest_of_handle_ud_dce): Likewise for local "insn".
12965 (word_dce_process_block): Likewise.
12966 (dce_process_block): Likewise.
12967
12968 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12969
12970 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
12971 from rtx to rtx_insn *.
12972 (struct change_cc_mode_args): Likewise for field "insn".
12973 (this_insn): Strengthen from rtx to rtx_insn *.
12974 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
12975 with insn.
12976 (validate_canon_reg): Strengthen param "insn" from rtx to
12977 rtx_insn *.
12978 (canon_reg): Likewise.
12979 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
12980 dealing with insn.
12981 (record_jump_equiv): Strengthen param "insn" from rtx to
12982 rtx_insn *.
12983 (try_back_substitute_reg): Likewise, also for locals "prev",
12984 "bb_head".
12985 (find_sets_in_insn): Likewise for param "insn".
12986 (canonicalize_insn): Likewise.
12987 (cse_insn): Likewise. Add a checked cast.
12988 (invalidate_from_clobbers): Likewise for param "insn".
12989 (invalidate_from_sets_and_clobbers): Likewise.
12990 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
12991 dealing with insn.
12992 (cse_prescan_path): Strengthen local "insn" from rtx to
12993 rtx_insn *.
12994 (cse_extended_basic_block): Likewise for locals "insn" and
12995 "prev_insn".
12996 (cse_main): Likewise for param "f".
12997 (check_for_label_ref): Likewise for local "insn".
12998 (set_live_p): Likewise for second param ("insn").
12999 (insn_live_p): Likewise for first param ("insn") and for local
13000 "next".
13001 (cse_change_cc_mode_insn): Likewise for first param "insn".
13002 (cse_change_cc_mode_insns): Likewise for first and second params
13003 "start" and "end".
13004 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13005 and "end".
13006 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13007 "cc_src_insn".
13008
13009 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13010 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13011 Anna Tikhonova <anna.tikhonova@intel.com>
13012 Ilya Tocar <ilya.tocar@intel.com>
13013 Andrey Turetskiy <andrey.turetskiy@intel.com>
13014 Ilya Verbin <ilya.verbin@intel.com>
13015 Kirill Yukhin <kirill.yukhin@intel.com>
13016 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13017
13018 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13019 New.
13020 * config/i386/sse.md
13021 (define_mode_iterator VI248_AVX2): Delete.
13022 (define_mode_iterator VI2_AVX2_AVX512BW): New.
13023 (define_mode_iterator VI48_AVX2): Ditto.
13024 (define_insn <shift_insn><mode>3): Delete.
13025 (define_insn "<shift_insn><mode>3<mask_name>" with
13026 VI2_AVX2_AVX512BW): New.
13027 (define_insn "<shift_insn><mode>3<mask_name>" with
13028 VI48_AVX2): Ditto.
13029
13030 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13031 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13032 Anna Tikhonova <anna.tikhonova@intel.com>
13033 Ilya Tocar <ilya.tocar@intel.com>
13034 Andrey Turetskiy <andrey.turetskiy@intel.com>
13035 Ilya Verbin <ilya.verbin@intel.com>
13036 Kirill Yukhin <kirill.yukhin@intel.com>
13037 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13038
13039 * config/i386/sse.md
13040 (define_mode_iterator VI4F_BRCST32x2): New.
13041 (define_mode_attr 64x2_mode): Ditto.
13042 (define_mode_attr 32x2mode): Ditto.
13043 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13044 with VI4F_BRCST32x2): Ditto.
13045 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13046 with V16FI mode iterator): Ditto.
13047 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13048 with V16FI): Ditto.
13049 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13050 with VI8F_BRCST64x2): Ditto.
13051
13052 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13053 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13054 Anna Tikhonova <anna.tikhonova@intel.com>
13055 Ilya Tocar <ilya.tocar@intel.com>
13056 Andrey Turetskiy <andrey.turetskiy@intel.com>
13057 Ilya Verbin <ilya.verbin@intel.com>
13058 Kirill Yukhin <kirill.yukhin@intel.com>
13059 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13060
13061 * config/i386/sse.md
13062 (define_mode_iterator VI8_AVX512VL): New.
13063 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13064
13065 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13066
13067 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13068 (define_mode_iterator V48_AVX512VL): New.
13069 (define_mode_iterator V12_AVX512VL): Ditto.
13070 (define_insn <avx512>_load<mode>_mask): Split into two similar
13071 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13072 Refactor output template.
13073 (define_insn "<avx512>_store<mode>_mask"): Ditto.
13074
13075 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13076
13077 * cprop.c (struct occr): Strengthen field "insn" from rtx to
13078 rtx_insn *.
13079 (reg_available_p): Likewise for param "insn".
13080 (insert_set_in_table): Likewise.
13081 (hash_scan_set): Likewise.
13082 (hash_scan_insn): Likewise.
13083 (make_set_regs_unavailable): Likewise.
13084 (compute_hash_table_work): Likewise for local "insn".
13085 (reg_not_set_p): Strengthen param "insn" from const_rtx to
13086 const rtx_insn *.
13087 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13088 (try_replace_reg): Likewise.
13089 (find_avail_set): Likewise.
13090 (cprop_jump): Likewise for params "setcc", "jump".
13091 (constprop_register): Likewise for param "insn".
13092 (cprop_insn): Likewise.
13093 (do_local_cprop): Likewise.
13094 (local_cprop_pass): Likewise for local "insn".
13095 (bypass_block): Likewise for params "setcc" and "jump".
13096 (bypass_conditional_jumps): Likewise for locals "setcc" and
13097 "insn".
13098 (one_cprop_pass): Likewise for local "insn".
13099
13100 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13101
13102 * compare-elim.c (struct comparison_use): Strengthen field "insn"
13103 from rtx to rtx_insn *.
13104 (struct comparison): Likewise, also for field "prev_clobber".
13105 (conforming_compare): Likewise for param "insn".
13106 (arithmetic_flags_clobber_p): Likewise.
13107 (find_flags_uses_in_insn): Likewise.
13108 (find_comparison_dom_walker::before_dom_children): Likewise for
13109 locals "insn", "next", "last_clobber".
13110 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
13111
13112 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13113
13114 * combine-stack-adj.c (struct csa_reflist): Strengthen field
13115 "insn" from rtx to rtx_insn *.
13116 (single_set_for_csa): Likewise for param "insn".
13117 (record_one_stack_ref): Likewise.
13118 (try_apply_stack_adjustment): Likewise.
13119 (struct record_stack_refs_data): Likewise for field "insn".
13120 (maybe_move_args_size_note): Likewise for params "last" and "insn".
13121 (prev_active_insn_bb): Likewise for return type and param "insn".
13122 (next_active_insn_bb): Likewise.
13123 (force_move_args_size_note): Likewise for params "prev" and "last"
13124 and locals "test", "next_candidate", "prev_candidate".
13125 (combine_stack_adjustments_for_block): Strengthen locals
13126 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
13127 rtx_insn *.
13128
13129 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13130
13131 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
13132 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
13133 (subst_insn): Likewise for this variable.
13134 (added_links_insn): Likewise.
13135 (struct insn_link): Likewise for field "insn".
13136 (alloc_insn_link): Likewise for param "insn".
13137 (struct undobuf): Likewise for field "other_insn".
13138 (find_single_use): Likewise for param "insn" and local "next".
13139 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
13140 (delete_noop_moves): Likewise for locals "insn", "next".
13141 (create_log_links): Likewise for locals "insn", "use_insn".
13142 Strengthen local "next_use" from rtx * to rtx_insn **.
13143 (insn_a_feeds_b): Likewise for params "a", "b".
13144 (combine_instructions): Likewise for param "f" and locals "insn",
13145 "next", "prev", "first", "last_combined_insn", "link", "link1",
13146 "temp". Replace use of NULL_RTX with NULL when referring to
13147 insns.
13148 (setup_incoming_promotions): Likewise for param "first"
13149 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
13150 (can_combine_p): Likewise for params "insn", "i3", "pred",
13151 "pred2", "succ", "succ2" and for local "p".
13152 (combinable_i3pat): Likewise for param "i3".
13153 (cant_combine_insn_p): Likewise for param "insn".
13154 (likely_spilled_retval_p): Likewise.
13155 (adjust_for_new_dest): Likewise.
13156 (update_cfg_for_uncondjump): Likewise, also for local "insn".
13157 (try_combine): Likewise for return type and for params "i3", "i2",
13158 "i1", "i0", "last_combined_insn", and for locals "insn",
13159 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
13160 "i0_insn". Eliminate local "tem" in favor of new locals
13161 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
13162 checked cast for now to rtx_insn * on the return type of
13163 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
13164 insns.
13165 (find_split_point): Strengthen param "insn" from rtx to
13166 rtx_insn *.
13167 (simplify_set): Likewise for local "other_insn".
13168 (recog_for_combine): Likewise for param "insn".
13169 (record_value_for_reg): Likewise.
13170 (record_dead_and_set_regs_1): Likewise for local
13171 "record_dead_insn".
13172 (record_dead_and_set_regs): Likewise for param "insn".
13173 (record_promoted_value): Likewise.
13174 (check_promoted_subreg): Likewise.
13175 (get_last_value_validate): Likewise.
13176 (reg_dead_at_p): Likewise.
13177 (move_deaths): Likewise for param "to_insn".
13178 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
13179 and locals "place", "place2", "cc0_setter". Eliminate local "tem
13180 in favor of new locals "tem_note" and "tem_insn", the latter being
13181 an rtx_insn *.
13182 (distribute_links): Strengthen locals "place", "insn" from rtx to
13183 rtx_insn *.
13184
13185 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13186
13187 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
13188 than a const_rtx.
13189 (can_delete_label_p): Require a const rtx_code_label * rather than
13190 a const_rtx.
13191 (delete_insn): Add checked cast to rtx_code_label * when we know
13192 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
13193 rtx to rtx_insn *.
13194 (delete_insn_chain): Strengthen locals "prev" and "current" from
13195 rtx to rtx_insn *. Add a checked cast when assigning from
13196 "finish" (strengthening the params will come later). Add a
13197 checked cast to rtx_note * in region where we know
13198 NOTE_P (current).
13199 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
13200 rtx_insn *.
13201 (compute_bb_for_insn): Likewise.
13202 (free_bb_for_insn): Likewise for local "insn".
13203 (compute_bb_for_insn): Likewise.
13204 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
13205 local "insn" from rtx to rtx_insn *
13206 (flow_active_insn_p): Require a const rtx_insn * rather than a
13207 const_rtx.
13208 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
13209 rtx_insn *.
13210 (can_fallthru): Likewise for locals "insn" and "insn2".
13211 (bb_note): Likewise for local "note".
13212 (first_insn_after_basic_block_note): Likewise for local "note" and
13213 for return type.
13214 (rtl_split_block): Likewise for locals "insn" and "next".
13215 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
13216 "end".
13217 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
13218 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
13219 "prev", "tmp".
13220 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
13221 them), "kill_from", "barrier", "new_insn".
13222 (patch_jump_insn): Likewise for params "insn", "old_label".
13223 (redirect_branch_edge): Likewise for locals "old_label", "insn".
13224 (force_nonfallthru_and_redirect): Likewise for locals "insn",
13225 "old_label", "new_label".
13226 (rtl_tidy_fallthru_edge): Likewise for local "q".
13227 (rtl_split_edge): Likewise for locals "before", "last".
13228 (commit_one_edge_insertion): Likewise for locals "before",
13229 "after", "insns", "tmp", "last", adding a checked cast where
13230 currently necessary.
13231 (commit_edge_insertions): Likewise.
13232 (rtl_dump_bb): Likewise for locals "insn", "last".
13233 (print_rtl_with_bb): Likewise for local "x".
13234 (rtl_verify_bb_insns): Likewise for local "x".
13235 (rtl_verify_bb_pointers): Likewise for local "insn".
13236 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
13237 "head", "end".
13238 (rtl_verify_fallthru): Likewise for local "insn".
13239 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
13240 (purge_dead_edges): Likewise for local "insn".
13241 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
13242 (skip_insns_after_block): Likewise for return type and for locals
13243 "insn", "last_insn", "next_head", "prev".
13244 (record_effective_endpoints): Likewise for locals "next_insn",
13245 "insn", "end".
13246 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
13247 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
13248 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
13249 (duplicate_insn_chain): For now, add checked cast from rtx to
13250 rtx_insn * when returning insn.
13251 (cfg_layout_duplicate_bb): Likewise for local "insn".
13252 (cfg_layout_delete_block): Likewise for locals "insn", "next",
13253 "prev", "remaints".
13254 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
13255 (rtl_block_empty_p): Likewise.
13256 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
13257 "split_point", "last".
13258 (rtl_block_ends_with_call_p): Likewise for local "insn".
13259 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
13260 const rtx_insn *.
13261 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
13262 "split_at_insn" from rtx to rtx_insn *.
13263 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
13264 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
13265 to const rtx_insn *.
13266 (rtl_account_profile_record): Likewise.
13267
13268 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13269
13270 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
13271 rtx to rtx_insn *.
13272 (average_num_loop_insns): Likewise.
13273 (init_set_costs): Likewise for local "seq".
13274 (seq_cost): Likewise for param "seq", from const_rtx to const
13275 rtx_insn *.
13276
13277 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13278
13279 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
13280 rtx to rtx_insn *.
13281
13282 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13283
13284 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
13285 "f1" and "f2" from rtx * to rtx_insn **.
13286 (flow_find_head_matching_sequence): Likewise.
13287
13288 * cfgcleanup.c (try_simplify_condjump): Strengthen local
13289 "cbranch_insn" from rtx to rtx_insn *.
13290 (thread_jump): Likewise for local "insn".
13291 (try_forward_edges): Likewise for local "last".
13292 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
13293 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
13294 "real_b_end".
13295 (can_replace_by): Likewise for params "i1", "i2".
13296 (old_insns_match_p): Likewise.
13297 (merge_notes): Likewise.
13298 (walk_to_nondebug_insn): Likewise for param "i1".
13299 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
13300 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
13301 "afterlast1", "afterlast2" from rtx to rtx_insn *.
13302 (flow_find_head_matching_sequence): Strengthen params "f1" and
13303 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
13304 "last1", "last2", "beforelast1", "beforelast2" from rtx to
13305 rtx_insn *.
13306 (outgoing_edges_match): Likewise for locals "last1", "last2".
13307 (try_crossjump_to_edge): Likewise for local "insn".
13308 Replace call to for_each_rtx with for_each_rtx_in_insn.
13309
13310 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
13311 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
13312 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
13313 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
13314 (try_optimize_cfg): Strengthen local "last" from rtx to
13315 rtx_insn *.
13316 (delete_dead_jumptables): Likewise for locals "insn", "next",
13317 "label".
13318
13319 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
13320 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
13321 "rtx else_first_tail", to reflect the basic-block.h changes above.
13322
13323 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13324
13325 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
13326 rtx_insn *.
13327 (purge_dead_tablejump_edges): Likewise.
13328 (find_bb_boundaries): Likewise for locals "insn", "end",
13329 "flow_transfer_insn".
13330
13331 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13332
13333 * caller-save.c (save_call_clobbered_regs): Strengthen locals
13334 "ins" and "prev" from rtx to rtx_insn *.
13335
13336 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13337
13338 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
13339 rtx_insn *.
13340 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
13341 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
13342 "scan_start".
13343 (load_register_parameters): Likewise for local "before_arg".
13344 (check_sibcall_argument_overlap): Likewise for param "insn".
13345 (expand_call): Likewise for locals "normal_call_insns",
13346 "tail_call_insns", "insns", "before_call", "after_args",
13347 "before_arg", "last", "prev". Strengthen one of the "last" from
13348 rtx to rtx_call_insn *.
13349 (fixup_tail_calls): Strengthen local "insn" from rtx to
13350 rtx_insn *.
13351 (emit_library_call_value_1): Likewise for locals "before_call" and
13352 "last".
13353
13354 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13355
13356 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
13357 and "last" from rtx to rtx_insn *.
13358 (expand_builtin_nonlocal_goto): Likewise for local "insn".
13359 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
13360 rtx_call_insn *.
13361 (expand_errno_check): Strengthen local "lab" from rtx to
13362 rtx_code_label *.
13363 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
13364 rtx_insn *.
13365 (expand_builtin_mathfn_2): Likewise.
13366 (expand_builtin_mathfn_ternary): Likewise.
13367 (expand_builtin_mathfn_3): Likewise.
13368 (expand_builtin_interclass_mathfn): Likewise for local "last".
13369 (expand_builtin_int_roundingfn): Likewise for local "insns".
13370 (expand_builtin_int_roundingfn_2): Likewise.
13371 (expand_builtin_strlen): Likewise for local "before_strlen".
13372 (expand_builtin_strncmp): Likewise for local "seq".
13373 (expand_builtin_signbit): Likewise for local "last".
13374 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
13375 from rtx to rtx_code_label *.
13376 (expand_stack_restore): Strengthen local "prev" from rtx to
13377 rtx_insn *.
13378
13379 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13380
13381 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
13382 to rtx_insn *.
13383 (struct btr_def_s): Likewise.
13384 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
13385 const rtx_insn *.
13386 (add_btr_def): Likewise.
13387 (new_btr_user): Likewise.
13388 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
13389 rtx to rtx_insn *.
13390 (link_btr_uses): Likewise.
13391 (move_btr_def): Likewise for locals "insp", "old_insn",
13392 "new_insn". Add checked cast to rtx_insn * for now on result of
13393 gen_move_insn.
13394 (can_move_up): Strengthen param "insn" from const_rtx to
13395 const rtx_insn *.
13396
13397 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13398
13399 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
13400 rtx_insn *.
13401 (get_uncond_jump_length): Likewise for locals "label", "jump".
13402 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
13403 "jump", "insn".
13404 (add_labels_and_missing_jumps): Likewise for local "new_jump".
13405 (fix_up_fall_thru_edges): Likewise for local "old_jump".
13406 (find_jump_block): Likewise for local "insn".
13407 (fix_crossing_conditional_branches): Likewise for locals
13408 "old_jump", "new_jump".
13409 (fix_crossing_unconditional_branches): Likewise for locals
13410 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
13411 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
13412
13413 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13414
13415 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
13416 rtx to rtx_insn *.
13417 (struct mem_insn): Likewise for field "insn".
13418 (reg_next_use): Strengthen from rtx * to rtx_insn **.
13419 (reg_next_inc_use): Likewise.
13420 (reg_next_def): Likewise.
13421 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
13422 from rtx to rtx_insn *.
13423 (move_insn_before): Likewise for param "next_insn" and local "insns".
13424 (attempt_change): Likewise for local "mov_insn".
13425 (try_merge): Likewise for param "last_insn".
13426 (get_next_ref): Likewise for return type and local "insn".
13427 Strengthen param "next_array" from rtx * to rtx_insn **.
13428 (parse_add_or_inc): Strengthen param "insn" from rtx to
13429 rtx_insn *.
13430 (find_inc): Likewise for locals "insn" and "other_insn" (three of
13431 the latter).
13432 (merge_in_block): Likewise for locals "insn", "curr",
13433 "other_insn".
13434 (pass_inc_dec::execute): Update allocations of the arrays to
13435 reflect the stronger types.
13436
13437 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13438
13439 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
13440 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
13441 from rtx to rtx_code_label *.
13442
13443 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13444
13445 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
13446 to rtx_insn *.
13447
13448 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
13449
13450 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
13451 generated a warning and prevented bootstrapping the compiler.
13452
13453 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13454
13455 * rtl.h (delete_related_insns): Strengthen return type from rtx to
13456 rtx_insn *.
13457
13458 * jump.c (delete_related_insns): Likewise, also for locals "next"
13459 and "prev".
13460
13461 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13462
13463 * genautomata.c (output_internal_insn_latency_func): When writing
13464 the function "internal_insn_latency" to insn-automata.c,
13465 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
13466 allowing the optional guard function of (define_bypass) clauses to
13467 expect a pair of rtx_insn *, rather than a pair of rtx.
13468 (output_insn_latency_func): When writing the function
13469 "insn_latency", add an "uncast_" prefix to params "insn" and
13470 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
13471 using checked casts from the params, thus enabling the above
13472 change to the generated "internal_insn_latency" function.
13473
13474 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
13475
13476 PR tree-optimization/62091
13477 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
13478 handle correctly arrays.
13479 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
13480 inheritance binfos.
13481 (record_known_type): Walk into inner type.
13482 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
13483 condition on no type changes.
13484
13485 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13486
13487 * genattrtab.c (write_attr_get): Within the generated get_attr_
13488 functions, rename param "insn" to "uncast_insn" and reintroduce
13489 "insn" as an local rtx_insn * using a checked cast, so that "insn"
13490 is an rtx_insn * within insn-attrtab.c
13491
13492 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13493
13494 * output.h (peephole): Strengthen return type from rtx to
13495 rtx_insn *.
13496 * rtl.h (delete_for_peephole): Likewise for both params.
13497 * genpeep.c (main): In generated "peephole" function, strengthen
13498 return type and local "insn" from rtx to rtx_insn *. For now,
13499 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
13500 rtx_insn *, with a checked cast.
13501 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
13502 locals "insn", "next", "prev" from rtx to rtx_insn *.
13503
13504 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
13505
13506 PR tree-optimization/62112
13507 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
13508 * gimple-iterator.h (gsi_replace): Return bool.
13509 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
13510 moved from ref_may_alias_global_p.
13511 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
13512 New overloads.
13513 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
13514 (stmt_kills_ref_p_1): Rename...
13515 (stmt_kills_ref_p): ... to this.
13516 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
13517 stmt_kills_ref_p): Declare.
13518 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
13519 Move the self-assignment case...
13520 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
13521
13522 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13523
13524 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
13525
13526 * emit-rtl.c (try_split): Likewise, also for locals "before" and
13527 "after". For now, don't strengthen param "trial", which requires
13528 adding checked casts when returning it.
13529
13530 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13531
13532 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
13533 "label" from rtx to rtx_code_label *. Strengthen param 1 of
13534 "var_location" hook from rtx to rtx_insn *.
13535 (debug_nothing_rtx): Delete in favor of...
13536 (debug_nothing_rtx_code_label): New prototype.
13537 (debug_nothing_rtx_rtx): Delete unused prototype.
13538 (debug_nothing_rtx_insn): New prototype.
13539
13540 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
13541 invoking debug_hooks->var_location (in two places, one in a NOTE
13542 case of a switch statement, the other guarded by a CALL_P
13543 conditional. Add checked cast to rtx_code_label * when invoking
13544 debug_hooks->label (within CODE_LABEL case of switch statement).
13545
13546 * dbxout.c (dbx_debug_hooks): Update "label" hook from
13547 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13548 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
13549 (xcoff_debug_hooks): Likewise.
13550 * debug.c (do_nothing_debug_hooks): Likewise.
13551 (debug_nothing_rtx): Delete in favor of...
13552 (debug_nothing_rtx_insn): New function.
13553 (debug_nothing_rtx_rtx): Delete unused function.
13554 (debug_nothing_rtx_code_label): New function.
13555 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
13556 debug_nothing_rtx to debug_nothing_rtx_code_label.
13557 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
13558 to rtx_insn *.
13559 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
13560 debug_nothing_rtx to debug_nothing_rtx_insn.
13561 (sdbout_label): Strengthen param "insn" from rtx to
13562 rtx_code_label *.
13563 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
13564 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
13565 "var_location" hook from debug_nothing_rtx to
13566 debug_nothing_rtx_insn.
13567
13568 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13569
13570 * recog.h (insn_output_fn): Update this function typedef to match
13571 the changes below to the generated output functions, strengthening
13572 the 2nd param from rtx to rtx_insn *.
13573
13574 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
13575 insn when invoking an output function, to match the new signature
13576 of insn_output_fn with a stronger second param.
13577
13578 * genconditions.c (write_header): In the generated code for
13579 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
13580 to match the other changes in this patch.
13581
13582 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
13583 the generated "gen_" functions from rtx to rtx_insn * within their
13584 implementations.
13585
13586 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
13587 the subfunctions within the generated "recog_", "split", "peephole2"
13588 function trees from rtx to rtx_insn *. For now, the top-level
13589 generated functions ("recog", "split", "peephole2") continue to
13590 take a plain rtx for "insn", to avoid introducing dependencies on
13591 other patches. Rename this 2nd param from "insn" to
13592 "uncast_insn", and reintroduce "insn" as a local variable of type
13593 rtx_insn *, initialized at the top of the generated function with
13594 a checked cast on "uncast_insn".
13595 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
13596 the generated "gen_" functions from rtx to rtx_insn * within their
13597 prototypes.
13598
13599 * genoutput.c (process_template): Strengthen the 2nd param within
13600 the generated "output_" functions "insn" from rtx to rtx_insn *.
13601
13602 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13603
13604 * tree-profile.c (tree_profiling): Skip external functions
13605 when doing coverage instrumentation.
13606 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
13607
13608 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13609
13610 * config/rs6000/altivec.h (vec_cpsgn): New #define.
13611 (vec_mergee): Likewise.
13612 (vec_mergeo): Likewise.
13613 (vec_cntlz): Likewise.
13614 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
13615 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
13616 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
13617 VMRGEW, and VMRGOW.
13618 * doc/extend.texi: Document various forms of vec_cpsgn,
13619 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
13620 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
13621 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
13622 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
13623 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
13624
13625 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13626
13627 * config/rs6000/rs6000.c (context.h): New include.
13628 (tree-pass.h): Likewise.
13629 (make_pass_analyze_swaps): New decl.
13630 (rs6000_option_override): Register pass_analyze_swaps.
13631 (swap_web_entry): New subsclass of web_entry_base (df.h).
13632 (special_handling_values): New enum.
13633 (union_defs): New function.
13634 (union_uses): Likewise.
13635 (insn_is_load_p): Likewise.
13636 (insn_is_store_p): Likewise.
13637 (insn_is_swap_p): Likewise.
13638 (rtx_is_swappable_p): Likewise.
13639 (insn_is_swappable_p): Likewise.
13640 (chain_purpose): New enum.
13641 (chain_contains_only_swaps): New function.
13642 (mark_swaps_for_removal): Likewise.
13643 (swap_const_vector_halves): Likewise.
13644 (adjust_subreg_index): Likewise.
13645 (permute_load): Likewise.
13646 (permute_store): Likewise.
13647 (handle_special_swappables): Likewise.
13648 (replace_swap_with_copy): Likewise.
13649 (dump_swap_insn_table): Likewise.
13650 (rs6000_analyze_swaps): Likewise.
13651 (pass_data_analyze_swaps): New pass_data.
13652 (pass_analyze_swaps): New rtl_opt_pass.
13653 (make_pass_analyze_swaps): New function.
13654 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
13655
13656 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13657
13658 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
13659 type from rtx to rtx_insn *.
13660 (create_copy_of_insn_rtx): Likewise.
13661 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
13662 (create_copy_of_insn_rtx): Likewise, also for local "res".
13663
13664 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13665
13666 * rtl.h (find_first_parameter_load): Strengthen return type from
13667 rtx to rtx_insn *.
13668 * rtlanal.c (find_first_parameter_load): Strengthen return type
13669 from rtx to rtx_insn *. Add checked cast for now, to postpone
13670 strengthening the params.
13671
13672 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13673
13674 PR fortran/44054
13675 * diagnostic.c: Set default caret.
13676 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
13677 line is needed.
13678 * diagnostic.h (struct diagnostic_context):
13679
13680 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13681
13682 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
13683 (sel_bb_head): Strengthen return type insn_t (currently just an
13684 rtx) to rtx_insn *.
13685 (sel_bb_end): Likewise.
13686
13687 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
13688 (sel_bb_head): Strengthen return type and local "head" from
13689 insn_t (currently just an rtx) to rtx_insn *.
13690 (sel_bb_end): Likewise for return type.
13691 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
13692 working with insn.
13693
13694 2014-08-21 David Malcolm <dmalcolm@redhat.com>
13695
13696 * basic-block.h (get_last_bb_insn): Strengthen return type from
13697 rtx to rtx_insn *.
13698 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
13699 end".
13700
13701 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13702
13703 PR fortran/44054
13704 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
13705 to here ...
13706 (diagnostic_report_diagnostic): ... from here.
13707 * toplev.c (general_init): Move code to c-family.
13708
13709 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13710
13711 * df.h (web_entry_base): Replace existing struct web_entry with a
13712 new class web_entry_base with only the predecessor member.
13713 (unionfind_root): Remove declaration and move to class member.
13714 (unionfind_union): Remove declaration and move to friend
13715 function.
13716 (union_defs): Remove declaration.
13717 * web.c (web_entry_base::unionfind_root): Modify to be member
13718 function and adjust accessors.
13719 (unionfind_union): Modify to be friend function and adjust
13720 accessors.
13721 (web_entry): New subclass of web_entry_base containing the reg
13722 member.
13723 (union_match_dups): Modify for struct -> class changes.
13724 (union_defs): Likewise.
13725 (entry_register): Likewise.
13726 (pass_web::execute): Likewise.
13727
13728 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
13729
13730 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
13731 builtin define __VEC_ELEMENT_REG_ORDER__.
13732
13733 2014-08-20 Martin Jambor <mjambor@suse.cz>
13734 Wei Mi <wmi@google.com>
13735
13736 PR ipa/60449
13737 PR middle-end/61776
13738 * tree-ssa-operands.c (update_stmt_operands): Remove
13739 MODIFIED_NORETURN_CALLS.
13740 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
13741 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
13742 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
13743 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
13744 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
13745 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
13746 (gimple_call_set_ctrl_altering): New func.
13747 (gimple_call_ctrl_altering_p): Ditto.
13748 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
13749 (make_blocks): Use gimple_call_initialize_ctrl_altering.
13750 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
13751 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
13752 remove MODIFIED_NORETURN_CALLS.
13753
13754 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13755
13756 * coverage.c (coverage_compute_profile_id): Return non-0;
13757 also handle symbols with unique name.
13758 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
13759
13760 2014-08-20 Steve Ellcey <sellcey@mips.com>
13761
13762 PR middle-end/49191
13763 * doc/sourcebuild.texi (non_strict_align): New.
13764
13765 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
13766
13767 * cgraphunit.c (ipa_passes, compile): Reshedule
13768 symtab_remove_unreachable_nodes passes; update comments.
13769 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
13770 TODO_remove_functions before the pass; the functions ought to be
13771 already removed.
13772 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
13773 TODO_remove_functions.
13774 * passes.c (pass_data_early_local_passes): Do not schedule function
13775 removal.
13776 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
13777
13778 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13779
13780 PR c/59304
13781 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
13782 before setting the option.
13783 * diagnostic.c (diagnostic_classify_diagnostic): Record
13784 command-line status.
13785
13786 2014-08-20 Richard Biener <rguenther@suse.de>
13787
13788 PR lto/62190
13789 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
13790 to build uint{16,32,64}_type_node.
13791
13792 2014-08-20 Terry Guo <terry.guo@arm.com>
13793
13794 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
13795 with immediate_operand.
13796
13797 2014-08-20 David Malcolm <dmalcolm@redhat.com>
13798
13799 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
13800 "insn" from an as_a to a safe_as_a, for the case when "insn" is
13801 NULL.
13802
13803 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13804
13805 PR preprocessor/51303
13806 * incpath.c (remove_duplicates): Use cpp_warning.
13807
13808 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
13809
13810 PR c/60975
13811 PR c/53063
13812 * doc/options.texi (CPP): Document it.
13813 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
13814 * optc-gen.awk: Handle CPP.
13815 * opth-gen.awk: Likewise.
13816
13817 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13818
13819 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
13820 rtx_insn *.
13821 (duplicate_insn_chain): Likewise.
13822 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
13823 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
13824 checked cast for now (until we can strengthen the params in the
13825 same way).
13826 (duplicate_insn_chain): Likewise.
13827
13828 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13829
13830 * rtl.h (next_cc0_user): Strengthen return type from rtx to
13831 rtx_insn *.
13832 (prev_cc0_setter): Likewise.
13833
13834 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
13835 rtx_insn *, adding checked casts for now as necessary.
13836 (prev_cc0_setter): Likewise.
13837
13838 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13839
13840 * expr.h (emit_move_insn): Strengthen return type from rtx to
13841 rtx_insn *.
13842 (emit_move_insn_1): Likewise.
13843 (emit_move_complex_push): Likewise.
13844 (emit_move_complex_parts): Likewise.
13845
13846 * expr.c (emit_move_via_integer): Strengthen return type from rtx
13847 to rtx_insn *. Replace use of NULL_RTX with NULL when working
13848 with insns.
13849 (emit_move_complex_push): Strengthen return type from rtx to
13850 rtx_insn *.
13851 (emit_move_complex): Likewise, also for local "ret".
13852 (emit_move_ccmode): Likewise.
13853 (emit_move_multi_word): Likewise for return type and locals
13854 "last_insn", "seq".
13855 (emit_move_insn_1): Likewise for return type and locals "result",
13856 "ret".
13857 (emit_move_insn): Likewise for return type and local "last_insn".
13858 (compress_float_constant): Likewise.
13859
13860 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13861
13862 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
13863 from rtx to rtx_insn *.
13864
13865 * rtl.h (emit_insn_before): Likewise.
13866 (emit_insn_before_noloc): Likewise.
13867 (emit_insn_before_setloc): Likewise.
13868 (emit_jump_insn_before): Likewise.
13869 (emit_jump_insn_before_noloc): Likewise.
13870 (emit_jump_insn_before_setloc): Likewise.
13871 (emit_call_insn_before): Likewise.
13872 (emit_call_insn_before_noloc): Likewise.
13873 (emit_call_insn_before_setloc): Likewise.
13874 (emit_debug_insn_before): Likewise.
13875 (emit_debug_insn_before_noloc): Likewise.
13876 (emit_debug_insn_before_setloc): Likewise.
13877 (emit_label_before): Likewise.
13878 (emit_insn_after): Likewise.
13879 (emit_insn_after_noloc): Likewise.
13880 (emit_insn_after_setloc): Likewise.
13881 (emit_jump_insn_after): Likewise.
13882 (emit_jump_insn_after_noloc): Likewise.
13883 (emit_jump_insn_after_setloc): Likewise.
13884 (emit_call_insn_after): Likewise.
13885 (emit_call_insn_after_noloc): Likewise.
13886 (emit_call_insn_after_setloc): Likewise.
13887 (emit_debug_insn_after): Likewise.
13888 (emit_debug_insn_after_noloc): Likewise.
13889 (emit_debug_insn_after_setloc): Likewise.
13890 (emit_label_after): Likewise.
13891 (emit_insn): Likewise.
13892 (emit_debug_insn): Likewise.
13893 (emit_jump_insn): Likewise.
13894 (emit_call_insn): Likewise.
13895 (emit_label): Likewise.
13896 (gen_clobber): Likewise.
13897 (emit_clobber): Likewise.
13898 (gen_use): Likewise.
13899 (emit_use): Likewise.
13900 (emit): Likewise.
13901
13902 (emit_barrier_before): Strengthen return type from rtx to
13903 rtx_barrier *.
13904 (emit_barrier_after): Likewise.
13905 (emit_barrier): Likewise.
13906
13907 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
13908 from rtx to rtx_insn *. Add checked casts for now when converting
13909 "last" from rtx to rtx_insn *.
13910 (emit_insn_before_noloc): Likewise for return type.
13911 (emit_jump_insn_before_noloc): Likewise.
13912 (emit_call_insn_before_noloc): Likewise.
13913 (emit_debug_insn_before_noloc): Likewise.
13914 (emit_barrier_before): Strengthen return type and local "insn"
13915 from rtx to rtx_barrier *.
13916 (emit_label_before): Strengthen return type from rtx to
13917 rtx_insn *. Add checked cast for now when returning param
13918 (emit_pattern_after_noloc): Strengthen return type from rtx to
13919 rtx_insn *. Add checked casts for now when converting "last" from
13920 rtx to rtx_insn *.
13921 (emit_insn_after_noloc): Strengthen return type from rtx to
13922 rtx_insn *.
13923 (emit_jump_insn_after_noloc): Likewise.
13924 (emit_call_insn_after_noloc): Likewise.
13925 (emit_debug_insn_after_noloc): Likewise.
13926 (emit_barrier_after): Strengthen return type from rtx to
13927 rtx_barrier *.
13928 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
13929 Add checked cast for now when converting "label" from rtx to
13930 rtx_insn *.
13931 (emit_pattern_after_setloc): Strengthen return type from rtx to
13932 rtx_insn *. Add checked casts for now when converting "last" from
13933 rtx to rtx_insn *.
13934 (emit_pattern_after): Strengthen return type from rtx to
13935 rtx_insn *.
13936 (emit_insn_after_setloc): Likewise.
13937 (emit_insn_after): Likewise.
13938 (emit_jump_insn_after_setloc): Likewise.
13939 (emit_jump_insn_after): Likewise.
13940 (emit_call_insn_after_setloc): Likewise.
13941 (emit_call_insn_after): Likewise.
13942 (emit_debug_insn_after_setloc): Likewise.
13943 (emit_debug_insn_after): Likewise.
13944 (emit_pattern_before_setloc): Likewise. Add checked casts for now
13945 when converting "last" from rtx to rtx_insn *.
13946 (emit_pattern_before): Strengthen return type from rtx to
13947 rtx_insn *.
13948 (emit_insn_before_setloc): Likewise.
13949 (emit_insn_before): Likewise.
13950 (emit_jump_insn_before_setloc): Likewise.
13951 (emit_jump_insn_before): Likewise.
13952 (emit_call_insn_before_setloc): Likewise.
13953 (emit_call_insn_before): Likewise.
13954 (emit_debug_insn_before_setloc): Likewise.
13955 (emit_debug_insn_before): Likewise.
13956 (emit_insn): Strengthen return type and locals "last", "insn",
13957 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
13958 within cases where we know we have an insn.
13959 (emit_debug_insn): Likewise.
13960 (emit_jump_insn): Likewise.
13961 (emit_call_insn): Strengthen return type and local "insn" from rtx
13962 to rtx_insn *.
13963 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
13964 a checked cast to rtx_insn * for now on "label".
13965 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
13966 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
13967 (emit_use): Likewise.
13968 (gen_use): Likewise, also for local "seq".
13969 (emit): Likewise for return type and local "insn".
13970 (rtx_insn): Likewise for return type and local "new_rtx".
13971
13972 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
13973 from rtx to rtx_barrier *.
13974
13975 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
13976 changed return type from rtx to rtx_insn *, we must update
13977 "emit_fn" type, and this in turn means updating...
13978 (frame_insn): ...this. Strengthen return type from rtx to
13979 rtx_insn *. Introduce a new local "insn" of the appropriate type.
13980
13981 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13982
13983 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
13984 rtx to rtx_jump_table_data *. Also for local.
13985 * rtl.h (emit_jump_table_data): Likewise.
13986
13987 2014-08-19 David Malcolm <dmalcolm@redhat.com>
13988
13989 * basic-block.h (create_basic_block_structure): Strengthen third
13990 param "bb_note" from rtx to rtx_note *.
13991 * rtl.h (emit_note_before): Strengthen return type from rtx to
13992 rtx_note *.
13993 (emit_note_after): Likewise.
13994 (emit_note): Likewise.
13995 (emit_note_copy): Likewise. Also, strengthen param similarly.
13996 * function.h (struct rtl_data): Strengthen field
13997 "x_stack_check_probe_note" from rtx to rtx_note *.
13998
13999 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14000 from rtx to rtx_note *.
14001 * cfgrtl.c (create_basic_block_structure): Strengthen third param
14002 "bb_note" from rtx to rtx_note *.
14003 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
14004 when calling emit_note_copy.
14005 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14006 rtx_note *.
14007 (emit_note_after): Likewise.
14008 (emit_note_before): Likewise.
14009 (emit_note_copy): Likewise. Also, strengthen param similarly.
14010 (emit_note): Likewise.
14011 * except.c (emit_note_eh_region_end): Likewise for return type.
14012 Strengthen local "next" from rtx to rtx_insn *.
14013 (convert_to_eh_region_ranges): Strengthen local "note"
14014 from rtx to rtx_note *.
14015 * final.c (change_scope): Likewise.
14016 (reemit_insn_block_notes): Likewise, for both locals named "note".
14017 Also, strengthen local "insn" from rtx to rtx_insn *.
14018 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14019 rtx to rtx_note *.
14020 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14021 strengthen local "seq" from rtx to rtx_insn *.
14022 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14023 to rtx_note *.
14024 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14025 vec<rtx_note *>.
14026 (get_bb_note_from_pool): Strengthen return type from rtx to
14027 rtx_note *.
14028 (sel_create_basic_block): Strengthen local "new_bb_note" from
14029 insn_t to rtx_note *.
14030 * var-tracking.c (emit_note_insn_var_location): Strengthen local
14031 "note" from rtx to rtx_note *.
14032 (emit_notes_in_bb): Likewise.
14033
14034 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14035
14036 * function.h (struct rtl_data): Strengthen field
14037 "x_parm_birth_insn" from rtx to rtx_insn *.
14038 * function.c (struct assign_parm_data_all): Strengthen fields
14039 "first_conversion_insn" and "last_conversion_insn" from rtx to
14040 rtx_insn *.
14041
14042 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14043
14044 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14045 to rtx_insn *; also for local "var_end_seq".
14046 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14047 (maybe_cleanup_end_of_block): Likewise for param "last" and local
14048 "insn".
14049 (expand_gimple_cond): Likewise for locals "last2" and "last".
14050 (mark_transaction_restart_calls): Likewise for local "insn".
14051 (expand_gimple_stmt): Likewise for return type and locals "last"
14052 and "insn".
14053 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14054 (avoid_complex_debug_insns): Likewise for param "insn".
14055 (expand_debug_locations): Likewise for locals "insn", "last",
14056 "prev_insn" and "insn2".
14057 (expand_gimple_basic_block): Likewise for local "last".
14058 (construct_exit_block): Likewise for locals "head", "end",
14059 "orig_end".
14060 (pass_expand::execute): Likewise for locals "var_seq",
14061 "var_ret_seq", "next".
14062
14063 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14064
14065 * asan.h (asan_emit_stack_protection): Strengthen return type from
14066 rtx to rtx_insn *.
14067 * asan.c (asan_emit_stack_protection): Likewise. Add local
14068 "insns" to hold the return value.
14069
14070 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14071
14072 * basic-block.h (bb_note): Strengthen return type from rtx to
14073 rtx_note *.
14074 * sched-int.h (bb_note): Likewise.
14075 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
14076
14077 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14078
14079 * rtl.h (make_insn_raw): Strengthen return type from rtx to
14080 rtx_insn *.
14081
14082 * emit-rtl.c (make_insn_raw): Strengthen return type and local
14083 "insn" from rtx to rtx_insn *.
14084 (make_debug_insn_raw): Strengthen return type from rtx to
14085 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14086 (make_jump_insn_raw): Strengthen return type from rtx to
14087 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14088 (make_call_insn_raw): Strengthen return type from rtx to
14089 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14090 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14091 callback from rtx to rtx_insn *; likewise for local "insn" and
14092 "next", adding a checked cast to rtx_insn in the relevant cases of
14093 the switch statement.
14094 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14095 callback from rtx to rtx_insn *.
14096 (emit_pattern_after_setloc): Likewise.
14097 (emit_pattern_after): Likewise.
14098 (emit_pattern_before_setloc): Likewise.
14099 (emit_pattern_before): Likewise.
14100
14101 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14102
14103 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
14104 rtx_call_insn *.
14105 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
14106 accepting an rtx_insn *.
14107 (last_call_insn): Strengthen return type from rtx to
14108 rtx_call_insn *.
14109
14110 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14111
14112 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
14113 "insns" from rtx to rtx_insn *.
14114 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
14115 locals "insn" and "prev".
14116
14117 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14118
14119 * rtl.h (tablejump_p): Strengthen third param from rtx * to
14120 rtx_jump_table_data **.
14121
14122 * cfgbuild.c (make_edges): Introduce local "table", using it in
14123 place of "tmp" for jump table data.
14124 (find_bb_boundaries): Strengthen local "table" from rtx to
14125 rtx_jump_table_data *.
14126 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14127 (outgoing_edges_match): Likewise for locals "table1" and "table2".
14128 (try_crossjump_to_edge): Likewise.
14129 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
14130 "table".
14131 (patch_jump_insn): Introduce local "table", using it in place of
14132 "tmp" for jump table data.
14133 (force_nonfallthru_and_redirect): Introduce local "table", so that
14134 call to tablejump_p can receive an rtx_jump_table_data **. Update
14135 logic around the call to overwrite "note" appropriately if
14136 tablejump_p returns non-zero.
14137 (get_last_bb_insn): Introduce local "table", using it in place of
14138 "tmp" for jump table data.
14139 * dwarf2cfi.c (create_trace_edges): Likewise.
14140
14141 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
14142 from rtx to rtx_jump_table_data *.
14143 (create_fix_barrier): Strengthen local "tmp" from rtx to
14144 rtx_jump_table_data *.
14145 (arm_reorg): Likewise for local "table".
14146
14147 * config/s390/s390.c (s390_chunkify_start): Likewise.
14148
14149 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
14150
14151 * jump.c (delete_related_insns): Strengthen local "lab_next" from
14152 rtx to rtx_jump_table_data *.
14153
14154 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
14155 rtx_jump_table_data **. Add a checked cast when writing through
14156 the pointer: we know there that local "table" is non-NULL and that
14157 JUMP_TABLE_DATA_P (table) holds.
14158 (label_is_jump_target_p): Introduce local "table", using it in
14159 place of "tmp" for jump table data.
14160
14161 2014-08-19 Marek Polacek <polacek@redhat.com>
14162
14163 PR c++/62153
14164 * doc/invoke.texi: Document -Wbool-compare.
14165
14166 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14167
14168 * rtl.h (entry_of_function): Strengthen return type from rtx to
14169 rtx_insn *.
14170 * cfgrtl.c (entry_of_function): Likewise.
14171
14172 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14173
14174 * emit-rtl.h (get_insns): Strengthen return type from rtx to
14175 rtx_insn *, adding a checked cast for now.
14176 (get_last_insn): Likewise.
14177
14178 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14179
14180 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
14181 rtx_code_label *.
14182
14183 * emit-rtl.c (gen_label_rtx): Likewise.
14184
14185 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14186
14187 * rtl.h (previous_insn): Strengthen return type from rtx to
14188 rtx_insn *.
14189 (next_insn): Likewise.
14190 (prev_nonnote_insn): Likewise.
14191 (prev_nonnote_insn_bb): Likewise.
14192 (next_nonnote_insn): Likewise.
14193 (next_nonnote_insn_bb): Likewise.
14194 (prev_nondebug_insn): Likewise.
14195 (next_nondebug_insn): Likewise.
14196 (prev_nonnote_nondebug_insn): Likewise.
14197 (next_nonnote_nondebug_insn): Likewise.
14198 (prev_real_insn): Likewise.
14199 (next_real_insn): Likewise.
14200 (prev_active_insn): Likewise.
14201 (next_active_insn): Likewise.
14202
14203 * emit-rtl.c (next_insn): Strengthen return type from rtx to
14204 rtx_insn *, adding a checked cast.
14205 (previous_insn): Likewise.
14206 (next_nonnote_insn): Likewise.
14207 (next_nonnote_insn_bb): Likewise.
14208 (prev_nonnote_insn): Likewise.
14209 (prev_nonnote_insn_bb): Likewise.
14210 (next_nondebug_insn): Likewise.
14211 (prev_nondebug_insn): Likewise.
14212 (next_nonnote_nondebug_insn): Likewise.
14213 (prev_nonnote_nondebug_insn): Likewise.
14214 (next_real_insn): Likewise.
14215 (prev_real_insn): Likewise.
14216 (next_active_insn): Likewise.
14217 (prev_active_insn): Likewise.
14218
14219 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
14220 param "stepfunc" so that it returns an rtx_insn * rather than an
14221 rtx, to track the change to prev_nonnote_insn_bb, which is the
14222 only function this is called with.
14223 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
14224
14225 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
14226
14227 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
14228 assert.
14229
14230 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14231
14232 * coretypes.h (class rtx_debug_insn): Add forward declaration.
14233 (class rtx_nonjump_insn): Likewise.
14234 (class rtx_jump_insn): Likewise.
14235 (class rtx_call_insn): Likewise.
14236 (class rtx_jump_table_data): Likewise.
14237 (class rtx_barrier): Likewise.
14238 (class rtx_code_label): Likewise.
14239 (class rtx_note): Likewise.
14240
14241 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
14242 adding the invariant DEBUG_INSN_P (X).
14243 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
14244 the invariant NONJUMP_INSN_P (X).
14245 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
14246 the invariant JUMP_P (X).
14247 (class rtx_call_insn): New, a subclass of rtx_insn, adding
14248 the invariant CALL_P (X).
14249 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
14250 invariant JUMP_TABLE_DATA_P (X).
14251 (class rtx_barrier): New, a subclass of rtx_insn, adding the
14252 invariant BARRIER_P (X).
14253 (class rtx_code_label): New, a subclass of rtx_insn, adding
14254 the invariant LABEL_P (X).
14255 (class rtx_note): New, a subclass of rtx_insn, adding
14256 the invariant NOTE_P(X).
14257 (is_a_helper <rtx_debug_insn *>::test): New.
14258 (is_a_helper <rtx_nonjump_insn *>::test): New.
14259 (is_a_helper <rtx_jump_insn *>::test): New.
14260 (is_a_helper <rtx_call_insn *>::test): New.
14261 (is_a_helper <rtx_jump_table_data *>::test): New functions,
14262 overloaded for both rtx and rtx_insn *.
14263 (is_a_helper <rtx_barrier *>::test): New.
14264 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
14265 for both rtx and rtx_insn *.
14266 (is_a_helper <rtx_note *>::test): New.
14267
14268 2014-08-19 Marek Polacek <polacek@redhat.com>
14269
14270 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
14271 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14272 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
14273 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
14274
14275 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14276
14277 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
14278 rtx_insn *. To help with transition, for now, convert from an
14279 access macro into a pair of functions: BND_TO, returning an
14280 rtx_insn *, and...
14281 (SET_BND_TO): New function, for use where BND_TO is used as an
14282 lvalue.
14283
14284 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
14285 SET_BND_TO.
14286 (BND_TO): New function, adding a checked cast.
14287 (SET_BND_TO): New function.
14288
14289 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
14290 SET_BND_TO.
14291 (compute_av_set_on_boundaries): Likewise.
14292
14293 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14294
14295 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
14296 destination if it is used in source.
14297 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
14298 (*popcount<mode>2_falsedep_1): Likewise.
14299
14300 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
14301
14302 PR other/62168
14303 * configure.ac: Set install_gold_as_default to no first.
14304 * configure: Regenerated.
14305
14306 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14307
14308 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
14309 "note_list" field will eventually be an rtx_insn *. To help with
14310 transition, for now, convert from an access macro into a pair of
14311 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
14312 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
14313 used as an lvalue.
14314
14315 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
14316 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
14317
14318 * sel-sched-ir.c (init_bb): Likewise.
14319 (sel_restore_notes): Likewise.
14320 (move_bb_info): Likewise.
14321 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
14322 (SET_BB_NOTE_LIST): New function.
14323
14324 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14325
14326 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
14327 field will eventually be an rtx_insn *. To help with transition,
14328 for now, convert from an access macro into a pair of functions:
14329 VINSN_INSN_RTX, returning an rtx_insn *, and...
14330 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
14331 is used as an lvalue.
14332
14333 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
14334 SET_VINSN_INSN_RTX where it's used as an lvalue.
14335 (VINSN_INSN_RTX): New function.
14336 (SET_VINSN_INSN_RTX): New function.
14337
14338 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14339
14340 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
14341 eventually be rtx_insn *, but to help with transition, for now,
14342 convert from an access macro into a pair of functions: DEP_PRO
14343 returning an rtx_insn * and...
14344 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
14345 lvalue, returning an rtx&.
14346 (DEP_CON): Analogous changes to DEP_PRO above.
14347 (SET_DEP_CON): Likewise.
14348
14349 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
14350 an lvalue to SET_DEP_CON.
14351 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
14352 (sd_copy_back_deps): Likewise for DEP_CON.
14353 (DEP_PRO): New function, adding a checked cast for now.
14354 (DEP_CON): Likewise.
14355 (SET_DEP_PRO): New function.
14356 (SET_DEP_CON): Likewise.
14357
14358 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14359
14360 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
14361 (extra_options): Add i386/cygwin.opt.
14362 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
14363 (CPP_SPEC): Accept -pthread.
14364 (LINK_SPEC): Ditto.
14365 (GOMP_SELF_SPECS): Update comment.
14366 * config/i386/cygwin.opt: New file for -pthread flag.
14367
14368 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14369
14370 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
14371 * df.h (DF_REF_INSN): Convert from a macro to a function, so
14372 that we can return an rtx_insn *.
14373
14374 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
14375
14376 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
14377 when building executables, not DLLs. Add --large-address-aware
14378 under the same conditions.
14379 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
14380 when building executables, not DLLs. Add --large-address-aware
14381 under the same conditions when using -m32.
14382
14383 * config/i386/cygwin-stdint.h: Throughout, make type
14384 definitions dependent on target architecture, not host.
14385
14386 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14387
14388 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
14389 the return type from rtx to rtx_insn *, which will enable various
14390 conversions in followup patches. For now this is is done by a
14391 checked cast.
14392 (NEXT_INSN): Likewise.
14393 (SET_PREV_INSN): Convert to an inline function. This is intended
14394 for use as an lvalue, and so returns an rtx& to allow in-place
14395 modification.
14396 (SET_NEXT_INSN): Likewise.
14397
14398 2014-07-08 Mark Wielaard <mjw@redhat.com>
14399
14400 PR debug/59051
14401 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
14402
14403 2014-08-19 Marek Polacek <polacek@redhat.com>
14404
14405 PR c/61271
14406 * cgraphunit.c (handle_alias_pairs): Fix condition.
14407
14408 2014-08-19 Richard Biener <rguenther@suse.de>
14409
14410 * gimple-fold.c (fold_gimple_assign): Properly build a
14411 null-pointer constant when devirtualizing addresses.
14412
14413 2014-07-07 Mark Wielaard <mjw@redhat.com>
14414
14415 * dwarf2out.c (decl_quals): New function.
14416 (modified_type_die): Take one cv_quals argument instead of two,
14417 one for const and one for volatile.
14418 (add_type_attribute): Likewise.
14419 (generic_parameter_die): Call add_type_attribute with one modifier
14420 argument.
14421 (base_type_for_mode): Likewise.
14422 (add_bounds_info): Likewise.
14423 (add_subscript_info): Likewise.
14424 (gen_array_type_die): Likewise.
14425 (gen_descr_array_type_die): Likewise.
14426 (gen_entry_point_die): Likewise.
14427 (gen_enumeration_type_die): Likewise.
14428 (gen_formal_parameter_die): Likewise.
14429 (gen_subprogram_die): Likewise.
14430 (gen_variable_die): Likewise.
14431 (gen_const_die): Likewise.
14432 (gen_field_die): Likewise.
14433 (gen_pointer_type_die): Likewise.
14434 (gen_reference_type_die): Likewise.
14435 (gen_ptr_to_mbr_type_die): Likewise.
14436 (gen_inheritance_die): Likewise.
14437 (gen_subroutine_type_die): Likewise.
14438 (gen_typedef_die): Likewise.
14439 (force_type_die): Likewise.
14440
14441 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14442
14443 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
14444 if unset.
14445 * configure: Regenerate.
14446
14447 2014-08-19 Richard Biener <rguenther@suse.de>
14448
14449 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
14450 DECL_EXTERNALs in BLOCKs as non-references.
14451 * tree-streamer-out.c (streamer_write_chain): Likewise.
14452
14453 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
14454 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14455 Anna Tikhonova <anna.tikhonova@intel.com>
14456 Ilya Tocar <ilya.tocar@intel.com>
14457 Andrey Turetskiy <andrey.turetskiy@intel.com>
14458 Ilya Verbin <ilya.verbin@intel.com>
14459 Kirill Yukhin <kirill.yukhin@intel.com>
14460 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14461
14462 * config/i386/sse.md
14463 (define_mode_iterator VI48_AVX512F): Delete.
14464 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
14465 (define_mode_iterator VI2_AVX512VL): Ditto.
14466 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
14467 Delete.
14468 (define_insn
14469 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
14470 New.
14471 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
14472 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
14473 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14474 with VI48_AVX512F_AVX512VL): New.
14475 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
14476 with VI2_AVX512VL): Ditto.
14477
14478 2014-08-19 Marek Polacek <polacek@redhat.com>
14479
14480 * doc/invoke.texi: Document -Wc99-c11-compat.
14481
14482 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14483
14484 * rtl.h (PREV_INSN): Split macro in two: the existing one,
14485 for rvalues, and...
14486 (SET_PREV_INSN): New macro, for use as an lvalue.
14487 (NEXT_INSN, SET_NEXT_INSN): Likewise.
14488
14489 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
14490 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
14491 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14492 (fixup_abnormal_edges): Likewise.
14493 (unlink_insn_chain): Likewise.
14494 (fixup_reorder_chain): Likewise.
14495 (cfg_layout_delete_block): Likewise.
14496 (cfg_layout_merge_blocks): Likewise.
14497 * combine.c (update_cfg_for_uncondjump): Likewise.
14498 * emit-rtl.c (link_insn_into_chain): Likewise.
14499 (remove_insn): Likewise.
14500 (delete_insns_since): Likewise.
14501 (reorder_insns_nobb): Likewise.
14502 (emit_insn_after_1): Likewise.
14503 * final.c (rest_of_clean_state): Likewise.
14504 (final_scan_insn): Likewise.
14505 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
14506 * haifa-sched.c (concat_note_lists): Likewise.
14507 (remove_notes): Likewise.
14508 (restore_other_notes): Likewise.
14509 (move_insn): Likewise.
14510 (unlink_bb_notes): Likewise.
14511 (restore_bb_notes): Likewise.
14512 * jump.c (delete_for_peephole): Likewise.
14513 * optabs.c (emit_libcall_block_1): Likewise.
14514 * reorg.c (emit_delay_sequence): Likewise.
14515 (fill_simple_delay_slots): Likewise.
14516 * sel-sched-ir.c (sel_move_insn): Likewise.
14517 (sel_remove_insn): Likewise.
14518 (get_bb_note_from_pool): Likewise.
14519 * sel-sched.c (move_nop_to_previous_block): Likewise.
14520
14521 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
14522 * config/c6x/c6x.c (gen_one_bundle): Likewise.
14523 (c6x_gen_bundles): Likewise.
14524 (hwloop_optimize): Likewise.
14525 * config/frv/frv.c (frv_function_prologue): Likewise.
14526 (frv_register_nop): Likewise.
14527 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
14528 (ia64_reorg): Likewise.
14529 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
14530 (mep_make_bundle): Likewise.
14531 (mep_bundle_insns): Likewise.
14532 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
14533 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
14534 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
14535
14536 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14537
14538 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
14539 return type from rtx to rtx_insn *.
14540 (BB_END): Likewise.
14541 (BB_HEADER): Likewise.
14542 (BB_FOOTER): Likewise.
14543 (SET_BB_HEAD): Convert to a function.
14544 (SET_BB_END): Likewise.
14545 (SET_BB_HEADER): Likewise.
14546 (SET_BB_FOOTER): Likewise.
14547
14548 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
14549 Strengthen the return type from rtx to rtx_insn *. For now, this
14550 is done by adding a checked cast, but this will eventually
14551 become a field lookup.
14552 (BB_END): Likewise.
14553 (BB_HEADER): Likewise.
14554 (BB_FOOTER): Likewise.
14555 (SET_BB_HEAD): New function, from macro of same name. This is
14556 intended for use as an lvalue, and so returns an rtx& to allow
14557 in-place modification.
14558 (SET_BB_END): Likewise.
14559 (SET_BB_HEADER): Likewise.
14560 (SET_BB_FOOTER): Likewise.
14561
14562 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14563
14564 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
14565 for rvalues, and...
14566 (SET_BB_HEAD): New macro, for use as a lvalue.
14567 (BB_END, SET_BB_END): Likewise.
14568 (BB_HEADER, SET_BB_HEADER): Likewise.
14569 (BB_FOOTER, SET_BB_FOOTER): Likewise.
14570
14571 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
14572 of BB_* macros into SET_BB_* macros.
14573 (fix_crossing_unconditional_branches): Likewise.
14574 * caller-save.c (save_call_clobbered_regs): Likewise.
14575 (insert_one_insn): Likewise.
14576 * cfgbuild.c (find_bb_boundaries): Likewise.
14577 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
14578 (outgoing_edges_match): Likewise.
14579 (try_optimize_cfg): Likewise.
14580 * cfgexpand.c (expand_gimple_cond): Likewise.
14581 (expand_gimple_tailcall): Likewise.
14582 (expand_gimple_basic_block): Likewise.
14583 (construct_exit_block): Likewise.
14584 * cfgrtl.c (delete_insn): Likewise.
14585 (create_basic_block_structure): Likewise.
14586 (rtl_delete_block): Likewise.
14587 (rtl_split_block): Likewise.
14588 (emit_nop_for_unique_locus_between): Likewise.
14589 (rtl_merge_blocks): Likewise.
14590 (block_label): Likewise.
14591 (try_redirect_by_replacing_jump): Likewise.
14592 (emit_barrier_after_bb): Likewise.
14593 (fixup_abnormal_edges): Likewise.
14594 (record_effective_endpoints): Likewise.
14595 (relink_block_chain): Likewise.
14596 (fixup_reorder_chain): Likewise.
14597 (fixup_fallthru_exit_predecessor): Likewise.
14598 (cfg_layout_duplicate_bb): Likewise.
14599 (cfg_layout_split_block): Likewise.
14600 (cfg_layout_delete_block): Likewise.
14601 (cfg_layout_merge_blocks): Likewise.
14602 * combine.c (update_cfg_for_uncondjump): Likewise.
14603 * emit-rtl.c (add_insn_after): Likewise.
14604 (remove_insn): Likewise.
14605 (reorder_insns): Likewise.
14606 (emit_insn_after_1): Likewise.
14607 * haifa-sched.c (get_ebb_head_tail): Likewise.
14608 (restore_other_notes): Likewise.
14609 (move_insn): Likewise.
14610 (sched_extend_bb): Likewise.
14611 (fix_jump_move): Likewise.
14612 * ifcvt.c (noce_process_if_block): Likewise.
14613 (dead_or_predicable): Likewise.
14614 * ira.c (update_equiv_regs): Likewise.
14615 * reg-stack.c (change_stack): Likewise.
14616 * sel-sched-ir.c (sel_move_insn): Likewise.
14617 * sel-sched.c (move_nop_to_previous_block): Likewise.
14618
14619 * config/c6x/c6x.c (hwloop_optimize): Likewise.
14620 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
14621
14622 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14623
14624 * rtl.h (for_each_rtx_in_insn): New function.
14625 * rtlanal.c (for_each_rtx_in_insn): Likewise.
14626
14627 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14628
14629 * coretypes.h (class rtx_insn): Add forward declaration.
14630
14631 * rtl.h: Include is-a.h.
14632 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
14633 workaround to ensure gengtype knows inheritance is occurring,
14634 whilst continuing to use the pre-existing special-casing for
14635 rtx_def.
14636 (class rtx_insn): New subclass of rtx_def, adding the
14637 invariant that we're dealing with something we can sanely use
14638 INSN_UID, NEXT_INSN, PREV_INSN on.
14639 (is_a_helper <rtx_insn *>::test): New.
14640 (is_a_helper <const rtx_insn *>::test): New.
14641
14642 2014-08-18 David Malcolm <dmalcolm@redhat.com>
14643
14644 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
14645
14646 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14647
14648 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
14649 comdats as extern.
14650
14651 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
14652
14653 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
14654 to BUILT_IN_UNREACHABLE.
14655
14656 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
14657
14658 PR target/62011
14659 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
14660 New tune flag.
14661 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
14662 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
14663 (ffs<mode>2): Do not expand with tzcnt for
14664 TARGET_AVOID_FALSE_DEP_FOR_BMI.
14665 (ffssi2_no_cmove): Ditto.
14666 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
14667 (ctz<mode>2): New expander.
14668 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
14669 (*ctz<mode>2_falsedep): New insn.
14670 (*ctz<mode>2): Rename from ctz<mode>2.
14671 (clz<mode>2_lzcnt): New expander.
14672 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
14673 (*clz<mode>2_lzcnt_falsedep): New insn.
14674 (*clz<mode>2): Rename from ctz<mode>2.
14675 (popcount<mode>2): New expander.
14676 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
14677 (*popcount<mode>2_falsedep): New insn.
14678 (*popcount<mode>2): Rename from ctz<mode>2.
14679 (*popcount<mode>2_cmp): Remove.
14680 (*popcountsi2_cmp_zext): Ditto.
14681
14682 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
14683
14684 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
14685 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
14686 * config/microblaze/microblaze.h
14687 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
14688
14689 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
14690
14691 PR other/62168
14692 * configure.ac: Set install_gold_as_default to no for
14693 --enable-gold=no.
14694 * configure: Regenerated.
14695
14696 2014-08-18 Roman Gareev <gareevroman@gmail.com>
14697
14698 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
14699 * config.in: Add undef of HAVE_isl.
14700 * configure: Regenerate.
14701 * configure.ac: Add definition of HAVE_isl.
14702 * graphite-blocking.c: Add checking of HAVE_isl.
14703 * graphite-dependences.c: Likewise.
14704 * graphite-interchange.c: Likewise.
14705 * graphite-isl-ast-to-gimple.c: Likewise.
14706 * graphite-optimize-isl.c: Likewise.
14707 * graphite-poly.c: Likewise.
14708 * graphite-scop-detection.c: Likewise.
14709 * graphite-sese-to-poly.c: Likewise.
14710 * graphite.c: Likewise.
14711 * toplev.c: Replace the checking of HAVE_cloog with the checking
14712 of HAVE_isl.
14713
14714 2014-08-18 Richard Biener <rguenther@suse.de>
14715
14716 PR tree-optimization/62090
14717 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
14718 (fold_builtin_3): Do not fold snprintf.
14719 (fold_builtin_4): Likewise.
14720 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
14721 moved from builtins.c.
14722 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
14723 (gimple_fold_builtin): Do not fold sprintf here.
14724
14725 2014-08-18 Richard Biener <rguenther@suse.de>
14726
14727 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
14728 code to ...
14729 (maybe_canonicalize_mem_ref_addr): ... this function.
14730 (fold_stmt_1): Apply it here before all simplification.
14731
14732 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
14733
14734 PR ipa/61800
14735 * cgraph.h (cgraph_node::create_indirect_edge): Add
14736 compute_indirect_info param.
14737 * cgraph.c (cgraph_node::create_indirect_edge): Compute
14738 indirect_info only when it is required.
14739 * cgraphclones.c (cgraph_clone_edge): Do not recompute
14740 indirect_info fore cloned indirect edge.
14741
14742 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14743 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14744 Anna Tikhonova <anna.tikhonova@intel.com>
14745 Ilya Tocar <ilya.tocar@intel.com>
14746 Andrey Turetskiy <andrey.turetskiy@intel.com>
14747 Ilya Verbin <ilya.verbin@intel.com>
14748 Kirill Yukhin <kirill.yukhin@intel.com>
14749 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14750
14751 * config/i386/sse.md
14752 (define_mode_iterator VI8_AVX2_AVX512BW): New.
14753 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
14754
14755 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14756 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14757 Anna Tikhonova <anna.tikhonova@intel.com>
14758 Ilya Tocar <ilya.tocar@intel.com>
14759 Andrey Turetskiy <andrey.turetskiy@intel.com>
14760 Ilya Verbin <ilya.verbin@intel.com>
14761 Kirill Yukhin <kirill.yukhin@intel.com>
14762 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14763
14764 * config/i386/sse.md
14765 (define_mode_iterator VF1_AVX512VL): New.
14766 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
14767 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
14768 New.
14769
14770 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14771 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14772 Anna Tikhonova <anna.tikhonova@intel.com>
14773 Ilya Tocar <ilya.tocar@intel.com>
14774 Andrey Turetskiy <andrey.turetskiy@intel.com>
14775 Ilya Verbin <ilya.verbin@intel.com>
14776 Kirill Yukhin <kirill.yukhin@intel.com>
14777 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14778
14779 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
14780 * config/i386/i386.md
14781 (define_code_iterator any_float): New.
14782 (define_code_attr floatsuffix): New.
14783 * config/i386/sse.md
14784 (define_mode_iterator VF1_128_256VL): New.
14785 (define_mode_iterator VF2_512_256VL): New.
14786 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
14787 TARGET check.
14788 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
14789 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
14790 New.
14791 (define_mode_attr qq2pssuff): New.
14792 (define_mode_attr sselongvecmode): New.
14793 (define_mode_attr sselongvecmodelower): New.
14794 (define_mode_attr sseintvecmode3): New.
14795 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
14796 New.
14797 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
14798 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
14799 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
14800 (define_insn "ufloatv2siv2df2<mask_name>"): New.
14801
14802 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14803 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14804 Anna Tikhonova <anna.tikhonova@intel.com>
14805 Ilya Tocar <ilya.tocar@intel.com>
14806 Andrey Turetskiy <andrey.turetskiy@intel.com>
14807 Ilya Verbin <ilya.verbin@intel.com>
14808 Kirill Yukhin <kirill.yukhin@intel.com>
14809 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14810
14811 * config/i386/sse.md
14812 (define_mode_iterator VF2_AVX512VL): New.
14813 (define_mode_attr sseintvecmode2): New.
14814 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
14815 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
14816 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
14817 (define_insn
14818 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
14819 Ditto.
14820 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14821 Ditto.
14822 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
14823 Ditto.
14824
14825 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14826 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14827 Anna Tikhonova <anna.tikhonova@intel.com>
14828 Ilya Tocar <ilya.tocar@intel.com>
14829 Andrey Turetskiy <andrey.turetskiy@intel.com>
14830 Ilya Verbin <ilya.verbin@intel.com>
14831 Kirill Yukhin <kirill.yukhin@intel.com>
14832 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14833
14834 * config/i386/i386.md
14835 (define_insn "*movoi_internal_avx"): Add evex version.
14836 (define_insn "*movti_internal"): Ditto.
14837
14838 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14839 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14840 Anna Tikhonova <anna.tikhonova@intel.com>
14841 Ilya Tocar <ilya.tocar@intel.com>
14842 Andrey Turetskiy <andrey.turetskiy@intel.com>
14843 Ilya Verbin <ilya.verbin@intel.com>
14844 Kirill Yukhin <kirill.yukhin@intel.com>
14845 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14846
14847 * config/i386/i386.md
14848 (define_attr "isa"): Add avx512dq, noavx512dq.
14849 (define_attr "enabled"): Ditto.
14850 * config/i386/sse.md
14851 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
14852
14853 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
14854 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
14855 Anna Tikhonova <anna.tikhonova@intel.com>
14856 Ilya Tocar <ilya.tocar@intel.com>
14857 Andrey Turetskiy <andrey.turetskiy@intel.com>
14858 Ilya Verbin <ilya.verbin@intel.com>
14859 Kirill Yukhin <kirill.yukhin@intel.com>
14860 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14861
14862 * config/i386/i386.c
14863 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
14864 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
14865 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
14866 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
14867 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
14868 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
14869 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
14870 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
14871 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
14872 * config/i386/sse.md
14873 (define_mode_iterator VMOVE): Allow V4TI mode.
14874 (define_mode_iterator V_AVX512VL): New.
14875 (define_mode_iterator V): New handling for AVX512VL.
14876 (define_insn "avx512f_load<mode>_mask"): Delete.
14877 (define_insn "<avx512>_load<mode>_mask"): New.
14878 (define_insn "avx512f_store<mode>_mask"): Delete.
14879 (define_insn "<avx512>_store<mode>_mask"): New.
14880
14881
14882 2014-08-18 Yury Gribov <y.gribov@samsung.com>
14883
14884 PR sanitizer/62089
14885 * asan.c (instrument_derefs): Fix bitfield check.
14886
14887 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14888
14889 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
14890 * config/rs6000/htm.md (ttest): Remove clobber.
14891 * config/rs6000/predicates.md (any_mask_operand): New predicate.
14892 (and_operand): Reformat.
14893 (and_2rld_operand): New predicate.
14894 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
14895 parameter.
14896 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
14897 parameter. Handle AND directly.
14898 (rs6000_split_logical_di): Remove last parameter.
14899 (rs6000_split_logical): Remove last parameter. Remove obsolete
14900 comment.
14901 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
14902 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
14903 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
14904 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
14905 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
14906 and 5 anonymous splitters): Delete.
14907 (and<mode>3): New expander.
14908 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
14909 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
14910 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
14911 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
14912 (floatdisf2_internal1): Remove clobbers.
14913 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
14914 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
14915 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
14916 (and<mode>3 for BOOL_128): Remove clobber.
14917 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
14918 rs6000_split_logical.
14919 (*bool<mode>3_internal for BOOL_128): Adjust call of
14920 rs6000_split_logical.
14921 (*boolc<mode>3_internal1 for BOOL_128,
14922 *boolc<mode>3_internal2 for BOOL_128,
14923 *boolcc<mode>3_internal1 for BOOL_128,
14924 *boolcc<mode>3_internal2 for BOOL_128,
14925 *eqv<mode>3_internal1 for BOOL_128,
14926 *eqv<mode>3_internal2 for BOOL_128,
14927 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
14928 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
14929 clobber.
14930 (*vec_reload_and_reg_<mptrsize>): Delete.
14931
14932 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14933
14934 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
14935 and split, *boolccsi3_internal3 and split): Delete.
14936 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
14937 *boolccdi3_internal3 and split): Delete.
14938 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
14939 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
14940
14941 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14942
14943 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
14944 and split, *boolcsi3_internal3 and split): Delete.
14945 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
14946 *boolcdi3_internal3 and split): Delete.
14947 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
14948
14949 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
14950
14951 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
14952 <'u'>: Also support printing the low-order 16 bits.
14953 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
14954 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
14955 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
14956 *booldi3_internal3 and split): Delete.
14957 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
14958 *bool<mode>3_dot2): New.
14959 (two anonymous define_splits for non_logical_cint_operand): Merge.
14960
14961 2014-08-17 Marek Polacek <polacek@redhat.com>
14962 Manuel López-Ibáñez <manu@gcc.gnu.org>
14963
14964 PR c/62059
14965 * diagnostic.c (adjust_line): Add gcc_checking_assert.
14966 (diagnostic_show_locus): Don't print caret diagnostic
14967 if a column is larger than the line_width.
14968
14969 2014-08-17 Roman Gareev <gareevroman@gmail.com>
14970
14971 * common.opt: Make the ISL AST generator to be the main code generator
14972 of Graphite.
14973
14974 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
14975
14976 * wide-int.h (generic_wide_int): Declare as class instead of struct.
14977
14978 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
14979
14980 PR target/61641
14981 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
14982 Declare.
14983 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
14984 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
14985 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
14986 Define.
14987 * config/pa/pa.md (begin_brtab): Delete insn.
14988 (end_brtab): Likewise.
14989
14990 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
14991
14992 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
14993
14994 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
14995
14996 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
14997 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
14998 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
14999 (get_dynamic_type): Remove.
15000 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15001 (clear_speculation): Bring to ipa-deivrt.h
15002 (get_class_context): Rename to ...
15003 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15004 (contains_type_p): Update.
15005 (get_dynamic_type): Rename to ...
15006 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15007 (possible_polymorphic_call_targets): UPdate.
15008 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15009 * ipa-prop.c (ipa_analyze_call_uses): Update.
15010
15011 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
15012
15013 * doc/invoke.texi (SH options): Document missing processor variant
15014 options. Remove references to Hitachi. Undocument deprecated mspace
15015 option.
15016
15017 2014-08-15 Jason Merrill <jason@redhat.com>
15018
15019 * tree.c (type_hash_canon): Uncomment assert.
15020
15021 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15022
15023 * input.h (in_system_header_at): Add comment.
15024
15025 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15026
15027 PR fortran/44054
15028 * diagnostic.c (build_message_string): Make it extern.
15029 * diagnostic.h (build_message_string): Make it extern.
15030
15031 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
15032
15033 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15034 load/store from/to non-floating class pseudo.
15035
15036 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15037
15038 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15039
15040 2014-08-15 Richard Biener <rguenther@suse.de>
15041
15042 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15043 (get_constraint_for_ssa_var): Remove dead code.
15044 (get_constraint_for_1): Adjust.
15045 (find_what_var_points_to): Likewise.
15046 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
15047
15048 2014-08-15 Ilya Tocar <tocarip@gmail.com>
15049
15050 PR target/61878
15051 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15052 (_mm512_mask_cmpge_epu32_mask): Ditto.
15053 (_mm512_cmpge_epu32_mask): Ditto.
15054 (_mm512_mask_cmpge_epi64_mask): Ditto.
15055 (_mm512_cmpge_epi64_mask): Ditto.
15056 (_mm512_mask_cmpge_epu64_mask): Ditto.
15057 (_mm512_cmpge_epu64_mask): Ditto.
15058 (_mm512_mask_cmple_epi32_mask): Ditto.
15059 (_mm512_cmple_epi32_mask): Ditto.
15060 (_mm512_mask_cmple_epu32_mask): Ditto.
15061 (_mm512_cmple_epu32_mask): Ditto.
15062 (_mm512_mask_cmple_epi64_mask): Ditto.
15063 (_mm512_cmple_epi64_mask): Ditto.
15064 (_mm512_mask_cmple_epu64_mask): Ditto.
15065 (_mm512_cmple_epu64_mask): Ditto.
15066 (_mm512_mask_cmplt_epi32_mask): Ditto.
15067 (_mm512_cmplt_epi32_mask): Ditto.
15068 (_mm512_mask_cmplt_epu32_mask): Ditto.
15069 (_mm512_cmplt_epu32_mask): Ditto.
15070 (_mm512_mask_cmplt_epi64_mask): Ditto.
15071 (_mm512_cmplt_epi64_mask): Ditto.
15072 (_mm512_mask_cmplt_epu64_mask): Ditto.
15073 (_mm512_cmplt_epu64_mask): Ditto.
15074 (_mm512_mask_cmpneq_epi32_mask): Ditto.
15075 (_mm512_mask_cmpneq_epu32_mask): Ditto.
15076 (_mm512_cmpneq_epu32_mask): Ditto.
15077 (_mm512_mask_cmpneq_epi64_mask): Ditto.
15078 (_mm512_cmpneq_epi64_mask): Ditto.
15079 (_mm512_mask_cmpneq_epu64_mask): Ditto.
15080 (_mm512_cmpneq_epu64_mask): Ditto.
15081 (_mm512_castpd_ps): Ditto.
15082 (_mm512_castpd_si512): Ditto.
15083 (_mm512_castps_pd): Ditto.
15084 (_mm512_castps_si512): Ditto.
15085 (_mm512_castsi512_ps): Ditto.
15086 (_mm512_castsi512_pd): Ditto.
15087 (_mm512_castpd512_pd128): Ditto.
15088 (_mm512_castps512_ps128): Ditto.
15089 (_mm512_castsi512_si128): Ditto.
15090 (_mm512_castpd512_pd256): Ditto.
15091 (_mm512_castps512_ps256): Ditto.
15092 (_mm512_castsi512_si256): Ditto.
15093 (_mm512_castpd128_pd512): Ditto.
15094 (_mm512_castps128_ps512): Ditto.
15095 (_mm512_castsi128_si512): Ditto.
15096 (_mm512_castpd256_pd512): Ditto.
15097 (_mm512_castps256_ps512): Ditto.
15098 (_mm512_castsi256_si512): Ditto.
15099 (_mm512_cmpeq_epu32_mask): Ditto.
15100 (_mm512_mask_cmpeq_epu32_mask): Ditto.
15101 (_mm512_mask_cmpeq_epu64_mask): Ditto.
15102 (_mm512_cmpeq_epu64_mask): Ditto.
15103 (_mm512_cmpgt_epu32_mask): Ditto.
15104 (_mm512_mask_cmpgt_epu32_mask): Ditto.
15105 (_mm512_mask_cmpgt_epu64_mask): Ditto.
15106 (_mm512_cmpgt_epu64_mask): Ditto.
15107 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
15108 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
15109 * config/i386/i386.c (enum ix86_builtins): Add
15110 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
15111 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
15112 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
15113 (bdesc_args): Add __builtin_ia32_si512_256si,
15114 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
15115 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
15116 __builtin_ia32_pd512_pd.
15117 (ix86_expand_args_builtin): Handle new FTYPEs.
15118 * config/i386/sse.md (castmode): Add 512-bit modes.
15119 (AVX512MODE2P): New.
15120 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
15121 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
15122
15123 2014-08-15 Richard Biener <rguenther@suse.de>
15124
15125 * fold-const.c (tree_swap_operands_p): Put all constants
15126 last, also strip sign-changing NOPs when considering further
15127 canonicalization. Canonicalize also when optimizing for size.
15128
15129 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15130
15131 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
15132 one_match > zero_match case to just before simple_sequence.
15133
15134 2014-08-15 Richard Biener <rguenther@suse.de>
15135
15136 * data-streamer.h (streamer_string_index, string_for_index):
15137 Remove.
15138 * data-streamer-out.c (streamer_string_index): Make static.
15139 * data-streamer-in.c (string_for_index): Likewise.
15140 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
15141 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
15142
15143 2014-08-15 Richard Biener <rguenther@suse.de>
15144
15145 PR tree-optimization/62031
15146 * tree-data-ref.c (dr_analyze_indices): Do not set
15147 DR_UNCONSTRAINED_BASE.
15148 (dr_may_alias_p): All indirect accesses have to go the
15149 formerly DR_UNCONSTRAINED_BASE path.
15150 * tree-data-ref.h (struct indices): Remove
15151 unconstrained_base member.
15152 (DR_UNCONSTRAINED_BASE): Remove.
15153
15154 2014-08-15 Jakub Jelinek <jakub@redhat.com>
15155
15156 PR middle-end/62092
15157 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
15158 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
15159 in OMP_CLAUSE_MAP in some outer target region.
15160
15161 2014-08-15 Bin Cheng <bin.cheng@arm.com>
15162
15163 * tree-ssa-loop-ivopts.c (ivopts_data): New field
15164 name_expansion_cache.
15165 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
15166 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
15167 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
15168 (difference_cannot_overflow_p): New parameter. Use affine
15169 expansion for equality check.
15170 (iv_elimination_compare_lt): Pass new argument.
15171
15172 2014-08-14 DJ Delorie <dj@redhat.com>
15173
15174 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
15175 variables to the accumulator.
15176
15177 * config/rl78/predicates.md (rl78_near_mem_operand): New.
15178 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
15179 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
15180 with far-far moves.
15181
15182 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
15183 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
15184 (umulqihi3_virt): Likewise.
15185 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
15186 (umulqihi3_real): Likewise.
15187
15188 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
15189
15190 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15191
15192 PR tree-optimization/62091
15193 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
15194 function_entry_reached.
15195 (walk_aliased_vdefs): Clear it here.
15196 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
15197
15198 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
15199
15200 * ipa-utils.h (compare_virtual_tables): Declare.
15201 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
15202
15203 2014-08-14 Marek Polacek <polacek@redhat.com>
15204
15205 DR 458
15206 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
15207 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
15208
15209 2014-08-14 Tom de Vries <tom@codesourcery.com>
15210
15211 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
15212
15213 2014-08-14 Tom de Vries <tom@codesourcery.com>
15214
15215 PR rtl-optimization/62004
15216 PR rtl-optimization/62030
15217 * ifcvt.c (rtx_interchangeable_p): New function.
15218 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
15219 * emit-rtl.h (mem_attrs_eq_p): Declare.
15220
15221 2014-08-14 Roman Gareev <gareevroman@gmail.com>
15222
15223 * graphite-scop-detection.c:
15224 Add inclusion of cp-tree.h.
15225 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
15226 in case they are pointers to object types
15227
15228 2014-08-14 Richard Biener <rguenther@suse.de>
15229
15230 * BASE-VER: Change to 5.0.0
15231
15232 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15233 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15234 Anna Tikhonova <anna.tikhonova@intel.com>
15235 Ilya Tocar <ilya.tocar@intel.com>
15236 Andrey Turetskiy <andrey.turetskiy@intel.com>
15237 Ilya Verbin <ilya.verbin@intel.com>
15238 Kirill Yukhin <kirill.yukhin@intel.com>
15239 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15240
15241 * config/i386/sse.md (define_mode_attr avx512): New.
15242 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
15243 V4DI modes.
15244 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
15245 (define_mode_attr ssse3_avx2): Ditto.
15246 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
15247 (define_mode_attr avx2_avx512bw): New.
15248 (define_mode_attr ssedoublemodelower): New.
15249 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
15250 V32HI, V64QI modes.
15251 (define_mode_attr ssebytemode): Allow V8DI modes.
15252 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
15253 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
15254 (define_mode_attr ssePSmode2): New.
15255 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
15256 V16HI, V32HI modes.
15257 (define_mode_attr dbpsadbwmode): New.
15258 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
15259 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
15260 (vi8_sse4_1_avx2_avx512): New.
15261 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
15262 mode attribute.
15263 (define_mode_attr blendbits): Move before its immediate use.
15264
15265 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15266 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15267 Anna Tikhonova <anna.tikhonova@intel.com>
15268 Ilya Tocar <ilya.tocar@intel.com>
15269 Andrey Turetskiy <andrey.turetskiy@intel.com>
15270 Ilya Verbin <ilya.verbin@intel.com>
15271 Kirill Yukhin <kirill.yukhin@intel.com>
15272 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15273
15274 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
15275 * config/i386/subst.md
15276 (define_mode_iterator SUBST_V): Update.
15277 (define_mode_iterator SUBST_A): Ditto.
15278 (define_subst_attr "mask_operand7"): New.
15279 (define_subst_attr "mask_operand10"): New.
15280 (define_subst_attr "mask_operand_arg34") : New.
15281 (define_subst_attr "mask_expand_op3"): New.
15282 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
15283 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
15284 (define_subst_attr "mask_avx512vl_condition"): New.
15285 (define_subst_attr "round_mask_operand4"): Ditto.
15286 (define_subst_attr "round_mask_scalar_op3"): Delete.
15287 (define_subst_attr "round_mask_op4"): New.
15288 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
15289 V16SImode.
15290 (define_subst_attr "round_modev8sf_condition"): New.
15291 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
15292 <MODE>mode.
15293 (define_subst_attr "round_saeonly_mask_operand4"): New.
15294 (define_subst_attr "round_saeonly_mask_op4"): New.
15295 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
15296 V8DImode, V16SImode.
15297 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
15298 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
15299 (define_subst_attr "mask_expand4_args"): New.
15300 (define_subst "mask_expand4"): New.
15301
15302 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15303 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15304 Anna Tikhonova <anna.tikhonova@intel.com>
15305 Ilya Tocar <ilya.tocar@intel.com>
15306 Andrey Turetskiy <andrey.turetskiy@intel.com>
15307 Ilya Verbin <ilya.verbin@intel.com>
15308 Kirill Yukhin <kirill.yukhin@intel.com>
15309 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15310
15311 * config/i386/i386.md
15312 (define_attr "isa"): Add avx512bw,noavx512bw.
15313 (define_attr "enabled"): Ditto.
15314 (define_split): Add 32/64-bit mask logic.
15315 (define_insn "*k<logic>qi"): New.
15316 (define_insn "*k<logic>hi"): New.
15317 (define_insn "*anddi_1"): Add mask version.
15318 (define_insn "*andsi_1"): Ditto.
15319 (define_insn "*<code><mode>_1"): Ditto.
15320 (define_insn "*<code>hi_1"): Ditto.
15321 (define_insn "kxnor<mode>"): New.
15322 (define_insn "kunpcksi"): New.
15323 (define_insn "kunpckdi"): New.
15324 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
15325 (define_insn "*one_cmplhi2_1"): Ditto.
15326
15327 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15328 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15329 Anna Tikhonova <anna.tikhonova@intel.com>
15330 Ilya Tocar <ilya.tocar@intel.com>
15331 Andrey Turetskiy <andrey.turetskiy@intel.com>
15332 Ilya Verbin <ilya.verbin@intel.com>
15333 Kirill Yukhin <kirill.yukhin@intel.com>
15334 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15335
15336 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
15337 V32HImode.
15338
15339 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
15340 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15341 Anna Tikhonova <anna.tikhonova@intel.com>
15342 Ilya Tocar <ilya.tocar@intel.com>
15343 Andrey Turetskiy <andrey.turetskiy@intel.com>
15344 Ilya Verbin <ilya.verbin@intel.com>
15345 Kirill Yukhin <kirill.yukhin@intel.com>
15346 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15347
15348 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
15349 registers.
15350 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
15351 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
15352 xmm/ymm16+ when availble.
15353 * config/i386/i386.h
15354 (HARD_REGNO_NREGS): Add mask regs.
15355 (VALID_AVX512F_REG_MODE): Ditto.
15356 (VALID_AVX512F_REG_MODE) : Define.
15357 (VALID_MASK_AVX512BW_MODE): Ditto.
15358 (reg_class) (MASK_REG_P(X)): Define.
15359 * config/i386/i386.md: Do not split long moves with mask register,
15360 use kmovb if avx512bw is availible.
15361 (movdi_internal): Handle mask registers.
15362
15363 2014-08-14 Richard Biener <rguenther@suse.de>
15364
15365 PR tree-optimization/62081
15366 * tree-ssa-loop.c (pass_fix_loops): New pass.
15367 (pass_tree_loop::gate): Do not fixup loops here.
15368 * tree-pass.h (make_pass_fix_loops): Declare.
15369 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
15370
15371 2014-08-14 Richard Biener <rguenther@suse.de>
15372
15373 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
15374 (type_hash_canon): ... this and avoid 2nd lookup for the add.
15375
15376 2014-08-14 Richard Biener <rguenther@suse.de>
15377
15378 PR tree-optimization/62090
15379 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
15380 (fold_builtin_2): Do not fold sprintf.
15381 (fold_builtin_3): Likewise.
15382 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
15383 moved from builtins.c.
15384 (gimple_fold_builtin): Fold sprintf.
15385
15386 2014-08-14 Richard Biener <rguenther@suse.de>
15387
15388 PR rtl-optimization/62079
15389 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
15390 run cleanup_cfg.
15391
15392 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15393
15394 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
15395 current_function_decl.
15396
15397 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
15398
15399 * cgraph.c (cgraph_node::function_symbol): Fix wrong
15400 cgraph_function_node to cgraph_node::function_symbol
15401 refactoring.
15402
15403 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
15404
15405 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
15406 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
15407
15408 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
15409
15410 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
15411 warning.
15412
15413 2014-08-13 Roman Gareev <gareevroman@gmail.com>
15414
15415 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
15416 generator.
15417
15418 2014-08-12 Jakub Jelinek <jakub@redhat.com>
15419
15420 PR target/62025
15421 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
15422 any registers that are used in mem_insn.
15423
15424 2014-08-12 Steve Ellcey <sellcey@mips.com>
15425
15426 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
15427
15428 2014-08-12 Steve Ellcey <sellcey@mips.com>
15429
15430 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
15431 (MULTILIB_DIRNAMES): Ditto.
15432 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
15433 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
15434 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
15435 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
15436 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
15437 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
15438
15439 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15440
15441 PR target/61413
15442 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
15443 of __ARM_SIZEOF_WCHAR_T.
15444
15445 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15446
15447 PR target/62098
15448 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
15449 Remove unnecessary attributes.
15450
15451 2014-08-12 Yury Gribov <y.gribov@samsung.com>
15452
15453 * internal-fn.c (init_internal_fns): Fix off-by-one.
15454
15455 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
15456 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15457 Anna Tikhonova <anna.tikhonova@intel.com>
15458 Ilya Tocar <ilya.tocar@intel.com>
15459 Andrey Turetskiy <andrey.turetskiy@intel.com>
15460 Ilya Verbin <ilya.verbin@intel.com>
15461 Kirill Yukhin <kirill.yukhin@intel.com>
15462 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15463
15464 * config/i386/i386.c (standard_sse_constant_opcode): Use
15465 vpxord/vpternlog if avx512 is availible.
15466
15467 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
15468
15469 PR middle-end/62103
15470 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
15471 bitfields, that is when size doesn't match the size of type or the
15472 size of the constructor.
15473
15474 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15475
15476 * config/rs6000/constraints.md (wh constraint): New constraint,
15477 for FP registers if direct move is available.
15478 (wi constraint): New constraint, for VSX/FP registers that can
15479 handle 64-bit integers.
15480 (wj constraint): New constraint for VSX/FP registers that can
15481 handle 64-bit integers for direct moves.
15482 (wk constraint): New constraint for VSX/FP registers that can
15483 handle 64-bit doubles for direct moves.
15484 (wy constraint): Make documentation match implementation.
15485
15486 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
15487 scalar_in_vmx_p field to simplify tests of whether SFmode or
15488 DFmode can go in the Altivec registers.
15489 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
15490 (rs6000_setup_reg_addr_masks): Likewise.
15491 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
15492 field, and wh/wi/wj/wk constraints.
15493 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
15494 the wh/wi/wj/wk constraints.
15495 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
15496 upper registers, prefer VSX registers unless the operation is a
15497 memory operation with REG+OFFSET addressing.
15498
15499 * config/rs6000/vsx.md (VSr mode attribute): Add support for
15500 DImode. Change SFmode to use ww constraint instead of d to allow
15501 SF registers in the upper registers.
15502 (VSr2): Likewise.
15503 (VSr3): Likewise.
15504 (VSr5): Fix thinko in comment.
15505 (VSa): New mode attribute that is an alternative to wa, that
15506 returns the VSX register class that a mode can go in, but may not
15507 be the preferred register class.
15508 (VS_64dm): New mode attribute for appropriate register classes for
15509 referencing 64-bit elements of vectors for direct moves and normal
15510 moves.
15511 (VS_64reg): Likewise.
15512 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
15513 register allocator to only registers the data type can handle.
15514 (vsx_le_perm_load_<mode>): Likewise.
15515 (vsx_le_perm_store_<mode>): Likewise.
15516 (vsx_xxpermdi2_le_<mode>): Likewise.
15517 (vsx_xxpermdi4_le_<mode>): Likewise.
15518 (vsx_lxvd2x2_le_<mode>): Likewise.
15519 (vsx_lxvd2x4_le_<mode>): Likewise.
15520 (vsx_stxvd2x2_le_<mode>): Likewise.
15521 (vsx_add<mode>3): Likewise.
15522 (vsx_sub<mode>3): Likewise.
15523 (vsx_mul<mode>3): Likewise.
15524 (vsx_div<mode>3): Likewise.
15525 (vsx_tdiv<mode>3_internal): Likewise.
15526 (vsx_fre<mode>2): Likewise.
15527 (vsx_neg<mode>2): Likewise.
15528 (vsx_abs<mode>2): Likewise.
15529 (vsx_nabs<mode>2): Likewise.
15530 (vsx_smax<mode>3): Likewise.
15531 (vsx_smin<mode>3): Likewise.
15532 (vsx_sqrt<mode>2): Likewise.
15533 (vsx_rsqrte<mode>2): Likewise.
15534 (vsx_tsqrt<mode>2_internal): Likewise.
15535 (vsx_fms<mode>4): Likewise.
15536 (vsx_nfma<mode>4): Likewise.
15537 (vsx_eq<mode>): Likewise.
15538 (vsx_gt<mode>): Likewise.
15539 (vsx_ge<mode>): Likewise.
15540 (vsx_eq<mode>_p): Likewise.
15541 (vsx_gt<mode>_p): Likewise.
15542 (vsx_ge<mode>_p): Likewise.
15543 (vsx_xxsel<mode>): Likewise.
15544 (vsx_xxsel<mode>_uns): Likewise.
15545 (vsx_copysign<mode>3): Likewise.
15546 (vsx_float<VSi><mode>2): Likewise.
15547 (vsx_floatuns<VSi><mode>2): Likewise.
15548 (vsx_fix_trunc<mode><VSi>2): Likewise.
15549 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
15550 (vsx_x<VSv>r<VSs>i): Likewise.
15551 (vsx_x<VSv>r<VSs>ic): Likewise.
15552 (vsx_btrunc<mode>2): Likewise.
15553 (vsx_b2trunc<mode>2): Likewise.
15554 (vsx_floor<mode>2): Likewise.
15555 (vsx_ceil<mode>2): Likewise.
15556 (vsx_<VS_spdp_insn>): Likewise.
15557 (vsx_xscvspdp): Likewise.
15558 (vsx_xvcvspuxds): Likewise.
15559 (vsx_float_fix_<mode>2): Likewise.
15560 (vsx_set_<mode>): Likewise.
15561 (vsx_extract_<mode>_internal1): Likewise.
15562 (vsx_extract_<mode>_internal2): Likewise.
15563 (vsx_extract_<mode>_load): Likewise.
15564 (vsx_extract_<mode>_store): Likewise.
15565 (vsx_splat_<mode>): Likewise.
15566 (vsx_xxspltw_<mode>): Likewise.
15567 (vsx_xxspltw_<mode>_direct): Likewise.
15568 (vsx_xxmrghw_<mode>): Likewise.
15569 (vsx_xxmrglw_<mode>): Likewise.
15570 (vsx_xxsldwi_<mode>): Likewise.
15571 (vsx_xscvdpspn): Tighten constraints to only use register classes
15572 the types use.
15573 (vsx_xscvspdpn): Likewise.
15574 (vsx_xscvdpspn_scalar): Likewise.
15575
15576 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
15577 wj, and wk constraints.
15578 (GPR_REG_CLASS_P): New helper macro for register classes targeting
15579 general purpose registers.
15580
15581 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
15582 direct moves.
15583 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
15584 DImode instead of wm. Use wk constraint for direct move of DFmode
15585 instead of wm.
15586 (extendsidi2_lfiwax): Likewise.
15587 (lfiwax): Likewise.
15588 (lfiwzx): Likewise.
15589 (movdi_internal64): Likewise.
15590
15591 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
15592 wk constraints. Make the wy constraint documentation match them
15593 implementation.
15594
15595 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
15596
15597 Replacement of isl_int by isl_val
15598 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
15599 (compute_bounds_for_param): use isl_val instead of isl_int
15600 (compute_bounds_for_loop): likewise
15601 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
15602 (build_linearized_memory_access): use isl_val instead of isl_int
15603 (pdr_stride_in_loop): likewise
15604 * graphite-optimize-isl.c:
15605 (getPrevectorMap): use isl_val instead of isl_int
15606 * graphite-poly.c:
15607 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
15608 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
15609 (extern the_isl_ctx): declare
15610 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
15611 (extract_affine_gmp): likewise
15612 (wrap): likewise
15613 (build_loop_iteration_domains): likewise
15614 (add_param_constraints): likewise
15615
15616 2014-08-11 Richard Biener <rguenther@suse.de>
15617
15618 PR tree-optimization/62075
15619 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
15620 handle uses in patterns.
15621
15622 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15623 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15624 Anna Tikhonova <anna.tikhonova@intel.com>
15625 Ilya Tocar <ilya.tocar@intel.com>
15626 Andrey Turetskiy <andrey.turetskiy@intel.com>
15627 Ilya Verbin <ilya.verbin@intel.com>
15628 Kirill Yukhin <kirill.yukhin@intel.com>
15629 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15630
15631 * common/config/i386/i386-common.c
15632 (OPTION_MASK_ISA_AVX512VL_SET): Define.
15633 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
15634 (ix86_handle_option): Handle OPT_mavx512vl.
15635 * config/i386/cpuid.h (bit_AVX512VL): Define.
15636 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
15637 set -mavx512vl accordingly.
15638 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15639 OPTION_MASK_ISA_AVX512VL.
15640 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
15641 (ix86_option_override_internal): Define PTA_AVX512VL, handle
15642 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
15643 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
15644 * config/i386/i386.h (TARGET_AVX512VL): Define.
15645 (TARGET_AVX512VL_P(x)): Ditto.
15646 * config/i386/i386.opt: Add mavx512vl.
15647
15648 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
15649
15650 PR tree-optimization/62073
15651 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
15652 a basic block.
15653
15654 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
15655 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15656 Anna Tikhonova <anna.tikhonova@intel.com>
15657 Ilya Tocar <ilya.tocar@intel.com>
15658 Andrey Turetskiy <andrey.turetskiy@intel.com>
15659 Ilya Verbin <ilya.verbin@intel.com>
15660 Kirill Yukhin <kirill.yukhin@intel.com>
15661 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15662
15663 * common/config/i386/i386-common.c
15664 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
15665 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
15666 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
15667 (ix86_handle_option): Handle OPT_mavx512bw.
15668 * config/i386/cpuid.h (bit_AVX512BW): Define.
15669 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
15670 set -mavx512bw accordingly.
15671 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15672 OPTION_MASK_ISA_AVX512BW.
15673 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
15674 (ix86_option_override_internal): Define PTA_AVX512BW, handle
15675 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
15676 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
15677 * config/i386/i386.h (TARGET_AVX512BW): Define.
15678 (TARGET_AVX512BW_P(x)): Ditto.
15679 * config/i386/i386.opt: Add mavx512bw.
15680
15681 2014-08-11 Richard Biener <rguenther@suse.de>
15682
15683 PR tree-optimization/62070
15684 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
15685 Remove SSA checking.
15686
15687 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15688
15689 * asan.c (asan_check_flags): New enum.
15690 (build_check_stmt_with_calls): Removed function.
15691 (build_check_stmt): Split inlining logic to
15692 asan_expand_check_ifn.
15693 (instrument_derefs): Rename parameter.
15694 (instrument_mem_region_access): Rename parameter.
15695 (instrument_strlen_call): Likewise.
15696 (asan_expand_check_ifn): New function.
15697 (asan_instrument): Remove old code.
15698 (pass_sanopt::execute): Change handling of
15699 asan-instrumentation-with-call-threshold.
15700 (asan_clear_shadow): Fix formatting.
15701 (asan_function_start): Likewise.
15702 (asan_emit_stack_protection): Likewise.
15703 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
15704 Update description.
15705 * internal-fn.c (expand_ASAN_CHECK): New function.
15706 * internal-fn.def (ASAN_CHECK): New internal function.
15707 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
15708 Update description.
15709 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
15710 * tree.c: Small comment fix.
15711
15712 2014-08-11 Yury Gribov <y.gribov@samsung.com>
15713
15714 * gimple.c (gimple_call_fnspec): Support internal functions.
15715 (gimple_call_return_flags): Use const.
15716 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
15717 * internal-fn.def: Add fnspec information.
15718 * internal-fn.h (internal_fn_fnspec): New function.
15719 (init_internal_fns): Declare new function.
15720 * internal-fn.c (internal_fn_fnspec_array): New global variable.
15721 (init_internal_fns): New function.
15722 * tree-core.h: Update macro call.
15723 * tree.c (build_common_builtin_nodes): Initialize internal fns.
15724
15725 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
15726
15727 * lto-streamer.h (struct output_block::symbol): Change from
15728 struct symtab_node to plain symtab_node.
15729 (referenced_from_this_partition_p): Change first parameter
15730 from struct symtab_node to plain symtab_node.
15731
15732 2014-08-10 Marek Polacek <polacek@redhat.com>
15733
15734 PR c/51849
15735 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
15736
15737 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
15738
15739 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
15740 DECL correctly; do not give up on types in static storage.
15741
15742 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
15743
15744 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
15745
15746 2014-08-09 Roman Gareev <gareevroman@gmail.com>
15747
15748 * graphite-isl-ast-to-gimple.c:
15749 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
15750
15751 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
15752
15753 2014-08-08 Guozhi Wei <carrot@google.com>
15754
15755 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
15756
15757 2014-08-08 Cary Coutant <ccoutant@google.com>
15758
15759 * dwarf2out.c (get_skeleton_type_unit): Remove.
15760 (output_skeleton_debug_sections): Remove skeleton type units.
15761 (output_comdat_type_unit): Likewise.
15762 (dwarf2out_finish): Likewise.
15763
15764 2014-08-07 Yi Yang <ahyangyi@google.com>
15765
15766 * predict.c (expr_expected_value_1): Remove the redundant assignment.
15767
15768 2014-08-08 Richard Biener <rguenther@suse.de>
15769
15770 * lto-streamer.h (struct lto_input_block): Make it a class
15771 with a constructor.
15772 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
15773 (struct lto_function_header, struct lto_simple_header,
15774 struct lto_simple_header_with_strings,
15775 struct lto_decl_header, struct lto_function_header): Make
15776 a simple inheritance hieararchy. Remove unused fields.
15777 (struct lto_asm_header): Remove.
15778 * lto-streamer-out.c (produce_asm): Adjust.
15779 (lto_output_toplevel_asms): Likewise.
15780 (produce_asm_for_decls): Likewise.
15781 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
15782 * data-streamer-in.c (string_for_index): Likewise.
15783 * ipa-inline-analysis.c (inline_read_section): Likewise.
15784 * ipa-prop.c (ipa_prop_read_section): Likewise.
15785 (read_replacements_section): Likewise.
15786 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
15787 * lto-section-in.c (lto_create_simple_input_block): Likewise.
15788 (lto_destroy_simple_input_block): Likewise.
15789 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
15790 (lto_input_toplevel_asms): Likewise.
15791
15792 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
15793 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15794 Anna Tikhonova <anna.tikhonova@intel.com>
15795 Ilya Tocar <ilya.tocar@intel.com>
15796 Andrey Turetskiy <andrey.turetskiy@intel.com>
15797 Ilya Verbin <ilya.verbin@intel.com>
15798 Kirill Yukhin <kirill.yukhin@intel.com>
15799 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15800
15801 * common/config/i386/i386-common.c
15802 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
15803 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
15804 (ix86_handle_option): Handle OPT_mavx512dq.
15805 * config/i386/cpuid.h (bit_AVX512DQ): Define.
15806 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
15807 set -mavx512dq accordingly.
15808 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15809 OPTION_MASK_ISA_AVX512DQ.
15810 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
15811 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
15812 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
15813 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
15814 * config/i386/i386.h (TARGET_AVX512DQ): Define.
15815 (TARGET_AVX512DQ_P(x)): Ditto.
15816 * config/i386/i386.opt: Add mavx512dq.
15817
15818 2014-08-08 Richard Biener <rguenther@suse.de>
15819
15820 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
15821 target_percent, target_percent_s): Export.
15822 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
15823 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
15824 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
15825 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
15826 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
15827 Move to gimple-fold.c.
15828 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
15829 strcat and strcpy.
15830 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
15831 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
15832 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
15833 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
15834 (rewrite_call_expr_array): Remove.
15835 (fold_builtin_sprintf_chk): Likewise.
15836 (fold_builtin_snprintf_chk): Likewise.
15837 (fold_builtin_varargs): Remove handling of sprintf_chk,
15838 vsprintf_chk, snprintf_chk and vsnprintf_chk.
15839 (gimple_fold_builtin_sprintf_chk): Remove.
15840 (gimple_fold_builtin_snprintf_chk): Likewise.
15841 (gimple_fold_builtin_varargs): Likewise.
15842 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
15843 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
15844 * gimple.c (gimple_seq_add_seq_without_update): New function.
15845 * gimple.h (gimple_seq_add_seq_without_update): Declare.
15846 * gimple-fold.c: Include output.h.
15847 (gsi_replace_with_seq_vops): New function, split out from ...
15848 (gimplify_and_update_call_from_tree): ... here.
15849 (replace_call_with_value): New function.
15850 (replace_call_with_call_and_fold): Likewise.
15851 (var_decl_component_p): Moved from builtins.c.
15852 (gimple_fold_builtin_memory_op): Moved from builtins.c
15853 fold_builtin_memory_op and rewritten to GIMPLE.
15854 (gimple_fold_builtin_memset): Likewise.
15855 (gimple_fold_builtin_strcpy): Likewise.
15856 (gimple_fold_builtin_strncpy): Likewise.
15857 (gimple_fold_builtin_strcat): Likewise.
15858 (gimple_fold_builtin_fputs): Likewise.
15859 (gimple_fold_builtin_memory_chk): Likewise.
15860 (gimple_fold_builtin_stxcpy_chk): Likewise.
15861 (gimple_fold_builtin_stxncpy_chk): Likewise.
15862 (gimple_fold_builtin_snprintf_chk): Likewise.
15863 (gimple_fold_builtin_sprintf_chk): Likewise.
15864 (gimple_fold_builtin_strlen): New function.
15865 (gimple_fold_builtin_with_strlen): New function split out from
15866 gimple_fold_builtin.
15867 (gimple_fold_builtin): Change signature and handle
15868 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
15869 here. Call gimple_fold_builtin_with_strlen.
15870 (gimple_fold_call): Adjust.
15871
15872 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
15873
15874 * calls.c (precompute_arguments): Check
15875 promoted_for_signed_and_unsigned_p and set the promoted mode.
15876 (promoted_for_signed_and_unsigned_p): New function.
15877 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
15878 and set the promoted mode.
15879 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
15880 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
15881 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
15882
15883
15884 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
15885
15886 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
15887 instead of SUBREG_PROMOTED_UNSIGNED_SET.
15888 (expand_call): Likewise.
15889 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
15890 to get promoted mode.
15891 * combine.c (record_promoted_value): Skip > 0 comparison with
15892 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
15893 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
15894 of SUBREG_PROMOTED_UNSIGNED_P.
15895 (convert_modes): Likewise.
15896 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
15897 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
15898 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
15899 SUBREG_PROMOTED_UNSIGNED_SET.
15900 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
15901 instead of SUBREG_PROMOTED_UNSIGNED_SET.
15902 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
15903 SUBREG_PROMOTED_SET.
15904 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
15905 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
15906 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
15907 of SUBREG_PROMOTED_UNSIGNED_P.
15908 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
15909 (SUBREG_PROMOTED_SET): New define.
15910 (SUBREG_PROMOTED_GET): Likewise.
15911 (SUBREG_PROMOTED_SIGN): Likewise.
15912 (SUBREG_PROMOTED_SIGNED_P): Likewise.
15913 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
15914 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
15915 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
15916 instead of SUBREG_PROMOTED_UNSIGNED_GET.
15917 (nonzero_bits1): Skip > 0 comparison with the results as
15918 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
15919 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
15920 of !SUBREG_PROMOTED_UNSIGNED_P.
15921 * simplify-rtx.c (simplify_unary_operation_1): Use new
15922 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
15923 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
15924 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
15925 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
15926
15927 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
15928
15929 * ipa-devirt.c: Include gimple-pretty-print.h
15930 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
15931 further tests.
15932 (decl_maybe_in_construction_p): Fix conditional on cdtor check
15933 (get_polymorphic_call_info): Fix return value
15934 (type_change_info): New sturcture based on ipa-prop
15935 variant.
15936 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
15937 based on ipa-prop variant.
15938 (extr_type_from_vtbl_ptr_store): New function
15939 based on ipa-prop variant.
15940 (record_known_type): New function.
15941 (check_stmt_for_type_change): New function.
15942 (get_dynamic_type): New function.
15943 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
15944 * tree-ssa-pre.c: ipa-utils.h
15945 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
15946 machinery; sanity check with ipa-prop devirtualization.
15947 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
15948 polymorphic flag.
15949
15950 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
15951
15952 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
15953 * alias.c, cfgexpand.c, cgraphbuild.c,
15954 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
15955 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
15956 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
15957 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
15958 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
15959 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15960 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
15961 dse.c, except.c, gengtype.c, gimple-expr.c,
15962 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
15963 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
15964 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
15965 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
15966 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
15967 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
15968 pointer-set.h.
15969 * pointer-set.c: Remove file.
15970 * pointer-set.h: Remove file.
15971
15972 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15973
15974 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
15975 * config/arm/types.md (f_sels, f_seld): Delete.
15976
15977 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15978
15979 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
15980 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
15981 (aarch64_movdi_<mode>high): Likewise.
15982 (aarch64_mov<mode>high_di): Likewise.
15983 (aarch64_movdi_<mode>low): Likewise.
15984 (aarch64_mov<mode>low_di): Likewise.
15985 (aarch64_movtilow_tilow): Likewise.
15986 Add comment explaining usage of fp,simd attributes and of
15987 TARGET_FLOAT and TARGET_SIMD.
15988
15989 2014-08-07 Ian Bolton <ian.bolton@arm.com>
15990 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15991
15992 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
15993 Use MOVN when one of the half-words is 0xffff.
15994
15995 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
15996
15997 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
15998
15999 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16000
16001 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
16002 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16003 (rfs_str): String corresponding to RFS_* constants.
16004 (rank_for_schedule_stats_t): New typedef.
16005 (rank_for_schedule_stats): New static variable.
16006 (rfs_result): New static function.
16007 (rank_for_schedule): Track statistics for deciding heuristics.
16008 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16009 static functions.
16010 (ready_sort): Use them for debug printouts.
16011 (schedule_block): Init statistics state. Print statistics on
16012 rank_for_schedule decisions.
16013
16014 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16015
16016 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16017
16018 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
16019
16020 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16021 constraint.
16022
16023 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16024
16025 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16026 function to not conflict.
16027 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16028 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16029 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16030 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16031 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16032 of pointer_map.
16033
16034 2014-08-07 Marek Polacek <polacek@redhat.com>
16035
16036 * fold-const.c (fold_binary_loc): Add folding of
16037 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16038
16039 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
16040
16041 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16042 instead of type size.
16043 (ASM_FINISH_DECLARE_OBJECT): Likewise.
16044
16045 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16046
16047 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16048 (*thumb1_movqi_insn): Likewise.
16049 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16050
16051 2014-08-07 Tom de Vries <tom@codesourcery.com>
16052
16053 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16054 (glibc_2_11_or_earlier): Remove effective-target keywords.
16055
16056 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16057
16058 * config/arm/arm.c (bdesc_2arg): Fix typo.
16059 (arm_atomic_assign_expand_fenv): Remove The default implementation.
16060
16061 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
16062
16063 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16064
16065 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
16066
16067 PR debug/61923
16068 * haifa-sched.c (advance_one_cycle): Fix dump.
16069 (schedule_block): Don't advance cycle if we are already at the
16070 beginning of the cycle.
16071
16072 2014-08-06 Martin Jambor <mjambor@suse.cz>
16073
16074 PR ipa/61393
16075 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16076
16077 2014-08-06 Richard Biener <rguenther@suse.de>
16078
16079 PR lto/62034
16080 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16081 SCCs here.
16082 (lto_input_tree): Pop SCCs here.
16083
16084 2014-08-06 Richard Biener <rguenther@suse.de>
16085
16086 PR tree-optimization/61320
16087 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16088 handle misaligned loads.
16089
16090 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
16091
16092 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16093 (aarch64_expand_vec_perm_const): Check for dup before zip.
16094
16095 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16096
16097 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16098 CONST_INT_P instead of GET_CODE and compare.
16099 (aarch64_select_cc_mode): Likewise.
16100 (aarch64_print_operand): Likewise.
16101 (aarch64_rtx_costs): Likewise.
16102 (aarch64_simd_valid_immediate): Likewise.
16103 (aarch64_simd_check_vect_par_cnst_half): Likewise.
16104 (aarch64_simd_emit_pair_result_insn): Likewise.
16105
16106 2014-08-05 David Malcolm <dmalcolm@redhat.com>
16107
16108 * gdbhooks.py (find_gcc_source_dir): New helper function.
16109 (class PassNames): New class, locating and parsing passes.def.
16110 (class BreakOnPass): New command "break-on-pass".
16111
16112 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
16113
16114 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
16115 getting olde.
16116
16117 2014-08-05 Richard Biener <rguenther@suse.de>
16118
16119 PR rtl-optimization/61672
16120 * emit-rtl.h (mem_attrs_eq_p): Declare.
16121 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
16122 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
16123 * cfgcleanup.c (merge_memattrs): Likewise.
16124 Include emit-rtl.h.
16125
16126 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16127
16128 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
16129 rather than singleton vectors.
16130 (vqdmlsls_lane_s32): Likewise.
16131
16132 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16133
16134 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
16135 Use VSDQ_HSI mode iterator.
16136 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16137 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
16138 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
16139 Use BUILTIN_VDQHS macro.
16140 (sqrdmulh_laneq): Likewise.
16141 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
16142 (vqdmlals_laneq_s32): Likewise.
16143 (vqdmlslh_laneq_s16): Likewise.
16144 (vqdmlsls_laneq_s32): Likewise.
16145 (vqdmulhh_laneq_s16): Likewise.
16146 (vqdmulhs_laneq_s32): Likewise.
16147 (vqrdmulhh_laneq_s16): Likewise.
16148 (vqrdmulhs_laneq_s32): Likewise.
16149
16150 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16151
16152 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
16153 (vmuld_laneq_f64): Likewise.
16154 (vmuls_laneq_f32): Likewise.
16155 (vmul_n_f64): Likewise.
16156 (vmuld_lane_f64): Reimplement in C.
16157 (vmuls_lane_f32): Likewise.
16158
16159 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16160
16161 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
16162 to reservation.
16163 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
16164
16165 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16166
16167 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
16168 (rbitsi2): Likewise.
16169 (*arm_rev): Set predicable and predicable_short_it attributes.
16170
16171 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16172
16173 * convert.c (convert_to_integer): Guard transformation to lrint by
16174 -fno-math-errno.
16175
16176 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
16177
16178 * config/aarch64/aarch64-builtins.c
16179 (aarch64_simd_builtin_type_mode): Delete.
16180 (v8qi_UP): Remap to V8QImode.
16181 (v4hi_UP): Remap to V4HImode.
16182 (v2si_UP): Remap to V2SImode.
16183 (v2sf_UP): Remap to V2SFmode.
16184 (v1df_UP): Remap to V1DFmode.
16185 (di_UP): Remap to DImode.
16186 (df_UP): Remap to DFmode.
16187 (v16qi_UP):V16QImode.
16188 (v8hi_UP): Remap to V8HImode.
16189 (v4si_UP): Remap to V4SImode.
16190 (v4sf_UP): Remap to V4SFmode.
16191 (v2di_UP): Remap to V2DImode.
16192 (v2df_UP): Remap to V2DFmode.
16193 (ti_UP): Remap to TImode.
16194 (ei_UP): Remap to EImode.
16195 (oi_UP): Remap to OImode.
16196 (ci_UP): Map to CImode.
16197 (xi_UP): Remap to XImode.
16198 (si_UP): Remap to SImode.
16199 (sf_UP): Remap to SFmode.
16200 (hi_UP): Remap to HImode.
16201 (qi_UP): Remap to QImode.
16202 (aarch64_simd_builtin_datum): Make mode a machine_mode.
16203 (VAR1): Build builtin name.
16204 (aarch64_init_simd_builtins): Remove dead code.
16205
16206 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16207
16208 * graphite-isl-ast-to-gimple.c:
16209 (set_options): New function.
16210 (scop_to_isl_ast): Add calling of set_options.
16211
16212 2014-08-05 Jakub Jelinek <jakub@redhat.com>
16213
16214 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
16215 (analyze_iv_to_split_insn): Don't initialize them.
16216 (get_ivts_expr): Removed.
16217 (allocate_basic_variable, insert_base_initialization): Use
16218 SET_SRC instead of *get_ivts_expr.
16219 (split_iv): Use &SET_SRC instead of get_ivts_expr.
16220
16221 2014-08-05 Roman Gareev <gareevroman@gmail.com>
16222
16223 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
16224 (translate_isl_ast_for_loop): Add checking of the
16225 flag_loop_parallelize_all.
16226 (ast_build_before_for): New function.
16227 (scop_to_isl_ast): Add checking of the
16228 flag_loop_parallelize_all.
16229 * graphite-dependences.c: Move the defenition of the
16230 scop_get_dependences from graphite-optimize-isl.c to this file.
16231 (apply_schedule_on_deps): Add checking of the ux's emptiness.
16232 (carries_deps): Add checking of the x's value.
16233 * graphite-optimize-isl.c: Move the defenition of the
16234 scop_get_dependences to graphite-dependences.c.
16235 * graphite-poly.h: Add declarations of scop_get_dependences
16236 and carries_deps.
16237
16238 2014-08-04 Rohit <rohitarulraj@freescale.com>
16239
16240 PR target/60102
16241 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
16242 names.
16243 (alt_reg_names): Likewise.
16244 (rs6000_dwarf_register_span): For SPE high registers, replace
16245 dwarf register numbers with GCC hard register numbers.
16246 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
16247 (rs6000_dbx_register_number): For SPE high registers, return dwarf
16248 register number for the corresponding GCC hard register number.
16249 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
16250 newly added GCC hard register numbers for SPE high registers.
16251 (DWARF_FRAME_REGISTERS): Likewise.
16252 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
16253 (DWARF_FRAME_REGNUM): Likewise.
16254 (FIXED_REGISTERS): Likewise.
16255 (CALL_USED_REGISTERS): Likewise.
16256 (CALL_REALLY_USED_REGISTERS): Likewise.
16257 (REG_ALLOC_ORDER): Likewise.
16258 (enum reg_class): Likewise.
16259 (REG_CLASS_NAMES): Likewise.
16260 (REG_CLASS_CONTENTS): Likewise.
16261 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
16262
16263 2014-08-04 Richard Biener <rguenther@suse.de>
16264
16265 * gimple-fold.h (gimple_fold_builtin): Remove.
16266 * gimple-fold.c (gimple_fold_builtin): Make static.
16267 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
16268 fold_stmt, not gimple_fold_builtin.
16269
16270 2014-08-04 Martin Liska <mliska@suse.cz>
16271
16272 * cgraph.h (csi_end_p): Removed.
16273 (csi_next): Likewise.
16274 (csi_node): Likewise.
16275 (csi_start): Likewise.
16276 (cgraph_node_in_set_p): Likewise.
16277 (cgraph_node_set_size): Likewise.
16278 (vsi_end_p): Likewise.
16279 (vsi_next): Likewise.
16280 (vsi_node): Likewise.
16281 (vsi_start): Likewise.
16282 (varpool_node_set_size): Likewise.
16283 (cgraph_node_set_nonempty_p): Likewise.
16284 (varpool_node_set_nonempty_p): Likewise.
16285 * cgraphunit.c (cgraph_process_new_functions): vec replaces
16286 cgraph_node_set.
16287 * ipa-inline-transform.c: Likewise.
16288 * ipa-utils.c (cgraph_node_set_new): Removed.
16289 (cgraph_node_set_add): Likewise.
16290 (cgraph_node_set_remove): Likewise.
16291 (cgraph_node_set_find): Likewise.
16292 (dump_cgraph_node_set): Likewise.
16293 (debug_cgraph_node_set): Likewise.
16294 (free_cgraph_node_set): Likewise.
16295 (varpool_node_set_new): Likewise.
16296 (varpool_node_set_add): Likewise.
16297 (varpool_node_set_remove): Likewise.
16298 (varpool_node_set_find): Likewise.
16299 (dump_varpool_node_set): Likewise.
16300 (free_varpool_node_set): Likewise.
16301 (debug_varpool_node_set): Likewise.
16302 * tree-emutls.c (struct tls_var_data):
16303 (emutls_index): Removed.
16304 (emutls_decl): Likewise.
16305 (gen_emutls_addr): Function implementation uses newly added
16306 hash_map<varpool_node *, tls_var_data>.
16307 (clear_access_vars): Likewise.
16308 (create_emultls_var): Likewise.
16309 (ipa_lower_emutls): Likewise.
16310 (reset_access): New function.
16311
16312 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16313
16314 * config/i386/i386.c (ix86_option_override_internal): Add
16315 PTA_RDRND and PTA_MOVBE for bdver4.
16316
16317 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16318 James Greenhalgh <james.greenhalgh@arm.com>
16319
16320 * doc/md.texi (clrsb): Document.
16321 (clz): Change reference to x into operand 1.
16322 (ctz): Likewise.
16323 (popcount): Likewise.
16324
16325 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16326
16327 PR target/61713
16328 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
16329 move to subtarget in serial version if result is ignored.
16330
16331 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16332 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16333
16334 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
16335 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
16336 (sched_analyze_insn): Update use of try_group_insn to
16337 sched_macro_fuse_insns.
16338 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
16339 arguments that are not conditional jumps.
16340
16341 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16342
16343 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
16344 family information. Handle BTVER2 cpu with cpuid family value.
16345
16346 2014-08-04 Tom de Vries <tom@codesourcery.com>
16347
16348 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16349 (glibc_2_11_or_earlier): Document effective-target keywords.
16350
16351 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16352
16353 * ipa-devirt.c (odr_type_warn_count): Add type.
16354 (possible_polymorphic_call_targets): Set it.
16355 (ipa_devirt): Use it.
16356
16357 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
16358
16359 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
16360 Document.
16361 * ipa-devirt.c: Include hash-map.h
16362 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
16363 (clear_speculation): Break out of ...
16364 (get_class_context): ... here; speed up handling obviously useless
16365 speculations.
16366 (odr_type_warn_count, decl_warn_count): New structures.
16367 (final_warning_record): New structure.
16368 (final_warning_records): New static variable.
16369 (possible_polymorphic_call_targets): Cleanup handling of
16370 speculative info; do not build speculation when user do not care;
16371 record info about warnings when asked for.
16372 (add_decl_warning): New function.
16373 (type_warning_cmp): New function.
16374 (decl_warning_cmp): New function.
16375 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
16376 (gate): Enable pass when warnings are requested.
16377 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
16378 options.
16379
16380 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16381
16382 * hash-map.h (default_hashmap_traits::mark_key_deleted):
16383 Fix cast.
16384 (hash_map::remove): New method.
16385 (hash_map::traverse): New method.
16386 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
16387 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
16388 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
16389 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
16390 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
16391 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
16392 pointer_map.
16393
16394 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
16395
16396 * hash-set.h: new File.
16397 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
16398 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
16399 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
16400 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
16401 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
16402 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
16403 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
16404 varpool.c: Use hash_set instead of pointer_set.
16405
16406 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
16407
16408 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
16409
16410 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16411
16412 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
16413 for frame access when strict_p is false.
16414
16415 2014-08-01 Renlin Li <renlin.li@arm.com>
16416 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16417
16418 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
16419 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
16420 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
16421 Declaration.
16422 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
16423 predicate.
16424 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
16425 aarch64_mem_pair_offset.
16426
16427 2014-08-01 Jiong Wang <jiong.wang@arm.com>
16428
16429 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
16430 offset.
16431 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
16432 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
16433
16434 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
16435
16436 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
16437
16438 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
16439
16440 PR regression/61510
16441 * cgraphunit.c (analyze_functions): Use get_create rather than get
16442 for decls which are clones of abstract functions.
16443
16444 2014-08-01 Martin Liska <mliska@suse.cz>
16445
16446 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
16447 * ipa-prop.h (count_formal_params): Global function created from static.
16448 * ipa-prop.c (count_formal_params): Likewise.
16449 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
16450 profiles for semantically equivalent functions.
16451 * passes.c (do_per_function): If we load body of a function
16452 during WPA, this condition should behave same.
16453 * varpool.c (ctor_for_folding): More tolerant assert for variable
16454 aliases created during WPA.
16455
16456 2014-08-01 Martin Liska <mliska@suse.cz>
16457
16458 * doc/invoke.texi (Options That Control Optimization): Documentation
16459 for -foptimize-strlen introduced. Optimization levels default options
16460 fixed.
16461
16462 2014-08-01 Jakub Jelinek <jakub@redhat.com>
16463
16464 * opts.c (common_handle_option): Handle -fsanitize=alignment.
16465 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
16466 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
16467 type to bool.
16468 * stor-layout.h (min_align_of_type): New prototype.
16469 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
16470 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
16471 check.
16472 * ubsan.c: Include builtins.h.
16473 (ubsan_expand_bounds_ifn): Change return type to bool,
16474 always return true.
16475 (ubsan_expand_null_ifn): Change return type to bool, change
16476 argument to gimple_stmt_iterator *. Handle both null and alignment
16477 sanitization, take type from ckind argument's type rather than
16478 first argument.
16479 (instrument_member_call): Removed.
16480 (instrument_mem_ref): Remove t argument, add mem and base arguments.
16481 Handle both null and alignment sanitization, don't say whole
16482 struct access is member access. Build 3 argument IFN_UBSAN_NULL
16483 call instead of 2 argument.
16484 (instrument_null): Adjust instrument_mem_ref caller. Don't
16485 instrument calls here.
16486 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
16487 like SANITIZE_NULL.
16488 * stor-layout.c (min_align_of_type): New function.
16489 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
16490 Or it into SANITIZE_UNDEFINED.
16491 * doc/invoke.texi (-fsanitize=alignment): Document.
16492
16493 2014-07-31 Andi Kleen <ak@linux.intel.com>
16494
16495 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
16496
16497 2014-07-31 Andi Kleen <ak@linux.intel.com>
16498
16499 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
16500 inchash.
16501 (vn_reference_compute_hash): Dito.
16502 (vn_nary_op_compute_hash): Dito.
16503 (vn_phi_compute_hash): Dito.
16504 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
16505
16506 2014-07-31 Andi Kleen <ak@linux.intel.com>
16507
16508 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
16509 Rename to inchash:add_expr_commutative. Convert to inchash.
16510 (iterative_hash_hashable_expr): Rename to
16511 inchash:add_hashable_expr. Convert to inchash.
16512 (avail_expr_hash): Dito.
16513
16514 2014-07-31 Andi Kleen <ak@linux.intel.com>
16515
16516 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
16517 Convert to inchash.
16518
16519 2014-07-31 Andi Kleen <ak@linux.intel.com>
16520
16521 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
16522
16523 2014-07-31 Andi Kleen <ak@linux.intel.com>
16524
16525 * Makefile.in (OBJS): Add rtlhash.o
16526 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
16527 (loc_checksum): Dito.
16528 (loc_checksum_ordered): Dito.
16529 (hash_loc_operands): Dito.
16530 (hash_locs): Dito.
16531 (hash_loc_list): Dito.
16532 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
16533 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
16534 * rtlhash.c: New file.
16535 * rtlhash.h: New file.
16536
16537 2014-07-31 Andi Kleen <ak@linux.intel.com>
16538
16539 * inchash.h (inchash): Change inchash class to namespace.
16540 (class hash): ... Rename from inchash.
16541 (add_object): Move from macro to class template.
16542 * lto-streamer-out.c (hash_tree): Change inchash
16543 to inchash::hash.
16544 * tree.c (build_type_attribute_qual_variant): Dito.
16545 (type_hash_list): Dito.
16546 (attribute_hash_list): Dito.
16547 (iterative_hstate_expr): Rename to inchash::add_expr
16548 (build_range_type_1): Change inchash to inchash::hash
16549 and use hash::add_expr.
16550 (build_array_type_1): Dito.
16551 (build_function_type): Dito
16552 (build_method_type_directly): Dito.
16553 (build_offset_type): Dito.
16554 (build_complex_type): Dito.
16555 (make_vector_type): Dito.
16556 * tree.h (iterative_hash_expr): Dito.
16557
16558 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
16559
16560 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
16561
16562 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16563
16564 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
16565 correct alphabetical position.
16566 (vpaddd_f64): Rewrite using builtins.
16567 (vpaddd_s64): Move to correct alphabetical position.
16568 (vpaddd_u64): New.
16569
16570 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
16571
16572 PR target/61844
16573 * config/sh/sh.c (sh_legitimate_address_p,
16574 sh_legitimize_reload_address): Handle reg+reg address modes when
16575 ALLOW_INDEXED_ADDRESS is false.
16576 * config/sh/predicates.md (general_movsrc_operand,
16577 general_movdst_operand): Likewise.
16578
16579 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16580
16581 * config/aarch64/aarch64-builtins.c
16582 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
16583 BYTES_BIG_ENDIAN.
16584
16585 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
16586
16587 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
16588 the generated mask based on BYTES_BIG_ENDIAN.
16589 (aarch64_simd_check_vect_par_cnst_half): New.
16590 * config/aarch64/aarch64-protos.h
16591 (aarch64_simd_check_vect_par_cnst_half): New.
16592 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
16593 the check out to aarch64_simd_check_vect_par_cnst_half.
16594 (vect_par_cnst_lo_half): Likewise.
16595 * config/aarch64/aarch64-simd.md
16596 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
16597 (move_hi_quad_<mode>): Always generate a low mask.
16598
16599 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
16600
16601 * doc/invoke.texi (AVR Options): Add documentation about
16602 __AVR_DEVICE_NAME__ built-in macro.
16603
16604 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
16605
16606 PR target/61948
16607 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
16608 constraints are satisfied.
16609 (<shift>di3_neon): Likewise.
16610
16611 2014-07-31 Richard Biener <rguenther@suse.de>
16612
16613 PR tree-optimization/61964
16614 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
16615 by structural equality.
16616
16617 2014-07-31 Yury Gribov <y.gribov@samsung.com>
16618
16619 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
16620 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
16621 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
16622 New enums.
16623 * gcc.c (sanitize_spec_function): Support new option.
16624 (SANITIZER_SPEC): Remove now redundant check.
16625 * opts.c (common_handle_option): Support new option.
16626 (finish_options): Check for incompatibilities.
16627 * toplev.c (process_options): Split userspace-specific checks.
16628
16629 2014-07-31 Richard Biener <rguenther@suse.de>
16630
16631 * lto-streamer.h (struct output_block): Remove global.
16632 (struct data_in): Remove labels, num_named_labels and
16633 num_unnamed_labels.
16634 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
16635 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
16636
16637 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
16638
16639 PR c++/60517
16640 * common.opt (-Wreturn-local-addr): Moved from c.opt.
16641 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
16642 (isolate_path): New argument to avoid inserting a trap.
16643 (find_implicit_erroneous_behaviour): Handle returning the address
16644 of a local variable.
16645 (find_explicit_erroneous_behaviour): Likewise.
16646
16647 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
16648
16649 PR lto/61868
16650 * toplev.c (init_random_seed): Move piece of code never called to
16651 set_random_seed.
16652 (set_random_seed): see above.
16653
16654 2014-07-31 Tom de Vries <tom@codesourcery.com>
16655
16656 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
16657
16658 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
16659
16660 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
16661 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
16662
16663 2014-07-31 Richard Biener <rguenther@suse.de>
16664
16665 * data-streamer.h (streamer_write_data_stream): Declare here,
16666 renamed from ...
16667 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
16668 * lto-cgraph.c (lto_output_node): Adjust.
16669 (lto_output_varpool_node): Likewise.
16670 * data-streamer-out.c (streamer_string_index): Likewise.
16671 (streamer_write_data_stream, lto_append_block): Move from ...
16672 * lto-section-out.c (lto_output_data_stream,
16673 lto_append_block): ... here.
16674
16675 2014-07-30 Mike Stump <mikestump@comcast.net>
16676
16677 * configure.ac: Also check for popen.
16678 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
16679 * configure: Regenerate.
16680 * config.in: Regenerate.
16681
16682 2014-07-30 Martin Jambor <mjambor@suse.cz>
16683
16684 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
16685 parameter to gimple.
16686
16687 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16688
16689 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
16690 address as second parameter to __tpf_eh_return routine.
16691
16692 2014-07-30 Jiong Wang <jiong.wang@arm.com>
16693
16694 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
16695 Thumb2.
16696
16697 2014-07-30 Tom Tromey <tromey@redhat.com>
16698
16699 PR c/59855
16700 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
16701 * doc/extend.texi (Type Attributes): Document designated_init
16702 attribute.
16703
16704 2014-07-30 Roman Gareev <gareevroman@gmail.com>
16705
16706 * graphite-isl-ast-to-gimple.c:
16707 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
16708 (gcc_expression_from_isl_expression): Pass type to
16709 gcc_expression_from_isl_ast_expr_id.
16710
16711 2014-07-30 Richard Biener <rguenther@suse.de>
16712
16713 * lto-streamer.h (lto_write_data): New function.
16714 * langhooks.c (lhd_append_data): Do not free block.
16715 * lto-section-out.c (lto_write_data): New function writing
16716 raw data to the current section.
16717 (lto_write_stream): Adjust for langhook semantic change.
16718 (lto_destroy_simple_output_block): Write header directly.
16719 * lto-opts.c (lto_write_options): Write options directly.
16720 * lto-streamer-out.c (produce_asm): Write heaeder directly.
16721 (lto_output_toplevel_asms): Likewise.
16722 (copy_function_or_variable): Copy data directly.
16723 (write_global_references): Output index table directly.
16724 (lto_output_decl_state_refs): Likewise.
16725 (write_symbol): Write data directly.
16726 (produce_symtab): Adjust.
16727 (produce_asm_for_decls): Output header and refs directly.
16728
16729 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16730
16731 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
16732 to speculative_targets
16733 (get_class_context): Fix handling of contextes without outer type;
16734 avoid matching non-polymorphic types in LTO.
16735 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
16736 parameter to speculative_targetsp; handle speculation.
16737 (dump_possible_polymorphic_call_targets): Update dumping.
16738
16739 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
16740
16741 * common.opt (Wodr): Enable by default.
16742
16743 2014-07-29 Olivier Hainque <hainque@adacore.com>
16744
16745 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
16746
16747 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
16748
16749 PR bootstrap/61914
16750 * gengtype.c (strtoken): New function.
16751 (create_user_defined_type): Replace strtok with strtoken.
16752
16753 2014-07-29 Nathan Sidwell <nathan@acm.org>
16754
16755 * gcov-io.c (gcov_var): Make hidden.
16756 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
16757 (gcov_do_dump): Declare.
16758 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
16759
16760 2014-07-29 Martin Jambor <mjambor@suse.cz>
16761
16762 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
16763 parameter to gimple.
16764 (sra_modify_assign): Likewise.
16765
16766 2014-07-29 Richard Biener <rguenther@suse.de>
16767
16768 PR middle-end/52478
16769 * expr.c (expand_expr_real_2): Revert last change.
16770
16771 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16772
16773 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
16774 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
16775 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
16776 call.
16777 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
16778 (contains_type_p): Forward declare.
16779 (polymorphic_call_target_hasher::hash): Hash speculative info.
16780 (polymorphic_call_target_hasher::equal): Compare speculative info.
16781 (get_class_context): Handle speuclation.
16782 (contains_type_p): Update.
16783 (get_polymorphic_call_info_for_decl): Update.
16784 (walk_ssa_copies): Break out from ...
16785 (get_polymorphic_call_info): ... here; set speculative context
16786 before giving up.
16787 * ipa-prop.c (ipa_write_indirect_edge_info,
16788 ipa_read_indirect_edge_info): Stream speculative context.
16789 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
16790 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
16791 SPECULATIVE_MAYBE_DERIVED_TYPE).
16792 (possible_polymorphic_call_targets overriders): Update.
16793 (dump_possible_polymorphic_call_targets overriders): Update.
16794 (dump_possible_polymorphic_call_target_p overriders): Update.
16795
16796 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
16797
16798 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
16799 ipa-devirt path; fix thinko there.
16800
16801 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
16802
16803 * config/i386/i386.c (ix86_return_in_memory): Replace one
16804 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
16805
16806 2014-07-28 Marek Polacek <polacek@redhat.com>
16807
16808 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
16809
16810 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
16811
16812 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
16813 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
16814 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
16815 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16816 (USE_LD_AS_NEEDED): Likewise.
16817 (ASM_APP_ON): Likewise.
16818 (ASM_APP_OFF): Likewise.
16819 (TARGET_POSIX_IO): Likewise.
16820 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
16821 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
16822 (USE_LD_AS_NEEDED): Likewise.
16823 (ASM_APP_ON): Likewise.
16824 (ASM_APP_OFF): Likewise.
16825 (TARGET_POSIX_IO): Likewise.
16826
16827 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
16828
16829 PR middle-end/61734
16830 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
16831 operators other than the equality operators.
16832
16833 2014-07-28 Richard Biener <rguenther@suse.de>
16834
16835 PR middle-end/52478
16836 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
16837 sure to register SImode ones, not only >= word_mode ones.
16838 * expr.c (expand_expr_real_2): When expanding -ftrapv
16839 binops do not use OPTAB_LIB_WIDEN.
16840
16841 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
16842
16843 PR middle-end/61919
16844 * tree-outof-ssa.c (insert_partition_copy_on_edge)
16845 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
16846 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
16847 inserting them in the insn stream.
16848
16849 2014-07-28 Marek Polacek <polacek@redhat.com>
16850
16851 PR middle-end/61913
16852 * common.opt (Wodr): Add Var.
16853
16854 2014-07-28 Richard Biener <rguenther@suse.de>
16855
16856 PR tree-optimization/61921
16857 * tree-ssa-structalias.c (create_variable_info_for_1): Check
16858 if there is a varpool node before dereferencing it.
16859
16860 2014-07-28 Roman Gareev <gareevroman@gmail.com>
16861
16862 * graphite-sese-to-poly.c:
16863 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
16864 id of the pbb), which contains pointer to the pbb1.
16865
16866 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
16867
16868 2014-07-28 Roman Gareev <gareevroman@gmail.com>
16869
16870 * graphite-isl-ast-to-gimple.c:
16871 (graphite_create_new_guard): New function.
16872 (translate_isl_ast_node_if): New function.
16873 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
16874
16875 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
16876
16877 2014-07-27 Anthony Green <green@moxielogic.com>
16878
16879 * config.gcc: Add moxie-*-moxiebox* configuration.
16880 * config/moxie/moxiebox.h: New file.
16881
16882 2014-07-26 Andrew Pinski <apinski@cavium.com>
16883
16884 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
16885 from the read only register.
16886
16887 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
16888
16889 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
16890 as the allocation class if it isn't likely to be spilled.
16891
16892 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
16893
16894 * rtl.h (tls_referenced_p): Declare.
16895 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
16896 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
16897 (mips_cannot_force_const_mem): Use tls_referenced_p.
16898 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
16899 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
16900 instead of pa_tls_referenced_p.
16901 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
16902 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
16903 (pa_legitimate_constant_p): Likewise.
16904 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
16905 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
16906 (rs6000_cannot_force_const_mem, rs6000_emit_move)
16907 (rs6000_address_for_altivec): Use tls_referenced_p instead of
16908 rs6000_tls_referenced_p.
16909 (rs6000_tls_symbol_ref_1): Delete.
16910
16911 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
16912
16913 PR target/44551
16914 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
16915 Optimize inverse of a VEC_CONCAT.
16916
16917 2014-07-25 Xinliang David Li <davidxl@google.com>
16918
16919 * params.def: New parameter.
16920 * coverage.c (get_coverage_counts): Check new flag.
16921 (coverage_compute_profile_id): Check new flag.
16922 (coverage_begin_function): Check new flag.
16923 (coverage_end_function): Check new flag.
16924 * value-prof.c (coverage_node_map_initialized_p): New function.
16925 (init_node_map): Populate map with all functions.
16926 * doc/invoke.texi: Document new parameter.
16927
16928 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
16929 Richard Biener <rguenther@suse.de>
16930
16931 * lto-streamer-out.c (struct sccs): Turn to ...
16932 (class DFS): ... this one; refactor the DFS walk so it can
16933 be re-done on per-SCC basis.
16934 (DFS::DFS): New constructor.
16935 (DFS::~DFS): New destructor.
16936 (hash_tree): Add new MAP argument holding in-SCC hash values;
16937 remove POINTER_TYPE hashing hack.
16938 (scc_entry_compare): Rename to ...
16939 (DFS::scc_entry_compare): ... this one.
16940 (hash_scc): Rename to ...
16941 (DFS::hash_scc): ... this one; pass output_block instead
16942 of streamer_cache; work harder to get unique and stable SCC
16943 hashes.
16944 (DFS_write_tree): Rename to ...
16945 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
16946 (lto_output_tree): Update.
16947
16948 2014-07-25 Andi Kleen <ak@linux.intel.com>
16949
16950 * lto-streamer-out.c (hash_tree): Convert to inchash.
16951
16952 2014-07-25 Andi Kleen <ak@linux.intel.com>
16953
16954 * tree.c (build_type_attribute_qual_variant): Use inchash.
16955 (type_hash_list): Dito.
16956 (attribute_hash_list): Dito
16957 (iterative_hstate_expr): Dito.
16958 (iterative_hash_expr): Dito.
16959 (build_range_type_1): Dito.
16960 (build_array_type_1): Dito.
16961 (build_function_type): Dito.
16962 (build_method_type_directly): Dito.
16963 (build_offset_type): Dito.
16964 (build_complex_type): Dito.
16965 (make_vector_type): Dito.
16966 * tree.h (iterative_hash_expr): Add compat wrapper.
16967 (iterative_hstate_expr): Add.
16968
16969 2014-07-25 Andi Kleen <ak@linux.intel.com>
16970
16971 * Makefile.in (OBJS): Add inchash.o.
16972 (PLUGIN_HEADERS): Add inchash.h.
16973 * ipa-devirt.c: Include inchash.h.
16974 * lto-streamer-out.c: Dito.
16975 * tree-ssa-dom.c: Dito.
16976 * tree-ssa-pre.c: Dito.
16977 * tree-ssa-sccvn.c: Dito.
16978 * tree-ssa-tail-merge.c: Dito.
16979 * asan.c: Dito.
16980 * tree.c (iterative_hash_hashval_t): Move to ...
16981 (iterative_hash_host_wide_int): Move to ...
16982 * inchash.c: Here. New file.
16983 * tree.h (iterative_hash_hashval_t): Move to ...
16984 (iterative_hash_host_wide_int): Move to ...
16985 * inchash.h: Here. New file.
16986
16987 2014-07-25 Richard Biener <rguenther@suse.de>
16988
16989 PR middle-end/61762
16990 PR middle-end/61894
16991 * fold-const.c (native_encode_int): Add and handle offset
16992 parameter to do partial encodings of expr.
16993 (native_encode_fixed): Likewise.
16994 (native_encode_real): Likewise.
16995 (native_encode_complex): Likewise.
16996 (native_encode_vector): Likewise.
16997 (native_encode_string): Likewise.
16998 (native_encode_expr): Likewise.
16999 * fold-const.c (native_encode_expr): Add offset parameter
17000 defaulting to -1.
17001 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17002 (fold_ctor_reference): Handle all reads from tcc_constant
17003 ctors.
17004
17005 2014-07-25 Richard Biener <rguenther@suse.de>
17006
17007 * tree-inline.c (estimate_move_cost): Mark speed_p argument
17008 as possibly unused.
17009
17010 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17011
17012 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17013
17014 2014-07-24 Kyle McMartin <kyle@redhat.com>
17015
17016 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17017
17018 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17019
17020 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17021 Add prototype.
17022 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17023 function.
17024 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17025 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17026 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17027
17028 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17029
17030 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17031 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17032 aggregate types. Instead, *all* aggregate types, except for single-
17033 element or homogeneous float/vector aggregates, are quadword-aligned
17034 if required by their type alignment. Issue -Wpsabi note when a type
17035 is now treated differently than before.
17036
17037 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17038
17039 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17040 does not fit fully into floating-point registers, and there is still
17041 space in the register parameter area, use GPRs to pass those parts
17042 of the argument. Issue -Wpsabi note if any parameter is now treated
17043 differently than before.
17044 (rs6000_arg_partial_bytes): Update.
17045
17046 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
17047
17048 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17049
17050 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17051
17052 * rtl.h (target_rtl): Remove lang_dependent_initialized.
17053 * toplev.c (initialize_rtl): Don't use it. Move previously
17054 "language-dependent" calls to...
17055 (backend_init): ...here.
17056 (lang_dependent_init_target): Don't set lang_dependent_initialized.
17057 Assert that RTL initialization hasn't happend yet.
17058
17059 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17060
17061 PR rtl-optimization/61629
17062 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17063 they have already been initialized.
17064
17065 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17066
17067 PR middle-end/61268
17068 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17069 DECL_INCOMING_RTL and entry_parm.
17070 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17071 * calls.c (load_register_parameters): Likewise argument values.
17072 (emit_library_call_value_1, store_one_arg): Likewise argument
17073 save areas.
17074 * config/i386/i386.c (assign_386_stack_local): Likewise the local
17075 stack slot.
17076 * explow.c (validize_mem): Modify the argument in-place.
17077
17078 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17079
17080 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17081 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17082
17083 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17084
17085 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17086 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17087
17088 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17089
17090 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17091 (aarch64_save_callee_saves): New parameter "skip_wb".
17092 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17093
17094 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17095
17096 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17097 "wb_candidate2".
17098 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
17099
17100 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17101
17102 * graphite-isl-ast-to-gimple.c:
17103 (graphite_create_new_loop): Add calling of isl_id_free to properly
17104 decrement reference counts.
17105
17106 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
17107
17108 2014-07-24 Martin Liska <mliska@suse.cz>
17109 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
17110 function used.
17111 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
17112 (rs6000_code_end): Likewise.
17113
17114 2014-07-24 Martin Liska <mliska@suse.cz>
17115
17116 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
17117 symtab_node funtion used.
17118 (rs6000_xcoff_declare_object_name): Likewise.
17119
17120 2014-07-24 Martin Liska <mliska@suse.cz>
17121
17122 * cgraphunit.c (compile): Correct function used.
17123
17124 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17125
17126 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
17127 as non-indexable.
17128
17129 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
17130
17131 PR lto/61802
17132 * varasm.c (bss_initializer_p): Handle offlined ctors.
17133 (align_variable, get_variable_align): Likewise.
17134 (make_decl_one_only): Likewise.
17135 (default_binds_local_p_1): Likewise.
17136 (decl_binds_to_current_def_p): Likewise.
17137 (get_variable_section): Get constructor if it is offlined.
17138 (assemble_variable_contents): Sanity check that the caller
17139 streamed in the ctor in LTO.
17140
17141 2014-07-24 Roman Gareev <gareevroman@gmail.com>
17142
17143 * graphite-isl-ast-to-gimple.c:
17144 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
17145 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
17146 isl_ast_op_pdiv_r to the different case.
17147
17148 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
17149
17150 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17151
17152 PR middle-end/61876
17153 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
17154 when flag_errno_math is on.
17155
17156 2014-07-24 Martin Liska <mliska@suse.cz>
17157
17158 * cgraph.h (varpool_node):
17159 (availability get_availability (void)):
17160 created from cgraph_variable_initializer_availability
17161 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
17162 created from: cgraph_variable_initializer_availability
17163 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
17164 (void finalize_named_section_flags (void)):
17165 created from varpool_finalize_named_section_flags
17166 (bool assemble_decl (void)): created from varpool_assemble_decl
17167 (void analyze (void)): created from varpool_analyze_node
17168 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
17169 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
17170 (void remove_initializer (void)): created from varpool_remove_initializer
17171 (tree get_constructor (void)): created from varpool_get_constructor
17172 (bool externally_visible_p (void)): created from varpool_externally_visible_p
17173 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
17174 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
17175 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
17176 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
17177 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
17178 (static bool output_variables (void)): created from varpool_output_variables
17179 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
17180 created from varpool_extra_name_alias
17181 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
17182 (static void dump_varpool (FILE *f)): created from dump_varpool
17183 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
17184 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
17185 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
17186 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
17187 (void assemble_aliases (void)): created from assemble_aliases
17188
17189 2014-07-24 Martin Liska <mliska@suse.cz>
17190
17191 * cgraph.h (symtab_node):
17192 (void register_symbol (void)): created from symtab_register_node
17193 (void remove (void)): created from symtab_remove_node
17194 (void dump (FILE *f)): created from dump_symtab_node
17195 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
17196 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
17197 (struct ipa_ref *add_reference (symtab_node *referred_node,
17198 enum ipa_ref_use use_type)): created from add_reference
17199 (struct ipa_ref *add_reference (symtab_node *referred_node,
17200 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
17201 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
17202 gimple stmt)): created from maybe_add_reference
17203 (bool semantically_equivalent_p (symtab_node *target)): created from
17204 symtab_semantically_equivalent_p
17205 (void remove_from_same_comdat_group (void)): created from
17206 remove_from_same_comdat_group
17207 (void add_to_same_comdat_group (symtab_node *old_node)): created from
17208 symtab_add_to_same_comdat_group
17209 (void dissolve_same_comdat_group_list (void)): created from
17210 symtab_dissolve_same_comdat_group_list
17211 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
17212 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
17213 created from symtab_alias_ultimate_target
17214 (inline symtab_node *next_defined_symbol (void)): created from
17215 symtab_next_defined_symbol
17216 (bool resolve_alias (symtab_node *target)): created from
17217 symtab_resolve_alias
17218 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
17219 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
17220 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
17221 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
17222 (void set_section (const char *section)): created from set_section_1
17223 (enum availability get_availability (void)): created from symtab_node_availability
17224 (void make_decl_local (void)): created from symtab_make_decl_local
17225 (bool real_symbol_p (void)): created from symtab_read_node
17226 (can_be_discarded_p (void)): created from symtab_can_be_discarded
17227 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
17228 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
17229 symtab_in_same_comdat_p;
17230 (bool address_taken_from_non_vtable_p (void)): created from
17231 address_taken_from_non_vtable_p
17232 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
17233 (static void dump_table (FILE *)): created from dump_symtab
17234 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
17235 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
17236 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
17237 symtab_used_from_object_file_p
17238 (void dump_base (FILE *)): created from dump_symtab_base
17239 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
17240 (void unregister (void)): created from symtab_unregister_node
17241 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
17242 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
17243 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
17244 symtab_nonoverwritable_alias_1
17245 * cgraph.h (cgraph_node):
17246 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
17247 created from cgraph_remove_node_and_inline_clones
17248 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
17249 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
17250 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
17251 (cgraph_node *function_symbol (enum availability *avail = NULL)):
17252 created from cgraph_function_node
17253 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
17254 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
17255 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
17256 created from cgraph_create_clone
17257 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
17258 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
17259 created from cgraph_create_virtual_clone
17260 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
17261 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
17262 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
17263 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
17264 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
17265 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
17266 created from cgraph_function_version_info
17267 (struct cgraph_function_version_info *insert_new_function_version (void)):
17268 created from insert_new_cgraph_node_version
17269 (struct cgraph_function_version_info *function_version (void)): created from
17270 get_cgraph_node_version
17271 (void analyze (void)): created from analyze_function
17272 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
17273 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
17274 tree real_alias) cgraph_add_thunk
17275 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
17276 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
17277 created from cgraph_function_or_thunk_node
17278 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
17279 created from expand_thunk
17280 (void reset (void)): created from cgraph_reset_node
17281 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
17282 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
17283 (void remove (void)): created from cgraph_remove_node
17284 (void dump (FILE *f)): created from dump_cgraph_node
17285 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
17286 (bool get_body (void)): created from cgraph_get_body
17287 (void release_body (void)): created from cgraph_release_function_body
17288 (void unnest (void)): created from cgraph_unnest_node
17289 (void make_local (void)): created from cgraph_make_node_local
17290 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
17291 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
17292 gcov_type count, int freq)): created from cgraph_create_edge
17293 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
17294 gcov_type count, int freq)): created from cgraph_create_indirect_edge
17295 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
17296 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
17297 created from cgraph_create_edge_including_clones
17298 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
17299 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
17300 (void remove_callers (void)): created from cgraph_node_remove_callers
17301 (void remove_callees (void)): created from cgraph_node_remove_callees
17302 (enum availability get_availability (void)): created from cgraph_function_body_availability
17303 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
17304 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
17305 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
17306 (void call_duplication_hooks (cgraph_node *node2)): created from
17307 cgraph_call_node_duplication_hooks
17308 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
17309 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
17310 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
17311 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
17312 (void call_function_insertion_hooks (void)):
17313 created from cgraph_call_function_insertion_hooks
17314 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
17315 (bool local_p (void)): created from cgraph_local_node
17316 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
17317 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
17318 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
17319 (inline bool only_called_directly_or_aliased_p (void)):
17320 created from cgraph_only_called_directly_or_aliased_p
17321 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
17322 created from cgraph_will_be_removed_from_program_if_no_direct_calls
17323 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
17324 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
17325 (bool can_remove_if_no_direct_calls_p (void)):
17326 created from cgraph_can_remove_if_no_direct_calls_p
17327 (inline bool has_gimple_body_p (void)):
17328 created from cgraph_function_with_gimple_body_p
17329 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
17330 (static void dump_cgraph (FILE *f)): created from dump_cgraph
17331 (static inline void debug_cgraph (void)): created from debug_cgraph
17332 (static void record_function_versions (tree decl1, tree decl2)):
17333 created from record_function_versions
17334 (static void delete_function_version (tree decl)):
17335 created from delete_function_version
17336 (static void add_new_function (tree fndecl, bool lowered)):
17337 created from cgraph_add_new_function
17338 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
17339 (static cgraph_node * create (tree decl)): created from cgraph_create_node
17340 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
17341 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
17342 (static cgraph_node *get_for_asmname (tree asmname)):
17343 created from cgraph_node_for_asm
17344 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
17345 created from cgraph_same_body_alias
17346 (static bool used_from_object_file_p_worker (cgraph_node *node,
17347 void *): new function
17348 (static bool non_local_p (cgraph_node *node, void *)):
17349 created from cgraph_non_local_node_p_1
17350 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
17351 created from verify_cgraph
17352 (static bool make_local (cgraph_node *node, void *)):
17353 created from cgraph_make_node_local
17354 (static cgraph_node *create_alias (tree alias, tree target)):
17355 created from cgraph_create_function_alias
17356 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
17357 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
17358 created from cgraph_create_edge_1
17359 * cgraph.h (varpool_node):
17360 (void remove (void)): created from varpool_remove_node
17361 (void dump (FILE *f)): created from dump_varpool_node
17362
17363 2014-07-24 Richard Biener <rguenther@suse.de>
17364
17365 PR ipa/61823
17366 * tree-ssa-structalias.c (create_variable_info_for_1):
17367 Use varpool_get_constructor.
17368 (create_variable_info_for): Likewise.
17369
17370 2014-07-24 Jiong Wang <jiong.wang@arm.com>
17371
17372 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
17373 subtract outgoing area size when restoring stack_pointer_rtx.
17374
17375 2014-07-24 Nick Clifton <nickc@redhat.com>
17376
17377 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
17378 that operations are taking place in parallel.
17379 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
17380
17381 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
17382
17383 * omp-low.c (extract_omp_for_data): Add missing break statement.
17384
17385 2014-07-24 Richard Biener <rguenther@suse.de>
17386
17387 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
17388 * tree-inline.c (estimate_move_cost): Add speed_p parameter
17389 and adjust MOVE_RATIO query accordingly.
17390 (estimate_num_insns): Adjust callers.
17391 * ipa-prop.c (ipa_populate_param_decls): Likewise.
17392 * ipa-cp.c (gather_context_independent_values,
17393 estimate_local_effects): Likewise.
17394 * ipa-split.c (consider_split): Likewise.
17395
17396 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
17397
17398 * config/i386/driver-i386.c: Remove names of unused arguments and
17399 unnecessary unused attributes.
17400 * config/i386/host-mingw32.c: Likewise.
17401 * config/i386/i386.c: Likewise.
17402 * config/i386/winnt-stubs.c: Likewise.
17403 * config/i386/winnt.c: Likewise.
17404
17405 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17406
17407 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
17408 (aarch64_gen_loadwb_pair): New helper function.
17409 (aarch64_expand_epilogue): Simplify code using new helper functions.
17410 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
17411
17412 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17413
17414 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
17415 (aarch64_gen_storewb_pair): New helper function.
17416 (aarch64_expand_prologue): Simplify code using new helper functions.
17417 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
17418
17419 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17420
17421 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
17422 Rename to aarch64_save_callee_saves, remove restore code.
17423 (aarch64_restore_callee_saves): New function.
17424
17425 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17426
17427 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
17428 (aarch64_save_callee_saves): New function to handle reg save
17429 for both core and vectore regs.
17430
17431 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17432
17433 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
17434 (aarch64_gen_store_pair): New helper function.
17435 (aarch64_save_or_restore_callee_save_registers)
17436 (aarch64_save_or_restore_fprs): Use new helper functions.
17437
17438 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17439
17440 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
17441 (aarch64_save_or_restore_callee_save_registers)
17442 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
17443
17444 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17445
17446 * config/aarch64/aarch64.c
17447 (aarch64_save_or_restore_callee_save_registers)
17448 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
17449
17450 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17451
17452 * config/aarch64/aarch64.c
17453 (aarch64_save_or_restore_callee_save_registers)
17454 (aarch64_save_or_restore_fprs): Remove 'increment'.
17455
17456 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17457
17458 * config/aarch64/aarch64.c
17459 (aarch64_save_or_restore_callee_save_registers)
17460 (aarch64_save_or_restore_fprs): Use register offset in
17461 cfun->machine->frame.reg_offset.
17462
17463 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17464
17465 * config/aarch64/aarch64.c
17466 (aarch64_save_or_restore_callee_save_registers)
17467 (aarch64_save_or_restore_fprs): Remove base_rtx.
17468
17469 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17470
17471 * config/aarch64/aarch64.c
17472 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
17473 to 'start_offset'. Remove local variable 'start_offset'.
17474
17475 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17476
17477 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
17478 type to HOST_WIDE_INT.
17479
17480 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17481
17482 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17483 (aarch64_save_or_restore_fprs)
17484 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
17485
17486 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17487
17488 * config/arm/t-rtems-eabi: Add
17489 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
17490 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
17491 mbig-endian/mthumb/march=armv7-r, and
17492 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
17493 multilibs.
17494
17495 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
17496 Chris Johns <chrisj@rtems.org>
17497 Joel Sherrill <joel.sherrill@oarcorp.com>
17498
17499 * config.gcc: Add nios2-*-rtems*.
17500 * config/nios2/rtems.h: New file.
17501 * gcc/config/nios2/t-rtems: New file.
17502
17503 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
17504
17505 PR target/61396
17506 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
17507 constant numbers, not general constants.
17508 (rs6000_expand_vector_init): Ditto.
17509
17510 2014-07-23 Nathan Sidwell <nathan@acm.org>
17511
17512 * gcov-tool.c (gcov_list): Declare here.
17513 (set_gcov_list): Remove.
17514 (gcov_output_files): Set gcov_list directly.
17515
17516 2014-07-23 Host Schirmeier <horst@schirmeier.com>
17517
17518 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
17519
17520 2014-07-23 Jiong Wang <jiong.wang@arm.com>
17521
17522 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
17523 callee-saved registers are available for padding purpose
17524 and r3 is not mandatory, then prefer use those callee-saved
17525 instead of r3.
17526
17527 2014-07-23 Richard Biener <rguenther@suse.de>
17528
17529 * params.def (PARAM_MAX_COMBINE_INSNS): New.
17530 * combine.c: Include statistics.h and params.h.
17531 (combine_instructions): Guard three and four insn combines
17532 with max-combine-insns value. Record statistics for combines
17533 performed.
17534 * doc/invoke.texi (max-combine-insns): Document new param.
17535
17536 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17537
17538 * graphite-isl-ast-to-gimple.c:
17539 (translate_isl_ast_node_block): New function.
17540 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
17541
17542 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
17543 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
17544
17545 2014-07-23 Roman Gareev <gareevroman@gmail.com>
17546
17547 * graphite-isl-ast-to-gimple.c:
17548 (get_max_schedule_dimensions): New function.
17549 (extend_schedule): Likewise.
17550 (generate_isl_schedule): Add calling of extend_schedule and
17551 get_max_schedule_dimensions.
17552
17553 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17554
17555 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
17556 (case UNSPEC): Handle UNSPEC_RBIT.
17557
17558 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17559
17560 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
17561 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
17562
17563 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17564
17565 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
17566
17567 2014-07-22 Roman Gareev <gareevroman@gmail.com>
17568
17569 * graphite-isl-ast-to-gimple.c:
17570 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
17571 (ivs_params_clear):
17572 (build_iv_mapping): New function.
17573 (translate_isl_ast_node_user): Likewise.
17574 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
17575
17576 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
17577 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
17578 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
17579
17580 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17581
17582 PR target/55701
17583 * config/arm/arm.md (setmem): New pattern.
17584 * config/arm/arm-protos.h (struct tune_params): New fields.
17585 (arm_gen_setmem): New prototype.
17586 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
17587 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
17588 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
17589 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
17590 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
17591 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
17592 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
17593 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
17594 (arm_const_inline_cost): New function.
17595 (arm_block_set_max_insns): New function.
17596 (arm_block_set_non_vect_profit_p): New function.
17597 (arm_block_set_vect_profit_p): New function.
17598 (arm_block_set_unaligned_vect): New function.
17599 (arm_block_set_aligned_vect): New function.
17600 (arm_block_set_unaligned_non_vect): New function.
17601 (arm_block_set_aligned_non_vect): New function.
17602 (arm_block_set_vect, arm_gen_setmem): New functions.
17603
17604 2014-07-21 Bin Cheng <bin.cheng@arm.com>
17605
17606 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
17607
17608 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
17609
17610 PR target/61855
17611 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
17612 out of #ifdef __OPTIMIZE__.
17613
17614 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17615
17616 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
17617 different trapping status if -fnon-call-exceptions is enabled.
17618
17619 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
17620
17621 * expr.c (store_field): Handle VOIDmode for calls that return values
17622 in multiple locations.
17623
17624 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17625
17626 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
17627 (altivec_vsldoi_<mode>): Likewise.
17628
17629 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17630
17631 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
17632 to the number of characters in the line.
17633
17634 2014-07-20 Roman Gareev <gareevroman@gmail.com>
17635
17636 * graphite-isl-ast-to-gimple.c: Add using of
17637 build_nonstandard_integer_type instead of int128_integer_type_node.
17638
17639 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
17640
17641 * toplev.c (output_stack_usage): Adjust the location of the warning.
17642
17643 2014-07-19 Daniel Cederman <cederman@gaisler.com>
17644
17645 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
17646 (*membar_storeload): Disable for LEON3.
17647
17648 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
17649
17650 PR rtl-optimization/61461
17651 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
17652
17653 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
17654
17655 PR target/61794
17656 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
17657 Fix instruction constraint.
17658 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
17659
17660 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
17661
17662 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
17663
17664 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
17665
17666 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
17667 GNU coding standards.
17668 (nds32_register_move_cost): Likewise.
17669 (nds32_memory_move_cost): Likewise.
17670 (nds32_address_cost): Likewise.
17671
17672 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
17673
17674 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
17675
17676 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
17677
17678 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
17679 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
17680 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
17681 (HAVE_sync_compare_and_swapqi): Define.
17682 (HAVE_sync_compare_and_swaphi): Likewise.
17683 (HAVE_sync_compare_and_swapsi): Likewise.
17684
17685 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
17686
17687 * config/mips/p5600.md: Add missing cpu tests.
17688
17689 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17690
17691 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
17692 (vmla_f64): Likewise.
17693 (vfms_f64): Likewise.
17694 (vmls_f64): Likewise.
17695
17696 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17697
17698 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
17699 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
17700
17701 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17702
17703 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
17704 (vmlal_high_lane_s32): Likewise.
17705 (vmlal_high_lane_u16): Likewise.
17706 (vmlal_high_lane_u32): Likewise.
17707 (vmlsl_high_lane_s16): Likewise.
17708 (vmlsl_high_lane_s32): Likewise.
17709 (vmlsl_high_lane_u16): Likewise.
17710 (vmlsl_high_lane_u32): Likewise.
17711
17712 2014-07-17 Terry Guo <terry.guo@arm.com>
17713
17714 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
17715 (alus_reg): Renamed to alus_sreg.
17716 * config/arm/arm-fixed.md: Change type of non-dsp instructions
17717 from alu_reg to alu_sreg. Change type of dsp instructions from
17718 alu_reg to alu_dsp_reg.
17719 * config/arm/thumb1.md: Likewise.
17720 * config/arm/thumb2.md: Likewise.
17721 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
17722 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
17723 with alu_sreg and alus_sreg.
17724 * config/arm/arm1026ejs.md (alu_op): Likewise.
17725 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
17726 * config/arm/arm926ejs.md (9_alu_op): Likewise.
17727 * config/arm/fa526.md (526_alu_op): Likewise.
17728 * config/arm/fa606te.md (606te_alu_op): Likewise.
17729 * config/arm/fa626te.md (626te_alu_op): Likewise.
17730 * config/arm/fa726te.md (726te_alu_op): Likewise.
17731 * config/arm/fmp626.md (mp626_alu_op): Likewise.
17732 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
17733 alu_sreg, alu_dsp_reg and alus_sreg.
17734 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
17735 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17736 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17737 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
17738 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
17739 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17740 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17741 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17742 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
17743 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
17744 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
17745 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
17746 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
17747 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
17748 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
17749 alus_reg to alus_sreg.
17750
17751 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
17752
17753 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
17754 infinity format.
17755
17756 2014-07-17 Richard Biener <rguenther@suse.de>
17757
17758 PR rtl-optimization/61801
17759 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
17760 don't set reg_pending_barrier if it appears in a debug-insn.
17761
17762 2014-07-16 DJ Delorie <dj@redhat.com>
17763
17764 * config/rx/rx.c (rx_option_override): Fix alignment values.
17765 (rx_align_for_label): Likewise.
17766
17767 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
17768
17769 PR target/61737.
17770 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
17771 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
17772 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
17773 functions.
17774 (cris_print_index, cris_print_operand, cris_constant_index_p)
17775 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
17776 (cris_address_cost): Ditto last CONSTANT_P.
17777 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
17778 callers changed. Yield cris_offsettable_symbol for non-PIC
17779 constant symbolic expressions including labels. Yield cris_unspec
17780 for all unspecs.
17781 (cris_expand_pic_call_address): New parameter MARKERP. Set its
17782 target to pic_offset_table_rtx for calls that will likely go
17783 through PLT, const0_rtx when they can't. All callers changed.
17784 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
17785 symbolic expressions to be PICified. Remove second, redundant,
17786 assert on can_create_pseudo_p returning non-zero. Use
17787 replace_equiv_address_nv, not replace_equiv_address, for final
17788 operand update.
17789 * config/cris/cris.md ("movsi"): Move variable t to pattern
17790 toplevel. Adjust assert for new cris_symbol_type member. Use
17791 CONSTANT_P instead of CONSTANT_ADDRESS_P.
17792 ("*movsi_internal") <case 9>: Make check for valid unspec operands
17793 for lapc stricter.
17794 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
17795 ("call", "call_value"): Use second incoming operand as a marker
17796 for pic-offset-table-register being used.
17797 ("*expanded_call_non_v32", "*expanded_call_v32")
17798 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
17799 second incoming operand to CALL, match cris_call_type_marker.
17800 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
17801 ("*expanded_call_side"): Ditto. Fix typo in comment.
17802 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
17803 CONSTANT_P.
17804 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
17805 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
17806 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
17807 users changed. Add members cris_offsettable_symbol and cris_unspec.
17808 (cris_symbol_type): Rename from cris_pic_symbol_type.
17809 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
17810 just CONSTANT_P.
17811 * config/cris/cris-protos.h (cris_symbol_type_of,
17812 cris_expand_pic_call_address): Adjust prototypes.
17813 (cris_legitimate_constant_p): New prototype.
17814
17815 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
17816 an existing tmake_file. Don't add t-slibgcc and t-linux.
17817
17818 2014-07-17 Jason Merrill <jason@redhat.com>
17819
17820 PR c++/61623
17821 * symtab.c (symtab_remove_from_same_comdat_group): Also
17822 set_comdat_group to NULL_TREE.
17823 (verify_symtab): Fix diagnostic.
17824
17825 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
17826
17827 PR target/61662
17828 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
17829
17830 2014-07-16 Dodji Seketeli <dodji@redhat.com>
17831
17832 Support location tracking for built-in macro tokens
17833 * input.h (is_location_from_builtin_token): New function declaration.
17834 * input.c (is_location_from_builtin_token): New function definition.
17835 * toplev.c (general_init): Tell libcpp what the pre-defined
17836 spelling location for built-in tokens is.
17837
17838 2014-07-16 Jakub Jelinek <jakub@redhat.com>
17839
17840 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
17841 on the FUNCTION_DECL.
17842
17843 2014-07-16 Richard Biener <rguenther@suse.de>
17844
17845 PR other/61782
17846 * doc/extend.texi (always_inline): Clarify.
17847
17848 2014-07-15 Eric Christopher <echristo@gmail.com>
17849
17850 * doc/invoke.texi (Link Options): Document -z option.
17851
17852 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
17853
17854 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
17855 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17856
17857 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
17858
17859 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
17860
17861 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
17862
17863 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
17864 varpool_assemble_decl.
17865 * varpool.c (varpool_assemble_decl): Assert that node->definition is
17866 true.
17867
17868 2014-07-15 Michael Matz <matz@suse.de>
17869
17870 PR rtl-optimization/61772
17871 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
17872
17873 2014-07-15 Richard Biener <rguenther@suse.de>
17874
17875 * opts.c (default_options_table): Disable bit-ccp at -Og.
17876
17877 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
17878
17879 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
17880
17881 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
17882
17883 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
17884 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
17885 call langhook for unknown declaration.
17886 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
17887 * tree.h (DECL_ARGUMENTS): Update.
17888 * print-tree.c (print_node): Update.
17889 * tree-core.h (tree_decl_non_common): Remove arguments.
17890 (tree_function_decl): Add arguments.
17891
17892 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
17893
17894 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
17895
17896 2014-07-14 Richard Biener <rguenther@suse.de>
17897
17898 PR tree-optimization/61779
17899 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
17900 simplifying a condition.
17901
17902 2014-07-14 Richard Biener <rguenther@suse.de>
17903
17904 * builtins.c (c_strlen): Make only_value == 2 really only
17905 affect warning generation.
17906
17907 2014-07-14 Richard Biener <rguenther@suse.de>
17908
17909 PR tree-optimization/61757
17910 PR tree-optimization/61783
17911 PR tree-optimization/61787
17912 * tree-ssa-dom.c (record_equality): Revert canonicalization
17913 change and add comment.
17914 (propagate_rhs_into_lhs): Revert previous fix, removing
17915 loop depth restriction again.
17916
17917 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17918
17919 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
17920 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
17921 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
17922 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
17923 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
17924 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
17925 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
17926
17927 2014-07-14 Richard Biener <rguenther@suse.de>
17928
17929 * cgraph.h (decl_in_symtab_p): Make inline.
17930
17931 2014-07-14 Jakub Jelinek <jakub@redhat.com>
17932
17933 PR middle-end/61294
17934 * doc/invoke.texi (-Wmemset-transposed-args): Document.
17935
17936 PR target/61656
17937 * config/i386/i386.c (classify_argument): Don't merge classes above
17938 number of words.
17939
17940 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
17941
17942 * cgraph.h (symtab_node): Add nonzero_address.
17943 (decl_in_symtab_p): Break out from ...
17944 (symtab_get_node): ... here.
17945 * fold-const.c: Include cgraph.h
17946 (tree_single_nonzero_warnv_p): Use symtab to determine
17947 if symbol is non-zero.
17948 * symtab.c (symtab_node::nonzero_address): New method.
17949
17950 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17951
17952 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
17953 forgotten in previous commit.
17954
17955 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17956
17957 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
17958 on builtin types.
17959 * ipa-devirt.c: Include stor-layout.h and intl.h
17960 (odr_subtypes_equivalent_p): New function.
17961 (warn_odr): New function.
17962 (warn_type_mismatch): New function.
17963 (odr_types_equivalent_p): New function.
17964 (add_type_duplicate): Use it.
17965 * common.opt (Wodr): New flag.
17966 * doc/invoke.texi (Wodr): Document new warning.
17967
17968 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
17969
17970 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
17971 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
17972 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
17973 (varpool_get_constructor): Push CTORS_IN timevar.
17974 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
17975
17976 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
17977
17978 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
17979 Remove VOID_FTYPE_PUSHORT.
17980 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
17981 Change code to USHORT_FTYPE_VOID.
17982 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
17983 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
17984 (ix86_atomic_assign_expand_fenv): Update for
17985 __builtin_ia32_fnstsw changes.
17986 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
17987 (fnstsw): Change operand 0 to nonimmediate operand.
17988
17989 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
17990
17991 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
17992 (varpool_get_constructor): New function.
17993 (varpool_ctor_useable_for_folding_p): Break out from ...
17994 (ctor_for_folding): ... here; use varpool_get_constructor.
17995 (varpool_assemble_decl): Likewise.
17996 * lto-streamer.h (struct output_block): Turn cgraph_node
17997 to symbol filed.
17998 (lto_input_variable_constructor): Declare.
17999 * ipa-visibility.c (function_and_variable_visibility): Use
18000 varpool_get_constructor.
18001 * cgraph.h (varpool_get_constructor): Declare.
18002 (varpool_ctor_useable_for_folding_p): New function.
18003 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18004 parameter; return error_mark_node for non-trivial constructors.
18005 (lto_write_tree_1, DFS_write_tree): Update use of
18006 get_symbol_initial_value.
18007 (output_function): Update initialization of symbol.
18008 (output_constructor): New function.
18009 (copy_function): Rename to ..
18010 (copy_function_or_variable): ... this one; handle vars too.
18011 (lto_output): Output variable sections.
18012 * lto-streamer-in.c (input_constructor): New function.
18013 (lto_read_body): Rename from ...
18014 (lto_read_body_or_constructor): ... this one; handle vars too.
18015 (lto_input_variable_constructor): New function.
18016 * ipa-prop.c (ipa_prop_write_jump_functions,
18017 ipa_prop_write_all_agg_replacement): Update.
18018 * lto-cgraph.c (compute_ltrans_boundary): Use it.
18019 (output_cgraph_opt_summary): Set symbol to NULL.
18020
18021 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18022
18023 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18024 non-polymorphic types.
18025 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18026 * ipa-devirt.c (types_same_for_odr): Do not explode when one
18027 of types is not polymorphic.
18028
18029 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
18030
18031 * lra-constraints.c (remove_inheritance_pseudos): Process
18032 destination pseudo too.
18033
18034 2014-07-11 Rong Xu <xur@google.com>
18035
18036 * gcov-tool.c (gcov_output_files): Fix build error introduced in
18037 commit r212448.
18038
18039 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18040
18041 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18042 * config/avr/avr-devices.c (AVR_MCU): Same.
18043 (avr_mcu_types): add text start value to end of device list.
18044 * config/avr/avr-mcus.def: Add text section start for all devices.
18045 (ata5782): Add new avr5 device.
18046 (ata5831): Same.
18047 * config/avr/avr-tables.opt: Regenerate.
18048 * config/avr/avr.h: Add declaration for text section start handler.
18049 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18050 SPEC functions.
18051 (LINK_SPEC): Include text section start handler to linker spec.
18052 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18053 pass -Ttext option to linker if the text section start for the device
18054 is not zero.
18055 * config/avr/t-multilib: Regenerate.
18056 * doc/avr-mmcu.texi: Regenerate.
18057
18058 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
18059
18060 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18061 * config/rs6000/aix52.h (LINK_SPEC): Same.
18062 * config/rs6000/aix53.h (LINK_SPEC): Same.
18063 * config/rs6000/aix61.h (LINK_SPEC): Same.
18064 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18065
18066 2014-07-11 Roman Gareev <gareevroman@gmail.com>
18067
18068 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18069 (graphite_verify): New function.
18070 (ivs_params_clear): New function.
18071 (gcc_expression_from_isl_ast_expr_id): New function.
18072 (gcc_expression_from_isl_expr_int): New function.
18073 (binary_op_to_tree): New function.
18074 (ternary_op_to_tree): New function.
18075 (unary_op_to_tree): New function.
18076 (nary_op_to_tree): New function.
18077 (gcc_expression_from_isl_expr_op): New function.
18078 (gcc_expression_from_isl_expression): New function.
18079 (graphite_create_new_loop): New function.
18080 (translate_isl_ast_for_loop): New function.
18081 (get_upper_bound): New function.
18082 (graphite_create_new_loop_guard): New function.
18083 (translate_isl_ast_node_for): New function.
18084 (translate_isl_ast): New function.
18085 (add_parameters_to_ivs_params): New function.
18086 (scop_to_isl_ast): New parameter ip.
18087 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18088
18089 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18090
18091 * config/xtensa/predicates.md (call expander): Update for
18092 DECL_SECTION_NAME being string.
18093
18094 2014-07-11 Richard Biener <rguenther@suse.de>
18095
18096 PR middle-end/61473
18097 * builtins.c (fold_builtin_memory_op): Inline memory moves that
18098 can be implemented with a single load followed by a single store.
18099 (c_strlen): Only warn when only_value is not 2.
18100
18101 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
18102
18103 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
18104
18105 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
18106
18107 PR target/61561
18108 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
18109 (*movhi_bytes): Likewise.
18110 (*arm_movqi_insn): Likewise.
18111
18112 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
18113
18114 PR target/56858
18115 * config/alpha/alpha.c: Include tree-pass.h, context.h
18116 and pass_manager.h.
18117 (pass_data_handle_trap_shadows): New pass.
18118 (pass_handle_trap_shadows::gate): New pass gate function.
18119 (make_pass_handle_trap_shadows): New function.
18120 (rest_of_handle_trap_shadows): Ditto.
18121
18122 (alpha_align_insns_1): Rename from alpha_align_insns.
18123 (pass_data_align_insns): New pass.
18124 (pass_align_insns::gate): New pass gate function.
18125 (make_pass_aling_insns): New function.
18126 (rest_of_align_insns): Ditto.
18127 (alpha_align_insns): Ditto.
18128
18129 (alpha_option_override): Declare handle_trap_shadows info
18130 and align_insns_info. Register handle_trap_shadows and align_insns
18131 passes here.
18132 (alpha_reorg): Do not call alpha_trap_shadows and
18133 alpha_align_insn from here.
18134
18135 (alpha_pad_function_end): Do not skip BARRIERs.
18136
18137 2014-07-10 Rong Xu <xur@google.com>
18138
18139 Add gcov-tool: an offline gcda profile processing tool support.
18140 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
18141 (gcov_is_error): Ditto.
18142 (gcov_read_string): Ditto.
18143 (gcov_read_sync): Ditto.
18144 * gcov-io.h: Move counter defines to gcov-counter.def.
18145 * gcov-dump.c (tag_counters): Use gcov-counter.def.
18146 * coverage.c: Ditto.
18147 * gcov-tool.c: Offline gcda profile processing tool.
18148 (unlink_gcda_file): Remove one gcda file.
18149 (unlink_profile_dir): Remove gcda files from the profile path.
18150 (gcov_output_files): Output gcda files to an output dir.
18151 (profile_merge): Merge two profiles in directory.
18152 (print_merge_usage_message): Print merge usage.
18153 (merge_usage): Print merge usage and exit.
18154 (do_merge): Driver for profile merge sub-command.
18155 (profile_rewrite): Rewrite profile.
18156 (print_rewrite_usage_message): Print rewrite usage.
18157 (rewrite_usage): Print rewrite usage and exit.
18158 (do_rewrite): Driver for profile rewrite sub-command.
18159 (print_usage): Print gcov-info usage and exit.
18160 (print_version): Print gcov-info version.
18161 (process_args): Process arguments.
18162 (main): Main routine for gcov-tool.
18163 * Makefile.in: Build and install gcov-tool.
18164 * gcov-counter.def: New file split from gcov-io.h.
18165 * doc/gcc.texi: Include gcov-tool.texi.
18166 * doc/gcov-tool.texi: Document for gcov-tool.
18167
18168 2014-07-10 Richard Biener <rguenther@suse.de>
18169
18170 PR tree-optimization/61757
18171 * tree-ssa-dom.c (loop_depth_of_name): Restore.
18172 (propagate_rhs_into_lhs): Revert part of last change.
18173
18174 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
18175
18176 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
18177 FUNCTION_DECLs.
18178
18179 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
18180
18181 PR middle-end/53590
18182 * function.c (allocate_struct_function): Revert r188667 change.
18183
18184 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
18185
18186 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
18187
18188 * doc/install.texi: Remove links to defunct package providers for
18189 Solaris.
18190
18191 2014-07-09 Tom de Vries <tom@codesourcery.com>
18192
18193 * final.c (get_call_fndecl): Declare.
18194 (self_recursive_call_p): New function.
18195 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
18196
18197 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18198
18199 * ipa-devirt.c (record_node): Walk through aliases.
18200
18201 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18202
18203 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
18204
18205 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18206
18207 Revert:
18208 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
18209
18210 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18211
18212 * ipa-visibility.c (function_and_variable_visibility): Remove
18213 temporary hack disabling local aliases on AIX.
18214
18215 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18216
18217 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
18218 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
18219
18220 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18221
18222 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
18223 * rs6000/rs6000.c: Inline output of .set instruction.
18224 (declare_alias_data): New struct.
18225 (rs6000_declare_alias): New function.
18226 (rs6000_xcoff_declare_function_name): Use it.
18227 (rs6000_xcoff_declare_object_name): New function.
18228 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
18229 (ASM_OUTPUT_DEF): Turn to empty definition.
18230
18231 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18232
18233 PR bootstrap/61679
18234 * hash-table.h: use hash_table::value_type instead of
18235 Descriptor::value_type in the return types of several methods.
18236
18237 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18238
18239 * tree-pass.h (pass_data): Remove has_execute member.
18240 * passes.c (execute_one_pass): Don't check pass->has_execute.
18241 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
18242 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
18243 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
18244 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
18245 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
18246 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
18247 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
18248 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
18249 gimple-low.c, gimple-ssa-isolate-paths.c,
18250 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
18251 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
18252 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
18253 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
18254 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
18255 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
18256 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
18257 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
18258 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
18259 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
18260 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
18261 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
18262 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
18263 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
18264 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
18265 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
18266 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
18267 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
18268 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
18269 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
18270 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
18271 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
18272 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
18273 web.c: Remove initializer for pass_data::has_execute.
18274
18275 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
18276
18277 * graphite-htab.h: Use hash_map instead of hash_table.
18278 * graphite-clast-to-gimple.c: Adjust.
18279 * passes.c: Use hash_map instead of hash_table.
18280 * sese.c: Likewise.
18281 * sese.h: Remove now unused code.
18282
18283 2014-07-08 Sriraman Tallam <tmsriram@google.com>
18284
18285 PR target/61599
18286 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
18287 than zero.
18288
18289 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18290
18291 PR rtl-optimization/61673
18292 * combine.c (simplify_comparison): Test just mode's sign bit
18293 in tmode rather than the sign bit and any bits above it.
18294
18295 2014-07-08 Roman Gareev <gareevroman@gmail.com>
18296
18297 * graphite-isl-ast-to-gimple.c (generate_isl_context):
18298 Add __isl_give to the declaration.
18299 (generate_isl_schedule): Likewise.
18300 (scop_to_isl_ast): Likewise.
18301
18302 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18303
18304 * config/arm/arm.c (cortexa5_extra_costs): New table.
18305 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
18306
18307 2014-07-08 Jakub Jelinek <jakub@redhat.com>
18308
18309 PR tree-optimization/61725
18310 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
18311 range, use range_includes_zerop_p instead of integer_zerop on
18312 vr0->min, only use log2 of max if min is not negative.
18313
18314 2014-07-08 Richard Biener <rguenther@suse.de>
18315
18316 * tree-ssa-dom.h (loop_depth_of_name): Remove.
18317 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
18318 restriction on loop depth difference.
18319 (record_equality): Likewise.
18320 (propagate_rhs_into_lhs): Likewise. Simplify condition.
18321 (loop_depth_of_name): Remove.
18322 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
18323 restriction on loop depth difference.
18324 (init_copy_prop): Likewise.
18325
18326 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
18327
18328 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
18329 parameter.
18330 (walk_aliased_vdefs): Likewise.
18331 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
18332 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
18333 (detect_type_change_from_memory_writes): Check if entry was reached.
18334
18335 2014-07-08 Richard Biener <rguenther@suse.de>
18336
18337 PR tree-optimization/61681
18338 * tree-ssa-structalias.c (find_what_var_points_to): Expand
18339 NONLOCAL inside ESCAPED.
18340
18341 2014-07-08 Richard Biener <rguenther@suse.de>
18342
18343 PR tree-optimization/61680
18344 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18345 Handle properly all read-write dependences with group accesses.
18346
18347 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
18348
18349 PR tree-optimization/61576
18350 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
18351 block containing reduction statement is predecessor of phi basi block.
18352
18353 2014-07-08 Marek Polacek <polacek@redhat.com>
18354
18355 PR c/60226
18356 * fold-const.c (round_up_loc): Change the parameter type.
18357 Remove assert.
18358 * fold-const.h (round_up_loc): Adjust declaration.
18359 * stor-layout.c (finalize_record_size): Check for too large types.
18360
18361 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
18362
18363 * symtab.c: Include calls.h.
18364 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
18365
18366 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
18367
18368 * config/rs6000/rs6000.c (output_vec_const_move): Handle
18369 little-endian code generation.
18370 * config/rs6000/spe.md (spe_evmergehi): Rename to...
18371 (vec_perm00_v2si): ... this. Handle little-endian code generation.
18372 (spe_evmergehilo): Rename to...
18373 (vec_perm01_v2si): ... this. Handle little-endian code generation.
18374 (spe_evmergelo): Rename to...
18375 (vec_perm11_v2si): ... this. Handle little-endian code generation.
18376 (spe_evmergelohi): Rename to...
18377 (vec_perm10_v2si): ... this. Handle little-endian code generation.
18378 (spe_evmergehi, spe_evmergehilo): New expanders.
18379 (spe_evmergelo, spe_evmergelohi): Likewise.
18380 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
18381 (*frob_tf_ti): Likewise.
18382 (*frob_<mode>_di_2): Likewise.
18383 (*frob_tf_di_8_2): Likewise.
18384 (*frob_di_<mode>): Likewise.
18385 (*frob_ti_tf): Likewise.
18386 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
18387 (*frob_ti_<mode>_8_2): Likewise.
18388 (*frob_ti_tf_2): Likewise.
18389 (mov_si<mode>_e500_subreg0): Rename to...
18390 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
18391 endianness only.
18392 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
18393 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
18394 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
18395 the big endianness only.
18396 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
18397 (*mov_si<mode>_e500_subreg0_2): Rename to...
18398 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
18399 big big endianness only.
18400 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
18401 (*mov_si<mode>_e500_subreg4): Rename to...
18402 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
18403 endianness only.
18404 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
18405 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
18406 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
18407 the big endianness only.
18408 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
18409 pattern.
18410 (*mov_si<mode>_e500_subreg4_2): Rename to...
18411 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
18412 endianness only.
18413 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
18414 (*mov_sitf_e500_subreg8): Rename to...
18415 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
18416 endianness only.
18417 (*mov_sitf_e500_subreg8_le): New instruction pattern.
18418 (*mov_sitf_e500_subreg8_2): Rename to...
18419 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
18420 endianness only.
18421 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
18422 (*mov_sitf_e500_subreg12): Rename to...
18423 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
18424 endianness only.
18425 (*mov_sitf_e500_subreg12_le): New instruction pattern.
18426 (*mov_sitf_e500_subreg12_2): Rename to...
18427 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
18428 endianness only.
18429 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
18430
18431 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
18432
18433 * asan.c (instrument_strlen_call): Do not instrument first byte
18434 in strlen if already instrumented.
18435
18436 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18437
18438 * config/arm/arm.opt (mwords-little-endian): Delete.
18439 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
18440 of TARGET_LITTLE_WORDS.
18441 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
18442 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
18443 warning.
18444 * doc/invoke.texi: Remove references to -mwords-little-endian.
18445
18446 2014-07-07 Jakub Jelinek <jakub@redhat.com>
18447
18448 * expmed.c (struct init_expmed_rtl): Change all fields but
18449 pow2 and cint from struct rtx_def to rtx.
18450 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
18451 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
18452 at the end again.
18453
18454 2014-07-06 Marek Polacek <polacek@redhat.com>
18455
18456 PR c/6940
18457 * doc/invoke.texi: Document -Wsizeof-array-argument.
18458
18459 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
18460
18461 * wide-int.h (wide_int_storage): Change declaration from struct
18462 to class.
18463
18464 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
18465
18466 * cgraph.c (cgraph_create_indirect_edge): Update call of
18467 get_polymorphic_call_info.
18468 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
18469 (possible_polymorphic_call_targets): Add parameter call.
18470 (decl_maybe_in_construction_p): New predicate.
18471 (get_polymorphic_call_info): Add parameter call;
18472 use decl_maybe_in_construction_p.
18473 * gimple-fold.c (fold_gimple_assign): Update use of
18474 possible_polymorphic_call_targets.
18475 (gimple_fold_call): Likewise.
18476 * ipa-prop.c: Inlcude calls.h
18477 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
18478 (param_type_may_change_p): New predicate.
18479 (detect_type_change_from_memory_writes): Break out from ...
18480 (detect_type_change): ... this one; use param_type_may_change_p.
18481 (detect_type_change_ssa): Use param_type_may_change_p.
18482 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
18483
18484 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
18485
18486 PR target/49423
18487 * config/arm/arm-protos.h (arm_legitimate_address_p,
18488 arm_is_constant_pool_ref): Add prototypes.
18489 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
18490 (arm_is_constant_pool_ref) New function.
18491 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
18492 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
18493 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
18494 operand. Remove pool_range and neg_pool_range attributes.
18495 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
18496 pool_range and neg_pool_range attributes.
18497 * config/arm/constraints.md (Uh): New constraint.
18498 (Uq): Don't allow constant pool references.
18499
18500 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
18501
18502 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
18503 (move_lo_quad_internal_be_<mode>): Likewise.
18504 (move_lo_quad_<mode>): Convert to define_expand.
18505 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
18506 (aarch64_simd_move_hi_quad_be_<mode>): New.
18507 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
18508 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
18509 (aarch64_combinez_be<mode>): New.
18510 (aarch64_combine<mode>): Convert to define_expand.
18511 (aarch64_combine_internal<mode>): New.
18512 (aarch64_simd_combine<mode>): Remove bogus RTL description.
18513
18514 2014-07-04 Tom de Vries <tom@codesourcery.com>
18515
18516 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
18517 combination of earlyclobber and read/write modifiers.
18518
18519 2014-07-04 Tom de Vries <tom@codesourcery.com>
18520
18521 * config/aarch64/aarch64-simd.md
18522 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
18523
18524 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
18525
18526 PR target/61714
18527 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
18528
18529 2014-07-04 Jakub Jelinek <jakub@redhat.com>
18530
18531 PR middle-end/61654
18532 * cgraphunit.c (expand_thunk): Call free_dominance_info.
18533
18534 PR tree-optimization/61684
18535 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
18536 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
18537
18538 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18539 Kito Cheng <kito@0xlab.org>
18540 Monk Chiang <sh.chiang04@gmail.com>
18541
18542 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
18543 (nds32_symbol_load_store_p): Move to ...
18544 (nds32_fp_as_gp_check_available): Move to ...
18545 * config/nds32/nds32-fp-as-gp.c: ... here.
18546 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
18547 extern declaration.
18548
18549 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18550 Kito Cheng <kito@0xlab.org>
18551 Monk Chiang <sh.chiang04@gmail.com>
18552
18553 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
18554 (nds32_expand_store_multiple): Move to ...
18555 (nds32_expand_movmemqi): Move to ...
18556 * config/nds32/nds32-memory-manipulation.c: ... here.
18557
18558 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18559 Kito Cheng <kito@0xlab.org>
18560 Monk Chiang <sh.chiang04@gmail.com>
18561
18562 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
18563 (nds32_output_casesi_pc_relative): Move to ...
18564 (nds32_output_casesi): Move to ...
18565 (nds32_mem_format): Move to ...
18566 (nds32_output_16bit_store): Move to ...
18567 (nds32_output_16bit_load): Move to ...
18568 (nds32_output_32bit_store): Move to ...
18569 (nds32_output_32bit_load): Move to ...
18570 (nds32_output_32bit_load_s): Move to ...
18571 (nds32_output_stack_push): Move to ...
18572 (nds32_output_stack_pop): Move to ...
18573 * config/nds32/nds32-md-auxiliary.c: ... here.
18574
18575 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18576 Ling-Hua Tseng <uranus@tinlans.org>
18577
18578 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
18579 the purpose of this file.
18580
18581 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18582 Kito Cheng <kito@0xlab.org>
18583 Monk Chiang <sh.chiang04@gmail.com>
18584
18585 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
18586 (nds32_address_cost): Move implementation to ...
18587 * config/nds32/nds32-cost.c: ... here.
18588 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
18589 (nds32_address_cost_impl): Declare.
18590
18591 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18592 Kito Cheng <kito@0xlab.org>
18593 Monk Chiang <sh.chiang04@gmail.com>
18594
18595 * config/nds32/nds32.c
18596 (nds32_consecutive_registers_load_store_p): Move to ...
18597 (nds32_valid_multiple_load_store): Move to ...
18598 (nds32_valid_stack_push_pop): Move to ...
18599 (nds32_can_use_bclr_p): Move to ...
18600 (nds32_can_use_bset_p): Move to ...
18601 (nds32_can_use_btgl_p): Move to ...
18602 (nds32_can_use_bitci_p): Move to ...
18603 * config/nds32/nds32-predicates.c: ... here.
18604
18605 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18606 Kito Cheng <kito@0xlab.org>
18607 Monk Chiang <sh.chiang04@gmail.com>
18608
18609 * config/nds32/nds32.c
18610 (nds32_expand_builtin_null_ftype_reg): Move to ...
18611 (nds32_expand_builtin_reg_ftype_imm): Move to ...
18612 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
18613 (nds32_init_builtins): Move implementation to ...
18614 (nds32_expand_builtin): Move implementation to ...
18615 * config/nds32/nds32-intrinsic.c: ... here.
18616 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
18617 (nds32_expand_builtin_impl): Declare.
18618
18619 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18620 Kito Cheng <kito@0xlab.org>
18621 Monk Chiang <sh.chiang04@gmail.com>
18622
18623 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
18624 (nds32_emit_section_tail_template): Move to ...
18625 (nds32_emit_isr_jmptbl_section): Move to ...
18626 (nds32_emit_isr_vector_section): Move to ...
18627 (nds32_emit_isr_reset_conten): Move to ...
18628 (nds32_check_isr_attrs_conflict): Move to ...
18629 (nds32_construct_isr_vectors_information): Move to ...
18630 (nds32_asm_file_start): Move implementation to ...
18631 (nds32_asm_file_end): Move implementation to ...
18632 * config/nds32/nds32-isr.c: ... here.
18633 * config/nds32/nds32-protos.h
18634 (nds32_check_isr_attrs_conflict): Declare.
18635 (nds32_construct_isr_vectors_information): Declare.
18636 (nds32_asm_file_start_for_isr): Declare.
18637 (nds32_asm_file_end_for_isr): Declare.
18638
18639 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
18640 Kito Cheng <kito@0xlab.org>
18641 Monk Chiang <sh.chiang04@gmail.com>
18642
18643 * config.gcc (nds32*): Add new modules to extra_objs.
18644 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
18645 (nds32be-*-*): Likewise.
18646 * config/nds32/nds32-cost.c: New file.
18647 * config/nds32/nds32-fp-as-gp.c: New file.
18648 * config/nds32/nds32-intrinsic.c: New file.
18649 * config/nds32/nds32-isr.c: New file.
18650 * config/nds32/nds32-md-auxiliary.c: New file.
18651 * config/nds32/nds32-memory-manipulation.c: New file.
18652 * config/nds32/nds32-pipelines-auxiliary.c: New file.
18653 * config/nds32/nds32-predicates.c: New file.
18654 * config/nds32/t-nds32: New file.
18655
18656 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18657
18658 PR tree-optimization/61682
18659 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
18660 using cases and when one of the operands is equal to 1.
18661
18662 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
18663
18664 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
18665 ashr<mode>3): Correct mode of operands[2].
18666 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
18667 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
18668 Correct mode of operands[2]. Fix split condition.
18669
18670 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
18671
18672 * arm.md (arch): Add armv6_or_vfpv3.
18673 (arch_enabled): Add test for the above.
18674 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
18675 on VFP9.
18676 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
18677
18678 2014-07-03 Jakub Jelinek <jakub@redhat.com>
18679
18680 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
18681 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
18682 HWI 1 and negate the unsigned value.
18683 * expmed.c (expand_sdiv_pow2): For modes wider than word always
18684 use AND instead of shift.
18685 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
18686
18687 2014-07-03 Marek Polacek <polacek@redhat.com>
18688
18689 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
18690 (-fsanitize=float-divide-by-zero): Move to the table with
18691 -fsanitize=undefined suboptions.
18692 (-fsanitize=float-cast-overflow): Likewise.
18693
18694 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
18695
18696 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
18697 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
18698 endianness.
18699
18700 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18701
18702 * loop-invariant.c (struct invariant): Add a new member: eqno;
18703 (find_identical_invariants): Update eqno;
18704 (create_new_invariant): Init eqno;
18705 (get_inv_cost): Compute comp_cost with eqno;
18706
18707 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
18708
18709 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
18710 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
18711 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
18712 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
18713 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
18714
18715 2014-07-02 Christian Bruel <christian.bruel@st.com>
18716
18717 PR target/29349
18718 PR target/53513
18719 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
18720 (make_preds_opaque): Delete.
18721 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
18722 (commit_mode_sets): New function.
18723 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
18724 Process all modes at once.
18725 * basic-block.h (pre_edge_lcm_avs): Declare.
18726 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
18727 Call clear_aux_for_edges. Fix comments.
18728 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
18729 (pre_edge_rev_lcm): Idem.
18730 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
18731 parameter.
18732 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
18733 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
18734 Idem.
18735 * config/i386/i386.c (x96_emit_mode_set): Idem.
18736 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
18737 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
18738 (fpscr_toggle) Disallow from delay slot.
18739 * target.def (emit_mode_set): Add prev_mode parameter.
18740 * doc/tm.texi: Regenerate.
18741
18742 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18743
18744 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
18745 variable i.
18746
18747 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18748
18749 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
18750 vtable_pointer_value_to_vtable): Constify.
18751 (contains_polymorphic_type_p): Declare.
18752 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
18753 vtable_pointer_value_to_vtable): Constify.
18754 (contains_polymorphic_type_p): New predicate.
18755 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
18756 polymorphic types.
18757 (ipa_set_ancestor_jf): Likewise.
18758 (detect_type_change): Return false in easy cases.
18759 (compute_complex_assign_jump_func): Require type to contain
18760 polymorphic type.
18761 (compute_known_type_jump_func): Likewise.
18762
18763 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
18764
18765 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
18766 Remove.
18767 (type_in_anonymous_namespace_p): Constify argument.
18768 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
18769 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
18770 (main_odr_variant): New function.
18771 (hash_type_name): Make static; update assert; do not ICE on
18772 non-records.
18773 (types_same_for_odr): Bring here from tree.c; simplify and remove
18774 old structural comparing code that doesn't work for templates.
18775 (odr_hasher::equal): Update assert.
18776 (add_type_duplicate): Return true when bases should be computed;
18777 replace incomplete loader by complete; do not output duplicated
18778 warnings; do not ICE on non-records; set odr_violated flag.
18779 (get_odr_type): Be ready to replace incomplete type by complete
18780 one; work on ODR variants instead of main variants; reorder item
18781 in array so bases have still smaller indexes.
18782 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
18783 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
18784
18785 2014-07-01 Cary Coutant <ccoutant@google.com>
18786
18787 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
18788 lookup.
18789 (resolve_addr_in_expr): When replacing the rtx in a location list
18790 entry, get a new address table entry.
18791 (dwarf2out_finish): Call index_location_lists even if there are no
18792 addr_index_table entries yet.
18793
18794 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
18795
18796 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
18797 change for not being obvious.
18798
18799 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
18800
18801 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
18802 unused argument.
18803
18804 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18805
18806 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
18807 (vcagt_f64): Likewise.
18808 (vcale_f64): Likewise.
18809 (vcaled_f64): Likewise.
18810 (vcales_f32): Likewise.
18811 (vcalt_f64): Likewise.
18812 (vcaltd_f64): Likewise.
18813 (vcalts_f32): Likewise.
18814
18815 2014-07-01 Marek Polacek <polacek@redhat.com>
18816
18817 * doc/invoke.texi: Document -Wint-conversion.
18818
18819 2014-07-01 Marek Polacek <polacek@redhat.com>
18820
18821 PR c/58286
18822 * doc/invoke.texi: Document -Wincompatible-pointer-types.
18823
18824 2014-07-01 Martin Liska <mliska@suse.cz>
18825
18826 IPA REF alias refactoring
18827 * cgraph.h (iterate_direct_aliases): New function.
18828 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
18829 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
18830 FOR_EACH_ALIAS added.
18831 (cgraph_for_node_and_aliases): Likewise.
18832 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
18833 * ipa-inline.c (reset_edge_caches): Likewise.
18834 (update_caller_keys): Likewise.
18835 * trans-mem.c (ipa_tm_execute): Likewise.
18836 *varpool.c (varpool_analyze_node): Likewise.
18837 (varpool_for_node_and_aliases): Likewise.
18838 * ipa-ref.h (first_alias): New function.
18839 (last_alias): Likewise.
18840 (has_aliases_p): Likewise.
18841 * ipa-ref.c (ipa_ref::remove_reference): Removal function
18842 is sensitive to IPA_REF_ALIASes.
18843 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
18844 are put at the beginning of the list.
18845 (symtab_node::iterate_direct_aliases): New function.
18846
18847 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18848
18849 Revert:
18850 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18851 type is complete.
18852 (write_ts_type_common_tree_pointers): Do not stream fields not set
18853 for incomplete types; do not stream duplicated fields for variants;
18854 sanity check that variant and type match.
18855 (write_ts_type_non_common_tree_pointers): Likewise.
18856 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18857 TYPE_SIZE whether type is complete.
18858 (lto_input_ts_type_common_tree_pointers): Do same changes as in
18859 write_ts_type_common_tree_pointers
18860 (lto_input_ts_type_non_common_tree_pointers): Likewise.
18861
18862 2014-06-30 Joseph Myers <joseph@codesourcery.com>
18863
18864 * var-tracking.c (add_stores): Return instead of asserting if old
18865 and new values for conditional store are the same.
18866
18867 2014-06-30 Richard Henderson <rth@redhat.com>
18868
18869 PR rtl-opt/61608
18870 PR target/39284
18871 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
18872 the cfg if there were any changes.
18873 * passes.def: Revert move of peephole2 after reorder_blocks;
18874 move duplicate_computed_gotos before peephole2.
18875
18876 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
18877
18878 * except.c (emit_note_eh_region_end): New helper function.
18879 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
18880 emit EH_REGION_END note.
18881 * jump.c (cleanup_barriers): Do not split a call and its
18882 corresponding CALL_ARG_LOCATION note.
18883
18884 2014-06-30 Jeff Law <law@redhat.com>
18885
18886 PR tree-optimization/61607
18887 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
18888 deeper into the SSA_NAME_VALUE chain.
18889
18890 2014-06-30 Marek Polacek <polacek@redhat.com>
18891
18892 * convert.c (convert_to_integer): Don't instrument conversions if the
18893 function has no_sanitize_undefined attribute.
18894 * ubsan.c: Don't run the ubsan pass if the function has
18895 no_sanitize_undefined attribute.
18896
18897 2014-06-30 Jakub Jelinek <jakub@redhat.com>
18898
18899 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
18900 -fsanitize=undefined suboptions.
18901
18902 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
18903
18904 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
18905 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
18906 against bigendian and adjust indices.
18907
18908 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
18909
18910 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
18911
18912 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
18913
18914 PR target/61633
18915 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
18916 Add alternative; make early clobber. Adjust both split patterns
18917 to use operand 0 as the working register.
18918
18919 2014-06-30 Jakub Jelinek <jakub@redhat.com>
18920
18921 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
18922 as ira_object_id_map might be NULL, or 1.
18923
18924 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18925
18926 * loop-invariant.c (get_inv_cost): Handle register class.
18927 (gain_for_invariant): Check the register pressure of the inv
18928 and its overlapped register class, other than all.
18929
18930 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
18931
18932 * doc/invoke.texi (Optimize Options): Fix descriptions of
18933 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
18934
18935 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
18936
18937 * doc/extend.texi (Function Attributes): Update 'naked' attribute
18938 documentation.
18939
18940 2014-06-29 Tobias Grosser <tobias@grosser.es>
18941
18942 PR bootstrap/61650
18943 * graphite-isl-ast-to-gimple.c: Add missing guards.
18944
18945 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18946
18947 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
18948 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
18949 * flag-types.h: Add new enum fgraphite_generator.
18950 * graphite-isl-ast-to-gimple.c: New.
18951 * graphite-isl-ast-to-gimple.h: New.
18952 * graphite.c (graphite_transform_loops): Add choice of Graphite
18953 code generator, which depends on flag_graphite_code_gen.
18954
18955 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18956
18957 * graphite-dependences.c (subtract_commutative_associative_deps):
18958 Add NULL checking of the following variables: must_raw_no_source,
18959 may_raw_no_source, must_war_no_source, may_war_no_source,
18960 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
18961 must_war, may_war, must_waw, may_waw.
18962
18963 2014-06-29 Roman Gareev <gareevroman@gmail.com>
18964
18965 * graphite-clast-to-gimple.c: gloog is renamed to
18966 graphite_regenerate_ast_cloog. gloog_error is renamed to
18967 graphite_regenerate_error.
18968 * graphite-clast-to-gimple.h: The definition of the struct
18969 bb_pbb_def is moved to graphite-htab.h.
18970 Add inclusion of the hash-table.h.
18971 * graphite-htab.h: The declaration of the function gloog is moved
18972 to graphite-clast-to-gimple.h and renamed to
18973 graphite_regenerate_ast_cloog.
18974 * graphite.c (graphite_transform_loops): gloog is renamed
18975 to graphite_regenerate_ast_cloog.
18976
18977 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18978
18979 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
18980 type is complete.
18981 (write_ts_type_common_tree_pointers): Do not stream fields not set
18982 for incomplete types; do not stream duplicated fields for variants;
18983 sanity check that variant and type match.
18984 (write_ts_type_non_common_tree_pointers): Likewise.
18985 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
18986 TYPE_SIZE whether type is complete.
18987 (lto_input_ts_type_common_tree_pointers): Do same changes as in
18988 write_ts_type_common_tree_pointers
18989 (lto_input_ts_type_non_common_tree_pointers): Likewise.
18990
18991 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18992
18993 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
18994
18995 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
18996
18997 * tree-inline.c (remap_type_1): Do not duplicate fields
18998 that are shared in between type and its main variant.
18999
19000 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19001
19002 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19003 of the type.
19004 (ipa_set_ancestor_jf) Likewise.
19005 (check_stmt_for_type_change): Check that we work on main variant.
19006 (detect_type_change): Look into main variant.
19007 (compute_known_type_jump_func): Check that main variant has BINFO.
19008
19009 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19010
19011 * ipa-devirt.c (set_type_binfo): New function.
19012 (add_type_duplicate): Use it.
19013 (get_odr_type): Sanity check that binfos points to main variants.
19014 (get_class_context): Be sure the context's outer_type is main variant.
19015 (contains_type_p): Walk main variant.
19016 (get_polymorphic_call_info_for_decl): Set outer_type to be
19017 main variant.
19018 (get_polymorphic_call_info): Likewise.
19019 (possible_polymorphic_call_targets): Sanity check that we operate
19020 on main variant.
19021
19022 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19023
19024 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19025
19026 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19027
19028 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19029 accidental change due to wide-int branch merge.
19030
19031 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19032
19033 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19034 compressed debug support.
19035 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19036 * configure: Regenerate.
19037 * config.in: Regenerate.
19038 * common.opt (compressed_debug_sections): New enum.
19039 (gz, gz=): New options.
19040 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19041 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19042 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19043 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19044 LINK_COMPRESS_DEBUG_SPEC.
19045 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19046 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19047 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19048 (Debugging Options): Document -gz[=type].
19049
19050 2014-06-27 Martin Jambor <mjambor@suse.cz>
19051
19052 PR ipa/61160
19053 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19054 args_to_skip, use those from node instead. Copy args_to_skip and
19055 combined_args_to_skip from node to the new thunk.
19056 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19057 (cgraph_create_virtual_clone): Moved computation of
19058 combined_args_to_skip...
19059 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19060
19061 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
19062
19063 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19064 redundant diagnostic machinary.
19065
19066 2014-06-27 Richard Biener <rguenther@suse.de>
19067
19068 * tree-ssa-math-opts.c (bswap_replace): Fix
19069 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19070
19071 2014-06-27 Martin Liska <mliska@suse.cz>
19072
19073 * gimple.h (gimple_location_safe): New function introduced.
19074 * cgraphunit.c (walk_polymorphic_call_targets): Usage
19075 of gimple_location_safe replaces gimple_location.
19076 (gimple_fold_call): Likewise.
19077 * ipa-devirt.c (ipa_devirt): Likewise.
19078 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19079 * ipa.c (walk_polymorphic_call_targets): Likewise.
19080 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19081
19082 2014-06-27 Jakub Jelinek <jakub@redhat.com>
19083
19084 PR tree-optimization/57233
19085 PR tree-optimization/61299
19086 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19087 functions.
19088 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
19089 would be lowered to scalar shifts, check if corresponding
19090 shifts and vector BIT_IOR_EXPR are supported and don't lower
19091 or lower just to narrower vector type in that case.
19092 * expmed.c (expand_shift_1): Fix up handling of vector
19093 shifts and rotates.
19094
19095 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
19096
19097 PR target/61586
19098 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
19099
19100 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
19101
19102 * doc/invoke.texi (-fsemantic-interposition): Document.
19103 * common.opt (fsemantic-interposition): New flag.
19104 * varasm.c (decl_replaceable_p): Use it.
19105
19106 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19107
19108 PR target/61542
19109 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
19110 extraction other than index 3.
19111
19112 2014-06-26 Teresa Johnson <tejohnson@google.com>
19113
19114 * doc/invoke.texi: Fix typo.
19115 * dumpfile.c: Add support for documented -fdump-* options
19116 optimized/missed/note/optall.
19117
19118 2014-06-26 Martin Jambor <mjambor@suse.cz>
19119
19120 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
19121 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
19122 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
19123 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
19124 * opts.c (default_options_optimization): Set
19125 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
19126 * doc/invoke.texi (allow-load-data-races)
19127 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
19128 (allow-store-data-races): Document the new default.
19129
19130 2014-06-26 Martin Jambor <mjambor@suse.cz>
19131
19132 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
19133 renamed to ipa_impossible_devirt_target. Fix typo.
19134 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
19135 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
19136 ipa_impossible_devirt_target.
19137
19138 2014-06-26 Richard Biener <rguenther@suse.de>
19139
19140 PR tree-optimization/61607
19141 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
19142 explaining why we restrict copies on loop depth.
19143 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19144 on loop depth.
19145 (record_equivalences_from_phis): Instead add it here.
19146
19147 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
19148
19149 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
19150 (LTO_WRAPPER_OBJS): New variable.
19151 (lto-wrapper$(exeext)): Use it.
19152 * collect2.c: Include "collect-utils.h".
19153 (verbose, debug): Remove variables.
19154 (at_file_supplied): No longer static.
19155 (tool_name): New variable.
19156 (do_wait, fork_execute, maybe_unlink): Don't declare.
19157 (tool_cleanup): No longer static.
19158 (notice): Remove function.
19159 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
19160 fork_execute calls.
19161 (collect_wait, do_wait, collect_execute): Remove functions.
19162 (maybe_unlink): No longer static.
19163 * collect2.h (verbose, debug): Don't declare.
19164 (at_file_supplied): Declare.
19165 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
19166 changed.
19167 (collect_execute): Replace with implementation from collect2, plus a
19168 new arg use_atfile. All callers changed.
19169 (collect_wait): Replace with implementation from collect2.
19170 (maybe_unlink_file): Remove function.
19171 (fork_execute): Replace with implementation from collect2, plus a
19172 new arg use_atfile. All callers changed.
19173 (do_wait): Add call to utils_cleanup to the error path.
19174 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
19175 (tool_cleanup): Adjust declarations.
19176 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
19177 * tlink.c: Include "collect-utils.h".
19178 (tlink_execute): New arg use_atfile. All callers changed.
19179 (tlink_init, tlink_execute): Remove declarations.
19180
19181 * collect-utils.c (save_temps): New variable.
19182 (do_wait): Use it instead of debug. Use fatal_error.
19183 * collect-utils.h (save_temps): Declare.
19184 * collect2.c (verbose): Rename from vflag. All uses changed.
19185 (tool_cleanup): New function, copied from collect_atexit.
19186 (collect_atexit, handler): Just call it.
19187 * collect2.h (verbose): Declaration renamed from vflag.
19188 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
19189 debug.
19190
19191 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
19192 (lto-wrapper$(exeext)): Link with collect-utils.o.
19193 * collect-utils.c: New file.
19194 * collect-utils.h: New file.
19195 * lto-wrapper.c: Include "collect-utils.h".
19196 (args_name): Delete variable.
19197 (tool_name): New variable.
19198 (tool_cleanup): New function.
19199 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
19200 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
19201 (fork_execute): Remove functions.
19202
19203 2014-06-26 Nick Clifton <nickc@redhat.com>
19204
19205 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
19206
19207 * doc/extend.texi (Function Attributes): Fix typo in description
19208 of RX vector attribute.
19209
19210 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
19211
19212 * config.gcc (supported_defaults): Error when passing either
19213 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
19214
19215 2014-06-26 Richard Biener <rguenther@suse.de>
19216
19217 * tree-ssa-dom.c (cprop_operand): Remove restriction on
19218 propagating volatile pointers.
19219
19220 2014-06-26 Richard Biener <rguenther@suse.de>
19221
19222 PR tree-optimization/61607
19223 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
19224 loop if we redirected its latch edge.
19225 (thread_block_1): Do not cancel loops prematurely.
19226
19227 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
19228
19229 * toplev.c (backend_init_target): Move init_emit_regs and
19230 init_regs to...
19231 (backend_init) ... here; skip ira_init_once and backend_init_target.
19232 (target_reinit) ... and here; clear
19233 this_target_rtl->lang_dependent_initialized.
19234 (lang_dependent_init_target): Clear
19235 this_target_rtl->lang_dependent_initialized;
19236 break out rtl initialization to ...
19237 (initialize_rtl): ... here; call also backend_init_target
19238 and ira_init_once.
19239 * toplev.h (initialize_rtl): New function.
19240 * function.c: Include toplev.h
19241 (init_function_start): Call initialize_rtl.
19242 * rtl.h (target_rtl): Add target_specific_initialized,
19243 lang_dependent_initialized.
19244
19245 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
19246 Jakub Jelinek <jakub@redhat.com>
19247
19248 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
19249
19250 2014-06-25 Tom de Vries <tom@codesourcery.com>
19251
19252 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
19253
19254 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
19255
19256 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
19257 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
19258 Issue a strict overflow warning if appropriate.
19259
19260 2014-06-25 Martin Liska <mliska@suse.cz>
19261
19262 IPA REF refactoring
19263 * Makefile.in: Removed header file (ipa-ref-inline.h).
19264 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
19265 called.
19266 (cgraph_speculative_call_info): Likewise.
19267 (cgraph_for_node_thunks_and_aliases): Likewise.
19268 (cgraph_for_node_and_aliases): Likewise.
19269 (verify_cgraph_node): Likewise.
19270 * cgraph.h: Batch of IPA REF functions become member functions of
19271 symtab_node: add_reference, maybe_add_reference, clone_references,
19272 clone_referring, clone_reference, find_reference,
19273 remove_stmt_references, remove_all_references,
19274 remove_all_referring, dump_references, dump_referring,
19275 has_alias_p, iterate_reference, iterate_referring.
19276 * cgraphbuild.c (record_reference): New IPA REF function used.
19277 (record_type_list): Likewise.
19278 (record_eh_tables): Likewise.
19279 (mark_address): Likewise.
19280 (mark_load): Likewise.
19281 (mark_store): Likewise.
19282 (pass_build_cgraph_edges): Likewise.
19283 (rebuild_cgraph_edge): Likewise.
19284 (cgraph_rebuild_references): Likewise.
19285 (pass_remove_cgraph_callee_edges): Likewise.
19286 * cgraphclones.c (cgraph_clone_node): Likewise.
19287 (cgraph_create_virtual_clone): Likewise.
19288 (cgraph_materialize_clone): Likewise.
19289 (cgraph_materialize_all_clones): Likewise.
19290 * cgraphunit.c (cgraph_reset_node): Likewise.
19291 (cgraph_reset_node): Likewise.
19292 (analyze_function): Likewise.
19293 (assemble_thunks_and_aliases): Likewise.
19294 (expand_function): Likewise.
19295 * ipa-comdats.c (propagate_comdat_group): Likewise.
19296 (enqueue_references): Likewise.
19297 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
19298 (create_specialized_node): Likewise.
19299 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
19300 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
19301 * ipa-inline.c (reset_edge_caches): Likewise.
19302 (update_caller_keys): Likewise.
19303 (execute): Likewise.
19304 * ipa-prop.c (remove_described_reference): Likewise.
19305 (propagate_controlled_uses): Likewise.
19306 (ipa_edge_duplication_hook): Likewise.
19307 (ipa_modify_call_arguments): Likewise.
19308 * ipa-pure-const.c (propagate_pure_const): Likewise.
19309 * ipa-ref-inline.h: Header file removed, functions moved
19310 to symtab_node class.
19311 * ipa-ref.c (remove_reference): New class member function.
19312 (cannot_lead_to_return): New class member function.
19313 (referring_ref_list): Likewise.
19314 (referred_ref_list): Likewise.
19315 Rest of functions moved to symtab_node class.
19316 * ipa-ref.h: New member functions remove_reference,
19317 cannot_lead_to_return, referring_ref_list, referred_ref_list added
19318 to ipa_ref class.
19319 ipa_ref_list class has new member functions: first_reference,
19320 first_referring, clear, nreferences.
19321 * ipa-reference.c (analyze_function): New IPA REF function used.
19322 (write_node_summary_p): Likewise.
19323 (ipa_reference_write_optimization_summary): Likewise.
19324 * ipa-split.c (split_function): Likewise.
19325 * ipa-utils.c (ipa_reverse_postorder): Likewise.
19326 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
19327 (function_and_variable_visibility): Likewise.
19328 * ipa.c (has_addr_references_p): Likewise.
19329 (process_references): Argument type changed.
19330 (symtab_remove_unreachable_nodes): New IPA REF function used.
19331 (process_references): Likewise.
19332 (set_writeonly_bit): Likewise.
19333 * lto-cgraph.c: Implementation of new symtab_node member functions
19334 that uses new IPA REF functions.
19335 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
19336 function used.
19337 * lto-streamer-out.c (output_symbol_p): Likewise.
19338 * lto-streamer.h (referenced_from_this_partition_p): Argument type
19339 changed.
19340 * symtab.c: Implementation of new IPA REF API.
19341 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
19342 (ipa_tm_create_version): Likewise.
19343 (ipa_tm_execute): Likewise.
19344 * tree-emutls.c (gen_emutls_addr): Likewise.
19345 * tree-inline.c (copy_bb): Likewise.
19346 (delete_unreachable_blocks_update_callgraph): Likewise.
19347 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
19348 (varpool_for_node_and_aliases): Likewise.
19349
19350 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19351
19352 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
19353
19354 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
19355
19356 PR bootstrap/61598
19357 * fold-const.c (fold_checksum_tree): Use a hash_table of const
19358 tree_node * instead of tree_node *.
19359 (fold): Adjust.
19360 (print_fold_checksum): Likewise.
19361 (fold_check_failed): Likewise.
19362 (debug_fold_checksum): Likewise.
19363 (fold_build1_stat_loc): Likewise.
19364 (fold_build2_stat_loc): Likewise.
19365 (fold_build3_stat_loc): Likewise.
19366 (fold_build_call_array_loc): Likewise.
19367
19368 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
19369
19370 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
19371 implementation with call to...
19372 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
19373 function.
19374 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
19375 Declare.
19376
19377 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
19378
19379 PR tree-optimization/57742
19380 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
19381 after replacing the statement.
19382
19383 2014-06-25 Nick Clifton <nickc@redhat.com>
19384
19385 * config/v850/v850.c (GHS_default_section_names): Change to const
19386 char * type.
19387 (GHS_current_section_names): Likewise.
19388 (v850_insert_attributes): Do not build strings, just assign the
19389 names directly. Change the type of 'chosen_section' to const
19390 char*.
19391 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
19392 directly to the array entry.
19393 * config/v850/v850.h (GHS_default_section_names): Change to const
19394 char * type.
19395 (GHS_current_section_names): Likewise.
19396
19397 2014-06-25 Jakub Jelinek <jakub@redhat.com>
19398
19399 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
19400 (LANG_HOOKS_DECLS): Add it.
19401 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
19402 has correct type.
19403 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
19404 * langhooks.h (struct lang_hooks_for_decls): Add
19405 omp_clause_linear_ctor hook.
19406 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
19407 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
19408 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
19409 combined simd loop use omp_clause_linear_ctor hook.
19410
19411 2014-06-24 Cong Hou <congh@google.com>
19412
19413 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
19414 pattern recognition.
19415 (type_conversion_p): PROMOTION is true if it's a type promotion
19416 conversion, and false otherwise. Return true if the given expression
19417 is a type conversion one.
19418 * tree-vectorizer.h: Adjust the number of patterns.
19419 * tree.def: Add SAD_EXPR.
19420 * optabs.def: Add sad_optab.
19421 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
19422 * expr.c (expand_expr_real_2): Likewise.
19423 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
19424 * gimple.c (get_gimple_rhs_num_ops): Likewise.
19425 * optabs.c (optab_for_tree_code): Likewise.
19426 * tree-cfg.c (estimate_operator_cost): Likewise.
19427 * tree-ssa-operands.c (get_expr_operands): Likewise.
19428 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
19429 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
19430 * doc/generic.texi: Add document for SAD_EXPR.
19431 * doc/md.texi: Add document for ssad and usad.
19432
19433 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19434
19435 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
19436 qualification in cast.
19437
19438 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
19439
19440 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
19441 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
19442 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
19443 (tree_function_decl): ... here.
19444 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
19445 streaming of vindex to ...
19446 (write_ts_function_decl_tree_pointers): ... here.
19447 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
19448 Do not stream DECL_VINDEX.
19449 (lto_input_ts_function_decl_tree_pointers): Stream it here.
19450
19451 2014-06-24 Catherine Moore <clm@codesourcery.com>
19452 Sandra Loosemore <sandra@codesourcery.com>
19453
19454 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
19455 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
19456 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
19457
19458 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19459
19460 * doc/invoke.texi (Warning Options): Remove duplicated
19461 -Wmaybe-uninitialized.
19462
19463 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
19464
19465 PR tree-optimization/57742
19466 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
19467 (handle_builtin_malloc, handle_builtin_memset): New functions.
19468 (strlen_optimize_stmt): Call them.
19469 * passes.def: Move strlen after loop+dom but before vrp.
19470
19471 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19472
19473 PR target/61570
19474 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
19475 model family 6 CPU with has_longmode never use a CPU without
19476 64-bit support.
19477
19478 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
19479
19480 PR target/61570
19481 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
19482 the last change.
19483
19484 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19485
19486 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
19487 * dominance.c (iterate_fix_dominators): Use hash_map instead of
19488 pointer_map.
19489 * hash-map.h: New file.
19490 * ipa-comdats.c: Use hash_map instead of pointer_map.
19491 * ipa.c: Likewise.
19492 * lto-section-out.c: Adjust.
19493 * lto-streamer.h: Replace pointer_map with hash_map.
19494 * symtab.c (verify_symtab): Likewise.
19495 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
19496 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
19497 * tree-streamer.h: Likewise.
19498 * tree-streamer.c: Adjust.
19499 * pointer-set.h: Remove pointer_map.
19500
19501 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19502
19503 * hash-table.h: Add a template arg to choose between storing values
19504 and storing pointers to values, and then provide partial
19505 specializations for both.
19506 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
19507 should store, not the type values should point to.
19508 * tree-into-ssa.c (var_info_hasher): Likewise.
19509 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19510 * tree-complex.c: Adjust.
19511 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
19512 table instead of int_tree_map *.
19513 * tree-parloops.c: Adjust.
19514 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
19515 type is being stored.
19516 * tree-vectorizer.c: Adjust.
19517
19518 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
19519
19520 * hash-table.h: Remove a layer of indirection from hash_table so that
19521 it contains the hash table's data instead of a pointer to the data.
19522 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
19523 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
19524 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
19525 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
19526 fold-const.c, gcse.c, ggc-common.c,
19527 gimple-ssa-strength-reduction.c, gimplify.c,
19528 graphite-clast-to-gimple.c, graphite-dependences.c,
19529 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
19530 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
19531 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
19532 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
19533 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
19534 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
19535 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
19536 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
19537 tree-ssa-live.c, tree-ssa-loop-im.c,
19538 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
19539 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
19540 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
19541 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
19542 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
19543 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
19544 vtable-verify.c, vtable-verify.h: Adjust.
19545
19546 2014-06-24 Richard Biener <rguenther@suse.de>
19547
19548 PR tree-optimization/61572
19549 * tree-ssa-sink.c (statement_sink_location): Do not sink
19550 loads from hard registers.
19551
19552 2014-06-24 Jakub Jelinek <jakub@redhat.com>
19553
19554 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
19555 not mentioned in clauses use private clause if the iterator is
19556 declared in #pragma omp for simd, and when adding lastprivate
19557 instead, add it to the outer #pragma omp for too. Diagnose
19558 if the variable is private in outer context. For simd collapse > 1
19559 loops, replace all iterators with temporaries.
19560 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
19561 same even in collapse > 1 loops.
19562
19563 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
19564 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
19565 non-NULL.
19566 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
19567 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
19568 non-NULL.
19569 (gimplify_adjust_omp_clauses): Likewise.
19570 * omp-low.c (lower_rec_simd_input_clauses,
19571 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
19572 safelen the same as safelen(1).
19573 * tree-nested.c (convert_nonlocal_omp_clauses,
19574 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
19575 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
19576 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
19577 Fixup handling of GIMPLE_OMP_TARGET.
19578 (convert_tramp_reference_stmt, convert_gimple_call): Handle
19579 GIMPLE_OMP_TARGET.
19580
19581 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
19582
19583 PR tree-optimization/61554
19584 * tree-ssa-propagate.c: Include "bitmap.h".
19585 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
19586 properly update constructor/destructor.
19587 (substitute_and_fold_dom_walker::before_dom_children):
19588 Remove call to gimple_purge_dead_eh_edges, add bb->index to
19589 need_eh_cleaup instead.
19590 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
19591 need_eh_cleanup.
19592
19593 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19594
19595 * varpool.c (dump_varpool_node): Dump used_by_single_function.
19596 * tree-pass.h (make_pass_ipa_single_use): New pass.
19597 * cgraph.h (used_by_single_function): New flag.
19598 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
19599 Stream it.
19600 * passes.def (pass_ipa_single_use): Scedule.
19601 * ipa.c (BOTTOM): New macro.
19602 (meet): New function
19603 (propagate_single_user): New function.
19604 (ipa_single_use): New function.
19605 (pass_data_ipa_single_use): New pass.
19606 (pass_ipa_single_use): New pass.
19607 (pass_ipa_single_use::gate): New gate.
19608 (make_pass_ipa_single_use): New function.
19609
19610 2014-06-23 Kai Tietz <ktietz@redhat.com>
19611
19612 PR target/39284
19613 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
19614 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
19615
19616 2014-06-23 Richard Biener <rguenther@suse.de>
19617
19618 * tree-ssa-loop.c (gate_loop): New function.
19619 (pass_tree_loop::gate): Call it.
19620 (pass_data_tree_no_loop, pass_tree_no_loop,
19621 make_pass_tree_no_loop): New.
19622 * tree-vectorizer.c: Include tree-scalar-evolution.c
19623 (pass_slp_vectorize::execute): Initialize loops and SCEV if
19624 required.
19625 (pass_slp_vectorize::clone): New method.
19626 * timevar.def (TV_TREE_NOLOOP): New.
19627 * tree-pass.h (make_pass_tree_no_loop): Declare.
19628 * passes.def (pass_tree_no_loop): New pass group with
19629 SLP vectorizer.
19630
19631 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
19632
19633 PR target/61570
19634 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
19635 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
19636
19637 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19638
19639 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
19640 "yes" where needed.
19641
19642 2014-06-23 Alan Modra <amodra@gmail.com>
19643
19644 PR bootstrap/61583
19645 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
19646 to zero on debug statements.
19647
19648 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19649
19650 PR target/60825
19651 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
19652 Ignore third operand if present by marking qualifier_internal.
19653
19654 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
19655
19656 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
19657 vector extension.
19658 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
19659 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
19660 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
19661 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
19662 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
19663 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
19664 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
19665 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
19666 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
19667 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
19668 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
19669 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
19670 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
19671 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
19672 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
19673 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
19674 logic in GCC vector extensions
19675
19676 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
19677 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
19678 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
19679 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
19680 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
19681 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
19682 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
19683 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
19684 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
19685 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
19686
19687 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
19688
19689 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
19690 extensions.
19691
19692 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
19693 (vget_low_s64): Use __GET_LOW macro.
19694 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
19695 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
19696 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
19697 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
19698 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
19699
19700 (vcombine_s64): Use GCC vector extensions; remove cast.
19701 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
19702 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
19703 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
19704 Fix type signature; remove cast.
19705
19706 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
19707
19708 PR target/60825
19709 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
19710 V1DFmode.
19711 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
19712 add V1DFmode
19713 (BUILTIN_VD1): New.
19714 (BUILTIN_VD_RE): Remove.
19715 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
19716 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
19717 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
19718 variant but not df.
19719 (vreinterpretv1df*, vreinterpret*v1df): New.
19720 (vreinterpretdf*, vreinterpret*df): Remove.
19721 * config/aarch64/aarch64-simd.md (aarch64_create,
19722 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
19723 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
19724 (VD1): New.
19725 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
19726 (vcreate_f64): Remove cast, use v1df builtin.
19727 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
19728 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
19729 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
19730 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
19731 vmov_n_f64, vst1_f64): Use gcc vector extensions.
19732 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
19733 add range check using __builtin_aarch64_im_lane_boundsi.
19734 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
19735 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
19736 type signature, use gcc vector extensions.
19737 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
19738 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
19739 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
19740 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
19741 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
19742 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
19743 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
19744 vreinterpret_u64_f64): Use v1df builtin not df.
19745
19746 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
19747
19748 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
19749 vector registers.
19750
19751 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
19752
19753 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
19754 priority directly.
19755
19756 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19757
19758 * loop-invariant.c (pre_check_invariant_p): New function.
19759 (find_invariant_insn): Call pre_check_invariant_p.
19760
19761 2014-06-22 Richard Henderson <rth@redhat.com>
19762
19763 PR target/61565
19764 * compare-elim.c (struct comparison): Add eh_note.
19765 (find_comparison_dom_walker::before_dom_children): Don't eliminate
19766 a redundant comparison in a different EH region. Purge EH edges if
19767 necessary.
19768
19769 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19770
19771 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
19772 (var_shift): Use it.
19773 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
19774 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
19775 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
19776 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
19777 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
19778 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
19779 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
19780 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
19781 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
19782 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
19783 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
19784 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
19785 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
19786 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
19787 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
19788 *rotldi3_internal15be): Use the new attribute. Merge register and
19789 integer alternatives.
19790
19791 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19792
19793 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
19794 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
19795 split, *ashrdi3_internal3 and split): Delete, merge into...
19796 (ashr<mode>3): New expander.
19797 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
19798 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
19799
19800 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19801
19802 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
19803 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
19804 *rotldi3_internal3 and split): Delete, merge into...
19805 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
19806 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
19807 Use "rotlw" extended mnemonic.
19808
19809 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19810
19811 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
19812 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
19813 and split, *ashldi3_internal3 and split): Delete, merge into...
19814 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
19815 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
19816
19817 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19818
19819 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
19820 (lshrsi3, two anonymous define_insns and define_splits,
19821 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
19822 *lshrdi3_internal3 and split): Delete, merge into...
19823 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
19824 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
19825
19826 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
19827
19828 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
19829 Remove "O" alternative.
19830
19831 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
19832
19833 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
19834 (mips_move_from_gpr_cost): Likewise.
19835 (mips_register_move_cost): Update accordingly.
19836 (mips_secondary_reload_class): Remove name of in_p.
19837
19838 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
19839
19840 PR target/61503
19841 * config/i386/i386.md (x86_64_shrd, x86_shrd,
19842 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
19843
19844 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
19845
19846 * config/nios2/nios2.c: Include "builtins.h".
19847
19848 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19849
19850 * cgraph.h (tls_model_names): New variable.
19851 * print-tree.c (print_node): Simplify.
19852 * varpool.c (tls_model_names): New variable.
19853 (dump_varpool_node): Output tls model.
19854
19855 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
19856
19857 * ipa-visibility.c (function_and_variable_visibility): Disable
19858 temporarily local aliases for some targets.
19859
19860 2014-06-20 Marek Polacek <polacek@redhat.com>
19861
19862 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
19863 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
19864 into SANITIZE_UNDEFINED.
19865 * doc/invoke.texi: Describe -fsanitize=bounds.
19866 * gimplify.c (gimplify_call_expr): Add gimplification of internal
19867 functions created in the FEs.
19868 * internal-fn.c: Move "internal-fn.h" after "tree.h".
19869 (expand_UBSAN_BOUNDS): New function.
19870 * internal-fn.def (UBSAN_BOUNDS): New internal function.
19871 * internal-fn.h: Don't define internal functions here.
19872 * opts.c (common_handle_option): Add -fsanitize=bounds.
19873 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
19874 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
19875 * tree-core.h: Define internal functions here.
19876 (struct tree_base): Add ifn field.
19877 * tree-pretty-print.c: Include "internal-fn.h".
19878 (dump_generic_node): Handle functions without CALL_EXPR_FN.
19879 * tree.c (get_callee_fndecl): Likewise.
19880 (build_call_expr_internal_loc): New function.
19881 * tree.def (CALL_EXPR): Update description.
19882 * tree.h (CALL_EXPR_IFN): Define.
19883 (build_call_expr_internal_loc): Declare.
19884 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
19885 types.
19886 (ubsan_type_descriptor): Change bool parameter to enum
19887 ubsan_print_style. Adjust the code. Add handling of
19888 UBSAN_PRINT_ARRAY.
19889 (ubsan_expand_bounds_ifn): New function.
19890 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
19891 (ubsan_build_overflow_builtin): Likewise.
19892 (instrument_bool_enum_load): Likewise.
19893 (ubsan_instrument_float_cast): Likewise.
19894 * ubsan.h (enum ubsan_print_style): New enum.
19895 (ubsan_expand_bounds_ifn): Declare.
19896 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
19897
19898 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
19899
19900 * config/rs6000/rs6000.md: Append `DONE' to preparation
19901 statements of `bswap' pattern splitters.
19902
19903 2014-06-20 Tom de Vries <tom@codesourcery.com>
19904
19905 * target.def (call_fusage_contains_non_callee_clobbers): Update
19906 definition.
19907 * doc/tm.texi: Regenerate.
19908
19909 2014-06-20 Yury Gribov <y.gribov@samsung.com>
19910 Max Ostapenko <m.ostapenko@partner.samsung.com>
19911
19912 PR sanitizer/61547
19913 * asan.c (instrument_strlen_call): Fixed instrumentation of
19914 trailing byte.
19915
19916 2014-06-20 Martin Jambor <mjambor@suse.cz>
19917
19918 PR ipa/61540
19919 * ipa-prop.c (impossible_devirt_target): New function.
19920 (try_make_edge_direct_virtual_call): Use it, also instead of
19921 asserting.
19922
19923 2014-06-20 Yury Gribov <y.gribov@samsung.com>
19924 Max Ostapenko <m.ostapenko@partner.samsung.com>
19925
19926 PR sanitizer/61530
19927 * asan.c (build_check_stmt): Add condition.
19928
19929 2014-06-20 Martin Jambor <mjambor@suse.cz>
19930
19931 PR ipa/61211
19932 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
19933 expanded clones.
19934
19935 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19936
19937 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
19938 Update comments.
19939 (VCONQ): Make comment more helpful.
19940 (VCON): Delete.
19941 * config/aarch64/aarch64-simd.md
19942 (aarch64_sqdmulh_lane<mode>):
19943 Use VCOND for operands 2. Update lane checking and flipping logic.
19944 (aarch64_sqrdmulh_lane<mode>): Likewise.
19945 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
19946 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
19947 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
19948 attribute of operand 3 to VCOND.
19949 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
19950 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
19951 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
19952 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
19953 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
19954 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
19955 define_insn.
19956 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
19957 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
19958 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
19959 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
19960 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
19961 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
19962 operand to VCOND. Update lane flipping and bounds checking logic.
19963 (aarch64_sqdmlal2_lane<mode>): Likewise.
19964 (aarch64_sqdmlsl_lane<mode>): Likewise.
19965 (aarch64_sqdmull_lane<mode>): Likewise.
19966 (aarch64_sqdmull2_lane<mode>): Likewise.
19967 (aarch64_sqdmlal_laneq<mode>):
19968 Replace VCON usage with VCONQ.
19969 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
19970 (aarch64_sqdmlal2_laneq<mode>): Emit
19971 aarch64_sqdmlal2_laneq<mode>_internal insn.
19972 Replace VCON with VCONQ.
19973 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
19974 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
19975 (aarch64_sqdmull_laneq<mode>): Emit
19976 aarch64_sqdmull_laneq<mode>_internal insn.
19977 Replace VCON with VCONQ.
19978 (aarch64_sqdmull2_laneq<mode>): Emit
19979 aarch64_sqdmull2_laneq<mode>_internal insn.
19980 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
19981 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
19982 of 3rd argument to int16x4_t.
19983 (vqdmlalh_lane_s16): Likewise.
19984 (vqdmlslh_lane_s16): Likewise.
19985 (vqdmull_high_lane_s16): Likewise.
19986 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
19987 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
19988 (vqdmlsl_lane_s16): Likewise.
19989 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
19990 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
19991 (vqdmlals_lane_s32): Likewise.
19992 (vqdmlsls_lane_s32): Likewise.
19993 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
19994 (vqdmulls_lane_s32): Likewise.
19995 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
19996 (vqdmlsl_lane_s32): Likewise.
19997 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
19998 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
19999 (vqrdmulhh_lane_s16): Likewise.
20000 (vqdmlsl_high_lane_s16): Likewise.
20001 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20002 (vqdmlsl_high_lane_s32): Likewise.
20003 (vqrdmulhs_lane_s32): Likewise.
20004
20005 2014-06-20 Tom de Vries <tom@codesourcery.com>
20006
20007 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20008 get_call_reg_set_usage.
20009
20010 2014-06-20 Tom de Vries <tom@codesourcery.com>
20011
20012 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20013 it contains all call_used_regs.
20014
20015 2014-06-20 Tom de Vries <tom@codesourcery.com>
20016
20017 * final.c (collect_fn_hard_reg_usage): Add and use variable
20018 function_used_regs.
20019
20020 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20021
20022 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20023 (set_init_priority, get_init_priority, set_fini_priority,
20024 get_fini_priority): New methods.
20025 * tree.c (init_priority_for_decl): Remove.
20026 (init_ttree): Do not initialize init priority.
20027 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20028 (decl_priority_info): Remove.
20029 (decl_init_priority_insert): Rewrite.
20030 (decl_fini_priority_insert): Rewrite.
20031 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20032 tree_priority_map_marked_p): Remove.
20033 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20034 * lto-streamer-out.c (hash_tree): Do not hash priorities.
20035 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20036 not output priorities.
20037 (pack_ts_function_decl_value_fields): Likewise.
20038 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20039 not input priorities.
20040 (unpack_ts_function_decl_value_fields): Likewise.
20041 * symtab.c (symbol_priority_map): Declare.
20042 (init_priority_hash): Declare.
20043 (symtab_unregister_node): Unregister from priority hash, too.
20044 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20045 New methods.
20046 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20047 (symbol_priority_info): New function.
20048 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20049 New methods.
20050 * tree-core.h (tree_priority_map): Remove.
20051
20052 2014-06-20 Jakub Jelinek <jakub@redhat.com>
20053
20054 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20055 0xff to uint64_t before shifting it up.
20056
20057 2014-06-20 Julian Brown <julian@codesourcery.com>
20058 Chung-Lin Tang <cltang@codesourcery.com>
20059
20060 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20061 TARGET_THUMB1_ONLY. Add comments.
20062
20063 2014-06-19 Tom de Vries <tom@codesourcery.com>
20064
20065 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20066 return type to void.
20067 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20068
20069 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20070
20071 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20072 as "move", from depends_on.
20073
20074 2014-06-19 Terry Guo <terry.guo@arm.com>
20075
20076 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20077 stage.
20078
20079 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20080
20081 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20082 Remove cr5.
20083 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
20084
20085 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
20086
20087 PR target/61550
20088 * config/sh/sh.c (prepare_move_operands): Don't process TLS
20089 addresses here if reload in progress or completed.
20090
20091 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20092
20093 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20094 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20095 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20096 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20097 (mips_register_priority): New function that implements the target
20098 hook TARGET_REGISTER_PRIORITY.
20099 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
20100 (mips_lra_p): Likewise for TARGET_LRA_P.
20101 (TARGET_REGISTER_PRIORITY): Define macro.
20102 (TARGET_SPILL_CLASS): Likewise.
20103 (TARGET_LRA_P): Likewise.
20104 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
20105 classes.
20106 (REG_CLASS_NAMES): Likewise.
20107 (REG_CLASS_CONTENTS): Likewise.
20108 (BASE_REG_CLASS): Use M16_SP_REGS.
20109 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
20110 New set attribute to enable alternatives depending on the register
20111 allocator used.
20112 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
20113 (*lea64): Disable pattern for MIPS16.
20114 * config/mips/mips.opt (mlra): New option.
20115
20116 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
20117
20118 * lra-constraints.c (base_to_reg): New function.
20119 (process_address): Use new function.
20120
20121 2014-06-18 Tom de Vries <tom@codesourcery.com>
20122
20123 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
20124 * config/aarch64/aarch64.c
20125 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
20126 (aarch64_emit_call_insn): New function.
20127 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
20128 of emit_call_insn.
20129 * config/aarch64/aarch64.md (define_expand "call_internal")
20130 (define_expand "call_value_internal", define_expand "sibcall_internal")
20131 (define_expand "sibcall_value_internal"): New.
20132 (define_expand "call", define_expand "call_value")
20133 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
20134 expand variant and aarch64_emit_call_insn.
20135
20136 2014-06-18 Radovan Obradovic <robradovic@mips.com>
20137 Tom de Vries <tom@codesourcery.com>
20138
20139 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
20140 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
20141 Redefine to true.
20142 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
20143 clobbers to CALL_INSN_FUNCTION_USAGE.
20144 (define_expand "sibcall_internal")
20145 (define_expand "sibcall_value_internal"): New.
20146 (define_expand "call", define_expand "call_value"): Add argument to
20147 arm_emit_call_insn.
20148 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
20149 (define_expand "sibcall_value"): Use sibcall_value_internal and
20150 arm_emit_call_insn.
20151
20152 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20153
20154 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
20155
20156 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20157
20158 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
20159 __udivmoddi4.
20160
20161 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20162
20163 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
20164 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
20165 annotations. Fix DWARF information.
20166
20167 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20168
20169 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
20170 __udivmoddi4, and fixups for negative operands.
20171
20172 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20173
20174 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
20175
20176 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20177
20178 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
20179 to __udivmoddi4.
20180
20181 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20182
20183 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
20184 manipulation.
20185
20186 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20187
20188 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
20189 describing register usage on function entry and exit.
20190
20191 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20192
20193 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
20194 (__aeabi_ldivmod): Fix whitespace.
20195
20196 2014-06-18 Andreas Schwab <schwab@suse.de>
20197
20198 * doc/md.texi (Standard Names): Use @itemx for grouped items.
20199 Remove blank line after @item.
20200
20201 2014-06-18 Richard Henderson <rth@redhat.com>
20202
20203 PR target/61545
20204 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
20205
20206 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
20207
20208 * config/arm/arm.c (neon_vector_mem_operand): Allow register
20209 POST_MODIFY for neon loads and stores.
20210 (arm_print_operand): Output post-index register for neon loads and
20211 stores.
20212
20213 2014-06-18 Richard Biener <rguenther@suse.de>
20214
20215 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
20216
20217 2014-06-18 Richard Biener <rguenther@suse.de>
20218
20219 * tree-pass.h (make_pass_dce_loop): Remove.
20220 * passes.def: Replace pass_dce_loop with pass_dce.
20221 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
20222 changed free niter estimates and reset the scev cache.
20223 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
20224 make_pass_dce_loop): Remove.
20225 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
20226 (fini_copy_prop): Return whether something changed. Always
20227 let substitute_and_fold perform DCE and free niter estimates
20228 and reset the scev cache if so.
20229 (execute_copy_prop): If sth changed schedule cleanup-cfg.
20230 (pass_data_copy_prop): Do not unconditionally schedule
20231 cleanup-cfg or update-ssa.
20232
20233 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
20234
20235 PR tree-optimization/61518
20236 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
20237 reduction var is used in reduction stmt or phi-function only.
20238
20239 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20240
20241 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
20242
20243 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
20244
20245 PR tree-optimization/61517
20246 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
20247 whose rhs's first tree is the source expression instead of the
20248 expression itself.
20249 (find_bswap_or_nop): Likewise.
20250 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
20251 gimple stmt whose rhs's first tree is the source. In the memory source
20252 case, move the stmt to be replaced close to one of the original load to
20253 avoid the problem of a store between the load and the stmt's original
20254 location.
20255 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
20256 signature.
20257
20258 2014-06-18 Andreas Schwab <schwab@suse.de>
20259
20260 PR rtl-optimization/54555
20261 * postreload.c (move2add_use_add2_insn): Substitute
20262 STRICT_LOW_PART only if it is cheaper.
20263
20264 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
20265
20266 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
20267 Do not use unspec as call operand. Use memory_operand instead of
20268 memory_nox32_operand and add "m" operand constraint. Disable
20269 pattern for TARGET_X32.
20270 (*sibcall_pop_memory): Ditto.
20271 (*sibcall_value_memory): Ditto.
20272 (*sibcall_value_pop_memory): Ditto.
20273 (sibcall peepholes): Merge SImode and DImode patterns using
20274 W mode iterator. Use memory_operand instead of memory_nox32_operand.
20275 Disable pattern for TARGET_X32. Check if eliminated register is
20276 really dead after call insn. Generate call RTX without unspec operand.
20277 (sibcall_value peepholes): Ditto.
20278 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
20279 instead of memory_nox32_operand. Check if eliminated register is
20280 really dead after call insn. Generate call RTX without unspec operand.
20281 (sibcall_value_pop peepholes): Ditto.
20282 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
20283
20284 2014-06-18 Terry Guo <terry.guo@arm.com>
20285
20286 PR target/61544
20287 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
20288 reach the head.
20289
20290 2014-06-18 Olivier Hainque <hainque@adacore.com>
20291
20292 * tree-core.h (tree_block): Add an "end_locus" field, allowing
20293 memorization of the end of block source location.
20294 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
20295 * gimplify.c (gimplify_bind_expr): Propagate the block start and
20296 end source location info we have on the block entry/exit code we
20297 generate.
20298
20299 2014-06-18 Richard Biener <rguenther@suse.de>
20300
20301 * common.opt (fssa-phiopt): New option.
20302 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
20303 but not with -Og.
20304 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
20305 * doc/invoke.texi (-fssa-phiopt): Document.
20306
20307 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20308
20309 * genattrtab.c (n_bypassed): New variable.
20310 (process_bypasses): Initialise n_bypassed.
20311 Count number of bypassed reservations.
20312 (make_automaton_attrs): Allocate space for bypassed reservations
20313 rather than number of bypasses.
20314
20315 2014-06-18 Richard Biener <rguenther@suse.de>
20316
20317 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
20318 we propagated anything.
20319 (substitute_and_fold_dom_walker::before_dom_children): Something
20320 changed if we propagated into PHI arguments.
20321 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
20322 we removed a stmt.
20323
20324 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
20325
20326 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
20327 vector case.
20328 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
20329 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
20330 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
20331 Introduces alternative way of loads group permutaions.
20332 (vect_transform_grouped_load): Try alternative way of permutations.
20333
20334 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20335
20336 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
20337 changed in ORT_TARGET region, don't jump to do_outer.
20338 (struct gimplify_adjust_omp_clauses_data): New type.
20339 (gimplify_adjust_omp_clauses_1): Adjust for data being
20340 a struct gimplify_adjust_omp_clauses_data pointer instead
20341 of tree *. Pass pre_p as a new argument to
20342 lang_hooks.decls.omp_finish_clause hook.
20343 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
20344 splay_tree_foreach to pass both list_p and pre_p.
20345 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
20346 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
20347 gimplify_adjust_omp_clauses callers.
20348 * langhooks.c (lhd_omp_finish_clause): New function.
20349 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
20350 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
20351 * langhooks.h (struct lang_hooks_for_decls): Add a new
20352 gimple_seq * argument to omp_finish_clause hook.
20353 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
20354 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
20355 (scan_omp_parallel, lower_omp_for): When adding
20356 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
20357 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
20358 * tree-nested.c (convert_nonlocal_omp_clauses,
20359 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
20360 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
20361
20362 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
20363
20364 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
20365 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
20366
20367 2014-06-17 Xinliang David Li <davidxl@google.com>
20368
20369 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
20370 * passes.c (pass_init_dump_file): Do not set initialize
20371 flag to false unconditionally.
20372
20373 2014-06-17 Richard Biener <rguenther@suse.de>
20374
20375 * genopinit.c (main): Use vec<>::qsort method.
20376 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
20377 Likewise.
20378 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
20379
20380 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
20381
20382 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
20383 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
20384 (mips_move_to_gpr_cost): Remove ST_REGS case.
20385 (mips_move_from_gpr_cost): Likewise.
20386 (mips_register_move_cost): Likewise.
20387 (mips_secondary_reload_class): Likewise.
20388
20389 2014-06-17 Richard Biener <rguenther@suse.de>
20390
20391 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
20392 (pass_all_optimizations): Move 3rd copy-prop pass from after
20393 fre to before ifcombine/phiopt.
20394
20395 2014-06-17 Richard Biener <rguenther@suse.de>
20396
20397 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
20398 and allow all blocks to be forwarders.
20399
20400 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
20401
20402 PR target/61483
20403 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
20404 variable 'size'; calculate 'size' right in the front; use
20405 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
20406 pcum->aapcs_stack_words.
20407
20408 2014-06-17 Nick Clifton <nickc@redhat.com>
20409
20410 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
20411 (umulhi3, mulsidi3, umulsidi3): Likewise.
20412
20413 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
20414
20415 PR middle-end/61508
20416 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
20417 check for section name.
20418
20419 2014-06-17 Richard Biener <rguenther@suse.de>
20420
20421 * tree-ssa-propagate.c: Include domwalk.h.
20422 (substitute_and_fold): Outline main worker into a domwalker ...
20423 (substitute_and_fold_dom_walker::before_dom_children): ... here.
20424 Schedule stmts we can fully propagate for removal. Remove
20425 poor-mans DCE.
20426 (substitute_and_fold): Apply a dominator walk to perform
20427 substitution. Process stmts scheduled for removal here.
20428
20429 2014-06-17 Richard Biener <rguenther@suse.de>
20430
20431 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
20432 of PHI node moving.
20433
20434 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
20435
20436 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
20437 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
20438 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
20439 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
20440 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
20441 TARGET_HARD_FLOAT.
20442 (get_fpscr) : Likewise.
20443
20444 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20445
20446 PR rtl-optimization/61325
20447 * lra-constraints.c (valid_address_p): Add forward declaration.
20448 (simplify_operand_subreg): Check address validity before and after
20449 alter_reg of memory subreg.
20450
20451 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
20452
20453 * config/i386/i386.c (decide_alg): Correctly handle
20454 maximum size of stringop algorithm.
20455
20456 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20457
20458 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
20459
20460 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
20461
20462 PR rtl-optimization/61522
20463 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
20464
20465 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
20466
20467 Revert:
20468 * symtab.c (symtab_node::reset_section): New method.
20469 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20470 for localization.
20471 * cgraph.h (reset_section): Declare.
20472 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20473 do not consider comdat locals.
20474 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20475 for new symbol.
20476 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20477 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20478 reset sections of symbols dragged out of the comdats.
20479 (function_and_variable_visibility): Reset sections of
20480 localized symbols.
20481
20482 2014-06-16 Richard Biener <rguenther@suse.de>
20483
20484 PR tree-optimization/61482
20485 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
20486 [-INF(OVF), +INF(OVF)] range.
20487
20488 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
20489
20490 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
20491 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
20492 handling 32-bit multiplication.
20493
20494 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
20495
20496 PR middle-end/61430
20497 * lra-lives.c (process_bb_lives): Skip creating copy during
20498 insn scan when src/dest has constrained to same regno.
20499
20500 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20501
20502 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
20503 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
20504
20505 2014-06-16 Yury Gribov <y.gribov@samsung.com>
20506
20507 * asan.c (check_func): New function.
20508 (maybe_create_ssa_name): Likewise.
20509 (build_check_stmt_with_calls): Likewise.
20510 (use_calls_p): Likewise.
20511 (report_error_func): Change interface.
20512 (build_check_stmt): Allow non-integer lengths; add support
20513 for new parameter.
20514 (asan_instrument): Likewise.
20515 (instrument_mem_region_access): Moved code to build_check_stmt.
20516 (instrument_derefs): Likewise.
20517 (instrument_strlen_call): Likewise.
20518 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
20519 * doc/invoke.texi: Describe new parameter.
20520 * params.def: Define new parameter.
20521 * params.h: Likewise.
20522 * sanitizer.def: Describe new builtins.
20523
20524 2014-06-16 Richard Biener <rguenther@suse.de>
20525
20526 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20527 Make all defs available at the end.
20528 (eliminate): If we remove a PHI node schedule cfg-cleanup.
20529
20530 2014-06-18 Jakub Jelinek <jakub@redhat.com>
20531
20532 PR plugins/45078
20533 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
20534
20535 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
20536
20537 PR bootstrap/61516
20538 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
20539 initialization. Replace remaining use of uid.
20540
20541 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
20542
20543 * c-family/c-common.c (handle_tls_model_attribute): Use
20544 set_decl_tls_model.
20545 * c-family/c-common.c (handle_tls_model_attribute): Use
20546 set_decl_tls_model.
20547 * cgraph.h (struct varpool_node): Add tls_model.
20548 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
20549 * tree.h (DECL_TLS_MODEL): Update.
20550 (DECL_THREAD_LOCAL_P): Check that variable is static.
20551 (decl_tls_model): Declare.
20552 (set_decl_tls_model): Declare.
20553 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
20554 set symbol prorperties.
20555 (get_emutls_init_templ_addr): Cleanup.
20556 (new_emutls_decl): Update.
20557 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
20558 (lto_input_varpool_node): Likewise.
20559 * lto-streamer-out.c (hash_tree): Likewise.
20560 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20561 not stream DECL_TLS_MODEL.
20562 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
20563 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
20564
20565 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20566
20567 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
20568
20569 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20570
20571 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
20572 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
20573 lists.
20574 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
20575 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
20576 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
20577 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
20578 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
20579 (df_get_artificial_defs, df_get_artificial_uses)
20580 (df_single_def, df_single_use): Update accordingly.
20581 (df_refs_chain_dump): Take the first element in a linked list as
20582 parameter, rather than a pointer to an array of pointers.
20583 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
20584 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
20585 (df_chain_create_bb_process_use): Likewise.
20586 (df_md_bb_local_compute_process_def): Likewise.
20587 * fwprop.c (process_defs, process_uses): Likewise.
20588 (register_active_defs, update_uses): Likewise.
20589 (forward_propagate_asm): Update for new df_ref linking.
20590 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
20591 (df_null_ref_rec, df_null_mw_rec): Likewise.
20592 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
20593 explicitly.
20594 (df_scan_free_bb_info): Remove check for null artificial_defs.
20595 (df_install_ref_incremental): Adjust for new df_ref linking.
20596 Use a single-element insertion rather than a full sort.
20597 (df_ref_chain_delete_du_chain): Take the first element
20598 in a linked list as parameter, rather than a pointer to an array of
20599 pointers.
20600 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
20601 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
20602 (df_insn_info_delete): Remove check for null defs and call to
20603 df_scan_free_mws_vec.
20604 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
20605 null rather than df_null_*_rec.
20606 (df_insn_rescan_debug_internal): Likewise, and update null
20607 checks in the same way. Remove check for null defs.
20608 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
20609 Move a single element rather doing a full sort.
20610 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
20611 linking.
20612 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
20613 Initialize df_ref and df_mw_hardreg lists to null rather than
20614 df_null_*_rec.
20615 (df_ref_compare): Take df_refs as parameter, transferring the
20616 old interface to...
20617 (df_ref_ptr_compare): ...this new function.
20618 (df_sort_and_compress_refs): Update accordingly.
20619 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
20620 old interface to...
20621 (df_mw_ptr_compare): ...this new function.
20622 (df_sort_and_compress_mws): Update accordingly.
20623 (df_install_refs, df_install_mws): Return a linked list rather than
20624 an array of pointers.
20625 (df_refs_add_to_chains): Assert that old lists are empty rather
20626 than freeing them.
20627 (df_insn_refs_verify): Don't handle null defs speciailly.
20628 * web.c (union_match_dups): Update for new df_ref linking.
20629
20630 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20631
20632 * df.h (df_ref_create, df_ref_remove): Delete.
20633 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
20634 (df_ref_remove): Likewise.
20635
20636 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20637
20638 * df.h (df_single_def, df_single_use): New functions.
20639 * ira.c (find_moveable_pseudos): Use them.
20640
20641 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20642
20643 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
20644 * df-problems.c (df_note_bb_compute): Use it.
20645 * regstat.c (regstat_bb_compute_ri): Likewise.
20646
20647 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20648
20649 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
20650 * cse.c (cse_extended_basic_block): Use them.
20651 * dce.c (mark_artificial_use): Likewise.
20652 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
20653 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20654 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
20655 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
20656 (df_simulate_initialize_backwards): Likewise.
20657 (df_simulate_finalize_backwards): Likewise.
20658 (df_simulate_initialize_forwards): Likewise.
20659 (df_md_simulate_artificial_defs_at_top): Likewise.
20660 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20661 * regrename.c (init_rename_info): Likewise.
20662 * regstat.c (regstat_bb_compute_ri): Likewise.
20663 (regstat_bb_compute_calls_crossed): Likewise.
20664
20665 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
20666
20667 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
20668 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
20669 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
20670 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
20671 * combine.c (create_log_links): Likewise.
20672 * compare-elim.c (find_flags_uses_in_insn): Likewise.
20673 (try_eliminate_compare): Likewise.
20674 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
20675 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
20676 (remove_reg_equal_equiv_notes_for_defs): Likewise.
20677 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
20678 (word_dce_process_block, dce_process_block): Likewise.
20679 * ddg.c (def_has_ccmode_p): Likewise.
20680 * df-core.c (df_bb_regno_first_def_find): Likewise.
20681 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
20682 * df-problems.c (df_rd_simulate_one_insn): Likewise.
20683 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
20684 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
20685 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
20686 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
20687 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
20688 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
20689 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
20690 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
20691 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
20692 * fwprop.c (local_ref_killed_between_p): Likewise.
20693 (all_uses_available_at, free_load_extend): Likewise.
20694 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
20695 * hw-doloop.c (scan_loop): Likewise.
20696 * ifcvt.c (dead_or_predicable): Likewise.
20697 * init-regs.c (initialize_uninitialized_regs): Likewise.
20698 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
20699 (process_bb_node_lives): Likewise.
20700 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
20701 (find_moveable_pseudos): Likewise.
20702 * loop-invariant.c (check_dependencies, record_uses): Likewise.
20703 * recog.c (peep2_find_free_register): Likewise.
20704 * ree.c (get_defs): Likewise.
20705 * regstat.c (regstat_bb_compute_ri): Likewise.
20706 (regstat_bb_compute_calls_crossed): Likewise.
20707 * sched-deps.c (find_inc, find_mem): Likewise.
20708 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
20709 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
20710 * shrink-wrap.c (requires_stack_frame_p): Likewise.
20711 (prepare_shrink_wrap): Likewise.
20712 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
20713 * web.c (union_defs, pass_web::execute): Likewise.
20714 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
20715 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
20716
20717 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
20718
20719 * lra-assign.c (assign_by_spills): Add code to assign vector regs
20720 to inheritance pseudos.
20721 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
20722
20723 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
20724
20725 PR target/61415
20726 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
20727 (BU_MISC_2): Rename to ...
20728 (BU_LDBL128_2): ... this.
20729 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
20730 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
20731 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
20732 RS6000_BTM_LDBL128.
20733 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
20734 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
20735 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
20736 (unpacktf_1): Likewise.
20737 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
20738 (__builtin_longdouble_dw1): Likewise.
20739 * doc/sourcebuild.texi (longdouble128): Document.
20740
20741 2014-06-13 Jeff Law <law@redhat.com>
20742
20743 PR rtl-optimization/61094
20744 PR rtl-optimization/61446
20745 * ree.c (combine_reaching_defs): Get the mode for the copy from
20746 the extension insn rather than the defining insn.
20747
20748 2014-06-13 Dehao Chen <dehao@google.com>
20749
20750 * dwarf2out.c (add_linkage_name): Emit more linkage name.
20751
20752 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
20753
20754 * doc/install.texi (--enable-linker-plugin-configure-flags)
20755 (--enable-linker-plugin-flags): Document new flags.
20756
20757 2014-06-13 Martin Jambor <mjambor@suse.cz>
20758
20759 PR ipa/61186
20760 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
20761 cache_token if returning early.
20762
20763 2014-06-13 Nick Clifton <nickc@redhat.com>
20764
20765 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
20766 requested alignment is active.
20767 (LABEL_ALIGN): Likewise.
20768 (LOOP_ALIGN): Likewise.
20769
20770 2014-06-13 Richard Biener <rguenther@suse.de>
20771
20772 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
20773 Rewrite to propagate the VN result into all uses where
20774 possible and to remove stmts becoming dead because of that.
20775 (eliminate): Generalize stmt removal handling, remove in
20776 reverse dominator order to support proper debug stmt
20777 generation. Update stmts before removing stmts.
20778 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
20779
20780 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
20781
20782 PR tree-optimization/61375
20783 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
20784 symbolic number cannot be represented in an uint64_t.
20785 (find_bswap_or_nop_1): Likewise.
20786
20787 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20788
20789 * symtab.c (symtab_node::reset_section): New method.
20790 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
20791 for localization.
20792 * cgraph.h (reset_section): Declare.
20793 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
20794 do not consider comdat locals.
20795 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
20796 for new symbol.
20797 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
20798 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
20799 reset sections of symbols dragged out of the comdats.
20800 (function_and_variable_visibility): Reset sections of
20801 localized symbols.
20802
20803 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
20804
20805 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
20806 to use symtab and decl_binds_to_current_def_p
20807 * tree-vectorizer.c (increase_alignment): Increase alignment
20808 of alias target, too.
20809
20810 2014-06-12 Jakub Jelinek <jakub@redhat.com>
20811
20812 PR middle-end/61486
20813 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
20814 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
20815 if outer combined construct is distribute.
20816 (gimplify_omp_for): For OMP_DISTRIBUTE set
20817 gimplify_omp_ctxp->distribute.
20818 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
20819 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
20820 mapping into decl map.
20821
20822 2014-06-12 Jason Merrill <jason@redhat.com>
20823
20824 * common.opt (fabi-version): Change default to 0.
20825
20826 2014-06-12 Jason Merrill <jason@redhat.com>
20827
20828 * toplev.c (process_options): Reject -fabi-version=1.
20829
20830 2014-06-12 Jeff Law <law@redhat.com>
20831
20832 PR tree-optimization/61009
20833 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
20834 value when we stop processing a block due to problematic PHIs.
20835
20836 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
20837
20838 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
20839 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
20840 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
20841 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
20842 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
20843 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
20844 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
20845 are not in the spec.
20846
20847 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
20848
20849 PR target/59843
20850 * config/aarch64/aarch64-modes.def: Add V1DFmode.
20851 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
20852 Support V1DFmode.
20853
20854 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
20855
20856 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
20857
20858 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
20859
20860 PR target/61443
20861 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
20862 loading from address spaces.
20863
20864 2014-06-12 Martin Liska <mliska@suse.cz>
20865
20866 PR ipa/61462
20867 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
20868 statement is reachable.
20869
20870 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
20871
20872 * symtab.c (section_hash): New hash.
20873 (symtab_unregister_node): Clear section before freeing.
20874 (hash_section_hash_entry): New haser.
20875 (eq_sections): New function.
20876 (symtab_node::set_section_for_node): New method.
20877 (set_section_1): Update.
20878 (symtab_node::set_section): Take string instead of tree as parameter.
20879 (symtab_resolve_alias): Update.
20880 * cgraph.h (section_hash_entry_d): New structure.
20881 (section_hash_entry): New typedef.
20882 (cgraph_node): Change comdat_group_ to x_comdat_group,
20883 change section_ to x_section and turn into section_hash_entry;
20884 update accestors; put set_section_for_node offline.
20885 * tree.c (decl_section_name): Turn into string.
20886 (set_decl_section_name): Change parameter to be string.
20887 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
20888 * sdbout.c (sdbout_one_type): Update.
20889 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
20890 * varasm.c (IN_NAMED_SECTION, get_named_section,
20891 resolve_unique_section, hot_function_section, get_named_text_section,
20892 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
20893 make_decl_rtl, default_unique_section): Update.
20894 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
20895 (c6x_elf_unique_section): Update.
20896 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
20897 * config/pa/pa.c (pa_function_section): Update.
20898 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
20899 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
20900 * config/arc/arc.c (arc_in_small_data_p): Update.
20901 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
20902 * config/mcore/mcore.c (mcore_unique_section): Update.
20903 * config/mips/mips.c (mips16_build_function_stub): Update.
20904 (mips16_build_call_stub): Update.
20905 (mips_function_rodata_section): Update.
20906 (mips_in_small_data_p): Update.
20907 * config/score/score.c (score_in_small_data_p): Update.
20908 * config/rx/rx.c (rx_in_small_data): Update.
20909 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
20910 (rs6000_xcoff_asm_named_section): Update.
20911 (rs6000_xcoff_unique_section): Update.
20912 * config/frv/frv.c (frv_string_begins_with): Update.
20913 (frv_in_small_data_p): Update.
20914 * config/v850/v850.c (v850_encode_data_area): Update.
20915 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
20916 (bfin_handle_l1_data_attribute): Update.
20917 (bfin_handle_l2_attribute): Update.
20918 * config/mep/mep.c (mep_unique_section): Update.
20919 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
20920 Update.
20921 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
20922 (h8300_handle_tiny_data_attribute): Update.
20923 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
20924 (m32r_in_small_data_p): Update.
20925 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
20926 * config/i386/i386.c (ix86_in_large_data_p): Update.
20927 * config/i386/winnt.c (i386_pe_unique_section): Update.
20928 * config/darwin.c (darwin_function_section): Update.
20929 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
20930 * tree-emutls.c (get_emutls_init_templ_addr): Update.
20931 (new_emutls_decl): Update.
20932 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
20933 input_varpool_node): Update.
20934 (ead_string_cst): Turn to ...
20935 (read_string): ... this one.
20936 * dwarf2out.c (secname_for_decl): Update.
20937 * asan.c (asan_protect_global): Update.
20938
20939 2014-06-11 DJ Delorie <dj@redhat.com>
20940
20941 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
20942 cache lines.
20943 * config/rx/rx.c (rx_option_override): Likewise.
20944 (rx_align_for_label): Likewise.
20945
20946 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
20947
20948 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
20949
20950 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
20951 prototype.
20952
20953 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20954
20955 * common.md: New file.
20956 * doc/md.texi: Update description of generic, machine-independent
20957 constraints.
20958 * config/s390/constraints.md (e): Delete.
20959 * Makefile.in (md_file): Include common.md.
20960 * config/m32c/t-m32c (md_file): Likewise.
20961 * genpreds.c (general_mem): New array.
20962 (generic_constraint_letters): Remove constraints now defined by
20963 common.md.
20964 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
20965 Allow the first character to be '<' or '>' as well.
20966 * genoutput.c (general_mem): New array.
20967 (indep_constraints): Remove constraints now defined by common.md.
20968 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
20969 Remove special handling of 'm'.
20970 * ira-costs.c (record_reg_classes): Remove special handling of
20971 constraints now defined by common.md.
20972 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20973 * ira-lives.c (single_reg_class): Likewise.
20974 (ira_implicitly_set_insn_hard_regs): Likewise.
20975 * lra-constraints.c (reg_class_from_constraints): Likewise.
20976 (process_alt_operands, process_address, curr_insn_transform): Likewise.
20977 * postreload.c (reload_cse_simplify_operands): Likewise.
20978 * reload.c (push_secondary_reload, scratch_reload_class)
20979 (find_reloads, alternative_allows_const_pool_ref): Likewise.
20980 * reload1.c (maybe_fix_stack_asms): Likewise.
20981 * targhooks.c (default_secondary_reload): Likewise.
20982 * stmt.c (parse_output_constraint): Likewise.
20983 * recog.c (preprocess_constraints): Likewise.
20984 (constrain_operands, peep2_find_free_register): Likewise.
20985 (asm_operand_ok): Likewise, but add a comment saying why 'o'
20986 must be handled specially.
20987
20988 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
20989
20990 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
20991 * genpreds.c (have_const_dbl_constraints): Delete.
20992 (add_constraint): Don't set it.
20993 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
20994 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
20995 constraints using the lookup_constraint logic.
20996 * ira-lives.c (single_reg_class): Likewise.
20997 * ira.c (ira_setup_alts): Likewise.
20998 * lra-constraints.c (process_alt_operands): Likewise.
20999 * recog.c (asm_operand_ok, constrain_operands): Likewise.
21000 * reload.c (find_reloads): Likewise.
21001
21002 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21003
21004 * genpreds.c (const_int_start, const_int_end): New variables.
21005 (choose_enum_order): Output CONST_INT constraints before memory
21006 constraints.
21007 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21008 Add CT_CONST_INT.
21009 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21010 * ira.c (ira_setup_alts): Likewise.
21011 * lra-constraints.c (process_alt_operands): Likewise.
21012 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21013 * reload.c (find_reloads): Likewise.
21014
21015 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21016
21017 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21018 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
21019 * recog.c (preprocess_constraints): Update accordingly.
21020
21021 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21022
21023 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21024 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21025 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21026 * genpreds.c (print_type_tree): New function.
21027 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21028 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21029 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21030 Write out enum constraint_type and get_constraint_type.
21031 * lra-constraints.c (satisfies_memory_constraint_p): Take a
21032 constraint_num rather than a constraint string.
21033 (satisfies_address_constraint_p): Likewise.
21034 (reg_class_from_constraints): Avoid old constraint macros.
21035 (process_alt_operands, process_address_1): Likewise.
21036 (curr_insn_transform): Likewise.
21037 * ira-costs.c (record_reg_classes): Likewise.
21038 (record_operand_costs): Likewise.
21039 * ira-lives.c (single_reg_class): Likewise.
21040 (ira_implicitly_set_insn_hard_regs): Likewise.
21041 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21042 * postreload.c (reload_cse_simplify_operands): Likewise.
21043 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21044 (constrain_operands, peep2_find_free_register): Likewise.
21045 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21046 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21047 * reload1.c (maybe_fix_stack_asms): Likewise.
21048 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21049 * targhooks.c (default_secondary_reload): Likewise.
21050 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21051 to EXTRA_CONSTRAINT_STR.
21052 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21053
21054 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21055
21056 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21057 (write_constraint_satisfied_p_array): ...this new function.
21058 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21059 an array.
21060 (write_insn_preds_c): Update accordingly.
21061
21062 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21063
21064 * genpreds.c (write_lookup_constraint): Rename to...
21065 (write_lookup_constraint_1): ...this.
21066 (write_lookup_constraint_array): New function.
21067 (write_tm_preds_h): Define lookup_constraint as an inline function
21068 that uses write_lookup_constraint_array where possible.
21069 (write_insn_preds_c): Update for the changes above.
21070
21071 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21072
21073 * doc/md.texi (regclass_for_constraint): Rename to...
21074 (reg_class_for_constraint): ...this.
21075 * genpreds.c (num_constraints, enum_order, register_start)
21076 (register_end, satisfied_start, memory_start, memory_end)
21077 (address_start, address_end): New variables.
21078 (add_constraint): Count the number of constraints.
21079 (choose_enum_order): New function.
21080 (write_enum_constraint_num): Iterate over enum_order.
21081 (write_regclass_for_constraint): Rename to...
21082 (write_reg_class_for_constraint_1): ...this and update output
21083 accordingly.
21084 (write_constraint_satisfied_p): Rename to...
21085 (write_constraint_satisfied_p_1): ...this and update output
21086 accordingly. Do nothing if all extra constraints are register
21087 constraints.
21088 (write_insn_extra_memory_constraint): Delete.
21089 (write_insn_extra_address_constraint): Delete.
21090 (write_range_function): New function.
21091 (write_tm_preds_h): Define constraint_satisfied_p and
21092 reg_class_for_constraint as inline functions that do a range check
21093 before calling the out-of-line function. Use write_range_function
21094 to implement insn_extra_{register,memory,address}_constraint,
21095 the first of which is new.
21096 (write_insn_preds_c): Update after above changes to write_* functions.
21097 (main): Call choose_enum_order.
21098
21099 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
21100
21101 PR tree-optimization/61306
21102 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
21103 expression instead of its size.
21104 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
21105 false to prevent optimization when the result is unpredictable due to
21106 arithmetic right shift of signed type with highest byte is set.
21107 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
21108 (init_symbolic_number): Likewise.
21109 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
21110 when the result is unpredictable due to sign extension.
21111
21112 2014-06-11 Terry Guo <terry.guo@arm.com>
21113
21114 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
21115 (*thumb1_addsi3): Ditto.
21116 (*thumb_subdi3): Ditto.
21117 (thumb1_subsi3_insn): Ditto.
21118 (*thumb_mulsi3): Ditto.
21119 (*thumb_mulsi3_v6): Ditto.
21120 (*thumb1_andsi3_insn): Ditto.
21121 (thumb1_bicsi3): Ditto.
21122 (*thumb1_iorsi3_insn): Ditto.
21123 (*thumb1_xorsi3_insn): Ditto.
21124 (*thumb1_ashlsi3): Ditto.
21125 (*thumb1_ashrsi3): Ditto.
21126 (*thumb1_lshrsi3): Ditto.
21127 (*thumb1_rotrsi3): Ditto.
21128 (*thumb1_negdi2): Ditto.
21129 (*thumb1_negsi2): Ditto.
21130 (*thumb1_abssi2): Ditto.
21131 (*thumb1_neg_abssi2): Ditto.
21132 (*thumb1_one_cmplsi2): Ditto.
21133 (*thumb1_zero_extendhisi2): Ditto.
21134 (*thumb1_zero_extendqisi2): Ditto.
21135 (*thumb1_zero_extendqisi2_v6): Ditto.
21136 (thumb1_extendhisi2): Ditto.
21137 (thumb1_extendqisi2): Ditto.
21138 (*thumb1_movdi_insn): Ditto.
21139 (*thumb1_movsi_insn): Ditto.
21140 (*thumb1_movhi_insn): Ditto.
21141 (thumb_movhi_clobber): Ditto.
21142 (*thumb1_movqi_insn): Ditto.
21143 (*thumb1_movhf): Ditto.
21144 (*thumb1_movsf_insn): Ditto.
21145 (*thumb_movdf_insn): Ditto.
21146 (movmem12b): Ditto.
21147 (movmem8b): Ditto.
21148 (cbranchqi4): Ditto.
21149 (cbranchsi4_insn): Ditto.
21150 (cbranchsi4_scratch): Ditto.
21151 (*negated_cbranchsi4): Ditto.
21152 (*tbit_cbranch): Ditto.
21153 (*tlobits_cbranch): Ditto.
21154 (*tstsi3_cbranch): Ditto.
21155 (*cbranchne_decr1): Ditto.
21156 (*addsi3_cbranch): Ditto.
21157 (*addsi3_cbranch_scratch): Ditto.
21158 (*thumb_cmpdi_zero): Ditto.
21159 (cstoresi_eq0_thumb1): Ditto.
21160 (cstoresi_ne0_thumb1): Ditto.
21161 (*cstoresi_eq0_thumb1_insn): Ditto.
21162 (*cstoresi_ne0_thumb1_insn): Ditto.
21163 (cstoresi_nltu_thumb1): Ditto.
21164 (cstoresi_ltu_thumb1): Ditto.
21165 (thumb1_addsi3_addgeu): Ditto.
21166 (*thumb_jump): Ditto.
21167 (*call_reg_thumb1_v5): Ditto.
21168 (*call_reg_thumb1): Ditto.
21169 (*call_value_reg_thumb1_v5): Ditto.
21170 (*call_value_reg_thumb1): Ditto.
21171 (*call_insn): Ditto.
21172 (*call_value_insn): Ditto.
21173 (thumb1_casesi_internal_pic): Ditto.
21174 (thumb1_casesi_dispatch): Ditto.
21175 (*thumb1_indirect_jump): Ditto.
21176 (prologue_thumb1_interwork): Ditto.
21177 (*epilogue_insns): Ditto.
21178 (consttable_1): Ditto.
21179 (consttable_2): Ditto.
21180 (tablejump): Ditto.
21181 (*thumb1_tablejump): Ditto.
21182 (thumb_eh_return): Ditto.
21183 (define_peephole2): Two of them are thumb1 only and got moved into
21184 new file thumb1.md.
21185 (define_split): Six of them are thumb1 only and got moved into new
21186 file thumb1.md.
21187 * config/arm/thumb1.md: New file comprised of above thumb1 only
21188 patterns.
21189
21190 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21191
21192 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
21193 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
21194 dependencies.
21195 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
21196 (aarch64_crc_builtin_datum): New struct.
21197 (aarch64_crc_builtin_data): New.
21198 (aarch64_init_crc32_builtins): New function.
21199 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
21200 (aarch64_crc32_expand_builtin): New.
21201 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
21202 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21203 __ARM_FEATURE_CRC32 when appropriate.
21204 (TARGET_CRC32): Define.
21205 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
21206 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
21207 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
21208 (aarch64_<crc_variant>): New pattern.
21209 * config/aarch64/arm_acle.h: New file.
21210 * config/aarch64/iterators.md (CRC): New int iterator.
21211 (crc_variant, crc_mode): New int attributes.
21212 * doc/aarch64-acle-intrinsics.texi: New file.
21213 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
21214 Include aarch64-acle-intrinsics.texi.
21215
21216 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
21217
21218 * tree-vect-data-refs.c (vect_grouped_store_supported): New
21219 check for stores group of length 3.
21220 (vect_permute_store_chain): New permutations for stores group of
21221 length 3.
21222 * tree-vect-stmts.c (vect_model_store_cost): Change cost
21223 of vec_perm_shuffle for the new permutations.
21224
21225 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21226
21227 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
21228 table rewriting temporarily on targets not supporting ONE_ONLY.
21229
21230 2014-06-11 Richard Biener <rguenther@suse.de>
21231
21232 PR middle-end/61437
21233 Revert
21234 2014-06-04 Richard Biener <rguenther@suse.de>
21235
21236 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21237 TREE_PUBLIC and DECL_EXTERNAL decls.
21238
21239 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21240
21241 * varasm.c (set_implicit_section): New function.
21242 (resolve_unique_section): Use it to set implicit section
21243 for aliases, too.
21244 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
21245 (default_function_section): Likewise.
21246 (decl_binds_to_current_def_p): Constify argument.
21247 * varasm.h (decl_binds_to_current_def_p): Update prototype.
21248 * asan.c (asan_protect_global): Use
21249 symtab_get_node (decl)->implicit_section.
21250 * symtab.c (dump_symtab_base): Dump implicit sections.
21251 (verify_symtab_base): Verify sanity of sectoins and comdats.
21252 (symtab_resolve_alias): Alias share the section of its target.
21253 (set_section_1): New function.
21254 (symtab_node::set_section): Move here, recurse to aliases.
21255 (verify_symtab): Check for duplicated symtab lists.
21256 * tree-core.h (implicit_section_name_p): Remove.
21257 * tree-vect-data-refs.c: Include varasm.h.
21258 (vect_can_force_dr_alignment_p): Fix conditional on when
21259 decl bints to current definition; use
21260 symtab_get_node (decl)->implicit_section.
21261 * cgraph.c (cgraph_make_node_local_1): Fix section set.
21262 * cgraph.h (struct symtab_node): Add implicit_section.
21263 (set_section): Rename to ...
21264 (set_section_for_node): ... this one.
21265 (set_section): Declare.
21266 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
21267 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
21268 input_overwrite_node, input_varpool_node): Stream implicit_section.
21269 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
21270 removal; it will fail in LTO.
21271
21272 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21273
21274 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
21275 Change second alternative type to f_mcr.
21276 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
21277 and 12th alternatives' types to f_mcr and f_mrc.
21278 (*movdi_aarch64): Same for 12th and 13th alternatives.
21279 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
21280 (aarch64_movtilow_tilow): Change type to fmov.
21281
21282 2014-06-10 Jiong Wang <jiong.wang@arm.com>
21283
21284 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
21285 (aarch64_save_or_restore_callee_save_registers): Fix layout.
21286
21287 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21288
21289 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
21290 New expander.
21291 (aarch64_sqrdmulh_lane<mode>): Likewise.
21292 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21293 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21294 (aarch64_sqdmulh_laneq<mode>): New expander.
21295 (aarch64_sqrdmulh_laneq<mode>): Likewise.
21296 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
21297 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
21298 (aarch64_sqdmulh_lane<mode>): New expander.
21299 (aarch64_sqrdmulh_lane<mode>): Likewise.
21300 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
21301 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
21302 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
21303 (aarch64_sqdmlal_laneq<mode>): Likewise.
21304 (aarch64_sqdmlsl_lane<mode>): Likewise.
21305 (aarch64_sqdmlsl_laneq<mode>): Likewise.
21306 (aarch64_sqdmlal2_lane<mode>): Likewise.
21307 (aarch64_sqdmlal2_laneq<mode>): Likewise.
21308 (aarch64_sqdmlsl2_lane<mode>): Likewise.
21309 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
21310 (aarch64_sqdmull_lane<mode>): Likewise.
21311 (aarch64_sqdmull_laneq<mode>): Likewise.
21312 (aarch64_sqdmull2_lane<mode>): Likewise.
21313 (aarch64_sqdmull2_laneq<mode>): Likewise.
21314
21315 2014-06-10 Richard Biener <rguenther@suse.de>
21316
21317 PR tree-optimization/61438
21318 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
21319 (eliminate_dom_walker::before_dom_children): Only try to inhibit
21320 insertion of IVs if running PRE.
21321 (eliminate): Adjust.
21322 (pass_pre::execute): Likewise.
21323 (pass_fre::execute): Likewise.
21324
21325 2014-06-10 Richard Biener <rguenther@suse.de>
21326
21327 PR middle-end/61456
21328 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
21329 Do not use the main variant for the type comparison.
21330 (ncr_compar): Likewise.
21331 (nonoverlapping_component_refs_p): Likewise.
21332
21333 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
21334
21335 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
21336 REG_CFA_RESTORE mode.
21337
21338 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
21339
21340 * config/i386/i386.c (expand_vec_perm_pblendv): New.
21341 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
21342 expand_vec_perm_pblendv.
21343
21344 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21345
21346 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
21347 available.
21348 Simplify description of __crc32d and __crc32cd intrinsics.
21349 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
21350 availability.
21351
21352 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
21353
21354 PR lto/61334
21355 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
21356 * config.in: Regenerate.
21357 * configure: Likewise.
21358
21359 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
21360
21361 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
21362 and public vars.
21363 (intersect_static_var_sets): Remove.
21364 (propagate): Do not prune local statics.
21365
21366 2014-06-10 Jakub Jelinek <jakub@redhat.com>
21367
21368 PR fortran/60928
21369 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
21370 Set lastprivate_firstprivate even if omp_private_outer_ref
21371 langhook returns true.
21372 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
21373 langhook, call unshare_expr on new_var and call
21374 build_outer_var_ref to get the last argument.
21375
21376 2014-06-10 Marek Polacek <polacek@redhat.com>
21377
21378 PR c/60988
21379 * doc/extend.texi: Add cindex for transparent_union.
21380
21381 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
21382
21383 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
21384 init_symbolic_number ().
21385
21386 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
21387
21388 PR middle-end/61141
21389 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
21390 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
21391 (verify_rtl_sharing): Likewise.
21392
21393 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
21394
21395 PR c++/54442
21396 * tree.c (build_qualified_type): Use a canonical type for
21397 TYPE_CANONICAL.
21398
21399 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21400
21401 * config/arm/arm-modes.def: Remove XFmode.
21402
21403 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
21404
21405 PR target/61062
21406 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
21407 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
21408 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
21409 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
21410 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
21411 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
21412 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
21413 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
21414 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
21415
21416 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
21417
21418 * tree-core.h (tree_decl_with_vis): Remove section_name.
21419
21420 2014-06-09 Kito Cheng <kito@0xlab.org>
21421
21422 * ira.c (ira): Don't call init_caller_save if LRA enabled
21423 since LRA use its own infrastructure to handle that.
21424
21425 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21426
21427 * symtab.c (dump_symtab_base): Update dumping.
21428 (symtab_make_decl_local): Clear only DECL_COMDAT.
21429 * tree-vect-data-refs.c (Check that variable is static before
21430 tampering with sections.
21431 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
21432 (cgraph_create_virtual_clone): Likewise.
21433 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
21434 (decl_section_name, set_decl_section_name): New accessors.
21435 (find_decls_types_r): Do not walk section name
21436 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
21437 (decl_comdat_group, decl_comdat_group_id): Constify.
21438 (decl_section_name, set_decl_section_name): Update.
21439 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
21440 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
21441 (cgraph_make_node_local_1): Clear section and comdat group.
21442 * cgraph.h (set_comdat_group): Sanity check.
21443 (get_section, set_section): New.
21444 * ipa-comdats.c (ipa_comdats): Use get_section.
21445 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
21446 * lto-streamer-out.c: Do not follow section names.
21447 * c-family/c-common.c (handle_section_attribute): Update.
21448 * lto-cgraph.c (lto_output_node): Output section.
21449 (lto_output_varpool_node): Likewise.
21450 (read_comdat_group): Rename to ...
21451 (read_identifier): ... this one.
21452 (read_string_cst): New function.
21453 (input_node, input_varpool_node): Input section names.
21454 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21455 (new_emutls_decl): Update.
21456 (secname_for_decl): Check section names only of static vars.
21457 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
21458 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
21459 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
21460 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
21461 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
21462 * config/mcore/mcore.c (mcore_unique_section): Likewise.
21463 * config/mips/mips.c (mips16_build_function_stub): Likewise.
21464 * config/v850/v850.c (v850_insert_attributes): Likewise.
21465 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
21466 Likewise.
21467 (h8300_handle_tiny_data_attribute): Likewise.
21468 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
21469 (bfin_handle_l2_attribute): Likewise.
21470
21471 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21472
21473 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
21474 remove static initializer.
21475
21476 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21477
21478 * varasm.c (use_blocks_for_decl_p): Check symbol table
21479 instead of alias attribute.
21480 (place_block_symbol): Recurse on aliases.
21481
21482 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21483
21484 * ipa-visibility.c: Include varasm.h
21485 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
21486
21487 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
21488
21489 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
21490 outputting aliases.
21491
21492 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
21493
21494 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
21495 from test_insn into GGC space escape via SET_SRC.
21496
21497 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
21498
21499 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
21500 call statement, if any.
21501 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
21502 statements, if any. Tidy up.
21503
21504 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21505
21506 PR target/61431
21507 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
21508 iterators, VSX_D that handles 64-bit types, and VSX_LE that
21509 handles swapping the two 64-bit double words on little endian
21510 systems. Include V1TImode and optionally TImode in VSX_LE so that
21511 these types are properly swapped. Change all of the insns and
21512 splits that do the 64-bit swaps to use VSX_LE.
21513 (vsx_le_perm_load_<mode>): Likewise.
21514 (vsx_le_perm_store_<mode>): Likewise.
21515 (splitters for little endian memory operations): Likewise.
21516 (vsx_xxpermdi2_le_<mode>): Likewise.
21517 (vsx_lxvd2x2_le_<mode>): Likewise.
21518 (vsx_stxvd2x2_le_<mode>): Likewise.
21519
21520 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
21521
21522 PR target/61423
21523 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
21524 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
21525 and corresponding splitters. Zero extend general register
21526 or memory input operand to XMM temporary. Enable for
21527 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
21528 (floatunssi<mode>2): Update expander predicate.
21529
21530 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
21531
21532 PR rtl-optimization/61325
21533 * lra-constraints.c (process_address_1): Check scale equal to one
21534 to prevent transformation: base + scale * index => base + new_reg.
21535
21536 2014-06-06 Richard Biener <rguenther@suse.de>
21537
21538 PR tree-optimization/59299
21539 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
21540 a def operand.
21541 (nearest_common_dominator_of_uses): Likewise.
21542 (statement_sink_location): Adjust. Support sinking loads.
21543
21544 2014-06-06 Martin Jambor <mjambor@suse.cz>
21545
21546 * ipa-prop.c (get_place_in_agg_contents_list): New function.
21547 (build_agg_jump_func_from_list): Likewise.
21548 (determine_known_aggregate_parts): Renamed to
21549 determine_locally_known_aggregate_parts. Moved some functionality
21550 to the two functions above, removed bound checks.
21551
21552 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
21553
21554 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
21555 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
21556 (aarch64_progress_pointer): Likewise.
21557 (aarch64_copy_one_part_and_move_pointers): Likewise.
21558 (aarch64_expand_movmen): Likewise.
21559 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
21560 * config/aarch64/aarch64.md (movmem<mode>): New.
21561
21562 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
21563
21564 * targhooks.c (default_add_stmt_cost): Call target specific
21565 hook instead of default one.
21566
21567 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
21568
21569 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
21570 endianness instead of host endianness.
21571 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
21572 comments.
21573
21574 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21575
21576 PR debug/53927
21577 * function.c (instantiate_decls): Process the saved static chain.
21578 (expand_function_start): If not optimizing, save the static chain
21579 onto the stack.
21580 * tree-nested.c (convert_all_function_calls): Always create the static
21581 chain for nested functions if not optimizing.
21582
21583 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21584
21585 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
21586
21587 2014-06-06 Richard Biener <rguenther@suse.de>
21588
21589 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
21590 (construct_init_block): Likewise.
21591 (construct_exit_block): Likewise.
21592 (pass_expand::execute): Likewise.
21593 * graphite.c (graphite_transforms): Replace check for current_loops
21594 with a check for > 1 loops.
21595 (pass_graphite_transforms::execute): Adjust.
21596 * ipa-split.c (split_function): Remove check for current_loops.
21597 * omp-low.c (expand_parallel_call): Likewise.
21598 (expand_omp_for_init_counts): Likewise.
21599 (extract_omp_for_update_vars): Likewise.
21600 (expand_omp_for_generic): Likewise.
21601 (expand_omp_sections): Likewise.
21602 (expand_omp_target): Likewise.
21603 * tracer.c (tail_duplicate): Likewise.
21604 (pass_tracer::execute): Likewise.
21605 * trans-mem.c (expand_transaction): Likewise.
21606 * tree-complex.c (expand_complex_div_wide): Likewise.
21607 * tree-eh.c (lower_resx): Likewise.
21608 (cleanup_empty_eh_merge_phis): Likewise.
21609 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
21610 current_loops with a check for > 1 loops.
21611 (pass_predcom::execute): Adjust.
21612 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
21613 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
21614 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
21615 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
21616 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
21617 * tree-switch-conversion.c (process_switch): Likewise.
21618 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
21619 * tree-vrp.c (vrp_visit_phi_node): Likewise.
21620 (execute_vrp): Likewise.
21621 * ubsan.c (ubsan_expand_null_ifn): Likewise.
21622
21623 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
21624
21625 * rtl.h (insn_location): Declare.
21626 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
21627 with UNKNOWN_LOCATION.
21628 * emit-rtl.c (insn_location): New function.
21629 * final.c (notice_source_line): Check that the instruction has a
21630 location before retrieving it and use insn_location.
21631 * modulo-sched.c (loop_single_full_bb_p): Likewise.
21632 * print-rtl.c (print_rtx): Likewise.
21633
21634 2014-06-06 Richard Biener <rguenther@suse.de>
21635
21636 * passes.def: Move 2nd VRP pass before phi-only-cprop.
21637
21638 2014-06-06 Christian Bruel <christian.bruel@st.com>
21639
21640 PR tree-optimization/43934
21641 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
21642 cost.
21643
21644 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
21645
21646 * ira-lives.c (single_reg_class): Add missing break. Explicitly
21647 return NO_REGS for extra address and memory constraints. Handle
21648 operands that match (or are equivalent to something that matches)
21649 extra constant constraints. Ignore other non-register operands.
21650
21651 2014-06-06 Alan Modra <amodra@gmail.com>
21652
21653 PR target/61300
21654 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
21655 * doc/tm.texi: Regenerate.
21656 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
21657 Use throughout in place of REG_PARM_STACK_SPACE.
21658 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
21659 "incoming" param. Pass to rs6000_function_parms_need_stack.
21660 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
21661 prototype_p when incoming. Use function decl when incoming
21662 to handle K&R style functions.
21663 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
21664 (INCOMING_REG_PARM_STACK_SPACE): Define.
21665
21666 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
21667
21668 PR target/52472
21669 * cfgexpand.c (expand_debug_expr): Use address space of nested
21670 TREE_TYPE for ADDR_EXPR and MEM_REF.
21671
21672 2014-06-05 Jeff Law <law@redhat.com>
21673
21674 PR tree-optimization/61289
21675 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
21676 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
21677 looking for those which match LHS. All callers changed.
21678 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
21679 parameters and code which manipulated them. All callers changed.
21680 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
21681 and DST_MAP parameters. Simplify invalidation code by just calling
21682 invalidate_equivalences. All callers changed.
21683 (thread_across_edge): Simplify now that we don't need to maintain
21684 the map of equivalences to invalidate.
21685
21686 2014-06-05 Kai Tietz <ktietz@redhat.com>
21687 Richard Henderson <rth@redhat.com>
21688
21689 PR target/46219
21690 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
21691 checking for !TARGET_X32.
21692 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
21693 (sibcall_intern): New define_insn, plus required peepholes.
21694 (sibcall_pop_intern): Likewise.
21695 (sibcall_value_intern): Likewise.
21696 (sibcall_value_pop_intern): Likewise.
21697
21698 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
21699
21700 * tree-inline.c (tree_function_versioning): Check DF info existence
21701 before accessing it.
21702
21703 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21704
21705 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
21706 frame_size.
21707 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
21708 aarch64_frame hard_fp_offset and frame_size.
21709 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
21710 frame_size; remove original_frame_size.
21711 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
21712 (aarch64_initial_elimination_offset): Remove frame_size and
21713 offset. Use aarch64_frame frame_size.
21714
21715 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21716 Jiong Wang <jiong.wang@arm.com>
21717 Renlin <renlin.li@arm.com>
21718
21719 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
21720 initialization of R30 offset. Update offset. Iterate core
21721 regisers upto X30. Remove X29, X30 specific code.
21722
21723 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21724 Jiong Wang <jiong.wang@arm.com>
21725
21726 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
21727 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
21728 (aarch64_register_saved_on_entry): Adjust test.
21729
21730 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21731
21732 * config/aarch64/aarch64.h (machine_function): Move
21733 saved_varargs_size from here...
21734 (aarch64_frame): ... to here.
21735
21736 * config/aarch64/aarch64.c (aarch64_expand_prologue)
21737 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
21738 (aarch64_initial_elimination_offset)
21739 (aarch64_setup_incoming_varargs): Adjust location of
21740 saved_varargs_size.
21741
21742 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
21743
21744 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
21745 layout comment.
21746
21747 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
21748 Prachi Godbole <Prachi.Godbole@imgtec.com>
21749
21750 * config/mips/mips-cpus.def: Add definition for p5600. Updated
21751 mips32r5 entry to use PROCESSOR_P5600.
21752 * config/mips/mips-tables.opt: Regenerate.
21753 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
21754 * config/mips/mips.c (mips_fmadd_bypass): New function.
21755 (mips_rtx_cost_data): Add costs for p5600.
21756 (mips_issue_rate): Add support for p5600.
21757 (mips_multipass_dfa_lookahead): Likewise.
21758 * config/mips/mips.h (TUNE_P5600): New define.
21759 (TUNE_MACC_CHAINS): Add TUNE_P5600.
21760 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
21761 * config/mips/mips.md: Include p5600.md.
21762 (processor): Add p5600.
21763 * config/mips/p5600.md: New file.
21764
21765 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
21766
21767 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
21768 * config/i386/predicates.md (palignr_operand): New.
21769 Indicates if permutation is suitable for palignr instruction.
21770
21771 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
21772
21773 PR tree-optimization/61319
21774 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21775 stmt belongs to loop.
21776
21777 2014-06-05 Richard Biener <rguenther@suse.de>
21778
21779 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
21780 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
21781 (lookup_tmp_var): Adjust.
21782 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
21783
21784 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21785
21786 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
21787
21788 2014-06-05 Marek Polacek <polacek@redhat.com>
21789
21790 PR c/49706
21791 * doc/invoke.texi: Document -Wlogical-not-parentheses.
21792
21793 2014-06-04 Tom de Vries <tom@codesourcery.com>
21794
21795 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
21796 CONST_INT.
21797
21798 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
21799
21800 PR tree-optimization/61385
21801 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
21802
21803 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
21804
21805 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
21806 changed to use fatal_error.
21807 (main): Ensure lto_wrapper_cleanup is run atexit.
21808
21809 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21810
21811 * lra-constraints.c (valid_address_p): Move earlier in file.
21812 (address_eliminator): New structure.
21813 (satisfies_memory_constraint_p): New function.
21814 (satisfies_address_constraint_p): Likewise.
21815 (process_alt_operands, process_address, curr_insn_transform): Use them.
21816
21817 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21818
21819 * lra-int.h (lra_static_insn_data): Make operand_alternative a
21820 const pointer.
21821 (target_lra_int, default_target_lra_int, this_target_lra_int)
21822 (op_alt_data): Delete.
21823 * lra.h (lra_init): Delete.
21824 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
21825 (init_insn_code_data_once): Remove op_alt_data handling.
21826 (finish_insn_code_data_once): Likewise.
21827 (init_op_alt_data): Delete.
21828 (get_static_insn_data): Initialize operand_alternative to null.
21829 (free_insn_recog_data): Cast operand_alternative before freeing it.
21830 (setup_operand_alternative): Take the operand_alternative as
21831 parameter and assume it isn't already cached in the static
21832 insn data.
21833 (lra_set_insn_recog_data): Update accordingly.
21834 (lra_init): Delete.
21835 * ira.c (ira_init): Don't call lra_init.
21836 * target-globals.h (this_target_lra_int): Declare.
21837 (target_globals): Remove lra_int.
21838 (restore_target_globals): Update accordingly.
21839 * target-globals.c: Don't include lra-int.h.
21840 (default_target_globals, save_target_globals): Remove lra_int.
21841
21842 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21843
21844 * recog.h (operand_alternative): Convert reg_class, reject,
21845 matched and matches into bitfields.
21846 (preprocess_constraints): New overload.
21847 (preprocess_insn_constraints): New function.
21848 (preprocess_constraints): Take the insn as parameter.
21849 (recog_op_alt): Change into a pointer.
21850 (target_recog): Add x_op_alt.
21851 * recog.c (asm_op_alt): New variable.
21852 (recog_op_alt): Change into a pointer.
21853 (preprocess_constraints): New overload, replacing the old function
21854 definition with one that doesn't use global state.
21855 (preprocess_insn_constraints): New function.
21856 (preprocess_constraints): Use them. Take the insn as parameter.
21857 Use asm_op_alt for asms.
21858 (recog_init): Free existing x_op_alt entries.
21859 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
21860 pointer const.
21861 (make_early_clobber_and_input_conflicts): Likewise.
21862 (process_bb_node_lives): Pass the insn to process_constraints.
21863 * reg-stack.c (check_asm_stack_operands): Likewise.
21864 (subst_asm_stack_regs): Likewise.
21865 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21866 * regrename.c (build_def_use): Likewise.
21867 * sched-deps.c (sched_analyze_insn): Likewise.
21868 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
21869 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
21870 (note_invalid_constants): Likewise.
21871 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21872 (ix86_legitimate_combined_insn): Make operand_alternative pointer
21873 const.
21874
21875 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21876
21877 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
21878 * ira-lives.c (check_and_make_def_conflict): Check for disabled
21879 alternatives.
21880 (make_early_clobber_and_input_conflicts): Likewise.
21881 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21882
21883 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21884
21885 * recog.h (alternative_class): New function.
21886 (which_op_alt): Return a const recog_op_alt.
21887 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
21888 (subst_asm_stack_regs): Likewise.
21889 * config/arm/arm.c (note_invalid_constants): Likewise.
21890 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
21891 the operand_alternative; use alternative class instead.
21892 * sel-sched.c (get_reg_class): Likewise.
21893 * regrename.c (build_def_use): Likewise.
21894 (hide_operands, restore_operands, record_out_operands): Update type
21895 accordingly.
21896
21897 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
21898
21899 * recog.h (recog_op_alt): Convert to a flat array.
21900 (which_op_alt): New function.
21901 * recog.c (recog_op_alt): Convert to a flat array.
21902 (preprocess_constraints): Update accordingly, grouping all
21903 operands of the same alternative together, rather than the
21904 other way around.
21905 * ira-lives.c (check_and_make_def_conflict): Likewise.
21906 (make_early_clobber_and_input_conflicts): Likewise.
21907 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
21908 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
21909 (subst_asm_stack_regs): Likewise.
21910 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
21911 * regrename.c (hide_operands, record_out_operands): Likewise.
21912 (build_def_use): Likewise.
21913 * sel-sched.c (get_reg_class): Likewise.
21914 * config/arm/arm.c (note_invalid_constants): Likewise.
21915
21916 2014-06-04 Jason Merrill <jason@redhat.com>
21917
21918 PR c++/51253
21919 PR c++/61382
21920 * gimplify.c (gimplify_arg): Non-static.
21921 * gimplify.h: Declare it.
21922
21923 2014-06-04 Richard Biener <rguenther@suse.de>
21924
21925 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
21926 TREE_PUBLIC and DECL_EXTERNAL decls.
21927
21928 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
21929
21930 * regcprop.c (copyprop_hardreg_forward_1): Account for
21931 HARD_REGNO_CALL_PART_CLOBBERED.
21932
21933 2014-06-04 Richard Biener <rguenther@suse.de>
21934
21935 * configure.ac: Check whether the underlying type of int64_t
21936 is long or long long.
21937 * configure: Regenerate.
21938 * config.in: Likewise.
21939 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
21940 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
21941
21942 2014-06-04 Richard Biener <rguenther@suse.de>
21943
21944 PR tree-optimization/60098
21945 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
21946 we hit a kill.
21947 (dse_optimize_stmt): Simplify, now that we found a kill
21948 earlier.
21949
21950 2014-06-04 Richard Biener <rguenther@suse.de>
21951
21952 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
21953 of accesses with non-invariant address.
21954
21955 2014-06-04 Martin Liska <mliska@suse.cz>
21956
21957 * cgraph.h (cgraph_make_wrapper): New function introduced.
21958 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
21959 * ipa-inline.h (inline_analyze_function): The function is global.
21960 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
21961
21962 2014-06-04 Martin Liska <mliska@suse.cz>
21963
21964 * tree.h (private_lookup_attribute_starting): New function.
21965 (lookup_attribute_starting): Likewise.
21966 * tree.c (private_lookup_attribute_starting): Likewise.
21967
21968 2014-06-04 Martin Liska <mliska@suse.cz>
21969
21970 * cgraph.h (expand_thunk): New argument added.
21971 (address_taken_from_non_vtable_p): New global function.
21972 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
21973 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
21974 * cgraphunit.c (analyze_function): Likewise.
21975 (assemble_thunks_and_aliases): Argument added to call.
21976 (expand_thunk): New argument forces to produce GIMPLE thunk.
21977
21978 2014-06-04 Martin Liska <mliska@suse.cz>
21979
21980 * coverage.h (coverage_compute_cfg_checksum): Argument added.
21981 * coverage.c (coverage_compute_cfg_checksum): Likewise.
21982 * profile.c (branch_prob): Likewise.
21983
21984 2014-06-04 Martin Jambor <mjambor@suse.cz>
21985
21986 PR ipa/61340
21987 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
21988 handler for switch on an ipa_ref_use enum.
21989 * ipa-reference.c (analyze_function): Likewise.
21990
21991 2014-06-04 Kai Tietz <ktietz@redhat.com>
21992
21993 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
21994 from old call-instruction.
21995
21996 2014-06-04 Bin Cheng <bin.cheng@arm.com>
21997
21998 * config/aarch64/aarch64.c (aarch64_classify_address)
21999 (aarch64_legitimize_reload_address): Support full addressing modes
22000 for vector modes.
22001 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22002 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22003
22004 2014-06-03 Andrew Pinski <apinski@cavium.com>
22005
22006 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22007 for OP0.
22008
22009 2014-06-03 Andrew Pinski <apinski@cavium.com>
22010
22011 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22012 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22013
22014 2014-06-03 Kai Tietz <ktietz@redhat.com>
22015
22016 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22017 for 64-bit ms-abi.
22018
22019 2014-06-03 Dehao Chen <dehao@google.com>
22020
22021 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22022 the same loop.
22023
22024 2014-06-03 Marek Polacek <polacek@redhat.com>
22025
22026 PR c/60439
22027 * doc/invoke.texi: Document -Wswitch-bool.
22028 * function.c (stack_protect_epilogue): Cast controlling expression of
22029 the switch to int.
22030 * gengtype.c (walk_type): Generate switch expression with its
22031 controlling expression cast to int.
22032
22033 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
22034
22035 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22036 and attiny841.
22037 * config/avr/avr-tables.opt: Regenerate.
22038 * config/avr/t-multilib: Regenerate.
22039 * doc/avr-mmcu.texi: Regenerate.
22040
22041 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
22042 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22043
22044 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22045 (ata6617c, ata664251): Add new avr35 devices.
22046 (ata6612c): Add new avr4 device.
22047 (ata6613c, ata6614q): Add new avr5 devices.
22048 * config/avr/avr-tables.opt: Regenerate.
22049 * config/avr/t-multilib: Regenerate.
22050 * doc/avr-mmcu.texi: Regenerate.
22051
22052 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22053
22054 * gcc/config/aarch64/aarch64-builtins.c
22055 (aarch64_types_binop_ssu_qualifiers): New static data.
22056 (TYPES_BINOP_SSU): Define.
22057 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22058 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22059 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22060 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22061 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22062 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22063 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22064 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22065 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22066 suffix to builtin function name, remove cast.
22067 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22068 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22069 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22070
22071 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22072
22073 * gcc/config/aarch64/aarch64-builtins.c
22074 (aarch64_types_binop_uus_qualifiers,
22075 aarch64_types_shift_to_unsigned_qualifiers,
22076 aarch64_types_unsigned_shiftacc_qualifiers): Define.
22077 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22078 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22079 sqshlu_n, uqshl_n): Update qualifiers.
22080 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22081 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22082 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22083 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22084 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22085 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22086 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22087 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22088 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22089 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22090 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22091 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22092 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22093 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22094 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22095 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22096 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22097 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22098 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
22099 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
22100 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
22101 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
22102 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
22103 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
22104 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
22105 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
22106 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
22107
22108 2014-06-03 Teresa Johnson <tejohnson@google.com>
22109
22110 * tree-sra.c (modify_function): Record caller nodes after rebuild.
22111
22112 2014-06-02 Jason Merrill <jason@redhat.com>
22113
22114 PR c++/61020
22115 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
22116
22117 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22118
22119 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
22120 location == 0.
22121
22122 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22123
22124 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
22125 New pattern.
22126 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
22127 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
22128 * config/aarch64/iterators.md (REVERSE): New iterator.
22129 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
22130 (rev_op): New int_attribute.
22131 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
22132 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
22133 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
22134 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
22135 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
22136 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
22137 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
22138 Replace temporary __asm__ with __builtin_shuffle.
22139
22140 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22141
22142 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
22143 mips64r5.
22144 * config/mips/mips-tables.opt: Regenerate.
22145 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
22146 to use mips_isa_rev rather than ISA_MIPS32R2.
22147 * config/mips/mips.h (ISA_MIPS32R3): New define.
22148 (ISA_MIPS32R5): New define.
22149 (ISA_MIPS64R3): New define.
22150 (ISA_MIPS64R5): New define.
22151 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
22152 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
22153 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
22154 and mips64r5.
22155 (MIPS_ISA_SYNCI_SPEC): Likewise.
22156 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
22157 (LINK_SPEC): Added mips32r3 and mips32r5.
22158 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
22159 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
22160 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
22161 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
22162 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
22163 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
22164 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
22165
22166 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22167
22168 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
22169 options.
22170 * config/mips/mips.opt (mxpa): New option.
22171 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
22172 assembler.
22173
22174 2014-06-03 Martin Jambor <mjambor@suse.cz>
22175
22176 PR ipa/61160
22177 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
22178 thunks.
22179
22180 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
22181
22182 PR tree-optimization/61328
22183 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
22184 initialization from find_bswap_or_nop_1.
22185 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
22186 in source_expr2 before using the size value the function sets. Also
22187 make use of init_symbolic_number () in both the old place and
22188 find_bswap_or_nop_load () to avoid reading uninitialized memory when
22189 doing recursion in the GIMPLE_BINARY_RHS case.
22190
22191 2014-06-03 Richard Biener <rguenther@suse.de>
22192
22193 PR tree-optimization/61383
22194 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
22195 stmts can't trap.
22196
22197 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
22198
22199 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
22200 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
22201 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
22202 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
22203 in this file.
22204 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
22205 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
22206 * system.h: ...here and make it unconditional.
22207 * target.def (conditional_register_usage): Mention
22208 define_register_constraint instead of old-style constraint macros.
22209 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
22210 * doc/tm.texi: Regenerate.
22211 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
22212 protected by !USE_MD_CONSTRAINTS.
22213 * config/frv/frv.md: Remove quote from old version of documentation.
22214 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
22215 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
22216 CONST_DOUBLE_OK_FOR_LETTER.
22217 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
22218
22219 2014-06-02 Andrew Pinski <apinski@cavium.com>
22220
22221 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
22222 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
22223 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
22224 file whose name depends on -mabi= and -mbig-endian.
22225 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
22226 Handle LP64 better and handle ilp32 too.
22227 (MULTILIB_OPTIONS): Delete.
22228 (MULTILIB_DIRNAMES): Delete.
22229
22230 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
22231
22232 * expr.h: Remove prototypes of functions defined in builtins.c.
22233 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
22234 Remove prototypes of functions defined in builtins.c.
22235 * builtins.h: Update prototype list to include all exported functions.
22236 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
22237 no_c99_libc_has_function): Move to targhooks.c
22238 (build_string_literal, build_call_expr_loc_array,
22239 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
22240 to tree.c.
22241 (expand_builtin_object_size, fold_builtin_object_size): Make static.
22242 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
22243 no_c99_libc_has_function): Relocate from builtins.c.
22244 * tree.c: Include builtins.h.
22245 (build_call_expr_loc_array, build_call_expr_loc_vec,
22246 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
22247 from builtins.c.
22248 * fold-const.h (fold_fma): Move prototype to builtins.h.
22249 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
22250 * asan.c: Include builtins.h.
22251 * cfgexpand.c: Likewise.
22252 * convert.c: Likewise.
22253 * emit-rtl.c: Likewise.
22254 * except.c: Likewise.
22255 * expr.c: Likewise.
22256 * fold-const.c: Likewise.
22257 * gimple-fold.c: Likewise.
22258 * gimple-ssa-strength-reduction.c: Likewise.
22259 * gimplify.c: Likewise.
22260 * ipa-inline.c: Likewise.
22261 * ipa-prop.c: Likewise.
22262 * lto-streamer-out.c: Likewise.
22263 * stmt.c: Likewise.
22264 * tree-inline.c: Likewise.
22265 * tree-object-size.c: Likewise.
22266 * tree-sra.c: Likewise.
22267 * tree-ssa-ccp.c: Likewise.
22268 * tree-ssa-forwprop.c: Likewise.
22269 * tree-ssa-loop-ivcanon.c: Likewise.
22270 * tree-ssa-loop-ivopts.c: Likewise.
22271 * tree-ssa-math-opts.c: Likewise.
22272 * tree-ssa-reassoc.c: Likewise.
22273 * tree-ssa-threadedge.c: Likewise.
22274 * tree-streamer-in.c: Likewise.
22275 * tree-vect-data-refs.c: Likewise.
22276 * tree-vect-patterns.c: Likewise.
22277 * tree-vect-stmts.c: Likewise.
22278 * config/aarch64/aarch64.c: Likewise.
22279 * config/alpha/alpha.c: Likewise.
22280 * config/arc/arc.c: Likewise.
22281 * config/arm/arm.c: Likewise.
22282 * config/avr/avr.c: Likewise.
22283 * config/bfin/bfin.c: Likewise.
22284 * config/c6x/c6x.c: Likewise.
22285 * config/cr16/cr16.c: Likewise.
22286 * config/cris/cris.c: Likewise.
22287 * config/epiphany/epiphany.c: Likewise.
22288 * config/fr30/fr30.c: Likewise.
22289 * config/frv/frv.c: Likewise.
22290 * config/h8300/h8300.c: Likewise.
22291 * config/i386/i386.c: Likewise.
22292 * config/i386/winnt.c: Likewise.
22293 * config/ia64/ia64.c: Likewise.
22294 * config/iq2000/iq2000.c: Likewise.
22295 * config/lm32/lm32.c: Likewise.
22296 * config/m32c/m32c.c: Likewise.
22297 * config/m32r/m32r.c: Likewise.
22298 * config/m68k/m68k.c: Likewise.
22299 * config/mcore/mcore.c: Likewise.
22300 * config/mep/mep.c: Likewise.
22301 * config/microblaze/microblaze.c: Likewise.
22302 * config/mips/mips.c: Likewise.
22303 * config/mmix/mmix.c: Likewise.
22304 * config/mn10300/mn10300.c: Likewise.
22305 * config/moxie/moxie.c: Likewise.
22306 * config/msp430/msp430.c: Likewise.
22307 * config/nds32/nds32.c: Likewise.
22308 * config/pa/pa.c: Likewise.
22309 * config/pdp11/pdp11.c: Likewise.
22310 * config/picochip/picochip.c: Likewise.
22311 * config/rl78/rl78.c: Likewise.
22312 * config/rs6000/rs6000.c: Likewise.
22313 * config/rx/rx.c: Likewise.
22314 * config/s390/s390.c: Likewise.
22315 * config/score/score.c: Likewise.
22316 * config/sh/sh.c: Likewise.
22317 * config/sparc/sparc.c: Likewise.
22318 * config/spu/spu.c: Likewise.
22319 * config/stormy16/stormy16.c: Likewise.
22320 * config/tilegx/tilegx.c: Likewise.
22321 * config/tilepro/tilepro.c: Likewise.
22322 * config/v850/v850.c: Likewise.
22323 * config/vax/vax.c: Likewise.
22324 * config/xtensa/xtensa.c: Likewise.
22325
22326 2014-06-02 Jeff Law <law@redhat.com>
22327
22328 PR rtl-optimization/61094
22329 * ree.c (combine_reaching_defs): Do not reextend an insn if it
22330 was marked as do_no_reextend. If a copy is needed to eliminate
22331 an extension, then mark it as do_not_reextend.
22332
22333 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
22334
22335 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
22336
22337 2014-06-02 Richard Henderson <rth@redhat.com>
22338
22339 PR target/61336
22340 * config/alpha/alpha.c (print_operand_address): Allow symbolic
22341 addresses inside asms. Use output_operand_lossage instead of
22342 gcc_unreachable.
22343
22344 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
22345
22346 PR target/61239
22347 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
22348 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
22349
22350 2014-06-02 Tom de Vries <tom@codesourcery.com>
22351
22352 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
22353 case that x has VOIDmode.
22354
22355 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
22356
22357 * varasm.c (copy_constant): Delete function.
22358 (build_constant_desc): Don't call it.
22359
22360 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22361
22362 PR target/61154
22363 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
22364 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
22365 with immediate_operand.
22366
22367 2014-06-02 Andreas Schwab <schwab@suse.de>
22368
22369 * config/ia64/ia64.c
22370 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
22371 pending_data_specs first.
22372
22373 2014-06-02 Richard Biener <rguenther@suse.de>
22374
22375 PR tree-optimization/61378
22376 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
22377 valueized_anything.
22378
22379 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
22380
22381 * config/i386/constraints.md (Bw): Rename from 'w'.
22382 (Bz): Rename from 'z'.
22383 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
22384
22385 2014-06-01 Kai Tietz <ktietz@redhat.com>
22386
22387 PR target/61377
22388 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
22389 * config/i386/i386.md (sibcall_insn_operand): Use Bs
22390 instead of m constraint.
22391
22392 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
22393
22394 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
22395 a separate alternative where the scratch operand 2 is marked as
22396 early clobber.
22397
22398 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
22399
22400 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
22401 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
22402 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
22403 and __builtins_arm_get_fpscr.
22404 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
22405 __builtins_arm_get_fpscr.
22406 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
22407 __builtins_arm_ldfpscr.
22408 (arm_atomic_assign_expand_fenv): New function.
22409 * config/arm/vfp.md (set_fpscr): New pattern.
22410 (get_fpscr) : Likewise.
22411 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
22412 VUNSPEC_SET_FPSCR.
22413 * doc/extend.texi (AARCH64 Built-in Functions) : Document
22414 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
22415
22416 2014-05-30 Jakub Jelinek <jakub@redhat.com>
22417
22418 * asan.c (report_error_func): Add SLOW_P argument, use
22419 BUILT_IN_ASAN_*_N if set.
22420 (build_check_stmt): Likewise.
22421 (instrument_derefs): If T has insufficient alignment,
22422 force same handling as for odd sizes.
22423
22424 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
22425 BUILT_IN_ASAN_REPORT_STORE_N): New.
22426 * asan.c (struct asan_mem_ref): Change access_size type to
22427 HOST_WIDE_INT.
22428 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
22429 update_mem_ref_hash_table): Likewise.
22430 (asan_mem_ref_hasher::hash): Hash in a HWI.
22431 (report_error_func): Change size_in_bytes argument to HWI.
22432 Use *_N builtins if size_in_bytes is larger than 16 or not power of
22433 two.
22434 (build_shadow_mem_access): New function.
22435 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
22436 Handle size_in_bytes not power of two or larger than 16.
22437 (instrument_derefs): Don't give up if size_in_bytes is not
22438 power of two or is larger than 16.
22439
22440 2014-05-30 Kai Tietz <ktietz@redhat.com>
22441
22442 PR target/60104
22443 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
22444 for sibling-tail-calls.
22445 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
22446 to its use.
22447 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
22448 (sibcall_insn_operand): Add check for sibcall_memory_operand.
22449
22450 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22451
22452 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
22453 * config/avr/avr-tables.opt: Regenerate.
22454 * config/avr/t-multilib: Regenerate.
22455 * doc/avr-mmcu.texi: Regenerate.
22456
22457 2014-05-30 Ian Lance Taylor <iant@google.com>
22458
22459 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
22460 target("sse").
22461
22462 2014-05-30 Tom de Vries <tom@codesourcery.com>
22463
22464 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
22465 Redefine as true.
22466
22467 2014-05-30 Tom de Vries <tom@codesourcery.com>
22468
22469 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22470 * lra.c (initialize_lra_reg_info_element): Add init of
22471 actual_call_used_reg_set field.
22472 (lra): Call lra_create_live_ranges before lra_inheritance for
22473 -fuse-caller-save.
22474 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22475 -fuse-caller-save.
22476 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
22477 instead of call_used_reg_set for -fuse-caller-save.
22478 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22479
22480 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22481
22482 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
22483 to mov_imm.
22484 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
22485
22486 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
22487
22488 * ira.c (ira_get_dup_out_num): Check for output operands at
22489 the start of the loop. Handle cases where an included alternative
22490 follows an excluded one.
22491
22492 2014-05-29 Mike Stump <mikestump@comcast.net>
22493
22494 PR debug/61352
22495 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
22496 post ld passes when lto is used.
22497
22498 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
22499
22500 PR rtl-optimization/61325
22501 * lra-constraints.c (process_address): Rename to process_address_1.
22502 (process_address): New function.
22503
22504 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
22505
22506 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
22507 TYPES_BINOPV): New static data.
22508 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
22509 New builtin.
22510 * config/aarch64/aarch64-simd.md (aarch64_ext,
22511 aarch64_im_lane_boundsi): New patterns.
22512 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
22513 patterns for EXT.
22514 (aarch64_evpc_ext): New function.
22515
22516 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
22517
22518 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
22519 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
22520 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
22521 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
22522 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
22523
22524 2014-05-29 Tom de Vries <tom@codesourcery.com>
22525
22526 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
22527
22528 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
22529 Richard Sandiford <rdsandiford@googlemail.com>
22530
22531 * arm/iterators.md (shiftable_ops): New code iterator.
22532 (t2_binop0, arith_shift_insn): New code attributes.
22533 * arm/predicates.md (shift_nomul_operator): New predicate.
22534 * arm/arm.md (insn_enabled): Delete.
22535 (enabled): Remove insn_enabled test.
22536 (*arith_shiftsi): Delete. Replace with ...
22537 (*<arith_shift_insn>_multsi): ... new pattern.
22538 (*<arith_shift_insn>_shiftsi): ... new pattern.
22539 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
22540
22541 2014-05-29 Radovan Obradovic <robradovic@mips.com>
22542 Tom de Vries <tom@codesourcery.com>
22543
22544 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
22545 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
22546 clobber.
22547 (mips_split_call): Use POST_CALL_TMP_REG.
22548 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
22549
22550 2014-05-29 Tom de Vries <tom@codesourcery.com>
22551
22552 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
22553 with #ifdef STACK_REGS.
22554
22555 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
22556
22557 * varasm.c (get_variable_section): Walk aliases.
22558 (place_block_symbol): Walk aliases.
22559
22560 2014-05-28 Tom de Vries <tom@codesourcery.com>
22561
22562 Revert:
22563 2014-05-28 Tom de Vries <tom@codesourcery.com>
22564
22565 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22566 * lra.c (initialize_lra_reg_info_element): Add init of
22567 actual_call_used_reg_set field.
22568 (lra): Call lra_create_live_ranges before lra_inheritance for
22569 -fuse-caller-save.
22570 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22571 -fuse-caller-save.
22572 * lra-constraints.c (need_for_call_save_p): Use
22573 actual_call_used_reg_set instead of call_used_reg_set for
22574 -fuse-caller-save.
22575 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22576
22577 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22578
22579 * doc/md.texi: Document that the % constraint character must
22580 be at the beginning of the string.
22581 * genoutput.c (validate_insn_alternatives): Check that '=',
22582 '+' and '%' only appear at the beginning of a constraint.
22583 * ira.c (commutative_constraint_p): Delete.
22584 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
22585 at the start of the string.
22586 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
22587 duplicate '='s.
22588 * config/arm/neon.md (bicdi3_neon): Likewise.
22589 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
22590 (slt_si, sltu_si): Likewise.
22591 * config/vax/vax.md (sbcdi3): Likewise.
22592 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
22593 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
22594 (mul64): Move '%' to beginning of constraint.
22595 * config/arm/arm.md (*xordi3_insn): Likewise.
22596 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
22597 (xorsi3): Likewise.
22598
22599 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22600
22601 * doc/md.texi: Document the restrictions on the "enabled" attribute.
22602
22603 2014-05-28 Jason Merrill <jason@redhat.com>
22604
22605 PR c++/47202
22606 * cgraph.h (symtab_node::get_comdat_group_id): New.
22607 * cgraphunit.c (analyze_functions): Call it.
22608 * symtab.c (dump_symtab_node): Likewise.
22609 * tree.c (decl_comdat_group_id): New.
22610 * tree.h: Declare it.
22611 * lto-streamer-out.c (write_symbol): Use it.
22612 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
22613
22614 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
22615
22616 PR bootstrap/PR61146
22617 * wide-int.cc: Do not include longlong.h when compiling with clang.
22618
22619 2014-05-28 Richard Biener <rguenther@suse.de>
22620
22621 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
22622 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
22623 (vrp_visit_assignment_or_call): Print less vertical space.
22624 (vrp_visit_stmt): Likewise.
22625 (vrp_visit_phi_node): Likewise. For a PHI argument with
22626 VR_VARYING range consider recording it as copy.
22627
22628 2014-05-28 Richard Biener <rguenther@suse.de>
22629
22630 Revert
22631 2014-05-28 Richard Biener <rguenther@suse.de>
22632
22633 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22634
22635 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22636
22637 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
22638 sufficiently aligned and an offset is used at the same time.
22639 (expand_expr_real_1): Likewise.
22640
22641 2014-05-28 Richard Biener <rguenther@suse.de>
22642
22643 PR middle-end/61045
22644 * fold-const.c (fold_comparison): When folding
22645 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
22646 the sign of the remaining constant operand stays the same.
22647
22648 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
22649
22650 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
22651 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
22652 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
22653 to the assembler.
22654 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
22655 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
22656 (m32bit-doubles) Likewise.
22657 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
22658 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
22659 option for RL78.
22660
22661 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22662
22663 * configure.ac ($gcc_cv_ld_clearcap): New test.
22664 * configure: Regenerate.
22665 * config.in: Regenerate.
22666 * config/sol2.opt (mclear-hwcap): New option.
22667 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
22668 * config/sol2-clearcap.map: Moved here from
22669 testsuite/gcc.target/i386/clearcap.map.
22670 * config/sol2-clearcapv2.map: Move here from
22671 gcc.target/i386/clearcapv2.map.
22672 * config/t-sol2 (install): Depend on install-clearcap-map.
22673 (install-clearcap-map): New target.
22674 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
22675 -mclear-hwcap.
22676
22677 2014-05-28 Richard Biener <rguenther@suse.de>
22678
22679 * hwint.h (*_HALF_WIDE_INT*): Move to ...
22680 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
22681 ... here and remove the rest.
22682 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22683
22684 2014-05-28 Richard Biener <rguenther@suse.de>
22685
22686 PR tree-optimization/61335
22687 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
22688 new range fails, drop to varying.
22689
22690 2014-05-28 Olivier Hainque <hainque@adacore.com>
22691
22692 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
22693 (CPP_SPEC): Add entry for -mcpu=8548.
22694 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
22695 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
22696
22697 2014-05-28 Tom de Vries <tom@codesourcery.com>
22698
22699 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
22700 * lra.c (initialize_lra_reg_info_element): Add init of
22701 actual_call_used_reg_set field.
22702 (lra): Call lra_create_live_ranges before lra_inheritance for
22703 -fuse-caller-save.
22704 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
22705 -fuse-caller-save.
22706 * lra-constraints.c (need_for_call_save_p): Use
22707 actual_call_used_reg_set instead of call_used_reg_set for
22708 -fuse-caller-save.
22709 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
22710
22711 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22712 Tom de Vries <tom@codesourcery.com>
22713
22714 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
22715 to gccoptlist.
22716 (@item -fuse-caller-save): New item.
22717
22718 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22719 Tom de Vries <tom@codesourcery.com>
22720
22721 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
22722 OPT_fuse_caller_save.
22723
22724 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22725 Tom de Vries <tom@codesourcery.com>
22726
22727 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
22728 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
22729 get_call_reg_set_usage.
22730 * resource.c (mark_set_resources, mark_target_live_regs): Use
22731 get_call_reg_set_usage.
22732 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
22733 field.
22734 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
22735 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
22736 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22737 * ira-build.c (ira_create_allocno): Init
22738 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22739 (create_cap_allocno, propagate_allocno_info)
22740 (propagate_some_info_from_allocno)
22741 (copy_info_to_removed_store_destinations): Handle
22742 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
22743 * ira-costs.c (ira_tune_allocno_costs): Use
22744 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
22745
22746 2014-05-28 Radovan Obradovic <robradovic@mips.com>
22747 Tom de Vries <tom@codesourcery.com>
22748
22749 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
22750 and function_used_regs_valid fields.
22751 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
22752 find_all_hard_reg_sets.
22753 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
22754 (get_call_reg_set_usage): New function.
22755 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
22756 * regs.h (get_call_reg_set_usage): Declare.
22757
22758 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22759
22760 PR libgcc/61152
22761 * config/dbx.h (License): Add Runtime Library Exception.
22762 * config/newlib-stdint.h (License): Same.
22763 * config/rtems.h (License): Same
22764 * config/initfini-array.h (License): Same
22765 * config/v850/v850.h (License): Same.
22766 * config/v850/v850-opts.h (License): Same
22767 * config/v850/rtems.h (License): Same.
22768
22769 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
22770
22771 PR target/61044
22772 * doc/extend.texi (Local Labels): Note that label differences are
22773 not supported for AVR.
22774
22775 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
22776 Olivier Hainque <hainque@adacore.com>
22777
22778 * rtl.h (set_for_reg_notes): Declare.
22779 * emit-rtl.c (set_for_reg_notes): New function.
22780 (set_unique_reg_note): Use it.
22781 * optabs.c (add_equal_note): Likewise
22782
22783 2014-05-27 Andrew Pinski <apinski@cavium.com>
22784
22785 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
22786 Use <w> for the register in assembly template.
22787 (stack_protect_test): Use the mode of operands[0] for the result.
22788 (stack_protect_test_<mode>): Use <w> for the register
22789 in assembly template.
22790
22791 2014-05-27 DJ Delorie <dj@redhat.com>
22792
22793 * config/rx/rx.c (add_vector_labels): New.
22794 (rx_output_function_prologue): Call it.
22795 (rx_handle_func_attribute): Don't require empty arguments.
22796 (rx_handle_vector_attribute): New.
22797 (rx_attribute_table): Add "vector" attribute.
22798 * doc/extend.texi (interrupt, vector): Document new/changed
22799 RX-specific attributes.
22800
22801 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
22802
22803 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
22804
22805 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
22806 predicate to detect a negative quotient.
22807
22808 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
22809
22810 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
22811 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
22812 Add X - Y CMP 0 to X CMP Y transformation.
22813 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
22814
22815 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
22816
22817 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
22818 before printing.
22819
22820 2014-05-27 Steve Ellcey <sellcey@mips.com>
22821
22822 * config/mips/mips.c: Add include of cgraph.h.
22823
22824 2014-05-27 Richard Biener <rguenther@suse.de>
22825
22826 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
22827
22828 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
22829
22830 PR libgcc/61152
22831 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
22832 * config/arm/arm-cores.def (License): Same.
22833 * config/arm/arm-opts.h (License): Same.
22834 * config/arm/aout.h (License): Same.
22835 * config/arm/bpabi.h (License): Same.
22836 * config/arm/elf.h (License): Same.
22837 * config/arm/linux-elf.h (License): Same.
22838 * config/arm/linux-gas.h (License): Same.
22839 * config/arm/netbsd-elf.h (License): Same.
22840 * config/arm/uclinux-eabi.h (License): Same.
22841 * config/arm/uclinux-elf.h (License): Same.
22842 * config/arm/vxworks.h (License): Same.
22843
22844 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22845
22846 * config/arm/neon.md (neon_bswap<mode>): New pattern.
22847 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
22848 (arm_init_neon_builtins): Handle NEON_BSWAP.
22849 Define required type nodes.
22850 (arm_expand_neon_builtin): Handle NEON_BSWAP.
22851 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
22852 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
22853 * config/arm/iterators.md (VDQHSD): New mode iterator.
22854
22855 2014-05-27 Richard Biener <rguenther@suse.de>
22856
22857 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
22858 Try using literal operands when comparing value-ranges failed.
22859
22860 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22861
22862 * ira.c (commutative_operand): Adjust for change to recog_data.
22863 [Missing from previous commit.]
22864
22865 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22866
22867 * system.h (TEST_BIT): New macro.
22868 * recog.h (alternative_mask): New type.
22869 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
22870 (recog_data_d): Replace alternative_enabled_p array with
22871 enabled_alternatives.
22872 (target_recog): New structure.
22873 (default_target_recog, this_target_recog): Declare.
22874 (get_enabled_alternatives, recog_init): Likewise.
22875 * recog.c (default_target_recog, this_target_recog): New variables.
22876 (get_enabled_alternatives): New function.
22877 (extract_insn): Use it.
22878 (recog_init): New function.
22879 (preprocess_constraints, constrain_operands): Adjust for change to
22880 recog_data.
22881 * postreload.c (reload_cse_simplify_operands): Likewise.
22882 * reload.c (find_reloads): Likewise.
22883 * ira-costs.c (record_reg_classes): Likewise.
22884 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
22885 all alternatives after a disabled one would be skipped.
22886 (ira_implicitly_set_insn_hard_regs): Likewise.
22887 * ira.c (ira_setup_alts): Adjust for change to recog_data.
22888 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
22889 with enabled_alternatives.
22890 * lra.c (free_insn_recog_data): Update accordingly.
22891 (lra_update_insn_recog_data): Likewise.
22892 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
22893 * lra-constraints.c (process_alt_operands): Likewise. Handle
22894 only_alternative as part of the enabled mask.
22895 * target-globals.h (this_target_recog): Declare.
22896 (target_globals): Add a recog field.
22897 (restore_target_globals): Restore this_target_recog.
22898 * target-globals.c: Include recog.h.
22899 (default_target_globals): Initialize recog field.
22900 (save_target_globals): Likewise.
22901 * reginfo.c (reinit_regs): Call recog_init.
22902 * toplev.c (backend_init_target): Likewise.
22903
22904 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
22905
22906 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
22907 rather than any named insn's code.
22908
22909 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
22910
22911 PR libgcc/61152
22912 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
22913 * config/arm/arm-cores.def (License): Same.
22914
22915 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
22916
22917 * tree.h (decl_comdat_group): Declare.
22918 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
22919 * tree.c (decl_comdat_group): Here.
22920
22921 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
22922
22923 PR rtl-optimization/61222
22924 * combine.c (simplify_shift_const_1): When moving a PLUS outside
22925 the shift, truncate the PLUS operand to the result mode.
22926
22927 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
22928
22929 PR target/61271
22930 * config/i386/i386.c (ix86_rtx_costs)
22931 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
22932 Fix condition.
22933
22934 2014-05-26 Martin Jambor <mjambor@suse.cz>
22935
22936 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
22937 subreg uses.
22938
22939 2014-05-26 Richard Biener <rguenther@suse.de>
22940
22941 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
22942 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
22943 Provide specializations.
22944 (wi::int_traits <HOST_WIDE_INT>,
22945 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
22946
22947 2014-05-26 Alan Modra <amodra@gmail.com>
22948
22949 PR target/61098
22950 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
22951 params and return a bool. Remove dead code. Update comment.
22952 Assert we have a const_int source. Remove bogus code from
22953 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
22954 handling of constants > 2G and reg_equal note, from..
22955 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
22956 return value. Update comment. If we can, use a new pseudo
22957 for intermediate calculations.
22958 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
22959 prototype.
22960 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
22961 call to rs6000_emit_set_const in splitter.
22962 (movdi_internal64+2, +3): Likewise.
22963
22964 2014-05-26 Richard Biener <rguenther@suse.de>
22965
22966 * system.h: Define __STDC_FORMAT_MACROS before
22967 including inttypes.h.
22968 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
22969 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
22970 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
22971 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
22972 HOST_WIDEST_INT_C): Remove.
22973 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
22974 if C99 inttypes.h is not available.
22975 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
22976 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
22977 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
22978 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
22979 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
22980 (struct output_info): Likewise.
22981 (print_statistics): Adjust.
22982 (dump_bitmap_statistics): Likewise.
22983 * bt-load.c (migrate_btr_defs): Print with PRId64.
22984 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
22985 (MAX_SAFE_MULTIPLIER): Adjust.
22986 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
22987 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
22988 dump_cgraph_node): Likewise.
22989 * final.c (dump_basic_block_info): Likewise.
22990 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
22991 * gcov.c (format_gcov): Likewise.
22992 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
22993 for calculation.
22994 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
22995 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
22996 (inline_small_functions, dump_overall_stats, dump_inline_stats):
22997 Use PRId64 for dumping.
22998 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
22999 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23000 (add_allocno_hard_regs): Adjust.
23001 * loop-doloop.c (doloop_modify): Print using PRId64.
23002 * loop-iv.c (inverse): Compute in uint64_t.
23003 (determine_max_iter, iv_number_of_iterations): Likewise.
23004 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23005 Print using PRId64.
23006 * lto-streamer-out.c (write_symbol): Use uint64_t.
23007 * mcf.c (CAP_INFINITY): Use int64_t maximum.
23008 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23009 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23010 * modulo-sched.c (const_iteration_count): Use int64_t.
23011 (sms_schedule): Dump using PRId64.
23012 * predict.c (dump_prediction): Likewise.
23013 * pretty-print.h (pp_widest_integer): Remove.
23014 * profile.c (get_working_sets, is_edge_inconsistent,
23015 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23016 * tree-pretty-print.c (pp_double_int): Remove case handling
23017 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23018 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23019 and adjust users.
23020 (pass_optimize_bswap::execute): Remove restriction on hosts.
23021 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23022 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23023 * tree.c (widest_int_cst_value): Remove.
23024 * tree.h (widest_int_cst_value): Likewise.
23025 * value-prof.c (dump_histogram_value): Print using PRId64.
23026 * gengtype.c (main): Also inject int64_t.
23027 * ggc-page.c (struct max_alignment): Use int64_t.
23028 * alloc-pool.c (struct allocation_object_def): Likewise.
23029 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23030 for computation.
23031 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23032 * doc/tm.texi: Regenerated.
23033 * gengtype-lex.l (IWORD): Handle [u]int64_t.
23034 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23035 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23036 mmix_output_register_setting): Use [u]int64_t in prototypes.
23037 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23038 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23039 mmix_output_octa, mmix_output_shifted_value): Adjust.
23040 (mmix_intval): Adjust. Remove unreachable case.
23041 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23042
23043 2014-05-26 Richard Biener <rguenther@suse.de>
23044
23045 * configure.ac: Drop __int64 type check. Insist that we
23046 found uint64_t and int64_t.
23047 * hwint.h (HOST_BITS_PER___INT64): Remove.
23048 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23049 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23050 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23051 (HOST_WIDEST_FAST_INT): Remove __int64 case.
23052 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23053 for dst_q_src_df_rms_cdt.
23054 * configure: Regenerate.
23055 * config.in: Likewise.
23056
23057 2014-05-26 Michael Tautschnig <mt@debian.org>
23058
23059 PR target/61249
23060 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23061 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23062
23063 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23064
23065 PR rtl-optimization/61278
23066 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23067
23068 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23069
23070 PR rtl-optimization/61220
23071 Part of PR rtl-optimization/61225
23072 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23073 insn; skip split_edge for a block with only one successor.
23074
23075 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23076
23077 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23078 for variables.
23079
23080 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23081
23082 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23083 (update_vtable_references): New function.
23084 (function_and_variable_visibility): Rewrite also vtable initializers.
23085 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23086
23087 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23088
23089 * ggc.h (ggc_grow): New function.
23090 * ggc-none.c (ggc_grow): New function.
23091 * ggc-page.c (ggc_grow): Likewise.
23092
23093 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23094
23095 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23096 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23097 comdat_can_be_unshared_p, cgraph_externally_visible_p,
23098 varpool_externally_visible_p, can_replace_by_local_alias,
23099 update_visibility_by_resolution_info, function_and_variable_visibility,
23100 pass_data_ipa_function_and_variable_visibility,
23101 make_pass_ipa_function_and_variable_visibility,
23102 whole_program_function_and_variable_visibility,
23103 pass_data_ipa_whole_program_visibility,
23104 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
23105 * cgraph.h (cgraph_local_node_p): Declare.
23106 * ipa-visibility.c: New file.
23107 * Makefile.in (OBJS): Add ipa-visiblity.o
23108
23109 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23110
23111 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
23112 that var decl is available.
23113
23114 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23115
23116 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
23117 symtab_node pointer.
23118 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
23119 (find_decls_types_r): Do not walk COMDAT_GROUP.
23120 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
23121 * varasm.c (make_decl_one_only): Use set_comdat_group;
23122 create node if needed.
23123 * ipa-inline-transform.c (save_inline_function_body): Update
23124 way we decl->symtab mapping.
23125 * symtab.c (symtab_hash, hash_node, eq_node
23126 symtab_insert_node_to_hashtable): Remove.
23127 (symtab_register_node): Update.
23128 (symtab_unregister_node): Update.
23129 (symtab_get_node): Reimplement as inline function.
23130 (symtab_add_to_same_comdat_group): Update.
23131 (symtab_dissolve_same_comdat_group_list): Update.
23132 (dump_symtab_base): Update.
23133 (verify_symtab_base): Update.
23134 (symtab_make_decl_local): Update.
23135 (fixup_same_cpp_alias_visibility): Update.
23136 (symtab_nonoverwritable_alias): Update.
23137 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
23138 * ipa.c (update_visibility_by_resolution_info): UPdate.
23139 * bb-reorder.c: Include cgraph.h
23140 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
23141 with comdat groups.
23142 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
23143 * cgraph.c (cgraph_get_create_node): Update.
23144 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
23145 and comdat_group_.
23146 (symtab_get_node): Make inline.
23147 (symtab_insert_node_to_hashtable): Remove.
23148 (symtab_can_be_discarded): Update.
23149 (decl_comdat_group): New function.
23150 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
23151 Update.
23152 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
23153 comdat group name.
23154 (read_comdat_group): New function.
23155 (input_node, input_varpool_node): Use it.
23156 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
23157 comdat groups.
23158 * mips.c (mips_start_unique_function): Likewise.
23159 (ix86_code_end): Likewise.
23160 (rs6000_code_end): Likweise.
23161 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
23162
23163 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23164
23165 * gengtype-state.c (fatal_reading_state): Bring offline.
23166 * optabs.c (widening_optab_handler): Bring offline.
23167 * optabs.h (widening_optab_handler): Likewise.
23168 * final.c (get_attr_length_1): Likewise.
23169
23170 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23171
23172 * sched-int.h (sd_iterator_cond): Manually tail recurse.
23173
23174 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23175
23176 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
23177 (ppc440-compare): Include shift with dot.
23178 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
23179 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
23180 without dot.
23181 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
23182 without dot.
23183 (e6500_sfx2): Include it.
23184 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
23185 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
23186 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
23187 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
23188 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
23189 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
23190 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
23191 *lshiftrt_internal1le, *lshiftrt_internal1be,
23192 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
23193 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
23194 *rotldi3_internal10le, *rotldi3_internal10be,
23195 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
23196 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
23197 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
23198 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
23199 define_insns): Use type "shift" in the appropriate alternatives.
23200
23201 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23202
23203 * config/rs6000/rs6000.md (type): Add "logical". Delete
23204 "fast_compare".
23205 (dot): Adjust comment.
23206 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
23207 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
23208 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
23209 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
23210 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
23211 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
23212 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
23213 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23214
23215 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23216 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23217 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23218 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23219 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23220 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23221 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23222 * config/rs6000/8540.md (ppc8540_su): Adjust.
23223 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23224 cell-cmp-microcoded): Adjust.
23225 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23226 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23227 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23228 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23229 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23230 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23231 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23232 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23233 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23234 Adjust.
23235 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23236 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
23237 Adjust. Adjust comment.
23238 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23239 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23240
23241 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23242
23243 * config/rs6000/rs6000.md (type): Add "add".
23244 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
23245 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
23246 define_insns): Use it.
23247 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
23248
23249 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23250 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
23251 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23252 * config/rs6000/601.md (ppc601-integer): Adjust.
23253 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23254 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23255 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23256 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23257 * config/rs6000/8540.md (ppc8540_su): Adjust.
23258 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23259 cell-cmp-microcoded): Adjust.
23260 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
23261 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23262 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
23263 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
23264 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
23265 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23266 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
23267 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
23268 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
23269 Adjust.
23270 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
23271 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
23272 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23273 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
23274
23275 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23276
23277 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
23278 "delayed_compare", "var_delayed_compare".
23279 (var_shift): New attribute.
23280 (cell_micro): Adjust.
23281 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
23282 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
23283 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
23284 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
23285 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
23286 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
23287 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
23288 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
23289 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
23290 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
23291 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
23292 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
23293 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
23294 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
23295 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
23296 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
23297 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
23298 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
23299 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
23300 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
23301 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
23302 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
23303 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
23304 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23305 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23306
23307 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
23308 * config/rs6000/440.md (ppc440-integer): Adjust.
23309 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
23310 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
23311 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
23312 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
23313 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
23314 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
23315 * config/rs6000/8540.md (ppc8540_su): Adjust.
23316 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
23317 cell-cmp-microcoded): Adjust.
23318 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
23319 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23320 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
23321 e500mc64_delayed): Adjust.
23322 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
23323 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
23324 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
23325 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
23326 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
23327 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
23328 power6-delayed-compare, power6-var-delayed-compare): Adjust.
23329 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
23330 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
23331 Adjust comment.
23332 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
23333 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23334
23335 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23336
23337 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
23338 (bits): New mode_attr.
23339 (idiv_ldiv): Delete mode_attr.
23340 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
23341 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23342 rs6000_adjust_priority, is_nonpipeline_insn,
23343 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23344
23345 * config/rs6000/40x.md (ppc403-idiv): Adjust.
23346 * config/rs6000/440.md (ppc440-idiv): Adjust.
23347 * config/rs6000/476.md (ppc476-idiv): Adjust.
23348 * config/rs6000/601.md (ppc601-idiv): Adjust.
23349 * config/rs6000/603.md (ppc603-idiv): Adjust.
23350 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
23351 ppc620-ldiv): Adjust.
23352 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
23353 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
23354 * config/rs6000/8540.md (ppc8540_divide): Adjust.
23355 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
23356 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
23357 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
23358 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
23359 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
23360 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
23361 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
23362 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
23363 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
23364 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
23365 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
23366 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
23367 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
23368 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
23369 * config/rs6000/titan.md (titan_fxu_div): Adjust.
23370
23371 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23372
23373 * config/rs6000/rs6000.md (type): Delete "insert_word",
23374 "insert_dword". Add "insert".
23375 (size): Update comment.
23376 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23377 insn_must_be_first_in_group): Adjust.
23378 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
23379 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
23380 *insvsi_internal6, insvdi_internal): Adjust.
23381
23382 * config/rs6000/40x.md (ppc403-integer): Adjust.
23383 * config/rs6000/440.md (ppc440-integer): Adjust.
23384 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
23385 * config/rs6000/601.md (ppc601-integer): Adjust.
23386 * config/rs6000/603.md (ppc603-integer): Adjust.
23387 * config/rs6000/6xx.md (ppc604-integer): Adjust.
23388 * config/rs6000/7450.md (ppc7450-integer): Adjust.
23389 * config/rs6000/7xx.md (ppc750-integer): Adjust.
23390 * config/rs6000/8540.md (ppc8540_su): Adjust.
23391 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
23392 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
23393 * config/rs6000/e500mc.md (e500mc_su): Adjust.
23394 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
23395 * config/rs6000/e5500.md (e5500_sfx): Adjust.
23396 * config/rs6000/e6500.md (e6500_sfx): Adjust.
23397 * config/rs6000/mpc.md (mpccore-integer): Adjust.
23398 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
23399 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
23400 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
23401 * config/rs6000/power7.md (power7-integer): Adjust.
23402 * config/rs6000/power8.md (power8-1cyc): Adjust.
23403 * config/rs6000/rs64.md (rs64a-integer): Adjust.
23404 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
23405
23406 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23407
23408 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
23409 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
23410 (size): New attribute.
23411 (dot): New attribute.
23412 (cell_micro): Adjust.
23413 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
23414 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
23415 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
23416 umuldi3_highpart): Adjust.
23417 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
23418 rs6000_adjust_priority, is_nonpipeline_insn,
23419 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
23420
23421 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
23422 ppc405-imul3): Adjust.
23423 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
23424 * config/rs6000/476.md (ppc476-imul): Adjust.
23425 * config/rs6000/601.md (ppc601-imul): Adjust.
23426 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
23427 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
23428 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
23429 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
23430 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
23431 Adjust.
23432 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
23433 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
23434 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
23435 cell-imul): Adjust.
23436 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
23437 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
23438 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
23439 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
23440 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
23441 * config/rs6000/mpc.md (mpccore-imul): Adjust.
23442 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
23443 power4-lmul, power4-imul, power4-imul3): Adjust.
23444 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
23445 power5-lmul, power5-imul, power5-imul3): Adjust.
23446 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
23447 power6-lmul, power6-imul, power6-imul3): Adjust.
23448 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
23449 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
23450
23451 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
23452 rs64a-lmul): Adjust.
23453 * config/rs6000/titan.md (titan_imul): Adjust.
23454
23455 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23456
23457 * config/rs6000/rs6000.md (type): Add new value "halfmul".
23458 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
23459 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
23460 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
23461 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
23462 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
23463 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
23464 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
23465 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
23466 * config/rs6000/titan.md: Delete nonsensical comment.
23467 (titan_imul): Add type imul3.
23468 (titan_mulhw): Remove type imul3; add type halfmul.
23469
23470 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
23471
23472 * config/rs6000/rs6000.md (type): Reorder, reformat.
23473
23474 2014-05-23 Martin Jambor <mjambor@suse.cz>
23475
23476 PR tree-optimization/53787
23477 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
23478 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
23479 analysis_done, update all uses.
23480 * ipa-prop.c: Include domwalk.h
23481 (param_analysis_info): Removed.
23482 (param_aa_status): New type.
23483 (ipa_bb_info): Likewise.
23484 (func_body_info): Likewise.
23485 (ipa_get_bb_info): New function.
23486 (aa_overwalked): Likewise.
23487 (find_dominating_aa_status): Likewise.
23488 (parm_bb_aa_status_for_bb): Likewise.
23489 (parm_preserved_before_stmt_p): Changed to use new param AA info.
23490 (load_from_unmodified_param): Accept func_body_info as a parameter
23491 instead of parms_ainfo.
23492 (parm_ref_data_preserved_p): Changed to use new param AA info.
23493 (parm_ref_data_pass_through_p): Likewise.
23494 (ipa_load_from_parm_agg_1): Likewise. Update callers.
23495 (compute_complex_assign_jump_func): Changed to use new param AA info.
23496 (compute_complex_ancestor_jump_func): Likewise.
23497 (ipa_compute_jump_functions_for_edge): Likewise.
23498 (ipa_compute_jump_functions): Removed.
23499 (ipa_compute_jump_functions_for_bb): New function.
23500 (ipa_analyze_indirect_call_uses): Likewise, moved variable
23501 declarations down.
23502 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
23503 and info, moved variable declarations down.
23504 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
23505 node and info.
23506 (ipa_analyze_stmt_uses): Likewise.
23507 (ipa_analyze_params_uses): Removed.
23508 (ipa_analyze_params_uses_in_bb): New function.
23509 (ipa_analyze_controlled_uses): Likewise.
23510 (free_ipa_bb_info): Likewise.
23511 (analysis_dom_walker): New class.
23512 (ipa_analyze_node): Handle node-specific forbidden analysis,
23513 initialize and free func_body_info, use dominator walker.
23514 (ipcp_modif_dom_walker): New class.
23515 (ipcp_transform_function): Create and free func_body_info, use
23516 ipcp_modif_dom_walker, moved a lot of functionality there.
23517
23518 2014-05-23 Marek Polacek <polacek@redhat.com>
23519 Jakub Jelinek <jakub@redhat.com>
23520
23521 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
23522 * gcc.c (sanitize_spec_function): Likewise.
23523 * convert.c (convert_to_integer): Include "ubsan.h". Add
23524 floating-point to integer instrumentation.
23525 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
23526 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
23527 SANITIZE_NONDEFAULT.
23528 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
23529 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
23530 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
23531 * ubsan.c: Include "realmpfr.h" and "dfp.h".
23532 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
23533 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
23534 float/double/long double.
23535 (ubsan_instrument_float_cast): New function.
23536 * ubsan.h (ubsan_instrument_float_cast): Declare.
23537
23538 2014-05-23 Jiong Wang <jiong.wang@arm.com>
23539
23540 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
23541 predicate.
23542 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
23543 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
23544 Adjust for tailcalling through registers.
23545 * config/aarch64/aarch64.h (enum reg_class): New caller save
23546 register class.
23547 (REG_CLASS_NAMES): Likewise.
23548 (REG_CLASS_CONTENTS): Likewise.
23549 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
23550 Allow tailcalling without decls.
23551
23552 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23553
23554 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23555 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
23556
23557 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
23558 gsi, and variables v_* to v*.
23559
23560 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
23561
23562 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
23563
23564 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
23565
23566 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
23567 * omp-low.c: Update accordingly.
23568
23569 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
23570 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
23571 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
23572 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
23573 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
23574 GF_OMP_TARGET_KIND_UPDATE.
23575
23576 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
23577 Explicitly enumerate the expected region types.
23578
23579 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
23580
23581 PR other/56955
23582 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
23583 documentation; the old documentation didn't clearly state the
23584 constraints on the contents of the pointed-to storage.
23585
23586 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23587
23588 Fix bootstrap error on ia64
23589 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
23590 Return default value.
23591
23592 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
23593
23594 PR tree-optimization/54733
23595 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
23596 (CMPNOP): Define.
23597 (find_bswap_or_nop_load): New.
23598 (find_bswap_1): Renamed to ...
23599 (find_bswap_or_nop_1): This. Also add support for memory source.
23600 (find_bswap): Renamed to ...
23601 (find_bswap_or_nop): This. Also add support for memory source and
23602 detection of bitwise operations equivalent to load in target
23603 endianness.
23604 (execute_optimize_bswap): Likewise. Also move its leading comment back
23605 in place and split statement transformation into ...
23606 (bswap_replace): This.
23607
23608 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23609
23610 PR rtl-optimization/61215
23611 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
23612 simplify_gen_subreg until final substitution.
23613
23614 2014-05-23 Alan Modra <amodra@gmail.com>
23615
23616 PR target/61231
23617 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
23618 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
23619 Use "Y" constraint rather than "m".
23620
23621 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
23622
23623 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
23624 define.
23625 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
23626 New function declaration.
23627 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
23628 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
23629 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
23630 (aarch64_init_builtins) : Initialize builtins
23631 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23632 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23633 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
23634 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
23635 and __builtins_aarch64_set_fpsr.
23636 (aarch64_atomic_assign_expand_fenv): New function.
23637 * config/aarch64/aarch64.md (set_fpcr): New pattern.
23638 (get_fpcr) : Likewise.
23639 (set_fpsr) : Likewise.
23640 (get_fpsr) : Likewise.
23641 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
23642 and UNSPECV_SET_FPSR.
23643 * doc/extend.texi (AARCH64 Built-in Functions) : Document
23644 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
23645 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
23646
23647 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
23648
23649 PR rtl-optimization/60969
23650 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
23651 constraints. Set up mem cost for NO_REGS case.
23652
23653 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
23654
23655 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
23656
23657 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
23658
23659 * config/darwin.c: Include "lto-section-names.h".
23660 (LTO_SEGMENT_NAME): Don't define.
23661 * config/i386/winnt.c: Include "lto-section-names.h".
23662 * lto-streamer.c: Include "lto-section-names.h".
23663 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
23664 * lto-wrapper.c: Include "lto-section-names.h".
23665 (LTO_SECTION_NAME_PREFIX): Don't define.
23666 * lto-section-names.h: New file.
23667 * cgraphunit.c: Include "lto-section-names.h".
23668
23669 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
23670
23671 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
23672
23673 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
23674
23675 PR target/61208
23676 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
23677
23678 2014-05-22 Nick Clifton <nickc@redhat.com>
23679
23680 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
23681
23682 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
23683
23684 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
23685 -> (T)A transformation to integer types.
23686
23687 2014-05-22 Teresa Johnson <tejohnson@google.com>
23688
23689 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
23690 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
23691 (gcov_rewrite): Use gcov_nonruntime_assert.
23692 (gcov_open): Ditto.
23693 (gcov_write_words): Ditto.
23694 (gcov_write_length): Ditto.
23695 (gcov_read_words): Use gcov_nonruntime_assert, and remove
23696 gcc_assert from IN_LIBGCOV code.
23697 (gcov_read_summary): Use gcov_error to flag profile corruption.
23698 (gcov_sync): Use gcov_nonruntime_assert.
23699 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
23700 (gcov_histo_index): Use gcov_nonruntime_assert.
23701 (static void gcov_histogram_merge): Ditto.
23702 (compute_working_sets): Ditto.
23703 * gcov-io.h (gcov_nonruntime_assert): Define.
23704 (gcov_error): Define for !IN_LIBGCOV
23705
23706 2014-05-22 Richard Biener <rguenther@suse.de>
23707
23708 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
23709 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
23710 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
23711 and deallocation site.
23712 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23713 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
23714 passing through the incoming points-to set.
23715 (handle_lhs_call): Use flags argument instead of recomputing it.
23716 (find_func_aliases_for_call): Call handle_lhs_call with proper
23717 call return flags.
23718
23719 2014-05-22 Jakub Jelinek <jakub@redhat.com>
23720
23721 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
23722 all padding bits in REAL_VALUE_TYPE are cleared.
23723
23724 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23725
23726 Cleanup and improve multipass_dfa_lookahead_guard
23727 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
23728 (core2i7_first_cycle_multipass_begin,)
23729 (core2i7_first_cycle_multipass_issue,)
23730 (core2i7_first_cycle_multipass_backtrack): Update signature.
23731 * config/ia64/ia64.c
23732 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
23733 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
23734 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
23735 hook definition.
23736 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
23737 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
23738 values.
23739 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
23740 return values.
23741 * doc/tm.texi: Regenerate.
23742 * doc/tm.texi.in
23743 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
23744 * haifa-sched.c (ready_try): Make signed to allow negative values.
23745 (rebug_ready_list_1): Update.
23746 (choose_ready): Simplify.
23747 (sched_extend_ready_list): Update.
23748
23749 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23750
23751 Remove IA64 speculation tweaking flags
23752 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
23753 speculation tuning flags.
23754 (msched-prefer-non-data-spec-insns,)
23755 (msched-prefer-non-control-spec-insns): Obsolete options.
23756 * haifa-sched.c (choose_ready): Remove handling of
23757 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23758 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
23759 and PREFER_NON_DATA_SPEC.
23760 * sel-sched.c (process_spec_exprs): Remove handling of
23761 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
23762
23763 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23764
23765 Improve scheduling debug output
23766 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
23767 (advance_one_cycle): Update.
23768 (schedule_insn, queue_to_ready): Add debug printouts.
23769 (debug_ready_list_1): New static function.
23770 (debug_ready_list): Update.
23771 (max_issue): Add debug printouts.
23772 (dump_insn_stream): New static function.
23773 (schedule_block): Use it. Also better indent printouts.
23774
23775 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23776
23777 Fix sched_insn debug counter
23778 * haifa-sched.c (schedule_insn): Update.
23779 (struct haifa_saved_data): Add nonscheduled_insns_begin.
23780 (save_backtrack_point, restore_backtrack_point): Update.
23781 (first_nonscheduled_insn): New static function.
23782 (queue_to_ready, choose_ready): Use it.
23783 (schedule_block): Init nonscheduled_insns_begin.
23784 (sched_emit_insn): Update.
23785
23786
23787 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
23788
23789 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
23790 to GENERAL_REGS.
23791 (aarch64_secondary_reload) : LikeWise.
23792 (aarch64_class_max_nregs) : Remove CORE_REGS.
23793 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
23794 (REG_CLASS_NAMES) : Likewise.
23795 (REG_CLASS_CONTENTS) : LikeWise.
23796 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
23797
23798 2014-05-21 Guozhi Wei <carrot@google.com>
23799
23800 PR target/61202
23801 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
23802 constraint.
23803 (vqdmulhq_n_s16): Likewise.
23804
23805 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23806
23807 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
23808
23809 2014-05-21 Marek Polacek <polacek@redhat.com>
23810
23811 PR sanitizer/61272
23812 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
23813
23814 2014-05-21 Martin Jambor <mjambor@suse.cz>
23815
23816 * doc/invoke.texi (Optimize Options): Document parameters
23817 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
23818 ipa-cp-array-index-hint-bonus.
23819
23820 2014-05-21 Mark Wielaard <mjw@redhat.com>
23821
23822 PR debug/16063
23823 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
23824 version >= 3 or not strict DWARF.
23825 * langhooks.h (struct lang_hooks_for_types): Add
23826 enum_underlying_base_type.
23827 * langhooks.c (lhd_enum_underlying_base_type): New function.
23828 * gcc/langhooks.h (struct lang_hooks_for_types): Add
23829 enum_underlying_base_type.
23830 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
23831 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
23832 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
23833
23834 2014-05-21 Richard Biener <rguenther@suse.de>
23835
23836 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
23837
23838 2014-05-21 John Marino <gnugcc@marino.st>
23839
23840 * config.gcc (*-*-dragonfly*): New target.
23841 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
23842 * configure: Regenerate.
23843 * config/dragonfly-stdint.h: New.
23844 * config/dragonfly.h: New.
23845 * config/dragonfly.opt: New.
23846 * config/i386/dragonfly.h: New.
23847 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
23848
23849 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
23850
23851 * tree.def (VOID_CST): New.
23852 * tree-core.h (TI_VOID): New.
23853 * tree.h (void_node): New.
23854 * tree.c (tree_node_structure_for_code, tree_code_size)
23855 (iterative_hash_expr): Handle VOID_CST.
23856 (build_common_tree_nodes): Initialize void_node.
23857
23858 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
23859
23860 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
23861 functions.
23862 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
23863
23864 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
23865 more places.
23866
23867 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
23868 flag_reorder_blocks_and_partition.
23869 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
23870
23871 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
23872
23873 PR target/54236
23874 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
23875 constraints.
23876 (*addc_r_t): Add new insn_and_split.
23877
23878 2014-05-21 Jakub Jelinek <jakub@redhat.com>
23879
23880 PR middle-end/61252
23881 * omp-low.c (handle_simd_reference): New function.
23882 (lower_rec_input_clauses): Use it. Defer adding reference
23883 initialization even for reduction without placeholder if in simd,
23884 handle it properly later on.
23885
23886 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23887
23888 PR tree-optimization/60899
23889 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
23890 assume all static symbols will have definition wile parsing and
23891 check the do have definition later in compilation; check that
23892 variable referring symbol will be output before concluding that
23893 reference is safe; be conservative for referring local statics;
23894 be more precise about when comdat is output in other partition.
23895
23896 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23897
23898 PR bootstrap/60984
23899 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
23900 parameter.
23901 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
23902 (ipa_inline): Loop inline_to_all_callers until no more aliases
23903 are removed.
23904
23905 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23906
23907 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
23908 set writeonly flag only for vars actually written to.
23909
23910 2014-05-20 Dehao Chen <dehao@google.com>
23911
23912 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
23913 and callee count to get clone count.
23914 * tree-inline.c (expand_call_inline): Use callee count instead of bb
23915 count in copy_body.
23916
23917 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
23918
23919 PR rtl-optimization/61243
23920 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
23921
23922 2014-05-20 Xinliang David Li <davidxl@google.com>
23923
23924 * cgraphunit.c (walk_polymorphic_call_targets): Add
23925 dbgcnt and fopt-info support.
23926 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
23927 * ipa-devirt.c (ipa_devirt): Ditto.
23928 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
23929 * ipa.c (walk_polymorphic_call_targets): Ditto.
23930 * gimple-fold.c (fold_gimple_assign): Ditto.
23931 (gimple_fold_call): Ditto.
23932 * dbgcnt.def: New counter.
23933
23934 2014-05-20 DJ Delorie <dj@redhat.com>
23935
23936 * config/msp430/msp430.md (split): Don't allow subregs when
23937 splitting SImode adds.
23938 (andneghi): Fix subtraction logic.
23939 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
23940
23941 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
23942
23943 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
23944 symbols.
23945 * except.c (switch_to_exception_section, resolve_unique_section,
23946 get_named_text_section, default_function_rodata_section,
23947 align_variable, get_block_for_decl, default_section_type_flags):
23948 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
23949 * symtab.c (symtab_add_to_same_comdat_group,
23950 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
23951 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
23952 Likewise.
23953 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
23954 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
23955 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
23956 (c6x_function_in_section_p): Likewise.
23957 * config/darwin.c (machopic_select_section): Likewise.
23958 * config/arm/arm.c (arm_function_in_section_p): Likewise.
23959 * config/mips/mips.c (mips_function_rodata_section): Likewise.
23960 * config/mep/mep.c (mep_select_section): LIkewise.
23961 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
23962
23963 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
23964
23965 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
23966 EH region of calls to pure functions that can throw an exception.
23967 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
23968 (copy_reference_ops_from_call): Also copy the EH region of the call if
23969 it can throw an exception.
23970
23971 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23972
23973 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
23974 nested VEC_SELECTs that are inverses of each other.
23975
23976 2014-05-20 Richard Biener <rguenther@suse.de>
23977
23978 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
23979 (extract_and_process_scc_for_name): not here.
23980 (cond_dom_walker::before_dom_children): Only process
23981 stmts that end the BB in interesting ways.
23982 (run_scc_vn): Mark param uses as visited.
23983
23984 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23985
23986 * config/arm/arm.md (arith_shiftsi): Do not predicate for
23987 arm_restrict_it.
23988
23989 2014-05-20 Nick Clifton <nickc@redhat.com>
23990
23991 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
23992 (msp430_gimplify_va_arg_expr): New function.
23993 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
23994
23995 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
23996 operand 0 in order to prevent confusion about the number of
23997 registers involved.
23998
23999 2014-05-20 Richard Biener <rguenther@suse.de>
24000
24001 PR tree-optimization/61221
24002 * tree-ssa-pre.c (el_to_update): Remove.
24003 (eliminate_dom_walker::before_dom_children): Handle released
24004 VDEFs by value-numbering them to the associated VUSE. Update
24005 stmt immediately for substituted call address.
24006 (eliminate): Remove delayed stmt updating code.
24007 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24008 possibly late re-numbered vuses.
24009 (vn_reference_lookup_2): Adjust.
24010 (vn_reference_lookup_pieces): Likewise.
24011 (vn_reference_lookup): Likewise.
24012
24013 2014-05-20 Richard Biener <rguenther@suse.de>
24014
24015 * config.gcc: Remove need_64bit_hwint.
24016 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24017 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24018 it to be true.
24019 * config.in: Regenerate.
24020 * configure: Likewise.
24021
24022 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
24023
24024 * doc/extend.texi: Create Label Attributes section,
24025 move all label attributes into it and reference it.
24026
24027 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
24028
24029 * arm.c (thumb1_reorg): When scanning backwards skip anything
24030 that's not a proper insn.
24031
24032 2014-05-19 Richard Biener <rguenther@suse.de>
24033
24034 PR tree-optimization/61221
24035 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24036 Do nothing for unreachable blocks.
24037 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24038 Improve unreachability detection.
24039
24040 2014-05-19 Richard Biener <rguenther@suse.de>
24041
24042 PR tree-optimization/61209
24043 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24044
24045 2014-05-19 Nick Clifton <nickc@redhat.com>
24046
24047 * except.c (init_eh): Fix computation of builtin setjmp buffer
24048 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24049
24050 2014-05-19 Richard Biener <rguenther@suse.de>
24051
24052 PR tree-optimization/61184
24053 * tree-vrp.c (is_negative_overflow_infinity): Use
24054 TREE_OVERFLOW_P and do that check first.
24055 (is_positive_overflow_infinity): Likewise.
24056 (is_overflow_infinity): Likewise.
24057 (vrp_operand_equal_p): Properly treat operands with
24058 differing overflow as not equal.
24059
24060 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
24061
24062 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24063 shift simplification where it was intended.
24064
24065 2014-05-19 Christian Bruel <christian.bruel@st.com>
24066
24067 PR target/61195
24068 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24069
24070 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
24071
24072 PR target/61084
24073 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24074 than wide_int.
24075
24076 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24077
24078 * reg-notes.def (CROSSING_JUMP): Likewise.
24079 * rtl.h (rtx_def): Update comment for jump flag.
24080 (CROSSING_JUMP_P): Define.
24081 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24082 of a REG_CROSSING_JUMP note.
24083 * cfghooks.c (tidy_fallthru_edges): Likewise.
24084 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24085 * emit-rtl.c (try_split): Likewise.
24086 * haifa-sched.c (sched_create_recovery_edges): Likewise.
24087 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24088 * jump.c (redirect_jump_2): Likewise.
24089 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24090 (relax_delay_slots): Likewise.
24091 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24092 (bbit_di): Likewise.
24093 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24094 * config/sh/sh.md (jump_compact): Likewise.
24095 * bb-reorder.c (rotate_loop): Likewise.
24096 (pass_duplicate_computed_gotos::execute): Likewise.
24097 (add_reg_crossing_jump_notes): Rename to...
24098 (update_crossing_jump_flags): ...this.
24099 (pass_partition_blocks::execute): Update accordingly.
24100
24101 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24102
24103 * tree.h: Remove extraneous template <>.
24104
24105 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24106
24107 * ipa.c (symtab_remove_unreachable_nodes): Remove
24108 symbol from comdat group if its body was eliminated.
24109 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
24110 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
24111 (symtab_unregister_node): ... this one.
24112 (verify_symtab_base): More strict checking of comdats.
24113 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
24114
24115 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24116
24117 * tree-pass.h (make_pass_ipa_comdats): New pass.
24118 * timevar.def (TV_IPA_COMDATS): New timevar.
24119 * passes.def (pass_ipa_comdats): Add.
24120 * Makefile.in (OBJS): Add ipa-comdats.o
24121 * ipa-comdats.c: New file.
24122
24123 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24124
24125 * ipa.c (update_visibility_by_resolution_info): New function.
24126 (function_and_variable_visibility): Use it.
24127
24128 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
24129
24130 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
24131 New functions.
24132 (FOR_EACH_DEFINED_SYMBOL): New macro.
24133 (varpool_first_static_initializer, varpool_next_static_initializer,
24134 varpool_first_defined_variable, varpool_next_defined_variable):
24135 Fix comments.
24136 (symtab_in_same_comdat_p): Correctly deal with inline functions.
24137
24138 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24139
24140 * ggc-page.c (ggc_handle_finalizers): Add comment.
24141
24142 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24143
24144 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
24145 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
24146 (ggc_internal_cleared_alloc): Likewise.
24147 * ggc-page.c (finalizer): New class.
24148 (vec_finalizer): Likewise.
24149 (globals::finalizers): New member.
24150 (globals::vec_finalizers): Likewise.
24151 (ggc_internal_alloc): Record the finalizer if any for the block being
24152 allocated.
24153 (ggc_handle_finalizers): New function.
24154 (ggc_collect): Call ggc_handle_finalizers.
24155 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
24156 finalizer.
24157 (ggc_internal_cleared_alloc): Likewise.
24158 (finalize): New function.
24159 (need_finalization_p): Likewise.
24160 (ggc_alloc): Install the type's destructor as the finalizer if it
24161 might do something.
24162 (ggc_cleared_alloc): Likewise.
24163 (ggc_vec_alloc): Likewise.
24164 (ggc_cleared_vec_alloc): Likewise.
24165
24166 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24167
24168 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
24169
24170 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24171
24172 * alias.c (record_alias_subset): Adjust.
24173 * bitmap.c (bitmap_element_allocate): Likewise.
24174 (bitmap_gc_alloc_stat): Likewise.
24175 * cfg.c (init_flow): Likewise.
24176 (alloc_block): Likewise.
24177 (unchecked_make_edge): Likewise.
24178 * cfgloop.c (alloc_loop): Likewise.
24179 (flow_loops_find): Likewise.
24180 (rescan_loop_exit): Likewise.
24181 * cfgrtl.c (init_rtl_bb_info): Likewise.
24182 * cgraph.c (insert_new_cgraph_node_version): Likewise.
24183 (cgraph_allocate_node): Likewise.
24184 (cgraph_create_edge_1): Likewise.
24185 (cgraph_allocate_init_indirect_info): Likewise.
24186 * cgraphclones.c (cgraph_clone_edge): Likewise.
24187 * cgraphunit.c (add_asm_node): Likewise.
24188 (init_lowered_empty_function): Likewise.
24189 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
24190 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24191 (alpha_use_linkage): Likewise.
24192 * config/arc/arc.c (arc_init_machine_status): Likewise.
24193 * config/arm/arm.c (arm_init_machine_status): Likewise.
24194 * config/avr/avr.c (avr_init_machine_status): Likewise.
24195 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24196 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
24197 * config/cris/cris.c (cris_init_machine_status): Likewise.
24198 * config/darwin.c (machopic_indirection_name): Likewise.
24199 (darwin_build_constant_cfstring): Likewise.
24200 (darwin_enter_string_into_cfstring_table): Likewise.
24201 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
24202 * config/frv/frv.c (frv_init_machine_status): Likewise.
24203 * config/i386/i386.c (get_dllimport_decl): Likewise.
24204 (ix86_init_machine_status): Likewise.
24205 (assign_386_stack_local): Likewise.
24206 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24207 (i386_pe_maybe_record_exported_symbol): Likewise.
24208 (i386_pe_record_stub): Likewise.
24209 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24210 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24211 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24212 (m32c_note_pragma_address): Likewise.
24213 * config/mep/mep.c (mep_init_machine_status): Likewise.
24214 (mep_note_pragma_flag): Likewise.
24215 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24216 (mips16_local_alias): Likewise.
24217 (mips_init_machine_status): Likewise.
24218 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24219 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24220 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
24221 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
24222 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
24223 * config/pa/pa.c (pa_init_machine_status): Likewise.
24224 (pa_get_deferred_plabel): Likewise.
24225 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
24226 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24227 (rs6000_init_machine_status): Likewise.
24228 (output_toc): Likewise.
24229 * config/s390/s390.c (s390_init_machine_status): Likewise.
24230 * config/score/score.c (score_output_external): Likewise.
24231 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24232 * config/spu/spu.c (spu_init_machine_status): Likewise.
24233 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
24234 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
24235 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24236 * coverage.c (coverage_end_function): Likewise.
24237 * dbxout.c (dbxout_init): Likewise.
24238 * doc/gty.texi: Don't mention variable_size attribute.
24239 * dwarf2cfi.c (new_cfi): Adjust.
24240 (new_cfi_row): Likewise.
24241 (copy_cfi_row): Likewise.
24242 (create_cie_data): Likewise.
24243 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
24244 (new_loc_descr): Likewise.
24245 (find_AT_string_in_table): Likewise.
24246 (add_addr_table_entry): Likewise.
24247 (new_die): Likewise.
24248 (add_var_loc_to_decl): Likewise.
24249 (clone_die): Likewise.
24250 (clone_as_declaration): Likewise.
24251 (break_out_comdat_types): Likewise.
24252 (new_loc_list): Likewise.
24253 (add_loc_descr_to_each): Likewise.
24254 (add_location_or_const_value_attribute): Likewise.
24255 (add_linkage_name): Likewise.
24256 (lookup_filename): Likewise.
24257 (dwarf2out_var_location): Likewise.
24258 (new_line_info_table): Likewise.
24259 (dwarf2out_init): Likewise.
24260 (mem_loc_descriptor): Likewise.
24261 (loc_descriptor): Likewise.
24262 (add_const_value_attribute): Likewise.
24263 (tree_add_const_value_attribute): Likewise.
24264 (comp_dir_string): Likewise.
24265 (dwarf2out_vms_debug_main_pointer): Likewise.
24266 (string_cst_pool_decl): Likewise.
24267 * emit-rtl.c (set_mem_attrs): Likewise.
24268 (get_reg_attrs): Likewise.
24269 (start_sequence): Likewise.
24270 (init_emit): Likewise.
24271 (init_emit_regs): Likewise.
24272 * except.c (init_eh_for_function): Likewise.
24273 (gen_eh_region): Likewise.
24274 (gen_eh_region_catch): Likewise.
24275 (gen_eh_landing_pad): Likewise.
24276 (add_call_site): Likewise.
24277 * function.c (add_frame_space): Likewise.
24278 (insert_temp_slot_address): Likewise.
24279 (assign_stack_temp_for_type): Likewise.
24280 (get_hard_reg_initial_val): Likewise.
24281 (allocate_struct_function): Likewise.
24282 (prepare_function_start): Likewise.
24283 (types_used_by_var_decl_insert): Likewise.
24284 * gengtype.c (variable_size_p): Remove function.
24285 (enum alloc_quantity): Remove enum.
24286 (write_typed_alloc_def): Remove function.
24287 (write_typed_struct_alloc_def): Likewise.
24288 (write_typed_typedef_alloc_def): Likewise.
24289 (write_typed_alloc_defns): Likewise.
24290 (main): Adjust.
24291 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
24292 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
24293 * ggc.h (ggc_alloc): new function.
24294 (ggc_cleared_alloc): Likewise.
24295 (ggc_vec_alloc): Template on type of vector element, and remove
24296 element size argument.
24297 (ggc_cleared_vec_alloc): Likewise.
24298 * gimple.c (gimple_build_omp_for): Adjust.
24299 (gimple_copy): Likewise.
24300 * ipa-cp.c (get_replacement_map): Likewise.
24301 (find_aggregate_values_for_callers_subset): Likewise.
24302 (known_aggs_to_agg_replacement_list): Likewise.
24303 * ipa-devirt.c (get_odr_type): Likewise.
24304 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
24305 (read_agg_replacement_chain): Likewise.
24306 * loop-iv.c (get_simple_loop_desc): Likewise.
24307 * lto-cgraph.c (input_node_opt_summary): Likewise.
24308 * lto-section-in.c (lto_new_in_decl_state): Likewise.
24309 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24310 (input_eh_region): Likewise.
24311 (input_eh_lp): Likewise.
24312 (input_cfg): Likewise.
24313 * optabs.c (set_optab_libfunc): Likewise.
24314 (init_tree_optimization_optabs): Likewise.
24315 (set_conv_libfunc): Likewise.
24316 * passes.c (do_per_function_toporder): Likewise.
24317 * rtl.h: Don't use variable_size gty attribute.
24318 * sese.c (if_region_set_false_region): Adjust.
24319 * stringpool.c (gt_pch_save_stringpool): Likewise.
24320 * target-globals.c (save_target_globals): Likewise.
24321 * toplev.c (general_init): Likewise.
24322 * trans-mem.c (record_tm_replacement): Likewise.
24323 (split_bb_make_tm_edge): Likewise.
24324 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24325 * tree-data-ref.h (lambda_vector_new): Likewise.
24326 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24327 * tree-iterator.c (tsi_link_before): Likewise.
24328 (tsi_link_after): Likewise.
24329 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24330 * tree-ssa-loop-niter.c (record_estimate): Likewise.
24331 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
24332 * tree-ssa-operands.h: Don't use variable_size gty attribute.
24333 * tree-ssa.c (init_tree_ssa): Adjust.
24334 * tree-ssanames.c (set_range_info): Likewise.
24335 (get_ptr_info): Likewise.
24336 (duplicate_ssa_name_ptr_info): Likewise.
24337 (duplicate_ssa_name_range_info): Likewise.
24338 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
24339 (unpack_ts_fixed_cst_value_fields): Likewise.
24340 * tree.c (build_fixed): Likewise.
24341 (build_real): Likewise.
24342 (build_string): Likewise.
24343 (decl_priority_info): Likewise.
24344 (decl_debug_expr_insert): Likewise.
24345 (decl_value_expr_insert): Likewise.
24346 (decl_debug_args_insert): Likewise.
24347 (type_hash_add): Likewise.
24348 (build_omp_clause): Likewise.
24349 * ubsan.c (decl_for_type_insert): Likewise.
24350 * varasm.c (get_unnamed_section): Likewise.
24351 (get_noswitch_section): Likewise.
24352 (get_section): Likewise.
24353 (get_block_for_section): Likewise.
24354 (create_block_symbol): Likewise.
24355 (build_constant_desc): Likewise.
24356 (create_constant_pool): Likewise.
24357 (force_const_mem): Likewise.
24358 (record_tm_clone_pair): Likewise.
24359 * varpool.c (varpool_create_empty_node): Likewise.
24360
24361 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
24362
24363 * dwarf2out.c (tree_add_const_value_attribute): Call
24364 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
24365 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
24366 instead of ggc_internal_<x>alloc_stat.
24367 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
24368 (ggc_realloc): Likewise.
24369 * ggc-none.c (ggc_internal_alloc): Likewise.
24370 (ggc_internal_cleared_alloc): Likewise.
24371 * ggc-page.c: Likewise.
24372 * ggc.h (ggc_internal_alloc_stat): Likewise.
24373 (ggc_internal_alloc): Remove macro.
24374 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
24375 (ggc_internal_cleared_alloc): Remove macro.
24376 (GGC_RESIZEVEC): Adjust.
24377 (ggc_resizevar): Remove macro.
24378 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
24379 (ggc_internal_cleared_vec_alloc_stat): Likewise.
24380 (ggc_internal_vec_cleared_alloc): Remove macro.
24381 (ggc_alloc_atomic_stat): Drop _stat suffix.
24382 (ggc_alloc_atomic): Remove macro.
24383 (ggc_alloc_cleared_atomic): Remove macro.
24384 (ggc_alloc_string_stat): Drop _stat suffix.
24385 (ggc_alloc_string): Remove macro.
24386 (ggc_alloc_rtx_def_stat): Adjust.
24387 (ggc_alloc_tree_node_stat): Likewise.
24388 (ggc_alloc_cleared_tree_node_stat): Likewise.
24389 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
24390 (ggc_alloc_cleared_simd_clone_stat): Likewise.
24391 * gimple.c (gimple_build_omp_for): Likewise.
24392 (gimple_copy): Likewise.
24393 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
24394 * toplev.c (realloc_for_line_map): Adjust.
24395 * tree-data-ref.h (lambda_vector_new): Likewise.
24396 * tree-phinodes.c (allocate_phi_node): Likewise.
24397 * tree.c (grow_tree_vec_stat): Likewise.
24398 * vec.h (va_gc::reserve): Adjust.
24399
24400 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
24401
24402 * config/microblaze/microblaze.c (break_handler): New Declaration.
24403 (microblaze_break_function_p,microblaze_is_break_handler): New.
24404 (compute_frame_size): Use microblaze_break_function_p.
24405 Add the test of break_handler.
24406 (microblaze_function_prologue) : Add the test of variable
24407 break_handler. Check the fnname by BREAK_HANDLER_NAME.
24408 (microblaze_function_epilogue) : Add the test of break_handler.
24409 (microblaze_globalize_label) : Add the test of break_handler.
24410 Check the name by BREAK_HANDLER_NAME.
24411
24412 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
24413
24414 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
24415 microblaze_is_break_handler test.
24416 (call_internal1,call_value_intern): Use microblaze_break_function_p.
24417 Use SYMBOL_REF_DECL.
24418
24419 * config/microblaze/microblaze-protos.h
24420 (microblaze_break_function_p,microblaze_is_break_handler):
24421 New Declaration.
24422
24423 * doc/extend.texi (MicroBlaze break_handler Functions): Document
24424 new MicroBlaze break_handler functions.
24425
24426 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24427
24428 * doc/extend.texi (Size of an asm): Move node text according
24429 to its @menu entry position.
24430
24431 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
24432
24433 PR tree-optimization/61140
24434 PR tree-optimization/61150
24435 PR tree-optimization/61197
24436 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
24437
24438 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
24439
24440 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
24441
24442 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
24443
24444 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
24445 __SIZEOF_INT128__ is defined.
24446
24447 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24448
24449 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
24450 (rs6000_delegitimize_address): Use it.
24451
24452 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
24453
24454 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
24455 inplace argument. Store the new address in the original MEM when true.
24456 * emit-rtl.c (change_address_1): Likewise.
24457 (adjust_address_1, adjust_automodify_address_1, offset_address):
24458 Update accordingly.
24459 * rtl.h (plus_constant): Add an inplace argument.
24460 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
24461 when true. Avoid generating (plus X (const_int 0)).
24462 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
24463 in-place. Pass true to plus_constant.
24464 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
24465
24466 2014-05-16 Dehao Chen <dehao@google.com>
24467
24468 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
24469
24470 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24471
24472 PR target/54089
24473 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
24474 patterns.
24475 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
24476
24477 2014-05-16 Dehao Chen <dehao@google.com>
24478
24479 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
24480 optimize_function_for_size_p.
24481 * regs.h (REG_FREQ_FROM_BB): Likewise.
24482
24483 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24484
24485 PR target/51244
24486 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
24487 negt_reg_operand cases.
24488 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
24489 predicate.
24490 * config/sh/predicates.md (cbranch_treg_value): Simplify.
24491
24492 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
24493
24494 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
24495 target variants.
24496
24497 2014-05-16 David Malcolm <dmalcolm@redhat.com>
24498
24499 Revert:
24500 2014-04-29 David Malcolm <dmalcolm@redhat.com>
24501
24502 * tree-cfg.c (dump_function_to_file): Dump the return type of
24503 functions, in a line to itself before the function body, mimicking
24504 the layout of a C function.
24505
24506 2014-05-16 Dehao Chen <dehao@google.com>
24507
24508 * cfghooks.c (make_forwarder_block): Use direct computation to
24509 get fall-through edge's count and frequency.
24510
24511 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
24512
24513 * config/arc/arc.c (arc_init): Fix typo in error message.
24514 * config/i386/i386.c (ix86_expand_builtin): Likewise.
24515 (split_stack_prologue_scratch_regno): Likewise.
24516 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
24517 word from error message.
24518
24519 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24520
24521 * ira-costs.c: Fix typo in comment.
24522
24523 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
24524
24525 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
24526
24527 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
24528
24529 * varpool.c (dump_varpool_node): Dump write-only flag.
24530 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
24531 write-only flag.
24532 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
24533 write-only variables.
24534 * ipa.c (process_references): New function.
24535 (set_readonly_bit): New function.
24536 (set_writeonly_bit): New function.
24537 (clear_addressable_bit): New function.
24538 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
24539 fix handling of aliases.
24540 * cgraph.h (struct varpool_node): Add writeonly flag.
24541
24542 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
24543
24544 PR rtl-optimization/60969
24545 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
24546 Calculate costs for this case.
24547
24548 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
24549
24550 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
24551 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
24552
24553 2014-05-16 Richard Biener <rguenther@suse.de>
24554
24555 PR tree-optimization/61194
24556 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
24557 bool patterns ending in a COND_EXPR.
24558
24559 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24560
24561 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
24562
24563 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24564
24565 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
24566 where we were unable to cost an RTX.
24567
24568 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24569
24570 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
24571 HIGH, LO_SUM.
24572
24573 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24574 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24575
24576 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
24577
24578 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24579 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24580
24581 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
24582 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
24583
24584 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24585 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24586
24587 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
24588 operators.
24589
24590 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24591 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24592
24593 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24594 DIV/MOD.
24595
24596 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24597 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24598
24599 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
24600 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
24601
24602 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24603 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24604
24605 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
24606 rotates and shifts.
24607
24608 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24609 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24610
24611 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
24612 ZERO_EXTEND and SIGN_EXTEND better.
24613
24614 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24615 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24616
24617 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
24618 logical operations.
24619
24620 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24621 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24622
24623 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
24624 costs when costing loads and stores to memory.
24625
24626 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24627 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
24628
24629 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
24630 for SET RTX.
24631
24632 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24633
24634 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
24635
24636 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24637 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24638
24639 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
24640 to...
24641 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
24642 well formed.
24643 (aarch64_rtx_mult_cost): New.
24644 (aarch64_rtx_costs): Use it, refactor as appropriate.
24645
24646 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24647 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
24648
24649 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
24650 emit instructions, return number of instructions which would
24651 be emitted.
24652 (aarch64_add_constant): Update call to aarch64_build_constant.
24653 (aarch64_output_mi_thunk): Likewise.
24654 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
24655 a CONST_DOUBLE.
24656
24657 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24658
24659 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
24660 (TARGET_RTX_COSTS): Call it.
24661
24662 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24663
24664 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
24665 (cortexa57_vector_cost): Likewise.
24666 (cortexa57_tunings): Use them.
24667
24668 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
24669
24670 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
24671 (cpu_addrcost_table): Use it.
24672 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
24673 (aarch64_address_cost): Rewrite using aarch64_classify_address,
24674 move it.
24675
24676 2014-05-16 Richard Biener <rguenther@suse.de>
24677
24678 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
24679 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
24680 (visit_phi): Ignore edges marked as not executable.
24681 (class cond_dom_walker): New.
24682 (cond_dom_walker::before_dom_children): Value-number
24683 control statements and mark successor edges as not
24684 executable if possible.
24685 (run_scc_vn): First walk all control statements in
24686 dominator order, marking edges as not executable.
24687 * tree-inline.c (copy_edges_for_bb): Be not confused
24688 about random edge flags.
24689
24690 2014-05-16 Richard Biener <rguenther@suse.de>
24691
24692 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
24693
24694 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
24695
24696 PR target/61193
24697 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
24698 (__TM_simple_begin): Use it.
24699 (__TM_begin): Likewise.
24700
24701 2014-05-15 Martin Jambor <mjambor@suse.cz>
24702
24703 PR ipa/61085
24704 * ipa-prop.c (update_indirect_edges_after_inlining): Check
24705 type_preserved flag when the indirect edge is polymorphic.
24706
24707 2014-05-15 Martin Jambor <mjambor@suse.cz>
24708
24709 PR tree-optimization/61090
24710 * tree-sra.c (sra_modify_expr): Pass the current gsi to
24711 build_ref_for_model.
24712
24713 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24714
24715 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
24716 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
24717
24718 2014-05-15 Jakub Jelinek <jakub@redhat.com>
24719
24720 PR tree-optimization/61158
24721 * fold-const.c (fold_binary_loc): If X is zero-extended and
24722 shiftc >= prec, make sure zerobits is all ones instead of
24723 invoking undefined behavior.
24724
24725 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24726
24727 * regcprop.h: New file.
24728 * regcprop.c (skip_debug_insn_p): New decl.
24729 (replace_oldest_value_reg): Check skip_debug_insn_p.
24730 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
24731 * shrink-wrap.c: Include regcprop.h.
24732 (prepare_shrink_wrap): Call
24733 copyprop_hardreg_forward_bb_without_debug_insn.
24734
24735 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24736
24737 * shrink-wrap.h: Update comment.
24738 * shrink-wrap.c: Update comment.
24739 (next_block_for_reg): Rename to live_edge_for_reg.
24740 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
24741 (move_insn_for_shrink_wrap): Split live_edge.
24742 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
24743
24744 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
24745
24746 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
24747 Delete.
24748 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
24749 * config/sparc/sparc.md (fptype_ut699): New attribute.
24750 (in_branch_delay): Return false if -mfix-ut699 is specified and
24751 fptype_ut699 is set to single.
24752 (truncdfsf2): Add fptype_ut699 attribute.
24753 (fix_truncdfsi2): Likewise.
24754 (floatsisf2): Change fptype attribute.
24755 (fix_truncsfsi2): Likewise.
24756 (negtf2_notv9): Delete.
24757 (negtf2_v9): Likewise.
24758 (negtf2_hq): New instruction.
24759 (negtf2): New instruction and splitter.
24760 (negdf2_notv9): Rewrite.
24761 (abstf2_notv9): Delete.
24762 (abstf2_hq_v9): Likewise.
24763 (abstf2_v9): Likewise.
24764 (abstf2_hq): New instruction.
24765 (abstf2): New instruction and splitter.
24766 (absdf2_notv9): Rewrite.
24767
24768 2014-05-14 Cary Coutant <ccoutant@google.com>
24769
24770 PR debug/61013
24771 * opts.c (common_handle_option): Don't special-case "-g".
24772 (set_debug_level): Default to at least level 2 with "-g".
24773
24774 2014-05-14 DJ Delorie <dj@redhat.com>
24775
24776 * config/msp430/msp430.c (msp430_builtin): Add
24777 MSP430_BUILTIN_DELAY_CYCLES.
24778 (msp430_init_builtins): Register void __delay_cycles(long long).
24779 (msp430_builtin_decl): Add it.
24780 (cg_magic_constant): New.
24781 (msp430_expand_delay_cycles): New.
24782 (msp430_expand_builtin): Call it.
24783 (msp430_print_operand_raw): Change integer printing from "int" to
24784 HOST_WIDE_INT.
24785 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
24786 (delay_cycles_start): New.
24787 (delay_cycles_end): New.
24788 (delay_cycles_32): New.
24789 (delay_cycles_32x): New.
24790 (delay_cycles_16): New.
24791 (delay_cycles_16x): New.
24792 (delay_cycles_2): New.
24793 (delay_cycles_1): New.
24794 * doc/extend.texi: Document __delay_cycles().
24795
24796 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
24797
24798 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
24799 length attribute computation.
24800
24801 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
24802
24803 PR debug/61188
24804 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
24805
24806 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
24807
24808 PR target/61084
24809 * config/sparc/sparc.md: Fix types of low and high in DI constant
24810 splitter. Use gen_int_mode in some other splitters.
24811
24812 2014-05-14 Martin Jambor <mjambor@suse.cz>
24813
24814 PR ipa/60897
24815 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
24816
24817 2014-05-14 James Norris <jnorris@codesourcery.com>
24818
24819 * omp-low.c (expand_parallel_call): Remove shadow variable.
24820 (expand_omp_taskreg): Likewise.
24821
24822 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
24823
24824 * common/config/i386/i386-common.c
24825 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
24826 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
24827 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
24828 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
24829 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
24830 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
24831 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
24832 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
24833 xsavecintrin.h, xsavesintrin.h.
24834 (x86_64-*-*): Ditto.
24835 * config/i386/clflushoptintrin.h: New.
24836 * config/i386/xsavecintrin.h: Ditto.
24837 * config/i386/xsavesintrin.h: Ditto.
24838 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
24839 (bit_XSAVES): Ditto.
24840 (bit_XSAVES): Ditto.
24841 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24842 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
24843 -mno-clflushopt.
24844 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
24845 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
24846 OPTION_MASK_ISA_XSAVES.
24847 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
24848 -mxsavec, -mxsaves.
24849 (PTA_CLFLUSHOPT) Define.
24850 (PTA_XSAVEC): Ditto.
24851 (PTA_XSAVES): Ditto.
24852 (ix86_option_override_internal): Handle new options.
24853 (ix86_valid_target_attribute_inner_p): Ditto.
24854 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
24855 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
24856 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
24857 (bdesc_special_args): Add __builtin_ia32_xsaves,
24858 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
24859 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
24860 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
24861 (ix86_expand_builtin): Handle new builtins.
24862 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
24863 (TARGET_CLFLUSHOPT_P): Ditto.
24864 (TARGET_XSAVEC): Ditto.
24865 (TARGET_XSAVEC_P): Ditto.
24866 (TARGET_XSAVES): Ditto.
24867 (TARGET_XSAVES_P): Ditto.
24868 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
24869 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
24870 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
24871 (ANY_XRSTOR): New.
24872 (ANY_XRSTOR64): Ditto.
24873 (xrstor): Ditto.
24874 (xrstor): Change into <xrstor>.
24875 (xrstor_rex64): Change into <xrstor>_rex64.
24876 (xrstor64): Change into <xrstor>64
24877 (clflushopt): New.
24878 * config/i386/i386.opt (mclflushopt): New.
24879 (mxsavec): Ditto.
24880 (mxsaves): Ditto.
24881 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
24882 xsavecintrin.h.
24883 * doc/invoke.texi: Document new options.
24884
24885 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
24886
24887 PR rtl-optimization/60866
24888 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
24889 Default it to -1. Pass it down to init_simplejump_data.
24890 (init_simplejump_data): New parameter old_seqno. Pass it down
24891 to get_seqno_for_a_jump.
24892 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
24893 initializing new jump seqno as a last resort. Add comment.
24894 (sel_redirect_edge_and_branch): Save old seqno of the conditional
24895 jump and pass it down to sel_init_new_insn.
24896 (sel_redirect_edge_and_branch_force): Likewise.
24897
24898 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
24899
24900 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
24901 shifted values to avoid build warning.
24902
24903 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
24904
24905 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
24906 * cfgrtl.c (rtl_merge_blocks): Fix comment.
24907 (cfg_layout_merge_blocks): Likewise.
24908 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
24909
24910 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
24911
24912 PR rtl-optimization/60901
24913 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
24914 bb predecessor belongs to the same scheduling region. Adjust comment.
24915
24916 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
24917
24918 * doc/sourcebuild.texi: (dfp_hw): Document.
24919 (p8vector_hw): Likewise.
24920 (powerpc_eabi_ok): Likewise.
24921 (powerpc_elfv2): Likewise.
24922 (powerpc_htm_ok): Likewise.
24923 (ppc_recip_hw): Likewise.
24924 (vsx_hw): Likewise.
24925
24926 2014-05-13 Cary Coutant <ccoutant@google.com>
24927
24928 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
24929
24930 2014-05-13 David Malcolm <dmalcolm@redhat.com>
24931
24932 * gengtype-parse.c (require3): Eliminate in favor of...
24933 (require4): New.
24934 (require_template_declaration): Update to support optional single *
24935 on a type.
24936
24937 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
24938 (create_user_defined_type): Handle a single level of explicit
24939 pointerness within template arguments.
24940 (struct write_types_data): Add field "kind".
24941 (filter_type_name): Handle "*" character.
24942 (write_user_func_for_structure_ptr): Require a write_types_data
24943 rather than just a prefix string, so that we can look up the kind
24944 of the wtd and use it as an index into wrote_user_func_for_ptr,
24945 ensuring that such functions are written at most once. Support
24946 subclasses by invoking the marking function of the ultimate base class.
24947 (write_user_func_for_structure_body): Require a write_types_data
24948 rather than just a prefix string, so that we can pass this to
24949 write_user_func_for_structure_ptr.
24950 (write_func_for_structure): Likewise.
24951 (ggc_wtd): Add initializer of new "kind" field.
24952 (pch_wtd): Likewise.
24953
24954 * gengtype.h (enum write_types_kinds): New.
24955 (struct type): Add field wrote_user_func_for_ptr to the "s"
24956 union member.
24957
24958 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
24959
24960 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
24961 instead of const_binop.
24962 (fold_binary_loc): Likewise.
24963
24964 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
24965
24966 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
24967 calculation to match get_ref_base_and_extent.
24968
24969 2014-05-13 Catherine Moore <clm@codesourcery.com>
24970 Sandra Loosemore <sandra@codesourcery.com>
24971
24972 * configure.ac: Fix assembly for explicit JALR relocation check.
24973 * configure: Regenerate.
24974
24975 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24976
24977 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
24978 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
24979 Remove associated type declarations and initialisations.
24980 (arm_expand_neon_builtin): Likewise.
24981 (neon_emit_pair_result_insn): Delete.
24982 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
24983 * config/arm/neon.md (neon_vtrn<mode>): Delete.
24984 (neon_vzip<mode>): Likewise.
24985 (neon_vuzp<mode>): Likewise.
24986
24987 2014-05-13 Richard Biener <rguenther@suse.de>
24988
24989 PR ipa/60973
24990 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
24991 it needs revisiting whether the call still may be tail-called.
24992
24993 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
24994
24995 * rtl.def (SYMBOL_REF): Remove middle "0" field.
24996 * rtl.h (block_symbol): Reduce number of fields to 2.
24997 (rtx_def): Add u2.symbol_ref_flags.
24998 (SYMBOL_REF_FLAGS): Use it.
24999 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25000 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25001 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25002 Lower index of SYMBOL_REF_DATA.
25003 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25004 Print SYMBOL_REF_FLAGS at the same time.
25005 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25006
25007 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25008
25009 * rtl.def (VAR_LOCATION): Remove "i" field.
25010 * rtl.h (rtx_def): Add u2.var_location_status.
25011 (PAT_VAR_LOCATION_STATUS): Use it.
25012 (gen_rtx_VAR_LOCATION): Declare.
25013 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25014 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25015 * var-tracking.c (emit_note_insn_var_location): Remove casts.
25016
25017 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25018
25019 * rtl.def (scratch): Fix outdated comment and remove "0" field.
25020 * gengtype.c (adjust_field_rtx_def): Update accordingly.
25021
25022 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25023
25024 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25025 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25026 * rtl.h (rtx_def): Add insn_uid to u2 field.
25027 (RTX_FLAG_CHECK8): Delete in favor of...
25028 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25029 (INSN_DELETED_P): Update accordingly.
25030 (INSN_UID): Use u2.insn_uid.
25031 (INSN_CHAIN_CODE_P): Define.
25032 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25033 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25034 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25035 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25036 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25037 indices accordingly.
25038 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25039 Update indices for insn-chain rtxes.
25040 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25041 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25042 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25043 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25044 * combine.c (try_combine): Likewise.
25045 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25046
25047 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25048
25049 * rtl.def (REG): Remove middle field.
25050 * rtl.h (rtx_def): Add orignal_regno to u2.
25051 (ORIGINAL_REGNO): Use it instead of field 1.
25052 (REG_ATTRS): Lower field index accordingly.
25053 * gengtype.c (adjust_field_rtx_def): Remove handling of
25054 ORIGINAL_REGNO. Move REG_ATTRS index down.
25055 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25056 code that prints the REGNO.
25057
25058 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25059
25060 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25061 GENERATOR_FILE.
25062
25063 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25064
25065 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25066
25067 2014-05-13 Bin Cheng <bin.cheng@arm.com>
25068
25069 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25070 (alloc_iv): Lower base expressions containing ADDR_EXPR.
25071
25072 2014-05-13 Ian Bolton <ian.bolton@arm.com>
25073
25074 * config/aarch64/aarch64-protos.h
25075 (aarch64_hard_regno_caller_save_mode): New prototype.
25076 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25077 New function.
25078 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25079
25080 2014-05-13 Christian Bruel <christian.bruel@st.com>
25081
25082 * target.def (mode_switching): New hook vector.
25083 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25084 (mode_exit, modepriority_to_mode): Likewise.
25085 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25086 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25087 * target.h: Include tm.h and hard-reg-set.h.
25088 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25089 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25090 * doc/tm.texi Regenerate.
25091 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25092 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25093 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25094 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25095 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25096 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25097 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25098 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
25099 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
25100 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
25101 (ix86_emit_mode_set): Hookify.
25102 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
25103 Delete.
25104 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25105 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
25106 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
25107 (epiphany_mode_priority_to_mode): Remove declaration.
25108 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
25109 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
25110 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
25111 Likewise.
25112 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
25113 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
25114 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
25115
25116 2014-05-13 Jakub Jelinek <jakub@redhat.com>
25117
25118 PR target/61060
25119 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
25120 is const0_rtx, return immediately. Don't test count == 0 when
25121 it is always true.
25122
25123 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25124
25125 * Makefile.in: add shrink-wrap.o.
25126 * config/i386/i386.c: include "shrink-wrap.h"
25127 * function.c: Likewise.
25128 (requires_stack_frame_p, next_block_for_reg,
25129 move_insn_for_shrink_wrap, prepare_shrink_wrap,
25130 dup_block_and_redirect): Move to shrink-wrap.c
25131 (thread_prologue_and_epilogue_insns): Extract three code segments
25132 as functions in shrink-wrap.c
25133 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
25134 shrink-wrap.h
25135 * shrink-wrap.c: New file.
25136 * shrink-wrap.h: New file.
25137
25138 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25139
25140 * doc/extend.texi: Reflect current numbers of pragmas. Remove
25141 reference to Solaris.
25142
25143 2014-05-12 Mike Stump <mikestump@comcast.net>
25144
25145 PR other/31778
25146 * genattrtab.c (filename): Add.
25147 (convert_set_attr_alternative): Improve error message.
25148 (check_defs): Restore read_md_filename for error messages.
25149 (gen_insn): Save filename.
25150
25151 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
25152
25153 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
25154 -fno-local-ivars and -fivar-visibility.
25155 * c-family/c.opt: Make -Wshadow also implicitly enable
25156 -Wshadow-ivar.
25157
25158 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
25159
25160 * doc/tm.texi: Remove reference to deleted macro.
25161 * doc/tm.texi.in: Likewise.
25162
25163 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
25164
25165 PR target/60991
25166 * config/avr/avr.c (avr_out_store_psi): Use correct constant
25167 to restore Y.
25168
25169 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
25170
25171 PR libgcc/61152
25172 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
25173 * config/arm/aout.h (License): Same.
25174 * config/arm/bpabi.h (License): Same.
25175 * config/arm/elf.h (License): Same.
25176 * config/arm/linux-elf.h (License): Same.
25177 * config/arm/linux-gas.h (License): Same.
25178 * config/arm/netbsd-elf.h (License): Same.
25179 * config/arm/uclinux-eabi.h (License): Same.
25180 * config/arm/uclinux-elf.h (License): Same.
25181 * config/arm/vxworks.h (License): Same.
25182
25183 2014-05-11 Jakub Jelinek <jakub@redhat.com>
25184
25185 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
25186 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
25187 number of operands to 3.
25188 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
25189 * tree-nested.c (convert_nonlocal_omp_clauses,
25190 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
25191 * gimplify.c (gimplify_scan_omp_clauses): Handle
25192 OMP_CLAUSE_LINEAR_STMT.
25193 * omp-low.c (lower_rec_input_clauses): Fix typo.
25194 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
25195 cast between Fortran boolean_type_node and C _Bool if
25196 needed.
25197
25198 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
25199
25200 PR tree-optimization/61136
25201 * wide-int.h (multiple_of_p): Define a version that doesn't return
25202 the quotient.
25203 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
25204 integer_zerop/const_binop pair.
25205 (multiple_of_p): Likewise, converting both operands to widest_int
25206 precision.
25207
25208 2014-05-09 Teresa Johnson <tejohnson@google.com>
25209
25210 * cgraphunit.c (analyze_functions): Use correct dump file.
25211
25212 2014-05-09 Florian Weimer <fweimer@redhat.com>
25213
25214 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
25215 expand_used_vars.
25216 (stack_protect_return_slot_p): New function.
25217 (expand_used_vars): Call stack_protect_decl_p and
25218 stack_protect_return_slot_p for -fstack-protector-strong.
25219
25220 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
25221 Andrew Haley <aph@redhat.com>
25222 Richard Sandiford <rdsandiford@googlemail.com>
25223
25224 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
25225 pages.
25226
25227 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
25228
25229 PR middle-end/61111
25230 * fold-const.c (fold_binary_loc): Changed width of mask.
25231
25232 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25233
25234 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
25235 unsigned int initializers for regno_in, regno_out.
25236
25237 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
25238
25239 PR target/61055
25240 * config/avr/avr.md (cc): Add new attribute set_vzn.
25241 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
25242 Set cc insn attribute to set_vzn instead of set_zn for alternatives
25243 with INC, DEC or NEG.
25244 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
25245 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
25246 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
25247
25248 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25249
25250 Revert:
25251 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25252
25253 * wide-int.cc (UTItype): Define.
25254 (UDWtype): Define for appropriate W_TYPE_SIZE.
25255
25256 2014-05-09 Richard Biener <rguenther@suse.de>
25257
25258 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
25259 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
25260 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
25261 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
25262 ssa_propagate): Adjust.
25263
25264 2014-05-08 Jeff Law <law@redhat.com>
25265
25266 PR tree-optimization/61009
25267 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
25268 tri-state rather than a boolean. When a block is too big to
25269 thread through, inform caller via negative return value.
25270 (thread_across_edge): If a block was too big for normal threading,
25271 then it's too big for a joiner too, so remove temporary equivalences
25272 and return immediately.
25273
25274 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
25275 Matthias Klose <doko@ubuntu.com>
25276
25277 PR driver/61106
25278 * optc-gen.awk: Fix option handling for -Wunused-parameter.
25279
25280 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25281
25282 PR target/59952
25283 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
25284
25285 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
25286
25287 PR target/61092
25288 * config/alpha/alpha.c: Include gimple-iterator.h.
25289 (alpha_gimple_fold_builtin): New function. Move
25290 ALPHA_BUILTIN_UMULH folding from ...
25291 (alpha_fold_builtin): ... here.
25292 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
25293
25294 2014-05-08 Wei Mi <wmi@google.com>
25295
25296 PR target/58066
25297 * config/i386/i386.c (ix86_compute_frame_layout): Update
25298 preferred_stack_boundary for call, expanded from tls descriptor.
25299 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
25300 to depend on SP register.
25301 (*tls_local_dynamic_base_32_gnu): Ditto.
25302 (*tls_local_dynamic_32_once): Ditto.
25303 (tls_global_dynamic_64_<mode>): Set
25304 ix86_tls_descriptor_calls_expanded_in_cfun.
25305 (tls_local_dynamic_base_64_<mode>): Ditto.
25306 (tls_global_dynamic_32): Set
25307 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
25308 to depend on SP register.
25309 (tls_local_dynamic_base_32): Ditto.
25310
25311 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25312
25313 * config/arm/arm_neon.h: Update comment.
25314 * config/arm/neon-docgen.ml: Delete.
25315 * config/arm/neon-gen.ml: Delete.
25316 * doc/arm-neon-intrinsics.texi: Update comment.
25317
25318 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25319
25320 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
25321 and v4sf versions.
25322 (vand, vorr, veor, vorn, vbic): Remove.
25323 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
25324 iterator.
25325 (neon_vsub_unspec): Likewise.
25326 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
25327
25328 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25329
25330 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
25331 (vadd_s16): Likewise.
25332 (vadd_s32): Likewise.
25333 (vadd_f32): Likewise.
25334 (vadd_u8): Likewise.
25335 (vadd_u16): Likewise.
25336 (vadd_u32): Likewise.
25337 (vadd_s64): Likewise.
25338 (vadd_u64): Likewise.
25339 (vaddq_s8): Likewise.
25340 (vaddq_s16): Likewise.
25341 (vaddq_s32): Likewise.
25342 (vaddq_s64): Likewise.
25343 (vaddq_f32): Likewise.
25344 (vaddq_u8): Likewise.
25345 (vaddq_u16): Likewise.
25346 (vaddq_u32): Likewise.
25347 (vaddq_u64): Likewise.
25348 (vmul_s8): Likewise.
25349 (vmul_s16): Likewise.
25350 (vmul_s32): Likewise.
25351 (vmul_f32): Likewise.
25352 (vmul_u8): Likewise.
25353 (vmul_u16): Likewise.
25354 (vmul_u32): Likewise.
25355 (vmul_p8): Likewise.
25356 (vmulq_s8): Likewise.
25357 (vmulq_s16): Likewise.
25358 (vmulq_s32): Likewise.
25359 (vmulq_f32): Likewise.
25360 (vmulq_u8): Likewise.
25361 (vmulq_u16): Likewise.
25362 (vmulq_u32): Likewise.
25363 (vsub_s8): Likewise.
25364 (vsub_s16): Likewise.
25365 (vsub_s32): Likewise.
25366 (vsub_f32): Likewise.
25367 (vsub_u8): Likewise.
25368 (vsub_u16): Likewise.
25369 (vsub_u32): Likewise.
25370 (vsub_s64): Likewise.
25371 (vsub_u64): Likewise.
25372 (vsubq_s8): Likewise.
25373 (vsubq_s16): Likewise.
25374 (vsubq_s32): Likewise.
25375 (vsubq_s64): Likewise.
25376 (vsubq_f32): Likewise.
25377 (vsubq_u8): Likewise.
25378 (vsubq_u16): Likewise.
25379 (vsubq_u32): Likewise.
25380 (vsubq_u64): Likewise.
25381 (vand_s8): Likewise.
25382 (vand_s16): Likewise.
25383 (vand_s32): Likewise.
25384 (vand_u8): Likewise.
25385 (vand_u16): Likewise.
25386 (vand_u32): Likewise.
25387 (vand_s64): Likewise.
25388 (vand_u64): Likewise.
25389 (vandq_s8): Likewise.
25390 (vandq_s16): Likewise.
25391 (vandq_s32): Likewise.
25392 (vandq_s64): Likewise.
25393 (vandq_u8): Likewise.
25394 (vandq_u16): Likewise.
25395 (vandq_u32): Likewise.
25396 (vandq_u64): Likewise.
25397 (vorr_s8): Likewise.
25398 (vorr_s16): Likewise.
25399 (vorr_s32): Likewise.
25400 (vorr_u8): Likewise.
25401 (vorr_u16): Likewise.
25402 (vorr_u32): Likewise.
25403 (vorr_s64): Likewise.
25404 (vorr_u64): Likewise.
25405 (vorrq_s8): Likewise.
25406 (vorrq_s16): Likewise.
25407 (vorrq_s32): Likewise.
25408 (vorrq_s64): Likewise.
25409 (vorrq_u8): Likewise.
25410 (vorrq_u16): Likewise.
25411 (vorrq_u32): Likewise.
25412 (vorrq_u64): Likewise.
25413 (veor_s8): Likewise.
25414 (veor_s16): Likewise.
25415 (veor_s32): Likewise.
25416 (veor_u8): Likewise.
25417 (veor_u16): Likewise.
25418 (veor_u32): Likewise.
25419 (veor_s64): Likewise.
25420 (veor_u64): Likewise.
25421 (veorq_s8): Likewise.
25422 (veorq_s16): Likewise.
25423 (veorq_s32): Likewise.
25424 (veorq_s64): Likewise.
25425 (veorq_u8): Likewise.
25426 (veorq_u16): Likewise.
25427 (veorq_u32): Likewise.
25428 (veorq_u64): Likewise.
25429 (vbic_s8): Likewise.
25430 (vbic_s16): Likewise.
25431 (vbic_s32): Likewise.
25432 (vbic_u8): Likewise.
25433 (vbic_u16): Likewise.
25434 (vbic_u32): Likewise.
25435 (vbic_s64): Likewise.
25436 (vbic_u64): Likewise.
25437 (vbicq_s8): Likewise.
25438 (vbicq_s16): Likewise.
25439 (vbicq_s32): Likewise.
25440 (vbicq_s64): Likewise.
25441 (vbicq_u8): Likewise.
25442 (vbicq_u16): Likewise.
25443 (vbicq_u32): Likewise.
25444 (vbicq_u64): Likewise.
25445 (vorn_s8): Likewise.
25446 (vorn_s16): Likewise.
25447 (vorn_s32): Likewise.
25448 (vorn_u8): Likewise.
25449 (vorn_u16): Likewise.
25450 (vorn_u32): Likewise.
25451 (vorn_s64): Likewise.
25452 (vorn_u64): Likewise.
25453 (vornq_s8): Likewise.
25454 (vornq_s16): Likewise.
25455 (vornq_s32): Likewise.
25456 (vornq_s64): Likewise.
25457 (vornq_u8): Likewise.
25458 (vornq_u16): Likewise.
25459 (vornq_u32): Likewise.
25460 (vornq_u64): Likewise.
25461
25462 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25463
25464 * wide-int.cc (UTItype): Define.
25465 (UDWtype): Define for appropriate W_TYPE_SIZE.
25466
25467 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
25468
25469 PR tree-optimization/59100
25470 * tree-ssa-phiopt.c: Include tree-inline.h.
25471 (neutral_element_p, absorbing_element_p): New functions.
25472 (value_replacement): Handle conditional binary operations with a
25473 neutral or absorbing element.
25474
25475 2014-05-08 Richard Biener <rguenther@suse.de>
25476
25477 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
25478 folding the expression.
25479 (valueize_expr): Remove.
25480 (visit_reference_op_load): Do not valueize the result of
25481 vn_get_expr_for.
25482 (simplify_binary_expression): Likewise.
25483 (simplify_unary_expression): Likewise.
25484
25485 2014-05-08 Richard Biener <rguenther@suse.de>
25486
25487 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
25488 looking at TYPE_ARG_TYPES.
25489
25490 2014-05-08 Richard Biener <rguenther@suse.de>
25491
25492 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
25493 pointer propagation special-case.
25494
25495 2014-05-08 Bin Cheng <bin.cheng@arm.com>
25496
25497 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
25498 core part of address expressions.
25499
25500 2014-05-08 Alan Modra <amodra@gmail.com>
25501
25502 PR target/60737
25503 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
25504 loads and stores when -mno-strict-align at any alignment.
25505 (expand_block_clear): Similarly. Also correct calculation of
25506 instruction count.
25507
25508 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
25509
25510 PR middle-end/39246
25511 * tree-complex.c (expand_complex_move): Keep line info when expanding
25512 complex move.
25513 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
25514 of complex expression. Use new argument to display correct location
25515 for values coming from phi statement.
25516 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
25517 (warn_uninitialized_phi): Pass location of phi argument to
25518 warn_uninit.
25519 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
25520 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
25521
25522 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25523
25524 * config/rs6000/predicates.md (indexed_address_mem): New.
25525 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
25526 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
25527 fpstore_ux, fpstore_u.
25528 (sign_extend, indexed, update): New.
25529 (cell_micro): Adjust.
25530 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
25531 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
25532 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
25533 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
25534 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
25535 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
25536 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
25537 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
25538 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
25539 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
25540 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
25541 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
25542 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
25543 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
25544 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
25545
25546 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
25547 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
25548 *vsx_extract_<mode>_store): Adjust.
25549 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
25550 is_cracked_insn, insn_must_be_first_in_group,
25551 insn_must_be_last_in_group): Adjust.
25552
25553 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
25554 Adjust.
25555 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
25556 ppc440-fpstore): Adjust.
25557 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
25558 ppc476-fpstore): Adjust.
25559 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
25560 ppc601-fpstore): Adjust.
25561 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
25562 Adjust.
25563 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
25564 Adjust.
25565 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
25566 ppc7450-fpstore): Adjust.
25567 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
25568 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
25569 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
25570 Adjust.
25571 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
25572 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
25573 cell-fpstore, cell-fpstore-update): Adjust.
25574 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
25575 ppce300c3_store, ppce300c3_fpstore): Adjust.
25576 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
25577 e500mc_fpstore): Adjust.
25578 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
25579 e500mc64_store, e500mc64_fpstore): Adjust.
25580 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
25581 e5500_fpstore): Adjust.
25582 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
25583 e6500_fpstore): Adjust.
25584 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
25585 Adjust.
25586 * config/rs6000/power4.md (power4-load, power4-load-ext,
25587 power4-load-ext-update, power4-load-ext-update-indexed,
25588 power4-load-update-indexed, power4-load-update, power4-fpload,
25589 power4-fpload-update, power4-store, power4-store-update,
25590 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
25591 Adjust.
25592 * config/rs6000/power5.md (power5-load, power5-load-ext,
25593 power5-load-ext-update, power5-load-ext-update-indexed,
25594 power5-load-update-indexed, power5-load-update, power5-fpload,
25595 power5-fpload-update, power5-store, power5-store-update,
25596 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
25597 Adjust.
25598 * config/rs6000/power6.md (power6-load, power6-load-ext,
25599 power6-load-update, power6-load-update-indexed,
25600 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
25601 power6-fpload-update, power6-store, power6-store-update,
25602 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
25603 Adjust.
25604 * config/rs6000/power7.md (power7-load, power7-load-ext,
25605 power7-load-update, power7-load-update-indexed,
25606 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
25607 power7-fpload-update, power7-store, power7-store-update,
25608 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
25609 Adjust.
25610 * config/rs6000/power8.md (power8-load, power8-load-update,
25611 power8-load-ext, power8-load-ext-update, power8-fpload,
25612 power8-fpload-update, power8-store, power8-store-update-indexed,
25613 power8-fpstore, power8-fpstore-update): Adjust.
25614 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
25615 Adjust.
25616 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
25617 titan_lsu_store, titan_lsu_fpstore): Adjust.
25618 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
25619
25620 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
25621
25622 PR target/60884
25623 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
25624 unrolled byte insns. Emit address increments after move insns.
25625
25626 2014-05-07 David Malcolm <dmalcolm@redhat.com>
25627
25628 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
25629 const_gimple, rather than a gimple.
25630 (gimple_call_builtin_p): Likewise, for the three variants.
25631
25632 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
25633 (gimple_call_builtin_p): Likewise, for the three variants.
25634
25635 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
25636
25637 PR tree-optimization/61095
25638 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
25639
25640 2014-05-07 Richard Biener <rguenther@suse.de>
25641
25642 PR tree-optimization/61034
25643 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
25644 (maybe_skip_until): Use translate to take into account
25645 lattices when trying to do disambiguations.
25646 (get_continuation_for_phi_1): Likewise.
25647 (get_continuation_for_phi): Adjust for added translate arguments.
25648 (walk_non_aliased_vuses): Likewise.
25649 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
25650 (walk_non_aliased_vuses): Likewise.
25651 (call_may_clobber_ref_p_1): Declare.
25652 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
25653 calls. Stop early if we are only supposed to disambiguate.
25654 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
25655
25656 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
25657
25658 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
25659 Emit an error when the function has arguments.
25660
25661 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25662
25663 * cfgloop.h (unswitch_loops): Remove.
25664 * doc/passes.texi: Remove references to loop-unswitch.c
25665 * timevar.def (TV_LOOP_UNSWITCH): Remove.
25666
25667 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
25668
25669 * tree-vect-data-refs.c (vect_grouped_load_supported): New
25670 check for loads group of length 3.
25671 (vect_permute_load_chain): New permutations for loads group of
25672 length 3.
25673 * tree-vect-stmts.c (vect_model_load_cost): Change cost
25674 of vec_perm_shuffle for the new permutations.
25675
25676 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
25677
25678 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
25679 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
25680 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
25681 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
25682 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
25683 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
25684 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
25685 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
25686
25687 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
25688
25689 * loop-unswitch.c: Delete.
25690
25691 2014-05-07 Richard Biener <rguenther@suse.de>
25692
25693 * config.gcc: Always set need_64bit_hwint to yes.
25694
25695 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
25696
25697 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
25698 of using optimize_size.
25699
25700 2014-05-06 Mike Stump <mikestump@comcast.net>
25701
25702 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
25703
25704 2014-05-06 Joseph Myers <joseph@codesourcery.com>
25705
25706 * config/i386/sse.md (*mov<mode>_internal)
25707 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
25708 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
25709 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
25710 (*<code><mode>3, *andnot<mode>3<mask_name>)
25711 (<mask_codefor><code><mode>3<mask_name>): Only consider
25712 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
25713
25714 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25715
25716 Revert:
25717 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
25718
25719 * lra-constraints.c (valid_address_p): Move earlier in file.
25720 Add a constraint argument to the address_info version.
25721 (satisfies_memory_constraint_p): New function.
25722 (satisfies_address_constraint_p): Likewise.
25723 (process_alt_operands, curr_insn_transform): Use them.
25724 (process_address): Pass the constraint to valid_address_p when
25725 checking address operands.
25726
25727 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
25728
25729 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
25730 to their respective blocks. Fix inadvertent use of "node".
25731
25732 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
25733
25734 * emit-rtl.c (init_derived_machine_modes): New functionm, split
25735 out from...
25736 (init_emit_once): ...here.
25737 * rtl.h (init_derived_machine_modes): Declare.
25738 * toplev.c (do_compile): Call it even if no_backend.
25739
25740 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
25741 Mike Stump <mikestump@comcast.net>
25742 Richard Sandiford <rdsandiford@googlemail.com>
25743 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25744
25745 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
25746 (rtx_equal_for_memref_p): Update comment.
25747 (adjust_offset_for_component_ref): Use wide-int interfaces.
25748 * builtins.c (get_object_alignment_2): Likewise.
25749 (c_readstr): Likewise.
25750 (target_char_cast): Add comment.
25751 (determine_block_size): Use wide-int interfaces.
25752 (expand_builtin_signbit): Likewise.
25753 (fold_builtin_int_roundingfn): Likewise.
25754 (fold_builtin_bitop): Likewise.
25755 (fold_builtin_bswap): Likewise.
25756 (fold_builtin_logarithm): Use signop.
25757 (fold_builtin_pow): Likewise.
25758 (fold_builtin_memory_op): Use wide-int interfaces.
25759 (fold_builtin_object_size): Likewise.
25760 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
25761 nb_iterations_estimate.
25762 (record_niter_bound): Use wide-int interfaces.
25763 (get_estimated_loop_iterations_int): Likewise.
25764 (get_estimated_loop_iterations): Likewise.
25765 (get_max_loop_iterations): Likewise.
25766 * cfgloop.h: Include wide-int.h.
25767 (struct nb_iter_bound): Change bound to widest_int.
25768 (struct loop): Change nb_iterations_upper_bound and
25769 nb_iterations_estimate to widest_int.
25770 (record_niter_bound): Switch to use widest_int.
25771 (get_estimated_loop_iterations): Likewise.
25772 (get_max_loop_iterations): Likewise.
25773 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
25774 update for wide-int.
25775 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
25776 * combine.c (try_combine): Likewise.
25777 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
25778 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
25779 interfaces.
25780 (aarch64_float_const_representable_p): Likewise.
25781 * config/arc/arc.c: Include wide-int.h.
25782 (arc_can_use_doloop_p): Use wide-int interfaces.
25783 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
25784 (vfp3_const_double_index): Likewise.
25785 * config/avr/avr.c (avr_out_round): Likewise.
25786 (avr_fold_builtin): Likewise.
25787 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
25788 (bfin_can_use_doloop_p): Likewise.
25789 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
25790 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
25791 * config/i386/i386.c: Include wide-int.h.
25792 (ix86_data_alignment): Use wide-int interfaces.
25793 (ix86_local_alignment): Likewise.
25794 (ix86_emit_swsqrtsf): Update real_from_integer.
25795 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
25796 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
25797 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
25798 (zero_constant): Likewise.
25799 (input_operand): Likewise.
25800 (splat_input_operand): Likewise.
25801 (non_logical_cint_operand): Change const_double to const_wide_int.
25802 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
25803 (easy_altivec_constant): Remove comment.
25804 (paired_expand_vector_init): Use CONSTANT_P.
25805 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
25806 (rs6000_emit_move): Update checks.
25807 (rs6000_aggregate_candidate): Use wide-int interfaces.
25808 (rs6000_expand_ternop_builtin): Likewise.
25809 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
25810 (rs6000_assemble_integer): Likewise.
25811 (rs6000_hash_constant): Likewise.
25812 (output_toc): Likewise.
25813 (rs6000_rtx_costs): Likewise.
25814 (rs6000_emit_swrsqrt); Update call to real_from_integer.
25815 * config/rs6000/rs6000-c.c: Include wide-int.h.
25816 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
25817 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
25818 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
25819 Handle CONST_WIDE_INT.
25820 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
25821 Use tree_fits_uhwi_p.
25822 * config/sparc/sparc.c: Include wide-int.h.
25823 (sparc_fold_builtin): Use wide-int interfaces.
25824 * config/vax/vax.c: Include wide-int.h.
25825 (vax_float_literal): Use real_from_integer.
25826 * coretypes.h (struct hwivec_def): New.
25827 (hwivec): New.
25828 (const_hwivec): New.
25829 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
25830 (equiv_constant): Handle CONST_WIDE_INT.
25831 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
25832 (cselib_hash_rtx): Handle CONST_WIDE_INT.
25833 * dbxout.c (stabstr_U): Use wide-int interfaces.
25834 (dbxout_type): Update to use cst_fits_shwi_p.
25835 * defaults.h (LOG2_BITS_PER_UNIT): Define.
25836 (TARGET_SUPPORTS_WIDE_INT): Add default.
25837 * dfp.c: Include wide-int.h.
25838 (decimal_real_to_integer2): Use wide-int interfaces and rename to
25839 decimal_real_to_integer.
25840 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
25841 decimal_real_to_integer.
25842 * doc/generic.texi (Constant expressions): Update for wide_int.
25843 * doc/rtl.texi (const_double): Likewise.
25844 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
25845 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
25846 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
25847 (REAL_VALUE_FROM_INT): Remove.
25848 (TARGET_SUPPORTS_WIDE_INT): New.
25849 * doc/tm.texi: Regenerate.
25850 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
25851 * double-int.h: Include wide-int.h.
25852 (struct wi::int_traits): New.
25853 * dwarf2out.c (get_full_len): New.
25854 (dw_val_equal_p): Add case dw_val_class_wide_int.
25855 (size_of_loc_descr): Likewise.
25856 (output_loc_operands): Likewise.
25857 (insert_double): Remove.
25858 (insert_wide_int): New.
25859 (add_AT_wide): New.
25860 (print_die): Add case dw_val_class_wide_int.
25861 (attr_checksum): Likewise.
25862 (attr_checksum_ordered): Likewise.
25863 (same_dw_val_p): Likewise.
25864 (size_of_die): Likewise.
25865 (value_format): Likewise.
25866 (output_die): Likewise.
25867 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
25868 Use wide-int.
25869 (clz_loc_descriptor): Use wide-int interfaces.
25870 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
25871 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
25872 (round_up_to_align): Use wide-int interfaces.
25873 (field_byte_offset): Likewise.
25874 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
25875 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
25876 CONST_DOUBLE handling. Use wide-int interfaces.
25877 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
25878 (gen_enumeration_type_die): Use add_AT_wide.
25879 (hash_loc_operands): Add case dw_val_class_wide_int.
25880 (compare_loc_operands): Likewise.
25881 * dwarf2out.h: Include wide-int.h.
25882 (wide_int_ptr): New.
25883 (enum dw_val_class): Add dw_val_class_wide_int.
25884 (struct dw_val_struct): Add val_wide.
25885 * emit-rtl.c (const_wide_int_htab): New.
25886 (const_wide_int_htab_hash): New.
25887 (const_wide_int_htab_eq): New.
25888 (lookup_const_wide_int): New.
25889 (const_double_htab_hash): Use wide-int interfaces.
25890 (const_double_htab_eq): Likewise.
25891 (rtx_to_double_int): Conditionally compile for wide-int.
25892 (immed_double_int_const): Rename to immed_wide_int_const and
25893 update for wide-int.
25894 (immed_double_const): Conditionally compile for wide-int.
25895 (init_emit_once): Use wide-int interfaces.
25896 * explow.c (plus_constant): Likewise.
25897 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
25898 (lshift_value): Use wide-int interfaces.
25899 (expand_mult): Likewise.
25900 (choose_multiplier): Likewise.
25901 (expand_smod_pow2): Likewise.
25902 (make_tree): Likewise.
25903 * expr.c (convert_modes): Consolidate handling of constants.
25904 Use wide-int interfaces.
25905 (emit_group_load_1): Add note.
25906 (store_expr): Update comment.
25907 (get_inner_reference): Use wide-int interfaces.
25908 (expand_constructor): Update comment.
25909 (expand_expr_real_2): Use wide-int interfaces.
25910 (expand_expr_real_1): Likewise.
25911 (reduce_to_bit_field_precision): Likewise.
25912 (const_vector_from_tree): Likewise.
25913 * final.c: Include wide-int-print.h.
25914 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
25915 * fixed-value.c: Include wide-int.h.
25916 (fixed_from_string): Use wide-int interfaces.
25917 (fixed_to_decimal): Likewise.
25918 (fixed_convert_from_real): Likewise.
25919 (real_convert_from_fixed): Likewise.
25920 * fold-const.h (mem_ref_offset): Return an offset_int.
25921 (div_if_zero_remainder): Remove code parameter.
25922 * fold-const.c (div_if_zero_remainder): Remove code parameter.
25923 Use wide-int interfaces.
25924 (may_negate_without_overflow_p): Use wide-int interfaces.
25925 (negate_expr_p): Likewise.
25926 (fold_negate_expr): Likewise.
25927 (int_const_binop_1): Likewise.
25928 (const_binop): Likewise.
25929 (fold_convert_const_int_from_int): Likewise.
25930 (fold_convert_const_int_from_real): Likewise.
25931 (fold_convert_const_int_from_fixed): Likewise.
25932 (fold_convert_const_fixed_from_int): Likewise.
25933 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
25934 (sign_bit_p): Use wide-int interfaces.
25935 (make_range_step): Likewise.
25936 (build_range_check): Likewise. Pass an integer of the correct type
25937 instead of using integer_one_node.
25938 (range_predecessor): Pass an integer of the correct type instead
25939 of using integer_one_node.
25940 (range_successor): Likewise.
25941 (merge_ranges): Likewise.
25942 (unextend): Use wide-int interfaces.
25943 (extract_muldiv_1): Likewise.
25944 (fold_div_compare): Likewise.
25945 (fold_single_bit_test): Likewise.
25946 (fold_sign_changed_comparison): Likewise.
25947 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
25948 (fold_plusminus_mult_expr): Use wide-int interfaces.
25949 (native_encode_int): Likewise.
25950 (native_interpret_int): Likewise.
25951 (fold_unary_loc): Likewise.
25952 (pointer_may_wrap_p): Likewise.
25953 (size_low_cst): Likewise.
25954 (mask_with_tz): Likewise.
25955 (fold_binary_loc): Likewise.
25956 (fold_ternary_loc): Likewise.
25957 (multiple_of_p): Likewise.
25958 (tree_call_nonnegative_warnv_p): Update calls to
25959 tree_int_cst_min_precision and real_from_integer.
25960 (fold_negate_const): Use wide-int interfaces.
25961 (fold_abs_const): Likewise.
25962 (fold_relational_const): Use tree_int_cst_lt.
25963 (round_up_loc): Use wide-int interfaces.
25964 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
25965 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
25966 * gengtype.c: Remove include of double-int.h.
25967 (do_typedef): Use wide-int interfaces.
25968 (open_base_files): Add wide-int.h.
25969 (main): Add offset_int and widest_int typedefs.
25970 * gengtype-lex.l: Handle "^".
25971 (CXX_KEYWORD): Add "static".
25972 * gengtype-parse.c (require3): New.
25973 (require_template_declaration): Handle constant template arguments
25974 and nested templates.
25975 * gengtype-state.c: Don't include "double-int.h".
25976 * genpreds.c (write_one_predicate_function): Update comment.
25977 (write_tm_constrs_h): Add check for hval and lval use in
25978 CONST_WIDE_INT.
25979 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
25980 (add_to_sequence): Likewise.
25981 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
25982 and const_double_operand.
25983 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
25984 interfaces.
25985 * gimple-fold.c (get_base_constructor): Likewise.
25986 (fold_array_ctor_reference): Likewise.
25987 (fold_nonarray_ctor_reference): Likewise.
25988 (fold_const_aggregate_ref_1): Likewise.
25989 (gimple_val_nonnegative_real_p): Likewise.
25990 (gimple_fold_indirect_ref): Likewise.
25991 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
25992 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
25993 (struct slsr_cand_d): Change index to be widest_int.
25994 (struct incr_info_d): Change incr to be widest_int.
25995 (alloc_cand_and_find_basis): Use wide-int interfaces.
25996 (slsr_process_phi): Likewise.
25997 (backtrace_base_for_ref): Likewise. Return a widest_int.
25998 (restructure_reference): Take a widest_int instead of a double_int.
25999 (slsr_process_ref): Use wide-int interfaces.
26000 (create_mul_ssa_cand): Likewise.
26001 (create_mul_imm_cand): Likewise.
26002 (create_add_ssa_cand): Likewise.
26003 (create_add_imm_cand): Take a widest_int instead of a double_int.
26004 (slsr_process_add): Use wide-int interfaces.
26005 (slsr_process_cast): Likewise.
26006 (slsr_process_copy): Likewise.
26007 (dump_candidate): Likewise.
26008 (dump_incr_vec): Likewise.
26009 (replace_ref): Likewise.
26010 (cand_increment): Likewise. Return a widest_int.
26011 (cand_abs_increment): Likewise.
26012 (replace_mult_candidate): Take a widest_int instead of a double_int.
26013 (replace_unconditional_candidate): Use wide-int interfaces.
26014 (incr_vec_index): Take a widest_int instead of a double_int.
26015 (create_add_on_incoming_edge): Likewise.
26016 (create_phi_basis): Use wide-int interfaces.
26017 (replace_conditional_candidate): Likewise.
26018 (record_increment): Take a widest_int instead of a double_int.
26019 (record_phi_increments): Use wide-int interfaces.
26020 (phi_incr_cost): Take a widest_int instead of a double_int.
26021 (lowest_cost_path): Likewise.
26022 (total_savings): Likewise.
26023 (analyze_increments): Use wide-int interfaces.
26024 (ncd_with_phi): Take a widest_int instead of a double_int.
26025 (ncd_of_cand_and_phis): Likewise.
26026 (nearest_common_dominator_for_cands): Likewise.
26027 (insert_initializers): Use wide-int interfaces.
26028 (all_phi_incrs_profitable): Likewise.
26029 (replace_one_candidate): Likewise.
26030 (replace_profitable_candidates): Likewise.
26031 * godump.c: Include wide-int-print.h.
26032 (go_output_typedef): Use wide-int interfaces.
26033 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26034 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26035 (build_loop_iteration_domains): Likewise.
26036 * hooks.h: Include wide-int.h rather than double-int.h.
26037 (hook_bool_dint_dint_uint_bool_true): Delete.
26038 (hook_bool_wint_wint_uint_bool_true): Declare.
26039 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26040 (hook_bool_wint_wint_uint_bool_true): New.
26041 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26042 interfaces.
26043 (ubsan_expand_si_overflow_mul_check): Likewise.
26044 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26045 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26046 (get_ancestor_addr_info): Likewise.
26047 (ipa_modify_call_arguments): Likewise.
26048 * loop-doloop.c (doloop_modify): Likewise.
26049 (doloop_optimize): Likewise.
26050 * loop-iv.c (iv_number_of_iterations): Likewise.
26051 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26052 (unroll_loop_constant_iterations): Likewise.
26053 (decide_unroll_runtime_iterations): Likewise.
26054 (unroll_loop_runtime_iterations): Likewise.
26055 (decide_peel_simple): Likewise.
26056 (decide_unroll_stupid): Likewise.
26057 * lto-streamer-in.c (streamer_read_wi): Add.
26058 (input_cfg): Use wide-int interfaces.
26059 (lto_input_tree_1): Likewise.
26060 * lto-streamer-out.c (streamer_write_wi): Add.
26061 (hash_tree): Use wide-int interfaces.
26062 (output_cfg): Likewise.
26063 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26064 (GTFILES): Add wide-int.h and signop.h.
26065 (TAGS): Look for .cc files too.
26066 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26067 * optabs.c (expand_subword_shift): Likewise.
26068 (expand_doubleword_shift): Likewise.
26069 (expand_absneg_bit): Likewise.
26070 (expand_copysign_absneg): Likewise.
26071 (expand_copysign_bit): Likewise.
26072 * postreload.c (reload_cse_simplify_set): Likewise.
26073 * predict.c (predict_iv_comparison): Likewise.
26074 * pretty-print.h: Include wide-int-print.h.
26075 (pp_wide_int) New.
26076 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26077 * print-tree.c: Include wide-int-print.h.
26078 (print_node_brief): Use wide-int interfaces.
26079 (print_node): Likewise.
26080 * read-rtl.c (validate_const_wide_int): New.
26081 (read_rtx_code): Add CONST_WIDE_INT case.
26082 * real.c: Include wide-int.h.
26083 (real_to_integer2): Delete.
26084 (real_to_integer): New function, returning a wide_int.
26085 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26086 (ten_to_ptwo): Update call to real_from_integer.
26087 (real_digit): Likewise.
26088 * real.h: Include signop.h, wide-int.h and insn-modes.h.
26089 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26090 (REAL_VALUE_TO_INT): Delete.
26091 (real_to_integer): Declare a wide-int form.
26092 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26093 * recog.c (const_int_operand): Improve comment.
26094 (const_scalar_int_operand): New.
26095 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26096 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26097 (split_double): Likewise.
26098 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
26099 (rtx_size): Likewise.
26100 (rtx_alloc_stat_v): New.
26101 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
26102 (cwi_output_hex): New.
26103 (iterative_hash_rtx): Handle CONST_WIDE_INT.
26104 (cwi_check_failed_bounds): New.
26105 * rtl.def (CONST_WIDE_INT): New.
26106 * rtl.h: Include <utility> and wide-int.h.
26107 (struct hwivec_def): New.
26108 (CWI_GET_NUM_ELEM): New.
26109 (CWI_PUT_NUM_ELEM): New.
26110 (struct rtx_def): Add num_elem and hwiv.
26111 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
26112 (CASE_CONST_UNIQUE): Likewise.
26113 (CASE_CONST_ANY): Likewise.
26114 (CONST_SCALAR_INT_P): Likewise.
26115 (CONST_WIDE_INT_P): New.
26116 (CWI_ELT): New.
26117 (HWIVEC_CHECK): New.
26118 (cwi_check_failed_bounds): New.
26119 (CWI_ELT): New.
26120 (HWIVEC_CHECK): New.
26121 (CONST_WIDE_INT_VEC) New.
26122 (CONST_WIDE_INT_NUNITS) New.
26123 (CONST_WIDE_INT_ELT) New.
26124 (rtx_mode_t): New type.
26125 (wi::int_traits <rtx_mode_t>): New.
26126 (wi::shwi): New.
26127 (wi::min_value): New.
26128 (wi::max_value): New.
26129 (rtx_alloc_v) New.
26130 (const_wide_int_alloc): New.
26131 (immed_wide_int_const): New.
26132 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
26133 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
26134 * signop.h: New file.
26135 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
26136 (simplify_const_unary_operation): Use wide-int interfaces.
26137 (simplify_binary_operation_1): Likewise.
26138 (simplify_const_binary_operation): Likewise.
26139 (simplify_const_relational_operation): Likewise.
26140 (simplify_immed_subreg): Likewise.
26141 * stmt.c (expand_case): Likewise.
26142 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
26143 signop rather than a bool.
26144 * stor-layout.c (layout_type): Use wide-int interfaces.
26145 (initialize_sizetypes): Update calls to
26146 set_min_and_max_values_for_integral_type.
26147 (set_min_and_max_values_for_integral_type): Take a signop rather
26148 than a bool. Use wide-int interfaces.
26149 (fixup_signed_type): Update accordingly. Remove
26150 HOST_BITS_PER_DOUBLE_INT limit.
26151 (fixup_unsigned_type): Likewise.
26152 * system.h (STATIC_CONSTANT_P): New.
26153 (STATIC_ASSERT): New.
26154 * target.def (can_use_doloop_p): Take widest_ints rather than
26155 double_ints.
26156 * target.h: Include wide-int.h rather than double-int.h.
26157 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
26158 than double_ints.
26159 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
26160 rather than INT_CST_LT_UNSIGNED.
26161 (can_use_doloop_if_innermost): Take widest_ints rather than
26162 double_ints.
26163 * tree-affine.c: Include wide-int-print.h.
26164 (double_int_ext_for_comb): Delete.
26165 (wide_int_ext_for_comb): New.
26166 (aff_combination_zero): Use wide-int interfaces.
26167 (aff_combination_const): Take a widest_int instead of a double_int.
26168 (aff_combination_elt): Use wide-int interfaces.
26169 (aff_combination_scale): Take a widest_int instead of a double_int.
26170 (aff_combination_add_elt): Likewise.
26171 (aff_combination_add_cst): Likewise.
26172 (aff_combination_add): Use wide-int interfaces.
26173 (aff_combination_convert): Likewise.
26174 (tree_to_aff_combination): Likewise.
26175 (add_elt_to_tree): Take a widest_int instead of a double_int.
26176 (aff_combination_to_tree): Use wide-int interfaces.
26177 (aff_combination_remove_elt): Likewise.
26178 (aff_combination_add_product): Take a widest_int instead of
26179 a double_int.
26180 (aff_combination_mult): Use wide-int interfaces.
26181 (aff_combination_expand): Likewise.
26182 (double_int_constant_multiple_p): Delete.
26183 (wide_int_constant_multiple_p): New.
26184 (aff_combination_constant_multiple_p): Take a widest_int pointer
26185 instead of a double_int pointer.
26186 (print_aff): Use wide-int interfaces.
26187 (get_inner_reference_aff): Take a widest_int pointer
26188 instead of a double_int pointer.
26189 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
26190 * tree-affine.h: Include wide-int.h.
26191 (struct aff_comb_elt): Change type of coef to widest_int.
26192 (struct affine_tree_combination): Change type of offset to widest_int.
26193 (double_int_ext_for_comb): Delete.
26194 (wide_int_ext_for_comb): New.
26195 (aff_combination_const): Use widest_int instead of double_int.
26196 (aff_combination_scale): Likewise.
26197 (aff_combination_add_elt): Likewise.
26198 (aff_combination_constant_multiple_p): Likewise.
26199 (get_inner_reference_aff): Likewise.
26200 (aff_comb_cannot_overlap_p): Likewise.
26201 (aff_combination_zero_p): Use wide-int interfaces.
26202 * tree.c: Include tree.h.
26203 (init_ttree): Use make_int_cst.
26204 (tree_code_size): Removed code for INTEGER_CST case.
26205 (tree_size): Add INTEGER_CST case.
26206 (make_node_stat): Update comment.
26207 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
26208 (build_int_cst_type): Use wide-int interfaces.
26209 (double_int_to_tree): Likewise.
26210 (double_int_fits_to_tree_p): Delete.
26211 (force_fit_type_double): Delete.
26212 (force_fit_type): New.
26213 (int_cst_hash_hash): Use wide-int interfaces.
26214 (int_cst_hash_eq): Likewise.
26215 (build_int_cst_wide): Delete.
26216 (wide_int_to_tree): New.
26217 (cache_integer_cst): Use wide-int interfaces.
26218 (build_low_bits_mask): Likewise.
26219 (cst_and_fits_in_hwi): Likewise.
26220 (real_value_from_int_cst): Likewise.
26221 (make_int_cst_stat): New.
26222 (integer_zerop): Use wide_int interfaces.
26223 (integer_onep): Likewise.
26224 (integer_all_onesp): Likewise.
26225 (integer_pow2p): Likewise.
26226 (integer_nonzerop): Likewise.
26227 (tree_log2): Likewise.
26228 (tree_floor_log2): Likewise.
26229 (tree_ctz): Likewise.
26230 (int_size_in_bytes): Likewise.
26231 (mem_ref_offset): Return an offset_int rather than a double_int.
26232 (build_type_attribute_qual_variant): Use wide_int interfaces.
26233 (type_hash_eq): Likewise
26234 (tree_int_cst_equal): Likewise.
26235 (tree_int_cst_lt): Delete.
26236 (tree_int_cst_compare): Likewise.
26237 (tree_fits_shwi_p): Use wide_int interfaces.
26238 (tree_fits_uhwi_p): Likewise.
26239 (tree_int_cst_sign_bit): Likewise.
26240 (tree_int_cst_sgn): Likewise.
26241 (tree_int_cst_min_precision): Take a signop rather than a bool.
26242 (simple_cst_equal): Use wide_int interfaces.
26243 (compare_tree_int): Likewise.
26244 (iterative_hash_expr): Likewise.
26245 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
26246 INT_CST_LT.
26247 (get_type_static_bounds): Use wide_int interfaces.
26248 (tree_int_cst_elt_check_failed): New.
26249 (build_common_tree_nodes): Reordered to set prec before filling in
26250 value.
26251 (int_cst_value): Check cst_and_fits_in_hwi.
26252 (widest_int_cst_value): Use wide_int interfaces.
26253 (upper_bound_in_type): Likewise.
26254 (lower_bound_in_type): Likewise.
26255 (num_ending_zeros): Likewise.
26256 (drop_tree_overflow): Likewise.
26257 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
26258 (gen_conditions_for_pow_cst_base): Likewise.
26259 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
26260 (group_case_labels_stmt): Use wide-int interfaces.
26261 (verify_gimple_assign_binary): Likewise.
26262 (print_loop): Likewise.
26263 * tree-chrec.c (tree_fold_binomial): Likewise.
26264 * tree-core.h (struct tree_base): Add int_length.
26265 (struct tree_int_cst): Change rep of value.
26266 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
26267 (dr_may_alias_p): Likewise.
26268 (max_stmt_executions_tree): Likewise.
26269 * tree.def (INTEGER_CST): Update comment.
26270 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
26271 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
26272 * tree-dump.c: Include wide-int.h and wide-int-print.h.
26273 (dequeue_and_dump): Use wide-int interfaces.
26274 * tree.h: Include wide-int.h.
26275 (NULL_TREE): Moved to earlier loc in file.
26276 (TREE_INT_CST_ELT_CHECK): New.
26277 (tree_int_cst_elt_check_failed): New.
26278 (TYPE_SIGN): New.
26279 (TREE_INT_CST): Delete.
26280 (TREE_INT_CST_LOW): Use wide-int interfaces.
26281 (TREE_INT_CST_HIGH): Delete.
26282 (TREE_INT_CST_NUNITS): New.
26283 (TREE_INT_CST_EXT_NUNITS): Likewise.
26284 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
26285 (TREE_INT_CST_ELT): Likewise.
26286 (INT_CST_LT): Delete.
26287 (tree_int_cst_elt_check): New (two forms).
26288 (type_code_size): Update comment.
26289 (make_int_cst_stat, make_int_cst): New.
26290 (tree_to_double_int): Delete.
26291 (double_int_fits_to_tree_p): Delete.
26292 (force_fit_type_double): Delete.
26293 (build_int_cstu): Replace with out-of-line function.
26294 (build_int_cst_wide): Delete.
26295 (tree_int_cst_lt): Define inline.
26296 (tree_int_cst_le): New.
26297 (tree_int_cst_compare): Define inline.
26298 (tree_int_cst_min_precision): Take a signop rather than a bool.
26299 (wi::int_traits <const_tree>): New.
26300 (wi::int_traits <tree>): New.
26301 (wi::extended_tree): New.
26302 (wi::int_traits <wi::extended_tree>): New.
26303 (wi::to_widest): New.
26304 (wi::to_offset): New.
26305 (wi::fits_to_tree_p): New.
26306 (wi::min_value): New.
26307 (wi::max_value): New.
26308 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
26309 (copy_tree_body_r): Likewise.
26310 * tree-object-size.c (compute_object_offset): Likewise.
26311 (addr_object_size): Likewise.
26312 * tree-predcom.c: Include wide-int-print.h.
26313 (struct dref_d): Change type of offset to widest_int.
26314 (dump_dref): Call wide-int printer.
26315 (aff_combination_dr_offset): Use wide-int interfaces.
26316 (determine_offset): Take a widest_int pointer rather than a
26317 double_int pointer.
26318 (split_data_refs_to_components): Use wide-int interfaces.
26319 (suitable_component_p): Likewise.
26320 (order_drefs): Likewise.
26321 (add_ref_to_chain): Likewise.
26322 (valid_initializer_p): Likewise.
26323 (determine_roots_comp): Likewise.
26324 * tree-pretty-print.c: Include wide-int-print.h.
26325 (dump_generic_node): Use wide-int interfaces.
26326 * tree-sra.c (sra_ipa_modify_expr): Likewise.
26327 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
26328 (move_fixed_address_to_symbol): Likewise.
26329 (move_hint_to_base): Likewise.
26330 (move_pointer_to_base): Likewise.
26331 (move_variant_to_index): Likewise.
26332 (most_expensive_mult_to_index): Likewise.
26333 (addr_to_parts): Likewise.
26334 (copy_ref_info): Likewise.
26335 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
26336 (indirect_refs_may_alias_p): Likewise.
26337 (stmt_kills_ref_p_1): Likewise.
26338 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
26339 * tree-ssa-ccp.c: Update comment at top of file. Include
26340 wide-int-print.h.
26341 (struct prop_value_d): Change type of mask to widest_int.
26342 (extend_mask): New function.
26343 (dump_lattice_value): Use wide-int interfaces.
26344 (get_default_value): Likewise.
26345 (set_constant_value): Likewise.
26346 (set_value_varying): Likewise.
26347 (valid_lattice_transition): Likewise.
26348 (set_lattice_value): Likewise.
26349 (value_to_double_int): Delete.
26350 (value_to_wide_int): New.
26351 (get_value_from_alignment): Use wide-int interfaces.
26352 (get_value_for_expr): Likewise.
26353 (do_dbg_cnt): Likewise.
26354 (ccp_finalize): Likewise.
26355 (ccp_lattice_meet): Likewise.
26356 (bit_value_unop_1): Use widest_ints rather than double_ints.
26357 (bit_value_binop_1): Likewise.
26358 (bit_value_unop): Use wide-int interfaces.
26359 (bit_value_binop): Likewise.
26360 (bit_value_assume_aligned): Likewise.
26361 (evaluate_stmt): Likewise.
26362 (ccp_fold_stmt): Likewise.
26363 (visit_cond_stmt): Likewise.
26364 (ccp_visit_stmt): Likewise.
26365 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
26366 (constant_pointer_difference): Likewise.
26367 (associate_pointerplus): Likewise.
26368 (combine_conversions): Likewise.
26369 * tree-ssa-loop.h: Include wide-int.h.
26370 (struct tree_niter_desc): Change type of max to widest_int.
26371 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
26372 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
26373 (remove_redundant_iv_tests): Likewise.
26374 (canonicalize_loop_induction_variables): Likewise.
26375 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
26376 (constant_multiple_of): Take a widest_int pointer instead of
26377 a double_int pointer.
26378 (get_computation_aff): Use wide-int interfaces.
26379 (ptr_difference_cost): Likewise.
26380 (difference_cost): Likewise.
26381 (get_loop_invariant_expr_id): Likewise.
26382 (get_computation_cost_at): Likewise.
26383 (iv_elimination_compare_lt): Likewise.
26384 (may_eliminate_iv): Likewise.
26385 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
26386 instead of double_int.
26387 (max_loop_iterations): Likewise.
26388 (max_stmt_executions): Likewise.
26389 (estimated_stmt_executions): Likewise.
26390 * tree-ssa-loop-niter.c: Include wide-int-print.h.
26391 (split_to_var_and_offset): Use wide-int interfaces.
26392 (determine_value_range): Likewise.
26393 (bound_difference_of_offsetted_base): Likewise.
26394 (bounds_add): Take a widest_int instead of a double_int.
26395 (number_of_iterations_ne_max): Use wide-int interfaces.
26396 (number_of_iterations_ne): Likewise.
26397 (number_of_iterations_lt_to_ne): Likewise.
26398 (assert_loop_rolls_lt): Likewise.
26399 (number_of_iterations_lt): Likewise.
26400 (number_of_iterations_le): Likewise.
26401 (number_of_iterations_cond): Likewise.
26402 (number_of_iterations_exit): Likewise.
26403 (finite_loop_p): Likewise.
26404 (derive_constant_upper_bound_assign): Likewise.
26405 (derive_constant_upper_bound): Return a widest_int.
26406 (derive_constant_upper_bound_ops): Likewise.
26407 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
26408 (record_estimate): Take a widest_int rather than a double_int.
26409 (record_nonwrapping_iv): Use wide-int interfaces.
26410 (double_int_cmp): Delete.
26411 (wide_int_cmp): New.
26412 (bound_index): Take a widest_int rather than a double_int.
26413 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
26414 (maybe_lower_iteration_bound): Likewise.
26415 (estimate_numbers_of_iterations_loop): Likewise.
26416 (estimated_loop_iterations): Take a widest_int pointer than than
26417 a double_int pointer.
26418 (estimated_loop_iterations_int): Use wide-int interfaces.
26419 (max_loop_iterations): Take a widest_int pointer than than
26420 a double_int pointer.
26421 (max_loop_iterations_int): Use wide-int interfaces.
26422 (max_stmt_executions): Take a widest_int pointer than than
26423 a double_int pointer.
26424 (estimated_stmt_executions): Likewise.
26425 (n_of_executions_at_most): Use wide-int interfaces.
26426 (scev_probably_wraps_p): Likewise.
26427 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
26428 to real_to_integer.
26429 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
26430 interfaces.
26431 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
26432 double_ints. Adjust for trailing_wide_ints <3> representation.
26433 (set_nonzero_bits): Likewise.
26434 (get_range_info): Return wide_ints rather than double_ints.
26435 Adjust for trailing_wide_ints <3> representation.
26436 (get_nonzero_bits): Likewise.
26437 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
26438 representation.
26439 * tree-ssanames.h (struct range_info_def): Replace min, max and
26440 nonzero_bits with a trailing_wide_ints <3>.
26441 (set_range_info): Use wide_int_refs rather than double_ints.
26442 (set_nonzero_bits): Likewise.
26443 (get_range_info): Return wide_ints rather than double_ints.
26444 (get_nonzero_bits): Likewise.
26445 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
26446 * tree-ssa-pre.c (phi_translate_1): Likewise.
26447 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
26448 (acceptable_pow_call): Likewise.
26449 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
26450 interfaces.
26451 (vn_reference_fold_indirect): Likewise.
26452 (vn_reference_maybe_forwprop_address): Likewise.
26453 (valueize_refs_1): Likewise.
26454 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
26455 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
26456 tree_int_cst_lt and tree_int_cst_le.
26457 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
26458 interfaces.
26459 (streamer_alloc_tree): Likewise.
26460 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
26461 (streamer_write_tree_header): Likewise.
26462 (streamer_write_integer_cst): Likewise.
26463 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
26464 (build_constructors): Likewise.
26465 (array_value_type): Likewise.
26466 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
26467 (vect_check_gather): Likewise.
26468 * tree-vect-generic.c (build_replicated_const): Likewise.
26469 (expand_vector_divmod): Likewise.
26470 * tree-vect-loop.c (vect_transform_loop): Likewise.
26471 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26472 (vect_do_peeling_for_alignment): Likewise.
26473 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
26474 * tree-vrp.c: Include wide-int.h.
26475 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
26476 (extract_range_from_assert): Use wide-int interfaces.
26477 (vrp_int_const_binop): Likewise.
26478 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
26479 double_int pointers.
26480 (ranges_from_anti_range): Use wide-int interfaces.
26481 (quad_int_cmp): Delete.
26482 (quad_int_pair_sort): Likewise.
26483 (extract_range_from_binary_expr_1): Use wide-int interfaces.
26484 (extract_range_from_unary_expr_1): Likewise.
26485 (adjust_range_with_scev): Likewise.
26486 (masked_increment): Take and return wide_ints rather than double_ints.
26487 (register_edge_assert_for_2): Use wide-int interfaces.
26488 (check_array_ref): Likewise.
26489 (search_for_addr_array): Likewise.
26490 (maybe_set_nonzero_bits): Likewise.
26491 (union_ranges): Pass an integer of the correct type instead of
26492 using integer_one_node.
26493 (intersect_ranges): Likewise.
26494 (simplify_truth_ops_using_ranges): Likewise.
26495 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
26496 (range_fits_type_p): Likewise.
26497 (simplify_cond_using_ranges): Likewise. Take a signop rather than
26498 a bool.
26499 (simplify_conversion_using_ranges): Use wide-int interfaces.
26500 (simplify_float_conversion_using_ranges): Likewise.
26501 (vrp_finalize): Likewise.
26502 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
26503 (gimple_stringops_transform): Likewise.
26504 * varasm.c (decode_addr_const): Likewise.
26505 (const_hash_1): Likewise.
26506 (const_rtx_hash_1): Likewise
26507 (output_constant): Likewise.
26508 (array_size_for_constructor): Likewise.
26509 (output_constructor_regular_field): Likewise.
26510 (output_constructor_bitfield): Likewise.
26511 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
26512 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
26513 GENERATOR_FILEs.
26514 * gencheck.c: Define BITS_PER_UNIT.
26515 * wide-int.cc: New.
26516 * wide-int.h: New.
26517 * wide-int-print.cc: New.
26518 * wide-int-print.h: New.
26519
26520 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26521
26522 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
26523
26524 2014-05-06 Richard Biener <rguenther@suse.de>
26525
26526 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
26527 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
26528 (TODO_verify_all): Adjust.
26529 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
26530 TODO_verify_stmts and TODO_verify_rtl_sharing.
26531 * bb-reorder.c: Likewise.
26532 * cfgexpand.c: Likewise.
26533 * cprop.c: Likewise.
26534 * cse.c: Likewise.
26535 * function.c: Likewise.
26536 * fwprop.c: Likewise.
26537 * gcse.c: Likewise.
26538 * gimple-ssa-isolate-paths.c: Likewise.
26539 * gimple-ssa-strength-reduction.c: Likewise.
26540 * ipa-split.c: Likewise.
26541 * loop-init.c: Likewise.
26542 * loop-unroll.c: Likewise.
26543 * lower-subreg.c: Likewise.
26544 * modulo-sched.c: Likewise.
26545 * postreload-gcse.c: Likewise.
26546 * predict.c: Likewise.
26547 * recog.c: Likewise.
26548 * sched-rgn.c: Likewise.
26549 * store-motion.c: Likewise.
26550 * tracer.c: Likewise.
26551 * trans-mem.c: Likewise.
26552 * tree-call-cdce.c: Likewise.
26553 * tree-cfg.c: Likewise.
26554 * tree-cfgcleanup.c: Likewise.
26555 * tree-complex.c: Likewise.
26556 * tree-eh.c: Likewise.
26557 * tree-emutls.c: Likewise.
26558 * tree-if-conv.c: Likewise.
26559 * tree-into-ssa.c: Likewise.
26560 * tree-loop-distribution.c: Likewise.
26561 * tree-object-size.c: Likewise.
26562 * tree-parloops.c: Likewise.
26563 * tree-pass.h: Likewise.
26564 * tree-sra.c: Likewise.
26565 * tree-ssa-ccp.c: Likewise.
26566 * tree-ssa-copy.c: Likewise.
26567 * tree-ssa-copyrename.c: Likewise.
26568 * tree-ssa-dce.c: Likewise.
26569 * tree-ssa-dom.c: Likewise.
26570 * tree-ssa-dse.c: Likewise.
26571 * tree-ssa-forwprop.c: Likewise.
26572 * tree-ssa-ifcombine.c: Likewise.
26573 * tree-ssa-loop-ch.c: Likewise.
26574 * tree-ssa-loop-ivcanon.c: Likewise.
26575 * tree-ssa-loop.c: Likewise.
26576 * tree-ssa-math-opts.c: Likewise.
26577 * tree-ssa-phiopt.c: Likewise.
26578 * tree-ssa-phiprop.c: Likewise.
26579 * tree-ssa-pre.c: Likewise.
26580 * tree-ssa-reassoc.c: Likewise.
26581 * tree-ssa-sink.c: Likewise.
26582 * tree-ssa-strlen.c: Likewise.
26583 * tree-ssa-tail-merge.c: Likewise.
26584 * tree-ssa-uncprop.c: Likewise.
26585 * tree-switch-conversion.c: Likewise.
26586 * tree-tailcall.c: Likewise.
26587 * tree-vect-generic.c: Likewise.
26588 * tree-vectorizer.c: Likewise.
26589 * tree-vrp.c: Likewise.
26590 * tsan.c: Likewise.
26591 * var-tracking.c: Likewise.
26592 * bt-load.c: Likewise.
26593 * cfgcleanup.c: Likewise.
26594 * combine-stack-adj.c: Likewise.
26595 * combine.c: Likewise.
26596 * compare-elim.c: Likewise.
26597 * config/epiphany/resolve-sw-modes.c: Likewise.
26598 * config/i386/i386.c: Likewise.
26599 * config/mips/mips.c: Likewise.
26600 * config/s390/s390.c: Likewise.
26601 * config/sh/sh_treg_combine.cc: Likewise.
26602 * config/sparc/sparc.c: Likewise.
26603 * dce.c: Likewise.
26604 * dse.c: Likewise.
26605 * final.c: Likewise.
26606 * ifcvt.c: Likewise.
26607 * mode-switching.c: Likewise.
26608 * passes.c: Likewise.
26609 * postreload.c: Likewise.
26610 * ree.c: Likewise.
26611 * reg-stack.c: Likewise.
26612 * regcprop.c: Likewise.
26613 * regrename.c: Likewise.
26614 * web.c: Likewise.
26615
26616 2014-05-06 Richard Biener <rguenther@suse.de>
26617
26618 PR middle-end/61070
26619 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
26620 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
26621
26622 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
26623
26624 PR ipa/60965
26625 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
26626
26627 2014-05-05 Radovan Obradovic <robradovic@mips.com>
26628 Tom de Vries <tom@codesourcery.com>
26629
26630 * target.def (call_fusage_contains_non_callee_clobbers): New
26631 DEFHOOKPOD.
26632 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
26633 Hooks to @menu.
26634 (@node Miscellaneous Register Hooks): New node.
26635 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
26636 * doc/tm.texi: Regenerate.
26637
26638 2014-05-05 Marek Polacek <polacek@redhat.com>
26639
26640 PR driver/61065
26641 * opts.c (common_handle_option): Call error_at instead of warning_at.
26642
26643 2014-05-05 Richard Biener <rguenther@suse.de>
26644
26645 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
26646 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
26647 under the TODO_verify_il umbrella.
26648
26649 2014-05-05 Richard Biener <rguenther@suse.de>
26650
26651 * passes.c (execute_function_todo): Move TODO_verify_flow under
26652 the TODO_verify_ul umbrella.
26653
26654 2014-05-05 Richard Biener <rguenther@suse.de>
26655
26656 PR middle-end/61010
26657 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
26658 X & CST away from a CST that is the mask of a mode.
26659
26660 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26661
26662 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
26663 int argument to enum machine_mode.
26664 (picochip_class_max_nregs): Ditto.
26665 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
26666 (picochip_class_max_nregs): Ditto.
26667
26668 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26669
26670 * target.def: Add new target hook.
26671 * doc/tm.texi: Regenerate.
26672 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
26673 * targhooks.c (default_keep_leaf_when_profiled): New function.
26674
26675 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
26676 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
26677
26678 2014-05-05 Bin Cheng <bin.cheng@arm.com>
26679
26680 PR tree-optimization/60363
26681 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
26682 (copy_phi_args): New parameters. Call get_value_locus_in_path.
26683 (update_destination_phis): New parameter.
26684 (create_edge_and_update_destination_phis): Ditto.
26685 (ssa_fix_duplicate_block_edges): Pass new arguments.
26686 (thread_single_edge): Ditto.
26687
26688 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
26689
26690 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
26691 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
26692 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
26693 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
26694 Use RS6000_BTM_HARD_FLOAT.
26695 (BU_MISC_2): Likewise.
26696 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
26697 RS6000_BTM_HARD_FLOAT.
26698 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
26699 is explicitly used.
26700 (rs6000_invalid_builtin): Add hard floating builtin support.
26701 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
26702 hard float builtins.
26703 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
26704
26705 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26706
26707 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
26708 Add missing function* argument.
26709
26710 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26711
26712 * lra-constraints.c (valid_address_p): Move earlier in file.
26713 Add a constraint argument to the address_info version.
26714 (satisfies_memory_constraint_p): New function.
26715 (satisfies_address_constraint_p): Likewise.
26716 (process_alt_operands, curr_insn_transform): Use them.
26717 (process_address): Pass the constraint to valid_address_p when
26718 checking address operands.
26719
26720 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26721
26722 * config/mips/mips.c (mips_isa_rev): New variable.
26723 (mips_set_architecture): Set it.
26724 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
26725 from mips_isa_rev.
26726 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
26727 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
26728 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
26729 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
26730 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
26731 conditions in terms of mips_isa_rev.
26732 (mips_isa_rev): Declare.
26733
26734 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26735
26736 * config/sh/sh-mem.cc: Use tabs instead of spaces.
26737 (prob_unlikely, prob_likely): Make variables const.
26738
26739 2014-05-03 Denis Chertykov <chertykov@gmail.com>
26740
26741 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
26742
26743 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26744
26745 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
26746
26747 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26748
26749 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
26750 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
26751 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
26752 functions.
26753 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
26754 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
26755 sh_pass_in_reg_p.
26756 Replace usage of ROUND_REG with sh_round_reg.
26757 Use CEIL instead of ROUND_ADVANCE.
26758
26759 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
26760
26761 PR target/61026
26762 * config/sh/sh.c: Include stdlib headers before everything else.
26763
26764 2014-05-02 Jakub Jelinek <jakub@redhat.com>
26765
26766 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
26767 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
26768 (gimplify_adjust_omp_clauses): Simd region is never
26769 directly nested in combined parallel. Instead, for linear
26770 with copyin/copyout, if in combined for simd loop, make decl
26771 firstprivate/lastprivate on OMP_FOR.
26772 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
26773 expand_omp_for_static_chunk): When setting endvar, also set
26774 fd->loop.v to the same value.
26775
26776 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26777
26778 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
26779
26780 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
26781
26782 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
26783 expression.
26784
26785 2014-05-02 Marek Polacek <polacek@redhat.com>
26786
26787 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
26788
26789 2014-05-02 Kito Cheng <kito@0xlab.org>
26790
26791 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
26792 to a C expression marco.
26793 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
26794 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
26795 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
26796 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
26797 HONOR_REG_ALLOC_ORDER.
26798 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
26799
26800 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26801
26802 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
26803
26804 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
26805
26806 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
26807
26808 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
26809
26810 * tree-if-conv.c (is_cond_scalar_reduction): New function.
26811 (convert_scalar_cond_reduction): Likewise.
26812 (predicate_scalar_phi): Add recognition and transformation
26813 of simple conditioanl reduction to be vectorizable.
26814
26815 2014-05-01 Marek Polacek <polacek@redhat.com>
26816
26817 PR c/43245
26818 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
26819
26820 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
26821
26822 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
26823 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
26824 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
26825 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
26826 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
26827 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
26828 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
26829 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
26830
26831 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
26832
26833 * config/arc/arc.opt (mlra): Move comment above option name
26834 to avoid mis-parsing as language options.
26835
26836 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26837
26838 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
26839 * config/sol2.h: ... here.
26840 * config/sol2-10.h: Remove.
26841
26842 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
26843 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
26844 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
26845 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
26846 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
26847 * config/sol2.h: ... here.
26848 (SECTION_NAME_FORMAT): Don't redefine.
26849 (STARTFILE_ARCH32_SPEC): Rename to ...
26850 (STARTFILE_ARCH_SPEC): ... this.
26851 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
26852 * config/sparc/sol2.h: ... here.
26853 (SECTION_NAME_FORMAT): Don't undef.
26854 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
26855 (SUBTARGET_EXTRA_SPECS): Remove.
26856 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
26857
26858 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
26859 (MD_STARTFILE_PREFIX): Remove.
26860 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
26861 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
26862 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
26863 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
26864 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
26865 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
26866 * config/i386/sol2.h: ... here.
26867 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
26868 * config/i386/sol2-bi.h: Remove.
26869 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
26870 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
26871
26872 * config/i386/t-sol2-64: Rename to ...
26873 * config/i386/t-sol2: ... this.
26874 * config/sparc/t-sol2-64: Rename to ...
26875 * config/sparc/t-sol2: ... this.
26876
26877 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
26878 sol2_tm_file_head, sol2_tm_file_tail.
26879 Include ${cpu_type}/sol2.h before sol2.h.
26880 Remove sol2-10.h.
26881 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
26882 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
26883 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
26884 Reflect i386/t-sol2-64 renaming.
26885 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
26886 Reflect sparc/t-sol2-64 renaming.
26887
26888 2014-04-30 Richard Biener <rguenther@suse.de>
26889
26890 * passes.c (execute_function_todo): Move TODO_verify_stmts
26891 and TODO_verify_ssa under the TODO_verify_il umbrella.
26892 * tree-ssa.h (verify_ssa): Adjust prototype.
26893 * tree-ssa.c (verify_ssa): Add parameter to tell whether
26894 we should verify SSA operands.
26895 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
26896 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
26897 whether we should verify whether not throwing stmts have EH info.
26898 * graphite-scop-detection.c (create_sese_edges): Adjust.
26899 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
26900 * tree-eh.c (lower_try_finally_switch): Do not add the
26901 default case label twice.
26902
26903 2014-04-30 Marek Polacek <polacek@redhat.com>
26904
26905 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
26906 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
26907 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
26908 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
26909
26910 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
26911
26912 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
26913 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
26914 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
26915 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
26916 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
26917 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
26918 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
26919 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
26920
26921 2014-04-29 David Malcolm <dmalcolm@redhat.com>
26922
26923 * tree-cfg.c (dump_function_to_file): Dump the return type of
26924 functions, in a line to itself before the function body, mimicking
26925 the layout of a C function.
26926
26927 2014-04-29 Jakub Jelinek <jakub@redhat.com>
26928
26929 PR tree-optimization/60971
26930 * tree-tailcall.c (process_assignment): Reject conversions which
26931 reduce precision.
26932
26933 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
26934
26935 * calls.c (initialize_argument_information): Always treat
26936 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
26937 (expand_call): Likewise.
26938 (emit_library_call_calue_1): Likewise.
26939 * expr.c (PUSH_ARGS_REVERSED): Do not define.
26940 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
26941 code accordingly.
26942
26943 2014-04-29 Nick Clifton <nickc@redhat.com>
26944
26945 * config/msp430/msp430.md (umulsidi): Fix typo.
26946 (mulhisi3): Enable even inside interrupt handlers.
26947 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
26948 bigger return address pushed in large mode.
26949
26950 2014-04-29 Nick Clifton <nickc@redhat.com>
26951
26952 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
26953 (arc_init_reg_tables): Use a machine_mode enum to iterate over
26954 available modes.
26955 * config/m32r/m32r.c (init_reg_tables): Likewise.
26956 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
26957 enum to hold the modes.
26958
26959 2014-04-29 Richard Biener <rguenther@suse.de>
26960
26961 * dominance.c (free_dominance_info): Add overload with
26962 function parameter.
26963 (dom_info_state): Likewise.
26964 (dom_info_available_p): Likewise.
26965 * basic-block.h (free_dominance_info, dom_info_state,
26966 dom_info_available_p): Declare overloads.
26967 * passes.c (execute_function_todo): Verify that verifiers
26968 don't change dominator info state. Drop dominator info
26969 for IPA pass invocations.
26970 * cgraph.c (release_function_body): Restore asserts that
26971 dominator information is released.
26972
26973 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
26974
26975 * doc/invoke.texi: Fix typo.
26976 * tree-vrp.c: Fix typos.
26977 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
26978
26979 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26980
26981 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
26982
26983 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
26984
26985 * config/aarch64/aarch64-builtins.c
26986 (aarch64_types_storestruct_lane_qualifiers): New.
26987 (TYPES_STORESTRUCT_LANE): Likewise.
26988 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
26989 (st3_lane): Likewise.
26990 (st4_lane): Likewise.
26991 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
26992 (vec_store_lanesci_lane<mode>): Likewise.
26993 (vec_store_lanesxi_lane<mode>): Likewise.
26994 (aarch64_st2_lane<VQ:mode>): Likewise.
26995 (aarch64_st3_lane<VQ:mode>): Likewise.
26996 (aarch64_st4_lane<VQ:mode>): Likewise.
26997 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
26998 * config/aarch64/arm_neon.h
26999 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27000 use new macro arguments.
27001 (__ST3_LANE_FUNC): Likewise.
27002 (__ST4_LANE_FUNC): Likewise.
27003 * config/aarch64/iterators.md (V_TWO_ELEM): New.
27004 (V_THREE_ELEM): Likewise.
27005 (V_FOUR_ELEM): Likewise.
27006
27007 2014-04-28 David Malcolm <dmalcolm@redhat.com>
27008
27009 * doc/gimple.texi: Replace the description of the now-defunct
27010 union gimple_statement_d with a diagram showing the
27011 gimple_statement_base class hierarchy and its relationships to
27012 the GSS_ and GIMPLE_ enums.
27013
27014 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27015
27016 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27017 * config/aarch64/aarch64.c
27018 (aarch64_cannot_change_mode_class): Weaken conditions.
27019 (aarch64_modes_tieable_p): New.
27020 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27021
27022 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
27023
27024 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27025 (loadsync_<mode>): Change mode.
27026 (load_quadpti, store_quadpti): New.
27027 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27028 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27029
27030 2014-04-28 Martin Jambor <mjambor@suse.cz>
27031
27032 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27033 same alias type as the original statement.
27034 (subreplacement_assignment_data): New type.
27035 (handle_unscalarized_data_in_subtree): New type of parameter,
27036 generate new memory accesses with same alias type as the original
27037 statement.
27038 (load_assign_lhs_subreplacements): Likewise.
27039 (sra_modify_constructor_assign): Generate new memory accesses with
27040 same alias type as the original statement.
27041
27042 2014-04-28 Richard Biener <rguenther@suse.de>
27043
27044 * tree-pass.h (TODO_verify_il): Define.
27045 (TODO_verify_all): Complete properly.
27046 * passes.c (execute_function_todo): Move existing loop-closed
27047 SSA verification under TODO_verify_il.
27048 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27049 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27050 Fix tree sharing issue.
27051
27052 2014-04-28 Richard Biener <rguenther@suse.de>
27053
27054 PR middle-end/60092
27055 * builtins.def (DEF_C11_BUILTIN): Add.
27056 (BUILT_IN_ALIGNED_ALLOC): Likewise.
27057 * coretypes.h (enum function_class): Add function_c11_misc.
27058 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27059 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27060 (call_may_clobber_ref_p_1): Likewise.
27061 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27062 (mark_all_reaching_defs_necessary_1): Likewise.
27063 (propagate_necessity): Likewise.
27064 (eliminate_unnecessary_stmts): Likewise.
27065 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27066
27067 2014-04-28 Richard Biener <rguenther@suse.de>
27068
27069 * tree-vrp.c (vrp_var_may_overflow): Remove.
27070 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27071 with overflow immediately bump to one before that value and
27072 let iteration figure out overflow status.
27073
27074 2014-04-28 Richard Biener <rguenther@suse.de>
27075
27076 * configure.ac: Do valgrind header checks unconditionally.
27077 Add --enable-valgrind-annotations.
27078 * system.h: Guard valgrind header inclusion with
27079 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27080 * alloc-pool.c (pool_alloc, pool_free): Use
27081 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27082 to guard possibly dead code.
27083 * config.in: Regenerated.
27084 * configure: Likewise.
27085
27086 2014-04-28 Jeff Law <law@redhat.com>
27087
27088 PR tree-optimization/60902
27089 * tree-ssa-threadedge.c
27090 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27091 over real defs when invalidating outputs from statements that do not
27092 produce useful outputs for threading.
27093
27094 2014-04-28 Richard Biener <rguenther@suse.de>
27095
27096 PR tree-optimization/60979
27097 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27098 SCOPs that end in a block with a successor with abnormal
27099 predecessors.
27100
27101 2014-04-28 Richard Biener <rguenther@suse.de>
27102
27103 * tree-pass.h (execute_pass_list): Adjust prototype.
27104 * passes.c (pass_manager::execute_early_local_passes): Adjust.
27105 (do_per_function): Change callback signature, push all actual
27106 work to the callbals.
27107 (do_per_function_toporder): Likewise.
27108 (execute_function_dump): Adjust.
27109 (execute_function_todo): Likewise.
27110 (clear_last_verified): Likewise.
27111 (verify_curr_properties): Likewise.
27112 (update_properties_after_pass): Likewise.
27113 (execute_pass_list_1): Split out from ...
27114 (execute_pass_list): ... here. Adjust.
27115 (execute_ipa_pass_list): Likewise.
27116 * cgraphunit.c (cgraph_add_new_function): Adjust.
27117 (analyze_function): Likewise.
27118 (expand_function): Likewise.
27119 * cgraph.c (release_function_body): Free dominance info
27120 here instead of asserting it was magically freed elsewhere.
27121
27122 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
27123
27124 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
27125 * configure: Regenerate.
27126 * config/sparc/sparc.opt (muser-mode): New option.
27127 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
27128 for LEON3.
27129 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
27130 * doc/invoke.texi (SPARC options): Document -muser-mode.
27131
27132 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
27133
27134 * cselib.c (find_slot_memmode): Delete.
27135 (cselib_hasher): Change compare_type to a struct.
27136 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
27137 constants.
27138 (preserve_constants_and_equivs): Adjust for new compare_type.
27139 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
27140 (wrap_constant): Delete.
27141 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
27142
27143 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
27144
27145 * doc/install.texi (Building with profile feedback): Remove
27146 outdated sentence.
27147
27148 2014-04-26 Tom de Vries <tom@codesourcery.com>
27149
27150 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
27151 array accesses.
27152
27153 2014-04-25 Cary Coutant <ccoutant@google.com>
27154
27155 PR debug/60929
27156 * dwarf2out.c (should_move_die_to_comdat): A type definition
27157 can contain a subprogram definition, but don't move it to a
27158 comdat unit.
27159 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
27160 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
27161 from original DIE.
27162 (clone_tree_hash): Rename to...
27163 (clone_tree_partial): ...this; change callers. Copy
27164 DW_TAG_subprogram DIEs as declarations.
27165 (copy_decls_walk): Don't copy children of a declaration into a
27166 type unit.
27167
27168 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
27169
27170 PR target/60969
27171 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
27172 alternative 12.
27173
27174 2014-04-25 Jiong Wang <jiong.wang@arm.com>
27175
27176 * config/arm/predicates.md (call_insn_operand): Add long_call check.
27177 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
27178 reg for long_call.
27179 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
27180 restriction.
27181
27182 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27183
27184 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
27185
27186 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27187
27188 PR tree-optimization/60930
27189 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
27190 creating a multiply candidate by folding two constant
27191 multiplicands when the result overflows.
27192
27193 2014-04-25 Jakub Jelinek <jakub@redhat.com>
27194
27195 PR tree-optimization/60960
27196 * tree-vect-generic.c (expand_vector_operation): Only call
27197 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
27198
27199 2014-04-25 Tom de Vries <tom@codesourcery.com>
27200
27201 * expr.c (clobber_reg_mode): New function.
27202 * expr.h (clobber_reg): New function.
27203
27204 2014-04-25 Tom de Vries <tom@codesourcery.com>
27205
27206 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
27207 clobbers.
27208
27209 2014-04-25 Radovan Obradovic <robradovic@mips.com>
27210 Tom de Vries <tom@codesourcery.com>
27211
27212 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
27213 handle.
27214 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
27215 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
27216 new argument to find_all_hard_reg_sets call.
27217
27218 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27219
27220 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
27221 Use HOST_WIDE_INT_C for mask literal.
27222 (aarch_rev16_shleft_mask_imm_p): Likewise.
27223
27224 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
27225
27226 PR target/60941
27227 * config/sparc/sparc.md (ashlsi3_extend): Delete.
27228
27229 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
27230
27231 PR preprocessor/56540
27232 * config/i386/i386-c.c (ix86_target_macros): Define
27233 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
27234
27235 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27236
27237 * configure.ac (tga_func): Remove.
27238 (LIB_TLS_SPEC): Remove.
27239 * configure: Regenerate.
27240 * config.in: Regenerate.
27241 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
27242
27243 2014-04-25 Richard Biener <rguenther@suse.de>
27244
27245 PR ipa/60912
27246 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
27247 call stmt use/clobber sets during stmt walk instead of
27248 walking the possibly incomplete set of caller edges.
27249
27250 2014-04-25 Richard Biener <rguenther@suse.de>
27251
27252 PR ipa/60911
27253 * passes.c (apply_ipa_transforms): Inline into only caller ...
27254 (execute_one_pass): ... here. Properly bring in function
27255 bodies for nodes we want to apply IPA transforms to.
27256
27257 2014-04-24 Cong Hou <congh@google.com>
27258
27259 PR tree-optimization/60896
27260 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
27261 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
27262 (vect_mark_pattern_stmts): Set the def type of all statements in
27263 PATTERN_DEF_SEQ as vect_internal_def.
27264
27265 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27266
27267 * doc/extend.texi (PowerPC Built-in Functions): Document new
27268 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
27269 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
27270
27271 * config/rs6000/predicates.md (const_0_to_3_operand): New
27272 predicate to match 0..3 integer constants.
27273
27274 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
27275 to support adding miscellaneous builtin functions.
27276 (BU_DFP_MISC_2): Likewise.
27277 (BU_P7_MISC_1): Likewise.
27278 (BU_P7_MISC_2): Likewise.
27279 (BU_P8V_MISC_3): Likewise.
27280 (BU_MISC_1): Likewise.
27281 (BU_MISC_2): Likewise.
27282 (DIVWE): Add extended divide builtin functions.
27283 (DIVWEO): Likewise.
27284 (DIVWEU): Likewise.
27285 (DIVWEUO): Likewise.
27286 (DIVDE): Likewise.
27287 (DIVDEO): Likewise.
27288 (DIVDEU): Likewise.
27289 (DIVDEUO): Likewise.
27290 (DXEX): Add decimal floating-point builtin functions.
27291 (DXEXQ): Likewise.
27292 (DDEDPD): Likewise.
27293 (DDEDPDQ): Likewise.
27294 (DENBCD): Likewise.
27295 (DENBCDQ): Likewise.
27296 (DIEX): Likewise.
27297 (DIEXQ): Likewise.
27298 (DSCLI): Likewise.
27299 (DSCLIQ): Likewise.
27300 (DSCRI): Likewise.
27301 (DSCRIQ): Likewise.
27302 (CDTBCD): Add new BCD builtin functions.
27303 (CBCDTD): Likewise.
27304 (ADDG6S): Likewise.
27305 (BCDADD): Likewise.
27306 (BCDADD_LT): Likewise.
27307 (BCDADD_EQ): Likewise.
27308 (BCDADD_GT): Likewise.
27309 (BCDADD_OV): Likewise.
27310 (BCDSUB): Likewise.
27311 (BCDSUB_LT): Likewise.
27312 (BCDSUB_EQ): Likewise.
27313 (BCDSUB_GT): Likewise.
27314 (BCDSUB_OV): Likewise.
27315 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
27316 (UNPACK_TD): Likewise.
27317 (PACK_TF): Likewise.
27318 (UNPACK_TF): Likewise.
27319 (UNPACK_TF_0): Likewise.
27320 (UNPACK_TF_1): Likewise.
27321 (PACK_V1TI): Likewise.
27322 (UNPACK_V1TI): Likewise.
27323
27324 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
27325 support for decimal floating point builtin functions.
27326 (rs6000_expand_ternop_builtin): Add checks for the new builtin
27327 functions that take constant arguments.
27328 (rs6000_invalid_builtin): Add decimal floating point builtin support.
27329 (rs6000_init_builtins): Setup long double, _Decimal64, and
27330 _Decimal128 types for new builtin functions.
27331 (builtin_function_type): Set the unsigned flags appropriately for
27332 the new builtin functions.
27333 (rs6000_opt_masks): Add support for decimal floating point builtin
27334 functions.
27335
27336 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
27337 floating point builtin functions.
27338 (RS6000_BTM_COMMON): Likewise.
27339 (RS6000_BTI_long_double): Likewise.
27340 (RS6000_BTI_dfloat64): Likewise.
27341 (RS6000_BTI_dfloat128): Likewise.
27342 (long_double_type_internal_node): Likewise.
27343 (dfloat64_type_internal_node): Likewise.
27344 (dfloat128_type_internal_node): Likewise.
27345
27346 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
27347 2.07 bcd arithmetic instructions.
27348 (UNSPEC_BCDSUB): Likewise.
27349 (UNSPEC_BCD_OVERFLOW): Likewise.
27350 (UNSPEC_BCD_ADD_SUB): Likewise.
27351 (bcd_add_sub): Likewise.
27352 (BCD_TEST): Likewise.
27353 (bcd<bcd_add_sub>): Likewise.
27354 (bcd<bcd_add_sub>_test): Likewise.
27355 (bcd<bcd_add_sub>_test2): Likewise.
27356 (bcd<bcd_add_sub>_<code>): Likewise.
27357 (peephole2 for combined bcd ops): Likewise.
27358
27359 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
27360 decimal floating point builtin functions.
27361 (UNSPEC_DENBCD): Likewise.
27362 (UNSPEC_DXEX): Likewise.
27363 (UNSPEC_DIEX): Likewise.
27364 (UNSPEC_DSCLI): Likewise.
27365 (UNSPEC_DSCRI): Likewise.
27366 (D64_D128): Likewise.
27367 (dfp_suffix): Likewise.
27368 (dfp_ddedpd_<mode>): Likewise.
27369 (dfp_denbcd_<mode>): Likewise.
27370 (dfp_dxex_<mode>): Likewise.
27371 (dfp_diex_<mode>): Likewise.
27372 (dfp_dscli_<mode>): Likewise.
27373 (dfp_dscri_<mode>): Likewise.
27374
27375 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
27376 builtin functions.
27377 (UNSPEC_CDTBCD): Likewise.
27378 (UNSPEC_CBCDTD): Likewise.
27379 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
27380 (UNSPEC_DIVEO): Likewise.
27381 (UNSPEC_DIVEU): Likewise.
27382 (UNSPEC_DIVEUO): Likewise.
27383 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
27384 pack/unpack 128-bit types.
27385 (UNSPEC_PACK_128BIT): Likewise.
27386 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
27387 (udiv<mode>3): Use idiv_ldiv mode attribute.
27388 (div<mode>3): Likewise.
27389 (addg6s): Add new BCD builtin functions.
27390 (cdtbcd): Likewise.
27391 (cbcdtd): Likewise.
27392 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
27393 (div_extend): Likewise.
27394 (div<div_extend>_<mode>"): Likewise.
27395 (FP128_64): Add support for new builtin functions to pack/unpack
27396 128-bit types.
27397 (unpack<mode>): Likewise.
27398 (unpacktf_0): Likewise.
27399 (unpacktf_1): Likewise.
27400 (unpack<mode>_dm): Likewise.
27401 (unpack<mode>_nodm): Likewise.
27402 (pack<mode>): Likewise.
27403 (unpackv1ti): Likewise.
27404 (packv1ti): Likewise.
27405
27406 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
27407
27408 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
27409 is disabled.
27410
27411 2014-04-24 Jakub Jelinek <jakub@redhat.com>
27412
27413 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
27414 * gimplify.c (omp_is_private): Change last argument's type to int.
27415 Only diagnose lastprivate if the simd argument is 1, only diagnose
27416 linear if the simd argument is 2.
27417 (gimplify_omp_for): Adjust omp_is_private callers. When adding
27418 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
27419 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
27420 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
27421 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
27422 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27423 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
27424 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
27425 * tree-nested.c (convert_nonlocal_omp_clauses,
27426 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
27427
27428 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
27429
27430 PR target/60822
27431 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
27432 operand 1.
27433
27434 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
27435
27436 * flag-types.h (enum ivar_visibility): Add.
27437
27438 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
27439
27440 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
27441 function * argument.
27442
27443 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
27444
27445 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
27446
27447 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27448 Tom de Vries <tom@codesourcery.com>
27449
27450 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
27451 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
27452 reg-note.
27453 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
27454 * emit-rtl.c (try_split): Same.
27455
27456 2014-04-24 Radovan Obradovic <robradovic@mips.com>
27457 Tom de Vries <tom@codesourcery.com>
27458
27459 * common.opt (fuse-caller-save): New option.
27460
27461 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
27462
27463 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
27464 elements for big-endian.
27465
27466 2014-04-24 Richard Biener <rguenther@suse.de>
27467
27468 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
27469 during TER and instead use the sepops interface for expanding
27470 non-GIMPLE_SINGLE_RHS.
27471
27472 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27473
27474 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
27475 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
27476
27477 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27478
27479 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
27480 assembler 64-bit option.
27481 * configure: Regenerate.
27482
27483 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27484
27485 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
27486 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
27487 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
27488 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
27489 (TARGET_CRYPTO): Take TARGET_SIMD into account.
27490
27491 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27492
27493 * config/aarch64/aarch64-builtins.c
27494 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
27495 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
27496 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
27497 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
27498 builtins.
27499 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
27500 (Vrevsuff): New mode attribute.
27501
27502 2014-04-24 Terry Guo <terry.guo@arm.com>
27503
27504 * config/arm/arm.h (machine_function): Define variable
27505 after_arm_reorg here.
27506 * config/arm/arm.c (after_arm_reorg): Remove the definition.
27507 (arm_split_constant): Update the way to access variable
27508 after_arm_reorg.
27509 (arm_reorg): Ditto.
27510 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
27511
27512 2014-04-23 Tom de Vries <tom@codesourcery.com>
27513
27514 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
27515
27516 2014-04-23 David Malcolm <dmalcolm@redhat.com>
27517
27518 * is-a.h: Update comments to reflect the following changes to the
27519 "pointerness" of the API, making the template parameter match the
27520 return type, allowing use of is-a.h with typedefs of pointers.
27521 (is_a_helper::cast): Return a T rather then a pointer to a T, so
27522 that the return type matches the parameter to the is_a_helper.
27523 (as_a): Likewise.
27524 (dyn_cast): Likewise.
27525
27526 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
27527 pointer from the is-a.h API.
27528
27529 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
27530 (is_a_helper <cgraph_node *>::test): ...this, matching change to
27531 is-a.h API.
27532 (is_a_helper <varpool_node>::test): Likewise, convert to...
27533 (is_a_helper <varpool_node *>::test): ...this.
27534
27535 (varpool_first_variable): Update for removal of implicit pointer
27536 from the is-a.h API.
27537 (varpool_next_variable): Likewise.
27538 (varpool_first_static_initializer): Likewise.
27539 (varpool_next_static_initializer): Likewise.
27540 (varpool_first_defined_variable): Likewise.
27541 (varpool_next_defined_variable): Likewise.
27542 (cgraph_first_defined_function): Likewise.
27543 (cgraph_next_defined_function): Likewise.
27544 (cgraph_first_function): Likewise.
27545 (cgraph_next_function): Likewise.
27546 (cgraph_first_function_with_gimple_body): Likewise.
27547 (cgraph_next_function_with_gimple_body): Likewise.
27548 (cgraph_alias_target): Likewise.
27549 (varpool_alias_target): Likewise.
27550 (cgraph_function_or_thunk_node): Likewise.
27551 (varpool_variable_node): Likewise.
27552 (symtab_real_symbol_p): Likewise.
27553 * cgraphunit.c (referred_to_p): Likewise.
27554 (analyze_functions): Likewise.
27555 (handle_alias_pairs): Likewise.
27556 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
27557 * gimple-ssa.h (gimple_vuse_op): Likewise.
27558 (gimple_vdef_op): Likewise.
27559 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
27560 * gimple.c (gimple_build_asm_1): Likewise.
27561 (gimple_build_try): Likewise.
27562 (gimple_build_resx): Likewise.
27563 (gimple_build_eh_dispatch): Likewise.
27564 (gimple_build_omp_for): Likewise.
27565 (gimple_omp_for_set_clauses): Likewise.
27566
27567 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
27568 (is_a_helper <gimple_statement_asm *>::test): ...this.
27569 (is_a_helper <gimple_statement_bind>::test): Convert to...
27570 (is_a_helper <gimple_statement_bind *>::test): ...this.
27571 (is_a_helper <gimple_statement_call>::test): Convert to...
27572 (is_a_helper <gimple_statement_call *>::test): ...this.
27573 (is_a_helper <gimple_statement_catch>::test): Convert to...
27574 (is_a_helper <gimple_statement_catch *>::test): ...this.
27575 (is_a_helper <gimple_statement_resx>::test): Convert to...
27576 (is_a_helper <gimple_statement_resx *>::test): ...this.
27577 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
27578 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
27579 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
27580 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
27581 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
27582 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
27583 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
27584 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
27585 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
27586 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
27587 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
27588 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
27589 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
27590 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
27591 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
27592 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
27593 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
27594 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
27595 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
27596 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
27597 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
27598 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
27599 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
27600 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
27601 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
27602 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
27603 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
27604 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
27605 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
27606 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
27607 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
27608 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
27609 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
27610 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
27611 (is_a_helper <gimple_statement_phi>::test): Convert to...
27612 (is_a_helper <gimple_statement_phi *>::test): ...this.
27613 (is_a_helper <gimple_statement_transaction>::test): Convert to...
27614 (is_a_helper <gimple_statement_transaction *>::test): ...this.
27615 (is_a_helper <gimple_statement_try>::test): Convert to...
27616 (is_a_helper <gimple_statement_try *>::test): ...this.
27617 (is_a_helper <gimple_statement_wce>::test): Convert to...
27618 (is_a_helper <gimple_statement_wce *>::test): ...this.
27619 (is_a_helper <const gimple_statement_asm>::test): Convert to...
27620 (is_a_helper <const gimple_statement_asm *>::test): ...this.
27621 (is_a_helper <const gimple_statement_bind>::test): Convert to...
27622 (is_a_helper <const gimple_statement_bind *>::test): ...this.
27623 (is_a_helper <const gimple_statement_call>::test): Convert to...
27624 (is_a_helper <const gimple_statement_call *>::test): ...this.
27625 (is_a_helper <const gimple_statement_catch>::test): Convert to...
27626 (is_a_helper <const gimple_statement_catch *>::test): ...this.
27627 (is_a_helper <const gimple_statement_resx>::test): Convert to...
27628 (is_a_helper <const gimple_statement_resx *>::test): ...this.
27629 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
27630 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
27631 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
27632 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
27633 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
27634 Convert to...
27635 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
27636 ...this.
27637 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
27638 Convert to...
27639 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
27640 ...this.
27641 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
27642 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
27643 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
27644 to...
27645 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
27646 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
27647 to...
27648 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
27649 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
27650 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
27651 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
27652 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
27653 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
27654 to...
27655 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
27656 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
27657 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
27658 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
27659 to...
27660 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
27661 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
27662 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
27663 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
27664 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
27665 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
27666 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
27667 (is_a_helper <const gimple_statement_phi>::test): Convert to...
27668 (is_a_helper <const gimple_statement_phi *>::test): ...this.
27669 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
27670 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
27671 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
27672 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
27673 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
27674 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
27675 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
27676 to...
27677 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
27678 ...this.
27679 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
27680 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
27681
27682 (gimple_use_ops): Update for removal of implicit pointer from the
27683 is-a.h API.
27684 (gimple_set_use_ops): Likewise.
27685 (gimple_vuse): Likewise.
27686 (gimple_vdef): Likewise.
27687 (gimple_vuse_ptr): Likewise.
27688 (gimple_vdef_ptr): Likewise.
27689 (gimple_set_vuse): Likewise.
27690 (gimple_set_vdef): Likewise.
27691 (gimple_omp_return_set_lhs): Likewise.
27692 (gimple_omp_return_lhs): Likewise.
27693 (gimple_omp_return_lhs_ptr): Likewise.
27694 (gimple_call_fntype): Likewise.
27695 (gimple_call_set_fntype): Likewise.
27696 (gimple_call_set_internal_fn): Likewise.
27697 (gimple_call_use_set): Likewise.
27698 (gimple_call_clobber_set): Likewise.
27699 (gimple_bind_vars): Likewise.
27700 (gimple_bind_set_vars): Likewise.
27701 (gimple_bind_body_ptr): Likewise.
27702 (gimple_bind_set_body): Likewise.
27703 (gimple_bind_add_stmt): Likewise.
27704 (gimple_bind_block): Likewise.
27705 (gimple_bind_set_block): Likewise.
27706 (gimple_asm_ninputs): Likewise.
27707 (gimple_asm_noutputs): Likewise.
27708 (gimple_asm_nclobbers): Likewise.
27709 (gimple_asm_nlabels): Likewise.
27710 (gimple_asm_input_op): Likewise.
27711 (gimple_asm_input_op_ptr): Likewise.
27712 (gimple_asm_output_op): Likewise.
27713 (gimple_asm_output_op_ptr): Likewise.
27714 (gimple_asm_set_output_op): Likewise.
27715 (gimple_asm_clobber_op): Likewise.
27716 (gimple_asm_set_clobber_op): Likewise.
27717 (gimple_asm_label_op): Likewise.
27718 (gimple_asm_set_label_op): Likewise.
27719 (gimple_asm_string): Likewise.
27720 (gimple_catch_types): Likewise.
27721 (gimple_catch_types_ptr): Likewise.
27722 (gimple_catch_handler_ptr): Likewise.
27723 (gimple_catch_set_types): Likewise.
27724 (gimple_catch_set_handler): Likewise.
27725 (gimple_eh_filter_types): Likewise.
27726 (gimple_eh_filter_types_ptr): Likewise.
27727 (gimple_eh_filter_failure_ptr): Likewise.
27728 (gimple_eh_filter_set_types): Likewise.
27729 (gimple_eh_filter_set_failure): Likewise.
27730 (gimple_eh_must_not_throw_fndecl): Likewise.
27731 (gimple_eh_must_not_throw_set_fndecl): Likewise.
27732 (gimple_eh_else_n_body_ptr): Likewise.
27733 (gimple_eh_else_e_body_ptr): Likewise.
27734 (gimple_eh_else_set_n_body): Likewise.
27735 (gimple_eh_else_set_e_body): Likewise.
27736 (gimple_try_eval_ptr): Likewise.
27737 (gimple_try_cleanup_ptr): Likewise.
27738 (gimple_try_set_eval): Likewise.
27739 (gimple_try_set_cleanup): Likewise.
27740 (gimple_wce_cleanup_ptr): Likewise.
27741 (gimple_wce_set_cleanup): Likewise.
27742 (gimple_phi_capacity): Likewise.
27743 (gimple_phi_num_args): Likewise.
27744 (gimple_phi_result): Likewise.
27745 (gimple_phi_result_ptr): Likewise.
27746 (gimple_phi_set_result): Likewise.
27747 (gimple_phi_arg): Likewise.
27748 (gimple_phi_set_arg): Likewise.
27749 (gimple_resx_region): Likewise.
27750 (gimple_resx_set_region): Likewise.
27751 (gimple_eh_dispatch_region): Likewise.
27752 (gimple_eh_dispatch_set_region): Likewise.
27753 (gimple_omp_critical_name): Likewise.
27754 (gimple_omp_critical_name_ptr): Likewise.
27755 (gimple_omp_critical_set_name): Likewise.
27756 (gimple_omp_for_clauses): Likewise.
27757 (gimple_omp_for_clauses_ptr): Likewise.
27758 (gimple_omp_for_set_clauses): Likewise.
27759 (gimple_omp_for_collapse): Likewise.
27760 (gimple_omp_for_index): Likewise.
27761 (gimple_omp_for_index_ptr): Likewise.
27762 (gimple_omp_for_set_index): Likewise.
27763 (gimple_omp_for_initial): Likewise.
27764 (gimple_omp_for_initial_ptr): Likewise.
27765 (gimple_omp_for_set_initial): Likewise.
27766 (gimple_omp_for_final): Likewise.
27767 (gimple_omp_for_final_ptr): Likewise.
27768 (gimple_omp_for_set_final): Likewise.
27769 (gimple_omp_for_incr): Likewise.
27770 (gimple_omp_for_incr_ptr): Likewise.
27771 (gimple_omp_for_set_incr): Likewise.
27772 (gimple_omp_for_pre_body_ptr): Likewise.
27773 (gimple_omp_for_set_pre_body): Likewise.
27774 (gimple_omp_parallel_clauses): Likewise.
27775 (gimple_omp_parallel_clauses_ptr): Likewise.
27776 (gimple_omp_parallel_set_clauses): Likewise.
27777 (gimple_omp_parallel_child_fn): Likewise.
27778 (gimple_omp_parallel_child_fn_ptr): Likewise.
27779 (gimple_omp_parallel_set_child_fn): Likewise.
27780 (gimple_omp_parallel_data_arg): Likewise.
27781 (gimple_omp_parallel_data_arg_ptr): Likewise.
27782 (gimple_omp_parallel_set_data_arg): Likewise.
27783 (gimple_omp_task_clauses): Likewise.
27784 (gimple_omp_task_clauses_ptr): Likewise.
27785 (gimple_omp_task_set_clauses): Likewise.
27786 (gimple_omp_task_child_fn): Likewise.
27787 (gimple_omp_task_child_fn_ptr): Likewise.
27788 (gimple_omp_task_set_child_fn): Likewise.
27789 (gimple_omp_task_data_arg): Likewise.
27790 (gimple_omp_task_data_arg_ptr): Likewise.
27791 (gimple_omp_task_set_data_arg): Likewise.
27792 (gimple_omp_taskreg_clauses): Likewise.
27793 (gimple_omp_taskreg_clauses_ptr): Likewise.
27794 (gimple_omp_taskreg_set_clauses): Likewise.
27795 (gimple_omp_taskreg_child_fn): Likewise.
27796 (gimple_omp_taskreg_child_fn_ptr): Likewise.
27797 (gimple_omp_taskreg_set_child_fn): Likewise.
27798 (gimple_omp_taskreg_data_arg): Likewise.
27799 (gimple_omp_taskreg_data_arg_ptr): Likewise.
27800 (gimple_omp_taskreg_set_data_arg): Likewise.
27801 (gimple_omp_task_copy_fn): Likewise.
27802 (gimple_omp_task_copy_fn_ptr): Likewise.
27803 (gimple_omp_task_set_copy_fn): Likewise.
27804 (gimple_omp_task_arg_size): Likewise.
27805 (gimple_omp_task_arg_size_ptr): Likewise.
27806 (gimple_omp_task_set_arg_size): Likewise.
27807 (gimple_omp_task_arg_align): Likewise.
27808 (gimple_omp_task_arg_align_ptr): Likewise.
27809 (gimple_omp_task_set_arg_align): Likewise.
27810 (gimple_omp_single_clauses): Likewise.
27811 (gimple_omp_single_clauses_ptr): Likewise.
27812 (gimple_omp_single_set_clauses): Likewise.
27813 (gimple_omp_target_clauses): Likewise.
27814 (gimple_omp_target_clauses_ptr): Likewise.
27815 (gimple_omp_target_set_clauses): Likewise.
27816 (gimple_omp_target_child_fn): Likewise.
27817 (gimple_omp_target_child_fn_ptr): Likewise.
27818 (gimple_omp_target_set_child_fn): Likewise.
27819 (gimple_omp_target_data_arg): Likewise.
27820 (gimple_omp_target_data_arg_ptr): Likewise.
27821 (gimple_omp_target_set_data_arg): Likewise.
27822 (gimple_omp_teams_clauses): Likewise.
27823 (gimple_omp_teams_clauses_ptr): Likewise.
27824 (gimple_omp_teams_set_clauses): Likewise.
27825 (gimple_omp_sections_clauses): Likewise.
27826 (gimple_omp_sections_clauses_ptr): Likewise.
27827 (gimple_omp_sections_set_clauses): Likewise.
27828 (gimple_omp_sections_control): Likewise.
27829 (gimple_omp_sections_control_ptr): Likewise.
27830 (gimple_omp_sections_set_control): Likewise.
27831 (gimple_omp_for_set_cond): Likewise.
27832 (gimple_omp_for_cond): Likewise.
27833 (gimple_omp_atomic_store_set_val): Likewise.
27834 (gimple_omp_atomic_store_val): Likewise.
27835 (gimple_omp_atomic_store_val_ptr): Likewise.
27836 (gimple_omp_atomic_load_set_lhs): Likewise.
27837 (gimple_omp_atomic_load_lhs): Likewise.
27838 (gimple_omp_atomic_load_lhs_ptr): Likewise.
27839 (gimple_omp_atomic_load_set_rhs): Likewise.
27840 (gimple_omp_atomic_load_rhs): Likewise.
27841 (gimple_omp_atomic_load_rhs_ptr): Likewise.
27842 (gimple_omp_continue_control_def): Likewise.
27843 (gimple_omp_continue_control_def_ptr): Likewise.
27844 (gimple_omp_continue_set_control_def): Likewise.
27845 (gimple_omp_continue_control_use): Likewise.
27846 (gimple_omp_continue_control_use_ptr): Likewise.
27847 (gimple_omp_continue_set_control_use): Likewise.
27848 (gimple_transaction_body_ptr): Likewise.
27849 (gimple_transaction_label): Likewise.
27850 (gimple_transaction_label_ptr): Likewise.
27851 (gimple_transaction_set_body): Likewise.
27852 (gimple_transaction_set_label): Likewise.
27853
27854 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
27855 * ipa-inline-analysis.c (inline_write_summary): Likewise.
27856 * ipa-ref.c (ipa_record_reference): Likewise.
27857 * ipa-reference.c (analyze_function): Likewise.
27858 (ipa_reference_write_optimization_summary): Likewise.
27859 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
27860 (address_taken_from_non_vtable_p): Likewise.
27861 (comdat_can_be_unshared_p_1): Likewise.
27862 * lto-cgraph.c (lto_output_ref): Likewise.
27863 (add_references): Likewise.
27864 (compute_ltrans_boundary): Likewise.
27865 (output_symtab): Likewise.
27866 (input_ref): Likewise.
27867 (input_cgraph_1): Likewise.
27868 (output_cgraph_opt_summary): Likewise.
27869 * lto-streamer-out.c (lto_output): Likewise.
27870 (output_symbol_p): Likewise.
27871 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
27872 (lsei_start_function_in_partition): Likewise.
27873 (lsei_next_variable_in_partition): Likewise.
27874 (lsei_start_variable_in_partition): Likewise.
27875 * symtab.c (insert_to_assembler_name_hash): Likewise.
27876 (unlink_from_assembler_name_hash): Likewise.
27877 (symtab_unregister_node): Likewise.
27878 (symtab_remove_node): Likewise.
27879 (dump_symtab_node): Likewise.
27880 (verify_symtab_base): Likewise.
27881 (verify_symtab_node): Likewise.
27882 (symtab_make_decl_local): Likewise.
27883 (symtab_alias_ultimate_target): Likewise.
27884 (symtab_resolve_alias): Likewise.
27885 (symtab_get_symbol_partitioning_class): Likewise.
27886 * tree-phinodes.c (allocate_phi_node): Likewise.
27887 (reserve_phi_args_for_new_edge): Likewise.
27888 (remove_phi_args): Likewise.
27889 * varpool.c (varpool_node_for_asm): Likewise.
27890 (varpool_remove_unreferenced_decls): Likewise.
27891
27892 2014-04-23 Jeff Law <law@redhat.com>
27893
27894 PR tree-optimization/60902
27895 * tree-ssa-threadedge.c
27896 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
27897 invalidate outputs from statements that do not produce useful
27898 outputs for threading.
27899
27900 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
27901
27902 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
27903 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
27904 machine descriptions for Stack Smashing Protector.
27905
27906 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
27907
27908 * aarch64.md (<optab>_rol<mode>3): New pattern.
27909 (<optab>_rolsi3_uxtw): Likewise.
27910 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
27911
27912 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
27913
27914 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
27915 (arm_cortex_a12_tune): Likewise.
27916
27917 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27918
27919 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
27920
27921 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27922
27923 * config/arm/arm.md (arm_rev16si2): New pattern.
27924 (arm_rev16si2_alt): Likewise.
27925 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
27926
27927 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27928
27929 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
27930 (rev16<mode>2_alt): Likewise.
27931 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
27932 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
27933 (aarch_rev16_shleft_mask_imm_p): Likewise.
27934 (aarch_rev16_p_1): Likewise.
27935 (aarch_rev16_p): Likewise.
27936 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
27937 (aarch_rev16_shright_mask_imm_p): Likewise.
27938 (aarch_rev16_shleft_mask_imm_p): Likewise.
27939
27940 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27941
27942 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
27943 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
27944 rev cost.
27945 (cortex_a53_extra_costs): Likewise.
27946 (cortex_a57_extra_costs): Likewise.
27947 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
27948 (cortexa7_extra_costs): Likewise.
27949 (cortexa8_extra_costs): Likewise.
27950 (cortexa12_extra_costs): Likewise.
27951 (cortexa15_extra_costs): Likewise.
27952 (v7m_extra_costs): Likewise.
27953 (arm_new_rtx_costs): Handle BSWAP.
27954
27955 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27956
27957 * config/arm/arm.c (cortexa8_extra_costs): New table.
27958 (arm_cortex_a8_tune): New tuning struct.
27959 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
27960
27961 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27962
27963 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
27964
27965 2014-04-23 Richard Biener <rguenther@suse.de>
27966
27967 * Makefile.in (OBJS): Remove loop-unswitch.o.
27968 * tree-pass.h (make_pass_rtl_unswitch): Remove.
27969 * passes.def (pass_rtl_unswitch): Likewise.
27970 * loop-init.c (gate_rtl_unswitch): Likewise.
27971 (rtl_unswitch): Likewise.
27972 (pass_data_rtl_unswitch): Likewise.
27973 (pass_rtl_unswitch): Likewise.
27974 (make_pass_rtl_unswitch): Likewise.
27975 * rtl.h (reversed_condition): Likewise.
27976 (compare_and_jump_seq): Likewise.
27977 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
27978 and make static.
27979 * loop-unroll.c (compare_and_jump_seq): Likewise.
27980
27981 2014-04-23 Richard Biener <rguenther@suse.de>
27982
27983 PR tree-optimization/60903
27984 * tree-ssa-loop-im.c (analyze_memory_references): Remove
27985 commented code block.
27986 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
27987 loop flags to newly created BBs and edges.
27988
27989 2014-04-23 Nick Clifton <nickc@redhat.com>
27990
27991 * config/msp430/msp430.c (msp430_handle_option): Move function
27992 to msp430-common.c
27993 (msp430_option_override): Simplify mcu and mcpu option handling.
27994 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
27995 support for -mhwmult command line option.
27996 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
27997 -mhwmult command line option.
27998 (msp430_hwmult_enabled): Delete.
27999 (msp43o_output_labelref): Add support for -mhwmult command line option.
28000 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28001 (umulsidi3): Likewise.
28002 * config/msp430/msp430.opt (mmcu): Add Report attribute.
28003 (mcpu, mlarge, msmall): Likewise.
28004 (mhwmult): New option.
28005 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28006 prototype.
28007 (msp430_is_f5_mcu): Remove prototype.
28008 (msp430_use_f5_series_hwmult): Add prototype.
28009 * config/msp430/msp430-opts.h: New file.
28010 * common/config/msp430: New directory.
28011 * common/config/msp430/msp430-common.c: New file.
28012 * config.gcc (msp430): Remove target_has_targetm_common.
28013 * doc/invoke.texi: Document -mhwmult command line option.
28014
28015 2014-04-23 Nick Clifton <nickc@redhat.com>
28016
28017 * config/i386/cygwin.h (ENDFILE_SPEC): Include
28018 default-manifest.o if it can be found in the search path.
28019 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28020
28021 2014-04-23 Terry Guo <terry.guo@arm.com>
28022
28023 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28024
28025 2014-04-23 Richard Biener <rguenther@suse.de>
28026
28027 PR middle-end/60895
28028 * tree-inline.c (declare_return_variable): Use mark_addressable.
28029
28030 2014-04-23 Richard Biener <rguenther@suse.de>
28031
28032 PR middle-end/60891
28033 * loop-init.c (loop_optimizer_init): Make sure to apply
28034 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28035
28036 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28037
28038 PR sanitizer/60275
28039 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28040 New options.
28041 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28042 if flag_sanitize_undefined_trap_on_error.
28043 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28044 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28045 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28046 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28047 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28048 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28049 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28050 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28051 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28052 * ubsan.c (ubsan_instrument_unreachable): Return
28053 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28054 (ubsan_expand_null_ifn): Emit __builtin_trap ()
28055 if flag_sanitize_undefined_trap_on_error and
28056 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28057 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28058 instrument_bool_enum_load): Emit __builtin_trap () if
28059 flag_sanitize_undefined_trap_on_error and
28060 __builtin_handle_*_abort () if !flag_sanitize_recover.
28061 * doc/invoke.texi (-fsanitize-recover,
28062 -fsanitize-undefined-trap-on-error): Document.
28063
28064 2014-04-22 Christian Bruel <christian.bruel@st.com>
28065
28066 * config/sh/sh.md (mov<mode>): Replace movQIHI.
28067 Force immediates to SImode.
28068
28069 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
28070
28071 * config/nios2/nios2.md (UNSPEC_ROUND): New.
28072 (lroundsfsi2): New.
28073 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28074 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28075 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28076 (nios2_fpu_insn): Add entry for round.
28077 (N2FPU_NO_ERRNO_P): Define.
28078 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28079 flag_errno_math.
28080 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28081
28082 2014-04-22 Richard Henderson <rth@redhat.com>
28083
28084 * config/aarch64/aarch64 (addti3, subti3): New expanders.
28085 (add<GPI>3_compare0): Remove leading * from name.
28086 (add<GPI>3_carryin): Likewise.
28087 (sub<GPI>3_compare0): Likewise.
28088 (sub<GPI>3_carryin): Likewise.
28089 (<su_optab>mulditi3): New expander.
28090 (multi3): New expander.
28091 (madd<GPI>): Remove leading * from name.
28092
28093 2014-04-22 Martin Jambor <mjambor@suse.cz>
28094
28095 * cgraphclones.c (cgraph_function_versioning): Copy
28096 ipa_transforms_to_apply instead of asserting it is empty.
28097
28098 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
28099
28100 PR target/60868
28101 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
28102 on count_exp to get mode.
28103
28104 2014-04-22 Andrew Pinski <apinski@cavium.com>
28105
28106 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
28107 Handle TLS for ILP32.
28108 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
28109 (tlsie_small_<mode>): this and handle PTR.
28110 (tlsie_small_sidi): New pattern.
28111 (tlsle_small): Change to an expand to handle ILP32.
28112 (tlsle_small_<mode>): New pattern.
28113 (tlsdesc_small): Rename to ...
28114 (tlsdesc_small_<mode>): this and handle PTR.
28115
28116 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28117
28118 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
28119
28120 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28121
28122 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28123 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
28124 (aarch64_types_signed_poly_qualifiers): Likewise.
28125 (aarch64_types_unsigned_signed_qualifiers): Likewise.
28126 (aarch64_types_poly_signed_qualifiers): Likewise.
28127 (TYPES_REINTERP_SS): Type macro added.
28128 (TYPES_REINTERP_SU): Likewise.
28129 (TYPES_REINTERP_SP): Likewise.
28130 (TYPES_REINTERP_US): Likewise.
28131 (TYPES_REINTERP_PS): Likewise.
28132 (aarch64_fold_builtin): New expression folding added.
28133 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
28134 Declarations removed.
28135 (REINTERP_SS): Declarations added.
28136 (REINTERP_US): Likewise.
28137 (REINTERP_PS): Likewise.
28138 (REINTERP_SU): Likewise.
28139 (REINTERP_SP): Likewise.
28140 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
28141 (vreinterpretq_p8_f64): Likewise.
28142 (vreinterpret_p16_f64): Likewise.
28143 (vreinterpretq_p16_f64): Likewise.
28144 (vreinterpret_f32_f64): Likewise.
28145 (vreinterpretq_f32_f64): Likewise.
28146 (vreinterpret_f64_f32): Likewise.
28147 (vreinterpret_f64_p8): Likewise.
28148 (vreinterpret_f64_p16): Likewise.
28149 (vreinterpret_f64_s8): Likewise.
28150 (vreinterpret_f64_s16): Likewise.
28151 (vreinterpret_f64_s32): Likewise.
28152 (vreinterpret_f64_s64): Likewise.
28153 (vreinterpret_f64_u8): Likewise.
28154 (vreinterpret_f64_u16): Likewise.
28155 (vreinterpret_f64_u32): Likewise.
28156 (vreinterpret_f64_u64): Likewise.
28157 (vreinterpretq_f64_f32): Likewise.
28158 (vreinterpretq_f64_p8): Likewise.
28159 (vreinterpretq_f64_p16): Likewise.
28160 (vreinterpretq_f64_s8): Likewise.
28161 (vreinterpretq_f64_s16): Likewise.
28162 (vreinterpretq_f64_s32): Likewise.
28163 (vreinterpretq_f64_s64): Likewise.
28164 (vreinterpretq_f64_u8): Likewise.
28165 (vreinterpretq_f64_u16): Likewise.
28166 (vreinterpretq_f64_u32): Likewise.
28167 (vreinterpretq_f64_u64): Likewise.
28168 (vreinterpret_s64_f64): Likewise.
28169 (vreinterpretq_s64_f64): Likewise.
28170 (vreinterpret_u64_f64): Likewise.
28171 (vreinterpretq_u64_f64): Likewise.
28172 (vreinterpret_s8_f64): Likewise.
28173 (vreinterpretq_s8_f64): Likewise.
28174 (vreinterpret_s16_f64): Likewise.
28175 (vreinterpretq_s16_f64): Likewise.
28176 (vreinterpret_s32_f64): Likewise.
28177 (vreinterpretq_s32_f64): Likewise.
28178 (vreinterpret_u8_f64): Likewise.
28179 (vreinterpretq_u8_f64): Likewise.
28180 (vreinterpret_u16_f64): Likewise.
28181 (vreinterpretq_u16_f64): Likewise.
28182 (vreinterpret_u32_f64): Likewise.
28183 (vreinterpretq_u32_f64): Likewise.
28184
28185 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28186
28187 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
28188 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
28189 (vreinterpret_p8_s8): Likewise.
28190 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
28191 (vreinterpret_p8_s16): Likewise.
28192 (vreinterpret_p8_s32): Likewise.
28193 (vreinterpret_p8_s64): Likewise.
28194 (vreinterpret_p8_f32): Likewise.
28195 (vreinterpret_p8_u8): Likewise.
28196 (vreinterpret_p8_u16): Likewise.
28197 (vreinterpret_p8_u32): Likewise.
28198 (vreinterpret_p8_u64): Likewise.
28199 (vreinterpret_p8_p16): Likewise.
28200 (vreinterpretq_p8_s8): Likewise.
28201 (vreinterpretq_p8_s16): Likewise.
28202 (vreinterpretq_p8_s32): Likewise.
28203 (vreinterpretq_p8_s64): Likewise.
28204 (vreinterpretq_p8_f32): Likewise.
28205 (vreinterpretq_p8_u8): Likewise.
28206 (vreinterpretq_p8_u16): Likewise.
28207 (vreinterpretq_p8_u32): Likewise.
28208 (vreinterpretq_p8_u64): Likewise.
28209 (vreinterpretq_p8_p16): Likewise.
28210 (vreinterpret_p16_s8): Likewise.
28211 (vreinterpret_p16_s16): Likewise.
28212 (vreinterpret_p16_s32): Likewise.
28213 (vreinterpret_p16_s64): Likewise.
28214 (vreinterpret_p16_f32): Likewise.
28215 (vreinterpret_p16_u8): Likewise.
28216 (vreinterpret_p16_u16): Likewise.
28217 (vreinterpret_p16_u32): Likewise.
28218 (vreinterpret_p16_u64): Likewise.
28219 (vreinterpret_p16_p8): Likewise.
28220 (vreinterpretq_p16_s8): Likewise.
28221 (vreinterpretq_p16_s16): Likewise.
28222 (vreinterpretq_p16_s32): Likewise.
28223 (vreinterpretq_p16_s64): Likewise.
28224 (vreinterpretq_p16_f32): Likewise.
28225 (vreinterpretq_p16_u8): Likewise.
28226 (vreinterpretq_p16_u16): Likewise.
28227 (vreinterpretq_p16_u32): Likewise.
28228 (vreinterpretq_p16_u64): Likewise.
28229 (vreinterpretq_p16_p8): Likewise.
28230 (vreinterpret_f32_s8): Likewise.
28231 (vreinterpret_f32_s16): Likewise.
28232 (vreinterpret_f32_s32): Likewise.
28233 (vreinterpret_f32_s64): Likewise.
28234 (vreinterpret_f32_u8): Likewise.
28235 (vreinterpret_f32_u16): Likewise.
28236 (vreinterpret_f32_u32): Likewise.
28237 (vreinterpret_f32_u64): Likewise.
28238 (vreinterpret_f32_p8): Likewise.
28239 (vreinterpret_f32_p16): Likewise.
28240 (vreinterpretq_f32_s8): Likewise.
28241 (vreinterpretq_f32_s16): Likewise.
28242 (vreinterpretq_f32_s32): Likewise.
28243 (vreinterpretq_f32_s64): Likewise.
28244 (vreinterpretq_f32_u8): Likewise.
28245 (vreinterpretq_f32_u16): Likewise.
28246 (vreinterpretq_f32_u32): Likewise.
28247 (vreinterpretq_f32_u64): Likewise.
28248 (vreinterpretq_f32_p8): Likewise.
28249 (vreinterpretq_f32_p16): Likewise.
28250 (vreinterpret_s64_s8): Likewise.
28251 (vreinterpret_s64_s16): Likewise.
28252 (vreinterpret_s64_s32): Likewise.
28253 (vreinterpret_s64_f32): Likewise.
28254 (vreinterpret_s64_u8): Likewise.
28255 (vreinterpret_s64_u16): Likewise.
28256 (vreinterpret_s64_u32): Likewise.
28257 (vreinterpret_s64_u64): Likewise.
28258 (vreinterpret_s64_p8): Likewise.
28259 (vreinterpret_s64_p16): Likewise.
28260 (vreinterpretq_s64_s8): Likewise.
28261 (vreinterpretq_s64_s16): Likewise.
28262 (vreinterpretq_s64_s32): Likewise.
28263 (vreinterpretq_s64_f32): Likewise.
28264 (vreinterpretq_s64_u8): Likewise.
28265 (vreinterpretq_s64_u16): Likewise.
28266 (vreinterpretq_s64_u32): Likewise.
28267 (vreinterpretq_s64_u64): Likewise.
28268 (vreinterpretq_s64_p8): Likewise.
28269 (vreinterpretq_s64_p16): Likewise.
28270 (vreinterpret_u64_s8): Likewise.
28271 (vreinterpret_u64_s16): Likewise.
28272 (vreinterpret_u64_s32): Likewise.
28273 (vreinterpret_u64_s64): Likewise.
28274 (vreinterpret_u64_f32): Likewise.
28275 (vreinterpret_u64_u8): Likewise.
28276 (vreinterpret_u64_u16): Likewise.
28277 (vreinterpret_u64_u32): Likewise.
28278 (vreinterpret_u64_p8): Likewise.
28279 (vreinterpret_u64_p16): Likewise.
28280 (vreinterpretq_u64_s8): Likewise.
28281 (vreinterpretq_u64_s16): Likewise.
28282 (vreinterpretq_u64_s32): Likewise.
28283 (vreinterpretq_u64_s64): Likewise.
28284 (vreinterpretq_u64_f32): Likewise.
28285 (vreinterpretq_u64_u8): Likewise.
28286 (vreinterpretq_u64_u16): Likewise.
28287 (vreinterpretq_u64_u32): Likewise.
28288 (vreinterpretq_u64_p8): Likewise.
28289 (vreinterpretq_u64_p16): Likewise.
28290 (vreinterpret_s8_s16): Likewise.
28291 (vreinterpret_s8_s32): Likewise.
28292 (vreinterpret_s8_s64): Likewise.
28293 (vreinterpret_s8_f32): Likewise.
28294 (vreinterpret_s8_u8): Likewise.
28295 (vreinterpret_s8_u16): Likewise.
28296 (vreinterpret_s8_u32): Likewise.
28297 (vreinterpret_s8_u64): Likewise.
28298 (vreinterpret_s8_p8): Likewise.
28299 (vreinterpret_s8_p16): Likewise.
28300 (vreinterpretq_s8_s16): Likewise.
28301 (vreinterpretq_s8_s32): Likewise.
28302 (vreinterpretq_s8_s64): Likewise.
28303 (vreinterpretq_s8_f32): Likewise.
28304 (vreinterpretq_s8_u8): Likewise.
28305 (vreinterpretq_s8_u16): Likewise.
28306 (vreinterpretq_s8_u32): Likewise.
28307 (vreinterpretq_s8_u64): Likewise.
28308 (vreinterpretq_s8_p8): Likewise.
28309 (vreinterpretq_s8_p16): Likewise.
28310 (vreinterpret_s16_s8): Likewise.
28311 (vreinterpret_s16_s32): Likewise.
28312 (vreinterpret_s16_s64): Likewise.
28313 (vreinterpret_s16_f32): Likewise.
28314 (vreinterpret_s16_u8): Likewise.
28315 (vreinterpret_s16_u16): Likewise.
28316 (vreinterpret_s16_u32): Likewise.
28317 (vreinterpret_s16_u64): Likewise.
28318 (vreinterpret_s16_p8): Likewise.
28319 (vreinterpret_s16_p16): Likewise.
28320 (vreinterpretq_s16_s8): Likewise.
28321 (vreinterpretq_s16_s32): Likewise.
28322 (vreinterpretq_s16_s64): Likewise.
28323 (vreinterpretq_s16_f32): Likewise.
28324 (vreinterpretq_s16_u8): Likewise.
28325 (vreinterpretq_s16_u16): Likewise.
28326 (vreinterpretq_s16_u32): Likewise.
28327 (vreinterpretq_s16_u64): Likewise.
28328 (vreinterpretq_s16_p8): Likewise.
28329 (vreinterpretq_s16_p16): Likewise.
28330 (vreinterpret_s32_s8): Likewise.
28331 (vreinterpret_s32_s16): Likewise.
28332 (vreinterpret_s32_s64): Likewise.
28333 (vreinterpret_s32_f32): Likewise.
28334 (vreinterpret_s32_u8): Likewise.
28335 (vreinterpret_s32_u16): Likewise.
28336 (vreinterpret_s32_u32): Likewise.
28337 (vreinterpret_s32_u64): Likewise.
28338 (vreinterpret_s32_p8): Likewise.
28339 (vreinterpret_s32_p16): Likewise.
28340 (vreinterpretq_s32_s8): Likewise.
28341 (vreinterpretq_s32_s16): Likewise.
28342 (vreinterpretq_s32_s64): Likewise.
28343 (vreinterpretq_s32_f32): Likewise.
28344 (vreinterpretq_s32_u8): Likewise.
28345 (vreinterpretq_s32_u16): Likewise.
28346 (vreinterpretq_s32_u32): Likewise.
28347 (vreinterpretq_s32_u64): Likewise.
28348 (vreinterpretq_s32_p8): Likewise.
28349 (vreinterpretq_s32_p16): Likewise.
28350 (vreinterpret_u8_s8): Likewise.
28351 (vreinterpret_u8_s16): Likewise.
28352 (vreinterpret_u8_s32): Likewise.
28353 (vreinterpret_u8_s64): Likewise.
28354 (vreinterpret_u8_f32): Likewise.
28355 (vreinterpret_u8_u16): Likewise.
28356 (vreinterpret_u8_u32): Likewise.
28357 (vreinterpret_u8_u64): Likewise.
28358 (vreinterpret_u8_p8): Likewise.
28359 (vreinterpret_u8_p16): Likewise.
28360 (vreinterpretq_u8_s8): Likewise.
28361 (vreinterpretq_u8_s16): Likewise.
28362 (vreinterpretq_u8_s32): Likewise.
28363 (vreinterpretq_u8_s64): Likewise.
28364 (vreinterpretq_u8_f32): Likewise.
28365 (vreinterpretq_u8_u16): Likewise.
28366 (vreinterpretq_u8_u32): Likewise.
28367 (vreinterpretq_u8_u64): Likewise.
28368 (vreinterpretq_u8_p8): Likewise.
28369 (vreinterpretq_u8_p16): Likewise.
28370 (vreinterpret_u16_s8): Likewise.
28371 (vreinterpret_u16_s16): Likewise.
28372 (vreinterpret_u16_s32): Likewise.
28373 (vreinterpret_u16_s64): Likewise.
28374 (vreinterpret_u16_f32): Likewise.
28375 (vreinterpret_u16_u8): Likewise.
28376 (vreinterpret_u16_u32): Likewise.
28377 (vreinterpret_u16_u64): Likewise.
28378 (vreinterpret_u16_p8): Likewise.
28379 (vreinterpret_u16_p16): Likewise.
28380 (vreinterpretq_u16_s8): Likewise.
28381 (vreinterpretq_u16_s16): Likewise.
28382 (vreinterpretq_u16_s32): Likewise.
28383 (vreinterpretq_u16_s64): Likewise.
28384 (vreinterpretq_u16_f32): Likewise.
28385 (vreinterpretq_u16_u8): Likewise.
28386 (vreinterpretq_u16_u32): Likewise.
28387 (vreinterpretq_u16_u64): Likewise.
28388 (vreinterpretq_u16_p8): Likewise.
28389 (vreinterpretq_u16_p16): Likewise.
28390 (vreinterpret_u32_s8): Likewise.
28391 (vreinterpret_u32_s16): Likewise.
28392 (vreinterpret_u32_s32): Likewise.
28393 (vreinterpret_u32_s64): Likewise.
28394 (vreinterpret_u32_f32): Likewise.
28395 (vreinterpret_u32_u8): Likewise.
28396 (vreinterpret_u32_u16): Likewise.
28397 (vreinterpret_u32_u64): Likewise.
28398 (vreinterpret_u32_p8): Likewise.
28399 (vreinterpret_u32_p16): Likewise.
28400 (vreinterpretq_u32_s8): Likewise.
28401 (vreinterpretq_u32_s16): Likewise.
28402 (vreinterpretq_u32_s32): Likewise.
28403 (vreinterpretq_u32_s64): Likewise.
28404 (vreinterpretq_u32_f32): Likewise.
28405 (vreinterpretq_u32_u8): Likewise.
28406 (vreinterpretq_u32_u16): Likewise.
28407 (vreinterpretq_u32_u64): Likewise.
28408 (vreinterpretq_u32_p8): Likewise.
28409 (vreinterpretq_u32_p16): Likewise.
28410
28411 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28412
28413 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
28414 Pattern extended.
28415 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
28416 (sqabs): Likewise.
28417 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
28418 (vqnegd_s64): Likewise.
28419 (vqabs_s64): Likewise.
28420 (vqabsd_s64): Likewise.
28421
28422 2014-04-22 Richard Henderson <rth@redhat.com>
28423
28424 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
28425 computation to the top of the loop.
28426
28427 2014-04-22 Renlin <renlin.li@arm.com>
28428 Jiong Wang <jiong.wang@arm.com>
28429
28430 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
28431 * config/aarch64/aarch64.c (aarch64_layout_frame)
28432 (aarch64_initial_elimination_offset): Likewise.
28433
28434 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
28435
28436 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
28437 Fix indentation.
28438
28439 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
28440
28441 * machmode.h (bitwise_mode_for_mode): Declare.
28442 * stor-layout.h (bitwise_type_for_mode): Likewise.
28443 * stor-layout.c (bitwise_mode_for_mode): New function.
28444 (bitwise_type_for_mode): Likewise.
28445 * builtins.c (fold_builtin_memory_op): Use it instead of
28446 int_mode_for_mode and build_nonstandard_integer_type.
28447
28448 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28449
28450 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
28451 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
28452 (*-*-solaris2*): Simplify.
28453 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
28454 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
28455 *-*-solaris2.9* handling.
28456
28457 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
28458 as bug.
28459 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
28460 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
28461 handling, simplify.
28462 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
28463 * configure: Regenerate.
28464
28465 * config/i386/sol2-9.h: Remove.
28466
28467 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
28468 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
28469 Remove Solaris 9 references.
28470
28471 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
28472
28473 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
28474 (floatuns<GPI:mode><GPF:mode>2): Remove.
28475 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
28476 and floatuns conversions.
28477 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
28478 and floatuns conversions.
28479 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
28480 (w1,w2): New mode attributes for inequal width conversions.
28481
28482 2014-04-22 Renlin Li <Renlin.Li@arm.com>
28483
28484 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
28485 the output asm format.
28486
28487 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
28488
28489 * config/aarch64/aarch64-simd.md
28490 (aarch64_cm<optab>di): Always split.
28491 (*aarch64_cm<optab>di): New.
28492 (aarch64_cmtstdi): Always split.
28493 (*aarch64_cmtstdi): New.
28494
28495 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28496
28497 PR tree-optimization/60823
28498 * omp-low.c (ipa_simd_modify_function_body): Go through
28499 all SSA_NAMEs and for those refering to vector arguments
28500 which are going to be replaced adjust SSA_NAME_VAR and,
28501 if it is a default definition, change it into a non-default
28502 definition assigned at the beginning of function from new_decl.
28503 (ipa_simd_modify_stmt_ops): Rewritten.
28504 * tree-dfa.c (set_ssa_default_def): When removing default def,
28505 check for NULL loc instead of NULL *loc.
28506
28507 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28508
28509 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
28510 restrictions on core registers for DImode values in Thumb2.
28511
28512 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28513
28514 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
28515 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
28516
28517 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28518
28519 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
28520 (*iordi_notzesidi_di): Likewise.
28521 (*iordi_notsesidi_di): Likewise.
28522
28523 2014-04-22 Ian Bolton <ian.bolton@arm.com>
28524
28525 * config/arm/arm-protos.h (tune_params): New struct members.
28526 * config/arm/arm.c: Initialise tune_params per processor.
28527 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
28528 for speed, based on new tune_params.
28529
28530 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
28531
28532 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
28533 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
28534 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
28535 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
28536 * config/aarch64/arm_neon.h (vrnd_f64): Added.
28537 (vrnda_f64): Likewise.
28538 (vrndi_f64): Likewise.
28539 (vrndm_f64): Likewise.
28540 (vrndn_f64): Likewise.
28541 (vrndp_f64): Likewise.
28542 (vrndx_f64): Likewise.
28543
28544 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
28545
28546 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
28547 GET_MODE_SIZE argument is enum machine_mode.
28548
28549 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28550
28551 PR target/60910
28552 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
28553 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
28554
28555 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
28556
28557 PR middle-end/60281
28558 * asan.c (asan_emit_stack_protection): Force the base to align to
28559 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
28560 appropriate bits if STRICT_ALIGNMENT.
28561 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
28562 when asan is on.
28563 (expand_used_vars): Leave a space in the stack frame for alignment
28564 if STRICT_ALIGNMENT.
28565
28566 2014-04-21 David Malcolm <dmalcolm@redhat.com>
28567
28568 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
28569 than a gimple.
28570 (gimple_store_p): Likewise.
28571 (gimple_assign_load_p): Likewise.
28572 (gimple_assign_cast_p): Likewise.
28573 (gimple_clobber_p): Likewise.
28574
28575 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
28576 rather than a gimple.
28577 (gimple_assign_cast_p): Likewise.
28578
28579 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
28580
28581 PR target/60735
28582 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
28583 If mode is DDmode and TARGET_E500_DOUBLE allow move.
28584
28585 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
28586 more debug information for E500 if -mdebug=reg.
28587
28588 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
28589
28590 PR target/60909
28591 * config/i386/i386.c (ix86_expand_builtin)
28592 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
28593 register for target RTX.
28594 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
28595
28596 2014-04-18 Cong Hou <congh@google.com>
28597
28598 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
28599 the widen-mult pattern by handling two operands with different sizes,
28600 and operands whose size is smaller than half of the result type.
28601
28602 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28603
28604 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
28605 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
28606 (do_estimate_edge_time): Compute it.
28607 * ipa-inline.c (want_inline_small_function_p): Bypass
28608 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
28609
28610 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
28611
28612 * ipa-inline.c (spec_rem): New static variable.
28613 (dump_overall_stats): New function.
28614 (dump_inline_stats): New function.
28615
28616 2014-04-18 Richard Henderson <rth@redhat.com>
28617
28618 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
28619 to GET_MODE_SIZE, not a reg_class_t.
28620
28621 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28622
28623 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
28624 (vsx_xxmrglw_<mode>): Likewise.
28625
28626 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
28627
28628 PR target/60876
28629 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
28630 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
28631 (rs6000_init_hard_regno_mode_ok): Likewise.
28632
28633 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
28634
28635 * ipa-inline.c (inline_small_functions): Account only non-cold
28636 functions.
28637 * doc/invoke.texi (inline-unit-growth): Update documentation.
28638
28639 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
28640
28641 * config/rs6000/rs6000.md (addti3, subti3): New.
28642
28643 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
28644
28645 PR target/60863
28646 * config/i386/i386.c (ix86_expand_clear): Remove outdated
28647 comment. Check optimize_insn_for_size_p instead of
28648 optimize_insn_for_speed_p.
28649
28650 2014-04-17 Martin Jambor <mjambor@suse.cz>
28651
28652 * gimple-iterator.c (gsi_start_edge): New function.
28653 * gimple-iterator.h (gsi_start_edge): Declare.
28654 * tree-sra.c (single_non_eh_succ): New function.
28655 (disqualify_ops_if_throwing_stmt): Renamed to
28656 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
28657 having one non-EH successor BB.
28658 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
28659 generate loads into replacements.
28660 (sra_modify_assign): Likewise and and also use the simple path for
28661 such statements.
28662 (sra_modify_function_body): Commit statements on edges.
28663
28664 2014-04-17 Richard Biener <rguenther@suse.de>
28665
28666 PR middle-end/60849
28667 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
28668 comparison results and add clarifying comment.
28669
28670 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28671
28672 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
28673 (blank_mode): Initialize it.
28674 (emit_mode_size_inline, emit_mode_nunits_inline,
28675 emit_mode_inner_inline): New functions.
28676 (emit_insn_modes_h): Call them and surround their output with
28677 #if GCC_VERSION >= 4001 ... #endif.
28678 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
28679 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
28680 mode_* arrays if the argument is __builtin_constant_p.
28681 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
28682 is enum machine_mode.
28683
28684 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28685
28686 * passes.c (opt_pass::execute): Adjust.
28687 (pass_manager::execute_pass_mode_switching): Likewise.
28688 (early_local_passes::execute): Likewise.
28689 (execute_one_pass): Pass cfun to the pass's execute method.
28690 * tree-pass.h (opt_pass::execute): Add function * argument.
28691 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28692 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28693 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28694 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28695 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28696 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
28697 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
28698 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28699 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28700 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
28701 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
28702 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
28703 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
28704 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
28705 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28706 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28707 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28708 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
28709 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
28710 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28711 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28712 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28713 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28714 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28715 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28716 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28717 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28718 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28719 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28720 Adjust.
28721
28722 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28723
28724 * passes.c (opt_pass::gate): Take function * argument.
28725 (gate_all_early_local_passes): Merge into
28726 (early_local_passes::gate): this.
28727 (gate_all_early_optimizations): Merge into
28728 (all_early_optimizations::gate): this.
28729 (gate_all_optimizations): Mege into
28730 (all_optimizations::gate): this.
28731 (gate_all_optimizations_g): Merge into
28732 (all_optimizations_g::gate): this.
28733 (gate_rest_of_compilation): Mege into
28734 (rest_of_compilation::gate): this.
28735 (gate_postreload): Merge into
28736 (postreload::gate): this.
28737 (dump_one_pass): Pass cfun to the pass's gate method.
28738 (execute_ipa_summary_passes): Likewise.
28739 (execute_one_pass): Likewise.
28740 (ipa_write_summaries_2): Likewise.
28741 (ipa_write_optimization_summaries_1): Likewise.
28742 (ipa_read_summaries_1): Likewise.
28743 (ipa_read_optimization_summaries_1): Likewise.
28744 (execute_ipa_stmt_fixups): Likewise.
28745 * tree-pass.h (opt_pass::gate): Add function * argument.
28746 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
28747 combine-stack-adj.c, combine.c, compare-elim.c,
28748 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28749 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
28750 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
28751 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
28752 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
28753 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
28754 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28755 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
28756 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
28757 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
28758 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
28759 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
28760 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
28761 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28762 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28763 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28764 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28765 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28766 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28767 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28768 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28769 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28770 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
28771 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
28772 var-tracking.c, vtable-verify.c, web.c: Adjust.
28773
28774 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28775
28776 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
28777 * configure: Regenerate.
28778
28779 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28780
28781 * passes.c (dump_one_pass): don't check pass->has_gate.
28782 (execute_ipa_summary_passes): Likewise.
28783 (execute_one_pass): Likewise.
28784 (ipa_write_summaries_2): Likewise.
28785 (ipa_write_optimization_summaries_1): Likewise.
28786 (ipa_read_optimization_summaries_1): Likewise.
28787 (execute_ipa_stmt_fixups): Likewise.
28788 * tree-pass.h (pass_data::has_gate): Remove.
28789 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
28790 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
28791 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
28792 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
28793 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
28794 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
28795 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
28796 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
28797 gimple-low.c, gimple-ssa-isolate-paths.c,
28798 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
28799 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
28800 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
28801 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
28802 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
28803 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
28804 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
28805 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
28806 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
28807 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
28808 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
28809 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
28810 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
28811 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
28812 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
28813 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
28814 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
28815 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
28816 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
28817 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
28818 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
28819 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
28820 Adjust.
28821
28822 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28823
28824 * pass_manager.h (pass_manager::register_dump_files_1): Remove
28825 declaration.
28826 * passes.c (pass_manager::register_dump_files_1): Merge into
28827 (pass_manager::register_dump_files): this, and remove its handling of
28828 properties since the pass always has the properties anyway.
28829 (pass_manager::pass_manager): Adjust.
28830
28831 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
28832
28833 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
28834 * passes.c (pass_manager::register_dump_files_1): Remove dead code
28835 dealing with properties.
28836 (pass_manager::register_dump_files): Adjust.
28837
28838 2014-03-20 Mark Wielaard <mjw@redhat.com>
28839
28840 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
28841 then represent the bound as normal constant value.
28842
28843 2014-04-17 Jakub Jelinek <jakub@redhat.com>
28844
28845 PR target/60847
28846 Forward port from 4.8 branch
28847 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
28848
28849 * config/i386/bmiintrin.h (_blsi_u32): New.
28850 (_blsi_u64): Ditto.
28851 (_blsr_u32): Ditto.
28852 (_blsr_u64): Ditto.
28853 (_blsmsk_u32): Ditto.
28854 (_blsmsk_u64): Ditto.
28855 (_tzcnt_u32): Ditto.
28856 (_tzcnt_u64): Ditto.
28857
28858 2014-04-17 Kito Cheng <kito@0xlab.org>
28859
28860 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
28861
28862 2014-04-17 Richard Biener <rguenther@suse.de>
28863
28864 PR middle-end/60849
28865 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
28866 boolean results for comparisons.
28867
28868 2014-04-17 Richard Biener <rguenther@suse.de>
28869
28870 PR tree-optimization/60836
28871 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
28872 initial PHI args to be gimple values.
28873
28874 2014-04-17 Richard Biener <rguenther@suse.de>
28875
28876 PR tree-optimization/60841
28877 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
28878 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
28879 of stmts to SLP build.
28880 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
28881 (vect_analyze_slp): Likewise.
28882 (vect_analyze_slp_instance): Likewise.
28883 (vect_build_slp_tree): Limit overall SLP tree growth.
28884 * tree-vectorizer.h (vect_analyze_data_refs,
28885 vect_analyze_slp): Adjust prototypes.
28886
28887 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28888
28889 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
28890 Silvermont.
28891
28892 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28893
28894 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
28895 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
28896 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
28897 for TARGET_SLOW_PSHUFB
28898
28899 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
28900
28901 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
28902 * config/i386/i386.c (intel_cost): Ditto.
28903
28904 2014-04-17 Joey Ye <joey.ye@arm.com>
28905
28906 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
28907
28908 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28909
28910 * opts.c (common_handle_option): Disable -fipa-reference coorectly
28911 with -fuse-profile.
28912
28913 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28914
28915 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
28916 (type_all_derivations_known_p): New predicate.
28917 (type_all_ctors_visible_p): New predicate.
28918 (type_possibly_instantiated_p): New predicate.
28919 (get_odr_type): Compute all_derivations_known.
28920 (dump_odr_type): Dump the flag.
28921 (maybe_record_type): Cleanup.
28922 (record_target_from_binfo): Add bases_to_consider array;
28923 record bases for types w/o instances and skip CXX destructor.
28924 (possible_polymorphic_call_targets_1): Add bases_to_consider
28925 and consider_construction parameters; check if type may have instance.
28926 (get_polymorphic_call_info): Set maybe_in_construction to true
28927 when we know nothing.
28928 (record_targets_from_bases): Skip CXX destructors; they are
28929 never called for types in construction.
28930 (possible_polymorphic_call_targets): Do not record target when
28931 type may not have instance.
28932
28933 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
28934
28935 PR ipa/60854
28936 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
28937 external aliases alive, too.
28938
28939 2014-04-16 Andrew Pinski <apinski@cavium.com>
28940
28941 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
28942 definition.
28943
28944 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
28945
28946 * final.c (compute_alignments): Do not apply loop alignment to a block
28947 falling through to the exit.
28948
28949 2014-04-16 Catherine Moore <clm@codesourcery.com>
28950
28951 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
28952 Adjust constraints for microMIPS store patterns.
28953
28954 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
28955
28956 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
28957
28958 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
28959
28960 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
28961 (append_use): Run at -O0.
28962 (append_vdef): Likewise.
28963 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
28964 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
28965
28966 2014-04-16 Jakub Jelinek <jakub@redhat.com>
28967
28968 PR tree-optimization/60844
28969 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
28970 (propagate_op_to_single_use, remove_visited_stmt_chain,
28971 linearize_expr, repropagate_negates, reassociate_bb): Use it
28972 instead of gsi_remove.
28973
28974 2014-04-16 Martin Jambor <mjambor@suse.cz>
28975
28976 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
28977 ipa_transforms_to_apply.
28978 (cgraph_function_versioning): Assert that old_node has empty
28979 ipa_transforms_to_apply.
28980 * trans-mem.c (ipa_tm_create_version): Likewise.
28981 * tree-inline.c (tree_function_versioning): Do not duplicate
28982 ipa_transforms_to_apply.
28983
28984 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28985
28986 PR target/60817
28987 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
28988 x86_64-*-* cases.
28989 Pass necessary as flags on 64-bit Solaris/x86.
28990 Use lowercase relocs for x86_64-*-*.
28991 * configure: Regenerate.
28992
28993 2014-04-15 Jan Hubicka <jh@suse.cz>
28994
28995 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
28996 (maybe_record_node, likely_target_p): Use it.
28997
28998 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28999
29000 PR target/60839
29001 Revert following patch
29002
29003 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29004
29005 PR target/60735
29006 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29007 software floating point or no floating point registers, do not
29008 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29009 in GPRs that occurs after we tested for GPRs that would never be
29010 true.
29011
29012 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29013 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29014 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29015 specifically allow DDmode, since that does not use the SPE SIMD
29016 instructions.
29017
29018 2014-03-21 Mark Wielaard <mjw@redhat.com>
29019
29020 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29021 as unsigned or int depending on type and value used.
29022
29023 2014-04-15 Richard Biener <rguenther@suse.de>
29024
29025 PR rtl-optimization/56965
29026 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29027 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29028 ... here.
29029 * alias.c (true_dependence_1): Do not call
29030 nonoverlapping_component_refs_p.
29031 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29032 nonoverlapping_component_refs_p.
29033 (indirect_refs_may_alias_p): Likewise.
29034
29035 2014-04-15 Teresa Johnson <tejohnson@google.com>
29036
29037 * cfg.c (dump_bb_info): Fix flags check.
29038 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29039
29040 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29041
29042 PR rtl-optimization/60663
29043 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29044 avoid 0 cost.
29045
29046 2014-04-15 Richard Biener <rguenther@suse.de>
29047
29048 * lto-streamer.h (LTO_major_version): Bump to 4.
29049
29050 2014-04-15 Richard Biener <rguenther@suse.de>
29051
29052 * common.opt (lto_partition_model): New enum.
29053 (flto-partition=): Merge separate options with a single with argument,
29054 add -flto-partition=one support.
29055 * flag-types.h (enum lto_partition_model): Declare.
29056 * opts.c (finish_options): Remove duplicate -flto-partition=
29057 option check.
29058 * lto-wrapper.c (run_gcc): Adjust.
29059
29060 2014-04-15 Richard Biener <rguenther@suse.de>
29061
29062 * alias.c (ncr_compar): New function.
29063 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29064
29065 2014-04-15 Richard Biener <rguenther@suse.de>
29066
29067 * alias.c (record_component_aliases): Do not walk BINFOs.
29068
29069 2014-04-15 Richard Biener <rguenther@suse.de>
29070
29071 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29072 Add struct function argument and adjust.
29073 (find_func_aliases_for_call): Likewise.
29074 (find_func_aliases): Likewise.
29075 (find_func_clobbers): Likewise.
29076 (intra_create_variable_infos): Likewise.
29077 (compute_points_to_sets): Likewise.
29078 (ipa_pta_execute): Adjust. Do not push/pop cfun.
29079
29080 2014-04-15 Richard Biener <rguenther@suse.de>
29081
29082 * tree.c (iterative_hash_expr): Use enum tree_code_class
29083 to store TREE_CODE_CLASS.
29084 (tree_block): Likewise.
29085 (tree_set_block): Likewise.
29086 * tree.h (fold_build_pointer_plus_loc): Use
29087 convert_to_ptrofftype_loc.
29088
29089 2014-04-15 Jakub Jelinek <jakub@redhat.com>
29090
29091 PR plugins/59335
29092 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29093 added in 4.9.
29094
29095 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
29096
29097 * cfgloop.h (struct loop): Move force_vectorize down.
29098 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
29099 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
29100 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
29101 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
29102 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
29103 * tree-core.h (enum annot_expr_kind): Add new kind values.
29104 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
29105 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
29106 kinds.
29107 * tree.def (ANNOTATE_EXPR): Tweak comment.
29108
29109 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29110
29111 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
29112 cxa_pure_virtual).
29113
29114 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
29115
29116 * tree.h (TYPE_IDENTIFIER): Declare.
29117 * tree.c (subrange_type_for_debug_p): Use it.
29118 * godump.c (go_format_type): Likewise.
29119 * dwarf2out.c (is_cxx_auto, modified_type_die,
29120 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
29121 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
29122
29123 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29124
29125 PR lto/60820
29126 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
29127
29128 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
29129
29130 * config/i386/i386.c (examine_argument): Return bool. Return true if
29131 parameter should be passed in memory.
29132 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
29133 (construct_container): Update calls to examine_argument.
29134 (function_arg_advance_64): Ditto.
29135 (return_in_memory_32): Merge with ix86_return_in_memory.
29136 (return_in_memory_64): Ditto.
29137 (return_in_memory_ms_64): Ditto.
29138
29139 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
29140
29141 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
29142 * coverage.c (coverage_compute_profile_id): Handle externally visible
29143 symbols.
29144
29145 2014-04-14 Martin Jambor <mjambor@suse.cz>
29146
29147 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
29148 DECL_DISREGARD_INLINE_LIMITS functions.
29149
29150 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29151
29152 PR target/60827
29153 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
29154
29155 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
29156
29157 PR target/60827
29158 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
29159 optimize_insn_for_speed_p instead of
29160 optimize_function_for_speed_p.
29161
29162 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
29163
29164 * doc/invoke.texi (free): Document AArch64.
29165
29166 2014-04-14 Richard Biener <rguenther@suse.de>
29167
29168 PR tree-optimization/60042
29169 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
29170 (insert_into_preds_of_block): Do not prevent PHI insertion
29171 for REFERENCE exprs here ...
29172 (eliminate_dom_walker::before_dom_children): ... but prevent
29173 their use here under similar conditions when applied to the
29174 IL after PRE optimizations.
29175
29176 2014-04-14 Richard Biener <rguenther@suse.de>
29177
29178 * passes.def: Move early points-to after early SRA.
29179
29180 2014-04-14 Richard Biener <rguenther@suse.de>
29181
29182 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
29183 check for which sign-changes we allow when forwarding
29184 a converted value into a switch.
29185
29186 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29187
29188 * stor-layout.c (place_field): Finalize non-constant offset for the
29189 field, if any.
29190
29191 2014-04-14 Richard Biener <rguenther@suse.de>
29192
29193 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
29194 as argument.
29195 (expand_switch_using_bit_tests_p): Likewise.
29196 (process_switch): Compute and pass on speed_p based on the
29197 switch stmt.
29198 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
29199 optimize_bb_for_speed_p.
29200
29201 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
29202
29203 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
29204 * function.h (struct function): Rename has_force_vect_loops into
29205 has_force_vectorize_loops.
29206 * lto-streamer-in.c (input_cfg): Adjust for renaming.
29207 (input_struct_function_base): Likewise.
29208 * lto-streamer-out.c (output_cfg): Likewise.
29209 (output_struct_function_base): Likewise.
29210 * omp-low.c (expand_omp_simd): Likewise.
29211 * tree-cfg.c (move_sese_region_to_fn): Likewise.
29212 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
29213 (version_loop_for_if_conversion): Likewise.
29214 (tree_if_conversion): Likewise.
29215 (main_tree_if_conversion): Likewise.
29216 (gate_tree_if_conversion): Likewise.
29217 * tree-inline.c (copy_loops): Likewise.
29218 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
29219 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
29220 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
29221 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
29222 * tree-vectorizer.c (vectorize_loops): Likewise.
29223 * tree-vectorizer.h (unlimited_cost_model): Likewise.
29224
29225 2014-04-14 Richard Biener <rguenther@suse.de>
29226
29227 PR lto/60720
29228 * lto-streamer-out.c (wrap_refs): New function.
29229 (lto_output): Wrap symbol references in global initializes in
29230 type-preserving MEM_REFs.
29231
29232 2014-04-14 Christian Bruel <christian.bruel@st.com>
29233
29234 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
29235
29236 2014-04-14 Christian Bruel <christian.bruel@st.com>
29237
29238 * config/sh/sh.md (setmemqi): New expand pattern.
29239 * config/sh/sh.h (CLEAR_RATIO): Define.
29240 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
29241 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
29242
29243 2014-04-14 Richard Biener <rguenther@suse.de>
29244
29245 PR middle-end/55022
29246 * fold-const.c (negate_expr_p): Don't negate directional rounding
29247 division.
29248 (fold_negate_expr): Likewise.
29249
29250 2014-04-14 Richard Biener <rguenther@suse.de>
29251
29252 PR tree-optimization/59817
29253 PR tree-optimization/60453
29254 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
29255 recursion to catch all CHRECs in the scalar evolution and restrict
29256 the predicate for the remains appropriately.
29257
29258 2014-04-12 Catherine Moore <clm@codesourcery.com>
29259
29260 * config/mips/constraints.md: Add new register constraint "kb".
29261 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
29262 (*movhi_internal): Likewise.
29263 (*movqi_internal): Likewise.
29264 * config/mips/mips.h (M16_STORE_REGS): New register class.
29265 (REG_CLASS_NAMES): Add M16_STORE_REGS.
29266 (REG_CLASS_CONTENTS): Likewise.
29267 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
29268
29269 2014-04-11 Tobias Burnus <burnus@net-b.de>
29270
29271 PR c/60194
29272 * doc/invoke.texi (-Wformat-signedness): Document it.
29273 (Wformat=2): Mention that this enables -Wformat-signedness.
29274
29275 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29276
29277 * common/config/epiphany/epiphany-common.c
29278 (epiphany_option_optimization_table): Enable section anchors by
29279 default at -O1 or higher.
29280 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
29281 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
29282 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
29283 carries no extra cost.
29284 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
29285 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
29286 * config/epiphany/predicates.md (memclob_operand): New predicate.
29287 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
29288 Use memclob_operand predicate and X constraint for operand 3.
29289
29290 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29291
29292 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
29293 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
29294 its operands.
29295
29296 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
29297
29298 PR rtl-optimization/60651
29299 * mode-switching.c (optimize_mode_switching): Make sure to emit
29300 sets of a lower numbered entity before sets of a higher numbered
29301 entity to a mode of the same or lower priority.
29302 When creating a seginfo for a basic block that starts with a code
29303 label, move the insertion point past the code label.
29304 (new_seginfo): Document and enforce requirement that
29305 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
29306 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
29307 * doc/tm.texi: Regenerate.
29308
29309 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
29310
29311 PR target/60811
29312 * config/arc/arc.c (arc_save_restore): Fix assert typo.
29313
29314 2013-04-11 Jakub Jelinek <jakub@redhat.com>
29315
29316 * BASE-VER: Set to 4.10.0.
29317
29318 2014-04-11 Tobias Burnus <burnus@net-b.de>
29319
29320 PR other/59055
29321 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
29322 * doc/gcc.texi (Service): Update description in the @menu
29323 * doc/invoke.texi (Option Summary): Remove misplaced and
29324 duplicated @menu.
29325
29326 2014-04-11 Steve Ellcey <sellcey@mips.com>
29327 Jakub Jelinek <jakub@redhat.com>
29328
29329 PR middle-end/60556
29330 * expr.c (convert_move): Use emit_store_flag_force instead of
29331 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
29332 argument to it.
29333
29334 2014-04-11 Richard Biener <rguenther@suse.de>
29335
29336 PR middle-end/60797
29337 * varasm.c (assemble_alias): Avoid endless error reporting
29338 recursion by setting TREE_ASM_WRITTEN.
29339
29340 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29341
29342 * config/s390/s390.md: Add a splitter for NOT rtx.
29343
29344 2014-04-11 Jakub Jelinek <jakub@redhat.com>
29345
29346 PR rtl-optimization/60663
29347 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
29348
29349 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
29350 Jakub Jelinek <jakub@redhat.com>
29351
29352 PR lto/60567
29353 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
29354 flag from decl_node to node.
29355
29356 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29357
29358 PR debug/60655
29359 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
29360 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
29361 ameliorating the cases where it can be.
29362
29363 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
29364
29365 Revert
29366 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29367
29368 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29369 (loadsync_<mode>): Change mode.
29370 (load_quadpti, store_quadpti): New.
29371 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29372 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29373 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
29374
29375 2014-04-09 Cong Hou <congh@google.com>
29376
29377 PR testsuite/60773
29378 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
29379 documentation.
29380
29381 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29382
29383 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
29384 instead of vnor to exploit possible fusion opportunity in the
29385 future.
29386 (altivec_expand_vec_perm_const_le): Likewise.
29387
29388 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
29389
29390 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
29391 (loadsync_<mode>): Change mode.
29392 (load_quadpti, store_quadpti): New.
29393 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
29394 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
29395
29396 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
29397
29398 PR target/60763
29399 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
29400 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
29401 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
29402
29403 2014-04-08 Richard Biener <rguenther@suse.de>
29404
29405 PR middle-end/60706
29406 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
29407 a 64bit widest int print double-int similar to on HWI64 hosts.
29408
29409 2014-04-08 Richard Biener <rguenther@suse.de>
29410
29411 PR tree-optimization/60785
29412 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
29413 default defs properly.
29414
29415 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
29416
29417 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
29418 (Weffc++): Likewise.
29419
29420 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
29421
29422 * ipa-devirt.c (maybe_record_node): When node is not recorded,
29423 set completep to false rather than true.
29424
29425 2014-04-07 Douglas B Rupp <rupp@adacore.com>
29426
29427 PR target/60504
29428 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
29429 ARM_TARGET2_DWARF_FORMAT.
29430
29431 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
29432
29433 PR target/60609
29434 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
29435 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
29436 ADDR_DIFF_VEC.
29437
29438 2014-04-07 Richard Biener <rguenther@suse.de>
29439
29440 PR tree-optimization/60766
29441 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
29442 (may_eliminate_iv): Convert cand_value_at result to desired type.
29443
29444 2014-04-07 Jason Merrill <jason@redhat.com>
29445
29446 PR c++/60731
29447 * common.opt (-fno-gnu-unique): Add.
29448 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
29449
29450 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29451
29452 * haifa-sched.c: Fix outdated function reference and minor
29453 grammar errors in introductory comment.
29454
29455 2014-04-07 Richard Biener <rguenther@suse.de>
29456
29457 PR middle-end/60750
29458 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
29459 for noreturn calls.
29460 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
29461
29462 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
29463
29464 PR debug/55794
29465 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
29466 size accounting for thunks.
29467 (pa_asm_output_mi_thunk): Use final_start_function() and
29468 final_end_function() to output function start and end directives.
29469
29470 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29471
29472 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
29473 device specific ISA/ feature information. Remove short_sp and
29474 errata_skip ds. Add avr_device_specific_features enum to have device
29475 specific info.
29476 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
29477 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
29478 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
29479 updated device specific info.
29480 * config/avr/avr-mcus.def: Merge device specific details to
29481 dev_attribute field.
29482 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
29483 errata_skip.
29484 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
29485 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
29486 assembler if RMW isa supported by current device.
29487 * config/avr/genmultilib.awk: Update as device info structure changed.
29488 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
29489
29490 2014-04-04 Cong Hou <congh@google.com>
29491
29492 PR tree-optimization/60656
29493 * tree-vect-stmts.c (supportable_widening_operation):
29494 Fix a bug that elements in a vector with vect_used_by_reduction
29495 property are incorrectly reordered when the operation on it is not
29496 consistant with the one in reduction operation.
29497
29498 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
29499
29500 PR rtl-optimization/60155
29501 * gcse.c (record_set_data): New function.
29502 (single_set_gcse): New function.
29503 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
29504 (hoist_code): Likewise.
29505 (get_pressure_class_and_nregs): Likewise.
29506
29507 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
29508
29509 * explow.c (probe_stack_range): Emit a final optimization blockage.
29510
29511 2014-04-04 Anthony Green <green@moxielogic.com>
29512
29513 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
29514 typos.
29515
29516 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
29517
29518 PR ipa/59626
29519 * lto-cgraph.c (input_overwrite_node): Check that partitioning
29520 flags are set only during streaming.
29521 * ipa.c (process_references, walk_polymorphic_call_targets,
29522 symtab_remove_unreachable_nodes): Drop bodies of always inline
29523 after early inlining.
29524 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
29525
29526 2014-04-04 Jakub Jelinek <jakub@redhat.com>
29527 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29528
29529 PR debug/60655
29530 * dwarf2out.c (const_ok_for_output_1): Reject expressions
29531 containing a NOT.
29532
29533 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29534
29535 PR bootstrap/60743
29536 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
29537 duration.
29538 (cortex_a53_fdivd): Likewise.
29539
29540 2014-04-04 Martin Jambor <mjambor@suse.cz>
29541
29542 PR ipa/60640
29543 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
29544 Adjust all callers.
29545 * cgraph.c (clone_of_p): Also return true if thunks match.
29546 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
29547 cgraph_function_or_thunk_node and an obsolete comment.
29548 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
29549 file.
29550 (build_function_decl_skip_args): Likewise.
29551 (set_new_clone_decl_and_node_flags): New function.
29552 (duplicate_thunk_for_node): Likewise.
29553 (redirect_edge_duplicating_thunks): Likewise.
29554 (cgraph_clone_node): New parameter args_to_skip, pass it to
29555 redirect_edge_duplicating_thunks which is called instead of
29556 cgraph_redirect_edge_callee.
29557 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
29558 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
29559
29560 2014-04-04 Jeff Law <law@redhat.com>
29561
29562 PR target/60657
29563 * config/arm/predicates.md (const_int_I_operand): New predicate.
29564 (const_int_M_operand): Similarly.
29565 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
29566 const_int_operand.
29567 (insv_t2, extv_reg, extzv_t2): Likewise.
29568 (load_multiple_with_writeback): Similarly for const_int_I_operand.
29569 (pop_multiple_with_writeback_and_return): Likewise.
29570 (vfp_pop_multiple_with_writeback): Likewise
29571
29572 2014-04-04 Richard Biener <rguenther@suse.de>
29573
29574 PR ipa/60746
29575 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
29576 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
29577 non-GIMPLE_LABELs.
29578 * gimplify.h (gimple_add_tmp_var_fn): Declare.
29579 * gimplify.c (gimple_add_tmp_var_fn): New function.
29580 * gimple-expr.h (create_tmp_reg_fn): Declare.
29581 * gimple-expr.c (create_tmp_reg_fn): New function.
29582 * gimple-low.c (record_vars_into): Don't change cfun.
29583 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
29584 code generation without cfun.
29585
29586 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
29587
29588 PR bootstrap/60719
29589 * Makefile.in (install-driver): Fix shell scripting.
29590
29591 2014-04-03 Cong Hou <congh@google.com>
29592
29593 PR tree-optimization/60505
29594 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
29595 threshold of number of iterations below which no vectorization
29596 will be done.
29597 * tree-vect-loop.c (new_loop_vec_info):
29598 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
29599 * tree-vect-loop.c (vect_analyze_loop_operations):
29600 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
29601 * tree-vect-loop.c (vect_transform_loop):
29602 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
29603 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
29604 of iterations of the loop and see if we should build the epilogue.
29605
29606 2014-04-03 Richard Biener <rguenther@suse.de>
29607
29608 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
29609 (streamer_tree_cache_create): Adjust.
29610 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
29611 to allow optional nodes array.
29612 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
29613 (streamer_tree_cache_append): Likewise.
29614 (streamer_tree_cache_create): Create nodes array optionally
29615 as specified by parameter.
29616 * lto-streamer-out.c (create_output_block): Avoid maintaining
29617 the node array in the writer cache.
29618 (DFS_write_tree): Remove assertion.
29619 (produce_asm_for_decls): Free the out decl state hash table early.
29620 * lto-streamer-in.c (lto_data_in_create): Adjust for
29621 streamer_tree_cache_create prototype change.
29622
29623 2014-04-03 Richard Biener <rguenther@suse.de>
29624
29625 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
29626 set TREE_CHAIN to NULL_TREE.
29627
29628 2014-04-03 Richard Biener <rguenther@suse.de>
29629
29630 PR tree-optimization/60740
29631 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
29632 over all GIMPLE_COND operands.
29633
29634 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
29635
29636 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
29637 (Weffc++): Remove Scott's numbering, merge lists and reference
29638 Wnon-virtual-dtor.
29639
29640 2014-04-03 Nick Clifton <nickc@redhat.com>
29641
29642 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
29643 properly.
29644
29645 2014-04-03 Martin Jambor <mjambor@suse.cz>
29646
29647 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
29648 mention gcc_unreachable before failing.
29649 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
29650 removed symbols.
29651
29652 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
29653
29654 PR ipa/60659
29655 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
29656 inconsistent code and instead mark the context inconsistent.
29657 (possible_polymorphic_call_targets): For inconsistent contexts
29658 return empty complete list.
29659
29660 2014-04-02 Anthony Green <green@moxielogic.com>
29661
29662 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
29663 (extendqisi2, extendhisi2): Define.
29664 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
29665 (WCHAR_TYPE): Change to unsigned int.
29666
29667 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29668
29669 PR tree-optimization/60733
29670 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
29671 insertion point for PHI candidates to be the end of the feeding
29672 block for the PHI argument.
29673
29674 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
29675
29676 PR rtl-optimization/60650
29677 * lra-constraints.c (process_alt_operands): Decrease reject for
29678 earlyclobber matching.
29679
29680 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29681
29682 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
29683
29684 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29685
29686 * config/spu/spu.c (pad_bb): Do not crash when the last
29687 insn is CODE_FOR_blockage.
29688
29689 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29690
29691 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
29692 lies outside the target mode.
29693
29694 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29695
29696 PR target/60735
29697 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29698 software floating point or no floating point registers, do not
29699 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29700 in GPRs that occurs after we tested for GPRs that would never be
29701 true.
29702
29703 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29704 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29705 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29706 specifically allow DDmode, since that does not use the SPE SIMD
29707 instructions.
29708
29709 2014-04-02 Richard Biener <rguenther@suse.de>
29710
29711 PR middle-end/60729
29712 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
29713 MODE_INTs. Properly use negv_optab.
29714 (expand_abs): Likewise.
29715
29716 2014-04-02 Richard Biener <rguenther@suse.de>
29717
29718 PR bootstrap/60719
29719 * Makefile.in (install-driver): Guard extra installs with special
29720 names properly.
29721
29722 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
29723
29724 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29725 Document vec_vgbbd.
29726
29727 2014-04-01 Richard Henderson <rth@redhat.com>
29728
29729 PR target/60704
29730 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
29731 alternative enabled before register allocation.
29732
29733 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
29734
29735 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
29736 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
29737 typo.
29738 (nios2_large_got_address): Remove unneeded 'sym' parameter.
29739 (nios2_got_address): Update nios2_large_got_address call site.
29740 (nios2_delegitimize_address): New function.
29741 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
29742 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
29743 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
29744
29745 2014-04-01 Martin Husemann <martin@duskware.de>
29746
29747 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
29748 for -mabi=32.
29749
29750 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
29751
29752 PR rtl-optimization/60604
29753 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
29754 check from register_operand.
29755 (register_operand): Redefine in terms of general_operand.
29756 (nonmemory_operand): Use register_operand for the non-constant cases.
29757
29758 2014-04-01 Richard Biener <rguenther@suse.de>
29759
29760 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
29761
29762 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
29763
29764 * doc/invoke.texi (mapp-regs): Clarify.
29765
29766 2014-03-31 Ulrich Drepper <drepper@gmail.com>
29767
29768 * config/i386/avx512fintrin.h (__v32hi): Define type.
29769 (__v64qi): Likewise.
29770 (_mm512_set1_epi8): Define.
29771 (_mm512_set1_epi16): Define.
29772 (_mm512_set4_epi32): Define.
29773 (_mm512_set4_epi64): Define.
29774 (_mm512_set4_pd): Define.
29775 (_mm512_set4_ps): Define.
29776 (_mm512_setr4_epi64): Define.
29777 (_mm512_setr4_epi32): Define.
29778 (_mm512_setr4_pd): Define.
29779 (_mm512_setr4_ps): Define.
29780 (_mm512_setzero_epi32): Define.
29781
29782 2014-03-31 Martin Jambor <mjambor@suse.cz>
29783
29784 PR middle-end/60647
29785 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
29786 callsite_arguments_match_p. Updated all callers. Also check types of
29787 corresponding formal parameters and actual arguments.
29788 (not_all_callers_have_enough_arguments_p) Renamed to
29789 some_callers_have_mismatched_arguments_p.
29790
29791 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
29792
29793 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
29794
29795 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
29796
29797 PR target/60034
29798 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
29799 section anchor.
29800
29801 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
29802
29803 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
29804 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
29805 Split out
29806 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
29807 Use FMAMODE_NOVF512 mode iterator.
29808 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
29809 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
29810 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
29811 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
29812 Split out
29813 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
29814 Use VF_128_256 mode iterator.
29815 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
29816 Ditto.
29817
29818 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29819
29820 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
29821 static chain if needed.
29822
29823 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
29824
29825 PR target/60697
29826 * lra-constraints.c (index_part_to_reg): New.
29827 (process_address): Use it.
29828
29829 2014-03-27 Jeff Law <law@redhat.com>
29830 Jakub Jelinek <jakub@redhat.com>
29831
29832 PR target/60648
29833 * expr.c (do_tablejump): Use simplify_gen_binary rather than
29834 gen_rtx_{PLUS,MULT} to build up the address expression.
29835
29836 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
29837 creating non-canonical RTL.
29838
29839 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29840
29841 PR ipa/60243
29842 * ipa-inline.c (want_inline_small_function_p): Short circuit large
29843 functions; reorganize to make cheap checks first.
29844 (inline_small_functions): Do not estimate growth when dumping;
29845 it is expensive.
29846 * ipa-inline.h (inline_summary): Add min_size.
29847 (growth_likely_positive): New function.
29848 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
29849 (set_cond_stmt_execution_predicate): Cleanup.
29850 (estimate_edge_size_and_time): Compute min_size.
29851 (estimate_calls_size_and_time): Likewise.
29852 (estimate_node_size_and_time): Likewise.
29853 (inline_update_overall_summary): Update min_size.
29854 (do_estimate_edge_time): Likewise.
29855 (do_estimate_edge_size): Update.
29856 (do_estimate_edge_hints): Update.
29857 (growth_likely_positive): New function.
29858
29859 2014-03-28 Jakub Jelinek <jakub@redhat.com>
29860
29861 PR target/60693
29862 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
29863 also if addr has VOIDmode.
29864
29865 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29866
29867 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
29868 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
29869 Declare extern.
29870 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
29871 instructions as well as AdvancedSIMD loads.
29872
29873 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29874
29875 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
29876 Use crypto_aese type.
29877 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
29878 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
29879 crypto_aese, crypto_aesmc. Move to types.md.
29880 * config/arm/types.md (crypto_aes): Split into crypto_aese,
29881 crypto_aesmc.
29882 * config/arm/iterators.md (crypto_type): Likewise.
29883
29884 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
29885
29886 * cgraph.c: Include expr.h and tree-dfa.h.
29887 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
29888 remove LHS.
29889
29890 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
29891
29892 PR target/60675
29893 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
29894 regs from checking multi-reg pseudos.
29895
29896 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29897
29898 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
29899
29900 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29901
29902 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
29903 if it would clobber the stack pointer, even temporarily.
29904
29905 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
29906
29907 * mode-switching.c: Make small adjustments to the top comment.
29908
29909 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
29910
29911 * config/rs6000/constraints.md (wD constraint): New constraint to
29912 match the constant integer to get the top DImode/DFmode out of a
29913 vector in a VSX register.
29914
29915 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
29916 match the constant integer to get the top DImode/DFmode out of a
29917 vector in a VSX register.
29918
29919 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
29920 for ISA 2.07.
29921
29922 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
29923 vbpermq builtins.
29924
29925 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
29926 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
29927
29928 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
29929 Optimize vec_extract of 64-bit values, where the value being
29930 extracted is in the top word, where we can use scalar
29931 instructions. Add direct move and store support. Combine the big
29932 endian/little endian vector select load support into a single insn.
29933 (vsx_extract_<mode>_internal1): Likewise.
29934 (vsx_extract_<mode>_internal2): Likewise.
29935 (vsx_extract_<mode>_load): Likewise.
29936 (vsx_extract_<mode>_store): Likewise.
29937 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
29938 combined into vsx_extract_<mode>_load.
29939 (vsx_extract_<mode>_one_le): Likewise.
29940
29941 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
29942 define the top 64-bit vector element.
29943
29944 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
29945 constraint.
29946
29947 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29948 Document vec_vbpermq builtin.
29949
29950 PR target/60672
29951 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
29952 enable use of xxsldwi and xxpermdi builtin functions.
29953 (vec_xxpermdi): Likewise.
29954
29955 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
29956 Document use of vec_xxsldwi and vec_xxpermdi builtins.
29957
29958 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
29959
29960 PR rtl-optimization/60650
29961 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
29962 first_p. Use it.
29963 (find_spills_for): New.
29964 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
29965 Spill all pseudos on the second iteration.
29966
29967 2014-03-27 Marek Polacek <polacek@redhat.com>
29968
29969 PR c/50347
29970 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
29971 types.
29972
29973 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29974
29975 * config/s390/s390.c (s390_can_use_return_insn): Check for
29976 call-saved FPRs on 31 bit.
29977
29978 2014-03-27 Jakub Jelinek <jakub@redhat.com>
29979
29980 PR middle-end/60682
29981 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
29982 if they need regimplification, just drop them instead of
29983 calling gimple_regimplify_operands on them.
29984
29985 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
29986
29987 PR target/60580
29988 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
29989 (aarch64_frame_pointer_required): Adjust logic.
29990 (aarch64_can_eliminate): Adjust logic.
29991 (aarch64_override_options_after_change): Adjust logic.
29992
29993 2014-03-27 Dehao Chen <dehao@google.com>
29994
29995 * ipa-inline.c (early_inliner): Update node's inline info.
29996
29997 2014-03-26 Dehao Chen <dehao@google.com>
29998
29999 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30000 compiler inserted conditional jumps for NAN float check.
30001
30002 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30003
30004 * ubsan.h (ubsan_create_data): Change second argument's type
30005 to const location_t *.
30006 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30007 _("<unknown>").
30008 (ubsan_create_data): Change second argument to const location_t *PLOC.
30009 Create Loc field whenever PLOC is non-NULL.
30010 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30011 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30012 callers.
30013
30014 PR other/59545
30015 * real.c (real_to_integer2): Change type of low to UHWI.
30016
30017 2014-03-26 Tobias Burnus <burnus@net-b.de>
30018
30019 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30020 (CILK_SELF_SPECS): New define.
30021 (driver_self_specs): Use it.
30022
30023 2014-03-26 Richard Biener <rguenther@suse.de>
30024
30025 * tree-pretty-print.c (percent_K_format): Implement special
30026 case for LTO and its stripped down BLOCK tree.
30027
30028 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30029
30030 PR sanitizer/60636
30031 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30032
30033 * tree-vrp.c (simplify_internal_call_using_ranges): If only
30034 one range is range_int_cst_p, but not both, at least optimize
30035 addition/subtraction of 0 and multiplication by 0 or 1.
30036 * gimple-fold.c (gimple_fold_call): Fold
30037 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30038 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30039 INTEGER_CSTs, try to fold at least x * 0 and y - y.
30040
30041 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
30042
30043 PR rtl-optimization/60452
30044 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30045 <case REG>: Return 1 for invalid offsets from the frame pointer.
30046
30047 2014-03-26 Marek Polacek <polacek@redhat.com>
30048
30049 PR c/37428
30050 * doc/extend.texi (C Extensions): Mention variable-length arrays in
30051 a structure/union.
30052
30053 2014-03-26 Marek Polacek <polacek@redhat.com>
30054
30055 PR c/39525
30056 * doc/extend.texi (Designated Inits): Describe what happens to omitted
30057 field members.
30058
30059 2014-03-26 Marek Polacek <polacek@redhat.com>
30060
30061 PR other/59545
30062 * ira-color.c (update_conflict_hard_regno_costs): Perform the
30063 multiplication in unsigned type.
30064
30065 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30066
30067 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30068
30069 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30070
30071 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30072
30073 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30074
30075 PR ipa/60315
30076 * cif-code.def (UNREACHABLE) New code.
30077 * ipa-inline.c (inline_small_functions): Skip edges to
30078 __builtlin_unreachable.
30079 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30080 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30081 predicate to __bulitin_unreachable.
30082 (set_cond_stmt_execution_predicate): Fix issue when
30083 invert_tree_comparison returns ERROR_MARK.
30084 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30085 propagate to inline clones.
30086 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30087 to unreachable.
30088 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30089 * cgraphclones.c (cgraph_clone_node): If call destination is already
30090 ureachable, do not redirect it back.
30091 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30092 unreachable.
30093
30094 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30095
30096 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30097 Do not modify inline clones.
30098
30099 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30100
30101 * config/i386/i386.md (general_sext_operand): New mode attr.
30102 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
30103 don't generate (sign_extend (const_int)).
30104 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
30105 operands[2]. Use We constraint instead of <i> and
30106 <general_sext_operand> predicate instead of <general_operand>.
30107 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
30108 * config/i386/constraints.md (We): New constraint.
30109 * config/i386/predicates.md (x86_64_sext_operand,
30110 sext_operand): New predicates.
30111
30112 2014-03-25 Martin Jambor <mjambor@suse.cz>
30113
30114 PR ipa/60600
30115 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
30116 inconsistent devirtualizations to __builtin_unreachable.
30117
30118 2014-03-25 Marek Polacek <polacek@redhat.com>
30119
30120 PR c/35449
30121 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
30122
30123 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
30124
30125 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
30126 order of elements for big-endian.
30127
30128 2014-03-25 Richard Biener <rguenther@suse.de>
30129
30130 PR middle-end/60635
30131 * gimplify-me.c (gimple_regimplify_operands): Update the
30132 re-gimplifed stmt.
30133
30134 2014-03-25 Martin Jambor <mjambor@suse.cz>
30135
30136 PR ipa/59176
30137 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
30138 (lto_output_varpool_node): Likewise.
30139 (input_overwrite_node): Likewise.
30140 (input_varpool_node): Likewise.
30141
30142 2014-03-25 Richard Biener <rguenther@suse.de>
30143
30144 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
30145 (run_gcc): Likewise.
30146
30147 2014-03-25 Jakub Jelinek <jakub@redhat.com>
30148
30149 * combine.c (simplify_compare_const): Add MODE argument.
30150 Handle mode_width 0 as very large mode_width.
30151 (try_combine, simplify_comparison): Adjust callers.
30152
30153 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
30154 type to avoid signed integer overflow.
30155 * explow.c (plus_constant): Likewise.
30156
30157 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
30158
30159 * doc/generic.texi: Correct typos.
30160
30161 2014-03-24 Tobias Burnus <burnus@net-b.de>
30162
30163 * doc/invoke.texi (-flto): Expand section about
30164 using static libraries with LTO.
30165
30166 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30167
30168 PR rtl-optimization/60501
30169 * optabs.def (addptr3_optab): New optab.
30170 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
30171 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
30172 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
30173
30174 * lra.c (emit_add3_insn): Use the addptr pattern if available.
30175
30176 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
30177
30178 2014-03-24 Ulrich Drepper <drepper@gmail.com>
30179
30180 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
30181 _mm512_set1_pd.
30182
30183 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
30184 (_mm256_undefined_ps): Define.
30185 (_mm256_undefined_pd): Define.
30186 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
30187 (_mm_undefined_pd): Define.
30188 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
30189 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
30190 (_mm512_undefined_ps): Define.
30191 (_mm512_undefined_pd): Define.
30192 Use _mm*_undefined_*.
30193 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
30194
30195 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
30196
30197 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
30198 (lshr_simd): DI mode added.
30199 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
30200 (aarch64_ushr_simddi): Likewise.
30201 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
30202 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
30203 (vshrd_n_u64): Likewise.
30204
30205 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30206
30207 * Makefile.in (s-macro_list): Depend on cc1.
30208
30209 2014-03-23 Teresa Johnson <tejohnson@google.com>
30210
30211 * ipa-utils.c (ipa_print_order): Use specified dump file.
30212
30213 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
30214
30215 PR rtl-optimization/60601
30216 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
30217
30218 * gcc.c (eval_spec_function): Initialize save_growing_value.
30219
30220 2014-03-22 Jakub Jelinek <jakub@redhat.com>
30221
30222 PR sanitizer/60613
30223 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
30224 code == MINUS_EXPR, never swap op0 with op1.
30225
30226 * toplev.c (init_local_tick): Avoid signed integer multiplication
30227 overflow.
30228 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
30229 shift by first operand's bitsize.
30230
30231 2014-03-21 Jakub Jelinek <jakub@redhat.com>
30232
30233 PR target/60610
30234 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
30235 redefine to 1 or 0.
30236 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
30237 TARGET_ISA_64BIT_P(x).
30238
30239 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30240
30241 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
30242 pattern for vector nor instead of subtract from splat(-1).
30243 (altivec_expand_vec_perm_const_le): Likewise.
30244
30245 2014-03-21 Richard Henderson <rth@twiddle.net>
30246
30247 PR target/60598
30248 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
30249 related insns after epilogue_completed.
30250
30251 2014-03-21 Martin Jambor <mjambor@suse.cz>
30252
30253 PR ipa/59176
30254 * cgraph.h (symtab_node): New flag body_removed.
30255 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
30256 when removing bodies.
30257 * symtab.c (dump_symtab_base): Dump body_removed flag.
30258 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
30259 had their bodies removed.
30260
30261 2014-03-21 Martin Jambor <mjambor@suse.cz>
30262
30263 PR ipa/60419
30264 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
30265 in the border.
30266
30267 2014-03-21 Richard Biener <rguenther@suse.de>
30268
30269 PR tree-optimization/60577
30270 * tree-core.h (struct tree_base): Document nothrow_flag use
30271 in DECL_NONALIASED.
30272 * tree.h (DECL_NONALIASED): New.
30273 (may_be_aliased): Adjust.
30274 * coverage.c (build_var): Set DECL_NONALIASED.
30275
30276 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30277
30278 * expr.c (expand_expr_real_1): Remove outdated comment.
30279
30280 2014-03-20 Jakub Jelinek <jakub@redhat.com>
30281
30282 PR middle-end/60597
30283 * ira.c (adjust_cleared_regs): Call copy_rtx on
30284 *reg_equiv[REGNO (loc)].src_p before passing it to
30285 simplify_replace_fn_rtx.
30286
30287 PR target/60568
30288 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
30289 into CONST, put pic register as first operand of PLUS. Use
30290 gen_const_mem for both 32-bit and 64-bit PIC got loads.
30291
30292 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30293
30294 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
30295
30296 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30297
30298 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
30299 around for store forwarding issue in the FPU on the UT699.
30300 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
30301 loads and operations if -mfix-ut699 is specified.
30302 (divtf3_hq): Tweak attribute.
30303 (sqrttf2_hq): Likewise.
30304
30305 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
30306
30307 * calls.c (store_one_arg): Remove incorrect const qualification on the
30308 type of the temporary.
30309 * cfgexpand.c (expand_return): Likewise.
30310 * expr.c (expand_constructor): Likewise.
30311 (expand_expr_real_1): Likewise.
30312
30313 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30314
30315 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
30316 of parts.
30317
30318 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
30319
30320 PR target/60039
30321 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
30322
30323 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
30324
30325 * config/arm/aarch-common-protos.h
30326 (alu_cost_table): Fix spelling of "extend".
30327 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
30328
30329 2014-03-19 Richard Biener <rguenther@suse.de>
30330
30331 PR middle-end/60553
30332 * tree-core.h (tree_type_common): Re-order pointer members
30333 to reduce recursion depth during GC walks.
30334
30335 2014-03-19 Marek Polacek <polacek@redhat.com>
30336
30337 PR sanitizer/60569
30338 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
30339 before accessing it.
30340
30341 2014-03-19 Richard Biener <rguenther@suse.de>
30342
30343 PR lto/59543
30344 * lto-streamer-in.c (input_function): In WPA stage do not drop
30345 debug stmts.
30346
30347 2014-03-19 Jakub Jelinek <jakub@redhat.com>
30348
30349 PR tree-optimization/60559
30350 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
30351 with build_zero_cst assignment.
30352
30353 2014-03-18 Kai Tietz <ktietz@redhat.com>
30354
30355 PR rtl-optimization/56356
30356 * sdbout.c (sdbout_parms): Verify that parms'
30357 incoming argument is valid.
30358 (sdbout_reg_parms): Likewise.
30359
30360 2014-03-18 Richard Henderson <rth@redhat.com>
30361
30362 PR target/60562
30363 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
30364 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
30365 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
30366
30367 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
30368
30369 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
30370 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
30371 Italicize plugin event names in description. Explain that
30372 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
30373 Remind that no GCC functions should be called after PLUGIN_FINISH.
30374 Explain what pragmas with expansion are.
30375
30376 2014-03-18 Martin Liska <mliska@suse.cz>
30377
30378 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
30379 gimple call statement is update.
30380 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
30381 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
30382
30383 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30384
30385 PR sanitizer/60557
30386 * ubsan.c (ubsan_instrument_unreachable): Call
30387 initialize_sanitizer_builtins.
30388 (ubsan_pass): Likewise.
30389
30390 PR sanitizer/60535
30391 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
30392 varpool_finalize_decl instead of rest_of_decl_compilation.
30393
30394 2014-03-18 Richard Biener <rguenther@suse.de>
30395
30396 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
30397 by using bitmap_and_compl instead of bitmap_and_compl_into.
30398 (df_rd_transfer_function): Likewise.
30399
30400 2014-03-18 Richard Biener <rguenther@suse.de>
30401
30402 * doc/lto.texi (fresolution): Fix typo.
30403
30404 2014-03-18 Richard Biener <rguenther@suse.de>
30405
30406 * doc/invoke.texi (flto): Update for changes in 4.9.
30407
30408 2014-03-18 Richard Biener <rguenther@suse.de>
30409
30410 * doc/loop.texi: Remove section on the removed lambda framework.
30411 Update loop docs with recent changes in preserving loop structure.
30412
30413 2014-03-18 Richard Biener <rguenther@suse.de>
30414
30415 * doc/lto.texi (-fresolution): Document.
30416
30417 2014-03-18 Richard Biener <rguenther@suse.de>
30418
30419 * doc/contrib.texi: Adjust my name.
30420
30421 2014-03-18 Jakub Jelinek <jakub@redhat.com>
30422
30423 PR ipa/58721
30424 * internal-fn.c: Include diagnostic-core.h.
30425 (expand_BUILTIN_EXPECT): New function.
30426 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
30427 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
30428 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
30429 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
30430 IFN_BUILTIN_EXPECT.
30431 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
30432 Revert 3 argument __builtin_expect code.
30433 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
30434 * gimple-fold.c (gimple_fold_call): Likewise.
30435 * tree.h (fold_builtin_expect): New prototype.
30436 * builtins.c (build_builtin_expect_predicate): Add predictor
30437 argument, if non-NULL, create 3 argument __builtin_expect.
30438 (fold_builtin_expect): No longer static. Add ARG2 argument,
30439 pass it through to build_builtin_expect_predicate.
30440 (fold_builtin_2): Adjust caller.
30441 (fold_builtin_3): Handle BUILT_IN_EXPECT.
30442 * internal-fn.def (BUILTIN_EXPECT): New.
30443
30444 2014-03-18 Tobias Burnus <burnus@net-b.de>
30445
30446 PR ipa/58721
30447 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
30448 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
30449 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
30450
30451 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
30452
30453 PR ipa/58721
30454 * predict.c (combine_predictions_for_bb): Fix up formatting.
30455 (expr_expected_value_1, expr_expected_value): Add predictor argument,
30456 fill what it points to if non-NULL.
30457 (tree_predict_by_opcode): Adjust caller, use the predictor.
30458 * predict.def (PRED_COMPARE_AND_SWAP): Add.
30459
30460 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
30461
30462 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
30463 proper constant for the store mode.
30464
30465 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
30466
30467 * symtab.c (change_decl_assembler_name): Fix transparent alias
30468 chain construction.
30469
30470 2014-03-16 Renlin Li <Renlin.Li@arm.com>
30471
30472 * config/aarch64/aarch64.c: Correct the comments about the
30473 aarch64 stack layout.
30474
30475 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
30476
30477 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
30478 check for GF_OMP_FOR_KIND_FOR.
30479
30480 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
30481
30482 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
30483 ymm and zmm register names.
30484
30485 2014-03-17 Jakub Jelinek <jakub@redhat.com>
30486
30487 PR target/60516
30488 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
30489 note creation for the 2010-08-31 changes.
30490
30491 2014-03-17 Marek Polacek <polacek@redhat.com>
30492
30493 PR middle-end/60534
30494 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
30495 as -fno-tree-loop-vectorize.
30496 (expand_omp_simd): Likewise.
30497
30498 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
30499
30500 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
30501 (eligible_for_call_delay): New prototype.
30502 * config/sparc/sparc.c (tls_call_delay): Rename into...
30503 (eligible_for_call_delay): ...this. Return false if the instruction
30504 cannot be put in the delay slot of a branch.
30505 (eligible_for_restore_insn): Simplify.
30506 (eligible_for_return_delay): Return false if the instruction cannot be
30507 put in the delay slot of a branch and simplify.
30508 (eligible_for_sibcall_delay): Return false if the instruction cannot be
30509 put in the delay slot of a branch.
30510 * config/sparc/sparc.md (fix_ut699): New attribute.
30511 (tls_call_delay): Delete.
30512 (in_call_delay): Reimplement.
30513 (eligible_for_sibcall_delay): Rename into...
30514 (in_sibcall_delay): ...this.
30515 (eligible_for_return_delay): Rename into...
30516 (in_return_delay): ...this.
30517 (in_branch_delay): Reimplement.
30518 (in_uncond_branch_delay): Delete.
30519 (in_annul_branch_delay): Delete.
30520
30521 2014-03-14 Richard Henderson <rth@redhat.com>
30522
30523 PR target/60525
30524 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
30525 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
30526 (*floathi<X87MODEF>2_i387_with_temp): Remove.
30527 (floathi splitters): Remove.
30528 (float<SWI48x>xf2): New pattern.
30529 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
30530 code that tried to handle DImode for 32-bit, but which was excluded
30531 by the pattern's condition. Drop allocation of stack temporary.
30532 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
30533 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
30534 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
30535 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
30536 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
30537 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
30538 (*float<SWI48><MODEF>2_sse_interunit): Remove.
30539 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
30540 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
30541 (*float<SWI48x><X87MODEF>2_i387): Remove.
30542 (all float _with_temp splitters): Remove.
30543 (*float<SWI48x><MODEF>2_i387): New pattern.
30544 (*float<SWI48><MODEF>2_sse): New pattern.
30545 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
30546 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
30547
30548 2014-03-14 Jakub Jelinek <jakub@redhat.com>
30549 Marek Polacek <polacek@redhat.com>
30550
30551 PR middle-end/60484
30552 * common.opt (dump_base_name_prefixed): New Variable.
30553 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
30554 if x_dump_base_name_prefixed is already set, set it at the end.
30555
30556 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
30557
30558 PR rtl-optimization/60508
30559 * lra-constraints.c (get_reload_reg): Add new parameter
30560 in_subreg_p.
30561 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
30562 Pass the new parameter values.
30563
30564 2014-03-14 Richard Biener <rguenther@suse.de>
30565
30566 * common.opt: Revert unintented changes from r205065.
30567 * opts.c: Likewise.
30568
30569 2014-03-14 Richard Biener <rguenther@suse.de>
30570
30571 PR middle-end/60518
30572 * cfghooks.c (split_block): Properly adjust all loops the
30573 block was a latch of.
30574
30575 2014-03-14 Martin Jambor <mjambor@suse.cz>
30576
30577 PR lto/60461
30578 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
30579 and simplify it.
30580
30581 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
30582
30583 PR target/59396
30584 * config/avr/avr.c (avr_set_current_function): Pass function name
30585 through default_strip_name_encoding before sanity checking instead
30586 of skipping the first char of the assembler name.
30587
30588 2014-03-13 Richard Henderson <rth@redhat.com>
30589
30590 PR debug/60438
30591 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
30592 (ix86_force_to_memory, ix86_free_from_memory): Remove.
30593 * config/i386/i386-protos.h: Likewise.
30594 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
30595 in the expander instead of a splitter.
30596 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
30597 any possibility of requiring a memory.
30598 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
30599 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
30600 (fp branch splitters): Update for ix86_split_fp_branch.
30601 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
30602 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
30603 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
30604 (*fop_<MODEF>_2_i387): Remove f/r alternative.
30605 (*fop_<MODEF>_3_i387): Likewise.
30606 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
30607 (splitters for the fop_* register patterns): Remove.
30608 (fscalexf4_i387): Rename from *fscalexf4_i387.
30609 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
30610
30611 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30612
30613 PR tree-optimization/59779
30614 * tree-dfa.c (get_ref_base_and_extent): Use double_int
30615 type for bitsize and maxsize instead of HOST_WIDE_INT.
30616
30617 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
30618
30619 PR rtl-optimization/57320
30620 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
30621 the CFG after thread_prologue_and_epilogue_insns.
30622
30623 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
30624
30625 PR rtl-optimization/57189
30626 * lra-constraints.c (process_alt_operands): Disfavor spilling
30627 vector pseudos.
30628
30629 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
30630
30631 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
30632
30633 2014-03-13 Jakub Jelinek <jakub@redhat.com>
30634
30635 PR tree-optimization/59025
30636 PR middle-end/60418
30637 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
30638 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
30639
30640 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
30641
30642 PR target/60486
30643 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
30644 calls of avr_out_plus_1.
30645
30646 2014-03-13 Bin Cheng <bin.cheng@arm.com>
30647
30648 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
30649 BB's single pred and update the father loop's latch info later.
30650
30651 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30652
30653 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
30654 (VEC_M): Likewise.
30655 (VEC_N): Likewise.
30656 (VEC_R): Likewise.
30657 (VEC_base): Likewise.
30658 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
30659 registers, we need to swap double words in little endian mode.
30660
30661 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
30662 to be a container mode for 128-bit integer operations added in ISA
30663 2.07. Unlike TImode and PTImode, the preferred register set is
30664 the Altivec/VMX registers for the 128-bit operations.
30665
30666 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
30667 declarations.
30668 (rs6000_split_128bit_ok_p): Likewise.
30669
30670 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
30671 macros for creating ISA 2.07 normal and overloaded builtin
30672 functions with 3 arguments.
30673 (BU_P8V_OVERLOAD_3): Likewise.
30674 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
30675 for use as overloaded functions.
30676 (VPERM_1TI_UNS): Likewise.
30677 (VSEL_1TI): Likewise.
30678 (VSEL_1TI_UNS): Likewise.
30679 (ST_INTERNAL_1ti): Likewise.
30680 (LD_INTERNAL_1ti): Likewise.
30681 (XXSEL_1TI): Likewise.
30682 (XXSEL_1TI_UNS): Likewise.
30683 (VPERM_1TI): Likewise.
30684 (VPERM_1TI_UNS): Likewise.
30685 (XXPERMDI_1TI): Likewise.
30686 (SET_1TI): Likewise.
30687 (LXVD2X_V1TI): Likewise.
30688 (STXVD2X_V1TI): Likewise.
30689 (VEC_INIT_V1TI): Likewise.
30690 (VEC_SET_V1TI): Likewise.
30691 (VEC_EXT_V1TI): Likewise.
30692 (EQV_V1TI): Likewise.
30693 (NAND_V1TI): Likewise.
30694 (ORC_V1TI): Likewise.
30695 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
30696 added in ISA 2.07. Add both normal 'altivec' builtins, and the
30697 overloaded builtin.
30698 (VADDUQM): Likewise.
30699 (VSUBCUQ): Likewise.
30700 (VADDEUQM): Likewise.
30701 (VADDECUQ): Likewise.
30702 (VSUBEUQM): Likewise.
30703 (VSUBECUQ): Likewise.
30704
30705 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
30706 __int128_t and __uint128_t types.
30707 (__uint128_type): Likewise.
30708 (altivec_categorize_keyword): Add support for vector __int128_t,
30709 vector __uint128_t, vector __int128, and vector unsigned __int128
30710 as a container type for TImode operations that need to be done in
30711 VSX/Altivec registers.
30712 (rs6000_macro_to_expand): Likewise.
30713 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
30714 to support 128-bit integer instructions vaddcuq, vadduqm,
30715 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
30716 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
30717
30718 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
30719 for V1TImode, and set up preferences to use VSX/Altivec registers.
30720 Setup VSX reload handlers.
30721 (rs6000_debug_reg_global): Likewise.
30722 (rs6000_init_hard_regno_mode_ok): Likewise.
30723 (rs6000_preferred_simd_mode): Likewise.
30724 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
30725 (easy_altivec_constant): Likewise.
30726 (output_vec_const_move): Likewise.
30727 (rs6000_expand_vector_set): Convert V1TImode set and extract to
30728 simple move.
30729 (rs6000_expand_vector_extract): Likewise.
30730 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
30731 addressing.
30732 (rs6000_const_vec): Add support for V1TImode.
30733 (rs6000_emit_le_vsx_load): Swap double words when loading or
30734 storing TImode/V1TImode.
30735 (rs6000_emit_le_vsx_store): Likewise.
30736 (rs6000_emit_le_vsx_move): Likewise.
30737 (rs6000_emit_move): Add support for V1TImode.
30738 (altivec_expand_ld_builtin): Likewise.
30739 (altivec_expand_st_builtin): Likewise.
30740 (altivec_expand_vec_init_builtin): Likewise.
30741 (altivec_expand_builtin): Likewise.
30742 (rs6000_init_builtins): Add support for V1TImode type. Add
30743 support for ISA 2.07 128-bit integer builtins. Define type names
30744 for the VSX/Altivec vector types.
30745 (altivec_init_builtins): Add support for overloaded vector
30746 functions with V1TImode type.
30747 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
30748 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
30749 external function.
30750 (rs6000_split_128bit_ok_p): Likewise.
30751 (rs6000_handle_altivec_attribute): Create V1TImode from vector
30752 __int128_t and vector __uint128_t.
30753
30754 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
30755 and mode attributes.
30756 (VSX_M): Likewise.
30757 (VSX_M2): Likewise.
30758 (VSm): Likewise.
30759 (VSs): Likewise.
30760 (VSr): Likewise.
30761 (VSv): Likewise.
30762 (VS_scalar): Likewise.
30763 (VS_double): Likewise.
30764 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
30765
30766 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
30767 we support the ISA 2.07 128-bit integer arithmetic instructions.
30768 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
30769 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
30770 and TImode types for use with the builtin functions.
30771 (V1TI_type_node): Likewise.
30772 (unsigned_V1TI_type_node): Likewise.
30773 (intTI_type_internal_node): Likewise.
30774 (uintTI_type_internal_node): Likewise.
30775
30776 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
30777 128-bit builtin functions.
30778 (UNSPEC_VADDEUQM): Likewise.
30779 (UNSPEC_VADDECUQ): Likewise.
30780 (UNSPEC_VSUBCUQ): Likewise.
30781 (UNSPEC_VSUBEUQM): Likewise.
30782 (UNSPEC_VSUBECUQ): Likewise.
30783 (VM): Add V1TImode to vector mode iterators.
30784 (VM2): Likewise.
30785 (VI_unit): Likewise.
30786 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
30787 (altivec_vaddcuq): Likewise.
30788 (altivec_vsubuqm): Likewise.
30789 (altivec_vsubcuq): Likewise.
30790 (altivec_vaddeuqm): Likewise.
30791 (altivec_vaddecuq): Likewise.
30792 (altivec_vsubeuqm): Likewise.
30793 (altivec_vsubecuq): Likewise.
30794
30795 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
30796 mode iterators.
30797 (BOOL_128): Likewise.
30798 (BOOL_REGS_OUTPUT): Likewise.
30799 (BOOL_REGS_OP1): Likewise.
30800 (BOOL_REGS_OP2): Likewise.
30801 (BOOL_REGS_UNARY): Likewise.
30802 (BOOL_REGS_AND_CR0): Likewise.
30803
30804 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
30805 128-bit integer builtin support.
30806 (vec_vadduqm): Likewise.
30807 (vec_vaddecuq): Likewise.
30808 (vec_vaddeuqm): Likewise.
30809 (vec_vsubecuq): Likewise.
30810 (vec_vsubeuqm): Likewise.
30811 (vec_vsubcuq): Likewise.
30812 (vec_vsubuqm): Likewise.
30813
30814 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30815 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
30816 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
30817 128-bit integer add/subtract to ISA 2.07.
30818
30819 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
30820
30821 * config/arc/arc.c (arc_predicate_delay_insns):
30822 Fix third argument passed to conditionalize_nonjump.
30823
30824 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
30825
30826 * config/aarch64/aarch64-builtins.c
30827 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
30828 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
30829 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
30830 instead of __builtin_lfloor.
30831 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
30832
30833 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30834
30835 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
30836 (tree_ssa_ifcombine_bb_1): New function.
30837 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
30838 is an empty forwarder block to then_bb or vice versa and then_bb
30839 and else_bb are effectively swapped.
30840
30841 2014-03-12 Christian Bruel <christian.bruel@st.com>
30842
30843 PR target/60264
30844 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
30845 REG_CFA_DEF_CFA note.
30846 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
30847 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
30848
30849 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
30850
30851 PR tree-optimization/60454
30852 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
30853
30854 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30855
30856 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
30857 Do not define target_cpu_default2 to generic.
30858 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
30859 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
30860 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
30861
30862 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30863 Marc Glisse <marc.glisse@inria.fr>
30864
30865 PR tree-optimization/60502
30866 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
30867 instead of build_low_bits_mask.
30868
30869 2014-03-12 Jakub Jelinek <jakub@redhat.com>
30870
30871 PR middle-end/60482
30872 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
30873 if there are multiple uses, but op doesn't live on E edge.
30874 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
30875 clobber stmts before __builtin_unreachable.
30876
30877 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
30878
30879 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
30880 hard_frame_pointer_rtx.
30881 * cse.c (cse_insn): Remove volatile check.
30882 * cselib.c (cselib_process_insn): Likewise.
30883 * dse.c (scan_insn): Likewise.
30884
30885 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
30886
30887 * config/arc/arc.c (conditionalize_nonjump): New function,
30888 broken out of ...
30889 (arc_ifcvt): ... this.
30890 (arc_predicate_delay_insns): Use it.
30891
30892 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
30893
30894 * config/arc/predicates.md (extend_operand): During/after reload,
30895 allow const_int_operand.
30896 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
30897 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
30898 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
30899 to "i".
30900 (umulsi3_highpart_i): Likewise.
30901
30902 2014-03-11 Richard Biener <rguenther@suse.de>
30903
30904 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
30905 Add asserts to guard possible wrong-code bugs.
30906
30907 2014-03-11 Richard Biener <rguenther@suse.de>
30908
30909 PR tree-optimization/60429
30910 PR tree-optimization/60485
30911 * tree-ssa-structalias.c (set_union_with_increment): Properly
30912 take into account all fields that overlap the shifted vars.
30913 (do_sd_constraint): Likewise.
30914 (do_ds_constraint): Likewise.
30915 (get_constraint_for_ptr_offset): Likewise.
30916
30917 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
30918
30919 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
30920 (nios2_compute_frame_layout):
30921 Add calculation of cfun->machine->fp_save_offset.
30922 (nios2_expand_prologue): Correct setting of frame pointer register
30923 in prologue.
30924 (nios2_expand_epilogue): Update recovery of stack pointer from
30925 frame pointer accordingly.
30926 (nios2_initial_elimination_offset): Update calculation of offset
30927 for eliminating to HARD_FRAME_POINTER_REGNUM.
30928
30929 2014-03-10 Jakub Jelinek <jakub@redhat.com>
30930
30931 PR ipa/60457
30932 * ipa.c (symtab_remove_unreachable_nodes): Don't call
30933 cgraph_get_create_node on VAR_DECLs.
30934
30935 2014-03-10 Richard Biener <rguenther@suse.de>
30936
30937 PR middle-end/60474
30938 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
30939
30940 2014-03-08 Douglas B Rupp <rupp@gnat.com>
30941
30942 * config/vms/vms.opt (vms_float_format): New variable.
30943
30944 2014-03-08 Tobias Burnus <burnus@net-b.de>
30945
30946 * doc/invoke.texi (-fcilkplus): Update implementation status.
30947
30948 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
30949 Richard Biener <rguenther@suse.de>
30950
30951 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
30952 consistently accross all TUs.
30953 (run_gcc): Enable -fshort-double automatically at link at link-time
30954 and disallow override.
30955
30956 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
30957
30958 PR target/58271
30959 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
30960 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
30961 if they can't be used.
30962
30963 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30964
30965 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
30966 for Solaris 11/x86 ld.
30967 * configure: Regenerate.
30968
30969 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30970
30971 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
30972 (LIB_TLS_SPEC): Save as ld_tls_libs.
30973 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
30974 (HAVE_AS_IX86_TLSLDM): New test.
30975 * configure, config.in: Regenerate.
30976 * config/i386/i386.c (legitimize_tls_address): Fall back to
30977 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
30978 cannot support TLS_MODEL_LOCAL_DYNAMIC.
30979 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
30980 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
30981
30982 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
30983
30984 * common.opt (fira-loop-pressure): Mark as optimization.
30985
30986 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
30987
30988 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
30989 an OpenMP mappable type.
30990
30991 2014-03-06 Matthias Klose <doko@ubuntu.com>
30992
30993 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
30994 MULTILIB_OSDIRNAMES is not defined.
30995
30996 2014-03-06 Jakub Jelinek <jakub@redhat.com>
30997 Meador Inge <meadori@codesourcery.com>
30998
30999 PR target/58595
31000 * config/arm/arm.c (arm_tls_symbol_p): Remove.
31001 (arm_legitimize_address): Call legitimize_tls_address for any
31002 arm_tls_referenced_p expression, handle constant addend. Call it
31003 before testing for !TARGET_ARM.
31004 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31005
31006 2014-03-06 Richard Biener <rguenther@suse.de>
31007
31008 PR middle-end/60445
31009 PR lto/60424
31010 PR lto/60427
31011 Revert
31012 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31013
31014 * tree-streamer.c (record_common_node): Assert we don't record
31015 nodes with type double.
31016 (preload_common_node): Skip type double, complex double and double
31017 pointer since it is now frontend dependent due to fshort-double option.
31018
31019 2014-03-06 Richard Biener <rguenther@suse.de>
31020
31021 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31022 or -fno-lto is specified and the linker has full plugin support.
31023 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31024 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31025 * lto-wrapper.c (merge_and_complain): Merge compile-time
31026 optimization levels.
31027 (run_gcc): And pass it through to the link options.
31028
31029 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
31030
31031 PR debug/60381
31032 Revert:
31033 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31034 PR debug/59992
31035 * cselib.c (remove_useless_values): Skip to avoid quadratic
31036 behavior if the condition moved from...
31037 (cselib_process_insn): ... here holds.
31038
31039 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31040
31041 PR plugins/59335
31042 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31043 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31044
31045 PR plugins/59335
31046 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31047 (TM_H): Add x86-tune.def.
31048
31049 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31050
31051 * config/aarch64/aarch64.c (generic_tunings):
31052 Use cortexa57_extra_costs.
31053
31054 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31055
31056 PR lto/60404
31057 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31058 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31059 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31060 cost for in_lto_p.
31061
31062 2014-03-04 Heiher <r@hev.cc>
31063
31064 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31065 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31066
31067 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
31068
31069 * config/i386/predicates.md (const2356_operand): Change to ...
31070 (const2367_operand): ... this.
31071 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31072 const2367_operand.
31073 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31074 (*avx512pf_scatterpf<mode>sf): Ditto.
31075 (avx512pf_scatterpf<mode>df): Ditto.
31076 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31077 (*avx512pf_scatterpf<mode>df): Ditto.
31078 * config/i386/i386.c (ix86_expand_builtin): Update
31079 incorrect hint operand error message.
31080
31081 2014-03-04 Richard Biener <rguenther@suse.de>
31082
31083 * lto-section-in.c (lto_get_section_data): Fix const cast.
31084
31085 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31086
31087 * tree-streamer.c (record_common_node): Assert we don't record
31088 nodes with type double.
31089 (preload_common_node): Skip type double, complex double and double
31090 pointer since it is now frontend dependent due to fshort-double option.
31091
31092 2014-03-04 Richard Biener <rguenther@suse.de>
31093
31094 PR lto/60405
31095 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31096 (lto_input_toplevel_asms): Likewise.
31097 * lto-section-in.c (lto_get_section_data): Instead do it here
31098 for every section.
31099
31100 2014-03-04 Richard Biener <rguenther@suse.de>
31101
31102 PR tree-optimization/60382
31103 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
31104 dead PHIs a reduction.
31105
31106 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
31107
31108 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
31109 hint value.
31110 (_mm_prefetch): Move out of GCC target("sse") pragma.
31111 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
31112 GCC target("prfchw") pragma.
31113 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
31114 for locality <= 2.
31115 * config/i386/i386.c (ix86_option_override_internal): Enable
31116 -mprfchw with -mprefetchwt1.
31117
31118 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31119
31120 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
31121 Mark as varying.
31122
31123 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
31124
31125 * opts.h (CL_PCH_IGNORE): Define.
31126 * targhooks.c (option_affects_pch_p):
31127 Return false for options that have CL_PCH_IGNORE set.
31128 * opt-functions.awk: Process PchIgnore.
31129 * doc/options.texi: Document PchIgnore.
31130
31131 * config/arc/arc.opt (misize): Add PchIgnore property.
31132
31133 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31134
31135 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
31136 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
31137 constraint on constants to permit them being loaded into
31138 GENERAL_REGS or BASE_REGS.
31139
31140 2014-03-03 Nick Clifton <nickc@redhat.com>
31141
31142 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
31143 anti-cacnonical alternatives.
31144 (negandhi3_real): New pattern.
31145 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
31146
31147 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
31148
31149 * config/avr/avr-mcus.def: Remove atxmega16x1.
31150 * config/avr/avr-tables.opt: Regenerate.
31151 * config/avr/t-multilib: Regenerate.
31152 * doc/avr-mmcu.texi: Regenerate.
31153
31154 2014-03-03 Tobias Grosser <tobias@grosser.es>
31155 Mircea Namolaru <mircea.namolaru@inria.fr>
31156
31157 PR tree-optimization/58028
31158 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
31159 scalar dimensions.
31160
31161 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31162
31163 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
31164 not handled by recognizers.
31165
31166 2014-03-03 Jakub Jelinek <jakub@redhat.com>
31167
31168 PR middle-end/60175
31169 * function.c (expand_function_end): Don't emit
31170 clobber_return_register sequence if clobber_after is a BARRIER.
31171 * cfgexpand.c (construct_exit_block): Append instructions before
31172 return_label to prev_bb.
31173
31174 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31175
31176 * config/rs6000/constraints.md: Document reserved use of "wc".
31177
31178 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31179
31180 PR ipa/60150
31181 * ipa.c (function_and_variable_visibility): When dissolving comdat
31182 group, also set all symbols to local.
31183
31184 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
31185
31186 PR ipa/60306
31187
31188 Revert:
31189 2013-12-14 Jan Hubicka <jh@suse.cz>
31190 PR middle-end/58477
31191 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
31192
31193 2014-03-02 Jon Beniston <jon@beniston.com>
31194
31195 PR bootstrap/48230
31196 PR bootstrap/50927
31197 PR bootstrap/52466
31198 PR target/46898
31199 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
31200 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
31201 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
31202 (simple_return, *simple_return): New patterns
31203 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
31204 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
31205
31206 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
31207
31208 * dwarf2out.c (gen_subprogram_die): Tidy.
31209
31210 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
31211
31212 PR target/60071
31213 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
31214 (*mov_t_msb_neg_negc): ... this new insn.
31215
31216 2014-02-28 Jason Merrill <jason@redhat.com>
31217
31218 PR c++/58678
31219 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
31220 function.
31221
31222 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
31223
31224 PR c++/60314
31225 * dwarf2out.c (decltype_auto_die): New static.
31226 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
31227 (gen_type_die_with_usage): Handle 'decltype(auto)'.
31228 (is_cxx_auto): Likewise.
31229
31230 2014-02-28 Ian Bolton <ian.bolton@arm.com>
31231
31232 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
31233 we are not using general regs only.
31234
31235 2014-02-28 Richard Biener <rguenther@suse.de>
31236
31237 PR target/60280
31238 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
31239 previous fix and only allow to remove trivial pre-headers
31240 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
31241 (remove_forwarder_block): Properly update the latch of a loop.
31242
31243 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31244
31245 PR debug/59992
31246 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
31247 (cselib_preserved_hash_table): New.
31248 (preserve_constants_and_equivs): Move preserved vals to it.
31249 (cselib_find_slot): Look it up first.
31250 (cselib_init): Initialize it.
31251 (cselib_finish): Release it.
31252 (dump_cselib_table): Dump it.
31253
31254 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31255
31256 PR debug/59992
31257 * cselib.c (remove_useless_values): Skip to avoid quadratic
31258 behavior if the condition moved from...
31259 (cselib_process_insn): ... here holds.
31260
31261 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31262
31263 PR debug/57232
31264 * var-tracking.c (vt_initialize): Apply the same condition to
31265 preserve the CFA base value.
31266
31267 2014-02-28 Joey Ye <joey.ye@arm.com>
31268
31269 PR target/PR60169
31270 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
31271 if reload in progress or completed.
31272
31273 2014-02-28 Tobias Burnus <burnus@net-b.de>
31274
31275 PR middle-end/60147
31276 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
31277 NAMELIST_DECL.
31278
31279 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
31280
31281 * doc/tm.texi.in (Condition Code Status): Update documention for
31282 relative locations of cc0-setter and cc0-user.
31283
31284 2014-02-27 Jeff Law <law@redhat.com>
31285
31286 PR rtl-optimization/52714
31287 * combine.c (try_combine): When splitting an unrecognized PARALLEL
31288 into two independent simple sets, if I3 is a jump, ensure the
31289 pattern we place into I3 is a (set (pc) ...).
31290
31291 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
31292 Jeff Law <law@redhat.com>
31293
31294 PR rtl-optimization/49847
31295 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
31296 are in different blocks.
31297 * doc/tm.texi (Condition Code Status): Update documention for
31298 relative locations of cc0-setter and cc0-user.
31299
31300 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
31301
31302 PR target/59222
31303 * lra.c (lra_emit_add): Check SUBREG too.
31304
31305 2014-02-27 Andreas Schwab <schwab@suse.de>
31306
31307 * config/m68k/m68k.c (m68k_option_override): Disable
31308 -flive-range-shrinkage for classic m68k.
31309 (m68k_override_options_after_change): Likewise.
31310
31311 2014-02-27 Marek Polacek <polacek@redhat.com>
31312
31313 PR middle-end/59223
31314 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
31315 -Wmaybe-uninitialized.
31316
31317 2014-02-27 Alan Modra <amodra@gmail.com>
31318
31319 PR target/57936
31320 * reload1.c (emit_input_reload_insns): When reload_override_in,
31321 set old to rl->in_reg when rl->in_reg is a subreg.
31322
31323 2014-02-26 Richard Biener <rguenther@suse.de>
31324
31325 PR bootstrap/60343
31326 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
31327
31328 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31329
31330 * common/config/i386/predicates.md (const1256_operand): Remove.
31331 (const2356_operand): New.
31332 (const_1_to_2_operand): Remove.
31333 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
31334 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
31335 (*avx512pf_gatherpf<mode>sf): Ditto.
31336 (avx512pf_gatherpf<mode>df): Ditto.
31337 (*avx512pf_gatherpf<mode>df_mask): Ditto.
31338 (*avx512pf_gatherpf<mode>df): Ditto.
31339 (avx512pf_scatterpf<mode>sf): Ditto.
31340 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31341 (*avx512pf_scatterpf<mode>sf): Ditto.
31342 (avx512pf_scatterpf<mode>df): Ditto.
31343 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31344 (*avx512pf_scatterpf<mode>df): Ditto.
31345 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
31346
31347 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
31348
31349 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
31350 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
31351 (_mm512_mask_testn_epi64_mask): Move to ...
31352 * config/i386/avx512cdintrin.h: Here.
31353 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
31354 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
31355 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
31356 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
31357 TARGET_AVX512F from TARGET_AVX512CD.
31358
31359 2014-02-26 Richard Biener <rguenther@suse.de>
31360
31361 PR ipa/60327
31362 * ipa.c (walk_polymorphic_call_targets): Properly guard
31363 call to inline_update_overall_summary.
31364
31365 2014-02-26 Bin Cheng <bin.cheng@arm.com>
31366
31367 PR target/60280
31368 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
31369 and latches only if requested. Fix latch if it is removed.
31370 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
31371 LOOPS_HAVE_PREHEADERS.
31372
31373 2014-02-25 Andrew Pinski <apinski@cavium.com>
31374
31375 * builtins.c (expand_builtin_thread_pointer): Create a new target
31376 when the target is NULL.
31377
31378 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
31379
31380 PR rtl-optimization/60317
31381 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31382 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
31383 * lra-assigns.c: Include params.h.
31384 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
31385 other reload pseudos considerations.
31386
31387 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31388
31389 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
31390 to use canonical form for nor<mode>3.
31391
31392 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31393
31394 PR target/55426
31395 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
31396 conversions.
31397
31398 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
31399
31400 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
31401 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
31402 (ix86_handle_option): Handle OPT_mprefetchwt1.
31403 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
31404 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
31405 PREFETCHWT1 CPUID.
31406 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
31407 OPTION_MASK_ISA_PREFETCHWT1.
31408 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
31409 (PTA_PREFETCHWT1): New.
31410 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
31411 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
31412 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
31413 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
31414 (*prefetch_avx512pf_<mode>_: Change into ...
31415 (*prefetch_prefetchwt1_<mode>: This.
31416 * config/i386/i386.opt (mprefetchwt1): New.
31417 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
31418 (_mm_prefetch): Handle intent to write.
31419 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
31420
31421 2014-02-25 Richard Biener <rguenther@suse.de>
31422
31423 PR middle-end/60291
31424 * emit-rtl.c (mem_attrs_htab): Remove.
31425 (mem_attrs_htab_hash): Likewise.
31426 (mem_attrs_htab_eq): Likewise.
31427 (set_mem_attrs): Always allocate new mem-attrs when something changed.
31428 (init_emit_once): Do not allocate mem_attrs_htab.
31429
31430 2014-02-25 Richard Biener <rguenther@suse.de>
31431
31432 PR lto/60319
31433 * lto-opts.c (lto_write_options): Output non-explicit conservative
31434 -fwrapv, -fno-trapv and -fno-strict-overflow.
31435 * lto-wrapper.c (merge_and_complain): Handle merging those options.
31436 (run_gcc): And pass them through.
31437
31438 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31439
31440 * sel-sched.c (calculate_new_fences): New parameter ptime.
31441 Calculate it as a maximum over all fence cycles.
31442 (sel_sched_region_2): Adjust the call to calculate_new_fences.
31443 Print the final schedule timing when sched_verbose.
31444
31445 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
31446
31447 PR rtl-optimization/60292
31448 * sel-sched.c (fill_vec_av_set): Do not reset target availability
31449 bit fot the fence instruction.
31450
31451 2014-02-24 Alangi Derick <alangiderick@gmail.com>
31452
31453 * calls.h: Fix typo in comment.
31454
31455 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
31456
31457 * config/pa/pa.c (pa_output_move_double): Don't valididate when
31458 adjusting offsetable addresses.
31459
31460 2014-02-24 Guozhi Wei <carrot@google.com>
31461
31462 * sparseset.h (sparseset_pop): Fix the wrong index.
31463
31464 2014-02-24 Walter Lee <walt@tilera.com>
31465
31466 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
31467 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
31468 triplet.
31469 * common/config/tilegx/tilegx-common.c
31470 (TARGET_DEFAULT_TARGET_FLAGS): Define.
31471 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
31472 (LINK_SPEC): Ditto.
31473 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
31474 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
31475 (tilegx_gimplify_va_arg_expr): Handle big endian.
31476 (tilegx_expand_unaligned_load): Ditto.
31477 (tilegx_expand_unaligned_store): Ditto.
31478 (TARGET_RETURN_IN_MSB): New.
31479 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
31480 (TARGET_ENDIAN_DEFAULT): New.
31481 (TARGET_BIG_ENDIAN): Handle big endian.
31482 (BYTES_BIG_ENDIAN): Ditto.
31483 (WORDS_BIG_ENDIAN): Ditto.
31484 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
31485 (ENDIAN_SPEC): New.
31486 (EXTRA_SPECS): New.
31487 * config/tilegx/tilegx.md (extv): Handle big endian.
31488 (extzv): Ditto.
31489 (insn_st<n>): Ditto.
31490 (insn_st<n>_add<bitsuffix>): Ditto.
31491 (insn_stnt<n>): Ditto.
31492 (insn_stnt<n>_add<bitsuffix>):Ditto.
31493 (vec_interleave_highv8qi): Handle big endian.
31494 (vec_interleave_highv8qi_be): New.
31495 (vec_interleave_highv8qi_le): New.
31496 (insn_v1int_h): Handle big endian.
31497 (vec_interleave_lowv8qi): Handle big endian.
31498 (vec_interleave_lowv8qi_be): New.
31499 (vec_interleave_lowv8qi_le): New.
31500 (insn_v1int_l): Handle big endian.
31501 (vec_interleave_highv4hi): Handle big endian.
31502 (vec_interleave_highv4hi_be): New.
31503 (vec_interleave_highv4hi_le): New.
31504 (insn_v2int_h): Handle big endian.
31505 (vec_interleave_lowv4hi): Handle big endian.
31506 (vec_interleave_lowv4hi_be): New.
31507 (vec_interleave_lowv4hi_le): New.
31508 (insn_v2int_l): Handle big endian.
31509 (vec_interleave_highv2si): Handle big endian.
31510 (vec_interleave_highv2si_be): New.
31511 (vec_interleave_highv2si_le): New.
31512 (insn_v4int_h): Handle big endian.
31513 (vec_interleave_lowv2si): Handle big endian.
31514 (vec_interleave_lowv2si_be): New.
31515 (vec_interleave_lowv2si_le): New.
31516 (insn_v4int_l): Handle big endian.
31517 * config/tilegx/tilegx.opt (mbig-endian): New option.
31518 (mlittle-endian): New option.
31519 * doc/install.texi: Document tilegxbe-linux.
31520 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
31521
31522 2014-02-24 Martin Jambor <mjambor@suse.cz>
31523
31524 PR ipa/60266
31525 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
31526 there are no parameter descriptors.
31527
31528 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
31529
31530 PR rtl-optimization/60268
31531 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
31532 initialization to ...
31533 (sched_rgn_init): ... here.
31534 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
31535
31536 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31537
31538 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
31539 names.
31540
31541 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31542
31543 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
31544 definition.
31545
31546 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31547
31548 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
31549 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
31550
31551 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
31552
31553 * config/microblaze/predicates.md: Add cmp_op predicate.
31554 * config/microblaze/microblaze.md: Add branch_compare instruction
31555 which uses cmp_op predicate and emits cmp insn before branch.
31556 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
31557 to microblaze_expand_conditional_branch and consolidate logic.
31558 (microblaze_expand_conditional_branch): emit branch_compare
31559 insn instead of handling cmp op separate from branch insn.
31560
31561 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31562
31563 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
31564 to permit subregs.
31565
31566 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31567
31568 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
31569 define_insn with define_expand and new define_insn
31570 *altivec_lve<VI_char>x_internal.
31571 (altivec_stve<VI_char>x): Replace define_insn with define_expand
31572 and new define_insn *altivec_stve<VI_char>x_internal.
31573 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
31574 prototype.
31575 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
31576 lve*x built-ins.
31577 (altivec_expand_stvex_be): New function.
31578
31579 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
31580
31581 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
31582 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
31583 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
31584 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
31585
31586 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
31587
31588 PR target/60298
31589 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
31590 instead of emit_move_insn.
31591
31592 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31593
31594 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
31595 vspltw with vsldoi.
31596 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
31597 gen_altivec_vsumsws.
31598
31599 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31600
31601 * config/rs6000/altivec.md (altivec_lvxl): Rename as
31602 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
31603 (altivec_lvxl_<mode>): New define_expand incorporating
31604 -maltivec=be semantics where needed.
31605 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
31606 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
31607 semantics where needed.
31608 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
31609 (altivec_stvx_<mode>): New define_expand incorporating
31610 -maltivec=be semantics where needed.
31611 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
31612 VM2 iterator instead of V4SI.
31613 (altivec_stvxl_<mode>): New define_expand incorporating
31614 -maltivec=be semantics where needed.
31615 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
31616 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
31617 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
31618 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
31619 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
31620 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
31621 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
31622 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
31623 ALTIVEC_BUILTIN_STVXL.
31624 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
31625 (altivec_expand_stvx_be): Likewise.
31626 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
31627 (altivec_expand_lvx_be): Likewise.
31628 (altivec_expand_stvx_be): Likewise.
31629 (altivec_expand_builtin): Add cases for
31630 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
31631 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
31632 (altivec_init_builtins): Add definitions for
31633 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
31634 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
31635
31636 2014-02-21 Catherine Moore <clm@codesourcery.com>
31637
31638 * doc/invoke.texi (mvirt, mno-virt): Document.
31639 * config/mips/mips.opt (mvirt): New option.
31640 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
31641
31642 2014-02-21 Richard Biener <rguenther@suse.de>
31643
31644 PR tree-optimization/60276
31645 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
31646 (STMT_VINFO_MIN_NEG_DIST): New macro.
31647 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
31648 STMT_VINFO_MIN_NEG_DIST.
31649 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
31650 made for negative dependence distances still hold.
31651
31652 2014-02-21 Richard Biener <rguenther@suse.de>
31653
31654 PR middle-end/60291
31655 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
31656 DECL_INITIAL for globals not in the current function context.
31657
31658 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31659
31660 PR tree-optimization/56490
31661 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
31662 * tree-ssa-uninit.c: Include params.h.
31663 (compute_control_dep_chain): Add num_calls argument, return false
31664 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
31665 num_calls to recursive call.
31666 (find_predicates): Change dep_chain into normal array,
31667 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
31668 variable and adjust compute_control_dep_chain caller.
31669 (find_def_preds): Likewise.
31670
31671 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
31672
31673 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
31674 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
31675
31676 2014-02-21 Nick Clifton <nickc@redhat.com>
31677
31678 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
31679 (pushhi1): Likewise.
31680 (popqi1): Add mode to pre_dec.
31681 (pophi1): Likewise.
31682
31683 2014-02-21 Jakub Jelinek <jakub@redhat.com>
31684
31685 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
31686 mode for mask of V8SFmode permutation.
31687
31688 2014-02-20 Richard Henderson <rth@redhat.com>
31689
31690 PR c++/60272
31691 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
31692 a new pseudo for OLDVAL.
31693
31694 2014-02-20 Jakub Jelinek <jakub@redhat.com>
31695
31696 PR target/57896
31697 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
31698 gen_reg_rtx if d->testing_p.
31699 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
31700 if d->testing_p and we will certainly return true.
31701 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
31702 if d->testing_p.
31703
31704 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
31705
31706 * emit-rtl.c (gen_reg_rtx): Assert that
31707 crtl->emit.regno_pointer_align_length is non-zero.
31708
31709 2014-02-20 Richard Henderson <rth@redhat.com>
31710
31711 PR c++/60272
31712 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
31713 on failure the store back into EXPECT.
31714
31715 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
31716 Sandra Loosemore <sandra@codesourcery.com>
31717
31718 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
31719 * config/nios2/nios2.c (nios2_function_profiler): Add
31720 -fPIC (flag_pic == 2) support.
31721 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
31722 (nios2_large_offset_p): New function.
31723 (nios2_unspec_reloc_p): Move up position, update to use
31724 nios2_large_offset_p.
31725 (nios2_unspec_address): Remove function.
31726 (nios2_unspec_offset): New function.
31727 (nios2_large_got_address): New function.
31728 (nios2_got_address): Add large offset support.
31729 (nios2_legitimize_tls_address): Update usage of removed and new
31730 functions.
31731 (nios2_symbol_binds_local_p): New function.
31732 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
31733 (nios2_legitimize_address): Update to use nios2_large_offset_p.
31734 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
31735 (nios2_print_operand): Merge H/L processing, add hiadj/lo
31736 processing for (const (unspec ...)).
31737 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
31738
31739 2014-02-20 Richard Biener <rguenther@suse.de>
31740
31741 * tree-cfg.c (replace_uses_by): Mark altered BBs before
31742 doing the substitution.
31743 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
31744
31745 2014-02-20 Martin Jambor <mjambor@suse.cz>
31746
31747 PR ipa/55260
31748 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
31749 info when checking whether lattices are bottom.
31750
31751 2014-02-20 Richard Biener <rguenther@suse.de>
31752
31753 PR middle-end/60221
31754 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
31755 regions at -O0.
31756
31757 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
31758
31759 PR ipa/58555
31760 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
31761 parameter specifying the scaling.
31762 (inline_call): Update.
31763 (want_inline_recursively): Guard division by zero.
31764 (recursive_inlining): Update.
31765 * ipa-inline.h (clone_inlined_nodes): Update.
31766
31767 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31768
31769 PR target/60204
31770 * config/i386/i386.c (classify_argument): Pass structures of size
31771 64 bytes or less in register.
31772
31773 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
31774 Kirill Yukhin <kirill.yukhin@intel.com>
31775
31776 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
31777 (_mm_rcp28_round_ss): Ditto.
31778 (_mm_rsqrt28_round_sd): Ditto.
31779 (_mm_rsqrt28_round_ss): Ditto.
31780 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
31781 (_mm_rcp14_round_ss): Ditto.
31782 (_mm_rsqrt14_round_sd): Ditto.
31783 (_mm_rsqrt14_round_ss): Ditto.
31784 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
31785 the first input operand, get rid of match_dup.
31786 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
31787 attribute to sse.
31788 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
31789 Ditto.
31790 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
31791 operand as the first input operand, set type attribute.
31792 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
31793 Set type attribute.
31794 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
31795 operand as the first input operand, set type attribute.
31796
31797 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31798
31799 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
31800 bit of zero.
31801
31802 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
31803
31804 PR target/60207
31805 * config/i386/i386.c (construct_container): Remove TFmode check
31806 for X86_64_INTEGER_CLASS.
31807
31808 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
31809
31810 PR target/59794
31811 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
31812 only when -Wpsabi is enabled.
31813
31814 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
31815
31816 PR target/59799
31817 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
31818 passing arrays in registers are the same as for structs, so remove the
31819 special case for them.
31820
31821 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
31822
31823 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
31824 destination type, extract only the valid bits if the source type is not
31825 integral and has a different mode.
31826
31827 2014-02-19 Richard Biener <rguenther@suse.de>
31828
31829 PR ipa/60243
31830 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
31831 for all calls.
31832
31833 2014-02-19 Richard Biener <rguenther@suse.de>
31834
31835 PR ipa/60243
31836 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
31837 (ipa_modify_call_arguments): Emit an argument load explicitely and
31838 preserve virtual SSA form there and for the replacement call.
31839 Do not update SSA form nor free dominance info.
31840
31841 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31842
31843 * ipa.c (function_and_variable_visibility): Also clear WEAK
31844 flag when disolving COMDAT_GROUP.
31845
31846 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31847
31848 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
31849 * ipa-prop.c (ipa_set_jf_known_type): Return early when
31850 not devirtualizing.
31851 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
31852 do more sanity checks.
31853 (detect_type_change): Return true when giving up early.
31854 (compute_complex_assign_jump_func): Fix type parameter of
31855 ipa_set_ancestor_jf.
31856 (compute_complex_ancestor_jump_func): Likewise.
31857 (update_jump_functions_after_inlining): Fix updating of
31858 ancestor function.
31859 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
31860
31861 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
31862
31863 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
31864 inline clones when edge disappears.
31865
31866 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
31867
31868 PR target/60203
31869 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
31870 Split 64-bit moves into 2 patterns. Do not allow the use of
31871 direct move for TDmode in little endian, since the decimal value
31872 has little endian bytes within a word, but the 64-bit pieces are
31873 ordered in a big endian fashion, and normal subreg's of TDmode are
31874 not allowed.
31875 (mov<mode>_64bit_dm): Likewise.
31876 (movtd_64bit_nodm): Likewise.
31877
31878 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
31879
31880 PR tree-optimization/60174
31881 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
31882 statement of an SSA_NAME that occurs in an abnormal PHI node.
31883
31884 2014-02-18 Jakub Jelinek <jakub@redhat.com>
31885
31886 PR sanitizer/60142
31887 * final.c (SEEN_BB): Remove.
31888 (SEEN_NOTE, SEEN_EMITTED): Renumber.
31889 (final_scan_insn): Don't force_source_line on second
31890 NOTE_INSN_BASIC_BLOCK.
31891
31892 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
31893
31894 PR target/60205
31895 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
31896 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
31897 (type_natural_mode): Warn ABI change when %zmm register is not
31898 available for AVX512F vector value passing.
31899
31900 2014-02-18 Kai Tietz <ktietz@redhat.com>
31901
31902 PR target/60193
31903 * config/i386/i386.c (ix86_expand_prologue): Use value in
31904 rax register as displacement when restoring %r10 or %rax.
31905 Fix wrong offset when restoring both registers.
31906
31907 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
31908
31909 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
31910 assertion with conditional return.
31911
31912 2014-02-18 Jakub Jelinek <jakub@redhat.com>
31913 Uros Bizjak <ubizjak@gmail.com>
31914
31915 PR driver/60233
31916 * config/i386/driver-i386.c (host_detect_local_cpu): If
31917 YMM state is not saved by the OS, also clear has_f16c. Move
31918 CPUID 0x80000001 handling before YMM state saving checking.
31919
31920 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
31921
31922 PR rtl-optimization/58960
31923 * haifa-sched.c (alloc_global_sched_pressure_data): New,
31924 factored out from ...
31925 (sched_init): ... here.
31926 (free_global_sched_pressure_data): New, factored out from ...
31927 (sched_finish): ... here.
31928 * sched-int.h (free_global_sched_pressure_data): Declare.
31929 * sched-rgn.c (nr_regions_initial): New static global.
31930 (haifa_find_rgns): Initialize it.
31931 (schedule_region): Disable sched-pressure for the newly
31932 generated regions.
31933
31934 2014-02-17 Richard Biener <rguenther@suse.de>
31935
31936 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
31937 release SSA defs of pattern stmts.
31938
31939 2014-02-17 Richard Biener <rguenther@suse.de>
31940
31941 * tree-inline.c (expand_call_inline): Release the virtual
31942 operand defined by the call we are about to inline.
31943
31944 2014-02-17 Richard Biener <rguenther@suse.de>
31945
31946 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
31947
31948 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
31949 Ilya Tocar <ilya.tocar@intel.com>
31950
31951 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
31952 arguments order in builtin.
31953 (_mm512_permutexvar_epi64): Ditto.
31954 (_mm512_mask_permutexvar_epi64): Ditto
31955 (_mm512_maskz_permutexvar_epi32): Ditto
31956 (_mm512_permutexvar_epi32): Ditto
31957 (_mm512_mask_permutexvar_epi32): Ditto
31958
31959 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31960
31961 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
31962 (p8_vmrgow): Likewise.
31963
31964 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31965
31966 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
31967 endian targets.
31968
31969 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
31970
31971 PR target/60203
31972 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
31973 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
31974 into 64-bit and 32-bit moves. On 64-bit moves, add support for
31975 using direct move instructions on ISA 2.07. Also adjust
31976 instruction length for 64-bit.
31977 (mov<mode>_64bit, TFmode/TDmode): Likewise.
31978 (mov<mode>_32bit, TFmode/TDmode): Likewise.
31979
31980 2014-02-15 Alan Modra <amodra@gmail.com>
31981
31982 PR target/58675
31983 PR target/57935
31984 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
31985 find_replacement on parts of insn rtl that might be reloaded.
31986
31987 2014-02-15 Richard Biener <rguenther@suse.de>
31988
31989 PR tree-optimization/60183
31990 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
31991 (tree_ssa_phiprop): Calculate and free post-dominators.
31992
31993 2014-02-14 Jeff Law <law@redhat.com>
31994
31995 PR rtl-optimization/60131
31996 * ree.c (get_extended_src_reg): New function.
31997 (combine_reaching_defs): Use it rather than assuming location of REG.
31998 (find_and_remove_re): Verify first operand of extension is
31999 a REG before adding the insns to the copy list.
32000
32001 2014-02-14 Roland McGrath <mcgrathr@google.com>
32002
32003 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32004 * configure: Regenerated.
32005 * config.in: Regenerated.
32006 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32007 instead of ASM_SHORT.
32008
32009 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
32010 Richard Earnshaw <rearnsha@arm.com>
32011
32012 PR rtl-optimization/59535
32013 * lra-constraints.c (process_alt_operands): Encourage alternative
32014 when unassigned pseudo class is superset of the alternative class.
32015 (inherit_reload_reg): Don't inherit when optimizing for code size.
32016 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32017 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32018 modes not less than 4 for Thumb1.
32019
32020 2014-02-14 Kyle McMartin <kyle@redhat.com>
32021
32022 PR pch/60010
32023 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32024
32025 2014-02-14 Richard Biener <rguenther@suse.de>
32026
32027 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32028 (get_frame_arg): Drop the assert with langhook types_compatible_p.
32029 Do not strip INDIRECT_REFs.
32030
32031 2014-02-14 Richard Biener <rguenther@suse.de>
32032
32033 PR lto/60179
32034 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32035 DECL_FUNCTION_SPECIFIC_TARGET.
32036 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32037 * tree-streamer-out.c (pack_ts_target_option): Remove.
32038 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32039 (write_ts_function_decl_tree_pointers): Do not stream
32040 DECL_FUNCTION_SPECIFIC_TARGET.
32041 * tree-streamer-in.c (unpack_ts_target_option): Remove.
32042 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32043 (lto_input_ts_function_decl_tree_pointers): Do not stream
32044 DECL_FUNCTION_SPECIFIC_TARGET.
32045
32046 2014-02-14 Jakub Jelinek <jakub@redhat.com>
32047
32048 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32049 (get_initial_def_for_induction, vectorizable_induction): Ignore
32050 debug stmts when looking for exit_phi.
32051 (vectorizable_live_operation): Fix up condition.
32052
32053 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32054
32055 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32056 nreverse() because it changes the content of original tree list.
32057
32058 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32059
32060 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32061 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32062
32063 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32064
32065 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32066 GNU coding standards.
32067
32068 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32069
32070 PR debug/60152
32071 * dwarf2out.c (gen_subprogram_die): Don't call
32072 add_calling_convention_attribute if subr_die is old_die.
32073
32074 2014-02-13 Sharad Singhai <singhai@google.com>
32075
32076 * doc/optinfo.texi: Fix order of nodes.
32077
32078 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
32079
32080 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32081 operands[2], not operands[3].
32082
32083 2014-02-13 Richard Biener <rguenther@suse.de>
32084
32085 PR bootstrap/59878
32086 * doc/install.texi (ISL): Update recommended version to 0.12.2,
32087 mention the possibility of an in-tree build.
32088 (CLooG): Update recommended version to 0.18.1, mention the
32089 possibility of an in-tree build and clarify that the ISL
32090 bundled with CLooG does not work.
32091
32092 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32093
32094 PR target/43546
32095 * expr.c (compress_float_constant): If x is a hard register,
32096 extend into a pseudo and then move to x.
32097
32098 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
32099
32100 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
32101 caused by bad second argument to warning_at() with -mhotpatch and
32102 nested functions (e.g. with gfortran).
32103
32104 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
32105
32106 * opts.c (option_name): Remove "enabled by default" rider.
32107
32108 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
32109
32110 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
32111
32112 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
32113 Uros Bizjak <ubizjak@gmail.com>
32114
32115 PR target/60151
32116 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
32117 * configure: Regenerated.
32118
32119 2014-02-12 Richard Biener <rguenther@suse.de>
32120
32121 * vec.c (vec_prefix::calculate_allocation): Move as
32122 inline variant to vec.h.
32123 (vec_prefix::calculate_allocation_1): New out-of-line version.
32124 * vec.h (vec_prefix::calculate_allocation_1): Declare.
32125 (vec_prefix::m_has_auto_buf): Rename to ...
32126 (vec_prefix::m_using_auto_storage): ... this.
32127 (vec_prefix::calculate_allocation): Inline the easy cases
32128 and dispatch to calculate_allocation_1 which doesn't need the
32129 prefix address.
32130 (va_heap::reserve): Use gcc_checking_assert.
32131 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
32132 m_using_auto_storage.
32133 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
32134 member and adjust.
32135 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
32136 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
32137 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
32138
32139 2014-02-12 Richard Biener <rguenther@suse.de>
32140
32141 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
32142 when we found a dependence.
32143
32144 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
32145
32146 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
32147 common code...
32148 (maybe_fold_stmt): ... into this new function.
32149 * omp-low.c (lower_omp): Update comment.
32150
32151 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
32152 last use.
32153
32154 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
32155 dereference.
32156
32157 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
32158
32159 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
32160 identifiers in comments.
32161 (cortexa53_extra_costs): Likewise.
32162 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
32163 (cortexa7_extra_costs): Likewise.
32164 (cortexa12_extra_costs): Likewise.
32165 (cortexa15_extra_costs): Likewise.
32166 (v7m_extra_costs): Likewise.
32167
32168 2014-02-12 Richard Biener <rguenther@suse.de>
32169
32170 PR middle-end/60092
32171 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
32172 of posix_memalign being successful.
32173 (lower_stmt): Restrict lowering of posix_memalign to when
32174 -ftree-bit-ccp is enabled.
32175
32176 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32177
32178 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
32179 arg_loc.
32180 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
32181
32182 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
32183
32184 PR rtl-optimization/60116
32185 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
32186 other_insn once the combination has been validated.
32187
32188 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
32189
32190 PR lto/59468
32191 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
32192 and wrapper.
32193 * ipa-devirt.c: Include demangle.h
32194 (odr_violation_reported): New static variable.
32195 (add_type_duplicate): Update odr_violations.
32196 (maybe_record_node): Add completep parameter; update it.
32197 (record_target_from_binfo): Add COMPLETEP parameter;
32198 update it as needed.
32199 (possible_polymorphic_call_targets_1): Likewise.
32200 (struct polymorphic_call_target_d): Add nonconstruction_targets;
32201 rename FINAL to COMPLETE.
32202 (record_targets_from_bases): Sanity check we found the binfo;
32203 fix COMPLETEP updating.
32204 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
32205 parameter, fix computing of COMPLETEP.
32206 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
32207 at LTO time do demangling.
32208 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
32209 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
32210 parameter.
32211 (gimple_get_virt_method_for_binfo): Likewise.
32212 * gimple-fold.h (gimple_get_virt_method_for_binfo,
32213 gimple_get_virt_method_for_vtable): Update prototypes.
32214
32215 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
32216
32217 PR target/49008
32218 * genautomata.c (add_presence_absence): Fix typo with
32219 {final_}presence_list.
32220
32221 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32222
32223 PR target/60137
32224 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
32225 for VSX/Altivec vectors that land in GPR registers.
32226
32227 2014-02-11 Richard Henderson <rth@redhat.com>
32228 Jakub Jelinek <jakub@redhat.com>
32229
32230 PR debug/59776
32231 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
32232 around drhs if type conversion to lacc->type is not useless.
32233
32234 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32235
32236 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
32237 tuning struct.
32238 (cortex-a57.cortex-a53): Likewise.
32239 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
32240
32241 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32242
32243 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
32244 arm_restrict_it.
32245
32246 2014-02-11 Renlin Li <Renlin.Li@arm.com>
32247
32248 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
32249 add_options_for_arm_vfp3.
32250
32251 2014-02-11 Jeff Law <law@redhat.com>
32252
32253 PR middle-end/54041
32254 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
32255 object with an undesirable mode.
32256
32257 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32258
32259 PR libgomp/60107
32260 * config/i386/sol2-9.h: New file.
32261 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
32262 *-*-solaris2.9*): Use it.
32263
32264 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32265
32266 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
32267 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
32268
32269 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
32270
32271 * config/microblaze/microblaze.c: Extend mcpu version format
32272
32273 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
32274
32275 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
32276
32277 2014-02-10 Richard Henderson <rth@redhat.com>
32278
32279 PR target/59927
32280 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
32281 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
32282 ms-abi vs -mno-accumulate-outgoing-args.
32283 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
32284 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
32285 respect to ms-abi.
32286
32287 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
32288
32289 PR middle-end/60080
32290 * cfgexpand.c (expand_asm_operands): Attach source location to
32291 ASM_INPUT rtx objects.
32292 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
32293
32294 2014-02-10 Nick Clifton <nickc@redhat.com>
32295
32296 * config/mn10300/mn10300.c (popcount): New function.
32297 (mn10300_expand_prologue): Include saved registers in stack usage
32298 count.
32299
32300 2014-02-10 Jeff Law <law@redhat.com>
32301
32302 PR middle-end/52306
32303 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
32304 when changing the SET_DEST of a prior insn to avoid an input reload.
32305
32306 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32307
32308 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
32309 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
32310 -mcall-openbsd, or -mcall-linux.
32311 (CC1_ENDIAN_BIG_SPEC): Remove.
32312 (CC1_ENDIAN_LITTLE_SPEC): Remove.
32313 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32314 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
32315 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
32316 and %cc1_endian_default.
32317 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
32318
32319 2014-02-10 Richard Biener <rguenther@suse.de>
32320
32321 PR tree-optimization/60115
32322 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
32323 MEM_REF handling. Properly verify that the accesses are not
32324 out of the objects bound.
32325
32326 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32327
32328 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
32329 coretex to cortex.
32330
32331 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
32332
32333 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
32334 proper constants and fix formatting.
32335 (possible_polymorphic_call_targets): Fix formatting.
32336
32337 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
32338 Ilya Tocar <ilya.tocar@intel.com>
32339
32340 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
32341 (_mm512_loadu_epi32): Renamed into...
32342 (_mm512_loadu_si512): This.
32343 (_mm512_storeu_epi32): Renamed into...
32344 (_mm512_storeu_si512): This.
32345 (_mm512_maskz_ceil_ps): Removed.
32346 (_mm512_maskz_ceil_pd): Ditto.
32347 (_mm512_maskz_floor_ps): Ditto.
32348 (_mm512_maskz_floor_pd): Ditto.
32349 (_mm512_floor_round_ps): Ditto.
32350 (_mm512_floor_round_pd): Ditto.
32351 (_mm512_ceil_round_ps): Ditto.
32352 (_mm512_ceil_round_pd): Ditto.
32353 (_mm512_mask_floor_round_ps): Ditto.
32354 (_mm512_mask_floor_round_pd): Ditto.
32355 (_mm512_mask_ceil_round_ps): Ditto.
32356 (_mm512_mask_ceil_round_pd): Ditto.
32357 (_mm512_maskz_floor_round_ps): Ditto.
32358 (_mm512_maskz_floor_round_pd): Ditto.
32359 (_mm512_maskz_ceil_round_ps): Ditto.
32360 (_mm512_maskz_ceil_round_pd): Ditto.
32361 (_mm512_expand_pd): Ditto.
32362 (_mm512_expand_ps): Ditto.
32363 * config/i386/i386.c (ix86_builtins): Remove
32364 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
32365 (bdesc_args): Ditto.
32366 * config/i386/predicates.md (const1256_operand): New.
32367 (const_1_to_2_operand): Ditto.
32368 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32369 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32370 (*avx512pf_gatherpf<mode>sf): Ditto.
32371 (avx512pf_gatherpf<mode>df): Ditto.
32372 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32373 (*avx512pf_gatherpf<mode>df): Ditto.
32374 (avx512pf_scatterpf<mode>sf): Ditto.
32375 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32376 (*avx512pf_scatterpf<mode>sf): Ditto.
32377 (avx512pf_scatterpf<mode>df): Ditto.
32378 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32379 (*avx512pf_scatterpf<mode>df): Ditto.
32380 (avx512f_expand<mode>): Removed.
32381 (<shift_insn><mode>3<mask_name>): Change predicate type.
32382
32383 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32384
32385 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
32386 not at the end of datarefs vector use ordered_remove to avoid
32387 reordering datarefs vector.
32388
32389 PR c/59984
32390 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
32391 mark local addressable non-static vars as GOVD_PRIVATE
32392 instead of GOVD_LOCAL.
32393 * omp-low.c (lower_omp_for): Move gimple_bind_vars
32394 and BLOCK_VARS of gimple_bind_block to new_stmt rather
32395 than copying them.
32396
32397 PR middle-end/60092
32398 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
32399 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
32400 assume_aligned or alloc_align attributes.
32401 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
32402 arguments. Handle also assume_aligned and alloc_align attributes.
32403 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
32404 calls to functions with assume_aligned or alloc_align attributes.
32405 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
32406
32407 2014-02-08 Terry Guo <terry.guo@arm.com>
32408
32409 * doc/invoke.texi: Document ARM -march=armv7e-m.
32410
32411 2014-02-08 Jakub Jelinek <jakub@redhat.com>
32412
32413 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
32414 flag on __cilkrts_rethrow builtin.
32415
32416 PR ipa/60026
32417 * ipa-cp.c (determine_versionability): Fail at -O0
32418 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
32419 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
32420
32421 Revert:
32422 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32423
32424 PR ipa/60026
32425 * tree-inline.c (copy_forbidden): Fail for
32426 __attribute__((optimize (0))) functions.
32427
32428 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32429
32430 * varpool.c: Include pointer-set.h.
32431 (varpool_remove_unreferenced_decls): Variables in other partitions
32432 will not be output; be however careful to not lose information
32433 about partitioning.
32434
32435 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
32436
32437 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
32438 lookup in the vtable constructor.
32439
32440 2014-02-07 Jeff Law <law@redhat.com>
32441
32442 PR target/40977
32443 * config/m68k/m68k.md (ashldi_extsi): Turn into a
32444 define_insn_and_split.
32445
32446 * ipa-inline.c (inline_small_functions): Fix typos.
32447
32448 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32449
32450 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
32451 (s390_can_use_return_insn): Declare.
32452 * config/s390/s390.h (EPILOGUE_USES): Define.
32453 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
32454 instructions.
32455 (s390_chunkify_start): Handle return JUMP_LABELs.
32456 (s390_early_mach): Emit a main_pool instruction on the entry edge.
32457 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
32458 (s390_can_use_return_insn): New functions.
32459 (s390_fix_long_loop_prediction): Handle conditional returns.
32460 (TARGET_SET_UP_BY_PROLOGUE): Define.
32461 * config/s390/s390.md (ANY_RETURN): New code iterator.
32462 (*creturn, *csimple_return, return, simple_return): New patterns.
32463
32464 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32465
32466 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
32467 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
32468 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
32469 REG_CFA_RESTORE list when deciding not to restore a register.
32470
32471 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32472
32473 * config/s390/s390.c: Include tree-pass.h and context.h.
32474 (s390_early_mach): New function, split out from...
32475 (s390_emit_prologue): ...here.
32476 (pass_data_s390_early_mach): New pass structure.
32477 (pass_s390_early_mach): New class.
32478 (s390_option_override): Create and register early_mach pass.
32479 Move to end of file.
32480
32481 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
32482
32483 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
32484 to match for the exit block.
32485
32486 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32487
32488 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
32489 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
32490 Reject misaligned operands.
32491
32492 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32493
32494 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
32495
32496 2014-02-07 Richard Biener <rguenther@suse.de>
32497
32498 PR middle-end/60092
32499 * gimple-low.c (lower_builtin_posix_memalign): New function.
32500 (lower_stmt): Call it to lower posix_memalign in a way
32501 to make alignment info accessible.
32502
32503 2014-02-07 Jakub Jelinek <jakub@redhat.com>
32504
32505 PR c++/60082
32506 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
32507 __builtin_setjmp_receiver.
32508
32509 2014-02-07 Richard Biener <rguenther@suse.de>
32510
32511 PR middle-end/60092
32512 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
32513 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
32514 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32515 Handle BUILT_IN_POSIX_MEMALIGN.
32516 (find_func_clobbers): Likewise.
32517 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32518 (call_may_clobber_ref_p_1): Likewise.
32519
32520 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32521
32522 PR ipa/59918
32523 * ipa-devirt.c (record_target_from_binfo): Remove overactive
32524 sanity check.
32525
32526 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32527
32528 PR ipa/59469
32529 * lto-cgraph.c (lto_output_node): Use
32530 symtab_get_symbol_partitioning_class.
32531 (lto_output_varpool_node): likewise.
32532 (symtab_get_symbol_partitioning_class): Move here from
32533 lto/lto-partition.c
32534 * cgraph.h (symbol_partitioning_class): Likewise.
32535 (symtab_get_symbol_partitioning_class): Declare.
32536
32537 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32538
32539 * ggc.h (ggc_internal_cleared_alloc): New macro.
32540 * vec.h (vec_safe_copy): Handle memory stats.
32541 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
32542 * target-globals.c (save_target_globals): Likewise.
32543
32544 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
32545
32546 PR target/60077
32547 * expr.c (emit_move_resolve_push): Export; be bit more selective
32548 on when to clear alias set.
32549 * expr.h (emit_move_resolve_push): Declare.
32550 * function.h (struct function): Add tail_call_marked.
32551 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
32552 * config/i386/i386-protos.h (ix86_expand_push): Remove.
32553 * config/i386/i386.md (TImode move expander): De not call
32554 ix86_expand_push.
32555 (FP push expanders): Preserve memory attributes.
32556 * config/i386/sse.md (push<mode>1): Remove.
32557 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
32558 (ix86_expand_push): Remove.
32559 * config/i386/mmx.md (push<mode>1): Remove.
32560
32561 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32562
32563 PR rtl-optimization/60030
32564 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
32565 lopart with paradoxical subreg before shifting it up by hprec.
32566
32567 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32568
32569 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
32570 Remove extra newline at end of file.
32571 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
32572 (arm_issue_rate): Handle cortexa57.
32573 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
32574 (cortex-a57.cortex-a53): Likewise.
32575
32576 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32577
32578 PR target/59575
32579 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
32580 don't record in REG_FRAME_RELATED_EXPR registers not set in that
32581 bitmask.
32582 (arm_expand_prologue): Adjust all callers.
32583 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
32584 info, registers also at the lowest numbered registers side. Use
32585 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
32586 XEXP.
32587
32588 PR debug/59992
32589 * var-tracking.c (adjust_mems): Before adding a SET to
32590 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
32591
32592 2014-02-06 Alan Modra <amodra@gmail.com>
32593
32594 PR target/60032
32595 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
32596 change SDmode to DDmode when lra_in_progress.
32597
32598 2014-02-06 Jakub Jelinek <jakub@redhat.com>
32599
32600 PR middle-end/59150
32601 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
32602 free_data_ref on the dr first, and before goto again also set dr
32603 to the next dr. For simd_lane_access, free old datarefs[i] before
32604 overwriting it. For get_vectype_for_scalar_type failure, don't
32605 free_data_ref if simd_lane_access.
32606
32607 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
32608
32609 PR target/60062
32610 * tree.h (opts_for_fn): New inline function.
32611 (opt_for_fn): Define.
32612 * config/i386/i386.c (ix86_function_regparm): Use
32613 opt_for_fn (decl, optimize) instead of optimize.
32614
32615 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
32616
32617 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
32618 for SYMBOL_REF in large memory model.
32619
32620 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32621
32622 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
32623 and crypto support.
32624 (cortex-a57): Likewise.
32625 (cortex-a57.cortex-a53): Likewise.
32626
32627 2014-02-06 Yury Gribov <y.gribov@samsung.com>
32628 Kugan Vivekanandarajah <kuganv@linaro.org>
32629
32630 * config/arm/arm.c (arm_vector_alignment_reachable): Check
32631 unaligned_access.
32632 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
32633
32634 2014-02-06 Richard Biener <rguenther@suse.de>
32635
32636 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
32637 set_loop_copy and initialize_original_copy_tables.
32638
32639 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
32640
32641 * config/aarch64/aarch64-simd.md
32642 (aarch64_ashr_simddi): Change QI to SI.
32643
32644 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32645 Jakub Jelinek <jakub@redhat.com>
32646
32647 PR middle-end/60013
32648 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
32649 of the dataflow.
32650
32651 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32652
32653 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
32654 CODE_FOR_altivec_vpku[hw]um to
32655 CODE_FOR_altivec_vpku[hw]um_direct.
32656 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
32657 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
32658 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
32659 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
32660
32661 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32662
32663 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
32664 generation for -maltivec=be.
32665 (altivec_vsumsws): Simplify redundant test.
32666
32667 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32668
32669 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
32670 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
32671 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
32672 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
32673 gen_altivec_vpkuwum.
32674 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
32675 BYTES_BIG_ENDIAN.
32676 (altivec_vpks<VI_char>ss): Likewise.
32677 (altivec_vpks<VI_char>us): Likewise.
32678 (altivec_vpku<VI_char>us): Likewise.
32679 (altivec_vpku<VI_char>um): Likewise.
32680 (altivec_vpku<VI_char>um_direct): New (copy of
32681 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
32682 internal use).
32683 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
32684 target is little endian and -maltivec=be is not specified.
32685 (*altivec_vupkhs<VU_char>_direct): New (copy of
32686 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
32687 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
32688 target is little endian and -maltivec=be is not specified.
32689 (*altivec_vupkls<VU_char>_direct): New (copy of
32690 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
32691 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
32692 little endian and -maltivec=be is not specified.
32693 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
32694 little endian and -maltivec=be is not specified.
32695
32696 2014-02-05 Richard Henderson <rth@redhat.com>
32697
32698 PR debug/52727
32699 * combine-stack-adj.c: Revert r206943.
32700 * sched-int.h (struct deps_desc): Add last_args_size.
32701 * sched-deps.c (init_deps): Initialize it.
32702 (sched_analyze_insn): Add OUTPUT dependencies between insns that
32703 contain REG_ARGS_SIZE notes.
32704
32705 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
32706
32707 * lto-cgraph.c (asm_nodes_output): Make global.
32708 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
32709 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
32710 (driver_handle_option): Handle OPT_fwpa.
32711
32712 2014-02-05 Jakub Jelinek <jakub@redhat.com>
32713
32714 PR ipa/59947
32715 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
32716 a comment typo and formatting issue. If odr_hash hasn't been
32717 created, return vNULL and set *completep to false.
32718
32719 PR middle-end/57499
32720 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
32721 bb with no successors.
32722
32723 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
32724
32725 PR target/59718
32726 * doc/invoke.texi (-march): Clarify documentation for ARM.
32727 (-mtune): Likewise.
32728 (-mcpu): Likewise.
32729
32730 2014-02-05 Richard Biener <rguenther@suse.de>
32731
32732 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
32733 when not vectorizing because of too many alias checks.
32734 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
32735 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
32736
32737 2014-02-05 Nick Clifton <nickc@redhat.com>
32738
32739 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
32740 accept extended registers in any mode when compiling for the MN10300.
32741
32742 2014-02-05 Yury Gribov <y.gribov@samsung.com>
32743
32744 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
32745 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
32746 sanitization attributes.
32747 (can_inline_edge_p): Likewise.
32748 (sanitize_attrs_match_for_inline_p): New function.
32749
32750 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32751
32752 * ipa-prop.c (detect_type_change): Shor circuit testing of
32753 type changes on THIS pointer.
32754
32755 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
32756
32757 PR target/59777
32758 * config/pa/pa.c (legitimize_tls_address): Return original address
32759 if not passed a SYMBOL_REF rtx.
32760 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
32761 addresses.
32762 (pa_emit_move_sequence): Simplify TLS source operands.
32763 (pa_legitimate_constant_p): Reject all TLS constants.
32764 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
32765 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
32766
32767 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32768
32769 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
32770 groups when we know they are controlled by LTO.
32771 * varasm.c (default_binds_local_p_1): If object is in other partition,
32772 it will be resolved locally.
32773
32774 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32775
32776 * config/host-linux.c (linux_gt_pch_use_address): Don't
32777 use SSIZE_MAX because it is not always defined.
32778
32779 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
32780
32781 PR bootstrap/59913
32782 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
32783 threshold for pseudo splitting.
32784 (update_ebb_live_info): Process call argument hard registers and
32785 hard registers from insn definition too.
32786 (max_small_class_regs_num): New constant.
32787 (inherit_in_ebb): Update live hard regs through EBBs. Update
32788 reloads_num only for small register classes. Don't split for
32789 outputs of jumps.
32790
32791 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
32792
32793 PR ipa/60058
32794 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
32795 is non-null.
32796
32797 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
32798
32799 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
32800 visibility is safe.
32801
32802 2014-02-04 Marek Polacek <polacek@redhat.com>
32803
32804 * gdbinit.in (pel): Define.
32805
32806 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
32807
32808 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
32809 behavior.
32810
32811 2014-02-04 Richard Biener <rguenther@suse.de>
32812
32813 PR lto/59723
32814 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
32815 in function context local.
32816 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
32817 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
32818 similar to LTO_imported_decl_ref.
32819
32820 2014-02-04 Jakub Jelinek <jakub@redhat.com>
32821
32822 PR tree-optimization/60002
32823 * cgraphclones.c (build_function_decl_skip_args): Clear
32824 DECL_LANG_SPECIFIC.
32825
32826 PR tree-optimization/60023
32827 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
32828 false to gsi_replace.
32829 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
32830 has been in some EH region and vec_stmt could throw, add
32831 vec_stmt into the same EH region.
32832 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
32833 has no lhs, ignore it.
32834 * internal-fn.c (expand_MASK_LOAD): Likewise.
32835
32836 PR ipa/60026
32837 * tree-inline.c (copy_forbidden): Fail for
32838 __attribute__((optimize (0))) functions.
32839
32840 PR other/58712
32841 * omp-low.c (simd_clone_struct_copy): If from->inbranch
32842 is set, copy one less argument.
32843 (expand_simd_clones): Don't subtract clone_info->inbranch
32844 from simd_clone_struct_alloc argument.
32845
32846 PR rtl-optimization/57915
32847 * recog.c (simplify_while_replacing): If all unary/binary/relational
32848 operation arguments are constant, attempt to simplify those.
32849
32850 PR middle-end/59261
32851 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
32852 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
32853
32854 2014-02-04 Richard Biener <rguenther@suse.de>
32855
32856 PR tree-optimization/60012
32857 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
32858 TBAA disambiguation to all DDRs.
32859
32860 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32861
32862 PR target/59788
32863 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
32864 (LINK_SPEC): Use it for -shared, -shared-libgcc.
32865
32866 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32867
32868 PR ipa/59882
32869 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
32870
32871 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32872
32873 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
32874 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
32875
32876 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32877
32878 PR ipa/59831
32879 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
32880 to figure out targets of polymorphic calls with known decl.
32881 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32882 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
32883 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
32884 (get_polymorphic_call_info): ... here.
32885 (get_polymorphic_call_info_from_invariant): New function.
32886
32887 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32888
32889 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
32890 lookup via vtable pointer; check for type consistency
32891 and turn inconsitent facts into UNREACHABLE.
32892 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32893 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
32894 type inconsistent querries; return UNREACHABLE instead.
32895
32896 2014-02-03 Richard Henderson <rth@twiddle.net>
32897
32898 PR tree-opt/59924
32899 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
32900 already processed this node.
32901 (normalize_one_pred_1): Pass along mark_set.
32902 (normalize_one_pred): Create and destroy a pointer_set_t.
32903 (normalize_one_pred_chain): Likewise.
32904
32905 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
32906
32907 PR gcov-profile/58602
32908 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
32909
32910 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
32911
32912 PR ipa/59831
32913 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
32914 -fno-devirtualize; try to devirtualize by the knowledge of
32915 virtual table pointer given by aggregate propagation.
32916 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
32917 (ipa_print_node_jump_functions): Dump also offset that
32918 is relevant for polymorphic calls.
32919 (determine_known_aggregate_parts): Add arg_type parameter; use it
32920 instead of determining the type from pointer type.
32921 (ipa_compute_jump_functions_for_edge): Update call of
32922 determine_known_aggregate_parts.
32923 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
32924 (gimple_get_virt_method_for_binfo): ... here; simplify using
32925 vtable_pointer_value_to_vtable.
32926 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
32927 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
32928 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
32929 (vtable_pointer_value_to_vtable): Break out from ...; handle also
32930 POINTER_PLUS_EXPR.
32931 (vtable_pointer_value_to_binfo): ... here.
32932 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
32933
32934 2014-02-03 Teresa Johnson <tejohnson@google.com>
32935
32936 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
32937 redef of outer loop index variable.
32938
32939 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
32940
32941 PR c++/53017
32942 PR c++/59211
32943 * doc/extend.texi (Function Attributes): Typo.
32944
32945 2014-02-03 Cong Hou <congh@google.com>
32946
32947 PR tree-optimization/60000
32948 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
32949 if the vectorized statement is a store. A store statement can only
32950 appear at the end of pattern statements.
32951
32952 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
32953
32954 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
32955 (ix86_option_override_internal): Default long double to 64-bit for
32956 32-bit Bionic and to 128-bit for 64-bit Bionic.
32957
32958 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
32959 TARGET_LONG_DOUBLE_128 is true.
32960 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
32961
32962 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
32963 (mlong-double-64): Negate -mlong-double-128.
32964 (mlong-double-128): New option.
32965
32966 * config/i386/i386-c.c (ix86_target_macros): Define
32967 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
32968
32969 * doc/invoke.texi: Document -mlong-double-128.
32970
32971 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
32972
32973 PR rtl-optimization/60024
32974 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
32975
32976 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
32977
32978 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
32979
32980 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
32981
32982 PR rtl-optimization/57662
32983 * sel-sched.c (code_motion_path_driver): Do not mark already not
32984 existing blocks in the visiting bitmap.
32985
32986 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
32987
32988 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
32989 on the insn being emitted.
32990
32991 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
32992 Will Deacon <will.deacon@arm.com>
32993
32994 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
32995
32996 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32997
32998 * config/arm/arm-tables.opt: Regenerate.
32999
33000 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33001
33002 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33003 for vector types other than V16QImode.
33004 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33005 define_expand, and call altivec_expand_vec_perm_le when producing
33006 code with little endian element order.
33007 (*altivec_vperm_<mode>_internal): New insn having previous
33008 behavior of altivec_vperm_<mode>.
33009 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33010 altivec_expand_vec_perm_le when producing code with little endian
33011 element order.
33012 (*altivec_vperm_<mode>_uns_internal): New insn having previous
33013 behavior of altivec_vperm_<mode>_uns.
33014
33015 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33016
33017 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33018 (altivec_vsumsws): Add handling for -maltivec=be with a little
33019 endian target.
33020 (altivec_vsumsws_direct): New.
33021 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33022 gen_altivec_vsumsws.
33023
33024 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33025
33026 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33027 vtable_pointer_value_to_binfo): New functions.
33028 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33029 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33030
33031 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
33032
33033 * config/nios2/nios2.md (load_got_register): Initialize GOT
33034 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33035 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33036
33037 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33038
33039 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33040 preserverd by passthrough, do not propagate the type.
33041
33042 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33043
33044 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33045 (mips_atomic_assign_expand_fenv): New function.
33046 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33047
33048 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33049
33050 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33051 (__builtin_mips_set_fcsr): Likewise.
33052 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33053 MIPS_USI_FTYPE_VOID.
33054 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33055 (mips16_expand_set_fcsr): Likewise.
33056 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33057 (mips16_set_fcsr_stub): Likewise.
33058 (mips16_get_fcsr_one_only_stub): New class.
33059 (mips16_set_fcsr_one_only_stub): Likewise.
33060 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33061 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33062 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33063 (hard_float): New availability predicate.
33064 (mips_builtins): Add get_fcsr and set_fcsr.
33065 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33066 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33067 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33068 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33069 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33070 patterns.
33071
33072 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33073
33074 * config/mips/mips.c (mips_one_only_stub): New class.
33075 (mips_need_mips16_rdhwr_p): Replace with...
33076 (mips16_rdhwr_stub): ...this new variable.
33077 (mips16_stub_call_address): New function.
33078 (mips16_rdhwr_one_only_stub): New class.
33079 (mips_expand_thread_pointer): Use mips16_stub_call_address.
33080 (mips_output_mips16_rdhwr): Delete.
33081 (mips_finish_stub): New function.
33082 (mips_code_end): Use it to handle rdhwr stubs.
33083
33084 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
33085
33086 PR target/60017
33087 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33088 when calculating size of integer atomic types.
33089
33090 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
33091
33092 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33093
33094 2014-02-01 Jakub Jelinek <jakub@redhat.com>
33095
33096 PR tree-optimization/60003
33097 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33098 * profile.c (branch_prob): Use gimple_call_builtin_p
33099 to check for BUILT_IN_SETJMP_RECEIVER.
33100 * tree-inline.c (copy_bb): Call notice_special_calls.
33101
33102 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
33103
33104 PR bootstrap/59985
33105 * lra-constraints.c (process_alt_operands): Update reload_sum only
33106 on the first pass.
33107
33108 2014-01-31 Richard Henderson <rth@redhat.com>
33109
33110 PR middle-end/60004
33111 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
33112 until after else_eh is processed.
33113
33114 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33115
33116 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
33117 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
33118 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
33119 in smmintrin.h, remove them.
33120 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
33121 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
33122 * config/i386/i386.md (ROUND_SAE): Fix value.
33123 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
33124 (const48_operand): New.
33125 * config/i386/subst.md (round), (round_expand): Use
33126 const_4_or_8_to_11_operand.
33127 (round_saeonly), (round_saeonly_expand): Use const48_operand.
33128
33129 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
33130
33131 * config/i386/constraints.md (Yk): Swap meaning with k.
33132 * config/i386/i386.md (movhi_internal): Change Yk to k.
33133 (movqi_internal): Ditto.
33134 (*k<logic><mode>): Ditto.
33135 (*andhi_1): Ditto.
33136 (*andqi_1): Ditto.
33137 (kandn<mode>): Ditto.
33138 (*<code>hi_1): Ditto.
33139 (*<code>qi_1): Ditto.
33140 (kxnor<mode>): Ditto.
33141 (kortestzhi): Ditto.
33142 (kortestchi): Ditto.
33143 (kunpckhi): Ditto.
33144 (*one_cmplhi2_1): Ditto.
33145 (*one_cmplqi2_1): Ditto.
33146 * config/i386/sse.md (): Change k to Yk.
33147 (avx512f_load<mode>_mask): Ditto.
33148 (avx512f_blendm<mode>): Ditto.
33149 (avx512f_store<mode>_mask): Ditto.
33150 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
33151 (avx512f_storedqu<mode>_mask): Ditto.
33152 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
33153 Ditto.
33154 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
33155 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
33156 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
33157 (avx512f_maskcmp<mode>3): Ditto.
33158 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
33159 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
33160 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
33161 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
33162 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
33163 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
33164 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
33165 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
33166 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
33167 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
33168 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
33169 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
33170 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
33171 (vec_extract_lo_<mode>_maskm): Ditto.
33172 (vec_extract_hi_<mode>_maskm): Ditto.
33173 (avx512f_vternlog<mode>_mask): Ditto.
33174 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
33175 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
33176 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
33177 (avx512f_<code>v8div16qi2_mask): Ditto.
33178 (avx512f_<code>v8div16qi2_mask_store): Ditto.
33179 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
33180 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
33181 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
33182 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
33183 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33184 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33185 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33186 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33187 (avx512cd_maskb_vec_dupv8di): Ditto.
33188 (avx512cd_maskw_vec_dupv16si): Ditto.
33189 (avx512f_vpermi2var<mode>3_maskz): Ditto.
33190 (avx512f_vpermi2var<mode>3_mask): Ditto.
33191 (avx512f_vpermi2var<mode>3_mask): Ditto.
33192 (avx512f_vpermt2var<mode>3_maskz): Ditto.
33193 (*avx512f_gathersi<mode>): Ditto.
33194 (*avx512f_gathersi<mode>_2): Ditto.
33195 (*avx512f_gatherdi<mode>): Ditto.
33196 (*avx512f_gatherdi<mode>_2): Ditto.
33197 (*avx512f_scattersi<mode>): Ditto.
33198 (*avx512f_scatterdi<mode>): Ditto.
33199 (avx512f_compress<mode>_mask): Ditto.
33200 (avx512f_compressstore<mode>_mask): Ditto.
33201 (avx512f_expand<mode>_mask): Ditto.
33202 * config/i386/subst.md (mask): Change k to Yk.
33203 (mask_scalar_merge): Ditto.
33204 (sd): Ditto.
33205
33206 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
33207
33208 * doc/extend.texi (Vector Extensions): Document ?: in C++.
33209
33210 2014-01-31 Richard Biener <rguenther@suse.de>
33211
33212 PR middle-end/59990
33213 * builtins.c (fold_builtin_memory_op): Make sure to not
33214 use a floating-point mode or a boolean or enumeral type for
33215 the copy operation.
33216
33217 2014-01-30 DJ Delorie <dj@redhat.com>
33218
33219 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
33220 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
33221 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
33222 whenever main() has an epilogue.
33223
33224 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33225
33226 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
33227 unused variable "field".
33228 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
33229 (vsx_mergeh_<mode>): Likewise.
33230 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
33231 (altivec_vmrghh): Likewise.
33232 (altivec_vmrghw): Likewise.
33233 (altivec_vmrglb): Likewise.
33234 (altivec_vmrglh): Likewise.
33235 (altivec_vmrglw): Likewise.
33236 (altivec_vspltb): Add missing uses.
33237 (altivec_vsplth): Likewise.
33238 (altivec_vspltw): Likewise.
33239 (altivec_vspltsf): Likewise.
33240
33241 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33242
33243 PR target/59923
33244 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
33245 frame related instructions.
33246
33247 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
33248
33249 PR rtl-optimization/59959
33250 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
33251 any reload of register whose subreg is invalid.
33252
33253 2014-01-30 Jakub Jelinek <jakub@redhat.com>
33254
33255 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
33256 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
33257 Add missing return type - void.
33258
33259 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33260
33261 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
33262 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
33263 remove element index adjustment for endian (now handled in vsx.md
33264 and altivec.md).
33265 (altivec_expand_vec_perm_const): Use
33266 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
33267 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
33268 (vsx_xxspltw_<mode>): Adjust element index for little endian.
33269 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
33270 define_expand and a new define_insn *altivec_vspltb_internal;
33271 adjust for -maltivec=be on a little endian target.
33272 (altivec_vspltb_direct): New.
33273 (altivec_vsplth): Divide into a define_expand and a new
33274 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
33275 little endian target.
33276 (altivec_vsplth_direct): New.
33277 (altivec_vspltw): Divide into a define_expand and a new
33278 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
33279 little endian target.
33280 (altivec_vspltw_direct): New.
33281 (altivec_vspltsf): Divide into a define_expand and a new
33282 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
33283 a little endian target.
33284
33285 2014-01-30 Richard Biener <rguenther@suse.de>
33286
33287 PR tree-optimization/59993
33288 * tree-ssa-forwprop.c (associate_pointerplus): Check we
33289 can propagate form the earlier stmt and avoid the transform
33290 when the intermediate result is needed.
33291
33292 2014-01-30 Alangi Derick <alangiderick@gmail.com>
33293
33294 * README.Portability: Fix typo.
33295
33296 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
33297
33298 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
33299 comparison_operator with ordered_comparison_operator.
33300
33301 2014-01-30 Nick Clifton <nickc@redhat.com>
33302
33303 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
33304 Rename to mn10300_store_multiple_regs.
33305 * config/mn10300/mn10300.c: Likewise.
33306 * config/mn10300/mn10300.md (store_movm): Fix typo: call
33307 store_multiple_regs.
33308 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
33309 Call mn10300_store_multiple_regs.
33310
33311 2014-01-30 Nick Clifton <nickc@redhat.com>
33312 DJ Delorie <dj@redhat.com>
33313
33314 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
33315 %fp 2 to keep registers after it properly word-aligned.
33316 (rl78_alloc_physical_registers_umul): Handle the case where both
33317 input operands are the same.
33318
33319 2014-01-30 Richard Biener <rguenther@suse.de>
33320
33321 PR tree-optimization/59903
33322 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
33323 check properly.
33324
33325 2014-01-30 Jason Merrill <jason@redhat.com>
33326
33327 PR c++/59633
33328 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
33329
33330 PR c++/59645
33331 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
33332
33333 2014-01-30 Richard Biener <rguenther@suse.de>
33334
33335 PR tree-optimization/59951
33336 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
33337
33338 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
33339
33340 PR target/59784
33341 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
33342 SFmode to DFmode case.
33343
33344 2014-01-29 DJ Delorie <dj@redhat.com>
33345
33346 * config/msp430/msp430.opt (-minrt): New.
33347 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
33348 if -minrt given.
33349 (ENDFILE_SPEC): Likewise.
33350
33351 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
33352
33353 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
33354 (estimate_function_body_sizes): Use it.
33355
33356 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
33357
33358 PR c++/58561
33359 * dwarf2out.c (is_cxx_auto): New.
33360 (is_base_type): Use it.
33361 (gen_type_die_with_usage): Likewise.
33362
33363 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33364
33365 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
33366 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
33367 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
33368 -maltivec=be with LE targets.
33369 (vsx_mergeh_<mode>): Likewise.
33370 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
33371 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
33372 (altivec_vmrghb): Replace with define_expand and new
33373 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
33374 (altivec_vmrghb_direct): New define_insn.
33375 (altivec_vmrghh): Replace with define_expand and new
33376 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
33377 (altivec_vmrghh_direct): New define_insn.
33378 (altivec_vmrghw): Replace with define_expand and new
33379 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
33380 (altivec_vmrghw_direct): New define_insn.
33381 (*altivec_vmrghsf): Adjust for endianness.
33382 (altivec_vmrglb): Replace with define_expand and new
33383 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
33384 (altivec_vmrglb_direct): New define_insn.
33385 (altivec_vmrglh): Replace with define_expand and new
33386 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
33387 (altivec_vmrglh_direct): New define_insn.
33388 (altivec_vmrglw): Replace with define_expand and new
33389 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
33390 (altivec_vmrglw_direct): New define_insn.
33391 (*altivec_vmrglsf): Adjust for endianness.
33392 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33393 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33394 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
33395 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
33396 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33397 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33398 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
33399 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
33400
33401 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
33402
33403 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
33404 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
33405 whitespace.
33406
33407 2014-01-29 Richard Biener <rguenther@suse.de>
33408
33409 PR tree-optimization/58742
33410 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
33411 associate_pointerplus_align.
33412 (associate_pointerplus_diff): New function.
33413 (associate_pointerplus): Likewise. Call associate_pointerplus_align
33414 and associate_pointerplus_diff.
33415
33416 2014-01-29 Richard Biener <rguenther@suse.de>
33417
33418 * lto-streamer.h (LTO_major_version): Bump to 3.
33419 (LTO_minor_version): Reset to 0.
33420
33421 2014-01-29 Renlin Li <Renlin.Li@arm.com>
33422
33423 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
33424 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
33425 (arm_file_start): Generate correct asm header for armv7ve.
33426 * config/arm/bpabi.h: Add multilib support for armv7ve.
33427 * config/arm/driver-arm.c: Change the architectures of cortex-a7
33428 and cortex-a15 to armv7ve.
33429 * config/arm/t-aprofile: Add multilib support for armv7ve.
33430 * doc/invoke.texi: Document -march=armv7ve.
33431
33432 2014-01-29 Richard Biener <rguenther@suse.de>
33433
33434 PR tree-optimization/58742
33435 * tree-ssa-forwprop.c (associate_plusminus): Return true
33436 if we changed sth, defer EH cleanup to ...
33437 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
33438 (simplify_mult): New function.
33439
33440 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33441
33442 PR middle-end/59917
33443 PR tree-optimization/59920
33444 * tree.c (build_common_builtin_nodes): Remove
33445 __builtin_setjmp_dispatcher initialization.
33446 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
33447 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
33448 instead of gsi_after_labels + manually skipping debug stmts.
33449 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
33450 ignore bbs with IFN_ABNORMAL_DISPATCHER.
33451 * tree-inline.c (copy_edges_for_bb): Remove
33452 can_make_abnormal_goto argument, instead add abnormal_goto_dest
33453 argument. Ignore computed_goto_p stmts. Don't call
33454 make_abnormal_goto_edges. If a call might need abnormal edges
33455 for non-local gotos, see if it already has an edge to
33456 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
33457 with true argument, don't do anything then, otherwise add
33458 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
33459 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
33460 caller.
33461 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
33462 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
33463 (lower_stmt): Don't set data->calls_builtin_setjmp.
33464 (lower_builtin_setjmp): Adjust comment.
33465 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
33466 * tree-cfg.c (found_computed_goto): Remove.
33467 (factor_computed_gotos): Remove.
33468 (make_goto_expr_edges): Return bool, true for computed gotos.
33469 Don't call make_abnormal_goto_edges.
33470 (build_gimple_cfg): Don't set found_computed_goto, don't call
33471 factor_computed_gotos.
33472 (computed_goto_p): No longer static.
33473 (make_blocks): Don't set found_computed_goto.
33474 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
33475 (make_edges): If make_goto_expr_edges returns true, push bb
33476 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
33477 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
33478 vector. Record mapping between bbs and OpenMP regions if there
33479 are any, adjust make_gimple_omp_edges caller. Call
33480 handle_abnormal_edges.
33481 (make_abnormal_goto_edges): Remove.
33482 * tree-cfg.h (make_abnormal_goto_edges): Remove.
33483 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
33484 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
33485 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
33486 * internal-fn.def (ABNORMAL_DISPATCHER): New.
33487 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
33488 filling *region also set *region_idx to (*region)->entry->index.
33489
33490 PR other/58712
33491 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
33492 For REGs set ORIGINAL_REGNO.
33493
33494 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
33495
33496 * doc/md.texi: Mention that a target shouldn't implement
33497 vec_widen_(s|u)mul_even/odd pair if it is less efficient
33498 than hi/lo pair.
33499
33500 2014-01-29 Jakub Jelinek <jakub@redhat.com>
33501
33502 PR tree-optimization/59594
33503 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
33504 a copy of the datarefs vector rather than the vector itself.
33505
33506 2014-01-28 Jason Merrill <jason@redhat.com>
33507
33508 PR c++/53756
33509 * dwarf2out.c (auto_die): New static.
33510 (gen_type_die_with_usage): Handle C++1y 'auto'.
33511 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
33512 on definition.
33513
33514 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
33515
33516 PR target/59672
33517 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
33518 (SPEC_X32): Likewise.
33519 (SPEC_64): Likewise.
33520 * config/i386/i386.c (ix86_option_override_internal): Turn off
33521 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
33522 for TARGET_16BIT.
33523 (x86_file_start): Output .code16gcc for TARGET_16BIT.
33524 * config/i386/i386.h (TARGET_16BIT): New macro.
33525 (TARGET_16BIT_P): Likewise.
33526 * config/i386/i386.opt: Add m16.
33527 * doc/invoke.texi: Document -m16.
33528
33529 2014-01-28 Jakub Jelinek <jakub@redhat.com>
33530
33531 PR preprocessor/59935
33532 * input.c (location_get_source_line): Bail out on when line number
33533 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
33534
33535 2014-01-28 Richard Biener <rguenther@suse.de>
33536
33537 PR tree-optimization/58742
33538 * tree-ssa-forwprop.c (associate_plusminus): Handle
33539 pointer subtraction of the form (T)(P + A) - (T)P.
33540
33541 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33542
33543 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
33544 at const_int_cost.
33545
33546 2014-01-28 Richard Biener <rguenther@suse.de>
33547
33548 Revert
33549 2014-01-28 Richard Biener <rguenther@suse.de>
33550
33551 PR rtl-optimization/45364
33552 PR rtl-optimization/59890
33553 * var-tracking.c (local_get_addr_clear_given_value): Handle
33554 already cleared slot.
33555 (val_reset): Handle not allocated local_get_addr_cache.
33556 (vt_find_locations): Use post-order on the inverted CFG.
33557
33558 2014-01-28 Richard Biener <rguenther@suse.de>
33559
33560 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
33561
33562 2014-01-28 Richard Biener <rguenther@suse.de>
33563
33564 PR rtl-optimization/45364
33565 PR rtl-optimization/59890
33566 * var-tracking.c (local_get_addr_clear_given_value): Handle
33567 already cleared slot.
33568 (val_reset): Handle not allocated local_get_addr_cache.
33569 (vt_find_locations): Use post-order on the inverted CFG.
33570
33571 2014-01-28 Alan Modra <amodra@gmail.com>
33572
33573 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
33574 * configure.ac <recursive call for build != host>: Define
33575 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
33576 and LD_FOR_BUILD too.
33577 * configure: Regenerate.
33578
33579 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
33580
33581 * config/i386/i386.c (get_builtin_code_for_version): Separate
33582 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
33583 Broadwell from Haswell.
33584
33585 2014-01-27 Steve Ellcey <sellcey@mips.com>
33586
33587 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33588 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
33589 * config/mips/mips.c (mips_option_override): Change setting
33590 of TARGET_DSP.
33591 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
33592 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
33593 Change from Mask to Var.
33594
33595 2014-01-27 Jeff Law <law@redhat.com>
33596
33597 * ipa-inline.c (inline_small_functions): Fix typo.
33598
33599 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
33600
33601 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
33602 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
33603 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
33604 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
33605 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
33606 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
33607 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
33608 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
33609 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
33610 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
33611 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
33612 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
33613 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
33614 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
33615 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
33616 (_mm512_storeu_epi64): Ditto.
33617 (_mm512_cmpge_epi32_mask): Ditto.
33618 (_mm512_cmpge_epu32_mask): Ditto.
33619 (_mm512_cmpge_epi64_mask): Ditto.
33620 (_mm512_cmpge_epu64_mask): Ditto.
33621 (_mm512_cmple_epi32_mask): Ditto.
33622 (_mm512_cmple_epu32_mask): Ditto.
33623 (_mm512_cmple_epi64_mask): Ditto.
33624 (_mm512_cmple_epu64_mask): Ditto.
33625 (_mm512_cmplt_epi32_mask): Ditto.
33626 (_mm512_cmplt_epu32_mask): Ditto.
33627 (_mm512_cmplt_epi64_mask): Ditto.
33628 (_mm512_cmplt_epu64_mask): Ditto.
33629 (_mm512_cmpneq_epi32_mask): Ditto.
33630 (_mm512_cmpneq_epu32_mask): Ditto.
33631 (_mm512_cmpneq_epi64_mask): Ditto.
33632 (_mm512_cmpneq_epu64_mask): Ditto.
33633 (_mm512_expand_pd): Ditto.
33634 (_mm512_expand_ps): Ditto.
33635 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
33636 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
33637 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
33638 * config/i386/i386.c (ix86_builtins): Add
33639 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
33640 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
33641 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
33642 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
33643 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
33644 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
33645 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
33646 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
33647 IX86_BUILTIN_PMOVUSQW512_MEM.
33648 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
33649 __builtin_ia32_pmovsqd512mem_mask,
33650 __builtin_ia32_pmovqd512mem_mask,
33651 __builtin_ia32_pmovusqw512mem_mask,
33652 __builtin_ia32_pmovsqw512mem_mask,
33653 __builtin_ia32_pmovqw512mem_mask,
33654 __builtin_ia32_pmovusdw512mem_mask,
33655 __builtin_ia32_pmovsdw512mem_mask,
33656 __builtin_ia32_pmovdw512mem_mask,
33657 __builtin_ia32_pmovqb512mem_mask,
33658 __builtin_ia32_pmovusqb512mem_mask,
33659 __builtin_ia32_pmovsqb512mem_mask,
33660 __builtin_ia32_pmovusdb512mem_mask,
33661 __builtin_ia32_pmovsdb512mem_mask,
33662 __builtin_ia32_pmovdb512mem_mask.
33663 (bdesc_args): Add __builtin_ia32_expanddf512,
33664 __builtin_ia32_expandsf512.
33665 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
33666 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
33667 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
33668 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
33669 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
33670 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
33671 (avx512f_<code>v8div16qi2_mask_store): This.
33672 (avx512f_expand<mode>): New.
33673
33674 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
33675
33676 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
33677 New.
33678 (_mm512_mask_prefetch_i64gather_pd): Ditto.
33679 (_mm512_prefetch_i32scatter_pd): Ditto.
33680 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
33681 (_mm512_prefetch_i64scatter_pd): Ditto.
33682 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
33683 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
33684 (_mm512_mask_prefetch_i64gather_ps): Ditto.
33685 (_mm512_prefetch_i32scatter_ps): Ditto.
33686 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
33687 (_mm512_prefetch_i64scatter_ps): Ditto.
33688 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
33689 * config/i386/i386-builtin-types.def: Define
33690 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
33691 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
33692 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
33693 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
33694 IX86_BUILTIN_SCATTERPFQPD.
33695 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
33696 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
33697 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
33698 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
33699 __builtin_ia32_scatterpfqps.
33700 (ix86_expand_builtin): Expand new built-ins.
33701 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
33702 fix memory access data type.
33703 (*avx512pf_gatherpf<mode>_mask): Ditto.
33704 (*avx512pf_gatherpf<mode>): Ditto.
33705 (avx512pf_scatterpf<mode>): Ditto.
33706 (*avx512pf_scatterpf<mode>_mask): Ditto.
33707 (*avx512pf_scatterpf<mode>): Ditto.
33708 (GATHER_SCATTER_SF_MEM_MODE): New.
33709 (avx512pf_gatherpf<mode>df): Ditto.
33710 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33711 (*avx512pf_scatterpf<mode>df): Ditto.
33712
33713 2014-01-27 Jakub Jelinek <jakub@redhat.com>
33714
33715 PR bootstrap/59934
33716 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
33717 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
33718 reached.
33719
33720 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33721
33722 * common/config/arm/arm-common.c
33723 (arm_rewrite_mcpu): Handle multiple names.
33724 * config/arm/arm.h
33725 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33726
33727 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
33728
33729 * gimple-builder.h (create_gimple_tmp): Delete.
33730
33731 2014-01-27 Christian Bruel <christian.bruel@st.com>
33732
33733 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
33734 words comparisons.
33735
33736 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
33737
33738 * config/pa/pa.md (call): Generate indirect long calls to non-local
33739 functions when outputing 32-bit code.
33740 (call_value): Likewise except for special call to buggy powf function.
33741
33742 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
33743 portable runtime and PIC indirect calls.
33744 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
33745 and PIC call sequences. Use ldo instead of blr to set return register
33746 in PIC call sequence.
33747
33748 2014-01-25 Walter Lee <walt@tilera.com>
33749
33750 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
33751 avoid clobbering a live register.
33752
33753 2014-01-25 Walter Lee <walt@tilera.com>
33754
33755 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
33756 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
33757 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
33758 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
33759
33760 2014-01-25 Walter Lee <walt@tilera.com>
33761
33762 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
33763 arguments on even registers.
33764 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
33765 STACK_BOUNDARY.
33766 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
33767 (BIGGEST_ALIGNMENT): Ditto.
33768 (BIGGEST_FIELD_ALIGNMENT): Ditto.
33769
33770 2014-01-25 Walter Lee <walt@tilera.com>
33771
33772 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
33773 insns before bundling.
33774 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
33775
33776 2014-01-25 Walter Lee <walt@tilera.com>
33777
33778 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
33779 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
33780 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
33781
33782 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33783
33784 * config/mips/constraints.md (kl): Delete.
33785 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
33786 define expands, using...
33787 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
33788 instructions for MIPS16.
33789 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
33790 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
33791
33792 2014-01-25 Walter Lee <walt@tilera.com>
33793
33794 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
33795 (clzdi2): Ditto.
33796 (ffsdi2): Ditto.
33797
33798 2014-01-25 Walter Lee <walt@tilera.com>
33799
33800 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
33801 (TARGET_EXPAND_TO_RTL_HOOK): Define.
33802
33803 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
33804
33805 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
33806 Handle XOR.
33807
33808 2014-01-25 Jakub Jelinek <jakub@redhat.com>
33809
33810 * print-rtl.c (in_call_function_usage): New var.
33811 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
33812 EXPR_LIST mode as mode and not as reg note name.
33813
33814 PR middle-end/59561
33815 * cfgloopmanip.c (copy_loop_info): If
33816 loop->warned_aggressive_loop_optimizations, make sure
33817 the flag is set in target loop too.
33818
33819 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
33820
33821 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
33822 flag_cilkplus.
33823 * builtins.def: Likewise.
33824 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
33825 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
33826 * ira.c (ira_setup_eliminable_regset): Likewise.
33827 * omp-low.c (gate_expand_omp): Likewise.
33828 (execute_lower_omp): Likewise.
33829 (diagnose_sb_0): Likewise.
33830 (gate_diagnose_omp_blocks): Likewise.
33831 (simd_clone_clauses_extract): Likewise.
33832 (gate): Likewise.
33833
33834 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33835
33836 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
33837 correction for little endian...
33838 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
33839 here.
33840
33841 2014-01-24 Jeff Law <law@redhat.com>
33842
33843 PR tree-optimization/59919
33844 * tree-vrp.c (find_assert_locations_1): Do not register asserts
33845 for non-returning calls.
33846
33847 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
33848
33849 * common/config/aarch64/aarch64-common.c
33850 (aarch64_rewrite_mcpu): Handle multiple names.
33851 * config/aarch64/aarch64.h
33852 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
33853
33854 2014-01-24 Dodji Seketeli <dodji@redhat.com>
33855
33856 * input.c (add_file_to_cache_tab): Handle the case where fopen
33857 returns NULL.
33858
33859 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
33860
33861 PR target/59929
33862 * config/i386/i386.md (pushsf splitter): Get stack adjustment
33863 from push operand if code of push isn't PRE_DEC.
33864
33865 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
33866
33867 PR target/59909
33868 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
33869 -mquad-memory-atomic. Update -mquad-memory documentation to say
33870 it is only used for non-atomic loads/stores.
33871
33872 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
33873 -mquad-memory or -mquad-memory-atomic switches.
33874
33875 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
33876 -mquad-memory-atomic to ISA 2.07 support.
33877
33878 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
33879 to separate support of normal quad word memory operations (ldq, stq)
33880 from the atomic quad word memory operations.
33881
33882 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
33883 support to separate non-atomic quad word operations from atomic
33884 quad word operations. Disable non-atomic quad word operations in
33885 little endian mode so that we don't have to swap words after the
33886 load and before the store.
33887 (quad_load_store_p): Add comment about atomic quad word support.
33888 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
33889 options printed with -mdebug=reg.
33890
33891 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
33892 -mquad-memory-atomic as the test for whether we have quad word
33893 atomic instructions.
33894 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
33895 or -mp8-vector are used, allow byte/half-word atomic operations.
33896
33897 * config/rs6000/sync.md (load_lockedti): Insure that the address
33898 is a proper indexed or indirect address for the lqarx instruction.
33899 On little endian systems, swap the hi/lo registers after the lqarx
33900 instruction.
33901 (load_lockedpti): Use indexed_or_indirect_operand predicate to
33902 insure the address is valid for the lqarx instruction.
33903 (store_conditionalti): Insure that the address is a proper indexed
33904 or indirect address for the stqcrx. instruction. On little endian
33905 systems, swap the hi/lo registers before doing the stqcrx.
33906 instruction.
33907 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
33908 insure the address is valid for the stqcrx. instruction.
33909
33910 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
33911 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
33912 type of quad memory support is available.
33913
33914 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
33915
33916 PR regression/59915
33917 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
33918 there is a danger of looping.
33919
33920 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
33921
33922 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
33923 force flag_ira_loop_pressure if set via command line.
33924
33925 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
33926
33927 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
33928 (ashr_simd): New builtin handling DI mode.
33929 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
33930 (aarch64_sshr_simddi): New match pattern.
33931 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
33932 (vshrd_n_s64): Likewise.
33933 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
33934
33935 2014-01-23 Nick Clifton <nickc@redhat.com>
33936
33937 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
33938 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
33939 favour of mcu specific scripts.
33940 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
33941 430x multilibs.
33942
33943 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
33944 Alex Velenko <Alex.Velenko@arm.com>
33945
33946 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
33947 (vaddv_s16): Likewise.
33948 (vaddv_s32): Likewise.
33949 (vaddv_u8): Likewise.
33950 (vaddv_u16): Likewise.
33951 (vaddv_u32): Likewise.
33952 (vaddvq_s8): Likewise.
33953 (vaddvq_s16): Likewise.
33954 (vaddvq_s32): Likewise.
33955 (vaddvq_s64): Likewise.
33956 (vaddvq_u8): Likewise.
33957 (vaddvq_u16): Likewise.
33958 (vaddvq_u32): Likewise.
33959 (vaddvq_u64): Likewise.
33960 (vaddv_f32): Likewise.
33961 (vaddvq_f32): Likewise.
33962 (vaddvq_f64): Likewise.
33963 (vmaxv_f32): Likewise.
33964 (vmaxv_s8): Likewise.
33965 (vmaxv_s16): Likewise.
33966 (vmaxv_s32): Likewise.
33967 (vmaxv_u8): Likewise.
33968 (vmaxv_u16): Likewise.
33969 (vmaxv_u32): Likewise.
33970 (vmaxvq_f32): Likewise.
33971 (vmaxvq_f64): Likewise.
33972 (vmaxvq_s8): Likewise.
33973 (vmaxvq_s16): Likewise.
33974 (vmaxvq_s32): Likewise.
33975 (vmaxvq_u8): Likewise.
33976 (vmaxvq_u16): Likewise.
33977 (vmaxvq_u32): Likewise.
33978 (vmaxnmv_f32): Likewise.
33979 (vmaxnmvq_f32): Likewise.
33980 (vmaxnmvq_f64): Likewise.
33981 (vminv_f32): Likewise.
33982 (vminv_s8): Likewise.
33983 (vminv_s16): Likewise.
33984 (vminv_s32): Likewise.
33985 (vminv_u8): Likewise.
33986 (vminv_u16): Likewise.
33987 (vminv_u32): Likewise.
33988 (vminvq_f32): Likewise.
33989 (vminvq_f64): Likewise.
33990 (vminvq_s8): Likewise.
33991 (vminvq_s16): Likewise.
33992 (vminvq_s32): Likewise.
33993 (vminvq_u8): Likewise.
33994 (vminvq_u16): Likewise.
33995 (vminvq_u32): Likewise.
33996 (vminnmv_f32): Likewise.
33997 (vminnmvq_f32): Likewise.
33998 (vminnmvq_f64): Likewise.
33999
34000 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34001
34002 * config/aarch64/aarch64-simd.md
34003 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34004 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34005 (*aarch64_mul3_elt<mode>): Likewise.
34006 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34007 (*aarch64_mul3_elt_to_64v2df): Likewise.
34008 (*aarch64_mla_elt<mode>): Likewise.
34009 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34010 (*aarch64_mls_elt<mode>): Likewise.
34011 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34012 (*aarch64_fma4_elt<mode>): Likewise.
34013 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34014 (*aarch64_fma4_elt_to_64v2df): Likewise.
34015 (*aarch64_fnma4_elt<mode>): Likewise.
34016 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34017 (*aarch64_fnma4_elt_to_64v2df): Likewise.
34018 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34019 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34020 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34021 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34022 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34023 (aarch64_sqdmull_lane<mode>_internal): Likewise.
34024 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34025
34026 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
34027
34028 * config/aarch64/aarch64-simd.md
34029 (aarch64_be_checked_get_lane<mode>): New define_expand.
34030 * config/aarch64/aarch64-simd-builtins.def
34031 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34032 New builtin definition.
34033 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34034 Use new safe be builtin.
34035
34036 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34037
34038 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34039 New define_insn.
34040 (aarch64_be_st1<mode>): Likewise.
34041 (aarch_ld1<VALL:mode>): Define_expand modified.
34042 (aarch_st1<VALL:mode>): Likewise.
34043 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34044 (UNSPEC_ST1): Likewise.
34045
34046 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
34047
34048 * config/microblaze/microblaze.md: Add trap insn and attribute
34049
34050 2014-01-23 Dodji Seketeli <dodji@redhat.com>
34051
34052 PR preprocessor/58580
34053 * input.h (location_get_source_line): Take an additional line_size
34054 parameter.
34055 (void diagnostics_file_cache_fini): Declare new function.
34056 * input.c (struct fcache): New type.
34057 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34058 New static constants.
34059 (diagnostic_file_cache_init, total_lines_num)
34060 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34061 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34062 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34063 (get_next_line, read_next_line, goto_next_line, read_line_num):
34064 New static function definitions.
34065 (diagnostic_file_cache_fini): New function.
34066 (location_get_source_line): Take an additional output line_len
34067 parameter. Re-write using lookup_or_add_file_to_cache_tab and
34068 read_line_num.
34069 * diagnostic.c (diagnostic_finish): Call
34070 diagnostic_file_cache_fini.
34071 (adjust_line): Take an additional input parameter for the length
34072 of the line, rather than calculating it with strlen.
34073 (diagnostic_show_locus): Adjust the use of
34074 location_get_source_line and adjust_line with respect to their new
34075 signature. While displaying a line now, do not stop at the first
34076 null byte. Rather, display the zero byte as a space and keep
34077 going until we reach the size of the line.
34078 * Makefile.in: Add vec.o to OBJS-libcommon
34079
34080 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34081 Ilya Tocar <ilya.tocar@intel.com>
34082
34083 * config/i386/avx512fintrin.h (_mm512_kmov): New.
34084 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34085 (__builtin_ia32_kmov16): Ditto.
34086 * config/i386/i386.md (UNSPEC_KMOV): New.
34087 (kmovw): Ditto.
34088
34089 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
34090
34091 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34092 (_mm512_storeu_si512): Ditto.
34093
34094 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
34095
34096 PR target/52125
34097 * rtl.h (get_referenced_operands): Declare.
34098 * recog.c (get_referenced_operands): New function.
34099 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
34100 operands have been referenced when recording LO_SUM references.
34101
34102 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
34103
34104 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
34105
34106 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34107
34108 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
34109 Enable for generic and recent AMD targets.
34110
34111 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
34112
34113 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
34114 ARG_SIZE note when adjustment was eliminated.
34115
34116 2014-01-22 Jeff Law <law@redhat.com>
34117
34118 PR tree-optimization/59597
34119 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
34120 in file. Accept new argument REGISTERING and use it to modify
34121 dump output appropriately.
34122 (register_jump_thread): Corresponding changes.
34123 (mark_threaded_blocks): Reinstate code to cancel unprofitable
34124 thread paths involving joiner blocks. Add code to dump cancelled
34125 jump threading paths.
34126
34127 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
34128
34129 PR rtl-optimization/59477
34130 * lra-constraints.c (inherit_in_ebb): Process call for living hard
34131 regs. Update reloads_num and potential_reload_hard_regs for all insns.
34132
34133 2014-01-22 Tom Tromey <tromey@redhat.com>
34134
34135 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
34136 PARAMS.
34137 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
34138
34139 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34140
34141 PR rtl-optimization/59896
34142 * lra-constraints.c (process_alt_operands): Check unused note for
34143 matched operands of insn with no output reloads.
34144
34145 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
34146
34147 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
34148 (mips_move_from_gpr_cost): Likewise.
34149
34150 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
34151
34152 PR rtl-optimization/59858
34153 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
34154 ira_class_hard_regs_num.
34155 (process_alt_operands): Increase reject for dying matched operand.
34156
34157 2014-01-21 Jakub Jelinek <jakub@redhat.com>
34158
34159 PR target/59003
34160 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
34161 smaller than size, perform several stores or loads and stores
34162 at dst + count - size to store or copy all of size bytes, rather
34163 than just last modesize bytes.
34164
34165 2014-01-20 DJ Delorie <dj@redhat.com>
34166
34167 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
34168 that CLOBBERs are REGs before propogating their values.
34169
34170 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
34171
34172 PR middle-end/59789
34173 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
34174 (cgraph_inline_failed_type): New function.
34175 * cgraph.h (DEFCIFCODE): Add type.
34176 (cgraph_inline_failed_type_t): New enum.
34177 (cgraph_inline_failed_type): New prototype.
34178 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
34179 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
34180 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
34181 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
34182 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
34183 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
34184 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
34185 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
34186 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
34187 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
34188 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
34189 OPTIMIZATION_MISMATCH.
34190 * tree-inline.c (expand_call_inline): Emit errors during
34191 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
34192
34193 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34194
34195 PR target/59685
34196 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
34197 mode attribute in insn output.
34198
34199 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
34200
34201 * output.h (output_constant): Delete.
34202 * varasm.c (output_constant): Make private.
34203
34204 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
34205
34206 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
34207
34208 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34209
34210 PR middle-end/59860
34211 * tree.h (fold_builtin_strcat): New prototype.
34212 * builtins.c (fold_builtin_strcat): No longer static. Add len
34213 argument, if non-NULL, don't call c_strlen. Optimize
34214 directly into __builtin_memcpy instead of __builtin_strcpy.
34215 (fold_builtin_2): Adjust fold_builtin_strcat caller.
34216 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
34217
34218 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
34219
34220 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34221 for SImode_address_operand operands, having only a REG argument.
34222
34223 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
34224
34225 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
34226 loader name using mbig-endian.
34227 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
34228
34229 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34230
34231 * doc/invoke.texi (-march): Clarify documentation for AArch64.
34232 (-mtune): Likewise.
34233 (-mcpu): Likewise.
34234
34235 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
34236
34237 * config/aarch64/aarch64-protos.h
34238 (aarch64_cannot_change_mode_class_ptr): Declare.
34239 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
34240 aarch64_cannot_change_mode_class_ptr): New.
34241 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
34242 backend hook aarch64_cannot_change_mode_class.
34243
34244 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
34245
34246 * common/config/aarch64/aarch64-common.c
34247 (aarch64_handle_option): Don't handle any option order logic here.
34248 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
34249 selected_cpu, warn on architecture version mismatch.
34250 (aarch64_override_options): Fix parsing order for option strings.
34251
34252 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34253 Iain Sandoe <iain@codesourcery.com>
34254
34255 PR bootstrap/59496
34256 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
34257 warning. Amend comment to reflect current functionality.
34258
34259 2014-01-20 Richard Biener <rguenther@suse.de>
34260
34261 PR middle-end/59860
34262 * builtins.c (fold_builtin_strcat): Remove case better handled
34263 by tree-ssa-strlen.c.
34264
34265 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
34266
34267 * config/aarch64/aarch64.opt
34268 (mcpu, march, mtune): Make case-insensitive.
34269
34270 2014-01-20 Jakub Jelinek <jakub@redhat.com>
34271
34272 PR target/59880
34273 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
34274 if operands[1] is a REG or ZERO_EXTEND of a REG.
34275
34276 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
34277
34278 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
34279
34280 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
34281
34282 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
34283 long non-pic millicode calls.
34284
34285 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
34286
34287 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
34288
34289 2014-01-19 Kito Cheng <kito@0xlab.org>
34290
34291 * builtins.c (expand_movstr): Check movstr expand done or fail.
34292
34293 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34294 H.J. Lu <hongjiu.lu@intel.com>
34295
34296 PR target/59379
34297 * config/i386/i386.md (*lea<mode>): Zero-extend return register
34298 to DImode for zero-extended addresses.
34299
34300 2014-01-19 Jakub Jelinek <jakub@redhat.com>
34301
34302 PR rtl-optimization/57763
34303 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
34304 on the new indirect jump_insn and increment LABEL_NUSES (label).
34305
34306 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
34307
34308 PR bootstrap/59580
34309 PR bootstrap/59583
34310 * config.gcc (x86_archs): New variable.
34311 (x86_64_archs): Likewise.
34312 (x86_cpus): Likewise.
34313 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
34314 --with-arch/--with-cpu= options.
34315 Support --with-arch=/--with-cpu={nehalem,westmere,
34316 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
34317
34318 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34319
34320 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
34321 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
34322
34323 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
34324
34325 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
34326
34327 2014-01-18 Jakub Jelinek <jakub@redhat.com>
34328
34329 PR target/58944
34330 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
34331 clear cpp_get_options (parse_in)->warn_unused_macros for
34332 ix86_target_macros_internal with cpp_define.
34333
34334 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
34335
34336 * jump.c (delete_related_insns): Keep (use (insn))s.
34337 * reorg.c (redundant_insn): Check for barriers too.
34338
34339 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34340
34341 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
34342
34343 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
34344
34345 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
34346 call to $$dyncall when TARGET_LONG_CALLS is true.
34347
34348 2014-01-17 Jeff Law <law@redhat.com>
34349
34350 * ree.c (combine_set_extension): Temporarily disable test for
34351 changing number of hard registers.
34352
34353 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34354
34355 PR middle-end/58125
34356 * ipa-inline-analysis.c (inline_free_summary):
34357 Do not free summary of aliases.
34358
34359 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34360
34361 PR middle-end/59706
34362 * gimplify.c (gimplify_expr): Use create_tmp_var
34363 instead of create_tmp_var_raw. If cond doesn't have
34364 integral type, don't add the IFN_ANNOTATE builtin at all.
34365
34366 2014-01-17 Martin Jambor <mjambor@suse.cz>
34367
34368 PR ipa/59736
34369 * ipa-cp.c (prev_edge_clone): New variable.
34370 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
34371 Also resize prev_edge_clone vector.
34372 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
34373 (ipcp_edge_removal_hook): New function.
34374 (ipcp_driver): Register ipcp_edge_removal_hook.
34375
34376 2014-01-17 Andrew Pinski <apinski@cavium.com>
34377 Steve Ellcey <sellcey@mips.com>
34378
34379 PR target/59462
34380 * config/mips/mips.c (mips_print_operand): Check operand mode instead
34381 of operator mode.
34382
34383 2014-01-17 Jeff Law <law@redhat.com>
34384
34385 PR middle-end/57904
34386 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
34387 so that pass_ccp runs first.
34388
34389 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34390
34391 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
34392 (ix86_adjust_cost): Use !TARGET_XXX.
34393 (do_reorder_for_imul): Likewise.
34394 (swap_top_of_ready_list): Likewise.
34395 (ix86_sched_reorder): Likewise.
34396
34397 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
34398
34399 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
34400 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
34401 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
34402 (intel_memset): New. Duplicate slm_memset.
34403 (intel_cost): New. Duplicate slm_cost.
34404 (m_INTEL): New macro.
34405 (processor_target_table): Add "intel".
34406 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
34407 with PROCESSOR_INTEL for "intel".
34408 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
34409 PROCESSOR_SILVERMONT.
34410 (ix86_issue_rate): Likewise.
34411 (ix86_adjust_cost): Likewise.
34412 (ia32_multipass_dfa_lookahead): Likewise.
34413 (swap_top_of_ready_list): Likewise.
34414 (ix86_sched_reorder): Likewise.
34415 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
34416 instead of TARGET_OPT_AGU.
34417 * config/i386/i386.h (TARGET_INTEL): New.
34418 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
34419 (processor_type): Add PROCESSOR_INTEL.
34420 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
34421 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
34422
34423 2014-01-17 Marek Polacek <polacek@redhat.com>
34424
34425 PR c/58346
34426 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
34427 size is zero.
34428
34429 2014-01-17 Richard Biener <rguenther@suse.de>
34430
34431 PR tree-optimization/46590
34432 * opts.c (default_options_table): Add entries for
34433 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
34434 all enabled at -O1 but not for -Og.
34435 * common.opt (fbranch-count-reg): Remove Init(1).
34436 (fmove-loop-invariants): Likewise.
34437 (ftree-pta): Likewise.
34438
34439 2014-01-17 Jakub Jelinek <jakub@redhat.com>
34440
34441 * config/i386/i386.c (ix86_data_alignment): For compatibility with
34442 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
34443 decls to at least the GCC 4.8 used alignments.
34444
34445 PR fortran/59440
34446 * tree-nested.c (convert_nonlocal_reference_stmt,
34447 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
34448 of GIMPLE_BIND stmts, adjust associated decls.
34449
34450 2014-01-17 Richard Biener <rguenther@suse.de>
34451
34452 PR tree-optimization/46590
34453 * vec.h (vec<>::bseach): New member function implementing
34454 binary search according to C89 bsearch.
34455 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
34456 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
34457 bitmap pointer again. Make accesses_in_loop a flat array.
34458 (mem_ref_obstack): New global.
34459 (outermost_indep_loop): Adjust for mem_ref->stored changes.
34460 (mark_ref_stored): Likewise.
34461 (ref_indep_loop_p_2): Likewise.
34462 (set_ref_stored_in_loop): New helper function.
34463 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
34464 (memref_free): Adjust.
34465 (record_mem_ref_loc): Simplify.
34466 (gather_mem_refs_stmt): Adjust.
34467 (sort_locs_in_loop_postorder_cmp): New function.
34468 (analyze_memory_references): Sort accesses_in_loop after
34469 loop postorder number.
34470 (find_ref_loc_in_loop_cmp): New function.
34471 (for_all_locs_in_loop): Find relevant cluster of locs in
34472 accesses_in_loop and iterate without recursion.
34473 (execute_sm): Avoid uninit warning.
34474 (struct ref_always_accessed): Simplify.
34475 (ref_always_accessed::operator ()): Likewise.
34476 (ref_always_accessed_p): Likewise.
34477 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
34478 loop postorder numbers here.
34479 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
34480 numbers.
34481
34482 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
34483
34484 PR c++/57945
34485 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
34486 on decls for which assemble_alias has been called.
34487
34488 2014-01-17 Nick Clifton <nickc@redhat.com>
34489
34490 * config/msp430/msp430.opt: (mcpu): New option.
34491 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
34492 (msp430_option_override): Parse target_cpu. If the MCU name
34493 matches a generic string, clear target_mcu.
34494 (msp430_attr): Allow numeric interrupt values up to 63.
34495 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
34496 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
34497 option.
34498 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
34499 Add mcpu matches.
34500 * config/msp430/msp430.md (popm): Use %J rather than %I.
34501 (addsi3): Use msp430_nonimmediate_operand for operand 2.
34502 (addhi_cy_i): Use immediate_operand for operand 2.
34503 * doc/invoke.texi: Document -mcpu option.
34504
34505 2014-01-17 Richard Biener <rguenther@suse.de>
34506
34507 PR rtl-optimization/38518
34508 * df.h (df_analyze_loop): Declare.
34509 * df-core.c: Include cfgloop.h.
34510 (df_analyze_1): Split out main part of df_analyze.
34511 (df_analyze): Adjust.
34512 (loop_inverted_post_order_compute): New function.
34513 (loop_post_order_compute): Likewise.
34514 (df_analyze_loop): New function avoiding whole-function
34515 postorder computes.
34516 * loop-invariant.c (find_defs): Use df_analyze_loop.
34517 (find_invariants): Adjust.
34518 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
34519
34520 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
34521
34522 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
34523 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
34524
34525 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
34526
34527 * ipa-ref.c (ipa_remove_stmt_references): Fix references
34528 traversal when removing references.
34529
34530 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
34531
34532 PR ipa/59775
34533 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
34534
34535 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
34536
34537 PR middle-end/56791
34538 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
34539 pushing a reload for an autoinc when we had previously reloaded an
34540 inner part of the address.
34541
34542 2014-01-16 Jakub Jelinek <jakub@redhat.com>
34543
34544 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
34545 field.
34546 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
34547 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
34548 when not giving up or versioning for alias only because of
34549 loop->safelen.
34550 (vect_analyze_data_ref_dependences): Set to true.
34551 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
34552 is a GIMPLE_PHI.
34553 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
34554 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
34555 to the condition.
34556
34557 PR middle-end/58344
34558 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
34559
34560 PR target/59839
34561 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
34562 operand 0 predicate for gathers, use a new pseudo as subtarget.
34563
34564 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34565
34566 PR middle-end/59609
34567 * lra-constraints.c (process_alt_operands): Add printing debug info.
34568 Check absence of input/output reloads for matched operands too.
34569
34570 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
34571
34572 PR rtl-optimization/59835
34573 * ira.c (ira_init_register_move_cost): Increase cost for
34574 impossible modes.
34575
34576 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
34577
34578 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
34579
34580 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
34581
34582 PR target/59780
34583 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
34584 non-register objects. Use gen_(high/low)part more consistently.
34585 Fix assertions.
34586
34587 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
34588
34589 PR target/59844
34590 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
34591 endian support, remove tests for WORDS_BIG_ENDIAN.
34592 (p8_mfvsrd_3_<mode>): Likewise.
34593 (reload_gpr_from_vsx<mode>): Likewise.
34594 (reload_gpr_from_vsxsf): Likewise.
34595 (p8_mfvsrd_4_disf): Likewise.
34596
34597 2014-01-16 Richard Biener <rguenther@suse.de>
34598
34599 PR rtl-optimization/46590
34600 * lcm.c (compute_antinout_edge): Use postorder iteration.
34601 (compute_laterin): Use inverted postorder iteration.
34602
34603 2014-01-16 Nick Clifton <nickc@redhat.com>
34604
34605 PR middle-end/28865
34606 * varasm.c (output_constant): Return the number of bytes actually
34607 emitted.
34608 (output_constructor_array_range): Update the field size with the
34609 number of bytes emitted by output_constant.
34610 (output_constructor_regular_field): Likewise. Also do not
34611 complain if the total number of bytes emitted is now greater
34612 than the expected fieldpos.
34613 * output.h (output_constant): Update prototype and descriptive comment.
34614
34615 2014-01-16 Marek Polacek <polacek@redhat.com>
34616
34617 PR middle-end/59827
34618 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
34619 it is error_mark_node.
34620
34621 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
34622
34623 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
34624 VALID_AVX256_REG_OR_OI_MODE.
34625
34626 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
34627
34628 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
34629 current procedure should be profiled.
34630
34631 2014-01-15 Andrew Pinski <apinski@cavium.com>
34632
34633 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
34634 of moving from/to the STACK_REG register class.
34635
34636 2014-01-15 Richard Henderson <rth@redhat.com>
34637
34638 PR debug/54694
34639 * reginfo.c (global_regs_decl): Globalize.
34640 * rtl.h (global_regs_decl): Declare.
34641 * ira.c (do_reload): Diagnose frame_pointer_needed and it
34642 reserved via global_regs.
34643
34644 2014-01-15 Teresa Johnson <tejohnson@google.com>
34645
34646 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
34647
34648 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
34649
34650 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
34651 and vmulosh rather than call gen_vec_widen_smult_*.
34652 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
34653 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
34654 (vec_widen_smult_even_v16qi): Likewise.
34655 (vec_widen_umult_even_v8hi): Likewise.
34656 (vec_widen_smult_even_v8hi): Likewise.
34657 (vec_widen_umult_odd_v16qi): Likewise.
34658 (vec_widen_smult_odd_v16qi): Likewise.
34659 (vec_widen_umult_odd_v8hi): Likewise.
34660 (vec_widen_smult_odd_v8hi): Likewise.
34661 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
34662 vmuloub rather than call gen_vec_widen_umult_*.
34663 (vec_widen_umult_lo_v16qi): Likewise.
34664 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
34665 vmulosb rather than call gen_vec_widen_smult_*.
34666 (vec_widen_smult_lo_v16qi): Likewise.
34667 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
34668 rather than call gen_vec_widen_umult_*.
34669 (vec_widen_umult_lo_v8hi): Likewise.
34670 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
34671 rather than call gen_vec_widen_smult_*.
34672 (vec_widen_smult_lo_v8hi): Likewise.
34673
34674 2014-01-15 Jeff Law <law@redhat.com>
34675
34676 PR tree-optimization/59747
34677 * ree.c (find_and_remove_re): Properly handle case where a second
34678 eliminated extension requires widening a copy created for elimination
34679 of a prior extension.
34680 (combine_set_extension): Ensure that the number of hard regs needed
34681 for a destination register does not change when we widen it.
34682
34683 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
34684
34685 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
34686 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
34687 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
34688 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
34689 (avr-*-rtems*): Likewise.
34690 (bfin*-rtems*): Likewise.
34691 (moxie-*-rtems*): Likewise.
34692 (h8300-*-rtems*): Likewise.
34693 (i[34567]86-*-rtems*): Likewise.
34694 (lm32-*-rtems*): Likewise.
34695 (m32r-*-rtems*): Likewise.
34696 (m68k-*-rtems*): Likewise.
34697 (microblaze*-*-rtems*): Likewise.
34698 (mips*-*-rtems*): Likewise.
34699 (powerpc-*-rtems*): Likewise.
34700 (sh-*-rtems*): Likewise.
34701 (sparc-*-rtems*): Likewise.
34702 (sparc64-*-rtems*): Likewise.
34703 (v850-*-rtems*): Likewise.
34704 (m32c-*-rtems*): Likewise.
34705
34706 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
34707
34708 PR rtl-optimization/59511
34709 * ira.c (ira_init_register_move_cost): Use memory costs for some
34710 cases of register move cost calculations.
34711 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
34712 instead of BB frequency.
34713 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
34714 * lra-assigns.c (find_hard_regno_for): Ditto.
34715
34716 2014-01-15 Richard Biener <rguenther@suse.de>
34717
34718 PR tree-optimization/59822
34719 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
34720 (vectorizable_load): Use it to hoist defs of uses of invariant
34721 loads out of the loop.
34722
34723 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
34724 Kugan Vivekanandarajah <kuganv@linaro.org>
34725
34726 PR target/59695
34727 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
34728 truncation.
34729
34730 2014-01-15 Richard Biener <rguenther@suse.de>
34731
34732 PR rtl-optimization/59802
34733 * lcm.c (compute_available): Use inverted postorder to seed
34734 the initial worklist.
34735
34736 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34737
34738 PR target/59803
34739 * config/s390/s390.c (s390_preferred_reload_class): Don't return
34740 ADDR_REGS for invalid symrefs in non-PIC code.
34741
34742 2014-01-15 Jakub Jelinek <jakub@redhat.com>
34743
34744 PR other/58712
34745 * builtins.c (determine_block_size): Initialize *probable_max_size
34746 even if len_rtx is CONST_INT.
34747
34748 2014-01-14 Andrew Pinski <apinski@cavium.com>
34749
34750 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
34751 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
34752 (cortexa53_tunings): Likewise.
34753 (aarch64_sched_issue_rate): New function.
34754 (TARGET_SCHED_ISSUE_RATE): Define.
34755
34756 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34757
34758 * ira-costs.c (find_costs_and_classes): Add missed
34759 ira_init_register_move_cost_if_necessary.
34760
34761 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
34762
34763 PR target/59787
34764 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
34765
34766 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
34767
34768 PR target/59794
34769 * config/i386/i386.c (type_natural_mode): Add a bool parameter
34770 to indicate if type is used for function return value. Warn ABI
34771 change if the vector mode isn't available for function return value.
34772 (ix86_function_arg_advance): Pass false to type_natural_mode.
34773 (ix86_function_arg): Likewise.
34774 (ix86_gimplify_va_arg): Likewise.
34775 (function_arg_32): Don't warn ABI change.
34776 (ix86_function_value): Pass true to type_natural_mode.
34777 (ix86_return_in_memory): Likewise.
34778 (ix86_struct_value_rtx): Removed.
34779 (TARGET_STRUCT_VALUE_RTX): Likewise.
34780
34781 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
34782
34783 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
34784 converting a conditional jump into a conditional return.
34785
34786 2014-01-14 Richard Biener <rguenther@suse.de>
34787
34788 PR tree-optimization/58921
34789 PR tree-optimization/59006
34790 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
34791 hoisting invariant stmts.
34792 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
34793 invariant loads on the preheader edge if possible.
34794
34795 2014-01-14 Joey Ye <joey.ye@arm.com>
34796
34797 * doc/plugin.texi (Building GCC plugins): Update to C++.
34798
34799 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
34800
34801 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
34802 (_mm_rcp28_round_ss): Ditto.
34803 (_mm_rsqrt28_round_sd): Ditto.
34804 (_mm_rsqrt28_round_ss): Ditto.
34805 (_mm_rcp28_sd): Ditto.
34806 (_mm_rcp28_ss): Ditto.
34807 (_mm_rsqrt28_sd): Ditto.
34808 (_mm_rsqrt28_ss): Ditto.
34809 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
34810 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
34811 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
34812 (IX86_BUILTIN_RCP28SD): Ditto.
34813 (IX86_BUILTIN_RCP28SS): Ditto.
34814 (IX86_BUILTIN_RSQRT28SD): Ditto.
34815 (IX86_BUILTIN_RSQRT28SS): Ditto.
34816 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
34817 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
34818 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
34819 (ix86_expand_special_args_builtin): Expand new FTYPE.
34820 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
34821 (srcp14<mode>): Make insn unary.
34822 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
34823 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
34824 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
34825 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
34826 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
34827 Fix rounding: make it SAE only.
34828 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
34829 Ditto.
34830 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
34831 Ditto.
34832 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
34833 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
34834 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
34835 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
34836 (round_saeonly_mask_scalar_operand4): Ditto.
34837 (round_saeonly_mask_scalar_op3): Ditto.
34838 (round_saeonly_mask_scalar_op4): Ditto.
34839
34840 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34841
34842 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
34843 Implement -maltivec=be for vec_insert and vec_extract.
34844
34845 2014-01-10 DJ Delorie <dj@redhat.com>
34846
34847 * config/msp430/msp430.md (call_internal): Don't allow memory
34848 references with SP as the base register.
34849 (call_value_internal): Likewise.
34850 * config/msp430/constraints.md (Yc): New. For memory references
34851 that don't use SP as a base register.
34852
34853 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
34854 "an integer without a # prefix"
34855 * config/msp430/msp430.md (epilogue_helper): Use it.
34856
34857 2014-01-13 Jakub Jelinek <jakub@redhat.com>
34858
34859 PR target/59617
34860 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
34861 AVX512F gather builtins.
34862 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
34863 on gather decls with INTEGER_TYPE masktype.
34864 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
34865 directly into the builtin rather than hoisting it before loop.
34866
34867 PR tree-optimization/59387
34868 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
34869 (scev_const_prop): If folded_casts and type has undefined overflow,
34870 use force_gimple_operand instead of force_gimple_operand_gsi and
34871 for each added stmt if it is assign with
34872 arith_code_with_undefined_signed_overflow, call
34873 rewrite_to_defined_overflow.
34874 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
34875 gimple-fold.h instead.
34876 (arith_code_with_undefined_signed_overflow,
34877 rewrite_to_defined_overflow): Moved to ...
34878 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
34879 rewrite_to_defined_overflow): ... here. No longer static.
34880 Include gimplify-me.h.
34881 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
34882 rewrite_to_defined_overflow): New prototypes.
34883
34884 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34885
34886 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
34887
34888 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
34889
34890 * builtins.c (get_object_alignment_2): Minor tweak.
34891 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
34892
34893 2014-01-13 Christian Bruel <christian.bruel@st.com>
34894
34895 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
34896 optimized non constant lengths.
34897
34898 2014-01-13 Jakub Jelinek <jakub@redhat.com>
34899
34900 PR libgomp/59194
34901 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
34902 load as __atomic_load_N if possible.
34903
34904 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
34905
34906 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
34907 target parameter.
34908 (rs6000_expand_builtin): Adjust call.
34909
34910 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
34911
34912 PR target/58115
34913 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
34914 * config/rs6000/rs6000.c: Include target-globals.h.
34915 (rs6000_set_current_function): Instead of doing target_reinit
34916 unconditionally, use save_target_globals_default_opts and
34917 restore_target_globals.
34918
34919 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
34920 FPSCR.
34921 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
34922 (rs6000_expand_builtin): Handle mffs and mtfsf.
34923 (rs6000_init_builtins): Define mffs and mtfsf.
34924 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
34925 (rs6000_mffs): New pattern.
34926 (rs6000_mtfsf): New pattern.
34927
34928 2014-01-11 Bin Cheng <bin.cheng@arm.com>
34929
34930 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
34931 Start narrowing with START. Apply candidate-use pair
34932 and check overall cost in narrowing.
34933 (iv_ca_prune): Pass new argument.
34934
34935 2014-01-10 Jeff Law <law@redhat.com>
34936
34937 PR middle-end/59743
34938 * ree.c (combine_reaching_defs): Ensure the defining statement
34939 occurs before the extension when optimizing extensions with
34940 different source and destination hard registers.
34941
34942 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
34943
34944 PR ipa/58585
34945 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
34946 vtables into the type inheritance graph.
34947
34948 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34949
34950 PR rtl-optimization/59754
34951 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
34952 modes in the REGNO != REGNO case.
34953
34954 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34955
34956 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
34957
34958 2014-01-10 Jakub Jelinek <jakub@redhat.com>
34959
34960 PR tree-optimization/59745
34961 * tree-predcom.c (tree_predictive_commoning_loop): Call
34962 free_affine_expand_cache if giving up because components is NULL.
34963
34964 * target-globals.c (save_target_globals): Allocate < 4KB structs using
34965 GC in payload of target_globals struct instead of allocating them on
34966 the heap and the larger structs separately using GC.
34967 * target-globals.h (struct target_globals): Make regs, hard_regs,
34968 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
34969 of GTY((skip)) and change type to void *.
34970 (reset_target_globals): Cast loads from those fields to corresponding
34971 types.
34972
34973 2014-01-10 Steve Ellcey <sellcey@mips.com>
34974
34975 PR plugins/59335
34976 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
34977 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
34978 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
34979
34980 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
34981
34982 PR target/59744
34983 * aarch64-modes.def (CC_Zmode): New flags mode.
34984 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
34985 represents an equality.
34986 (aarch64_get_condition_code): Handle CC_Zmode.
34987 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
34988
34989 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34990
34991 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
34992 extraction in good case.
34993
34994 2014-01-10 Richard Biener <rguenther@suse.de>
34995
34996 PR tree-optimization/59374
34997 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
34998 checking after SLP discovery. Mark stmts not participating
34999 in any SLP instance properly.
35000
35001 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35002
35003 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35004 when handling a SET rtx.
35005
35006 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35007
35008 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35009 (cortex-a57): Likewise.
35010 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35011
35012 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35013
35014 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35015 non-iwmmxt builtins.
35016
35017 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35018
35019 PR ipa/58252
35020 PR ipa/59226
35021 * ipa-devirt.c record_target_from_binfo): Take as argument
35022 stack of binfos and lookup matching one for virtual inheritance.
35023 (possible_polymorphic_call_targets_1): Update.
35024
35025 2014-01-10 Huacai Chen <chenhc@lemote.com>
35026
35027 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35028 kernel strings for Loongson-2E/2F/3A.
35029
35030 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35031
35032 PR middle-end/59670
35033 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35034 is_gimple_call before calling gimple_call_internal_p.
35035
35036 2014-01-09 Steve Ellcey <sellcey@mips.com>
35037
35038 * Makefile.in (TREE_FLOW_H): Remove.
35039 (TREE_SSA_H): Add file names from tree-flow.h.
35040 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35041 * tree.h: Remove tree-flow.h reference.
35042 * hash-table.h: Remove tree-flow.h reference.
35043 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35044 reference with tree-ssa-loop.h.
35045
35046 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35047
35048 * doc/invoke.texi: Add -maltivec={be,le} options, and document
35049 default element-order behavior for -maltivec.
35050 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35051 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35052 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35053 when targeting big endian, at least for now.
35054 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35055
35056 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35057
35058 PR middle-end/47735
35059 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35060 var satisfies use_register_for_decl, just take into account type
35061 alignment, rather than decl alignment.
35062
35063 PR tree-optimization/59622
35064 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
35065 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35066 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35067 Don't devirtualize for inplace at all. For targets.length () == 1,
35068 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35069
35070 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35071
35072 * config/i386/i386.md (cpu): Remove the unused btver1.
35073
35074 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35075
35076 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35077
35078 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35079
35080 PR target/58115
35081 * tree-core.h (struct target_globals): New forward declaration.
35082 (struct tree_target_option): Add globals field.
35083 * tree.h (TREE_TARGET_GLOBALS): Define.
35084 (prepare_target_option_nodes_for_pch): New prototype.
35085 * target-globals.h (struct target_globals): Define even if
35086 !SWITCHABLE_TARGET.
35087 * tree.c (prepare_target_option_node_for_pch,
35088 prepare_target_option_nodes_for_pch): New functions.
35089 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35090 * config/i386/i386.c: Include target-globals.h.
35091 (ix86_set_current_function): Instead of doing target_reinit
35092 unconditionally, use save_target_globals_default_opts and
35093 restore_target_globals.
35094
35095 2014-01-09 Richard Biener <rguenther@suse.de>
35096
35097 PR tree-optimization/59715
35098 * tree-cfg.h (split_critical_edges): Declare.
35099 * tree-cfg.c (split_critical_edges): Export.
35100 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
35101
35102 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
35103
35104 * cfgexpand.c (expand_stack_vars): Optionally disable
35105 asan stack protection.
35106 (expand_used_vars): Likewise.
35107 (partition_stack_vars): Likewise.
35108 * asan.c (asan_emit_stack_protection): Optionally disable
35109 after return stack usage.
35110 (instrument_derefs): Optionally disable memory access instrumentation.
35111 (instrument_builtin_call): Likewise.
35112 (instrument_strlen_call): Likewise.
35113 (asan_protect_global): Optionally disable global variables protection.
35114 * doc/invoke.texi: Added doc for new options.
35115 * params.def: Added new options.
35116 * params.h: Likewise.
35117
35118 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35119
35120 PR rtl-optimization/59724
35121 * ifcvt.c (cond_exec_process_if_block): Don't call
35122 flow_find_head_matching_sequence with 0 longest_match.
35123 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
35124 non-active insns if !stop_after.
35125 (try_head_merge_bb): Revert 2014-01-07 changes.
35126
35127 2014-01-08 Jeff Law <law@redhat.com>
35128
35129 * ree.c (get_sub_rtx): New function, extracted from...
35130 (merge_def_and_ext): Here.
35131 (combine_reaching_defs): Use get_sub_rtx.
35132
35133 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
35134
35135 * cgraph.h (varpool_variable_node): Do not choke on null node.
35136
35137 2014-01-08 Catherine Moore <clm@codesourcery.com>
35138
35139 * config/mips/mips.md (simple_return): Attempt to use JRC
35140 for microMIPS.
35141 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
35142
35143 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35144
35145 PR rtl-optimization/59137
35146 * reorg.c (steal_delay_list_from_target): Call update_block for
35147 elided insns.
35148 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
35149
35150 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35151
35152 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
35153 two duplicate entries.
35154
35155 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
35156
35157 Revert:
35158 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
35159
35160 * config/mips/mips.c (mips_truncated_op_cost): New function.
35161 (mips_rtx_costs): Adjust test for BADDU.
35162 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
35163
35164 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
35165
35166 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
35167 (*baddu_si): ...this new pattern.
35168
35169 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35170
35171 PR ipa/59722
35172 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
35173
35174 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
35175
35176 PR middle-end/57748
35177 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
35178 inner_reference_p.
35179 (expand_expr, expand_normal): Adjust.
35180 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
35181 inner_reference_p. Use inner_reference_p to expand inner references.
35182 (store_expr): Adjust.
35183 * cfgexpand.c (expand_call_stmt): Adjust.
35184
35185 2014-01-08 Rong Xu <xur@google.com>
35186
35187 * gcov-io.c (gcov_var): Move from gcov-io.h.
35188 (gcov_position): Ditto.
35189 (gcov_is_error): Ditto.
35190 (gcov_rewrite): Ditto.
35191 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
35192 only part to libgcc/libgcov.h.
35193
35194 2014-01-08 Marek Polacek <polacek@redhat.com>
35195
35196 PR middle-end/59669
35197 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
35198
35199 2014-01-08 Marek Polacek <polacek@redhat.com>
35200
35201 PR sanitizer/59667
35202 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
35203
35204 2014-01-08 Jakub Jelinek <jakub@redhat.com>
35205
35206 PR rtl-optimization/59649
35207 * stor-layout.c (get_mode_bounds): For BImode return
35208 0 and STORE_FLAG_VALUE.
35209
35210 2014-01-08 Richard Biener <rguenther@suse.de>
35211
35212 PR middle-end/59630
35213 * gimple.h (is_gimple_builtin_call): Remove.
35214 (gimple_builtin_call_types_compatible_p): New.
35215 (gimple_call_builtin_p): New overload.
35216 * gimple.c (is_gimple_builtin_call): Remove.
35217 (validate_call): Rename to ...
35218 (gimple_builtin_call_types_compatible_p): ... this and export. Also
35219 check return types.
35220 (validate_type): New static function.
35221 (gimple_call_builtin_p): New overload and adjust.
35222 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
35223 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
35224 (gimple_fold_stmt_to_constant_1): Likewise.
35225 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
35226
35227 2014-01-08 Richard Biener <rguenther@suse.de>
35228
35229 PR middle-end/59471
35230 * gimplify.c (gimplify_expr): Gimplify register-register type
35231 VIEW_CONVERT_EXPRs to separate stmts.
35232
35233 2014-01-07 Jeff Law <law@redhat.com>
35234
35235 PR middle-end/53623
35236 * ree.c (combine_set_extension): Handle case where source
35237 and destination registers in an extension insn are different.
35238 (combine_reaching_defs): Allow source and destination registers
35239 in extension to be different under limited circumstances.
35240 (add_removable_extension): Remove restriction that the
35241 source and destination registers in the extension are the same.
35242 (find_and_remove_re): Emit a copy from the extension's
35243 destination to its source after the defining insn if
35244 the source and destination registers are different.
35245
35246 PR middle-end/59285
35247 * ifcvt.c (merge_if_block): If we are merging a block with more than
35248 one successor with a block with no successors, remove any BARRIER
35249 after the second block.
35250
35251 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
35252
35253 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
35254
35255 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
35256
35257 PR target/59652
35258 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
35259 for 14-bit register offsets when INT14_OK_STRICT is false.
35260
35261 2014-01-07 Roland Stigge <stigge@antcom.de>
35262 Michael Meissner <meissner@linux.vnet.ibm.com>
35263
35264 PR 57386/target
35265 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
35266 Only check TFmode for SPE constants. Don't check TImode or TDmode.
35267
35268 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
35269
35270 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
35271 -mcpu.
35272
35273 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
35274
35275 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
35276 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
35277 rtx is const0_rtx or not.
35278
35279 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
35280
35281 PR target/58115
35282 * target-globals.c (save_target_globals): Remove this_fn_optab
35283 handling.
35284 * toplev.c: Include optabs.h.
35285 (target_reinit): Temporarily restore the global options if another
35286 set of options are in force.
35287
35288 2014-01-07 Jakub Jelinek <jakub@redhat.com>
35289
35290 PR rtl-optimization/58668
35291 * cfgcleanup.c (flow_find_cross_jump): Don't count
35292 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
35293 to determine what is counted.
35294 (flow_find_head_matching_sequence): Use active_insn_p to determine
35295 what is counted.
35296 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
35297 counting change.
35298 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
35299 determine what is counted.
35300
35301 PR tree-optimization/59643
35302 * tree-predcom.c (split_data_refs_to_components): If one dr is
35303 read and one write, determine_offset fails and the write isn't
35304 in the bad component, just put the read into the bad component.
35305
35306 2014-01-07 Mike Stump <mikestump@comcast.net>
35307 Jakub Jelinek <jakub@redhat.com>
35308
35309 PR pch/59436
35310 * tree-core.h (struct tree_optimization_option): Change optabs
35311 type from unsigned char * to void *.
35312 * optabs.c (init_tree_optimization_optabs): Adjust
35313 TREE_OPTIMIZATION_OPTABS initialization.
35314
35315 2014-01-06 Jakub Jelinek <jakub@redhat.com>
35316
35317 PR target/59644
35318 * config/i386/i386.h (struct machine_function): Add
35319 no_drap_save_restore field.
35320 * config/i386/i386.c (ix86_save_reg): Use
35321 !cfun->machine->no_drap_save_restore instead of
35322 crtl->stack_realign_needed.
35323 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
35324 this function clears frame_pointer_needed. Set
35325 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
35326 and DRAP reg is needed.
35327
35328 2014-01-06 Marek Polacek <polacek@redhat.com>
35329
35330 PR c/57773
35331 * doc/implement-c.texi: Mention that other integer types are
35332 permitted as bit-field types in strictly conforming mode.
35333
35334 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
35335
35336 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
35337 is newly allocated.
35338
35339 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
35340
35341 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
35342
35343 2014-01-06 Martin Jambor <mjambor@suse.cz>
35344
35345 PR ipa/59008
35346 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
35347 to int.
35348 * ipa-prop.c (ipa_print_node_params): Fix indentation.
35349
35350 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
35351
35352 PR debug/59350
35353 PR debug/59510
35354 * var-tracking.c (add_stores): Preserve the value of the source even if
35355 we don't record the store.
35356
35357 2014-01-06 Terry Guo <terry.guo@arm.com>
35358
35359 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
35360
35361 2014-01-05 Iain Sandoe <iain@codesourcery.com>
35362
35363 PR bootstrap/59541
35364 * config/darwin.c (darwin_function_section): Adjust return values to
35365 correspond to optimisation changes made in r206070.
35366
35367 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
35368
35369 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
35370 from prefetch_block tune setting.
35371 (nocona_cost): Correct size of prefetch block to 64.
35372
35373 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
35374
35375 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
35376 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
35377 used to save the static chain register in the computation of the offset
35378 from which the FP registers need to be restored.
35379
35380 2014-01-04 Jakub Jelinek <jakub@redhat.com>
35381
35382 PR tree-optimization/59519
35383 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
35384 ICE if get_current_def (current_new_name) is already non-NULL, as long
35385 as it is a phi result of some other phi in *new_exit_bb that has
35386 the same argument.
35387
35388 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
35389 or vmovdqu* for misaligned_operand.
35390 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
35391 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
35392 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
35393 aligned_mem for AVX512F masked aligned load and store builtins and for
35394 non-temporal moves.
35395
35396 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
35397
35398 PR tree-optimization/59651
35399 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
35400 Address range for negative step should be added by TYPE_SIZE_UNIT.
35401
35402 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
35403
35404 * config/m68k/m68k.c (handle_move_double): Handle pushes with
35405 overlapping registers also for registers other than the stack pointer.
35406
35407 2014-01-03 Marek Polacek <polacek@redhat.com>
35408
35409 PR other/59661
35410 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
35411 __builtin_FILE.
35412
35413 2014-01-03 Jakub Jelinek <jakub@redhat.com>
35414
35415 PR target/59625
35416 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
35417 asm goto as jump.
35418
35419 * config/i386/i386.md (MODE_SIZE): New mode attribute.
35420 (push splitter): Use <P:MODE_SIZE> instead of
35421 GET_MODE_SIZE (<P:MODE>mode).
35422 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
35423 (mov -1, reg peephole2): Likewise.
35424 * config/i386/sse.md (*mov<mode>_internal,
35425 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
35426 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
35427 *<code><mode>3, *andnot<mode>3<mask_name>,
35428 <mask_codefor><code><mode>3<mask_name>): Likewise.
35429 * config/i386/subst.md (mask_mode512bit_condition,
35430 sd_mask_mode512bit_condition): Likewise.
35431
35432 2014-01-02 Xinliang David Li <davidxl@google.com>
35433
35434 PR tree-optimization/59303
35435 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
35436 (dump_predicates): Better output format.
35437 (pred_equal_p): New function.
35438 (is_neq_relop_p): Ditto.
35439 (is_neq_zero_form_p): Ditto.
35440 (pred_expr_equal_p): Ditto.
35441 (pred_neg_p): Ditto.
35442 (simplify_pred): Ditto.
35443 (simplify_preds_2): Ditto.
35444 (simplify_preds_3): Ditto.
35445 (simplify_preds_4): Ditto.
35446 (simplify_preds): Ditto.
35447 (push_pred): Ditto.
35448 (push_to_worklist): Ditto.
35449 (get_pred_info_from_cmp): Ditto.
35450 (is_degenerated_phi): Ditto.
35451 (normalize_one_pred_1): Ditto.
35452 (normalize_one_pred): Ditto.
35453 (normalize_one_pred_chain): Ditto.
35454 (normalize_preds): Ditto.
35455 (normalize_cond_1): Remove function.
35456 (normalize_cond): Ditto.
35457 (is_gcond_subset_of): Ditto.
35458 (is_subset_of_any): Ditto.
35459 (is_or_set_subset_of): Ditto.
35460 (is_and_set_subset_of): Ditto.
35461 (is_norm_cond_subset_of): Ditto.
35462 (pred_chain_length_cmp): Ditto.
35463 (convert_control_dep_chain_into_preds): Type change.
35464 (find_predicates): Ditto.
35465 (find_def_preds): Ditto.
35466 (destroy_predicates_vecs): Ditto.
35467 (find_matching_predicates_in_rest_chains): Ditto.
35468 (use_pred_not_overlap_with_undef_path_pred): Ditto.
35469 (is_pred_expr_subset): Ditto.
35470 (is_pred_chain_subset_of): Ditto.
35471 (is_included_in): Ditto.
35472 (is_superset_of): Ditto.
35473
35474 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35475
35476 Update copyright years.
35477
35478 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
35479
35480 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
35481 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
35482 config/arc/arc.md, config/arc/arc.opt,
35483 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
35484 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
35485 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
35486 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
35487 config/linux-protos.h, config/linux.c, config/winnt-c.c,
35488 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
35489 vtable-verify.c, vtable-verify.h: Use the standard form for the
35490 copyright notice.
35491
35492 2014-01-02 Tobias Burnus <burnus@net-b.de>
35493
35494 * gcc.c (process_command): Update copyright notice dates.
35495 * gcov-dump.c: Ditto.
35496 * gcov.c: Ditto.
35497 * doc/cpp.texi: Bump @copying's copyright year.
35498 * doc/cppinternals.texi: Ditto.
35499 * doc/gcc.texi: Ditto.
35500 * doc/gccint.texi: Ditto.
35501 * doc/gcov.texi: Ditto.
35502 * doc/install.texi: Ditto.
35503 * doc/invoke.texi: Ditto.
35504
35505 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35506
35507 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
35508
35509 2014-01-01 Jakub Jelinek <jakub@redhat.com>
35510
35511 * config/i386/sse.md (*mov<mode>_internal): Guard
35512 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
35513
35514 PR rtl-optimization/59647
35515 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
35516 new_rtx into UNSIGNED_FLOAT rtxes.
35517 \f
35518 Copyright (C) 2014 Free Software Foundation, Inc.
35519
35520 Copying and distribution of this file, with or without modification,
35521 are permitted in any medium without royalty provided the copyright
35522 notice and this notice are preserved.