1 2012-09-10 Georg-Johann Lay <avr@gjlay.de>
4 * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
6 2012-09-10 Jan Hubicka <jh@suse.cz>
8 * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases.
9 * symtab.c (symtab_make_decl_local): Remove user defined visibility
10 when making symbol local.
12 2012-09-09 Mark Kettenis <kettenis@gnu.org>
14 * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define.
16 2012-09-09 Jan Hubicka <jh@suse.cz>
18 * passes.c (ipa_write_summaries_1): Set state;
19 do not call compute_ltrans_boundary.
20 (ipa_write_optimization_summaries): Likewise.
21 (ipa_write_summaries): compute_ltrans_boundary here.
22 * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
23 (compute_ltrans_boundary): Update prototype.
25 2012-09-09 Ulrich Drepper <drepper@gmail.com>
27 * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for
28 matching results of level 0 calls to __cpuid to processor
30 * config/i386/driver-i386.c (vendor_signatures): Removed.
31 (processor_signatures): Removed.
32 (host_detect_local_cpu): Replace uses of now-removed SIG_*
33 constants with the new signature_*_ebx constants.
35 2012-09-08 Jan Hubicka <jh@suse.cz>
37 Replace cgraph_node_set and varpool_node_set by symtab_node_encoder
39 * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove
41 (lto_symtab_encoder_d): Forward declare.
42 (ipa_write_optimization_summaries): Update.
43 * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize
44 body, initializer and in_partition.
45 (lto_symtab_encoder_delete): Update.
46 (lto_symtab_encoder_encode): Update.
47 (lto_symtab_encoder_lookup): Move inline.
48 (lto_symtab_encoder_delete_node): New function.
49 (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body,
50 lto_symtab_encoder_encode_initializer_p,
51 lto_set_symtab_encoder_encode_initializer, lto_symtab_encoder_in_partition_p,
52 lto_symtab_encoder_in_partition_p): Update.
53 (compute_ltrans_boundary): Take encoder as an input.
54 * passes.c (ipa_write_summaries_1): Update.
55 (ipa_write_summaries_1): Update.
56 (ipa_write_summaries): Update.
57 (ipa_write_optimization_summaries): Update.
58 * lto-streamer.c (print_lto_report): Report number of cgraph nodes.
59 * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by
60 num_output_symtab_nodes.
61 (lto_encoder_entry): New structure.
62 (struct lto_symtab_encoder_d): Reorg.
63 (lto_symtab_encoder_delete_node): Declare.
64 (lto_symtab_encoder_lookup): Bring inline.
65 (compute_ltrans_boundary): Update.
66 (lto_symtab_encoder_size): Update.
67 (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update.
68 (lto_symtab_encoder_deref): Update.
70 2012-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
72 * config/pa/pa.c (hppa_rtx_costs): Update costs for large integer modes.
74 2012-09-08 Andi Kleen <ak@linux.intel.com>
76 * gcc/lto/lto.c (do_whole_program_analysis):
79 2012-09-08 Andi Kleen <ak@linux.intel.com>
81 * gcc/common.opt (-fmem-report-wpa): Add
82 * gcc/doc/invoke.texi (-fmem-report-wpa): Document.
83 * gcc/lto/lto.c (do_whole_program_analysis): Run mem_report
84 when mem_report_wpa is set.
86 2012-09-07 Anthony Green <green@moxielogic.com>
88 * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue
89 for functions with large static stack requirements.
90 (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved
91 values off of the stack.
93 2012-09-07 Nick Clifton <nickc@redhat.com>
95 * config/v850/v850.h (DBX_DEBUGGING_INFO): Define.
96 (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided.
97 * config/v850/v850.c (compute_register_save_size): Always include
99 (increment_stack): New function - emits insns to increment or
100 decrement the stack pointer.
101 (expand_prologue, expand_epilogue): Use it.
102 (expand_prologue): Set the function stack size, if requested.
103 (v850_debug_unwind_info): New function.
104 (TARGET_DEBUG_UNWIND_INFO): Define.
106 2012-09-07 Richard Earnshaw <rearnsha@arm.com>
109 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
110 Sign-extension of a zero-extended value can be simplified to
113 2012-09-07 Richard Guenther <rguenther@suse.de>
116 * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
117 EAF_NOESCAPED arguments. Transitively close non-EAF_DIRECT
118 arguments separately.
120 2012-09-07 Steven Bosscher <steven@gcc.gnu.org>
122 * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
124 * graphite.c (print_global_statistics): Use EDGE_COUNT instead
126 (print_graphite_scop_statistics): Likewise.
127 * graphite-scop-detection.c (get_bb_type): Use single_succ_p.
128 (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length.
129 (canonicalize_loop_closed_ssa): Use single_pred_p.
131 * alias.c (reg_seen): Make this an sbitmap.
132 (record_set, init_alias_analysis): Update.
134 * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping.
136 2012-09-07 Tom de Vries <tom@codesourcery.com>
138 PR tree-optimization/53986
139 * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow
141 (extract_range_from_binary_expr_1): Handle LSHIFT with constant range as
144 2012-09-07 Segher Boessenkool <segher@kernel.crashing.org>
146 * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete.
147 * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete.
148 * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete.
149 * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete.
150 * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete.
151 * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete.
152 * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete.
153 * config/rs6000/rs6000.c (print_operand) ['.']: Delete.
154 * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete.
155 * config/rs6000/rs6000.md (tls_gd_aix<TLSmode:tls_abi_suffix>):
157 (tls_gd_call_aix<TLSmode:tls_abi_suffix>): Ditto.
158 (tls_ld_aix<TLSmode:tls_abi_suffix>): Ditto.
159 (tls_ld_call_aix<TLSmode:tls_abi_suffix>): Ditto.
160 (call_nonlocal_aix32): Ditto.
161 (call_nonlocal_aix64): Ditto.
162 (call_value_nonlocal_aix32): Ditto.
163 (call_value_nonlocal_aix64): Ditto.
165 2012-09-06 Andi Kleen <ak@linux.intel.com>
167 * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar
168 et.al. should be used.
170 2012-09-06 Andi Kleen <ak@linux.intel.com>
172 * gcc/lto-streamer.h (res_pair): Add.
173 (lto_file_decl_data): Replace resolutions with respairs.
175 * gcc/lto/lto.c (lto_resolution_read): Remove max_index. Add rp.
177 (lto_file_finalize): Set up resolutions vector lazily from respairs.
179 2012-09-06 Lawrence Crowl <crowl@google.com>
181 * double-int.h (double_int::operator &=): New.
182 (double_int::operator ^=): New.
183 (double_int::operator |=): New.
184 (double_int::mul_with_sign): Modify overflow parameter to bool*.
185 (double_int::add_with_sign): New.
186 (double_int::ule): New.
187 (double_int::sle): New.
188 (binary double_int::operator *): Remove parameter name.
189 (binary double_int::operator +): Likewise.
190 (binary double_int::operator -): Likewise.
191 (binary double_int::operator &): Likewise.
192 (double_int::operator |): Likewise.
193 (double_int::operator ^): Likewise.
194 (double_int::and_not): Likewise.
195 (double_int::from_shwi): Tidy formatting.
196 (double_int::from_uhwi): Likewise.
197 (double_int::from_uhwi): Likewise.
198 * double-int.c (double_int::mul_with_sign): Modify overflow parameter
200 (double_int::add_with_sign): New.
201 (double_int::ule): New.
202 (double_int::sle): New.
203 * builtins.c: Modify to use the new double_int interface.
204 * cgraph.c: Likewise.
205 * combine.c: Likewise.
206 * dwarf2out.c: Likewise.
207 * emit-rtl.c: Likewise.
208 * expmed.c: Likewise.
210 * fixed-value.c: Likewise.
211 * fold-const.c: Likewise.
212 * gimple-fold.c: Likewise.
213 * gimple-ssa-strength-reduction.c: Likewise.
214 * gimplify-rtx.c: Likewise.
215 * ipa-prop.c: Likewise.
216 * loop-iv.c: Likewise.
217 * optabs.c: Likewise.
218 * stor-layout.c: Likewise.
219 * tree-affine.c: Likewise.
220 * tree-cfg.c: Likewise.
221 * tree-dfa.c: Likewise.
222 * tree-flow-inline.h: Likewise.
223 * tree-object-size.c: Likewise.
224 * tree-predcom.c: Likewise.
225 * tree-pretty-print.c: Likewise.
226 * tree-sra.c: Likewise.
227 * tree-ssa-address.c: Likewise.
228 * tree-ssa-alias.c: Likewise.
229 * tree-ssa-ccp.c: Likewise.
230 * tree-ssa-forwprop.c: Likewise.
231 * tree-ssa-loop-ivopts.c: Likewise.
232 * tree-ssa-loop-niter.c: Likewise.
233 * tree-ssa-phiopt.c: Likewise.
234 * tree-ssa-pre.c: Likewise.
235 * tree-ssa-sccvn: Likewise.
236 * tree-ssa-structalias.c: Likewise.
237 * tree-ssa.c: Likewise.
238 * tree-switch-conversion.c: Likewise.
239 * tree-vect-loop-manip.c: Likewise.
240 * tree-vrp.c: Likewise.
243 * varasm.c: Likewise.
245 2012-09-06 Uros Bizjak <ubizjak@gmail.com>
247 * configure.ac (hle prefixes): Remove .code64.
248 * configure: Regenerated.
250 2012-09-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
252 * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P,
253 LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently.
254 * config/arm/arm.h: Use REG_P, MEM_P consistently.
255 * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P
257 * config/arm/neon.md: Use REG_P consistently.
258 * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently.
259 * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently.
260 * config/arm/vec-common.md: Use REG_P consistently.
262 2012-09-06 Richard Guenther <rguenther@suse.de>
264 PR tree-optimization/54498
265 * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
266 abort when reaching an already visited region.
267 * tree-ssa-alias.c (maybe_skip_until): Likewise. And do it.
268 (get_continuation_for_phi_1): Likewise.
269 (walk_non_aliased_vuses): When we translated the reference,
270 abort when we re-visit a region.
271 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
273 2012-09-06 David Edelsohn <dje.gcc@gmail.com>
275 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS
277 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new
278 arguments to TARGET_ADDRESS_COST call.
280 2012-09-06 Richard Guenther <rguenther@suse.de>
282 * tree.h (MOVE_NONTEMPORAL): Remove.
283 * tree-pretty-print.c (dump_generic_node): Remove
284 MOVE_NONTEMPORAL handling.
285 * expr.c (expand_expr_real_1): Likewise.
287 2012-09-06 Richard Guenther <rguenther@suse.de>
289 * passes.c (execute_function_todo): Call compute_may_aliases
290 only if flag_tree_pta is set.
292 2012-09-06 Andrew Pinski <apinski@cavium.com>
295 * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
297 2012-09-06 Jakub Jelinek <jakub@redhat.com>
299 PR rtl-optimization/54455
300 * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
301 bb ends up with asm goto referencing bb's label.
303 2012-09-06 Chen Liqin <liqin.gcc@gmail.com>
305 * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and
306 score_legitimize_address function, use compiler default code instead.
308 2012-09-05 Jan Hubicka <jh@suse.cz>
310 * ipa-inline.c (want_inline_small_function_p): Use
311 INLINE_HINT_loop_iterations hint.
313 2012-09-05 Andrew Pinski <apinski@cavium.com>
315 * optabs.c (emit_conditional_add): Correct comment about the arguments.
316 Remove code which might swap op2 and op3 since they cannot be swapped.
317 * doc/md.texi (add@var{mode}cc): Fix document about how the arguments
320 2012-09-05 Oleg Endo <olegendo@gcc.gnu.org>
322 * hooks.c (hook_int_rtx_mode_as_bool_0): New function.
323 * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it.
324 * output.h (default_address_cost): Add machine_mode and address space
326 * target.def (address_cost): Likewise.
327 * rtlanal.c (address_cost): Pass mode and address space to target hook.
328 (default_address_cost): Add unnamed machine_mode and address space
330 * doc/tm.texi: Regenerate.
331 * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use
332 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
333 * config/arm/arm.c (arm_address_cost): Add machine_mode and address
335 * config/avr/avr.c (avr_address_cost): Likewise.
336 * config/bfin/bfin.c (bfin_address_cost): Likewise.
337 * config/cr16/cr16.c (cr16_address_cost): Likewise.
338 * config/cris/cris.c (cris_address_cost): Likewise.
339 * config/epiphany/epiphany.c (epiphany_address_cost): Likewise.
340 * config/i386/i386.c (ix86_address_cost): Likewise.
341 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use
342 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
343 * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and
344 address space arguments. Pass them on in recursive invocation.
345 * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use
346 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
347 * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address
349 * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use
350 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
351 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise.
352 * config/mep/mep.c (mep_address_cost): Add machine_mode and address
354 * config/microblaze/microblaze.c (microblaze_address_cost): Likewise.
355 * config/mips/mips.c (mips_address_cost): Likewise.
356 * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use
357 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
358 * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and
359 address space arguments.
360 (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to
361 mn10300_address_cost.
362 * config/pa/pa.c (hppa_address_cost): Add machine_mode and address
364 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise.
365 (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of
367 * config/rx/rx.c (rx_address_cost): Add machine_mode and address
369 * config/s390/s390.c (s390_address_cost): Likewise.
370 * config/score/score-protos.h (score_address_cost): Likewise.
371 * config/score/score.c (score_address_cost): Likewise.
372 * config/sh/sh.c (sh_address_cost): Likewise.
373 * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use
374 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
375 * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise.
376 * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode
377 and address space arguments.
378 * config/v850/v850.c (TARGET_ADDRESS_COST): Use
379 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
380 * config/vax/vax.c (vax_address_cost): Add machine_mode and address
382 * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use
383 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
385 2012-09-05 Diego Novillo <dnovillo@google.com>
388 * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument.
390 2012-09-05 Jakub Jelinek <jakub@redhat.com>
393 * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
394 build_int_cst with size_type_node instead of size_int.
396 2012-09-05 Uros Bizjak <ubizjak@gmail.com>
398 * config/i386/sse.md (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>):
399 Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}.
400 Use nonimmediate_operand instead of
401 nonimm_not_xmm0_operand{,_maybe_avx}.
402 (<sse4_1_avx2>_pblendvb): Ditto.
403 (sse4_2_pcmpestr): Ditto.
404 (*sse4_2_pcmpestr_unaligned): Ditto.
405 (sse4_2_pcmpistr): Ditto.
406 (*sse4_2_pcmpistr_unaligned): Ditto.
407 * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate.
408 (nonimm_not_xmm0_operand): Ditto.
409 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
410 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
411 * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx.
413 2012-09-05 Eric Botcazou <ebotcazou@adacore.com>
415 * bb-reorder.c: Clarify a few points in the head comment and fix
416 long lines in other comments.
417 (find_traces): Fix long line.
418 (find_traces_1_round): Likewise.
419 (better_edge_p): Likewise.
420 (connect_traces): Likewise.
421 (duplicate_computed_gotos): Likewise.
422 (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces.
423 (fix_up_fall_thru_edges): Fix formatting.
425 2012-09-05 Richard Guenther <rguenther@suse.de>
427 PR tree-optimization/46590
428 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not
429 update SSA form here.
430 (canonicalize_induction_variables): Assert we do not need to
432 (tree_unroll_loops_completely): Update SSA form here.
433 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
434 Do not verify loop-closed SSA form if SSA form is not up-to-date.
436 2012-09-05 Georg-Johann Lay <avr@gjlay.de>
439 * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
440 not configured --with-avrlibc=no.
441 (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured
443 * config/avr/avrlibc.h: New file.
444 * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
445 not configured --with-avrlibc=no.
446 * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
448 2012-09-04 Teresa Johnson <tejohnson@google.com>
450 * gcov-io.c (gcov_write_summary): Write out non-zero histogram
451 entries to function summary along with an occupancy bit vector.
452 (gcov_read_summary): Read in the histogram entries.
453 (gcov_histo_index): New function.
454 (void gcov_histogram_merge): Ditto.
455 * gcov-io.h (gcov_type_unsigned): New type.
456 (struct gcov_bucket_type): Ditto.
457 (struct gcov_ctr_summary): Include histogram.
458 (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
459 (GCOV_HISTOGRAM_SIZE): New macro.
460 (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
461 * profile.c (NUM_GCOV_WORKING_SETS): Ditto.
462 (gcov_working_sets): New global variable.
463 (compute_working_sets): New function.
464 (find_working_set): Ditto.
465 (get_exec_counts): Invoke compute_working_sets.
466 * coverage.c (read_counts_file): Merge histograms, and
467 fix bug with accessing summary info for non-summable counters.
468 * basic-block.h (gcov_type_unsigned): New type.
469 (struct gcov_working_set_info): Ditto.
470 (find_working_set): Declare.
471 * gcov-dump.c (tag_summary): Dump out histogram.
473 2012-09-04 Diego Novillo <dnovillo@google.com>
476 * vec.h (vec_t::embedded_init): Move default argument value
477 to function declaration.
479 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
481 * bb-reorder.c (gate_handle_reorder_blocks): Move around.
482 (rest_of_handle_reorder_blocks): Likewise.
483 (pass_reorder_blocks): Likewise.
484 (gate_handle_partition_blocks): Likewise.
486 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
488 PR rtl-optimization/54456
489 * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
491 2012-09-04 Diego Novillo <dnovillo@google.com>
494 * vec.h (vec_t::alloc): Remove explicit type specification
496 (vec_t::copy): Likewise.
497 (vec_t::reserve): Likewise.
498 (vec_t::reserve_exact): Likewise.
499 (vec_t::safe_splice): Likewise.
500 (vec_t::safe_push): Likewise.
501 (vec_t::safe_grow): Likewise.
502 (vec_t::safe_grow_cleared): Likewise.
503 (vec_t::safe_insert): Likewise.
505 2012-09-04 Richard Henderson <rth@redhat.com>
507 * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
509 2012-09-04 Richard Guenther <rguenther@suse.de>
511 * tree-ssa-pre.c (value_expressions): Make it a vector of
512 bitmaps containing expression IDs.
513 (add_to_value): Adjust.
514 (sorted_array_from_bitmap_set): Likewise.
515 (bitmap_set_replace_value): Likewise.
516 (print_value_expressions): Likewise.
517 (get_constant_for_value_id): Likewise.
518 (get_representative_for): Likewise.
519 (phi_translate_1): Likewise.
520 (bitmap_find_leader): Likewise.
521 (find_or_generate_expression): Likewise.
522 (do_regular_insertion): Likewise.
523 (init_pre): Likewise.
524 (fini_pre): Likewise.
526 2012-09-04 Diego Novillo <dnovillo@google.com>
529 * vec.h (vec_t::copy): Add cast in call to reserve_exact.
531 2012-09-04 Richard Guenther <rguenther@suse.de>
533 * tree-ssa-pre.c (add_to_exp_gen): Adjust.
534 (make_values_for_phi): Do not add to PHI_GEN for FRE.
535 (compute_avail): Stop processing after adding all defs to
537 (init_pre): Do not allocate not needed bitmap sets for FRE.
539 2012-09-04 Diego Novillo <dnovillo@google.com>
541 Rewrite VEC_* functions as member functions of vec_t.
543 * vec.h: Update documentation.
544 (ALONE_VEC_CHECK_INFO): Define.
545 (ALONE_VEC_CHECK_DECL): Define.
546 (ALONE_VEC_CHECK_PASS): Define.
547 (struct vec_prefix): Rename field NUM to NUM_.
548 Rename field ALLOC to ALLOC_.
550 (struct vec_t): Rename field PREFIX to PREFIX_.
551 Rename field VEC to VEC_.
553 (vec_t::length): Rename from VEC_length_1. Update all users.
554 (vec_t::empty): Rename from VEC_empty_1. Update all users.
555 (vec_t::address): Rename from VEC_address_1. Update all users.
557 (vec_t::last): Rename from VEC_last_1. Update all users.
558 (vec_t::operator[]): Rename from VEC_index_1. Update all users.
559 (vec_t::iterate): Rename from VEC_iterate_1. Update all users.
560 (vec_t::embedded_size): Rename from VEC_embedded_size_1.
562 (vec_t::embedded_init): Rename from VEC_embedded_init_1.
564 (vec_t::alloc): Rename from VEC_alloc_1. Update all users.
565 (vec_t::free): Rename from VEC_free_1. Update all users.
566 (vec_t::copy): Rename from VEC_copy_1. Update all users.
567 (vec_t::space): Rename from VEC_space_1. Update all users.
568 (vec_t::reserve): Rename from VEC_reserve_1. Update all users.
569 (vec_t::reserve_exact): Rename from VEC_reserve_exact_1.
571 (vec_t::splice): Rename from VEC_splice_1. Update all users.
572 (vec_t::safe_splice): Rename from VEC_safe_splice_1. Update all users.
573 (vec_t::quick_push): Rename from VEC_quick_push_1. Update all users.
574 (vec_t::safe_push): Rename from VEC_safe_push_1. Update all users.
575 (vec_t::pop): Rename from VEC_pop_1. Update all users.
576 (vec_t::truncate): Rename from VEC_truncate_1. Update all users.
577 (vec_t::safe_grow): Rename from VEC_safe_grow_1. Update all users.
578 (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1.
580 (vec_t::replace): Rename from VEC_replace_1. Update all users.
581 (vec_t::quick_insert): Rename from VEC_quick_insert_1.
583 (vec_t::safe_insert): Rename from VEC_safe_insert_1. Update all users.
584 (vec_t::ordered_remove): Rename from VEC_ordered_remove_1.
586 (vec_t::unordered_remove): Rename from VEC_unordered_remove_1.
588 (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users.
589 (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users.
591 2012-09-04 Steven Bosscher <steven@gcc.gnu.org>
593 * gimple.h (gimple_build_switch): Remove.
594 (gimple_build_switch_vec): Promote to the new gimple_build_switch.
595 (gimple_switch_default_label): Assert the default case label is
596 really a default case label.
597 (gimple_switch_set_default_label): Likewise.
598 * gimple.c (gimple_build_switch_nlabels): Make sure a default label
599 is passed in, and simplify accordingly.
600 (gimple_build_switch): Removed.
601 (gimple_build_switch_vec): Rename to gimple_build_switch.
602 * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use.
603 * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL
605 * stmt.c (expand_case): Simplify using the fact that every GIMPLE
606 switch must have a default case.
607 * tree-cfg.c (group_case_labels_stmt): Likewise.
608 (verify_gimple_switch): Use gimple_switch_label in verifier to get
609 the label at index 0, and verify that it is a valid default case.
610 * except.c (sjlj_emit_dispatch_table): Rewrite construction of the
611 switch for dispatching.
612 * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use.
613 (lower_eh_dispatch): Likewise.
614 * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case
615 label at index 0 before turning it into a default case label.
616 * omp-low.c (expand_omp_sections): Update gimple_build_switch use.
617 * tree-switch-conversion.c (emit_case_bit_tests): Get the default case
618 label using gimple_switch_default_label.
619 (collect_switch_conv_info): Likewise.
620 (process_switch): Likewise.
621 * doc/gimple.texi: Update documentation of gimple_build_switch.
623 2012-09-04 Georg-Johann Lay <avr@gjlay.de>
626 * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
629 2012-09-04 Bin Cheng <bin.cheng@arm.com>
632 * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
633 of size less than 4 bytes by using macro ARM_NUM_INTS.
634 (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
636 2012-09-04 Richard Guenther <rguenther@suse.de>
638 PR tree-optimization/54458
639 * tree-ssa-threadupdate.c (thread_through_loop_header): If we
640 turn the loop into one with multiple latches mark it so.
642 2012-09-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
645 * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
647 (avr_allocate_stack_slots_for_args): ...this new static function.
649 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
651 * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT
653 (arm_emit_coreregs_64bit_shift): Likewise.
655 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
657 * config/arm/arm.c (arm_evpc_neon_vext): New function.
658 (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext.
660 2012-09-04 Oleg Endo <olegendo@gcc.gnu.org>
663 * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison
664 canonicalization code into...
665 * (sh_canonicalize_comparison): This new function.
666 * config/sh/sh-protos.h: Declare it.
667 * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON.
668 * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and
669 always invoke expand_cbranchsi4.
671 2012-09-03 Andi Kleen <ak@linux.intel.com>
673 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
676 2012-09-03 Andrew Pinski <apinski@cavium.com>
679 * tree-if-conv.c (constant_or_ssa_name): New function.
680 (fold_build_cond_expr): New function.
681 (predicate_scalar_phi): Use fold_build_cond_expr instead of build3.
682 (predicate_mem_writes): Likewise.
684 2012-09-03 Marc Glisse <marc.glisse@inria.fr>
686 * fold-const.c (fold_ternary_loc): Constant-propagate after
687 removing dead operands.
689 2012-09-03 Michael Matz <matz@suse.de>
691 PR tree-optimization/46590
692 * tree-cfg.c (gimple_duplicate_sese_region): Don't update
694 * tree-ssa-loop-ch.c (copy_loop_headers): ... but here.
696 2012-09-03 Sandra Loosemore <sandra@codesourcery.com>
698 * doc/invoke.texi: Fix numerous typos and punctuation/grammatical
699 errors throughout the file. Re-word some awkward sentences and
702 2012-09-03 Richard Guenther <rguenther@suse.de>
704 PR tree-optimization/54362
705 * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR.
707 2012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
709 * config/s390/s390.c (s390_loadrelative_operand_p): New function.
710 (s390_check_qrst_address, print_operand_address): Use
711 s390_loadrelative_operand_p instead of s390_symref_operand_p.
712 (s390_check_symref_alignment): Accept pointer size alignment for
714 (legitimize_pic_address): Use load relative on z10 or later.
716 2012-09-03 Jakub Jelinek <jakub@redhat.com>
719 * valtrack.c (dead_debug_insert_temp): Drop non-reg uses
722 2012-09-03 Joseph Myers <joseph@codesourcery.com>
724 * common.opt (--no-sysroot-suffix): New driver option.
725 * doc/invoke.texi (--no-sysroot-suffix): Document.
726 * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not
727 needing spec processing.
728 (main): Do not process sysroot suffixes if no_sysroot_suffix.
730 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
733 * common/config/sh/sh-common.c: Update copyright years.
734 (sh_option_init_struct): Delete.
735 (TARGET_OPTION_INIT_STRUCT): Likewise.
737 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
740 * config/sh/sh.md (cmpgeusi_t): Remove N alternative.
741 Check operands[1] in split condition instead of operands[0].
744 2012-09-02 Mark Kettenis <kettenis@openbsd.org>
746 * config.gcc (x86_64-*-openbsd*): New target.
747 * config.host (*-*-openbsd*): New target.
748 * config/openbsd.h (TARGET_C99_FUNCTIONS): Define.
749 * config/i386/openbsdelf.h: Remove some superfluous defines and
750 group things together in a more logical fashion.
751 (DBX_REGISTER_NUMBER): Provide a
752 definition that works on both 32-bit and 64-bit targets.
753 (WCHAR_TYPE_SIZE): Hardcode as 32.
754 (NO_DOLLAR_IN_LABEL): Remove undef.
755 (TARGET_DEFAULT): Remove.
756 (SET_ASM_OP): Remove.
757 (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning.
758 (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h
759 (DWARF2_UNWIND_INFO): Remove define.
760 (HAVE_ENABLE_EXECUTE_STACK): Define.
761 * config/host-openbsd.c: New file.
762 * config/t-openbsd (USER_H): Add EXTRA_HEADERS.
763 * config/x-openbsd: New file.
765 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
767 * config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
768 mode to sh_legitimate_index_p instead of QImode.
770 2012-09-02 Eric Botcazou <ebotcazou@adacore.com>
772 PR rtl-optimization/54369
773 * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
774 calling dbr_schedule.
775 * config/sparc/sparc.c (sparc_reorg): Likewise.
777 2012-09-01 Jakub Jelinek <jakub@redhat.com>
780 * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
781 operands[1] is CONST_INT_P, convert it to QImode before printing.
783 2012-09-01 Andrew Pinski <apinski@cavium.com>
785 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
786 A truncate of a memory is just loading the low part of the memory.
788 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
792 * config/i386/i386.c (ix86_legitimate_combined_insn): New function.
793 (TARGET_LEGITIMATE_COMBINED_INSN): New macro.
795 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
797 * target.def (legitimate_combined_insn): New target hook.
798 * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook.
799 * doc/tm.texi: Regenerated.
800 * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn
801 to allow targets to reject combined insn.
802 * hooks.h (hook_bool_rtx_true): New.
803 * hooks.c (hook_bool_rtx_true): Ditto.
805 2012-08-31 Martin Jambor <mjambor@suse.cz>
807 * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate
808 nonconstant_names after calculate_dominance_info and
811 2012-08-31 Greta Yorsh <Greta.Yorsh@arm.com>
813 * config/arm/arm.c (arm_expand_epilogue): Remove unused variable
816 2012-08-31 Martin Jambor <mjambor@suse.cz>
819 * ipa-inline-analysis.c (remap_predicate): Fix the offset_map
822 2012-08-31 Martin Jambor <mjambor@suse.cz>
824 * ipa-inline-analysis.c (phi_result_unknown_predicate): New function.
825 (predicate_for_phi_result): Likewise.
826 (estimate_function_body_sizes): Use the above two functions.
828 2012-08-31 Martin Jambor <mjambor@suse.cz>
831 * ipa-inline-analysis.c (estimate_function_body_sizes): Compute
832 dominance info and loops whenever optimizing.
834 2012-08-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
835 Richard Earnshaw <richard.earnshaw@arm.com>
838 * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
839 element size. Use elem_type from the formal parameter. New parameter
841 (neon_expand_args): Adjust call to neon_dereference_pointer.
843 2012-08-29 Steven Bosscher <steven@gcc.gnu.org>
845 * cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
847 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
850 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
851 mapping style, add ../lib/mips16.
852 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
853 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
855 2012-08-29 Richard Sandiford <rdsandiford@googlemail.com>
857 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
860 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
862 * config/sh/sh.opt (menable-tas): Rename to mtas.
863 * doc/invoke.texi (SH options): Likewise.
864 * config/sh/sync.md: Update comments.
866 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
868 * config/sh/iterators.md: New file.
869 * config/sh/sync.md (I124, I12, i124suffix): Delete. Replace usage
870 with new iterators QIHISI, QIHI, bw, bwl respectively throughout
872 * config/sh/sh.md: Include new file iterators.md.
873 (zero_extendhisi2, zero_extendqisi2): Fold into zero_extend<mode>si2.
874 (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into
875 *zero_extend<mode>si2_compact.
876 (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into
877 *zero_extend<mode>si2_disp_mem.
878 (extendhisi2, extendqisi2): Fold into extend<mode>si2.
879 (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into
880 *extend<mode>si2_compact_reg.
881 (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold
882 into *extend<mode>si2_compact_mem_disp.
883 (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into
884 *extend<mode>si2_compact_snd.
885 (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename
886 to *movsi_index_disp_load, *movhi_index_disp_load,
887 *mov<mode>_index_disp_store.
888 (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov<mode>_reg_reg.
889 (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into
890 *mov<mode>_store_mem_disp04.
891 (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into
892 *mov<mode>_store_mem_disp12.
893 (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into
894 *mov<mode>_load_mem_disp04 and *mov<mode>_load_mem_disp12.
896 2012-08-29 Martin Jambor <mjambor@suse.cz>
898 * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not
899 do_estimate_edge_time.
901 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
903 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm
904 directives, remove #ifndef __mips16 guards.
905 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
906 mapping style, add ../lib/mips16.
907 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
908 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
910 2012-08-28 Walter Lee <walt@tilera.com>
911 * confg/tilegx/tilegx.md: Fix code style.
912 (*zero_extendsidi_truncdisi): Fix typo.
913 * config/tilegx/tilegx.c: Fix code style.
914 (tilegx_function_profiler): Fix typo.
916 2012-08-28 Walter Lee <walt@tilera.com>
918 * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large.
919 * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h.
920 (CRT_CALL_STATIC_FUNCTION): Define.
921 * config/tilegx/predicates.md (const_last_symbolic_operand):
922 Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and
923 UNSPEC_HW2_LAST_PLT_PCREL.
924 (const_symbolic_operand): Handle UNSPEC_HW1_PCREL,
925 UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL.
926 * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define,
927 and renumber the constants that follow.
928 (UNSPEC_HW1_PCREL): Ditto.
929 (UNSPEC_HW2_LAST_PCREL): Ditto.
930 (UNSPEC_HW0_PLT_PCREL): Define.
931 (UNSPEC_HW1_PLT_PCREL): Define.
932 (UNSPEC_HW1_LAST_PLT_PCREL): Define.
933 (UNSPEC_HW2_LAST_PLT_PCREL): Define.
934 (mov_large_pcrel_step1): Define.
935 (mov_large_pcrel_step2): Define.
936 (mov_large_pcrel_step3): Define.
937 (mov_large_pcrel_step4): Define.
938 (mov_plt_pcrel_step1): Define.
939 (mov_plt_pcrel_step2): Define.
940 (mov_plt_pcrel_step3): Define.
941 (mov_plt_pcrel_step1_32bit): Define.
942 (mov_plt_pcrel_step2_32bit): Define.
943 (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC.
945 * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h.
946 (mcmodel): New option.
947 (enum cmodel): Define.
950 * config/tilegx/tilegx-opts.h: New file.
951 * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address):
953 (tilegx_compute_pcrel_plt_address): Declare.
954 * config/tilegx/tilegx.c (tilegx_option_override): Handle
956 (tilegx_function_ok_for_sibcall): Ditto.
957 (compute_pcrel_address): Rename to tilegx_compute_pcrel_address,
958 and don't declare static. Handle tilegx_cmodel.
959 (tilegx_compute_pcrel_plt_address): Define.
960 (tilegx_legitimize_pic_address): Rename calls to
961 compute_pcrel_address.
962 (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL,
963 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
964 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
965 (load_pic_register): Rename call to compute_pcrel_address.
966 (tilegx_print_operand): Handle UNSPEC_HW1_PCREL,
967 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
968 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
970 2012-08-27 Maxim Kuvyrkov <maxim@codesourcery.com>
972 * sched-deps.c (add_dependence_list_and_free): Simplify.
973 (flush_pending_list_and_free): Fix a hack that was fixing a hack. Free
974 lists when add_dependence_list_and_free doesn't free them.
976 2012-08-27 Uros Bizjak <ubizjak@gmail.com>
979 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
980 true for TARGET_64BIT or !flag_pic.
981 * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
982 (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
983 to cmpxchg8b_pic_memory_operand. Use DWIH mode iterator.
984 Add insn constraint. Conditionally emit xchg asm insns.
985 (atomic_compare_and_swap<mode>): Update calls. Check only
986 cmpxchg8b_pic_memory_operand in memory address fixup.
988 (CASHMODE): Rename from DCASHMODE.
989 (doublemodesuffix): Update modes.
990 (regprefix): New mode attribute.
992 (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
993 <UNSPECV_CMPXCHG>: New constant.
994 (atomic_compare_and_swap<mode>_1): Rename from
995 atomic_compare_and_swap_single<mode>. Update calls and
996 unspec_volatile constants.
997 (atomic_compare_and_swap<mode>_doubleword): Rename from
998 atomic_compare_and_swap_double<mode>. Update calls and
999 unspec_volatile constants.
1001 2012-08-27 Walter Lee <walt@tilera.com>
1003 * doc/md.texi (TILE-Gx): Fix typo.
1005 2012-08-27 Walter Lee <walt@tilera.com>
1007 * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
1008 * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
1010 2012-08-27 Walter Lee <walt@tilera.com>
1012 * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
1013 (insn_bfins): Delete.
1015 2012-08-27 Walter Lee <walt@tilera.com>
1017 * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
1018 atomic_exchange_bare<mode>,
1019 atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
1020 * config/tilegx/tilegx-generic.md (X1_remote): New
1022 * config/tilegx/tilegx.md (type): Add X1_remove.
1023 (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
1024 insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
1025 insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
1028 2012-08-27 Andreas Schwab <schwab@linux-m68k.org>
1030 * gdbinit.in: Fix syntax of skip command.
1032 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
1034 * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for
1035 SYMBOL_REF SET_SRCs.
1037 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
1039 * config/mips/mips.c (vr4130_align_insns): Don't simulate
1040 ghost instructions. Assert that the required instructions exist.
1042 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
1044 * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for
1046 * config/mips/mips.c (machine_function): Add next_fcc.
1047 (mips_output_move): Remove handling of fcc moves.
1048 (mips_allocate_fcc): New function.
1049 (mips_emit_compare, mips_expand_vcondv2sf): Use it.
1050 (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers.
1051 Remove special case for CCmode reloads.
1052 (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat
1053 the result a fixed operand.
1054 * config/mips/mips.md (move_type): Remove lui_movf.
1055 (type, length): Remove references to it.
1056 (movcc, reload_incc, reload_outcc): Delete.
1058 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
1060 * config/mips/mips.c (mips_has_long_branch_p): New function,
1062 (mips_expand_ghost_gp_insns): ...here. Look inside sequences.
1064 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
1066 * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference.
1068 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
1070 * config/mips/mips.c (mips_rtx_costs): Add costs for CINS.
1072 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
1074 * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
1075 to the size cost of multiplication.
1077 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
1079 * doc/install.texi (Specific): Clarify what needs to be added to
1082 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
1084 * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL
1085 and NO_DOT_IN_LABEL from here...
1086 (Label Output): ...to here.
1087 * doc/tm.texi: Regenerate.
1089 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
1091 * doc/invoke.texi (C++ Dialect Options): Add missing space.
1093 2012-08-25 Eric Botcazou <ebotcazou@adacore.com>
1095 PR rtl-optimization/54088
1096 * jump.c (delete_related_insns): Robustify latest change.
1098 2012-08-25 Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
1100 * doc/extend.texi (__atomic Builtins): Remove space before comma.
1102 2012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
1103 Andrew Pinski <apinski@cavium.com>
1105 * config/mips/mips.h (CASE_VECTOR_MODE): For not
1106 TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
1107 (CASE_VECTOR_SHORTEN_MODE): Likewise.
1109 2012-08-25 Uros Bizjak <ubizjak@gmail.com>
1111 * config/i386/i386.h (FP_REG_P): Remove macro.
1112 (FP_REGNO_P): Ditto.
1113 (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P.
1114 (HARD_REGNO_NREGS_HAS_PADDING): Ditto.
1115 (ANY_FP_REGNO_P): Ditto.
1116 (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P.
1117 * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P
1118 instead of FP_REGNO_P.
1119 (ix86_hard_regno_mode_ok): Ditto.
1120 * config/i386/predicates.md (fp_register_operand): Ditto.
1121 (register_and_not_fp_reg_operand): Ditto.
1122 * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead
1125 * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P.
1127 2012-08-24 Jason Merrill <jason@redhat.com>
1129 * print-tree.c (print_node): Don't check TREE_LANG_FLAG_*
1130 on TREE_VEC or SSA_NAME.
1132 2012-08-24 Jakub Jelinek <jakub@redhat.com>
1135 * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
1136 if init is a CONSTRUCTOR.
1138 2012-08-24 Steven Bosscher <steven@gcc.gnu.org>
1140 * tree-ssa-live.c (dump_var_map): Do not dump the partition
1141 map of virtual operands.
1143 2012-08-24 Yuri Rumyantsev <ysrumyan@gmail.com>
1145 * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
1146 case for Atom processor.
1148 2012-08-24 Simon Baldwin <simonb@google.com>
1150 * dwarf2out.c (gen_producer_string): Omit command line switch if
1151 CL_NO_DWARF_RECORD flag set.
1152 * opts.h (CL_NO_DWARF_RECORD): New.
1153 * opt-functions.awk (switch_flags): Add NoDWARFRecord.
1154 * doc/options.texi: Document NoDWARFRecord option flag.
1156 2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
1159 * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
1160 frame_pointer_rtx for based_loc_descr.
1162 2012-08-24 Martin Jambor <mjambor@suse.cz>
1164 * predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl
1165 instead of current_function_decl, use profile_status_for_function and
1166 ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
1167 (maybe_hot_count_p): New parameter fun, use
1168 profile_status_for_function instead of its cfun_variant.
1169 (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
1171 (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
1172 maybe_hot_frequency_p.
1173 (probably_never_executed_bb_p): New parameter fun, use its decl
1174 instead of current_function_decl.
1175 (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
1176 (rtl_profile_for_bb): Likewise.
1177 (compute_function_frequency): Pass cfun to maybe_hot_bb_p and
1178 probably_never_executed_bb_p.
1179 * tree-ssa-operands.c (ssa_operands_active): New operator fun. Use it
1181 (update_stmt_operands): Pass cfun as an argument of
1182 ssa_operands_active.
1183 (swap_tree_operands): Likewise.
1184 * gimple-iterator.c (update_modified_stmt): Likewise.
1185 (update_modified_stmts): Likewise.
1186 * tree-flow-inline.h (delink_stmt_imm_use): Likewise.
1187 * tree-ssa.c (delete_tree_ssa): Likewise.
1188 * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
1189 (push_to_next_round_p): Likewise.
1190 (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
1191 * cfg.c: Inlude tree.h.
1192 (check_bb_profile): Use profile_status_for_function,
1193 EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
1194 DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
1196 (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
1197 maybe_hot_bb_p and probably_never_executed_bb_p.
1198 * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
1199 DECL_STRUCT_FUNCTION (current_function_decl) is not NULL. Pass it to
1200 dump_histograms_for_stmt.
1201 (dump_gimple_mem_ops): Pass
1202 DECL_STRUCT_FUNCTION (current_function_decl)
1203 as an argument to dump_gimple_mem_ops.
1204 * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
1205 Do not change cfun. Change and restore current_function_decl.
1206 * Makefile.in (cfg.o): Include TREE_H in dependencies.
1208 2012-08-24 Georg-Johann Lay <avr@gjlay.de>
1211 * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes.
1212 * avr/avr-fixed.md: New file.
1213 * avr/avr.md: Include it.
1215 (adjust_len): Add: minus, minus64, ufract, sfract.
1216 (ALL1, ALL2, ALL4, ORDERED234): New mode iterators.
1217 (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
1218 (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
1219 (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3,
1220 subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi,
1221 cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1.
1222 (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3,
1223 ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3,
1224 *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all
1225 16-bit modes in ALL2.
1226 (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI.
1227 (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const,
1228 ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const,
1229 *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all
1230 32-bit modes in ALL4.
1231 * avr-dimode.md (ALL8): New mode iterator.
1232 (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn,
1233 subdi3_const_insn, cbranchdi4, compare_di2,
1234 compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn,
1235 ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle
1236 all 64-bit modes in ALL8.
1237 * config/avr/avr-protos.h (avr_to_int_mode): New prototype.
1238 (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes.
1239 * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to...
1240 (avr_fixed_point_supported_p): ...this new static function.
1241 (TARGET_BUILD_BUILTIN_VA_LIST): Define to...
1242 (avr_build_builtin_va_list): ...this new static function.
1243 (avr_adjust_type_node): New static function.
1244 (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P.
1245 (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new
1246 pseudo instead of gen_rtx_MINUS.
1247 (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED.
1248 (notice_update_cc): Handle: CC_MINUS.
1249 (output_movqi): Generalize to handle respective fixed-point modes.
1250 (output_movhi, output_movsisf, avr_2word_insn_p): Ditto.
1251 (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes.
1252 (avr_assemble_integer): Ditto.
1253 (output_reload_in_const, output_reload_insisf): Ditto.
1254 (avr_compare_pattern): Skip all modes > 4 bytes.
1255 (avr_2word_insn_p): Skip movuqq_insn, movqq_insn.
1256 (avr_out_fract, avr_out_minus, avr_out_minus64): New functions.
1257 (avr_to_int_mode): New function.
1258 (adjust_insn_length): Handle: ADJUST_LEN_SFRACT,
1259 ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64.
1260 * config/avr/predicates.md (const0_operand): Allow const_fixed.
1261 (const_operand, const_or_immediate_operand): New.
1262 (nonmemory_or_const_operand): New.
1263 * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ):
1265 * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define.
1267 2012-08-23 Kenneth Zadeck <zadeck@naturalbridge.com>
1269 * alias.c (rtx_equal_for_memref_p): Convert constant cases.
1270 * combine.c (find_single_use_1, mark_used_regs_combine): Convert
1272 * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
1273 count_reg_usage): Convert constant cases.
1274 * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY.
1275 (cselib_subst_to_values): Convert constant cases.
1276 * df-scan.c (df_uses_record): Ditto.
1277 * dse.c (const_or_frame_p): Convert case statements to explicit
1278 if-then-else using mode classes.
1279 * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
1280 * explow.c (convert_memory_address_addr_space): Ditto.
1281 * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
1282 * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
1283 * ira.c (equiv_init_varies_p, contains_replace_regs,
1284 memref_referenced_p, rtx_moveable_p): Ditto.
1285 * jump.c (mark_jump_label_1): Remove constant cases.
1286 (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
1287 * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
1288 invariant_expr_equal_p): Convert to CASE_CONST_ANY.
1289 * postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
1290 * reginfo.c (reg_scan_mark_refs): Ditto.
1291 * regrename.c (scan_rtx): Ditto.
1292 * reload1.c (eliminate_regs_1, elimination_effects,
1293 scan_paradoxical_subregs): Ditto.
1294 * reload.c (operands_match_p, subst_reg_equivs): Ditto.
1295 * resource.c (mark_referenced_resources, mark_set_resources): Ditto.
1296 * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
1297 (reg_mentioned_p, modified_between_p, modified_in_p)
1298 (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
1299 inequality_comparisons_p, computed_jump_p_1): Ditto.
1300 * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
1301 * sched-deps.c (sched_analyze_2): Ditto.
1302 * valtrack.c (cleanup_auto_inc_dec): Ditto.
1303 * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
1304 CASE_CONST_ANY): New macros.
1306 2012-08-23 Julian Brown <julian@codesourcery.com>
1307 Sandra Loosemore <sandra@codesourcery.com>
1309 * config/mips/mips.md
1310 (UNSPEC_CASESI_DISPATCH): New.
1311 (MIPS16_T_REGNUM): New constant.
1312 (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
1314 (casesi_internal_mips16_<mode>): New.
1315 * config/mips/mips.c (mips16_split_long_branches): Adjust test
1316 to ignore casesi jump tables.
1317 * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
1319 (CASE_VECTOR_MODE): Use SImode unconditionally.
1320 (CASE_VECTOR_SHORTEN_MODE): Define.
1321 (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
1322 when necessary for MIPS16_SHORT_JUMP_TABLES.
1324 2012-08-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1326 * config/rs6000/rs6000.c (rs6000_density_test): Free loop body.
1328 2012-08-23 H.J. Lu <hongjiu.lu@intel.com>
1331 * doc/invoke.texi: Add -da and remove -dm.
1333 2012-08-23 Richard Guenther <rguenther@suse.de>
1335 * tree-vect-stmts.c (vect_finish_stmt_generation): Update
1338 2012-08-23 Jakub Jelinek <jakub@redhat.com>
1340 * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION.
1342 2012-08-23 Mingjie Xing <mingjie.xing@gmail.com>
1344 * doc/gty.texi: Fix typo.
1346 2012-08-23 Richard Guenther <rguenther@suse.de>
1348 * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands.
1349 (find_uses_to_rename_use): Likewise.
1350 (find_uses_to_rename_bb): Likewise.
1351 (find_uses_to_rename_stmt): Walk over all operands.
1353 2012-08-22 Oleg Endo <olegendo@gcc.gnu.org>
1356 * config/sh/predicates (p27_rshift_count_operand,
1357 not_p27_rshift_count_operand): New predicates.
1358 * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p,
1359 sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special
1360 case when shift amount is 31.
1361 (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m.
1362 * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead
1364 (ashlsi_c): Rename to shll. Adapt calls to gen_ashlsi_c throughout
1366 (lshrsi3): Remove clobber from expander. Use shift_count_operand
1367 instead of nonmemory_operand predicate for second operand. Add
1368 handling of case lshrsi3_n_clobbers_t.
1369 (lshrsi3_k): Use p27_rshift_count_operand for second operand.
1370 (lshrsi3_d): Make insn_and_split. Split dynamic shift to constant
1371 shift sequences if beneficial.
1372 (lshrsi3_n): Make insn_and_split. Split constant shift sequence to
1373 dynamic shift if beneficial.
1374 (lshrsi3_n_clobbers_t): New insn_and_split.
1375 (lshrsi3_m): Delete.
1377 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
1379 * tracer.c (mark_bb_seen): Use SBITMAP_SIZE.
1381 * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale,
1382 or rather a lack thereof.
1383 (init_alias_analysis): Propagate the latest information across
1384 the CFG in topological order to propagate as far as possible in
1385 each iteration. Ignore debug insns.
1387 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
1389 * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
1391 * config/i386/i386.c (flag_opts): Add -mlong-double-64.
1392 (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
1394 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
1395 TARGET_LONG_DOUBLE_64 is true.
1396 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
1397 (WIDEST_HARDWARE_FP_SIZE): Defined to 80.
1399 * config/i386/i386.opt (mlong-double-80): New option.
1400 (mlong-double-64): Likewise.
1402 * config/i386/i386-c.c (ix86_target_macros): Define
1403 __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
1405 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
1408 * config/i386/i386.c (ix86_split_to_parts): Replace
1409 REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target.
1411 2012-08-22 Richard Guenther <rguenther@suse.de>
1413 * tree-vectorizer.c (vectorize_loops): Do not call
1414 mark_virtual_operands_for_renaming.
1415 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
1416 Do not update SSA form here.
1418 2012-08-22 Dodji Seketeli <dodji@redhat.com>
1420 * tree.h (TREE_NOTHROW): Use the base.nothrow_flag.
1422 2012-08-22 Richard Guenther <rguenther@suse.de>
1424 PR tree-optimization/46590
1425 * tree-ssa-alias.h (get_continuation_for_phi): Add alias query
1426 counter output argument.
1427 (walk_non_aliased_vuses): Add alias query counter argument
1428 to the walker callback.
1429 * tree-ssa-alias.c (maybe_skip_until): Add alias query counter
1430 output argument and count alias queries.
1431 (get_continuation_for_phi_1): Likewise.
1432 (get_continuation_for_phi): Likewise.
1433 (walk_non_aliased_vuses): Add alias query counter argument
1434 to the walker callback and allow it to abort the walk by
1436 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
1437 * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query
1438 counter parmeter, abort walk if that is bigger than
1439 --param sccvn-max-alias-queries-per-access.
1440 * params.def (sccvn-max-alias-queries-per-access): New param.
1441 * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document.
1443 2012-08-22 Richard Guenther <rguenther@suse.de>
1445 * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking.
1446 * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert
1447 instead of gcc_assert.
1448 (mark_block_for_update): Likewise.
1449 (add_new_name_mapping): Likewise.
1450 (mark_def_sites): Likewise.
1451 (insert_phi_nodes_for): Likewise.
1452 (rewrite_debug_stmt_uses): Likewise.
1453 (rewrite_stmt): Likewise.
1454 (maybe_register_def): Likewise.
1455 (rewrite_update_phi_arguments): Likewise.
1456 (rewrite_update_enter_block): Likewise.
1457 (mark_def_interesting): Likewise.
1458 (prepare_def_site_for): Likewise.
1459 (insert_updated_phi_nodes_for): Likewise.
1461 2012-08-22 Jakub Jelinek <jakub@redhat.com>
1463 * tree-vect-loop.c (vect_transform_loop): Initialize
1464 check_profitability to false.
1466 * tree-predcom.c (try_combine_chains): Free the worklist vector
1469 2012-08-22 Marc Glisse <marc.glisse@inria.fr>
1471 PR tree-optimization/54317
1472 * tree-vrp.c (extract_range_from_binary_expr_1): Test for
1473 double_int overflow.
1476 2012-08-22 Jakub Jelinek <jakub@redhat.com>
1478 * tree-vrp.c (find_assert_locations): Skip also edges
1479 from the entry block.
1481 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call
1482 free_stmt_vec_info on orig_cond after gsi_removing it.
1483 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always
1484 free body_cost_vec vector.
1485 (vect_analyze_data_refs): If gather is unsuccessful,
1487 * tree-inline.c (tree_function_versioning): Free
1488 old_transforms_to_apply vector.
1490 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
1492 * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents
1493 of this a VEC and add a bitmap obstack.
1494 (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared
1496 (ssa_conflicts_delete): Free the VEC and release the obstack.
1497 (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one,
1498 ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes.
1499 (truct live_track_d): Add another bitmap obstack here.
1500 (new_live_track): Initialize it and use it for all bitmaps.
1501 (delete_live_track): Don't free the bitmaps one at a time, just
1502 release the obstack.
1503 (create_outofssa_var_map): Fix to conform to GCC code style rules.
1505 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
1507 * config/m32c/constraints.md: New file.
1508 * config/m32c/t-m32c (MD_FILES): Add constraints.
1509 * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete.
1510 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
1511 (m32c_reg_class_from_constraint): Delete.
1512 (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete.
1513 (m32c_matches_constraint_p): Declare.
1514 * config/m32c/m32c.h (CONSTRAINT_LEN): Delete.
1515 (REG_CLASS_FROM_CONSTRAINT): Delete.
1516 (CONST_OK_FOR_CONSTRAINT_P): Delete.
1517 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete.
1518 (EXTRA_CONSTRAINT_STR): Delete.
1519 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete.
1520 * config/m32c/m32c.c: Include tm-constrs.h
1521 (m32c_reg_class_from_constraint): Delete.
1522 (m32c_const_ok_for_constraint_p): Delete.
1523 (m32c_extra_constraint_p2): Rename to...
1524 (m32c_matches_constraint_p): ...this. Make it return bool. Tweak
1526 (m32c_extra_constraint_p): Delete.
1527 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
1528 (m32c_split_move): Use satisfies_constraint_Ss.
1529 * config/m32c/predicates.md (memsym_operand): Use
1530 satisfies_constraint_Si.
1531 (memimmed_operand): Use satisfies_constraint_Sp.
1532 (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb.
1533 (m32c_1bit16_operand): Use satisfies_constraint_Ilw.
1534 (m32c_1mask8_operand): Use satisfies_constraint_ImB.
1535 (m32c_1mask16_operand): Use satisfies_constraint_Imw.
1537 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
1539 * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete.
1540 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1541 (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete.
1542 * config/mep/mep.c (mep_reg_class_from_constraint): Delete.
1543 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
1544 * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete.
1545 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
1547 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
1549 * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t,
1550 cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond,
1551 truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a,
1552 ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei,
1553 call_valuei_pcrel, sibcalli_pcrel, sibcall_compact,
1554 sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1,
1555 casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1,
1556 sp_switch_2, stack_protect_set_si, stack_protect_set_si_media,
1557 stack_protect_set_di_media, stack_protect_test_si,
1558 stack_protect_test_si_media, stack_protect_test_di_media): Convert to
1559 multi-line asm output strings.
1560 (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm
1562 (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli,
1563 call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a,
1564 bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a,
1565 bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr):
1566 Use tab char instead of '\\t'.
1567 (iordi3): Use braced string.
1568 (*movsi_pop): Use tab chars instead of spaces.
1570 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
1573 * config/sh/sh.md (*movhi_index_disp): Add support for SH2A
1576 2012-08-21 H.J. Lu <hongjiu.lu@intel.com>
1579 * df-scan.c (df_bb_verify): Restore df_free_collection_rec call
1580 inside the insn traversal loop.
1582 * vec.h (vec_reserve): Remove the stack allocation check.
1584 2012-08-21 Marc Glisse <marc.glisse@inria.fr>
1586 * fold-const.c (fold_ternary_loc): Detect identity permutations.
1587 Canonicalize permutations more.
1588 * tree-ssa-forwprop.c (is_combined_permutation_identity): New function.
1589 (simplify_permutation): Likewise.
1590 (ssa_forward_propagate_and_combine): Call it.
1592 2012-08-21 Richard Guenther <rguenther@suse.de>
1594 * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
1595 the affine expansion cache.
1596 * tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
1598 (free_expr_hash_elt): ... this one.
1599 (record_cond): Properly free a not needed hashtable element.
1600 (lookup_avail_expr): Likewise.
1601 * tree-into-ssa.c (init_ssa_renamer): Specify a free function
1602 for the var_infos hashtable.
1603 (update_ssa): Likewise.
1605 2012-08-21 Richard Guenther <rguenther@suse.de>
1607 * alloc-pool.c (pool_alloc): Fix valgrind annotation.
1608 * tree.h: Fix typo and complete flags documentation.
1610 2012-08-21 Richard Guenther <rguenther@suse.de>
1612 * tree.h (struct tree_base): Add union to make it possible to
1613 re-use the upper 4 bytes for tree codes that do not need as
1614 many flags as others. Move visited and default_def_flag to
1615 common bits section in exchange for saturating_flag and
1616 unsigned_flag. Add SSA name version and tree vec length
1618 (struct tree_vec): Remove length field here.
1619 (struct tree_ssa_name): Remove version field here.
1621 2012-08-20 Jan Hubicka <jh@suse.cz>
1624 * ipa-inline.c (want_inline_small_function_p): Take loop_iterations
1626 (edge_badness): Likewise.
1627 * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations.
1628 (inline_summary): Add loop_iterations.
1629 * ipa-inline-analysis.c: Include tree-scalar-evolution.h.
1630 (dump_inline_hints): Dump loop_iterations.
1631 (reset_inline_summary): Free loop_iterations.
1632 (inline_node_duplication_hook): Update loop_iterations.
1633 (dump_inline_summary): Dump loop_iterations.
1634 (will_be_nonconstant_expr_predicate): New function.
1635 (estimate_function_body_sizes): Analyze loops.
1636 (estimate_node_size_and_time): Set hint loop_iterations.
1637 (inline_merge_summary): Merge loop iterations.
1638 (inline_read_section): Stream in loop_iterations.
1639 (inline_write_summary): Stream out loop_iterations.
1641 2012-08-20 Florian Weimer <fweimer@redhat.com>
1644 * call.c (build_operator_new_call): Add size_check argument and
1646 * cp-tree.h (build_operator_new_call): Adjust declaration.
1647 * init.c (build_new_1): Compute array size check and apply it.
1649 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
1652 * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits.
1653 (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split.
1654 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function.
1655 * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it.
1657 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
1660 * config/sh/sh.md (*cset_zero): New insns.
1662 2012-08-20 Mark Wielaard <mjw@redhat.com>
1664 * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc.
1665 * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc.
1666 (add_AT_low_high_pc): New function.
1667 (AT_lbl): Handle dw_val_class_high_pc.
1668 (print_die): Likewise.
1669 (attr_checksum): Likewise.
1670 (attr_checksum_ordered): Likewise.
1671 (same_dw_val_p): Likewise.
1672 (size_of_die): Likewise.
1673 (value_format): Likewise.
1674 (output_die): Likewise.
1675 (gen_subprogram_die): Use add_AT_low_high_pc.
1676 (add_high_low_attributes): Likewise.
1677 (dwarf2out_finish): Likewise.
1679 2012-08-20 Jakub Jelinek <jakub@redhat.com>
1681 PR rtl-optimization/54294
1682 * fwprop.c (all_uses_available_at): Ignore debug insns in between
1683 def_insn and target_insn when checking whether the shortcut is
1686 2012-08-20 Eric Botcazou <ebotcazou@adacore.com>
1688 * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define.
1690 2012-08-20 Patrick Marlier <patrick.marlier@gmail.com>
1693 * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
1695 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
1698 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
1699 declaration and setter.
1701 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
1704 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
1706 (is_widening_mult_rhs_p): Use it.
1708 2012-08-20 Joseph Myers <joseph@codesourcery.com>
1710 * configure.ac (ffs): Check for declaration.
1711 * configure, config.in: Regenerate.
1713 2012-08-20 Richard Guenther <rguenther@suse.de>
1715 * tree-flow.h (register_new_name_mapping): Remove.
1716 * tree-into-ssa.c (register_new_name_mapping): Likewise.
1717 (add_new_name_mapping): Do not push/pop timevar here.
1718 (create_new_def_for): Instead do it here. Initialize
1719 update-ssa here, handle a NULL def.
1720 * tree-vrp.c (build_assert_expr_for): Use create_new_def_for.
1722 2012-08-20 Richard Guenther <rguenther@suse.de>
1724 PR tree-optimization/54327
1725 * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains
1726 if the use is registered for SSA update.
1728 2012-08-20 Jakub Jelinek <jakub@redhat.com>
1730 PR tree-optimization/54321
1731 * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1
1732 as second argument to tree_low_cst call on val2.
1734 2012-08-20 Richard Guenther <rguenther@suse.de>
1736 * gimple.h (gimple_statement_base): Annotate with GTY chain_next.
1738 2012-08-20 Richard Guenther <rguenther@suse.de>
1741 * genoutput.c (note_constraint): Properly use CONST_CAST.
1743 2012-08-19 Nick Clifton <nickc@redhat.com>
1746 * config/arm/mmintrin.h: Remove spurious #endif.
1748 2012-08-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1750 * config/avr/avr-log.c (avr_log_vadump): Properly use
1751 int-promoted enum values.
1752 * config/avr/avr.h (struct mcu_type_s): Change `arch' from
1753 int to enum avr_arch.
1754 * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer.
1756 2012-08-18 Jan Hubicka <jh@suse.cz>
1759 * ipa-inline.c (want_inline_small_function_p): Bypass
1760 inline limits for hinted functions.
1761 (edge_badness): Dump hints; decrease badness for hinted funcitons.
1762 * ipa-inline.h (enum inline_hints_vals): New enum.
1763 (inline_hints): New type.
1764 (edge_growth_cache_entry): Add hints.
1765 (dump_inline_summary): Update.
1766 (dump_inline_hints): Declare.
1767 (do_estimate_edge_hints): Declare.
1768 (estimate_edge_hints): New inline function.
1769 (reset_edge_growth_cache): Update.
1770 * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges.
1771 * ipa-inline-analysis.c (dump_inline_hints): New function.
1772 (estimate_edge_devirt_benefit): Return true when function should be
1774 (estimate_calls_size_and_time): New hints argument; set it when
1775 devritualization happens.
1776 (estimate_node_size_and_time): New hints argument.
1777 (do_estimate_edge_time): Cache hints.
1778 (do_estimate_edge_growth): Update.
1779 (do_estimate_edge_hints): New function
1781 2012-08-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1784 * expmed.c (expand_mult): Skip synth_mult for negative coefficients
1785 if the mode is larger than a wide int and it is too costly to multiply
1786 by a positive multiplier and negate the result.
1788 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
1790 * sparseset.c (sparseset_alloc): Use non-clearing allocation. Tell
1791 valgrind not to worry about reading from unitialized memory.
1793 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
1796 * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is
1797 freed when its obstack is release.
1799 2012-08-18 Andrew Pinski <pinskia@gmail.com>
1801 * alloc-pool.c (pool_alloc): Add valgrind markers.
1802 (pool_free): Likewise.
1804 2012-08-17 Walter Lee <walt@tilera.com>
1806 * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
1807 (FEEDBACK_ENTER): Define.
1808 (FEEDBACK_REENTER): Define.
1809 (FEEDBACK_ENTRY): Define.
1810 * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
1811 (FEEDBACK_ENTER): Define.
1812 (FEEDBACK_REENTER): Define.
1813 (FEEDBACK_ENTRY): Define.
1815 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
1816 Gary Funck <gary@intrepid.com>
1819 * config/i386/i386.c (ix86_member_type_forces_blk): New function.
1820 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
1822 * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro.
1824 2012-08-17 Marc Glisse <marc.glisse@inria.fr>
1826 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
1829 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
1831 * stor-layout.c (compute_record_mode): Replace
1832 MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
1833 (layout_type): Likewise.
1835 * system.h: Poison MEMBER_TYPE_FORCES_BLK.
1837 * target.def (member_type_forces_blk): New target hook.
1839 * targhooks.c (default_member_type_forces_blk): New.
1840 * targhooks.h (default_member_type_forces_blk): Likewise.
1842 * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
1843 (TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
1844 * doc/tm.texi: Regenerated.
1846 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
1848 * config/ia64/ia64.c (ia64_member_type_forces_blk): New function.
1849 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
1851 * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
1852 (rs6000_member_type_forces_blk): New function.
1854 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
1856 * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function.
1857 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
1859 * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
1861 2012-08-17 Diego Novillo <dnovillo@google.com>
1864 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
1865 * config.in: Regenerate.
1866 * configure: Regenerate.
1867 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
1869 2012-08-17 Richard Guenther <rguenther@suse.de>
1871 * bitmap.h (struct bitmap_element_def): GTY annotate next/prev.
1872 (struct bitmap_head_def): GTY skip current field.
1874 2012-08-17 Steven Bosscher <steven@gcc.gnu.org>
1877 * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack.
1878 (memref_free): Don't free the bitmaps individually here.
1879 (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack.
1880 (analyze_memory_references): Likewise.
1881 (tree_ssa_lim_initialize): Initialize the new bitmap obstack.
1882 (tree_ssa_lim_finalize): Release it.
1883 * dse.c (dse_bitmap_obstack): New bitmap obstack.
1884 (dse_obstack): New obstack.
1885 (get_group_info): Allocate the bitmaps on the new bitmap obstack.
1886 (dse_step0): Allocate the scratch bitmap on reg_obstack. Initialize
1887 the new bitmap obstack and normal obstack. Use XNEWVEC for bb_table.
1888 (record_store): Allocate regs_set on reg_obstack.
1889 (dse_step1): Allocate regs_live on reg_obstack.
1890 (dse_step2_init): Allocate offset_map_n and offset_map_p on the new
1892 (dse_step3_scan): Allocate bitmaps on the new bitmap obstack.
1893 (dse_step3): Likewise.
1894 (dse_confluence_0): Likewise.
1895 (dse_confluence_n): Likewise.
1896 (dse_transfer_function): Likewise.
1897 (dse_step7): Destroy the new obstacks, and everything allocated on
1898 them, in one big sweep.
1899 (rest_of_handle_dse): Update.
1900 * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack.
1901 (add_stack_var_conflict): Allocate bitmaps on it.
1902 (add_scope_conflicts_1): Likewise.
1903 (add_scope_conflicts): Likewise.
1904 (update_alias_info_with_stack_vars): Likewise.
1905 (init_vars_expansion): Move TREE_USED fiddling expand_used_vars.
1906 Initialize the new bitmap obstack.
1907 (fini_vars_expansion): Release it.
1908 (estimated_stack_frame_size): Use init_vars_expansion to set things up
1909 and always clean up at the end.
1910 (expand_used_vars): Do the TREE_USED trickery here. Always call
1911 fini_vars_expansion.
1912 * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout
1913 arrays of bitmap_head to avoid one indirection per bitmap access.
1914 (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear,
1915 make_live_on_entry): Update.
1916 * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'.
1917 (liveness_bitmap_obstack): New bitmap obstack.
1918 (remove_unused_locals): Use it to allocate all bitmaps on. Update
1919 for livein/liveout changes in tree-ssa-live.h.
1920 (delete_tree_live_info): Release the bitmap obstack.
1921 (loe_visit_block, live_worklist, set_var_live_on_entry,
1922 calculate_live_on_exit, dump_live_info): Update.
1923 (calculate_live_ranges): Initialize the bitmap.
1924 * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack.
1925 (new_temp_expr_table): Allocate bitmap on it.
1926 (make_dependent_on_partition, add_to_partition_kill_list,
1927 add_dependence, process_replaceable): Likewise.
1928 (find_replaceable_exprs): Initialize and release the new obstack here.
1929 * df-problems.c (df_lr_add_problem): Allocate persistent bitmap
1930 for out_of_date_transfer_functions on df_bitmap_obstack.
1931 (df_live_add_problem): Likewise.
1932 (df_chain_add_problem): Likewise.
1933 (df_word_lr_add_problem): Likewise.
1935 2012-08-17 Nick Clifton <nickc@redhat.com>
1937 * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
1938 (branch_true): Likewise.
1939 (branch_false): Likewise.
1941 * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison.
1943 * config/iq2000/iq2000.md (cbranchsi4): Remove mode from
1944 comparison and label.
1945 (branch_zero): Likewise.
1946 (branch_zero_inverted): Likewise.
1947 (branch_equality): Likewise.
1948 (branch_equality_inverted): Likewise.
1949 (extend-and-compare): Disable until reload issues can be resolved.
1950 * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode
1952 (iq2000_function_arg_advance): Remove CONST_CAST2.
1954 * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
1957 2012-08-17 Georg-Johann Lay <avr@gjlay.de>
1959 * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile
1960 gen-avr-mmcu-texi.c.
1962 2012-08-17 Richard Earnshaw <rearnsha@arm.com>
1964 * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction.
1965 * arm.c (thumb2_reorg): Don't convert an ADD instruction that's
1968 2012-08-17 Richard Guenther <rguenther@suse.de>
1970 * hash-table.h (class hash_table): Use a descriptor template
1971 argument instead of decomposed element type and support functions.
1972 (struct pointer_hash): New generic typed pointer-hash.
1973 (struct typed_free_remove, struct typed_noop_remove): Generic
1974 hash_table support pieces.
1975 * coverage.c (struct counts_entry): Add hash_table support members.
1976 * tree-ssa-ccp.c (gimple_htab): Use pointer_hash.
1977 * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic
1978 SSA name by SSA_NAME_VAR hash.
1979 (coalesce_ssa_name): Use it.
1980 * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support.
1981 (expression_to_id): Adjust.
1982 (struct expr_pred_trans_d): Add hash_table support.
1983 (phi_translate_table): Adjust.
1984 (phi_trans_lookup): Likewise.
1985 (phi_trans_add): Likewise.
1986 (do_regular_insertion): Likewise.
1987 * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support.
1988 (same_succ_htab): Adjust.
1989 (find_same_succ_bb): Likewise.
1990 (find_same_succ): Likewise.
1991 (update_worklist): Likewise.
1992 * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table
1994 (redirection_data): Adjust.
1996 2012-08-17 Richard Guenther <rguenther@suse.de>
1998 * params.def (integer-share-limit): Decrease from 256 to 251,
2001 2012-08-17 Richard Guenther <rguenther@suse.de>
2003 * tree-sra.c (modify_function): Free redirect_callers vector.
2004 * ipa-split.c (split_function): Free args_to_pass vector.
2005 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free
2006 body_cost_vec properly.
2007 (vect_enhance_data_refs_alignment): Likewise.
2008 * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
2010 (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
2011 * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
2012 (vect_analyze_slp_instance): Free everything.
2013 (destroy_bb_vec_info): Free the SLP instances.
2015 2012-08-17 Iain Sandoe <iain@codesourcery.com>
2017 * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes
2020 2012-08-17 Jakub Jelinek <jakub@redhat.com>
2022 * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
2024 2012-08-16 Sandra Loosemore <sandra@codesourcery.com>
2026 * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr)
2027 (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph)
2028 (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w)
2029 (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr)
2030 (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute.
2032 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
2035 * config/sh/sh.md (addc): Add commutative modifier.
2036 (*addc, *minus_plus_one, *subc, *negc): New insns and splits.
2038 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
2041 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle
2042 potential T_REG clobber. Convert zero extending split to
2045 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
2048 * config/sh/sh.md (ashlsi3_d): Do not split if it would result
2049 in a T_REG clobber. Correct comment.
2050 (ashlsi3_n): Correct comment.
2052 2012-08-16 Hans-Peter Nilsson <hp@axis.com>
2055 * optabs.c (expand_atomic_fetch_op): Save and restore code when
2056 retrying after failed attempt.
2058 2012-08-16 Yuri Rumyantsev <ysrumyan@gmail.com>
2060 * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add
2061 additional argument.
2062 * config/i386/i386.md (ix86_split_lea_for_addr) : Add
2063 additional argument curr_insn.
2064 * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index
2065 register first, depending on their defintion distances.
2066 (ix86_lea_outperforms): Prefer LEA only if split cost exceeds
2068 (find_nearest_reg-def): New function. Find register with
2071 2012-08-16 Walter Lee <walt@tilera.com>
2073 * config.gcc (tilegx-*-linux*): Add feedback.h.
2074 (tilepro-*-linux*): Likewise.
2075 * config/tilegx/feedback.h: New file.
2076 * config/tilepro/feedback.h: New file.
2078 2012-08-16 Diego Novillo <dnovillo@google.com>
2083 * double-int.h: Move including of gmp.h ...
2084 * system.h: ... here.
2085 * realmpfr.h: Do not include gmp.h.
2086 * tree-ssa-loop-niter.c: Do not include gmp.h.
2088 2012-08-16 Segher Boessenkool <segher@kernel.crashing.org>
2090 * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
2092 2012-08-16 Richard Guenther <rguenther@suse.de>
2095 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
2097 * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
2098 * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
2099 * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
2100 * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed.
2101 * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
2102 (tree_ssa_lim_finalize): Free all mem_refs.
2103 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
2104 scc when bailing out.
2105 * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
2106 * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
2107 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
2108 FOR_EACH_LOOP_BREAK.
2110 2012-08-16 Diego Novillo <dnovillo@google.com>
2113 * double-int.h: Move including of gmp.h ...
2114 * system.h: ... here.
2115 * realmpfr.h: Do not include gmp.h.
2116 * tree-ssa-loop-niter.c: Do not include gmp.h.
2118 2012-08-16 Steven Bosscher <steven@gcc.gnu.org>
2121 * tree-flow.h (compute_global_livein): Remove prototype.
2122 * tree-into-ssa.c (compute_global_livein): Remove function.
2123 * tree-ssa-loop-manip.c: Include gimple-pretty-print.h.
2124 (find_sibling_superloop): New function.
2125 (compute_live_loop_exits): New function.
2126 (add_exit_phis_edge): Rename to add_exit_phi. Do not allow
2127 inserting a PHI in a block that is not a loop exit for VAR.
2128 Add dumping if TDF_DETAILS.
2129 (add_exit_phis_var): Rewrite.
2130 (add_exit_phis): Update.
2131 (get_loops_exits): Rewrite to return an array of per-loop exits
2132 rather than one bitmap with all loop exits.
2133 (find_uses_to_rename_bb): Ignore virtual PHI nodes.
2134 (rewrite_into_loop_closed_ssa): Update.
2136 2012-08-16 Nick Clifton <nickc@redhat.com>
2138 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
2139 before passing it to ASM_OUTPUT_LIMITED_STRING.
2141 * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
2143 * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
2144 * config/avr/avr.c (avr_legitimize_reload_address): Add casts
2145 for reload_type enums.
2146 (DEF_BUILTIN): Cast the icode to enum insn_code.
2148 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
2150 * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
2152 * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
2154 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
2156 * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
2157 (RS6000_CALL_GLUE): Adjust for single assembler syntax.
2158 * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
2159 * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
2160 * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
2161 * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
2162 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
2163 * config/rs6000/darwin.md (whole file): Adjust to single
2165 * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
2166 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
2167 * config/rs6000/dfp.md: (whole file): Adjust to single
2169 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
2170 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
2171 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
2172 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
2173 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
2174 * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK.
2175 * config/rs6000/rs6000-tables.opt: Regenerate.
2176 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete.
2177 (num_insns_constant_wide): Adjust comments.
2178 (whole file): Adjust to single assembler syntax.
2179 (output_cbranch): Adjust comment.
2180 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete.
2181 * config/rs6000/rs6000.md: (whole file): Adjust to single
2183 * config/rs6000/rs6000.opt (mnew-mnemonics): Delete.
2184 (mold-mnemonics): Delete.
2185 * config/rs6000/spe.md: (whole file): Adjust to single
2187 * config/rs6000/sync.md: (whole file): Adjust to single
2189 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
2190 (ASM_OUTPUT_REG_PUSH): Adjust.
2191 (ASM_OUTPUT_REG_POP): Adjust.
2192 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
2193 * config/rs6000/vsx.md: (whole file): Adjust to single
2195 * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
2196 * doc/invoke.texi: Adjust documentation to reflect the
2197 removal of -mnew-mnemonics and -mold-mnemonics.
2199 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
2201 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
2202 Delete handling for -mno-powerpc and -mpowerpc.
2203 * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar.
2204 (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom.
2205 * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto.
2206 * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC.
2207 * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto.
2208 * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto.
2209 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
2210 * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto.
2211 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
2212 * config/rs6000/driver-rs6000.c (asm_names): Delete handling
2213 for -mcpu=common and -mpowerpc.
2214 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC.
2215 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
2216 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
2217 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
2218 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
2219 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING):
2220 Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC.
2221 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
2222 (rs6000_cpu_cpp_builtins): Adjust.
2223 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC.
2224 (rs6000_builtin_mask_calculate): Adjust.
2225 (rs6000_emit_move): Delete code for ! TARGET_POWERPC.
2226 (rs6000_init_libfuncs): Ditto.
2227 (rs6000_output_function_prologue): Ditto.
2228 (rs6000_opt_masks): Delete MASK_POWERPC.
2229 (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC.
2230 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc.
2231 (RS6000_BTM_POWERPC): Delete.
2232 (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC.
2233 * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for
2234 TARGET_POWERPC always on.
2235 (extendqihi2 patterns): Similar.
2236 (various unnamed subtract patterns): Similar.
2237 (bswaphi2 patterns): Similar.
2238 (divmodsi4): Similar.
2239 (udiv<GPR:mode>3): Similar.
2240 (div<GPR:mode>3 patterns): Similar.
2241 (udivmodsi4): Similar.
2244 (divss_call): Delete.
2245 (divus_call): Delete.
2246 (quoss_call): Delete.
2247 (quous_call): Delete.
2248 (insvsi patterns): Adjust.
2249 (addsf3 patterns): Adjust.
2250 (subsf3 patterns): Adjust.
2251 (mulsf3 patterns): Adjust.
2252 (divsf3 patterns): Adjust.
2253 (*fmasf4_fpr): Adjust.
2254 (*fmssf4_fpr): Adjust.
2255 (*nfmasf4_fpr): Adjust.
2256 (*nfmssf4_fpr): Adjust.
2257 (*floatunssidf2_internal): Adjust.
2258 (fix_trunc<SFDF:mode>si2_internal): Adjust.
2259 (fctiwz_<SFDF:mode>): Adjust.
2260 (mulsidi3 patterns): Adjust.
2261 (smulsi3_highpart patterns): Adjust.
2262 (umulsi3_highpart patterns): Adjust.
2263 (fix_trunctfsi2 patterns): Adjust.
2265 * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option.
2266 (mno-powerpc): Delete.
2267 * config/rs6000/sync.md (load_locked<ATOMIC:mode>): Adjust.
2268 (store_conditional<ATOMIC:mode>): Adjust.
2269 (atomic_compare_and_swap<ATOMIC:mode>): Adjust.
2270 (atomic_exchange<ATOMIC:mode>): Adjust.
2271 (atomic_<fetchop_name><ATOMIC:mode>): Adjust.
2272 (atomic_nand<ATOMIC:mode>): Adjust.
2273 (atomic_fetch_<fetchop_name><ATOMIC:mode>): Adjust.
2274 (atomic_fetch_nand<ATOMIC:mode>): Adjust.
2275 (atomic_<fetchop_name>_fetch<ATOMIC:mode>): Adjust.
2276 (atomic_nand_fetch<ATOMIC:mode>): Adjust.
2277 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC.
2278 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto.
2279 * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto.
2280 * doc/invoke.texi: Adjust documentation.
2282 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
2284 * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
2286 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
2288 * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo.
2289 * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto.
2290 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
2291 * config/rs6000/driver-rs6000.c (asm_names): Ditto.
2293 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
2296 * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default)
2298 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto.
2300 2012-08-15 Sandra Loosemore <sandra@codesourcery.com>
2301 Maxim Kuvyrkov <maxim@codesourcery.com>
2302 Julian Brown <julian@codesourcery.com>
2303 MIPS Technologies, Inc.
2305 * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu)
2306 (dspalusat): Add insn types.
2307 * config/mips/mips-dsp.md (add<DSPV:mode>3)
2308 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>)
2309 (sub<DSPV:mode>3, mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc)
2310 (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_<DSPQ:dspfmt2>)
2311 (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w)
2312 (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr)
2313 (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla)
2314 (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr)
2315 (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_<DSPV:dspfmt2>)
2316 (mips_shll_s_<DSPQ:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>, mips_shrl_qb)
2317 (mips_shra_ph, mips_shra_r_<DSPQ:dspfmt2>, mips_bitrev, mips_insv)
2318 (mips_repl_qb, mips_repl_ph)
2319 (mips_cmp<DSPV:dspfmt1_1>_eq_<DSPV:dspfmt2>)
2320 (mips_cmp<DSPV:dspfmt1_1>_lt_<DSPV:dspfmt2>)
2321 (mips_cmp<DSPV:dspfmt1_1>_le_<DSPV:dspfmt2>, mips_cmpgu_eq_qb)
2322 (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_<DSPV:dspfmt2>)
2323 (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu.
2324 (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr)
2325 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph)
2326 (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to
2328 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to
2330 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp):
2332 (mips_shilo, mips_mthlip): Set type to accmod.
2333 * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph)
2334 (mips_adduh_r_qb): Set type to dspalusat.
2335 (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign)
2336 (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb)
2337 (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w)
2338 (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph)
2339 (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph)
2340 (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph)
2341 (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu.
2342 (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph)
2343 (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to
2344 dspmac. Set accum_in attribute.
2345 (mips_subu_s_ph): Set type to dspalusat.
2346 (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat.
2347 Set accum_in attribute.
2348 * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype.
2349 * config/mips/mips.c (dspalu_bypass_table): New.
2350 (mips_dspalu_bypass_p): New.
2351 * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat)
2352 (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations.
2353 (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat)
2354 (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses.
2355 * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac)
2356 (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn
2358 (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3)
2359 (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses.
2361 2012-08-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2363 * config/spu/spu.c: Include "cfgloop.h".
2364 (spu_machine_dependent_reorg): Call loop_optimizer_init and
2365 loop_optimizer_finalize. Use bb_loop_depth instead of loop_depth.
2366 Directly compare loop_father values where appropriate.
2367 * config/spu/t-spu-elf (spu.o): Update dependencies.
2369 2012-08-15 H.J. Lu <hongjiu.lu@intel.com>
2371 * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H).
2373 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2375 PR tree-optimization/54245
2376 * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function.
2377 (legal_cast_p): Split out logic to legal_cast_p_1.
2378 (analyze_increments): Avoid introducing multiplies in smaller types.
2380 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2382 PR tree-optimization/54240
2383 * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for
2384 existence of conditional move with given mode.
2386 2012-08-15 Richard Guenther <rguenther@suse.de>
2388 * double-int.h (double_int::from_unsigned): Rename to ...
2389 (double_int::from_uhwi): ... this.
2390 (double_int::from_signed): Rename to ...
2391 (double_int::from_shwi): ... this.
2392 (double_int::to_signed): Rename to ...
2393 (double_int::to_shwi): ... this.
2394 (double_int::to_unsigned): Rename to ...
2395 (double_int::to_uhwi): ... this.
2396 (double_int::fits_unsigned): Rename to ...
2397 (double_int::fits_uhwi): ... this.
2398 (double_int::fits_signed): Rename to ...
2399 (double_int::fits_shwi): ... this.
2400 (double_int::fits): Rename to ...
2401 (double_int::fits_hwi): ... this.
2402 * double-int.c: Likewise.
2404 2012-08-15 Steven Bosscher <steven@gcc.gnu.org>
2406 * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE,
2407 TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS,
2408 TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI,
2409 TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove.
2410 (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING,
2411 TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New.
2412 * timevar.c (timevar_print): Make printing width of timevar names
2413 more flexible, but enforce maximum length.
2414 * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING.
2415 (pass_ipa_inline): Use TV_IPA_INLINING.
2416 * ipa-inline-analysis.c (pass_inline_parameters): Use
2417 TV_INLINE_HEURISTICS.
2418 * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass.
2419 (pass_tree_loop_done): Likewise.
2420 * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH.
2421 * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT.
2422 (loop_optimizer_finalize): Push/pop TV_LOOP_FINI.
2424 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2426 * config/arm/neon.md (neon_vaba<mode> VDQIW): Canonicalize operands.
2427 (neon_vabal<mode> VDQIW): Likewise.
2429 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2432 * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
2433 mark as predicable. Adjust asm template.
2434 (vec_setv2di_internal): Likewise.
2435 (vec_extract<mode> VD, VQ): Likewise.
2436 (vec_extractv2di): Likewise.
2437 (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
2438 (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
2439 (neon_vdup_n<mode> VX, V32): Likewise.
2440 (neon_vdup_nv2di): Likewise.
2442 2012-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
2444 * config/mips/mips.md (define_attr accum_in): New instruction
2445 attribute. Set it for imadd and fmadd patterns.
2446 * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract
2447 accumulator register.
2449 2012-08-14 Diego Novillo <dnovillo@google.com>
2451 Merge from cxx-conversion branch. Configury.
2453 * configure.ac (CXX_FOR_BUILD): Define and substitute.
2454 (BUILD_CXXFLAGS): Define.
2455 Remove all handlers of ENABLE_BUILD_WITH_CXX.
2456 Force all build to be with C++.
2457 * Makefile.in (BUILD_CXXFLAGS): Use it.
2458 Remove all handlers of ENABLE_BUILD_WITH_CXX.
2459 * configure: Regenerate.
2460 * config.in: Regenerate.
2461 * doc/install.texi: Remove documentation for --enable-build-with-cxx
2462 and --enable-build-poststage1-with-cxx.
2464 2012-08-14 Diego Novillo <dnovillo@google.com>
2466 Merge from cxx-conversion branch. Re-implement VEC in C++.
2468 * vec.c (vec_heap_free): Convert into a template function.
2469 (vec_gc_o_reserve_1): Make extern.
2470 (vec_gc_p_reserve): Remove.
2471 (vec_gc_p_reserve_exact): Remove.
2472 (vec_gc_o_reserve): Remove.
2473 (vec_gc_o_reserve_exact): Remove.
2474 (vec_heap_o_reserve_1): Make extern.
2475 (vec_heap_p_reserve): Remove.
2476 (vec_heap_p_reserve_exact): Remove.
2477 (vec_heap_o_reserve): Remove.
2478 (vec_heap_o_reserve_exact): Remove.
2479 (vec_stack_p_reserve): Remove.
2480 (vec_stack_p_reserve_exact): Remove.
2481 * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT,
2482 VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file.
2483 (VEC): Define to vec_t<T>.
2484 (vec_allocation_t): Define.
2485 (struct vec_prefix): Move earlier in the file.
2486 (vec_t<T>): New template.
2487 (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P,
2488 DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O,
2489 DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK,
2490 DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'.
2491 (DEF_VEC_A): Provide template instantiations for
2492 GC/PCH markers that do not traverse the vector.
2493 (vec_stack_p_reserve): Remove.
2494 (vec_stack_p_reserve_exact): Remove.
2495 (vec_stack_p_reserve_exact_1): Remove.
2496 (vec_stack_o_reserve): Remove.
2497 (vec_stack_o_reserve_exact): Remove.
2498 (vec_stack_free): Re-write as a template function.
2499 (vec_reserve): New template function.
2500 (vec_reserve_exact): New template function.
2501 (vec_heap_free): New template function if GATHER_STATISTICS is
2502 defined. Otherwise, macro that expands to free().
2503 (VEC_length_1): New template function.
2504 (VEC_length): Call it.
2505 (VEC_empty_1): New template function.
2506 (VEC_empty): Call it.
2507 (VEC_address_1): New template function.
2508 (VEC_address): Call it.
2509 (VEC_last_1): New template function.
2510 (VEC_last): Call it. Change return type to T&.
2511 Change all users that used VEC_Os.
2512 (VEC_index_1): New template function.
2513 (VEC_index): Call it. Return a T& instead of a T*.
2514 Update all callers that were using VEC_O before.
2515 (VEC_iterate_1): New template function.
2516 (VEC_iterate): Call it.
2517 (VEC_embedded_size_1): New template function.
2518 (VEC_embedded_size): Call it.
2519 (VEC_embedded_init_1): New template function.
2520 (VEC_embedded_init): Call it.
2521 (VEC_alloc_1): New template function.
2522 (VEC_alloc): Call it. If A is 'stack', call XALLOCAVAR to
2524 (VEC_free_1): New template function.
2525 (VEC_free): Call it.
2526 (VEC_copy_1): New template function.
2527 (VEC_copy): Call it.
2528 (VEC_space_1): New template function
2529 (VEC_space): Call it.
2530 (VEC_reserve_1): New template function.
2531 (VEC_reserve): Call it.
2532 (VEC_reserve_exact_1): New template function.
2533 (VEC_reserve_exact): Call it.
2534 (VEC_splice_1): New template function.
2535 (VEC_splice): Call it.
2536 (VEC_safe_splice_1): New template function.
2537 (VEC_safe_splice): Call it.
2538 (VEC_quick_push_1): New template function. Create two overloads, one
2539 accepting T, the other accepting T *. Update all callers
2540 where T and T * are ambiguous.
2541 (VEC_quick_push): Call it.
2542 (VEC_safe_push_1): New template function. Create two overloads, one
2543 accepting T, the other accepting T *. Update all callers
2544 where T and T * are ambiguous.
2545 (VEC_safe_push): Call it.
2546 (VEC_pop_1): New template function.
2548 (VEC_truncate_1): New template function.
2549 (VEC_truncate): Call it.
2550 (VEC_safe_grow_1): New template function.
2551 (VEC_safe_grow): Call it.
2552 (VEC_safe_grow_cleared_1): New template function.
2553 (VEC_safe_grow_cleared): Call it.
2554 (VEC_replace_1): New template function.
2555 (VEC_replace): Call it. Always accept T instead of T*.
2556 Update all callers that used VEC_Os.
2557 (VEC_quick_insert_1): New template function.
2558 (VEC_quick_insert): Call it.
2559 (VEC_safe_insert_1): New template function.
2560 (VEC_safe_insert): Call it.
2561 (VEC_ordered_remove_1): New template function.
2562 (VEC_ordered_remove): Call it.
2563 (VEC_unordered_remove_1): New template function.
2564 (VEC_unordered_remove): Call it.
2565 (VEC_block_remove_1): New template function.
2566 (VEC_block_remove): Call it.
2567 (VEC_lower_bound_1): New template function.
2568 (VEC_lower_bound): Call it.
2570 (DEF_VEC_FUNC_P): Remove.
2571 (DEF_VEC_ALLOC_FUNC_P): Remove.
2572 (DEF_VEC_NONALLOC_FUNCS_P): Remove.
2573 (DEF_VEC_FUNC_O): Remove.
2574 (DEF_VEC_ALLOC_FUNC_O): Remove.
2575 (DEF_VEC_NONALLOC_FUNCS_O): Remove.
2576 (DEF_VEC_ALLOC_FUNC_I): Remove.
2577 (DEF_VEC_NONALLOC_FUNCS_I): Remove.
2578 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove.
2579 (DEF_VEC_ALLOC_FUNC_O_STACK): Remove.
2580 (DEF_VEC_ALLOC_FUNC_I_STACK): Remove.
2581 (vec_reserve_exact): New template function.
2583 * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove.
2584 * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP].
2585 (typedef_name): Emit vec_t<C1> instead of VEC_C1_C2.
2586 (def_vec_alloc): Remove. Update all callers.
2587 * gengtype.c (filter_type_name): New.
2588 (output_mangled_typename): Call it.
2589 (write_func_for_structure): Likewise.
2590 (write_types): Likewise.
2591 (write_root): Likewise.
2592 (write_typed_alloc_def): Likewise.
2593 (note_def_vec): Emit vec_t<TYPE_NAME> instead of VEC_TYPE_NAME_base.
2594 (note_def_vec_alloc): Remove.
2595 * gengtype.h (note_def_vec_alloc): Remove.
2596 (DEFVEC_ALLOC): Remove token code.
2598 * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec
2599 inside the insn traversal loop.
2600 * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK.
2601 * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP.
2602 * reg-stack.c (stack): Rename to STACK_PTR. Update all users.
2603 * tree-vrp.c (stack): Rename to EQUIV_STACK. Update all users.
2605 * config/bfin/bfin.c (hwloop_optimize): Update some calls to
2606 VEC_* for vectors of non-pointers.
2607 * config/c6x/c6x.c (try_rename_operands): Likewise.
2608 (reshuffle_units): Likewise.
2609 * config/mips/mips.c (mips_multi_start): Likewise.
2610 (mips_multi_add): Likewise.
2611 (mips_multi_copy_insn): Likewise.
2612 (mips_multi_set_operand): Likewise.
2613 * hw-doloop.c (discover_loop): Likewise.
2614 (discover_loops): Likewise.
2615 (reorg_loops): Likewise.
2617 2012-08-14 Diego Novillo <dnovillo@google.com>
2619 Merge from cxx-conversion branch. C++ support in gengtype.
2621 * coretypes.h (gt_pointer_operator): Move from ...
2623 * doc/gty.texi: Document support for C++ templates and
2624 user-provided markers.
2625 * gcc/gengtype-lex.l: Update copyright year.
2626 Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I.
2627 * gengtype-parse.c: Update copyright year.
2628 (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I.
2629 (require_template_declaration): New.
2630 (typedef_name): Call it.
2631 (type): Replace IS_UNION with KIND. Replace all users.
2632 (def_vec): Remove. Update all users.
2633 * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT.
2634 (write_state_user_struct_type): New.
2635 (write_state_type): Call it.
2636 (read_state_user_struct_type): New.
2637 (read_state_type): Call it.
2638 * gengtype.c: Update copyright year.
2639 (dump_pair): Move declaration to the top.
2640 (dump_type): Likewise.
2641 (dump_type_list): Likewise.
2642 (dbgprint_count_type_at): Handle TYPE_USER_STRUCT.
2643 (create_user_defined_type): New.
2644 (resolve_typedef): Call it.
2645 (new_structure): Replace argument ISUNION with KIND.
2646 Change users to refer to KIND directly.
2648 (find_structure): Likewise.
2649 (set_gc_used_type): Handle TYPE_USER_STRUCT.
2650 (create_file): Update HDR to include new copyright year.
2651 (struct walk_type_data): Add field IN_PTR_FIELD.
2652 (output_mangled_typename): Handle TYPE_USER_STRUCT.
2653 (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER.
2654 Clear it afterwards.
2655 Handle TYPE_USER_STRUCT.
2656 (write_types_process_field): Handle TYPE_USER_STRUCT.
2657 (get_type_specifier): Move earlier in the file.
2658 (write_type_decl): New.
2659 (write_marker_function_name): New.
2660 (write_user_func_for_structure_ptr): New.
2661 (write_user_func_for_structure_body): New.
2662 (write_user_marking_functions): New.
2663 (write_func_for_structure): Call write_marker_function_name
2664 and write_type_decl.
2665 Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user
2667 Call write_user_marking_functions on TYPE_USER_STRUCTs.
2668 (write_types_local_user_process_field): New.
2669 (write_pch_user_walking_for_structure_body): New.
2670 (write_pch_user_walking_functions): New.
2671 (write_types_local_process_field): Handle TYPE_USER_STRUCT.
2672 (write_local_func_for_structure): Do not call walk_type for
2673 TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly.
2674 Call write_pch_user_walking_functions for TYPE_USER_STRUCTs.
2675 (write_root): Handle TYPE_USER_STRUCT.
2676 (vec_prefix_type): Remove. Update all users.
2677 (note_def_vec): Remove. Update all users.
2678 (dump_typekind): Handle TYPE_USER_STRUCT.
2679 (dump_type): Initialize SEEN_TYPES, if needed.
2680 Handle TYPE_USER_STRUCT.
2681 (dump_everything): Do not initialize SEEN_TYPES.
2682 * gengtype.h: Update copyright year.
2683 (enum typekind): Add TYPE_USER_STRUCT.
2684 (union_or_struct_p): Rename from UNION_OR_STRUCT_P.
2685 Convert into function.
2686 Add an overload taking const_type_p.
2688 (new_structure): Change second field to type enum typekind.
2690 (find_structure): Likewise.
2691 (note_def_vec): Remove.
2692 (DEFVEC_OP): Remove.
2694 * ggc-page.c (gt_ggc_mx): Add entry points for marking
2695 'const char *&', 'unsigned char *&' and 'unsigned char&'.
2696 * ggc-zone.c (gt_ggc_mx): Add entry points for marking
2697 'const char *&' and 'unsigned char *&'.
2698 * stringpool.c (gt_pch_nx): Add entry points for marking
2699 'const char *&', 'unsigned char *&' and 'unsigned char&'.
2700 Add an entry point for the overload taking arguments 'unsigned char
2701 *', 'gt_pointer_operator' and 'void *'.
2702 * vec.h (struct vec_prefix): Remove GTY marker.
2703 (struct vec_t): Remove GTY((length)) attribute from field 'vec'.
2704 (gt_ggc_mx (vec_t<T> *)): New template function.
2705 (gt_pch_nx (vec_t<T> *)): New template function.
2706 (gt_pch_nx (vec_t<T *> *, gt_pointer_operator, void *)): New template
2708 (gt_pch_nx (vec_t<T> *, gt_pointer_operator, void *)): New template
2711 * basic-block.h (struct edge_def): Mark GTY((user)).
2712 Remove all GTY markers from fields.
2713 (gt_ggc_mx): Declare.
2714 (gt_pch_nx): Declare.
2715 * tree-cfg.c (gt_ggc_mx): New.
2718 * gengtype-lex.l (USER_GTY): Add pattern for "user".
2719 * gengtype-parse.c (option): Handle USER_GTY.
2722 If the keyword 'user' is used, do not walk the fields
2724 * gengtype.h (USER_GTY): Add.
2725 * doc/gty.texi: Update.
2727 2012-08-14 Lawrence Crowl <crowl@google.com>
2729 Merge cxx-conversion branch. Implement C++ hash table.
2731 * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c.
2732 * hash-table.c: Likewise.
2733 * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h.
2734 (static htab_t same_succ_htab): Change type to hash_table;
2735 move specification of helper functions from create call to declaration.
2736 Change users to invoke member functions.
2737 (same_succ_print_traverse): Make extern ssa_.... Change callers.
2738 Remove void* casting.
2739 (same_succ_hash): Likewise.
2740 (same_succ_equal): Likewise.
2741 (same_succ_delete): Likewise.
2742 * tree-ssa-threadupdate.c: Include hash-table.h.
2743 (struct local_info): Rename to ssa_local_info_t to avoid overloading
2744 the type name local_info with the variable name local_info.
2745 (static htab_t redirection_data): Change type to hash_table.
2746 Move specification of helper functions from create call to declaration.
2747 Change users to invoke member functions.
2748 (redirection_data_hash): Make extern ssa_.... Change callers.
2749 Remove void* casting.
2750 (redirection_data_eq): Likewise.
2751 (fix_duplicate_block_edges): Likewise.
2752 (create_duplicates): Likewise.
2753 (fixup_template_block): Likewise.
2754 (redirect_edges): Likewise.
2755 (lookup_redirection_data): Change types associated with the hash table
2756 from void* to their actual type. Remove unnecessary casts.
2757 * tree-ssa-ccp.c: Include hash-table.h.
2758 (typedef gimple_htab): New. Uses hash_table. Replace specific uses
2759 of htab_t with gimple_htab. Change users to invoke member functions.
2760 Move specification of helper functions from create call to declaration.
2761 * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h.
2762 (hash_ssa_name_by_var): Make extern. Remove void* casting.
2763 (eq_ssa_name_by_var): Likewise.
2764 (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash
2765 to hash_table. Change users to invoke member functions.
2766 Move specification of helper functions from create call to declaration.
2767 * coverage.c: Include hash-table.h instead of hashtab.h.
2768 (static htab_t counts_hash): Change type to hash_table;
2769 move specification of helper functions from create call to declaration.
2770 Change users to invoke member functions.
2771 (htab_counts_entry_hash): Make extern. Rename with coverage_... instead
2772 of htab_... Remove void* casting.
2773 (htab_counts_entry_eq): Likewise.
2774 (htab_counts_entry_del): Likewise.
2775 * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h.
2776 (static htab_t expression_to_id): Change type to hash_table.
2777 Move specification of helper functions from create call to declaration.
2778 Change users to invoke member functions.
2779 (static htab_t phi_translate_table): Likewise.
2780 (pre_expr_eq): Make extern ssa_.... Change callers.
2781 Remove void* casting.
2782 (pre_expr_hash): Likewise.
2783 (expr_pred_trans_hash): Likewise.
2784 (expr_pred_trans_eq): Likewise.
2785 (alloc_expression_id): Change types associated with the hash table
2786 from void* to their actual type. Remove unnecessary casts.
2787 (lookup_expression_id): Likewise.
2788 (phi_trans_lookup): Likewise.
2789 (phi_trans_add): Likewise.
2790 * stringpool.c: Rename uses of libcpp typedef hash_table to
2792 * Makefile.in: Add hash-table.o to OBJS-libcommon-target.
2793 Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H).
2795 2012-08-14 Lawrence Crowl <crowl@google.com>
2797 Merge from cxx-conversion branch. Re-write double_int in C++.
2800 (typedef double_int): Change to struct (POD).
2801 (double_int::make): New overloads for int to double-int conversion.
2802 (double_int::mask): New.
2803 (double_int::max_value): New.
2804 (double_int::min_value): New.
2805 (double_int::operator ++): New.
2806 (double_int::operator --): New.
2807 (double_int::operator *=): New.
2808 (double_int::operator +=): New.
2809 (double_int::operator -=): New.
2810 (double_int::to_signed): New.
2811 (double_int::to_unsigned): New.
2812 (double_int::fits_unsigned): New.
2813 (double_int::fits_signed): New.
2814 (double_int::fits): New.
2815 (double_int::trailing_zeros): New.
2816 (double_int::popcount): New.
2817 (double_int::multiple_of): New.
2818 (double_int::set_bit): New.
2819 (double_int::mul_with_sign): New.
2820 (double_int::operator * (binary)): New.
2821 (double_int::operator + (binary)): New.
2822 (double_int::operator - (binary)): New.
2823 (double_int::operator - (unary)): New.
2824 (double_int::operator ~ (unary)): New.
2825 (double_int::operator & (binary)): New.
2826 (double_int::operator | (binary)): New.
2827 (double_int::operator ^ (binary)): New.
2828 (double_int::and_not): New.
2829 (double_int::lshift): New.
2830 (double_int::rshift): New.
2831 (double_int::alshift): New.
2832 (double_int::arshift): New.
2833 (double_int::llshift): New.
2834 (double_int::lrshift): New.
2835 (double_int::lrotate): New.
2836 (double_int::rrotate): New.
2837 (double_int::div): New.
2838 (double_int::sdiv): New.
2839 (double_int::udiv): New.
2840 (double_int::mod): New.
2841 (double_int::smod): New.
2842 (double_int::umod): New.
2843 (double_int::divmod): New.
2844 (double_int::sdivmod): New.
2845 (double_int::udivmod): New.
2846 (double_int::ext): New.
2847 (double_int::zext): New.
2848 (double_int::sext): New.
2849 (double_int::is_zero): New.
2850 (double_int::is_one): New.
2851 (double_int::is_minus_one): New.
2852 (double_int::is_negative): New.
2853 (double_int::cmp): New.
2854 (double_int::ucmp): New.
2855 (double_int::scmp): New.
2856 (double_int::ult): New.
2857 (double_int::ugt): New.
2858 (double_int::slt): New.
2859 (double_int::sgt): New.
2860 (double_int::max): New.
2861 (double_int::smax): New.
2862 (double_int::umax): New.
2863 (double_int::min): New.
2864 (double_int::smin): New.
2865 (double_int::umin): New.
2866 (double_int::operator ==): New.
2867 (double_int::operator !=): New.
2868 (shwi_to_double_int): Change implementation to use member function.
2869 (double_int_minus_one): Likewise.
2870 (double_int_zero): Likewise.
2871 (double_int_one): Likewise.
2872 (double_int_two): Likewise.
2873 (double_int_ten): Likewise.
2874 (uhwi_to_double_int): Likewise.
2875 (double_int_to_shwi): Likewise.
2876 (double_int_to_uhwi): Likewise.
2877 (double_int_fits_in_uhwi_p): Likewise.
2878 (double_int_fits_in_shwi_p): Likewise.
2879 (double_int_fits_in_hwi_p): Likewise.
2880 (double_int_mul): Likewise.
2881 (double_int_mul_with_sign): Likewise.
2882 (double_int_add): Likewise.
2883 (double_int_sub): Likewise.
2884 (double_int_neg): Likewise.
2885 (double_int_div): Likewise.
2886 (double_int_sdiv): Likewise.
2887 (double_int_udiv): Likewise.
2888 (double_int_mod): Likewise.
2889 (double_int_smod): Likewise.
2890 (double_int_umod): Likewise.
2891 (double_int_divmod): Likewise.
2892 (double_int_sdivmod): Likewise.
2893 (double_int_udivmod): Likewise.
2894 (double_int_multiple_of): Likewise.
2895 (double_int_setbit): Likewise.
2896 (double_int_ctz): Likewise.
2897 (double_int_not): Likewise.
2898 (double_int_ior): Likewise.
2899 (double_int_and): Likewise.
2900 (double_int_and_not): Likewise.
2901 (double_int_xor): Likewise.
2902 (double_int_lshift): Likewise.
2903 (double_int_rshift): Likewise.
2904 (double_int_lrotate): Likewise.
2905 (double_int_rrotate): Likewise.
2906 (double_int_cmp): Likewise.
2907 (double_int_scmp): Likewise.
2908 (double_int_ucmp): Likewise.
2909 (double_int_max): Likewise.
2910 (double_int_smax): Likewise.
2911 (double_int_umax): Likewise.
2912 (double_int_min): Likewise.
2913 (double_int_smin): Likewise.
2914 (double_int_umin): Likewise.
2915 (double_int_ext): Likewise.
2916 (double_int_sext): Likewise.
2917 (double_int_zext): Likewise.
2918 (double_int_mask): Likewise.
2919 (double_int_max_value): Likewise.
2920 (double_int_min_value): Likewise.
2921 (double_int_zero_p): Likewise.
2922 (double_int_one_p): Likewise.
2923 (double_int_minus_one_p): Likewise.
2924 (double_int_equal_p): Likewise.
2925 (double_int_popcount): Likewise.
2927 (double_int_mask): Reuse implementation for double_int::mask.
2928 (double_int_max_value): Likewise.
2929 (double_int_min_value): Likewise.
2930 (double_int_ext): Likewise.
2931 (double_int_zext): Likewise.
2932 (double_int_sext): Likewise.
2933 (double_int_mul_with_sign): Likewise.
2934 (double_int_divmod): Likewise.
2935 (double_int_sdivmod): Likewise.
2936 (double_int_udivmod): Likewise.
2937 (double_int_div): Likewise.
2938 (double_int_sdiv): Likewise.
2939 (double_int_udiv): Likewise.
2940 (double_int_mod): Likewise.
2941 (double_int_smod): Likewise.
2942 (double_int_umod): Likewise.
2943 (double_int_multiple_of): Likewise.
2944 (double_int_lshift): Likewise.
2945 (double_int_rshift): Likewise.
2946 (double_int_lrotate): Likewise.
2947 (double_int_rrotate): Likewise.
2948 (double_int_cmp): Likewise.
2949 (double_int_ucmp): Likewise.
2950 (double_int_scmp): Likewise.
2951 (double_int_max): Likewise.
2952 (double_int_smax): Likewise.
2953 (double_int_umax): Likewise.
2954 (double_int_min): Likewise.
2955 (double_int_smin): Likewise.
2956 (double_int_umin): Likewise.
2957 (double_int_min): Likewise.
2958 (double_int_min): Likewise.
2959 (double_int_min): Likewise.
2960 (double_int_min): Likewise.
2961 (double_int_min): Likewise.
2962 (double_int_min): Likewise.
2963 (double_int::alshift): New.
2964 (double_int::arshift): New.
2965 (double_int::llshift): New.
2966 (double_int::lrshift): New.
2967 (double_int::ult): New.
2968 (double_int::ugt): New.
2969 (double_int::slt): New.
2970 (double_int::sgt): New.
2971 (double_int_setbit): Reuse implementation for double_int::set_bit,
2972 which avoids a name conflict with a macro.
2973 (double_int_double_int_ctz): Reuse implementation for
2974 double_int::trailing_zeros.
2975 (double_int_fits_in_shwi_p): Reuse implementation for
2976 double_int::fits_signed.
2977 (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits.
2978 (double_int_mul): Reuse implementation for binary
2979 double_int::operator *.
2980 (double_int_add): Likewise.
2981 (double_int_sub): Likewise.
2982 (double_int_neg): Reuse implementation for unary
2983 double_int::operator -.
2984 (double_int_max_value): Likewise.
2985 * fixed-value.c: Change to use member functions introduced above.
2987 2012-08-14 Lawrence Crowl <crowl@google.com>
2989 Merge cxx-conversion branch. Support tree macro calling from gdb.
2991 * tree.h (tree_check): New.
2992 (TREE_CHECK): Use inline function above instead of __extension__.
2993 (tree_not_check): New.
2994 (TREE_NOT_CHECK): Use inline function above instead of __extension__.
2996 (TREE_CHECK2): Use inline function above instead of __extension__.
2997 (tree_not_check2): New.
2998 (TREE_NOT_CHECK2): Use inline function above instead of __extension__.
3000 (TREE_CHECK3): Use inline function above instead of __extension__.
3001 (tree_not_check3): New.
3002 (TREE_NOT_CHECK3): Use inline function above instead of __extension__.
3004 (TREE_CHECK4): Use inline function above instead of __extension__.
3005 (tree_not_check4): New.
3006 (TREE_NOT_CHECK4): Use inline function above instead of __extension__.
3008 (TREE_CHECK5): Use inline function above instead of __extension__.
3009 (tree_not_check5): New.
3010 (TREE_NOT_CHECK5): Use inline function above instead of __extension__.
3011 (contains_struct_check): New.
3012 (CONTAINS_STRUCT_CHECK): Use inline function above instead of
3014 (tree_class_check): New.
3015 (TREE_CLASS_CHECK): Use inline function above instead of __extension__.
3016 (tree_range_check): New.
3017 (TREE_RANGE_CHECK): Use inline function above instead of __extension__.
3018 (omp_clause_subcode_check): New.
3019 (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of
3021 (omp_clause_range_check): New.
3022 (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of
3025 (EXPR_CHECK): Use inline function above instead of __extension__.
3026 (non_type_check): New.
3027 (NON_TYPE_CHECK): Use inline function above instead of __extension__.
3028 (tree_vec_elt_check): New.
3029 (TREE_VEC_ELT_CHECK): Use inline function above instead of
3031 (omp_clause_elt_check): New.
3032 (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of
3034 (tree_operand_check): New.
3035 (TREE_OPERAND_CHECK): Use inline function above instead of
3037 (tree_operand_check_code): New.
3038 (TREE_OPERAND_CHECK_CODE): Use inline function above instead of
3040 (TREE_CHAIN): Simplify implementation.
3041 (TREE_TYPE): Simplify implementation.
3042 (tree_operand_length): Move for compilation dependences.
3043 * gdbinit.in: (macro define __FILE__): New.
3044 (macro define __LINE__): New.
3045 (skip "tree.h"): New.
3047 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
3050 * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0,
3051 *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns.
3052 * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns.
3054 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
3057 * config/sh/constraints.md (Sra): New constraint.
3058 * config/sh/predicates.md (simple_mem_operand,
3059 displacement_mem_operand, zero_extend_movu_operand): New predicates.
3060 (zero_extend_operand): Check zero_extend_movu_operand for SH2A.
3061 * config/sh/sh.md (*zero_extendqisi2_disp_mem,
3062 *zero_extendhisi2_disp_mem): Add new insns and two new related
3065 2012-08-14 Steven Bosscher <steven@gcc.gnu.org>
3067 * graphite-scop-detection.c (create_sese_edges): Compute dominance
3068 info before trying to fix loop structure.
3069 * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries.
3070 * tree-cfgcleanup.c (repair_loop_structures): Likewise.
3071 * cfgloop.c (verify_loop_structure): Verify loop fathers.
3073 * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert.
3074 (dom_convert_dir_to_idx, compute_dom_fast_query,
3075 get_immediate_dominator, set_immediate_dominator, get_dominated_by,
3076 redirect_immediate_dominators, nearest_common_dominator,
3077 (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator,
3078 iterate_fix_dominators, add_to_dominance_info,
3079 delete_from_dominance_info): Likewise.
3081 2012-08-14 Richard Guenther <rguenther@suse.de>
3083 * cfgexpand.c (expand_used_vars): Use virtual_operand_p.
3084 * gimple-pretty-print.c (dump_phi_nodes): Likewise.
3085 * gimple-streamer-out.c (output_bb): Likewise.
3086 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise.
3087 (rewrite_reductions_out_of_ssa): Likewise.
3088 (rewrite_commutative_reductions_out_of_ss): Likewise.
3089 * ipa-split.c (verify_non_ssa_vars): Likewise.
3090 (consider_split): Likewise.
3091 (visit_bb): Likewise.
3092 (split_function): Likewise.
3093 * lto-streamer-out.c (output_ssa_names): Likewise.
3094 * sese.c (rename_uses): Likewise.
3095 * tree-cfg.c (replace_uses_by): Likewise.
3096 (gimple_merge_blocks): Likewise.
3097 (gimple_cfg2dot): Likewise.
3098 (verify_gimple_phi): Likewise.
3099 (replace_ssa_name): Likewise.
3100 (move_block_to_fn): Likewise.
3101 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
3102 * tree-if-conv.c (if_convertible_phi_p): Likewise.
3103 (predicate_scalar_phi): Likewise.
3104 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
3105 (copy_phis_for_bb): Likewise.
3106 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
3107 (destroy_loop): Likewise.
3108 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
3109 (insert_backedge_copies): Likewise.
3110 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
3111 (gather_scalar_reductions): Likewise.
3112 (try_create_reduction_list): Likewise.
3113 * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph):
3115 (scev_const_prop): Likewise.
3116 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
3117 (get_default_value): Likewise.
3118 (ccp_initialize): Likewise.
3119 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
3120 * tree-ssa-copy.c (may_propagate_copy): Likewise.
3121 (init_copy_prop): Likewise.
3122 * tree-ssa-dce.c (propagate_necessity): Likewise.
3123 (remove_dead_phis): Likewise.
3124 (forward_edge_to_pdom): Likewise.
3125 (eliminate_unnecessary_stmts): Likewise.
3126 * tree-ssa-live.c (partition_view_init): Likewise.
3127 (remove_unused_locals): Likewise.
3128 (register_ssa_partition_check): Likewise.
3129 * tree-ssa-loop-im.c (movement_possibility): Likewise.
3130 (move_computations_stmt): Likewise.
3131 * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise.
3132 (record_invariant): Likewise.
3133 (find_interesting_uses_outside): Likewise.
3134 (determine_set_costs): Likewise.
3135 * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
3136 (find_uses_to_rename_use): Likewise.
3137 (check_loop_closed_ssa_use): Likewise.
3138 (rewrite_phi_with_iv): Likewise.
3139 (canonicalize_loop_ivs): Likewise.
3140 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3141 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
3142 * tree-ssa-pre.c (make_values_for_phi): Likewise.
3143 (compute_avail): Likewise.
3144 (eliminate): Likewise.
3145 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
3146 * tree-ssa-reassoc.c (phi_rank): Likewise.
3147 * tree-ssa-strlen.c (strlen_enter_block): Likewise.
3148 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
3149 (ipa_pta_execute): Likewise.
3150 * tree-ssa-tail-merge.c (same_succ_hash): Likewise.
3151 (release_last_vdef): Likewise.
3152 (same_phi_alternatives_1): Likewise.
3153 (bb_has_non_vop_phi): Likewise.
3154 (vop_phi): Likewise.
3155 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
3157 * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise.
3158 (execute_late_warn_uninitialized): Likewise.
3159 * tree-ssa.c (verify_ssa_name): Likewise.
3160 (verify_phi_args): Likewise.
3161 (verify_ssa): Likewise.
3162 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3163 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
3165 (slpeel_tree_peel_loop_to_edge): Likewise.
3166 (vect_can_advance_ivs_p): Likewise.
3167 (vect_update_ivs_after_vectorizer): Likewise.
3168 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
3169 * tree-vrp.c (remove_range_assertions): Likewise.
3170 * value-prof.c (gimple_divmod_values_to_profile): Likewise.
3172 2012-08-14 Richard Guenther <rguenther@suse.de>
3174 PR tree-optimization/54146
3175 * tree-ssa-pre.c (do_regular_insertion): Use a VEC
3176 indexed by pred edge index for avail.
3177 (do_partial_partial_insertion): Likewise.
3178 (insert_into_preds_of_block): Adjust.
3180 2012-08-14 Richard Guenther <rguenther@suse.de>
3182 * gimplify.c (create_tmp_from_val): Mark temporary with
3183 DECL_GIMPLE_REG_P here ...
3184 (internal_get_tmp_var): ... instead of here. If we go into
3185 SSA create an SSA name instead of a VAR_DECL.
3186 (gimplify_modify_expr): Do not create SSA names here, assert
3187 we already got them.
3188 (force_gimple_operand_1): Create an SSA name if we go into SSA.
3189 * sese.c (rename_uses): Simplify.
3191 2012-08-14 Richard Guenther <rguenther@suse.de>
3193 * tree-into-ssa.c: Include diagnostic-core.h.
3194 * Makefile.in (tree-into-ssa.o): Adjust.
3196 2012-08-14 Richard Guenther <rguenther@suse.de>
3198 * tree-into-ssa.c (update_ssa): Verify we do not rename
3199 symbols that are already partly in SSA form.
3201 2012-08-14 Jakub Jelinek <jakub@redhat.com>
3204 PR rtl-optimization/53495
3205 * ira.c (ira): Move delete_trivially_dead_insns call before
3206 find_moveable_pseudos call.
3208 2012-08-13 Steven Bosscher <steven@gcc.gnu.org>
3210 * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points
3211 of potentially huge memset overhead.
3212 (do_partial_partial_insertion): Likewise.
3213 * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc.
3214 * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC
3215 for arrays to be filled by pre_and_rev_post_order_compute. Allocate
3216 the right number of slots, not that number plus NUM_FIXED_BLOCKS.
3217 * tree-ssa-reassoc.c (init_reassoc): Likewise.
3218 * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for
3219 array used as stack.
3220 * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for
3221 arrays to be filled by pre_and_rev_post_order_compute.
3222 * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for
3223 array to be filled by dfs_enumerate_from.
3224 (remove_path): Likewise.
3225 (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for
3226 array of loops that is filled on the next lines.
3227 * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for
3228 array of basic blocks to be returned.
3229 (get_loop_body_in_dom_order): Likewise.
3230 (get_loop_body_in_bfs_order): Likewise.
3231 * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack
3232 for all bitmaps used for rewriting into loop-closed SSA form.
3233 (add_exit_phis_var): Allocate the def bitmap on it. Clear the livein
3234 bitmap at the end to release a lot of memory.
3235 (add_exit_phis): Allocate the exits bitmap on the new obstack.
3236 (get_loops_exits): Allocate the exits bitmap on the new obstack.
3237 (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is
3238 seen for the first time.
3239 (find_uses_to_rename): Add "???" for why the whole function must
3240 be re-scanned if changed_bbs is empty.
3241 (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack.
3242 Use XNEWVEC to allocate the use_blocks array. Initialize the new
3243 obstack, and free it at the end. Remove loop over all SSA names.
3244 (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands.
3245 * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of
3246 xcalloc to allocate edge_pred and edge_flag arrays.
3248 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
3250 * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here.
3251 (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers
3253 (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS.
3254 (REG_CLASS_NAMES): Update.
3255 (REG_CLASS_CONTENTS): Update. Clear CLOBBERED_REGS members.
3256 * config/i386/i386.c (ix86_conditional_register_usage): Disable
3257 REX registers on 32bit targets. Handle bitmaps from
3258 CALL_USED_REGISTERS initializer. Calculate CLOBBERED_REGS register
3259 set from GENERAL_REGS also for 32bit targets. Do not change call
3260 used register set for TARGET_64BIT_MS_ABI separately.
3262 2012-08-13 Richard Guenther <rguenther@suse.de>
3264 * basic-block.h (struct basic_block): Remove loop_depth
3265 member, move flags and index members next to each other.
3266 * cfgloop.h (bb_loop_depth): New inline function.
3267 * cfghooks.c (split_block): Do not set loop_depth.
3268 (duplicate_block): Likewise.
3269 * cfgloop.c (flow_loop_nodes_find): Likewise.
3270 (flow_loops_find): Likewise.
3271 (add_bb_to_loop): Likewise.
3272 (remove_bb_from_loops): Likewise.
3273 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
3274 * gimple-streamer-in.c (input_bb): Do not stream loop_depth.
3275 * gimple-streamer-out.c (output_bb): Likewise.
3276 * bt-load.c: Include cfgloop.h.
3277 (migrate_btr_defs): Use bb_loop_depth.
3278 * cfg.c (dump_bb_info): Likewise.
3279 * final.c (compute_alignments): Likewise.
3280 * ira.c (update_equiv_regs): Likewise.
3281 * tree-ssa-copy.c (init_copy_prop): Likewise.
3282 * tree-ssa-dom.c (loop_depth_of_name): Likewise.
3283 * tree-ssa-forwprop.c: Include cfgloop.h.
3284 (forward_propagate_addr_expr): Use bb_loop_depth.
3285 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
3286 * tree-ssa-sink.c (select_best_block): Likewise.
3287 * ipa-inline-analysis.c: Include cfgloop.h.
3288 (estimate_function_body_sizes): Use bb_loop_depth.
3289 * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
3290 (ipa-inline-analysis.o): Likewise.
3291 (bt-load.o): Likewise.
3293 2012-08-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3294 Jakub Jelinek <jakub@redhat.com>
3297 * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
3298 bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
3299 * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
3300 0x80000001 %ecx flags.
3302 2012-08-13 Richard Guenther <rguenther@suse.de>
3304 * tree-cfg.c (print_loop): Avoid ICEing for loops marked for
3305 removal and loops with multiple latches.
3307 2012-08-13 Jakub Jelinek <jakub@redhat.com>
3310 * tree.c (integer_pow2p): Avoid undefined signed overflows.
3311 * simplify-rtx.c (neg_const_int): Likewise.
3312 * expr.c (fixup_args_size_notes): Likewise.
3313 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
3314 * double-int.c (mul_double_wide_with_sign): Likewise.
3315 (double_int_mask): Likewise.
3316 * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
3318 2012-08-13 Richard Guenther <rguenther@suse.de>
3320 PR tree-optimization/54200
3321 * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
3322 PHI results to another partition if not all PHI arguments
3323 have the same partition.
3325 2012-08-12 Jan Hubicka <jh@suse.cz>
3327 * tree-pass.h (write_summary, write_optimization_summary): Remove
3328 set and vset arguments.
3329 * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
3330 (write_node_summary_p): Likewise; use the encoder.
3331 (ipa_reference_write_optimization_summary): Likewise.
3332 * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
3333 (lto_symtab_encoder_new): Initialize in_partition field.
3334 (lto_symtab_encoder_delete): Destroy in_partition field.
3335 (LCC_NOT_FOUND): Move to lto-streamer.h
3336 (lto_symtab_encoder_deref): Likewise.
3337 (lto_symtab_encoder_in_partition_p,
3338 lto_set_symtab_encoder_in_partition): New functions.
3339 (referenced_from_other_partition_p): Rewrite to use encoder.
3340 (reachable_from_other_partition_p): Likewise.
3341 (referenced_from_this_partition_p): Likewise.
3342 (reachable_from_this_partition_p): Likewise.
3343 (lto_output_node): Likewise.
3344 (lto_output_varpool_node): Likewise.
3345 (output_refs): Likewise.
3346 (compute_ltrans_boundary): Initialize in_partition fileds of
3348 (output_symtab): Likewise.
3349 (input_refs): Match the changes in output_refs.
3350 (output_cgraph_opt_summary_p): Remove set argument.
3351 (output_node_opt_summary): Replace set by encoder.
3352 (output_cgraph_opt_summary): Remove set argument; use
3354 * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
3355 arguments; use the encoder.
3356 * lto-streamer-out.c (lto_output): Remove set and vset argument; use
3358 (produce_symtab): Likewise.
3359 * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
3360 * ipa-inline-analysis.c (inline_write_summary): Likewise.
3361 * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
3363 * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
3364 * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
3365 (ipa_write_summaries_1): Update.
3366 (ipa_write_optimization_summaries_1): Likewise.
3367 (ipa_write_optimization_summaries): Likewise.
3368 * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
3369 (lto_symtab_encoder_iterator): New type.
3370 (lto_symtab_encoder_deref): Make inline.
3371 (output_symtab, referenced_from_other_partition_p,
3372 reachable_from_other_partition_p, referenced_from_this_partition_p,
3373 reachable_from_this_partition_p): Update.
3374 (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node,
3375 lsei_varpool_node): New inline functions.
3376 (LCC_NOT_FOUND): New macro.
3377 (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
3378 lsei_start_in_partition, lsei_next_function_in_partition,
3379 lsei_start_function_in_partition, lsei_next_variable_in_partition,
3380 lsei_start_variable_in_partition): New inline functions.
3382 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
3384 * config/sh/sh.md (prefetch): Simplify expander. Fix condition to
3386 (*prefetch_media): Move insn below expander.
3387 (*prefetch): Fix condition to allow SH3.
3389 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
3392 * config/sh/sh.md: Add splits for inverted compare and branch
3394 (*cmpeqsi_t): New insn.
3395 (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
3396 (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in
3397 replacement insn list and not in the preparation statements.
3398 (clrt, sett): Add mt_group attribute.
3400 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
3403 * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
3405 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
3408 * config/sh/predicates.md (mem_index_disp_operand): Check for
3409 arith_reg_operand instead of REG_P.
3411 2012-08-11 Bernd Schmidt <bernds@codesourcery.com>
3413 * reload1.c (replaced_subreg, gen_reload): Add
3414 SECONDARY_MEMORY_NEEDED ifdefs as necessary.
3416 2012-08-11 Jan Hubicka <jh@suse.cz>
3418 * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
3419 symtab_node sectoin name; it confuses plugin.
3421 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
3423 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
3424 index in the va_list_vars bitmap by num_ssa_names.
3426 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
3428 * config/i386/sse.md (xop integer multiply/add insns): Use
3429 register_operand for operand 3 predicate.
3430 (xop_phadd<u>bq): Fix vec_select selectors.
3432 2012-08-11 Martin Jambor <mjambor@suse.cz>
3435 * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
3436 * ipa-inline-analysis.c (agg_position_info): New type.
3437 (add_condition): New parameter aggpos, also store agg_contents, by_ref
3439 (dump_condition): Also dump aggregate conditions.
3440 (evaluate_conditions_for_known_args): Also handle aggregate
3441 conditions. New parameter known_aggs.
3442 (evaluate_properties_for_edge): Gather known aggregate contents.
3443 (inline_node_duplication_hook): Pass NULL known_aggs to
3444 evaluate_conditions_for_known_args.
3445 (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
3446 (unmodified_parm_or_parm_agg_item): New function.
3447 (set_cond_stmt_execution_predicate): Handle values passed in
3449 (set_switch_stmt_execution_predicate): Likewise.
3450 (will_be_nonconstant_predicate): Likewise.
3451 (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
3452 ipa_get_indirect_edge_target.
3453 (estimate_calls_size_and_time): New parameter known_aggs, pass it
3454 recrsively to itself and to estimate_edge_devirt_benefit.
3455 (estimate_node_size_and_time): New vector known_aggs, pass it o
3456 functions which need it.
3457 (remap_predicate): New parameter offset_map, use it to remap aggregate
3459 (remap_edge_summaries): New parameter offset_map, pass it recursively
3460 to itself and to remap_predicate.
3461 (inline_merge_summary): Also create and populate vector offset_map.
3462 (do_estimate_edge_time): New vector of known aggregate contents,
3463 passed to functions which need it.
3464 (inline_read_section): Stream new fields of condition.
3465 (inline_write_summary): Likewise.
3466 * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
3467 contents. Let all local callers pass NULL for known_aggs.
3469 2012-08-11 Jan Hubicka <jh@suse.cz>
3471 * lto-cgraph.c (output_cgraph): Rename to ...
3472 (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
3473 (input_cgraph): Rename to ...
3474 (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
3475 * lto-streamer-out.c (create_output_block): Do not set
3477 (produce_asm): Likewise.
3478 (lto_output_toplevel_asms): Likewise.
3479 (produce_asm_for_decls): Likewise.
3480 (lto_output): Use output_symtab.
3481 * lto-section-in.c (lto_section_name): Update.
3482 * lto-section-out.c (lto_destroy_simple_output_block): Remove
3484 * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
3485 rename LTO_section_cgraph to LTO_section_symtab_nodes.
3486 (struct lto_header): Remove section_type.
3488 2012-08-11 Jan Hubicka <jh@suse.cz>
3490 * cgraph.h (vector types for symtab_node): Add.
3491 * ipa-reference.c (ipa_reference_write_optimization_summary): Update
3492 for new symtab encoder.
3493 (ipa_reference_read_optimization_summary): Likewise.
3494 * lto-cgraph.c (output_varpool): Remove.
3495 (input_cgraph_opt_summary): Take symtab nodes vector as argument.
3496 (LTO_cgraph_tags): Rename to ...
3497 (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
3498 (lto_cgraph_encoder_new): Rename to ...
3499 (lto_symtab_encoder_new): ... this on.
3500 (lto_cgraph_encoder_encode): Rename to ...
3501 (lto_symtab_encoder_encode): ... this one.
3502 (lto_cgraph_encoder_delete): Rename to ...
3503 (lto_symtab_encoder_delete): ... this one.
3504 (lto_cgraph_encoder_deref): Rename to ...
3505 (lto_symtab_encoder_deref): ... this one.
3506 (lto_cgraph_encoder_encode_body_p): Rename to ...
3507 (lto_symtab_encoder_encode_body_p): ... this one.
3508 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
3509 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
3510 lto_varpool_encoder_deref): Remove.
3511 (lto_varpool_encoder_encode_initializer_p): Rename to ...
3512 (lto_symtab_encoder_encode_initializer_p): ... this one.
3513 (lto_set_varpool_encoder_encode_initializer): Rename to ...
3514 (lto_set_symtab_encoder_encode_initializer): ... this one.
3515 (lto_output_edge): Update.
3516 (lto_output_node): Update.
3517 (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
3518 (lto_output_ref): Drop varpool_encoder; update.
3519 (add_node_to): Update.
3520 (add_references): Update.
3521 (output_outgoing_cgraph_edges): Update.
3522 (output_refs): Update.
3523 (compute_ltrans_boundary): Update.
3524 (output_cgraph): Update; output varpools too.
3525 (input_overwrite_node): Update.
3526 (output_varpool): Remove.
3527 (input_node): Update.
3528 (input_ref): Update.
3529 (input_edge): Update.
3530 (input_cgraph_1): Update; input varpool too; unify fixup code.
3531 (input_varpool_1): Remove.
3532 (input_refs): Update.
3533 (input_cgraph): Update.
3534 (output_node_opt_summary): Update.
3535 (input_cgraph_opt_section): Update.
3536 (input_cgraph_opt_summary): Update.
3537 * ipa-pure-const.c (pure_const_write_summary): Update.
3538 (pure_const_read_summary): Update.
3539 * lto-streamer-out.c (lto_write_tree): Update.
3540 (lto_output): Likewise.
3541 (produce_symtab): Update.
3542 (produce_asm_for_decls): Update.
3543 * ipa-inline-analysis.c (inline_read_section): Update.
3544 (inline_write_summary): Update.
3545 * ipa-prop.c (ipa_write_node_info): Update.
3546 (ipa_prop_read_section): Update.
3547 * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
3548 (lto_symtab_encoder_d): ... this one; add initializer.
3549 (lto_cgraph_encoder_t): Rename to ...
3550 (lto_symtab_encoder_t): ... this one.
3551 (lto_cgraph_encoder_size): Rename to ...
3552 (lto_symtab_encoder_size): ... this one.
3553 (lto_varpool_encoder_d): ... remove.
3554 (lto_varpool_encoder_t): Remove.
3555 (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
3556 add symtab_node_encoder.
3557 (lto_file_decl_data): Likewise.
3558 (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
3559 lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
3560 lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
3561 lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
3562 lto_varpool_encoder_lookup, lto_varpool_encoder_new,
3563 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
3564 lto_varpool_encoder_encode_initializer_p): Remove.
3565 (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
3566 lto_symtab_encoder_t, lto_symtab_encoder_encode,
3567 lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
3568 lto_symtab_encoder_encode_initializer_p): New.
3570 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
3572 * config/i386/i386.md (isa): Add fma and fma4.
3573 (enabled): Handle fma and fma4.
3574 * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
3575 (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
3576 (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
3577 (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
3578 (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
3579 (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
3581 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
3583 * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
3584 *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
3585 *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
3587 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
3589 * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
3590 variants of PLUS and MULT simple LEA patterns. Disable PLUS
3591 patterns for TARGET_OPT_AGU.
3593 2012-08-10 Richard Guenther <rguenther@suse.de>
3595 * Makefile.in (OBJS): Remove matrix-reorg.o.
3596 (matrix-reorg.o): Remove dependence rule.
3597 (GTFILES): Remove matrix-reorg.c.
3598 * matrix-reorg.c: Remove.
3599 * passes.c (init_optimization_passes): Do not schedule
3600 pass_ipa_matrix_reorg.
3601 * tree-pass.h (pass_ipa_matrix_reorg): Remove.
3602 * common.opt (fipa-matrix-reorg): Stub out.
3603 * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
3605 2012-08-10 Richard Guenther <rguenther@suse.de>
3608 * fold-const.c (fold_ternary_loc): Do not reverse the mask
3609 when canonicalizing it when folding VEC_PERM_EXPR.
3611 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3614 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3615 Use cand_type to determine whether pointer arithmetic will be generated.
3617 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3619 * doc/sourcebuild.texi: Document long_neq_int effective target.
3621 2012-08-10 Richard Guenther <rguenther@suse.de>
3623 PR tree-optimization/54109
3624 * tree-ssa-forwprop.c
3625 (forward_propagate_addr_into_variable_array_index): Remove.
3626 (forward_propagate_addr_expr_1): Adjust.
3628 2012-08-10 Richard Guenther <rguenther@suse.de>
3630 * tree-cfg.c (dump_function_to_file): Make sure to dump
3631 anonymous SSA names when there are no local decls.
3633 2012-08-10 Steven Bosscher <steven@gcc.gnu.org>
3635 * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
3636 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
3637 (mark_phi_for_rewrite): Likewise.
3638 (compute_global_livein): Use VEC_reserve outside the innermost
3639 loop and VEC_quick_push instead of VEC_safe_push in that loop.
3640 (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
3641 of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to
3642 the correct initial size.
3644 2012-08-10 Richard Guenther <rguenther@suse.de>
3646 * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
3647 (need_creation): Remove.
3648 (get_representative_for): Use anonymous named SSA names.
3649 (create_expression_by_pieces): Likewise.
3650 (insert_into_preds_of_block): Likewise.
3651 (init_pre): Do not init removed vars.
3652 (fini_pre): Do not free need_creation.
3653 * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
3655 * tree-ssa-loop-manip.c (create_iv): Likewise.
3656 * value-prof.c (gimple_divmod_fixed_value): Likewise.
3657 (gimple_mod_pow2): Likewise.
3658 (gimple_mod_subtract): Likewise.
3659 (gimple_ic): Likewise.
3660 (gimple_stringop_fixed_value): Likewise.
3661 * tree-ssa-phiopt.c (condstoretemp): Remove.
3662 (tree_ssa_phiopt_worker): Use anonymous named SSA names.
3663 (conditional_replacement): Likewise.
3664 (abs_replacement): Likewise.
3665 (cond_store_replacement): Likewise.
3666 (cond_if_else_store_replacement_1): Likewise.
3667 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
3668 (rewrite_bittest): Likewise.
3669 * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
3670 and build anonymous SSA names.
3671 (undistribute_ops_list): Adjust.
3672 (eliminate_redundant_comparison): Use anonymous SSA names.
3673 (rewrite_expr_tree_parallel): Likewise.
3674 (get_reassoc_pow_ssa_name): Remove.
3675 (attempt_builtin_powi): Adjust.
3676 (reassociate_bb): Likewise.
3677 * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
3678 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3679 (build_arrays): Likewise.
3680 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
3681 (create_tailcall_accumulator): Likewise.
3682 * tree-vect-generic.c (expand_vector_divmod): Likewise.
3683 * tree-profile.c (gcov_type_tmp_var): Remove.
3684 (gimple_init_edge_profiler): Do not initialize it and use anonymous
3686 (gimple_gen_ic_profiler): Likewise.
3687 (tree_profiling): Adjust.
3688 * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
3689 * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
3690 (powi_as_mults_1): Likewise.
3691 (powi_as_mults): Likewise.
3692 (build_and_insert_call): Adjust.
3693 (build_and_insert_binop): Likewise.
3694 (build_and_insert_ref): Likewise.
3695 (build_and_insert_cast): Likewise.
3696 (gimple_expand_builtin_pow): Likewise.
3697 (gimple_expand_builtin_cabs): Likewise.
3698 (execute_optimize_bswap): Use anonymous SSA names.
3699 (convert_mult_to_widen): Likewise.
3700 (convert_plusminus_to_widen): Likewise.
3701 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
3702 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
3703 * tree-if-conv.c (ifc_temp_var): Likewise.
3704 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
3705 * tree-parloops.c (take_address_of): Likewise.
3706 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
3707 (vect_permute_load_chain): Likewise.
3708 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
3709 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
3710 (vect_handle_widen_op_by_const): Likewise.
3711 (vect_operation_fits_smaller_type): Likewise.
3712 (vect_recog_over_widening_pattern): Likewise.
3713 * tree-vect-stmts.c (vect_init_vector): Likewise.
3714 * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
3715 (simplify_float_conversion_using_ranges): Likewise.
3717 2012-08-10 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3719 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
3720 target mask of __builtin_ia32_rdseed_di_step builtin.
3722 2012-08-10 Richard Guenther <rguenther@suse.de>
3724 PR tree-optimization/54027
3725 * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
3726 and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
3727 to handle LSHIFT_EXPR with a constant.
3729 2012-08-10 Richard Guenther <rguenther@suse.de>
3731 * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
3733 (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
3734 or its SSA_NAME_VAR.
3735 (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
3736 * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
3737 SSA names by passing a type instead of a variable decl.
3738 (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
3739 (copy_ssa_name_fn): Handle anonymous SSA names.
3740 (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
3741 * tree-flow-inline.h (make_temp_ssa_name): New inline function.
3742 * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
3743 dump SSA names without a name as <anon>.
3744 * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
3745 going to expand a decl.
3746 (gimple_expand_cfg): Assign all SSA names of a partition the
3747 decl we created for its leader.
3748 * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
3749 (verify_ssa_name): Handle anonymous SSA names.
3750 (verify_def): Likewise.
3751 * tree-predcom.c (eliminate_temp_copies): Likewise.
3752 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
3753 * tree-ssa-live.c (var_map_base_init): Compute conflicts for
3754 anonymous SSA names with the same type.
3755 (mark_all_vars_used_1): Handle anonymous SSA names.
3756 (verify_live_on_entry): Likewise.
3757 * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
3758 (create_outofssa_var_map): Adjust with respect to conflicts we
3759 compute for anonymous SSA names. Do not restrict abnormal
3761 (coalesce_partitions): Do not restrict abnormal coalescing.
3762 Assert we only ever coalesce variables we computed conflicts for.
3763 * tree-ssa-ter.c (process_replaceable): Do not restrict TER
3765 * expr.c (expand_expr_real_1): Handle anonymous SSA names
3766 expanded from IVOPTs by creating a raw REG here.
3767 * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
3768 (dump_function_to_file): Dump anonymous SSA names alongside
3769 with their types in the variable list.
3770 (verify_gimple_return): Guard use of SSA_NAME_VAR.
3771 * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
3772 (rewrite_into_ssa): Make SSA names anonymous.
3773 * tree-ssa-structalias.c (alias_get_name): Rewrite.
3774 * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
3776 (warn_uninitialized_phi): Likewise.
3777 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
3778 anonymous SSA names to the expander.
3779 (determine_iv_cost): Anonymous SSA names are artificial.
3780 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
3781 Handle anonymous SSA names.
3782 * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
3783 or if NULL, the type of the SSA name.
3784 * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
3785 remap names as anonymous where appropriate.
3786 (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
3787 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
3788 according to what we create conflicts for in out-of-SSA
3790 * tree-parloops.c (separate_decls_in_region_name): Handle
3791 anonymous SSA names.
3792 (add_field_for_name): Likewise.
3793 * tree.c (get_name): Handle SSA names.
3794 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
3796 * tree-vect-loop-manip.c (adjust_debug_stmts): Use
3798 * tree-sra.c (create_access_replacement): Give up generating
3799 a DECL_DEBUG_EXPR for SSA names in the memory reference.
3800 (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
3801 * tree-complex.c (get_component_ssa_name): Handle anonymous
3803 (set_component_ssa_name): Likewise.
3804 * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
3805 * tree-object-size.c (collect_object_sizes_for): Handle
3806 uninitialized SSA names properly.
3807 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
3809 * ipa-split.c (test_nonssa_use): Likewise.
3810 (consider_split): Likewise.
3811 (mark_nonssa_use): Likewise.
3813 2012-08-09 Jan Hubicka <jh@suse.cz>
3816 * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
3817 parameter; honnor it.
3818 * ipa-inline.c (recursive_inlining): Update call
3820 (inline_small_functions): Likewise.
3821 (ipa_inline): Likewise.
3822 (inline_always_inline_functions): Likewise.
3823 (early_inline_small_functions): Likewise.
3824 (flatten_function): Do separate update of summary info.
3825 * ipa-inline.h (inline_update_overall_summary): Declare.
3826 (inline_call): Update.
3827 * ipa-inline-analysis.c (inline_merge_summary): Break out
3828 updating code to ...
3829 (inline_update_overall_summary): Likewise.
3831 2012-08-09 Richard Henderson <rth@redhat.com>
3833 * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
3835 * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
3836 performing the compare for the restart loop.
3838 2012-08-09 DJ Delorie <dj@redhat.com>
3840 * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
3841 SET before extracting SET_SRC.
3842 (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
3844 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
3847 * config/sh/sh-protos (shift_insns_rtx): Delete.
3848 (sh_ashlsi_clobbers_t_reg_p): Add.
3849 * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
3850 ext_shift_amounts): Merge arrays of ints to array of structs.
3851 Adapt usage of arrays throughout the file.
3852 (shift_insns_rtx): Delete unused function.
3853 (sh_ashlsi_clobbers_t_reg_p): New function.
3854 * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
3855 final shift sequence will clobber T_REG.
3856 (ashlsi3_n): Split only if the final shift sequence will not
3858 (ashlsi3_n_clobbers_t): New insn_and_split.
3860 2012-08-09 Steven Bosscher <steven@gcc.gnu.org>
3862 * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
3863 instead of looking at sbitmap n_bits member directly.
3864 * gcse.c (hoist_code): Likewise.
3865 * sched-rgn.c (split_edges): Likewise.
3866 * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
3867 update_ssa): Likewise.
3869 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
3871 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
3872 single unit register class for classes that contain registers form
3874 (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
3875 INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
3877 2012-08-09 Martin Jambor <mjambor@suse.cz>
3879 * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
3880 offset, updated all users. New field agg_contents.
3881 * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
3882 (ipa_pass_through_data): New field agg_preserved.
3883 (ipa_ancestor_jf_data): Likewise.
3884 (ipa_member_ptr_cst): Removed.
3885 (ipa_agg_jf_item): New type.
3886 (ipa_agg_jump_function): Likewise.
3887 (ipa_jump_func): New field agg. Removed field member_cst.
3888 (ipa_get_jf_pass_through_agg_preserved): New function.
3889 (ipa_get_jf_ancestor_agg_preserved): Likewise.
3890 (ipa_get_jf_member_ptr_pfn): Removed.
3891 (ipa_find_agg_cst_for_param): Declare.
3892 (ipa_load_from_parm_agg): Likewise.
3893 * ipa-prop.c (param_analysis_info): Fields modified and
3894 visited_statements rename to parm_modified and parm_visited_statements
3895 respectively, added fields ref_modified, ref_visited_statements,
3896 pt_modified and pt_visited_statements.
3897 (ipa_print_node_jump_functions_for_edge): Do not dump const member
3898 functions. Dump agg_preserved flags and aggregate jump functions.
3899 (ipa_set_jf_simple_pass_through): Set also agg_preserved.
3900 (ipa_set_ancestor_jf): Likewise.
3901 (ipa_set_jf_arith_pass_through): Clear agg_preserved.
3902 (ipa_set_jf_member_ptr_cst): Removed.
3903 (is_parm_modified_before_stmt): Logic reversed, renamed to
3904 parm_preserved_before_stmt_p. Cache visited bitmap only for
3905 naked DECL parameters. All callers updated.
3906 (load_from_unmodified_param): Allow NULL parms_ainfo.
3907 (parm_ref_data_preserved_p): New function.
3908 (parm_ref_data_pass_through_p): Likewise.
3909 (ipa_load_from_parm_agg_1): Likewise.
3910 (ipa_load_from_parm_agg): Likewise.
3911 (compute_complex_assign_jump_func): Check if aggregate contents are
3913 (compute_complex_ancestor_jump_func): Likewise.
3914 (compute_scalar_jump_functions): Removed.
3915 (type_like_member_ptr_p): Also check field position are known and sane.
3916 (compute_pass_through_member_ptrs): Removed.
3917 (determine_cst_member_ptr): Likewise.
3918 (ipa_known_agg_contents_list): New type.
3919 (determine_known_aggregate_parts): New function.
3920 (compute_cst_member_ptr_arguments): Removed.
3921 (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
3922 functions (scalar, aggregate and member pointer).
3923 (ipa_get_member_ptr_load_param): Incorporate into
3924 ipa_get_stmt_member_ptr_load_param, also pass back an offset.
3925 (ipa_note_param_call): Clear agg_contents.
3926 (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
3927 from aggregates. In such cases, store offset of the called field.
3928 (ipa_analyze_node): Initialize new fields of param_analysis_info.
3929 (update_jump_functions_after_inlining): Handle aggregate contents.
3930 (ipa_find_agg_cst_for_param): New function.
3931 (try_make_edge_direct_simple_call): Handle called aggregate values.
3932 (update_indirect_edges_after_inlining): Make sure aggregate preserving
3933 jump functions comply with type compatibility requirements.
3934 (ipa_edge_duplication_hook): Copy also aggregate jump functions.
3935 (ipa_write_jump_function): Stream agg_preserved flags and aggregate
3936 jump functions. Do not stream member pointer constant jump functions.
3937 (ipa_read_jump_function): Likewise.
3938 (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
3940 (ipa_read_indirect_edge_info): Likewise.
3942 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
3945 * config/sh/predicates.md (mem_index_disp_operand): New predicate.
3946 * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
3947 mem_index_disp_operand predicate.
3949 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
3952 * config/sh/sh.md: Add negc extu sequence peephole.
3953 (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
3954 (*movrt_negc): New insn.
3955 * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
3957 * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
3958 sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
3960 (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
3962 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
3965 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
3966 Use arith_reg_operand predicate instead of register_operand.
3967 * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
3970 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
3972 * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
3973 (alpha_pad_function_end): ... this. Also insert NOP between
3974 sibling call and GP load.
3975 (alpha_reorg): Update call to alpha_pad_function_end. Expand comment.
3977 2012-08-09 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3979 * config/i386/adxintrin.h: Remove guarding __ADX__ check.
3980 * config/i386/x86intrin.h: Likewise.
3981 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
3982 OPTION_MASK_ISA_ADX from needed options for
3983 __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
3984 (ix86_expand_builtin): Use add<mode>3_carry in expanding of
3985 IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
3987 2012-08-09 Andrey Belevantsev <abel@ispras.ru>
3989 PR rtl-optimization/53701
3990 * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
3991 Process not only expr's vinsns but all old vinsns from expr's
3993 (update_and_record_unavailable_insns): Clarify comment.
3995 2012-08-09 Bernd Schmidt <bernds@codesourcery.com>
3997 * reload.c (find_valid_class_1): New static function.
3998 (push_reload): Use it when reloading a SYMBOL_REG as the inner
3999 of a subreg. Keep better track of needed classes for the
4000 secondary memory case.
4001 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
4003 * reload1.c (replaced_subreg): New static function.
4004 (gen_reload): Use it when deciding whether to use secondary
4007 2012-08-09 Richard Guenther <rguenther@suse.de>
4009 * tree.h (SSA_VAR_P): Simplify.
4010 * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
4011 * fold-const.c (fold_comparison): Check for default def first
4012 before checking for PARM_DECL.
4013 * tree-complex.c (get_component_ssa_name): Likewise.
4014 * tree-inline.c (remap_ssa_name): Likewise.
4015 * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
4016 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4017 (find_what_p_points_to): Likewise.
4018 * tree-ssa-operands.c (add_stmt_operand): Simplify.
4020 2012-08-08 Joseph Myers <joseph@codesourcery.com>
4022 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
4023 IOR to a constant if one operand has side effects.
4025 2012-08-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4027 * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
4028 value operand as MEM to expand_atomic_compare_and_swap.
4030 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
4031 nonimmediate_operand for old value; generate load and store if
4033 * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
4036 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
4039 * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
4041 * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
4042 a gimple_reg if checking is enabled.
4043 (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
4044 * tree-into-ssa (compute_global_livein): Change the worklist
4045 type from an array to a VEC.
4047 2012-08-08 Richard Guenther <rguenther@suse.de>
4049 * tree-ssa-operands.h (virtual_operand_p): Declare.
4050 * tree-ssa-operands.c (virtual_operand_p): New predicate.
4051 * gimple.c (is_gimple_reg): Use virtual_operand_p.
4052 * tree-into-ssa.c (prepare_block_for_update): Likewise.
4053 * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
4055 2012-08-08 Richard Guenther <rguenther@suse.de>
4057 * tree-call-cdce.c (check_pow): Simplify.
4058 (gen_conditions_for_pow_int_base): Likewise.
4059 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
4060 virtual operands here.
4061 * tree-ssa-operands.c (get_name_decl): Remove unused function.
4062 * gimplify.c (gimple_regimplify_operands): Remove dead code.
4063 * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
4064 * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
4065 * value-prof.c (gimple_ic): Use duplicate_ssa_name.
4066 (gimple_stringop_fixed_value): Likewise.
4067 * tree.c (needs_to_live_in_memory): Remove SSA name handling.
4068 * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
4069 in the bitmap alongside shifted DECL_UIDs.
4070 (va_list_counter_struct_op): Likewise.
4071 (va_list_ptr_read): Likewise.
4072 (va_list_ptr_write): Likewise.
4073 (check_va_list_escapes): Likewise.
4074 (check_all_va_list_escapes): Likewise.
4075 (execute_optimize_stdarg): Likewise.
4076 * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
4078 2012-08-08 Richard Sandiford <rdsandiford@googlemail.com>
4079 H.J. Lu <hongjiu.lu@intel.com>
4081 PR rtl-optimization/54157
4082 * combine.c (gen_lowpart_for_combine): Don't return identity
4083 for CONST or symbolic reference.
4085 2012-08-08 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4087 * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
4088 (OPTION_MASK_ISA_ADX_UNSET): Likewise.
4089 (ix86_handle_option): Handle madx option.
4090 * config.gcc (i[34567]86-*-*): Add adxintrin.h.
4091 (x86_64-*-*): Likewise.
4092 * config/i386/adxintrin.h: New header.
4093 * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
4095 * config/i386/i386-builtin-types.def
4096 (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
4097 (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
4098 * config/i386/i386-c.c: Define __ADX__ if needed.
4099 * config/i386/i386.c (ix86_target_string): Define -madx option.
4101 (ix86_option_override_internal): Handle new option.
4102 (ix86_valid_target_attribute_inner_p): Add OPT_madx.
4103 (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
4104 IX86_BUILTIN_ADDCARRYX64.
4105 (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
4106 (ix86_expand_builtin): Handle these built-ins.
4107 (ix86_expand_args_builtin): Handle new function types.
4108 * config/i386/i386.h (TARGET_ADX): New.
4109 * config/i386/i386.md (adcx<mode>3): New define_insn.
4110 * config/i386/i386.opt (madx): New.
4111 * config/i386/x86intrin.h: Include adxintrin.h.
4113 2012-08-08 Nick Clifton <nickc@redhat.com>
4115 * config/rl78/rl78.c: Include tree-pass.h.
4117 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
4120 * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
4121 (build_insn_chain): Make live_subregs_used a bitmap.
4122 Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
4123 Use sbitmap_free to free the live_subreg sbitmaps.
4126 * ifcvt.c: Include pointer-set.h.
4127 (cond_move_process_if_block): Change type of then_regs and
4128 else_regs from alloca'd array to pointer_sets.
4129 (check_cond_move_block): Update for this change.
4130 (cond_move_convert_if_block): Likewise.
4131 * Makefile.in: Fix dependencies for ifcvt.o.
4133 2012-08-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4135 * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
4136 (incr_vec): New static var.
4137 (incr_vec_len): Likewise.
4138 (address_arithmetic_p): Likewise.
4139 (stmt_cost): Remove dead assignment.
4140 (dump_incr_vec): New function.
4141 (cand_abs_increment): Likewise.
4142 (lazy_create_slsr_reg): Likewise.
4143 (incr_vec_index): Likewise.
4144 (count_candidates): Likewise.
4145 (record_increment): Likewise.
4146 (record_increments): Likewise.
4147 (unreplaced_cand_in_tree): Likewise.
4148 (optimize_cands_for_speed_p): Likewise.
4149 (lowest_cost_path): Likewise.
4150 (total_savings): Likewise.
4151 (analyze_increments): Likewise.
4152 (ncd_for_two_cands): Likewise.
4153 (nearest_common_dominator_for_cands): Likewise.
4154 (profitable_increment_p): Likewise.
4155 (insert_initializers): Likewise.
4156 (introduce_cast_before_cand): Likewise.
4157 (replace_rhs_if_not_dup): Likewise.
4158 (replace_one_candidate): Likewise.
4159 (replace_profitable_candidates): Likewise.
4160 (analyze_candidates_and_replace): Handle candidates with SSA-name
4163 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
4165 * cfg.c (debug_bb): Do not set TDF_BLOCKS.
4166 * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
4167 * pretty-print.c (pp_base_flush): Do not add a newline, and do not
4168 clear pp_needs_newline.
4169 * pretty-print.h (pp_newline_and_flush): New macro with the behavior
4170 of pp_base_flush before the above change.
4171 * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
4172 instead of pp_flush.
4173 * diagnostic.c (diagnostic_finish): Likewise.
4174 (diagnostic_report_diagnostic): Likewise.
4175 (verbatim): Likewise.
4176 (error_recursion): Likewise.
4177 * tree-pretty-print.c (print_generic_stmt): Likewise.
4178 (print_generic_stmt_indented): LIkewise.
4179 * gimple-pretty-print.c (print_gimple_stmt): Likewise.
4180 (print_gimple_seq): Likewise.
4181 (gimple_dump_bb_buff): Likewise.
4183 2012-08-07 Uros Bizjak <ubizjak@gmail.com>
4186 * var-tracking.c (var_lowpart): Exit early for matched modes.
4188 2012-08-07 Richard Henderson <rth@redhat.com>
4190 * config/s390/s390.c (s390_emit_compare_and_swap): Update for
4191 atomic_compare_and_swapsi_internal name change.
4192 (s390_expand_insv): Try RISBG last, not requiring operands in
4193 registers but forcing them there. Try a limited form of ICM.
4194 (s390_two_part_insv): New.
4195 (s390_expand_cs_hqi): Use it. Update for atomic optabs.
4196 * config/s390/s390.md (UNSPEC_MOVA): New.
4197 (TDSI): Remove mode iterator.
4198 (DGPR, DINT, TDI): New mode iterators.
4199 (td): New mode attribute.
4200 (mem_signal_fence): New.
4201 (mem_thread_fence): Rename from memory_barrier; update for model arg.
4202 (mem_thread_fence_1): Rename from *memory_barrier.
4203 (atomic_load<DINT>, atomic_store<DINT>): New expanders.
4204 (atomic_loaddi_1, atomic_loadti_1): New.
4205 (atomic_storedi_1, atomic_storeti_1): New.
4206 (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
4207 (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
4208 (atomic_compare_and_swap<DGPR>_internal): New.
4209 (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
4210 (*atomic_compare_and_swap<TDI>_1): New.
4211 (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
4212 (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
4213 (atomic_fetch_<ATOMIC_Z196><GPR>): New.
4214 (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
4215 (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
4216 (sync_new_<ATOMIC><HQI>): Remove.
4217 (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
4218 (atomic_<ATOMIC>_fetch<HQI>): New.
4219 (sync_lock_test_and_set<HQI>): Remove.
4220 (atomic_exchange<HQI>): New.
4222 2012-08-07 Paul Brook <paul@codesourcery.com>
4223 Sandra Loosemore <sandra@codesourcery.com>
4225 * except.c (switch_to_exception_section): Place tables for
4226 DECL_ONE_ONLY functions in comdat groups.
4228 2012-08-07 Richard Guenther <rguenther@suse.de>
4230 * tree-flow.h (copy_ssa_name_fn): New function.
4231 (duplicate_ssa_name_fn): Likewise.
4232 * tree-flow-inline.h (copy_ssa_name): New function.
4233 (duplicate_ssa_name): Likewise.
4234 * tree-ssanames.c (copy_ssa_name_fn): New function.
4235 (duplicate_ssa_name): Rename to ...
4236 (duplicate_ssa_name_fn): ... this and adjust.
4237 * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
4238 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
4240 (slpeel_update_phi_nodes_for_guard2): Likewise.
4241 (slpeel_tree_peel_loop_to_edge): Likewise.
4242 (vect_loop_versioning): Likewise.
4243 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
4244 (create_parallel_loop): Likewise.
4245 * ipa-split.c (split_function): Likewise.
4246 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
4247 (vect_create_epilog_for_reduction): Likewise.
4248 * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
4249 (vect_setup_realignment): Likewise.
4250 * tree-vect-stmts.c (vectorizable_load): Likewise.
4251 * tree-switch-conversion.c (build_one_array): Likewise.
4252 (gen_def_assigns): Likewise.
4253 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
4254 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
4255 create_zero_dim_array with the SSA name.
4256 (rewrite_phi_out_of_ssa): Likewise.
4257 (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name.
4259 2012-08-07 Richard Guenther <rguenther@suse.de>
4261 * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
4262 bit of the old name when we clear the slot.
4263 * tree-ssa-live.c (remove_unused_locals): Release any default
4264 def associated with an unused var.
4265 * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
4267 2012-08-07 Richard Guenther <rguenther@suse.de>
4269 * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
4270 we rewrite into SSA form.
4271 (rewrite_enter_block): Adjust.
4272 * gimple-iterator.c (gsi_replace): Also allow replacement with
4273 a stmt without a lhs.
4274 * tree-ssa-live.c (remove_unused_locals): Remove code handling
4275 clobbers of SSA names.
4276 * tree-nested.c (convert_local_reference_stmt): Remove clobbers
4277 for variables we access through the local chain.
4278 * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
4279 clobber full decls only.
4281 2012-08-07 Richard Guenther <rguenther@suse.de>
4283 * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
4284 * tree-phinodes.c (make_phi_node): Allow a NULL var.
4285 * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
4286 * tree-complex.c (update_phi_components): Likewise.
4287 * tree-ssa-loop-manip.c (create_iv): Likewise.
4288 (add_exit_phis_edge): Likewise.
4289 (split_loop_exit_edge): Likewise.
4290 (tree_transform_and_unroll_loop): Likewise.
4291 * value-prof.c (gimple_ic): Likewise.
4292 (gimple_stringop_fixed_value): Likewise.
4293 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
4294 * omp-low.c (expand_parallel_call): Likewise.
4295 (expand_omp_for_static_chunk): Likewise.
4296 (expand_omp_atomic_pipeline): Likewise.
4297 * tree-parloops.c (create_phi_for_local_result): Likewise.
4298 (transform_to_exit_first_loop): Likewise.
4299 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
4300 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
4301 * tree-predcom.c (initialize_root_vars): Likewise.
4302 (initialize_root_vars_lm): Likewise.
4303 * sese.c (sese_add_exit_phis_edge): Likewise.
4304 * gimple-streamer-in.c (input_phi): Likewise.
4305 * tree-inline.c (copy_phis_for_bb): Likewise.
4306 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4307 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
4308 (gimple_duplicate_bb): Likewise.
4310 2012-08-07 Nick Clifton <nickc@redhat.com>
4312 * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
4313 stack usage if requested.
4315 2012-08-06 Cary Coutant <ccoutant@google.com>
4317 * cgraphunit.c (assemble_thunk): Add source line info.
4318 * final.c (final): Check for non-null cfg pointer.
4320 2012-08-06 Sandra Loosemore <sandra@codesourcery.com>
4321 Maxim Kuvyrkov <maxim@codesourcery.com>
4322 Julian Brown <julian@codesourcery.com>
4324 * config/mips/24k.md (r24k_unknown_store): Delete special handling
4326 (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
4327 (r24k_int_cop, r24k_int_multi)
4328 (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
4329 (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
4330 instead of store_data_bypass_p.
4331 * config/mips/74k.md (r74k_int_store): Delete special handling for
4333 (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
4334 Use mips_store_data_bypass_p instead of store_data_bypass_p.
4336 2012-08-06 Marc Glisse <marc.glisse@inria.fr>
4338 PR tree-optimization/51938
4339 PR tree-optimization/52005
4340 * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
4341 inverted conditions.
4342 (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
4343 (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
4346 2012-08-06 Olivier Hainque <hainque@adacore.com>
4348 * tree-emutls.c (new_emutls_decl): When a var_section is requested by
4349 the target, attach the new decl to that, not to the template section.
4351 2012-08-06 Tom de Vries <tom@codesourcery.com>
4353 * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
4356 2012-08-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4358 * doc/invoke.texi: Document AMD btver2.
4359 * doc/extend.texi: Document AMD btver1 and btver2.
4361 2012-08-04 Sandra Loosemore <sandra@codesourcery.com>
4362 Richard Sandiford <rdsandiford@googlemail.com>
4364 * config/mips/mips.c (mips_option_override): Check -fpic
4365 for compatibility with -mabicalls and ABI.
4367 2012-08-04 Catherine Moore <clm@codesourcery.com>
4368 Sandra Loosemore <sandra@codesourcery.com>
4370 * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
4371 (ir_xlr_alu): Remove clz.
4372 * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
4374 2012-08-04 Richard Earnshaw <rearnsha@arm.com>
4376 * arm.c (arm_gen_constant): Use SImode when preparing operands for
4379 2012-08-04 Uros Bizjak <ubizjak@gmail.com>
4381 * config/i386/i386.h (QI_REGNO_P): New define.
4382 (ANY_QI_REGNO_P): Ditto.
4383 (GENERAL_REGNO_P): Use IN_RANGE macro.
4384 (QI_REG_P): Use QI_REGNO_P.
4385 (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
4386 (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
4387 * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
4388 (x86_extended_QIreg_mentioned_p): Ditto. Also check if
4389 register is a general register.
4391 2012-08-03 Uros Bizjak <ubizjak@gmail.com>
4393 * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
4394 incdec_operand predicate to return INC or DEC insn mnemonic.
4395 Add %K operand modifier.
4396 (atomic_add<mode>): Use incdec_operand predicate to
4397 return INC or DEC insn mnemonic.
4398 (atomic_dec<mode>): Ditto.
4400 2012-08-03 Michael Matz <matz@suse.de>
4402 PR tree-optimization/54146
4403 * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
4404 (add_scope_conflicts): Iterate in RPO order.
4405 (add_stack_protection_conflicts): Iterate over the other triangle.
4406 (fini_vars_expansion): Clear stack_vars_sorted.
4408 2012-08-03 Marc Glisse <marc.glisse@inria.fr>
4410 PR tree-optimization/30318
4411 * double-int.c (mul_double_wide_with_sign): New function.
4412 (mul_double_with_sign): Call the new function.
4413 * double-int.h (mul_double_wide_with_sign): Declare the new function.
4414 * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
4415 Handle integer types that wrap on overflow.
4416 (quad_int_cmp): New helper function.
4417 (quad_int_pair_sort): Likewise.
4419 2012-08-03 Richard Guenther <rguenther@suse.de>
4421 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
4422 is_gimple_reg on the SSA name, not its variable.
4423 (vect_update_ivs_after_vectorizer): Likewise.
4424 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
4425 * tree-if-conv.c (if_convertible_phi_p): Likewise.
4426 (predicate_scalar_phi): Likewise.
4427 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
4428 (vect_analyze_scalar_cycles_1): Likewise.
4429 * tree-ssa-live.c (register_ssa_partition_check): Likewise.
4430 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
4431 * tree-ssa-reassoc.c (phi_rank): Likewise.
4432 * tree-parloops.c (separate_decls_in_region_name): Use
4433 replace_ssa_name_symbol.
4434 * tree-predcom.c (base_names_in_chain_on): Likewise.
4435 * matrix-reorg.c (update_type_size): Query the type of the SSA name,
4437 * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
4438 (create_mul_imm_cand): Likewise.
4439 (create_add_ssa_cand): Likewise.
4440 (create_add_imm_cand): Likewise.
4441 (slsr_process_add): Likewise.
4442 * tree-inline.c (remap_ssa_name): Do not set the type of the
4444 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
4445 Check for default def first.
4447 2012-08-04 Steven Bosscher <steven@gcc.gnu.org>
4449 * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
4451 * sched-vis.c (print_pattern): Handle SEQUENCE also.
4453 2012-08-02 Richard Henderson <rth@redhat.com>
4457 * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
4458 * cfgexpand.c (gimple_expand_cfg): Initialise it.
4459 * explow.c (allocate_dynamic_stack_space): Set it. Simplify
4460 alignment requirements given the known alignment of dynamic_offset.
4461 * function.c (instantiate_virtual_regs): Align dtnamic_offset.
4463 2012-08-02 Kenneth Zadeck <zadeck@naturalbridge.com>
4465 * cfgexpand.c (expand_debug_locations): Encapsulate test for
4466 CONST_DOUBLE in macro.
4467 * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
4468 * cprop.c (implicit_set_cond_p): Ditto.
4469 * cselib.c (rtx_equal_for_cselib_1): Ditto.
4470 * expmed.c (expand_mult): Ditto.
4471 * expr.c (convert_modes): Ditto.
4472 * ira-costs.c (record_reg_classes): Ditto.
4473 * ira-lives.c (single_reg_class): Ditto.
4474 * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
4475 * print-rtl.c (print_rtx): Ditto.
4476 * recog.c (simplify_while_replacing, const_double_operand)
4477 (asm_operand_ok, constrain_operands): Ditto.
4478 * reg-stack.c (subst_stack_regs_pat): Ditto.
4479 * reload.c (find_reloads, find_equiv_reg): Ditto.
4480 * rtlanal.c (replace_rtx): Remove test.
4481 * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
4482 test for CONST_DOUBLE in macro.
4483 * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
4484 (simplify_unary_operation_1, simplify_const_unary_operation)
4485 (simplify_binary_operation_1, simplify_const_binary_operation)
4486 (simplify_relational_operation_1)
4487 (simplify_const_relational_operations)
4488 (implify_subreg): Ditto.
4489 * varasm.c (output_constant_pool_2): Ditto.
4490 * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
4491 * rtl.def (CONST_DOUBLE): Updated comments.
4493 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
4496 * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
4497 * config/mips/mips.c (mips_strip_unspec_address): Make extern.
4498 (mips16_rewrite_pool_constant): Make a copy of the pool constant
4499 before adding to a PC-relative table.
4500 (mips16_lay_out_constants): Add a SPLIT_P parameter.
4501 (mips16_load_branch_target, mips16_split_long_branches): New functions.
4502 (mips_reorg): Update call to mips16_lay_out_constants.
4503 Call mips16_split_long_branches.
4504 * config/mips/predicates.md (pc_or_label_operand): Delete.
4505 * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
4506 Move the extended_mips16 handling further down.
4507 (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
4508 with explicit label_ref and pc. Follow the usual operand numbering.
4509 (*branch_equality<mode>_mips16_inverted): New pattern.
4510 (*jump_mips16): Add length attribute.
4511 (indirect_jump_and_restore_<mode>): New pattern.
4512 (consttable_int): Call mips_strip_unspec_address on the operand.
4514 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
4516 * recog.c (split_insn): Copy the original SET_SRC before using
4519 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
4521 * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
4523 2012-08-02 Marc Glisse <marc.glisse@inria.fr>
4525 PR tree-optimization/53805
4526 * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
4527 UNORDERED_EXPR even for trapping floating point.
4529 2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
4533 * ipa-inline-analysis.c (inline_free_summary): Return if
4534 inline_edge_summary_vec is NULL.
4536 * ipa-split.c (execute_split_functions): Check if a function
4537 is inlinable only if inline_edge_summary_vec != NULL.
4539 * ipa.c (symtab_remove_unreachable_nodes): Restore
4540 cgraph_propagate_frequency call when something was changed.
4541 (free_inline_summary): New function.
4542 (pass_ipa_free_inline_summary): New pass.
4544 * passes.c (init_optimization_passes): Add
4545 pass_ipa_free_inline_summary before pass_ipa_tree_profile.
4547 * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
4549 * tree-pass.h (pass_ipa_free_inline_summary): New.
4551 2012-08-02 Richard Earnshaw <rearnsha@arm.com>
4553 * arm.c (arm_gen_constant): Use UBFX for some AND operations when
4556 2012-08-02 Richard Guenther <rguenther@suse.de>
4558 * tree-into-ssa.c (struct common_info_d): New struct.
4559 (struct var_info_d, struct ssa_name_info): Use it.
4560 (get_ssa_name_ann): Adjust.
4561 (get_phi_state, set_phi_state): Remove.
4562 (get_common_info): New function.
4563 (get_current_def, set_current_def): Adjust.
4564 (get_def_blocks_for): Take a common info as param.
4565 (set_def_block): Call get_common_info once.
4566 (set_livein_block): Likewise.
4567 (find_def_blocks_for): Adjust.
4568 (insert_phi_nodes): Likewise.
4569 (register_new_def): Call get_common_info once.
4570 (get_reaching_def): Likewise.
4571 (rewrite_debug_stmt_uses): Likewise.
4572 (rewrite_leave_block): Likewise.
4573 (dump_currdefs): Likewise.
4574 (debug_var_infos_r): Adjust.
4575 (register_new_update_single): Call get_common_info once.
4576 (maybe_replace_use_in_debug_stmt): Likewise.
4577 (rewrite_update_leave_block): Likewise.
4578 (mark_use_interesting): Adjust.
4579 (create_new_def_for): Likewise.
4580 (update_ssa): Likewise.
4582 2012-08-02 Michael Matz <matz@suse.de>
4584 * tree-ssa-live.c (set_is_used): Return a bool.
4585 (mark_all_vars_used): Don't take data argument.
4586 (mark_all_vars_used_1): Adjust calls to above, merge handling
4587 of local and global vars.
4588 (remove_unused_scope_block_p): Don't take global_unused_vars,
4589 merge handling of local and global vars.
4590 (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
4591 use is_used_p for local and global vars.
4593 2012-08-02 Richard Guenther <rguenther@suse.de>
4595 * tree-flow.h (make_rename_temp): Remove.
4596 * tree-dfa.c (make_rename_temp): Likewise.
4597 * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
4598 instead of make_rename_temp.
4599 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
4600 expand_omp_atomic_pipeline): Likewise.
4601 * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
4602 build_tm_store, expand_call_tm, expand_transaction,
4603 ipa_tm_insert_gettmclone_call): Likewise.
4604 * tree-complex.c (expand_complex_div_wide): Likewise.
4605 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
4607 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
4609 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
4610 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
4611 gimple_mod_subtract): Likewise.
4613 2012-08-02 Richard Guenther <rguenther@suse.de>
4615 * tree-flow.h (set_default_def): Rename to ...
4616 (set_ssa_default_def): ... this. Take a struct function argument.
4617 (gimple_default_def): Rename to ...
4618 (ssa_default_def): ... this.
4619 (get_or_create_ssa_default_def): New function.
4620 * tree-dfa.c: Likewise.
4621 (dump_variable): Adjust.
4622 * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
4623 for used parameters.
4624 * ipa-split.c (consider_split): Adjust, avoid repeated default-def
4626 (split_function): Likewise.
4627 * lto-streamer-in.c (input_ssa_names): Adjust.
4628 * omp-low.c (expand_omp_taskreg): Likewise.
4629 * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
4630 * tree-complex.c (init_parameter_lattice_values): Adjust.
4631 (get_component_ssa_name): Likewise.
4632 (update_parameter_components): Likewise.
4633 * tree-inline.c (remap_ssa_name): Likewise.
4634 (setup_one_parameter): Likewise.
4635 (initialize_inlined_parameters): Likewise.
4636 (declare_return_variable): Likewise.
4637 (expand_call_inline): Likewise.
4638 (tree_function_versioning): Likewise.
4639 * tree-into-ssa.c (get_default_def_for): Remove.
4640 (get_reaching_def): Use get_or_create_ssa_default_def instead.
4641 * tree-predcom.c (replace_ref_with): Adjust.
4642 * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
4643 (is_unused_scalar_param): Likewise.
4644 (ptr_parm_has_direct_uses): Likewise.
4645 (sra_ipa_reset_debug_stmts): Likewise.
4646 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
4647 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
4648 * tree-ssa-live.c (verify_live_on_entry): Likewise.
4649 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
4650 avoid repeated default def lookups.
4651 * tree-ssa-sccvn.c (run_scc_vn): Likewise.
4652 * tree-tailcall.c (arg_needs_copy_p): Adjust.
4653 (tree_optimize_tail_calls_1): Likewise.
4655 2012-08-02 Richard Guenther <rguenther@suse.de>
4657 PR tree-optimization/50672
4659 2012-08-01 Richard Guenther <rguenther@suse.de>
4661 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
4662 (replace_block_by): Adjust.
4664 2012-08-02 Richard Guenther <rguenther@suse.de>
4666 * tree-dfa.c (referenced_var_lookup): Remove.
4667 (find_referenced_vars): Remove.
4668 (pass_referenced_vars): Likewise.
4669 (make_rename_temp): Do not add referenced vars.
4670 (dump_referenced_vars): Remove.
4671 (debug_referenced_vars): Likewise.
4672 (dump_dfa_stats): Do not dump referenced var stats.
4673 (find_vars_r): Remove.
4674 (find_referenced_vars_in): Likewise.
4675 (referenced_var_check_and_insert): Likewise.
4676 (add_referenced_var_1): Likewise.
4677 (remove_referenced_var): Likewise.
4678 * tree-flow.h (referenced_var_lookup): Likewise.
4679 (struct gimple_df): Remove referenced_vars member.
4680 (typedef referenced_var_iterator): Remove.
4681 (FOR_EACH_REFERENCED_VAR): Likewise.
4682 (num_referenced_vars): Likewise.
4683 (debug_referenced_vars, dump_referenced_vars): Likewise.
4684 (add_referenced_var_1, add_referenced_var): Likewise.
4685 (remove_referenced_var): Likewise.
4686 (find_referenced_vars_in): Likewise.
4687 * tree-flow-inline.h (gimple_referenced_vars): Remove.
4688 (first_referenced_var): Likewise.
4689 (end_referenced_vars_p): Likewise.
4690 (next_referenced_var): Likewise.
4691 * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
4692 * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
4694 * tree-into-ssa.c (dump_decl_set): Likewise.
4695 (pass_build_ssa): Do not require PROP_referenced_vars.
4696 * tree-ssa.c (target_for_debug_bind): Virtual operands are
4697 not suitable, but all register type vars are.
4698 (init_tree_ssa): Do not allocate referenced vars.
4699 (delete_tree_ssa): Do not free referenced vars.
4700 * cgraphunit.c (init_lowered_empty_function): Do not set
4701 PROP_referenced_vars.
4702 (assemble_thunk): Do not add referenced vars.
4703 * gimple-fold.c (canonicalize_constructor_val): Likewise.
4704 (gimplify_and_update_call_from_tree): Likewise.
4705 * gimple-streamer-in.c (input_bb): Likewise.
4706 * passes.c (init_optimization_passes): Do not run
4707 pass_referenced_vars.
4708 (dump_properties): Do not dump PROP_referenced_vars.
4709 * tree-inline.c (remap_decl): Do not add referenced vars.
4710 (remap_gimple_op_r): Likewise.
4711 (copy_tree_body_r): Likewise.
4712 (copy_bb): Likewise.
4713 (setup_one_parameter): Likewise.
4714 (declare_return_variable): Likewise.
4715 (copy_decl_for_dup_finish): Likewise.
4716 (copy_arguments_for_versioning): Likewise.
4717 (tree_function_versioning): Likewise.
4718 * tree-pass.h (PROP_referenced_vars): Remove.
4719 (pass_referenced_vars): Likewise.
4720 * tree-profile.c (gimple_gen_edge_profiler): Do not add
4722 (gimple_gen_interval_profiler): Likewise.
4723 (gimple_gen_pow2_profiler): Likewise.
4724 (gimple_gen_one_value_profiler): Likewise.
4725 (gimple_gen_ic_profiler): Likewise.
4726 (gimple_gen_average_profiler): Likewise.
4727 (gimple_gen_ior_profiler): Likewise.
4728 * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
4729 * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
4730 (move_stmt_op): Likewise.
4731 * tree-ssa-operands.c (create_vop_var): Likewise.
4732 * gimple-low.c (record_vars_into): Likewise.
4733 * gimplify.c (gimple_regimplify_operands): Likewise.
4734 (force_gimple_operand_1): Likewise.
4735 * omp-low.c (expand_omp_for_generic): Likewise.
4736 (expand_omp_for_static_chunk): Likewise.
4737 (expand_omp_atomic_pipeline): Likewise.
4738 * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
4739 (translate_clast_assignment): Likewise.
4740 * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
4741 (handle_scalar_deps_crossing_scop_limits): Likewise.
4742 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
4743 * ipa-split.c (split_function): Likewise.
4744 * matrix-reorg.c (transform_access_sites): Likewise.
4745 * trans-mem.c (tm_log_add): Likewise.
4746 (ipa_tm_insert_gettmclone_call): Likewise.
4747 * tree-complex.c (create_one_component_var): Likewise.
4748 * tree-if-conv.c (ifc_temp_var): Likewise.
4749 * tree-parloops.c (take_address_of): Likewise.
4750 (initialize_reductions): Likewise.
4751 (separate_decls_in_region_name): Likewise.
4752 (create_call_for_reduction_1): Likewise.
4753 (separate_decls_in_region): Likewise.
4754 * tree-predcom.c (predcom_tmp_var): Likewise.
4755 (reassociate_to_the_same_stmt): Likewise.
4756 * tree-sra.c (build_ref_for_offset): Likewise.
4757 (create_access_replacement): Likewise.
4758 (get_replaced_param_substitute): Likewise.
4759 (sra_ipa_reset_debug_stmts): Likewise.
4760 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
4761 (rewrite_bittest): Likewise.
4762 * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
4763 * tree-ssa-loop-manip.c (create_iv): Likewise.
4764 (tree_transform_and_unroll_loop): Likewise.
4765 * tree-ssa-math-opts.c (powi_as_mults): Likewise.
4766 (build_and_insert_call): Likewise.
4767 (gimple_expand_builtin_cabs): Likewise.
4768 (execute_optimize_bswap): Likewise.
4769 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
4770 (abs_replacement): Likewise.
4771 (cond_store_replacement): Likewise.
4772 (cond_if_else_store_replacement_1): Likewise.
4773 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4774 * tree-ssa-pre.c (get_representative_for): Likewise.
4775 (create_expression_by_pieces): Likewise.
4776 (insert_into_preds_of_block): Likewise.
4777 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
4778 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
4779 (eliminate_redundant_comparison): Likewise.
4780 (rewrite_expr_tree_parallel): Likewise.
4781 (get_reassoc_pow_ssa_name): Likewise.
4782 * tree-ssa-strlen.c (get_string_length): Likewise.
4783 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
4784 (build_arrays): Likewise.
4785 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
4786 (create_tailcall_accumulator): Likewise.
4787 * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
4788 (vect_create_addr_base_for_vector_ref): Likewise.
4789 (vect_permute_store_chain): Likewise.
4790 (vect_permute_load_chain): Likewise.
4791 * tree-vect-generic.c (expand_vector_divmod): Likewise.
4792 * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
4793 (vect_build_loop_niters): Likewise.
4794 (vect_generate_tmps_on_preheader): Likewise.
4795 (vect_update_ivs_after_vectorizer): Likewise.
4796 (vect_gen_niters_for_prolog_loop): Likewise.
4797 (vect_do_peeling_for_alignment): Likewise.
4798 (vect_create_cond_for_align_checks): Likewise.
4799 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
4800 (vect_handle_widen_op_by_const): Likewise.
4801 (vect_operation_fits_smaller_type): Likewise.
4802 (vect_recog_over_widening_pattern): Likewise.
4803 * tree-vect-stmts.c (vect_init_vector): Likewise.
4805 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
4808 * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
4810 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
4813 * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
4814 falling back to copy_rtx on non-autoinc machines.
4815 (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
4817 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
4820 * valtrack.h, valtrack.c: New.
4821 * Makefile.in (VALTRACK_H): New.
4822 (OBJS): Add valtrack.o.
4824 (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
4825 * combine.c: Include valtrack.h.
4826 (make_compound_operation): Publish.
4827 (cleanup_auto_inc_dec): Move to valtrack.c.
4828 (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
4829 (propagate_for_debug): Likewise. Add this_basic_block parameter.
4831 * cselib.c: Include valtrack.h.
4833 * df-problems.c: Likewise.
4834 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
4835 (dead_debug_finish, dead_debug_add): Likewise.
4836 (dead_debug_insert_temp): Likewise.
4837 * df.h (struct dead_debug_use): Move to valtrack.h.
4838 (struct dead_debug, enum debug_temp_where): Likewise.
4839 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
4840 (dead_debug_finish, dead_debug_add): Likewise.
4841 (dead_debug_insert_temp): Likewise.
4842 * rtl.h (make_compound_operation): Declare.
4844 2012-08-01 Catherine Moore <clm@codesourcery.com>
4845 Sandra Loosemore <sandra@codesourcery.com>
4847 * config/mips/mips-cpus.def (34kn): New.
4848 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
4849 (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
4850 * config/mips/mips-tables.opt: Regenerate.
4851 * doc/invoke.texi (MIPS Options): Document -march=34kn.
4853 2012-08-01 Richard Henderson <rth@redhat.com>
4855 * expmed.h (NUM_MODE_PARTIAL_INT): New.
4856 (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
4857 (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
4858 (struct expmed_op_costs): Likewise.
4859 (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
4860 (expmed_mode_index): New.
4861 (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
4862 (convert_cost_ptr): Likewise.
4863 * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
4864 (init_expmed_one_conv): Split out from ...
4865 (init_expmed_one_mode): ... here. Iterate conversions over
4866 partial integer modes too.
4867 (init_expmed): Iterate over partial integer modes too.
4869 2012-08-01 Richard Henderson <rth@redhat.com>
4871 * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
4872 (m32c_init_libfuncs): Remove.
4873 * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
4874 (cstore<QHPSI>4): New expander.
4876 2012-08-01 Richard Guenther <rguenther@suse.de>
4878 * tree-flow-inline.h (referenced_var): Remove.
4879 * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
4881 * tree-sra.c (candidates): New global hashtable.
4882 (candidate): New function.
4883 (sra_initialize): Initialize candidates.
4884 (sra_deinitialize): Free candidates.
4885 (disqualify_candidate): Remove candidate from candidates.
4886 (maybe_add_sra_candidate): New function.
4887 (find_var_candidates): Walk over all local decls and parameters,
4888 add candidates to candidates hashtable.
4889 (find_param_candidates): Add candidates to candidates hashtable.
4890 (analyze_all_variable_accesses): Use candidate instead of
4893 2012-08-01 Tom de Vries <tom@codesourcery.com>
4895 * tree-vrp.c (find_case_label_ranges): New function.
4896 (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
4897 find_case_label_ranges instead of find_case_label_range. Handle second
4900 2012-08-01 Michael Matz <matz@suse.de>
4902 * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
4903 * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
4904 (dump_dfa_stats): Don't dump stats about var anns.
4905 (collect_dfa_stats): Don't collect them.
4906 (add_referenced_var_1): Don't set var annotation pointers.
4907 (remove_referenced_var): Ditto, and only remove it it's in the
4910 * tree-flow-inline.h (var_ann): Remove.
4911 * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
4913 * tree-inline.c (remapped_type): Remove.
4914 (can_be_nonlocal): Most variable will be considered live here,
4915 return false earlier.
4916 (remap_decls): Don't call var_ann, all variables will be considered
4918 (copy_debug_stmt): Ditto, and use is_global_var.
4920 * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
4921 determine if a variable was referred to, not var_ann.
4922 * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
4923 (remove_unused_locals): Ditto.
4924 * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
4925 * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
4926 * tree.c (copy_node_stat): Don't clear var ann pointer.
4927 * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
4929 (DECL_VAR_ANN_PTR): Remove.
4931 2012-08-01 Michael Matz <matz@suse.de>
4933 * tree-flow.h (struct var_ann_d): Rename used member.
4934 (set_is_used): Don't declare.
4935 * tree-flow-inline.h (clear_is_used): Remove.
4936 (set_is_used, is_used_p): Move to ...
4937 * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
4939 (usedvars): New bitmap.
4940 (dump_scope_block): Don't dump unusedness.
4941 (remove_unused_locals): Allocate and free usedvars.
4942 * tree-nrv.c (tree_nrv): Don't clear used flags here.
4944 2012-08-01 Michael Matz <matz@suse.de>
4946 * tree-flow.h (struct var_ann_d): Remove base_var_processed and
4948 * tree-ssa-live.h (struct _var_map): Remove basevars member.
4949 (VAR_ANN_BASE_INDEX): Remove.
4950 * tree-ssa-live.c (var_map_base_init): Use a hash table instead
4951 of var annotation to compress index space. Don't deal with above
4953 (var_map_base_fini): Don't free basevars.
4954 (init_var_map): Don't clear basevars.
4956 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
4958 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
4959 base_name to base_expr.
4960 (struct cand_chain_d): Likewise.
4961 (base_cand_hash): Likewise.
4962 (base_cand_eq): Likewise.
4963 (record_potential_basis): Likewise.
4964 (alloc_cand_and_find_basis): Likewise.
4965 (create_mul_ssa_cand): Likewise.
4966 (create_mul_imm_cand): Likewise.
4967 (create_add_ssa_cand): Likewise.
4968 (create_add_imm_cand): Likewise.
4969 (slsr_process_cast): Likewise.
4970 (slsr_process_copy): Likewise.
4971 (dump_candidate): Likewise.
4972 (base_cand_dump_callback): Likewise.
4973 (unconditional_cands_with_known_stride_p): Likewise.
4974 (cand_increment): Likewise.
4976 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
4978 PR tree-optimization/46556
4979 * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
4980 (base_cand_map): Change to hash table.
4981 (base_cand_hash): New function.
4982 (base_cand_free): Likewise.
4983 (base_cand_eq): Likewise.
4984 (lookup_cand): Change base_cand_map to hash table.
4985 (find_basis_for_candidate): Likewise.
4986 (base_cand_from_table): Exclude CAND_REF.
4987 (restructure_reference): New function.
4988 (slsr_process_ref): Likewise.
4989 (find_candidates_in_block): Call slsr_process_ref.
4990 (dump_candidate): Handle CAND_REF.
4991 (base_cand_dump_callback): New function.
4992 (dump_cand_chains): Change base_cand_map to hash table.
4993 (replace_ref): New function.
4994 (replace_refs): Likewise.
4995 (analyze_candidates_and_replace): Call replace_refs.
4996 (execute_strength_reduction): Change base_cand_map to hash table.
4998 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
5000 * config/i386/i386.c (ix86_address_subreg_operand): Reject
5002 (ix86_print_operand_address): Assert that parts.base and parts.index
5003 are non-NULL after call to simplify_subreg.
5005 2012-08-01 Richard Guenther <rguenther@suse.de>
5007 * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
5009 2012-08-01 Richard Guenther <rguenther@suse.de>
5011 * graphite-clast-to-gimple.c (translate_clast_user): Rename
5013 * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
5015 * tree-call-cdce.c (tree_call_cdce): Use
5016 mark_virtual_operands_for_renaming.
5017 * tree-eh.c (sink_clobbers): Simplify.
5018 * tree-flow.h (mark_sym_for_renaming): Remove.
5019 (mark_virtual_operands_for_renaming): New function.
5020 * tree-if-conv.c (tree_if_conversion): Use
5021 mark_virtual_operands_for_renaming.
5022 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
5023 * tree-into-ssa.c (mark_sym_for_renaming): Remove.
5024 (mark_virtual_operands_for_renaming): New function.
5025 * tree-loop-distribution.c (tree_loop_distribution): Use
5026 mark_virtual_operands_for_renaming.
5027 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
5028 update stmts, use mark_virtual_operands_for_renaming.
5029 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
5030 (replace_block_by): Adjust.
5031 (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
5032 * tree-tailcall.c (tree_optimize_tail_calls_1): Use
5033 mark_virtual_operands_for_renaming.
5034 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
5035 * tree-vectorizer.c (vectorize_loops): Likewise.
5037 2012-08-01 Richard Guenther <rguenther@suse.de>
5039 * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
5040 add ssa_renaming_needed and rename_vops flags.
5041 (SYMS_TO_RENAME): Remove.
5042 (symbol_marked_for_renaming): Likewise.
5043 (mark_virtual_ops_for_renaming): Likewise.
5044 * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
5046 (mark_for_renaming, marked_for_renaming): New functions.
5047 (symbol_marked_for_renaming): Remove.
5048 (dump_currdefs): Adjust.
5049 (maybe_replace_use): Likewise.
5050 (maybe_replace_use_in_debug_stmt): Likewise.
5051 (maybe_register_def): Likewise.
5052 (rewrite_update_phi_arguments): Likewise.
5053 (rewrite_update_enter_block): Likewise.
5054 (fini_ssa_renamer): Clear update SSA status here ...
5055 (delete_update_ssa): ... not here. Free rename set.
5056 (prepare_block_for_update): Compute which decls need renaming.
5057 (dump_update_ssa): Adjust.
5058 (mark_sym_for_renaming): Adjust update SSA status for virtuals.
5059 (need_ssa_update_p): Adjust.
5060 (insert_updated_phi_nodes_for): Likewise.
5061 (update_ssa): Likewise.
5062 * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
5063 for virtual and real operands.
5064 (finalize_ssa_uses): Likewise.
5065 * tree-ssanames.c (init_ssanames): Adjust.
5066 * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
5067 execute_update_addresses_taken): Add bitmap to keep track of which
5068 candidates are suitable for rewriting and later renaming by SSA update.
5069 * matrix-reorg.c (transform_access_sites): Do not rename all defs.
5070 * tree-dfa.c (make_rename_temp): Do not mark real operands for
5072 * cgraphunit.c (assemble_thunk): Likewise.
5073 * gimplify.c (gimple_regimplify_operands): Likewise.
5074 (force_gimple_operand_1): Likewise.
5075 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
5076 * tree-inline.c (declare_return_variable): Likewise.
5077 * tree-parloops.c (separate_decls_in_region_stmt): Do not call
5078 mark_virtual_ops_for_renaming.
5079 (create_stores_for_reduction): Likewise.
5080 (create_loads_and_stores_for_name): Likewise.
5081 * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
5082 (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
5083 (execute_load_motion): Likewise.
5084 (remove_stmt): Likewise.
5085 (execute_pred_commoning_chain): Likewise.
5086 * tree-sra.c (create_access_replacement): Do not rename real operands.
5087 (get_unrenamed_access_replacement): Unify with ...
5088 (get_access_replacement): ... this.
5089 (get_repl_default_def_ssa_name): Adjust.
5090 * tree-ssa-loop-im.c (move_computations_stmt): Manually update
5092 (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
5093 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
5095 2012-07-31 DJ Delorie <dj@redhat.com>
5097 * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
5098 extensions for TPF, unless specifically selected.
5100 2012-08-01 Alan Modra <amodra@gmail.com>
5103 * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
5104 of lo_sum offsets. Comment. Assert mode at least word size
5105 rather than bypassing powerpc64 word offset check.
5107 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
5109 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
5110 costs for vec_perm and vec_promote_demote down to more natural values.
5111 (struct _rs6000_cost_data): New data structure.
5112 (rs6000_density_test): New function.
5113 (rs6000_init_cost): Change to use rs6000_cost_data.
5114 (rs6000_add_stmt_cost): Likewise.
5115 (rs6000_finish_cost): Perform density test when vectorizing a loop.
5117 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
5119 * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling
5120 of RTX_UNARY function-like operations. Print unknown expression
5121 RTX classes as pseudo-functions.
5122 (print_pattern): Simplify return pattern printing.
5123 (dump_insn_slim): Print the value of notes as a pattern for proper
5124 printing of CFA notes.
5126 2012-07-31 Dehao Chen <dehao@google.com>
5128 * predict.c (tree_estimate_probability_driver): Normalize the
5129 loop when initializing the loop optimizer.
5131 2012-07-31 Richard Guenther <rguenther@suse.de>
5133 * tree-flow.h (struct var_ann_d): Remove need_phi_state
5134 and current_def members.
5135 * tree-into-ssa.c (struct def_blocks_d): Remove var member.
5136 (def_blocks): Remove.
5137 (struct var_info_d): New.
5138 (var_infos): New hashtable.
5139 (struct ssa_name_info): Add def_blocks member.
5140 (get_ssa_name_ann): Adjust.
5141 (get_var_info): New function.
5142 (get_phi_state, set_phi_state, get_current_def,
5143 set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
5144 (insert_phi_nodes_compare_def_blocks): Rename to ...
5145 (insert_phi_nodes_compare_var_infos): ... this and adjust.
5146 (insert_phi_nodes): Adjust.
5147 (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
5148 (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
5149 (debug_def_blocks_r): Rename to ...
5150 (debug_var_infos_r): ... this and adjust.
5151 (var_info_hash): New function.
5152 (var_info_eq): Likewise.
5153 (rewrite_blocks): Adjust.
5154 (init_ssa_renamer): Likewise.
5155 (fini_ssa_renamer): Likewise.
5156 (delete_update_ssa): Likewise.
5157 (update_ssa): Likewise.
5158 * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
5160 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
5162 PR tree-optimization/53773
5163 * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
5164 (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
5165 * tree-vect-loop.c (new_loop_vec_info): Initialize
5166 LOOP_VINFO_OPERANDS_SWAPPED field.
5167 (destroy_loop_vec_info): Restore canonical form.
5168 (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
5169 (vect_is_simple_reduction_1): Likewise.
5171 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
5173 * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
5174 start of each new line.
5175 * final.c (final_scan_insn): If the final dump is requested as
5176 slim RTL, dump slim RTL to the assembly file also.
5178 2012-07-31 Andrey Belevantsev <abel@ispras.ru>
5182 * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
5185 2011-08-04 Sergey Grechanik <mouseentity@ispras.ru>
5187 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
5188 only if producer writes to the register given by regno.
5190 2012-07-31 Nick Clifton <nickc@redhat.com>
5192 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
5193 support for reporting stack usage.
5195 * config/frv/frv.c (QUAD): Fix typo.
5196 (frv_expand_prologue): Report stack usage.
5198 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
5201 * gengtype.c (struct walk_type_data): Add have_this_obj field.
5202 (walk_type): For functions that take a this_obj argument and
5203 that process fields with a GTY((length)) argument, write the
5204 test that write_types_local_process_field will write also at the
5205 head of the loop, effectively unswitching the loop.
5206 (write_func_for_structure, write_local_func_for_structure): Clear
5207 have_this_obj before calling walk_type.
5208 (write_local_func_for_structure): Set have_this_obj before walk_type.
5209 (write_array): Set have_this_obj for output of local pointer walking
5210 functions but not for marker functions.
5211 (write_types_local_process_field): Assert have_this_obj is set.
5213 * rtl.h (simplify_using_condition): Adjust prototype using bitmap
5216 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
5219 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
5220 * targhooks.c (default_mode_dependent_address_p): Delete code
5221 for GO_IF_MODE_DEPENDENT_ADDRESS.
5222 * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
5223 * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
5224 * doc/tm.texi: Regenerate.
5225 * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
5226 * config/alpha.c (alpha_mode_dependent_address_p): ...here. New
5228 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5229 * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
5230 * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
5231 * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
5232 * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
5233 * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
5235 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5237 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
5239 * expmed.h (NUM_MODE_VECTOR_INT): Define.
5240 (struct expmed_op_cheap, struct expmed_op_costs): New structures.
5241 (struct target_expmed): Convert x_mul_highpart_cost and
5242 x_mul_widen_cost fields to be indexed by integer modes.
5243 Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
5244 of type struct expmed_op_cheap. Convert other cost fields to be
5245 of type struct_expmed_op_costs.
5246 (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
5247 indexing of respective fields.
5248 (expmed_op_cheap_ptr): New function.
5249 (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
5250 (expmed_op_cost_ptr): New function.
5251 (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
5252 shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
5253 sdiv_cost_ptr, udiv_cost_ptr): Call it.
5255 2012-07-30 Sandra Loosemore <sandra@codesourcery.com>
5256 Julian Brown <julian@codesourcery.com>
5258 * doc/invoke.texi (MIPS Options): Document -mno-float.
5259 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
5262 2012-07-30 Joseph Myers <joseph@codesourcery.com>
5264 * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
5266 2012-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5269 * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
5270 for special cases. Don't initialize coeff and is_neg.
5272 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
5273 Richard Earnshaw <rearnsha@arm.com>
5275 * target.def (vector_alignment): New target hook.
5276 * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
5277 * doc/tm.texi: Regenerate.
5278 * targhooks.c (default_vector_alignment): New function.
5279 * targhooks.h (default_vector_alignment): Add prototype.
5280 * stor-layout.c (layout_type): Use targetm.vector_alignment.
5281 * config/arm/arm.c (arm_vector_alignment): New function.
5282 (TARGET_VECTOR_ALIGNMENT): Define.
5284 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
5285 vector type alignment instead of size.
5286 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
5287 element type size directly instead of computing it from alignment.
5288 Fix variable naming and comment.
5290 2012-07-30 Kirill Yukhin <kirill.yukhin@intel.com>
5291 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5293 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
5294 (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
5295 (ix86_handle_option): Handle mrdseed option.
5296 * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
5297 (x86_64-*-*): Likewise.
5298 * config/i386/prfchwintrin.h: New header.
5299 * config/i386/cpuid.h (bit_RDSEED): New.
5300 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5302 * config/i386/i386-c.c: Define __RDSEED__ if needed.
5303 * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
5305 (ix86_option_override_internal): Handle new option.
5306 (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
5307 (ix86_builtins): Add enum entries for RDSEED* builtins.
5308 (ix86_init_mmx_sse_builtins): Define new builtins.
5309 (ix86_expand_builtin): Expand RDSEED* builtins.
5310 * config/i386/i386.h (TARGET_RDSEED): New.
5311 * config/i386/i386.md (rdseed<mode>_1): New.
5312 * config/i386/i386.opt (mrdseed): New.
5313 * config/i386/x86intrin.h: Include rdseedintrin.h.
5315 2012-07-30 Richard Guenther <rguenther@suse.de>
5317 * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
5318 (rewrite_stmt): Likewise.
5319 (rewrite_enter_block): Likewise.
5320 (pass_build_ssa): Do not update virtual SSA form during TODO.
5321 (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
5322 * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
5324 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
5327 * config/gcc/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
5330 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
5333 * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
5334 Use t_reg_operand predicate. Add split for negated case.
5335 (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
5336 * config/sh/sh.c (expand_ashiftrt): Likewise.
5338 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
5341 * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
5342 of trying to emit ashlsi3_n.
5344 2012-07-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5345 Steven Bosscher <steven@gcc.gnu.org>
5347 * gengtype.c (adjust_field_type): Diagnose duplicate "length"
5348 option applications and option being applied to arrays of atomic types.
5349 (walk_type): Allow "atomic" option on strings too.
5350 * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
5351 for the array field.
5352 * vec.h: Describe the atomic object "A" type of the macros in
5354 (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
5355 * emit-rtl.c (locations_locators_vals): use the atomic object vector.
5356 * doc/gty.texi: Clarify that GTY option "length" is only for
5357 arrays of non-atomic objects. Fix typo in the description of the
5360 2012-07-27 Uros Bizjak <ubizjak@gmail.com>
5362 * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
5363 zero-extended addresses. Return false if the address has less
5364 than two components.
5365 (ix86_split_lea_for_addr): Unconditionally convert target and
5366 all address operands to requested mode.
5367 * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
5368 Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
5370 (zero-extended add splitter): New splitter to conditionally split
5371 non-destructive adds.
5372 (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
5374 2012-07-28 Alan Modra <amodra@gmail.com>
5377 * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
5378 multi-gpr reload to cases where predicate passes. Do the same for
5379 64-bit multi-gpr reload.
5381 2012-07-27 Nathan Froyd <froydnj@gcc.gnu.org>
5383 * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
5384 smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
5385 shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
5386 sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
5387 macro definitions and re-purpose as inline functions.
5388 (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
5389 set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
5390 zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
5391 neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
5392 shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
5393 set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
5394 mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
5395 udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
5396 set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
5398 (convert_cost_ptr): New function, split out from...
5399 (set_convert_cost, convert_cost): ...here.
5400 * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
5401 * gimple-ssa-strength-reduction.c: Likewise.
5403 2012-07-20 Ryan Mansfield <rmansfield@qnx.com>
5405 * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
5406 diagnostic_initialize.
5408 2012-07-27 Oleg Endo <olegendo@gcc.gnu.org>
5411 * config/sh/sh.c (shiftcosts): Remove case where first operand
5412 is a const_int. Move COSTS_N_INSNS usage into caller ...
5413 (sh_rtx_costs) ... here. Return false when shiftcosts cannot be
5414 calculated instead of MAX_COST.
5416 2012-07-27 Richard Guenther <rguenther@suse.de>
5418 * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
5419 check whether SSA form is not up-to-date.
5420 * tree-flow.h (name_mappings_registered_p): Remove.
5421 * tree-into-ssa.c (struct repl_map_d): Remove.
5422 (repl_tbl): Likewise.
5423 (struct ssa_name_info): Add repl_set member.
5424 (update_ssa_obstack): New static global.
5425 (get_ssa_name_ann): Initialize repl_set.
5426 (clear_ssa_name_info): Assert age did not wrap.
5427 (repl_map_hash, repl_map_eq, repl_map_free): Remove.
5428 (names_replaced_by): Adjust.
5429 (add_to_repl_tbl): Likewise.
5430 (dump_tree_ssa_stats): Likewise.
5431 (init_update_ssa): Initialize update_ssa_obstack.
5432 (delete_update_ssa): Free update_ssa_obstack.
5433 (name_mappings_registered_p): Remove.
5434 (update_ssa): Adjust.
5436 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
5438 * config/rs6000/constraints.md: Delete "q" constraint.
5439 * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
5440 Delete the "q" alternative.
5441 * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
5442 * config/rs6000/rs6000.c (rs6000_debug_reg_global)
5443 (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
5444 adjust to MQ_REGNO removal.
5445 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
5447 (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order.
5448 (enum reg_class): Adjust comment. Delete MQ_REGS.
5449 (REG_CLASS_CONTENTS): Adjust.
5450 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
5451 * config/rs6000/rs6000.md: Delete MQ_REGNO.
5452 (movsi_internal1, movsi_internal1_single, movhi_internal,
5453 movqi_internal, movcc_internal1, movsf_hardfloat,
5454 movsf_softfloat): Delete the "q" alternative.
5455 (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
5456 ctr<mode>_internal6): Delete "q" constraint.
5458 2012-07-27 Richard Guenther <rguenther@suse.de>
5460 * tree-into-ssa.c (def_blocks_p): New typedef.
5461 (insert_phi_nodes_compare_def_blocks): New function.
5462 (insert_phi_nodes): Do not walk over referenced vars, instead
5463 walk over recorded def_blocks, record relevant ones and sort
5464 them to avoid repeated hashtable lookups.
5466 2012-07-27 Richard Guenther <rguenther@suse.de>
5468 * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
5469 Remove param documentation.
5470 * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
5471 PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
5472 * tree-flow.h (mark_set_for_renaming): Remove.
5473 * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
5474 (add_new_name_mapping): Remove bookkeeping code.
5475 (dump_update_ssa): Remove stats dumping code.
5476 (init_update_ssa): Remove stats allocation code.
5477 (delete_update_ssa): Remove stats freeing code.
5478 (mark_set_for_renaming): Remove.
5479 (switch_virtuals_to_full_rewrite_p): Likewise.
5480 (switch_virtuals_to_full_rewrite): Likewise.
5481 (update_ssa): Do not call switch_virtuals_to_full_rewrite.
5483 2012-07-27 Marek Polacek <polacek@redhat.com>
5485 * cgraphunit.c: Rename varpool_finalize_variable to
5486 varpool_finalize_decl in a comment.
5488 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
5490 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
5491 Delete code for -mno-power, -mpower, and -mpower2.
5492 * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
5493 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
5495 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
5496 * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
5497 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
5499 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
5500 * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
5501 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
5503 (TARGET_POWER): Delete.
5504 * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
5505 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
5507 (TARGET_POWER): Delete.
5508 * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
5509 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
5511 (TARGET_POWER): Delete.
5512 * config/rs6000/darwin.h (TARGET_POWER): Delete.
5513 * config/rs6000/driver-rs6000.c (struct asm_names): Delete
5514 support for -mpower, -mpower2, and -mno-power.
5515 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
5517 (rs6000_cpu_cpp_builtins): Likewise.
5518 * config/rs6000/rs6000-cpus.def: Likewise.
5519 * config/rs6000/rs6000-tables.opt: Regenerate.
5520 * config/rs6000/rs6000.c (POWER_MASKS): Delete.
5521 (rs6000_option_override_internal): Adjust.
5522 (rs6000_conditional_register_usage): Adjust.
5523 (rs6000_emit_move): Adjust.
5524 (rs6000_common_init_builtins): Adjust.
5525 (rs6000_init_libfuncs): Adjust.
5526 (rs6000_output_function_prologue): Adjust.
5527 (rs6000_adjust_cost): Adjust.
5528 (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
5529 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
5531 (TARGET_DEFAULT): Adjust.
5532 (PROCESSOR_POWER): Delete.
5533 (SHIFT_COUNT_TRUNCATED): Adjust.
5534 * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
5535 (extendqisi2_power): Delete.
5536 (extendqisi2_no_power): Adjust.
5537 (extendqihi2, extendqihi2_power, extendqihi2_no_power):
5539 (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
5540 (anonymous doz insn patterns): Delete.
5542 (abssi2_power): Delete.
5543 (abssi2_nopower): Adjust.
5544 (nabs_power, nabs_nopower): Likewise.
5545 (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
5546 Likewise. Delete anonymous post-reload splitter.
5547 (mulsi3_no_mq_internal1): rename to...
5548 (mulsi3_internal1): New define_insn.
5549 (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
5551 (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
5552 udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
5553 udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
5554 (mulh_call, mull_call, divss_call, divus_call, quoss_call,
5555 quous_call): Likewise.
5556 (maskir_internal1, maskir_internal2, maskir_internal3,
5557 maskir_internal4, maskir_internal5, maskir_internal6,
5558 maskir_internal7, maskir_internal8): Delete.
5559 (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
5560 (anonymous sl insn patterns): Delete.
5561 (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
5562 (lshrsi3_64): Adjust.
5563 (anonymous sr insn patterns): Delete.
5564 (anonymous rrib insn patterns): Delete.
5565 (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
5566 (anonymous sra insn patterns): Delete.
5567 (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
5568 (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
5569 fctiwz_<mode>): Adjust.
5570 (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
5571 umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
5572 smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
5573 umulsi3_highpart_no_mq): Adjust.
5574 (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
5575 (ashrdi3_no_power, ashldi3, ashldi3_internal1,
5576 lshrdi3_internal1): Adjust.
5577 (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
5578 (movti_power): Delete.
5579 (movti_string): Adjust.
5580 (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
5581 (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
5582 stmsi4_power, stmsi3_power): Delete.
5583 (anonymous movmemsi insn patterns): Adjust.
5584 (lfq_power2, stfq_power2): Delete.
5585 (eq<mode>, eq<mode>_compare): Adjust.
5586 (eqsi_power): Delete.
5588 (anonymous le, lt, ge, gt insn patterns): Delete.
5589 * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
5590 * config/rs6000/sysv4.h (TARGET_POWER): Delete.
5591 * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5592 MULTILIB_MATCHES): Adjust.
5593 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
5594 -mpower, -mno-power, -mpower2, -mno-power2 documentation.
5595 Delete -mcpu=power and -mcpu=power2 documentation.
5597 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
5599 * config/rs6000/601.md: New file.
5600 * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
5602 * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
5603 * config/rs6000/driver-rs6000.c (detect_processor_aix,
5604 struct asm_names): Likewise.
5605 * config/rs6000/rios1.md: Delete file.
5606 * config/rs6000/rios2.md: Delete file.
5607 * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
5609 * config/rs6000/rs6000-opts.h (enum processor_type): Delete
5610 PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
5611 * config/rs6000/rs6000-tables.opt: Regenerated.
5612 * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
5614 (rs6000_option_override_internal): Delete support for RIOS CPUs.
5615 (rs6000_conditional_register_usage): Adjust comment.
5616 (rs6000_issue_rate):Delete support for RIOS CPUs.
5617 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
5619 (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
5620 (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
5621 * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
5623 (include "rios1.md", include "rios2.md"): Delete.
5624 (include "601.md"): New.
5625 * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
5627 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
5629 * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
5630 rios2.md . Add 601.md .
5632 2012-07-26 Richard Henderson <rth@redhat.com>
5634 * doc/extend.texi (attribute): Document hot/cold for labels.
5635 * predict.c (tree_estimate_probability_bb): Handle hot/cold
5636 attributes on user labels.
5637 * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
5639 2012-07-26 Andrew Jenner <andrew@codesourcery.com>
5640 Sandra Loosemore <sandra@codesourcery.com>
5642 * cse.c (find_comparison_args): Check for cycles of any length.
5644 2012-07-26 Nick Clifton <nickc@redhat.com>
5646 * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
5647 (mn10300_get_live_callee_saved_regs): If requested return a count
5648 of the number of bytes in the mask.
5649 (mn10300_expand_prologue): Add argument to invocation of
5650 mn10300_get_live_callee_regs.
5651 (mn10300_expand_epilogue): Compute reg_save_bytes by calling
5652 mn10300_get_live_callee_saved_regs.
5653 (mn10300_initial_offset): Likewise.
5654 * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
5656 * config/mn10300/mn10300.md (return_ret): Add argument to
5657 invocation of mn10300_get_live_callee_saved_regs.
5659 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
5662 * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
5663 pointer difference check.
5665 2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
5667 * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
5668 (mbc_entry_eq): Likewise.
5669 (mult_costs): Likewise.
5670 (cost_tables_exist): Likewise.
5671 (initialize_costs): Likewise.
5672 (finalize_costs): Likewise.
5673 (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
5674 (add_regs_cost): Remove.
5675 (multiply_regs_cost): Likewise.
5676 (add_const_cost): Likewise.
5677 (extend_or_trunc_reg_cost): Likewise.
5678 (negate_reg_cost): Likewise.
5679 (struct mbc_entry): Likewise.
5680 (multiply_by_const_cost): Likewise.
5681 (get_address_cost): Change add_regs_cost calls to add_cost lookups;
5682 change multiply_by_const_cost to mult_by_coeff_cost.
5683 (force_expr_to_var_cost): Likewise.
5684 (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
5685 (get_computation_cost_at): Change add_regs_cost calls to add_cost
5686 lookups; change multiply_by_const_cost to mult_by_coeff_cost.
5687 (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
5688 (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
5689 * tree-ssa-address.c (expmed.h): New #include.
5690 (most_expensive_mult_to_index): Change multiply_by_const_cost to
5692 * gimple-ssa-strength-reduction.c (expmed.h): New #include.
5693 (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
5694 neg_cost, and convert_cost instead of IVOPTS interfaces.
5695 (execute_strength_reduction): Remove calls to initialize_costs and
5697 * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
5698 (init_expmed_one_mode): Initialize convert rtx_def; initialize
5699 x_convert_cost for related modes.
5700 (mult_by_coeff_cost): New function.
5701 * expmed.h (NUM_MODE_INT): New #define.
5702 (struct target_expmed): Add x_convert_cost matrix.
5703 (set_convert_cost): New inline function.
5704 (convert_cost): Likewise.
5705 (mult_by_coeff_cost): New extern decl.
5706 * tree-flow.h (initialize_costs): Remove decl.
5707 (finalize_costs): Likewise.
5708 (multiply_by_const_cost): Likewise.
5709 (add_regs_cost): Likewise.
5710 (multiply_regs_cost): Likewise.
5711 (add_const_cost): Likewise.
5712 (extend_or_trunc_reg_cost): Likewise.
5713 (negate_reg_cost): Likewise.
5714 * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
5715 (tree-ssa-address.o): Update dependencies.
5717 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
5719 * bitmap.h: Add explanation of sparse set as linked-list bitmap.
5720 * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
5721 (TEST_BIT): Make a static inline function for stronger type checking.
5722 (SET_BIT): Don't handle sbitmaps with popcount.
5723 (RESET_BIT): Likewise.
5724 (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
5725 (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
5726 * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
5727 RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
5728 (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
5729 ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
5730 * sparseset.h: Add explanation of sparse set representation.
5732 2012-07-26 Richard Guenther <rguenther@suse.de>
5734 PR tree-optimization/54098
5735 * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
5736 original range was UNDEFINED.
5738 2012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5740 * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
5743 2012-07-26 Oleg Endo <olegendo@gcc.gnu.org>
5746 * config/sh/sh.opt (mzdcbranch): New option.
5747 * doc/invoke.texi: Document it.
5748 * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
5749 instead of TARGET_HARD_SH4.
5750 * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
5751 for TARGET_HARD_SH4.
5753 2012-07-25 Oleg Endo <olegendo@gcc.gnu.org>
5756 * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
5758 (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
5759 * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
5760 from expander. Do not emit shift insn for not-SHMEDIA case.
5761 (ashlsi3_std): Replace with ...
5762 (ashlsi3_k, ashlsi3_d): ... these new insns.
5763 * config/sh/sh.c (gen_ashift): Make static. Add sanity checks.
5764 Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
5765 (gen_ashift_hi): Make static.
5766 * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
5769 2012-07-25 Bharathi Seshadri <bseshadr@cisco.com>
5770 Jim Wilson <jimwilso@cisco.com>
5772 * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
5773 TARGET_BIG_ENDIAN_DEFAULT.
5775 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
5777 * gimple-low.c (lower_try_catch): New function.
5778 (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
5779 <GIMPLE_CATCH>: Delete.
5780 <GIMPLE_EH_FILTER>: Likewise.
5782 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
5784 * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
5785 of BIT_FIELD_REF for ignored results.
5786 * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
5787 CONSTRUCTOR has vector type before using vector accessors on it.
5788 * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
5789 #2 of BIT_FIELD_REF.
5790 (gimplify_expr) <BIT_FIELD_REF>: Likewise.
5791 * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
5792 not process operand #1 and #2.
5793 (convert_local_reference_op): Likewise.
5794 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
5796 <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
5797 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
5799 (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
5800 (build6_stat): Delete.
5801 * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
5803 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
5805 PR tree-optimization/30318
5806 * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
5808 [MINUS_EXPR]: Merge with PLUS_EXPR.
5810 2012-07-25 Sandra Loosemore <sandra@codesourcery.com>
5811 Paul Brook <paul@codesourcery.com>
5814 * target.def (warn_func_return): New hook.
5815 * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
5816 * doc/tm.texi: Regenerate.
5817 * doc/sourcebuild.texi (Effective-Target Keywords): Document
5819 * ipa-pure-const.c (warn_function_noreturn): Check
5820 targetm.warn_func_return.
5821 * tree-cfg.c (execute_warn_function_return): Likewise.
5822 * config/spu/spu.c (spu_warn_func_return): New.
5823 (TARGET_WARN_FUNC_RETURN): Define.
5824 * config/rx/rx.c (rx_warn_func_return): New.
5825 (TARGET_WARN_FUNC_RETURN): Define.
5826 * config/avr/avr.c (avr_warn_func_return): New.
5827 (TARGET_WARN_FUNC_RETURN): Define.
5828 * config/arm/arm.c (arm_warn_func_return): New.
5829 (TARGET_WARN_FUNC_RETURN): Define.
5830 * config/mcore/mcore.c (mcore_warn_func_return): New.
5831 (TARGET_WARN_FUNC_RETURN): Define.
5832 (saved_warn_return_type, saved_warn_return_type_count): Remove.
5833 (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
5835 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
5837 * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
5838 function to implement assembler dialects.
5839 (output_asm_insn): Use do_assembler_dialects.
5840 (asm_fprintf): Likewise.
5842 2012-07-25 Richard Henderson <rth@redhat.com>
5845 * libfuncs.h: Don't include optabs.h.
5846 (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
5847 * optabs.c (hash_libfunc): Don't cast members to int.
5848 * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
5850 2012-07-25 Dodji Seketeli <dodji@redhat.com>
5852 * basic-block.c: Fix typo in comment.
5854 2012-07-25 Kirill Yukhin <kirill.yukhin@intel.com>
5855 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5857 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
5858 (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
5859 (ix86_handle_option): Handle mprfchw option.
5860 * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
5861 (x86_64-*-*): Likewise.
5862 * config/i386/prfchwintrin.h: New header.
5863 * config/i386/cpuid.h (bit_PRFCHW): New.
5864 (bit_BMI): Formatting fix.
5865 (bit_HLE): Likewise.
5866 (bit_RTM): Likewise.
5867 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5869 * config/i386/i386-c.c: Define __PRFCHW__ if needed.
5870 * config/i386/i386.c (ix86_target_string): Define
5871 -mprfchw option. Formatting fixes.
5872 (PTA_HLE): Formatting fix.
5874 (ix86_option_override_internal): Handle new option.
5875 (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
5876 * config/i386/i386.h (TARGET_PRFCHW): New.
5877 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
5878 * config/i386/i386.opt (mprfchw): New.
5879 * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
5880 * config/i386/x86intrin.h: Include prfchwintrin.h.
5882 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
5884 * config/i386/i386.md (stack_protect_set): Disable the pattern
5885 for Android since Android libc (bionic) does not provide random
5886 value for stack protection guard at gs:0x14. Guard value
5887 will be provided from external symbol (default implementation).
5888 (stack_protect_set_<mode>): Likewise.
5889 (stack_protect_test): Likewise.
5890 (stack_protect_test_<mode>): Likewise.
5891 * gcc/defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
5892 not have Bionic by default
5893 * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
5894 Macro OPTION_BIONIC is defined in this file and provides Bionic
5895 accessibility status
5897 2012-07-25 Steven Bosscher <steven@gcc.gnu.org>
5899 * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
5901 2012-07-25 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5904 * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
5905 (case ${target}): Add btver2.
5906 * config/i386/driver-i386.c (host_detect_local_cpu): Let
5907 -march=native recognize btver2 processors.
5908 * config/i386/i386-c.c (ix86_target_macros_internal): Add
5909 btver2 def_and_undef
5910 * config/i386/i386.c (struct processor_costs btver2_cost): New
5912 (m_BTVER2): New definition.
5913 (m_AMD_MULTIPLE): Includes m_BTVER2.
5914 (initial_ix86_tune_features): Add btver2 tune.
5915 (processor_target_table): Add btver2 entry.
5916 (static const char *const cpu_names): Add btver2 entry.
5917 (software_prefetching_beneficial_p): Add btver2.
5918 (ix86_option_override_internal): Add btver2 instruction sets.
5919 (ix86_issue_rate): Add btver2.
5920 (ix86_adjust_cost): Add btver2.
5921 * config/i386/i386.h (TARGET_BTVER2): New definition.
5922 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
5923 (enum processor_type): Add PROCESSOR_BTVER2.
5924 * config/i386/i386.md (define_attr "cpu"): Add btver2.
5926 2012-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
5928 * doc/tm.texi: Regenerate.
5929 * targhooks.c (default_init_cost): Add prologue and epilogue costs.
5930 (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
5931 (default_finish_cost): Add prologue and epilogue costs.
5932 * targhooks.h (default_add_stmt_cost): Change parameter list.
5933 (default_finish_cost): Likewise.
5934 * target.def (init_cost): Change documentation string.
5935 (add_stmt_cost): Change documentation string and parameter list.
5936 (finish_cost): Likewise.
5937 * target.h (vect_cost_model_location): New enum.
5938 * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
5939 (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
5941 (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
5942 (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
5943 (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
5944 (struct _vect_peel_extended_info): Rename stmt_cost_vec to
5946 (struct _stmt_vec_info): Remove cost substruct.
5947 (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
5948 (stmt_vinfo_set_outside_of_loop_cost): Remove.
5949 (builtin_vectorization_cost): New function.
5950 (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
5951 (add_stmt_cost): Change parameter list.
5952 (finish_cost): Likewise.
5953 (vect_model_simple_cost): Likewise.
5954 (vect_model_store_cost): Likewise.
5955 (vect_model_load_cost): Likewise.
5956 (record_stmt_cost): Likewise.
5957 (vect_get_load_cost): Likewise.
5958 (vect_get_known_peeling_cost): Likewise.
5959 * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
5960 list; call record_stmt_cost for prologue and epilogue costs.
5961 (vect_estimate_min_profitable_iters): Call add_stmt_cost for
5962 prologue and epilogue costs; remove computation of vec_outside_cost;
5963 return vec_prologue_cost and vec_epilogue_cost from finish_cost.
5964 (vect_model_reduction_cost): Revise call to add_stmt_cost for body
5965 costs; call add_stmt_cost for prologue and epilogue costs.
5966 (vect_model_induction_cost): Revise call to add_stmt_cost for body
5967 costs; call add_stmt_cost for prologue costs.
5968 * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
5969 list for function and arguments for calls to vect_get_load_cost and
5970 vect_get_store_cost.
5971 (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
5972 vect_get_data_access_cost and vect_get_known_peeling_cost; use
5973 temporary vectors prologue_cost_vec and epilogue_cost_vec for the
5974 latter call and discard their results; rename stmt_cost_vec to
5975 body_cost_vec; correct possible storage leak for body_cost_vec.
5976 (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
5978 (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
5979 body_cost_vec; add extra dummy parameter on calls to
5980 vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
5981 argument list on call to add_stmt_cost.
5982 * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
5983 rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
5984 builtin_vectorization_cost; add "where" parameter on call to
5986 (vect_model_simple_cost): Change parameter list; call record_stmt_cost
5987 for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
5988 rename stmt_cost_vec to body_cost_vec.
5989 (vect_model_promotion_demotion_cost): Add vect_body argument to call
5990 to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
5991 to stmt_vinfo_set_outside_of_loop_cost.
5992 (vect_model_store_cost): Change parameter list; call record_stmt_cost
5993 for prologue costs; add vect_body argument to call to record_stmt_cost;
5994 rename stmt_cost_vec to body_cost_vec; remove call to
5995 stmt_vinfo_set_outside_of_loop_cost.
5996 (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
5997 vect_body argument to calls to record_stmt_cost.
5998 (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
5999 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
6000 remove call to stmt_vinfo_set_outside_of_loop_cost.
6001 (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
6002 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
6003 call record_stmt_cost for prologue costs.
6004 (vectorizable_store): Change argument list for call to
6005 vect_model_store_cost.
6006 (vectorizable_load): Change argument list for call to
6007 vect_model_load_cost.
6008 (new_stmt_vec_info): Remove assignment to
6009 STMT_VINFO_OUTSIDE_OF_LOOP_COST.
6010 * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
6011 (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
6012 (spu_finish_cost): Add prologue and epilogue costs.
6013 * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
6014 (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
6015 (i386_finish_cost): Add prologue and epilogue costs.
6016 * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
6018 (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
6019 (rs6000_finish_cost): Add prologue and epilogue costs.
6020 * tree-vect-slp.c (vect_free_slp_instance): Rename
6021 SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
6022 (vect_create_new_slp_node): Remove assignment to
6023 SLP_TREE_OUTSIDE_OF_LOOP_COST.
6024 (vect_get_and_check_slp_defs): Change parameter list; change argument
6025 lists to calls to vect_model_store_cost and vect_model_simple_cost.
6026 (vect_build_slp_tree): Change parameter list; change argument lists
6027 to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
6028 recursive self-calls; remove setting of outside_cost from
6029 SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
6031 (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
6032 rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
6033 remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
6035 (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
6036 body_cost_vec; handle null ci->stmt; add vect_body argument to call
6037 to add_stmt_cost; simplify calls to targetm.vectorize.
6038 builtin_vectorization_cost; return vec_prologue_cost and
6039 vec_epilogue_cost from finish_cost.
6040 (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
6041 body_cost_vec; add vect_body argument to call to add_stmt_cost.
6043 2012-07-24 Richard Henderson <rth@redhat.com>
6045 * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
6046 * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6047 * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6048 * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6049 * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
6051 * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6052 * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
6053 (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
6054 * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6055 * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
6056 * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
6057 * doc/tm.texi: Rebuild.
6059 2012-07-24 Richard Henderson <rth@redhat.com>
6061 * optabs.def: New file.
6062 * Makefile.in (OPTABS_H): Add insn-opinit.h.
6063 (MOSTLYCLEANFILES): Likewise.
6064 (insn-opinit.o): Remove reload.h
6065 (simple_rtl_generated_c): Remove insn-opinit.c.
6066 (s-opinit): New rule.
6067 (build/genopinit.o): Add optabs.def.
6068 * genopinit.c (rtx_upname): New.
6069 (optabs): Extract to optabs.def
6070 (enum optab_tag, struct optab_def_d, optabs): New.
6071 (struct pattern_d, patterns): New.
6072 (match_pattern): Split out from ...
6073 (gen_insn): ... here. Push matches on patterns vec.
6074 (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
6075 (header_file_name, source_file_name, handle_arg): New.
6076 (open_outfile): New.
6077 (main): Sort and emit new tables. Generate lookup_handler,
6078 raw_optab_handler, swap_optab_enable.
6079 * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
6080 * optabs.c (code_to_optab_): Remove.
6081 (hash_libfunc): Update for optab name change.
6082 (eq_libfunc): Likewise.
6083 (convert_optab_libfunc): Update computation of optab member;
6084 use the new convlib_def table.
6085 (optab_libfunc): Similarly.
6086 (set_optab_libfunc, set_conv_libfunc): Likewise.
6087 (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
6088 (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
6089 (init_optabs): Don't call them; export the data to optabs.def.
6090 (gen_int_libfunc, gen_fp_libfunc): Export non-static.
6091 (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
6092 (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
6093 (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
6094 (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
6095 (gen_int_signed_fixed_libfunc): Likewise.
6096 (gen_int_unsigned_fixed_libfunc): Likewise.
6097 (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
6098 (gen_ufloat_conv_libfunc): Likewise.
6099 (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
6100 (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
6101 (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
6102 (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
6103 (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
6104 (debug_optab_libfuncs): Update for optab representation change.
6105 * optabs.h: Include insn-opinit.h.
6106 (optab, convert_optab, direct_optab): New typedefs.
6107 (struct optab_handlers, struct widening_optab_handlers): Remove.
6108 (struct optab_libcall_d): Rename from optab_d; remove code_,
6109 handlers, widening members.
6110 (struct convert_optab_libcall_d): Rename from convert_optab_d;
6111 remove code_ and handlers members.
6112 (enum optab_index, enum convert_optab_index): Remove.
6113 (enum direct_optab_index): Remove.
6114 (code_to_optab_): Fix array range.
6115 (optab_to_code): Covert to inline function.
6116 (optab_to_code_, convlib_def, normlib_def): Declare.
6117 (raw_optab_handler, swap_optab_enable): Declare.
6118 (unknown_optab): Remove; export to optabs.def
6119 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
6120 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
6121 ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
6122 addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
6123 smul_widen_optab, umul_widen_optab, usmul_widen_optab,
6124 smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
6125 usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
6126 ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
6127 sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
6128 umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
6129 ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
6130 rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
6131 vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
6132 atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
6133 movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
6134 negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
6135 ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
6136 parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
6137 cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
6138 ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
6139 log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
6140 ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
6141 tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
6142 cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
6143 lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
6144 cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
6145 reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
6146 reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
6147 usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
6148 vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
6149 vec_realign_load_optab, vec_widen_umult_hi_optab,
6150 vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
6151 vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
6152 vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
6153 vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
6154 vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
6155 vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
6156 vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
6157 vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
6158 vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
6159 vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
6160 vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
6161 sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
6162 sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
6163 sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
6164 sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
6165 sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
6166 ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
6167 ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
6168 fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
6169 vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
6170 movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
6171 setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
6172 sync_lock_release_optab, sync_add_optab, sync_sub_optab,
6173 sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
6174 atomic_exchange_optab, atomic_compare_and_swap_optab,
6175 atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
6176 atomic_sub_fetch_optab, atomic_and_fetch_optab,
6177 atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
6178 atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
6179 atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
6180 atomic_add_optab, atomic_sub_optab, atomic_and_optab,
6181 atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
6182 atomic_always_lock_free_optab, atomic_is_lock_free_optab,
6183 atomic_thread_fence_optab, atomic_signal_fence_optab,
6184 vec_perm_optab, vec_perm_const_optab): Likewise.
6185 (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
6186 and x_direct_optab_table members; add pat_enable.
6187 (optab_table, convert_optab_table, direct_optab_table): Remove.
6188 (optab_handler): Use raw_optab_handler.
6189 (widening_optab_handler, convert_optab_handler): Likewise.
6190 (set_optab_handler, set_widening_optab_handler): Remove.
6191 (set_convert_optab_handler, set_direct_optab_handler): Remove.
6192 (direct_optab_handler): Defer to optab_handler.
6193 * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
6195 2012-07-24 Jason Merrill <jason@redhat.com>
6197 * bitmap.c (bitmap_descriptor): Adjust order of parameters to
6198 match MEM_STAT_DECL.
6199 * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
6201 2012-07-24 Richard Henderson <rth@redhat.com>
6203 * optabs.h (struct optab_d): Rename code member to code_.
6204 (struct convert_optab_h): Likewise.
6205 (code_to_optab_): Rename from code_to_optab.
6206 (code_to_optab, optab_to_code): New.
6207 * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
6208 * ifcvt.c (noce_emit_move_insn): Likewise.
6209 * optabs.c (simplify_expand_binop): Use optab_to_code.
6210 (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
6211 (avoid_expensive_constant, expand_binop_directly): Likewise.
6212 (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
6213 (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
6214 (have_insn_for, debug_optab_libfuncs): Likewise.
6215 (init_optab, init_optabv, init_convert_optab): Update for optab
6218 * libfuncs.h: Include optabs.h.
6219 * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
6220 * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
6221 (lto-streamer-in.o, dwarf2out.o): Update deps.
6223 * optabs.h (unknown_optab): New.
6224 * builtins.c (interclass_mathfn_icode): Use it.
6225 * dojump.c (do_compare_rtx_and_jump): Likewise.
6226 * optabs.c (optab_for_tree_code, expand_binop): Likewise.
6227 * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
6228 (expand_vector_operations_1): Likewise.
6229 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
6230 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
6232 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
6234 * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
6236 2012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6239 * config/arm/arm.c (arm_print_operand_address): Remove superfluous
6241 * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
6243 ("neon_vld3_lane<mode>":VMQ): Likewise.
6244 ("neon_vld3_dup<mode>":VDX): Likewise.
6245 ("neon_vst3_lane<mode>":VD): Likewise.
6246 ("neon_vst3_lane<mode>":VMQ): Likewise.
6248 2012-07-24 Roland McGrath <mcgrathr@google.com>
6250 * arm.c (arm_get_frame_offsets): Don't use fixed regs for
6251 stack alignment padding.
6253 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
6256 * config/i386/i386.c (ix86_legitimate_address_p): Move check for
6257 negative constant address for TARGET_X32 ...
6258 (ix86_decompose_address): ... here. Reject constant addresses
6259 that don't satisfy x86_64_immediate_operand predicate.
6261 2012-07-24 Julian Brown <julian@codesourcery.com>
6263 * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
6265 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
6267 * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
6268 Move test to check that there is a popcount function for the the number
6269 of bits in SBITMAP_ELT_BITS to sbitmap.c.
6270 * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
6271 MEM_STAT_INFO): Define in terms of their ALONE counterparts.
6273 * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
6274 * configure: Regenerate.
6275 * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
6276 (GCC_MEM_STAT_ARGUMENTS): New define.
6277 (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
6278 (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
6279 (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
6280 FINAL_PASS_MEM_STAT): Define.
6281 * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
6282 * ggc.h (ggc_record_overhead, ggc_free_overhead,
6283 ggc_prune_overhead_list): Remove internal prototypes, they are defined
6284 already in ggc-internal.h.
6285 * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
6287 (add_statistics): Likewise.
6288 (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
6289 * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
6290 wrappers around "survived" and "stats" members.
6291 (alloc_large_page): Always initialize survived.
6292 (ggc_internal_alloc_zone_stat): Likewise.
6293 Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if
6294 GATHER_STATISTICS is non-0.
6295 (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
6296 (sweep_pages): Always increase survived.
6297 (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
6298 (calculate_average_page_survival): Always define.
6299 (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
6300 (ggc_print_statistics): Likewise.
6301 (ggc_pch_read): Likewise.
6302 * ggc-page.c (struct globals): Always define "stats" member.
6303 (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
6304 (ggc_free): Likewise.
6305 (ggc_collec): Likewise.
6306 (ggc_print_statistics): Likewise.
6307 * bitmap.h (struct bitmap_head_def): Always define "desc" member.
6308 (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
6309 * gimple.h (enum gimple_alloc_kind): Always define.
6310 (gimple_alloc_kind): Likewise.
6311 * tree-flow.h (phinodes_print_statistics): Always define.
6312 (ssanames_print_statistics): Likewise.
6313 * vec.h (vec_heap_free): Always define.
6314 (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
6315 * alloc-pool.c (alloc_pool_descriptor): Always define.
6316 (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
6317 (empty_alloc_pool): Likewise.
6318 (pool_alloc): Likewise.
6319 (pool_free): Likewise.
6320 (dump_alloc_pool_statistics): Likewise.
6321 (print_statistics): Always define.
6322 * bitmap.c (struct bitmap_descriptor): Always define.
6323 (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
6324 (register_overhead): Always define.
6325 (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
6326 (bitmap_element_allocate): Likewise.
6327 (bitmap_elt_clear_from): Likewise.
6328 (bitmap_obstack_alloc_stat): Likewise.
6329 (bitmap_gc_alloc_stat): Likewise.
6330 (bitmap_obstack_free): Likewise.
6331 (bitmap_find_bit): Likewise.
6332 (bitmap_ior_and_into): Likewise.
6333 (bitmap_print): Likewise.
6334 (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
6335 * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
6336 (gimple_alloc_kind_names): Likewise.
6337 (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
6338 (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
6339 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
6340 rtvec_alloc_sizes): Always define.
6341 (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
6342 (rtx_alloc_stat): Likewise.
6343 (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
6344 * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
6345 tree_node_sizes, tree_node_kind_names): Always define.
6346 (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
6348 (type_hash_canon): Likewise.
6349 (dump_tree_statistics): Likewise.
6350 * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
6352 (ssanames_print_statistics): Likewise.
6353 (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
6354 * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
6355 (phinodes_print_statistics): Likewise.
6356 (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
6357 * vec.c (struct vec_descriptor): Always define.
6358 (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
6359 vec_descriptor, rester_overhead, free_overhead): Likewise.
6360 (cmp_statistic): Likewise.
6361 (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
6362 (vec_heap_o_reserve_1): Likewise.
6363 (dump_vec_loc_statistics): Likewise.
6365 2012-07-24 Richard Guenther <rguenther@suse.de>
6367 PR tree-optimization/53616
6368 * tree-loop-distribution.c (ldist_gen): Do not change
6369 partition ordering when merging partitions.
6371 2012-07-24 Alan Modra <amodra@gmail.com>
6375 * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
6376 * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
6377 Adjust all rs6000_legitimate_offset_address_p calls.
6378 * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
6379 (rs6000_secondary_reload_gpr): Declare.
6380 (rs6000_legitimate_offset_address_p): Update prototype.
6381 (rs6000_offsettable_memref_p): Delete.
6382 (rs6000_secondary_reload_ppc64): Delete.
6383 * config/rs6000/rs6000.c (address_offset): New function.
6384 (mem_operand_gpr): Likewise.
6385 (rs6000_legitimate_offset_address_p): Add worst_case param. When
6386 not worst_case assume class of regs with least restrictive offsets.
6388 (legitimate_lo_sum_address_p): Simplify register mode tests.
6389 (rs6000_legitimize_address): Likewise. Assume best case offset
6390 addressing. Combine ELF and MACHO lo_sum code.
6391 (rs6000_mode_dependent_address): Correct offset addressing limits.
6392 (rs6000_offsettable_memref_p): Make static, add reg_mode param.
6393 Use reg_mode to help rs6000_legitimate_offset_address_p.
6394 (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi
6395 gpr load/store when offset too large.
6396 (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
6397 (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
6398 * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
6399 for gpr load/store. Order alternatives as r->Y,Y->r,r->r and
6400 d->m,m->d,d->d. Correct size of gpr load/store.
6401 (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order
6403 (movti_ppc64): Likewise.
6404 (movdi_internal32): Likewise. Also disparage fprs.
6405 (movdi_mfpgpr, movdi_internal64): Likewise.
6406 (movtf_internal): Use 'm' for fpr load/store. Order alternatives.
6407 (movtf_softfloat): Order alternatives.
6408 (extenddftf2_internal): Use 'm' and 'Y' for store.
6409 (movti_power, movti_string): Use 'Y' for gpr load/store. Order.
6410 (stack_protect_setdi, stack_protect_testdi): Likewise.
6411 (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
6412 (movdf_softfloat64): Likewise.
6413 (reload_<mode>_store): Adjust reload_di_store to provide
6414 reload_si_store as well.
6415 (reload_<mode>_load): Likewise.
6417 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
6420 * config/sh/predicates.md (general_movsrc_operand,
6421 general_movdst_operand): Reject T_REG.
6422 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
6423 movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
6424 Remove T_REG alternatives.
6425 (*negtstsi): New insn.
6427 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
6430 * config/sh/sh.md (mulsf3_ie): Delete.
6431 (mulsf3_i4): Rename to mulsf3_i.
6432 (mulsf3): Emit mulsf3_i insn.
6434 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
6436 * config/sh/sh.md (addc1, subc1): Delete.
6437 (adddi3_compact): Use addc instead of addc1.
6438 (subdi3_compact): Use subc instead of subc1.
6440 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
6442 * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
6443 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
6444 split_cost argument signed.
6445 (ix86_avoid_lea_for_add): Cleanup.
6446 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
6447 (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed.
6448 Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup.
6450 2012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6452 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
6454 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
6457 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
6458 * config/i386/i386.c (ix86_print_operand_address): Ditto.
6459 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
6460 addresses. Prevent zero extensions of CONST_INT operands.
6462 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
6464 * sbitmap.h (struct int_list): Remove.
6465 (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
6466 Remove prototypes of non-existing function.
6467 (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
6468 sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
6470 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
6471 sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
6472 * basic-block.h: ... here.
6473 * sbitmap.c: Do not include basic-block.h.
6474 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
6475 sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
6476 * cfganal.c: ... here.
6477 * bt-load.c (compute_out, link_btr_uses): Update for above changes.
6478 * gcse.c (compute_code_hoist_vbeinout): Likewise.
6479 * lcm.c (compute_antinout_edge, compute_available): Likewise.
6480 * Makefile.in: Fix sbitmap.o dependencies.
6482 2012-07-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6483 Nick Clifton <nickc@redhat.com>
6485 * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
6486 * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
6487 (unused) parameter to void *.
6489 2012-07-23 Richard Guenther <rguenther@suse.de>
6491 * tree-ssa-alias.c (dump_alias_info): Walk over local decls
6492 instead of referenced vars.
6494 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
6496 * coverage.c: Refer to "notes file" instead of "graph file"
6497 in all comments. Explain history of bbg prefix.
6498 * gcov-io.h: Likewise.
6500 (find_source): Likewise in fnotice.
6501 (read_graph_file): Likewise.
6502 (read_count_file): Likewise.
6503 * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file"
6504 and "data file" explicitly in the explanation of the files.
6506 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
6508 PR tree-optimization/53881
6509 * tree-cfg.c (group_case_labels_stmt): Look up the basic block
6510 for each label and compare them instead of labels.
6512 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
6514 * opts.c (common_handle_option): Do not set
6515 flag_value_profile_transformations for -fprofile-generate.
6516 * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
6517 (BB_TO_GCOV_INDEX): Remove.
6518 (output_location): Don't use it.
6519 (branch_prob): Likewise. Don't fiddle with the index of
6520 ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks.
6521 (find_spanning_tree):
6522 * gcov.c (struct function_info): Document that blocks 0 and 1
6523 are the entry resp. exit blocks in gcov, too, like in GCC itself.
6524 (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
6525 blocks identification.
6526 (output_lines): Likewise.
6527 * value-prof.c (gimple_value_profile_transformations): Do not
6528 test flag_value_profile_transformations again.
6529 (gimple_ic_transform): Take a gimple_stmt_iterator like all other
6530 transformation functions.
6531 (gimple_values_to_profile):
6532 Don't test flag_value_profile_transformations
6533 * tree-profile.c (tree_profiling): Assert that the cgraph is in
6534 the CGRAPH_STATE_IPA_SSA state.
6535 Do not set, or look at, after_tree_profile.
6536 * function.h (struct function): Remove after_tree_profile bit.
6537 * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
6538 * tree-inline.c (initialize_cfun): Don't copy it.
6539 * lto-streamer-out.c (output_struct_function_base): Don't stream it.
6540 * lto-streamer-in.c (input_struct_function_base): Likewise.
6542 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
6544 * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
6545 (SH_DYNAMIC_SHIFT_COST): Use it.
6546 * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
6547 (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
6548 Add sanity check for input value. Add function description.
6549 * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
6550 lshrsi3_d): Use TARGET_DYNSHIFT.
6552 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
6554 * config/sh/sh.md (negc): Delete expander.
6555 (*negc): Rename insn to negc.
6557 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
6560 * config/i386/i386.md (*lea): New insn pattern.
6562 (*lea<mode>_2): Ditto.
6563 (*lea_{3,4,5,6}_zext): Ditto.
6564 * config/i386/predicates.md (lea_address_operand): Do not reject
6565 zero-extended address operands.
6566 * config/i386/constraints.md (j): Remove address constraint.
6567 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
6569 (ix86_print_operand_address): Handle SImode subreg of an address.
6570 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
6572 2012-07-22 Hans-Peter Nilsson <hp@axis.com>
6574 Emit executable-stack note correctly for CRIS targets.
6575 * config/cris/cris.c (cris_file_end): New function.
6576 (TARGET_ASM_FILE_END): Define.
6578 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
6579 Maxim Kuvyrkov <maxim@codesourcery.com>
6580 NetLogic Microsystems Inc.
6582 * config/mips/mips.c (mips_issue_rate): Handle XLP.
6583 * config/mips/mips.md: Include xlp.md.
6584 * config/mips/xlp.md: New file.
6586 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
6588 PR gcov-profile/32543
6589 * profile.c (branch_prob): Update total_num_edges_instrumented and
6590 report the number of edges to instrument.
6592 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
6594 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
6596 2012-07-21 Andrew Pinski <apinski@cavium.com>
6598 * config/mips/mips.md (*popcountdi2_trunc): New pattern
6599 to handle popcount of a truncation.
6601 2012-07-21 Andrew Pinski <apinski@cavium.com>
6603 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
6604 Add a bool argument.
6605 * config/mips/mips.c (mips_block_move_straight): Update call to
6606 mips_expand_ext_as_unaligned_load.
6607 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
6608 Accept DImode dest when the width is that of SImode.
6609 * config/mips/mips.md (extv): Update call to
6610 mips_expand_ext_as_unaligned_load.
6613 2012-07-21 Andrew Pinski <apinski@cavium.com>
6615 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
6618 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
6620 * config/mips/mips.md (define_attr sync_*): Move before "type".
6621 (define_attr "type"): New values "atomic" and "syncloop".
6622 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
6623 Set "type" attribute.
6624 * config/mips/generic.md (generic_atomic, generic_syncloop):
6626 * gcc/config/mips/10000.md, gcc/config/mips/20kc.md,
6627 * gcc/config/mips/24k.md, gcc/config/mips/4130.md,
6628 * gcc/config/mips/4k.md, gcc/config/mips/5400.md,
6629 * gcc/config/mips/5500.md, gcc/config/mips/5k.md,
6630 * gcc/config/mips/7000.md, gcc/config/mips/74k.md,
6631 * gcc/config/mips/9000.md, gcc/config/mips/loongson2ef.md,
6632 * gcc/config/mips/loongson3a.md, gcc/config/mips/octeon.md,
6633 * gcc/config/mips/sb1.md, gcc/config/mips/sr71k.md,
6634 * gcc/config/mips/xlr.md: Handle "atomic" and "syncloop" types.
6636 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
6638 * config/sh/sh.md: Group and sort shift related patterns.
6639 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
6641 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
6643 * config/cris/cris.c (cris_asm_output_ident): Remove unused
6644 local variables section_asm_op, size, buf.
6646 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
6647 Steven Bosscher <steven@gcc.gnu.org>
6649 * config/rs6000/power4.md (power4-store-update): Fix reservation.
6650 (power4-three): Likewise.
6652 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
6653 Greta Yorsh <Greta.Yorsh@arm.com>
6655 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
6656 * config/arm/arm-cores.def (cortex-a15): Use it.
6658 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
6659 Greta Yorsh <Greta.Yorsh@arm.com>
6661 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
6662 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
6663 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
6664 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
6665 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
6666 (arm_fa726te_tune): Likewise.
6668 2012-07-20 Richard Guenther <rguenther@suse.de>
6670 * tree-dfa.c (collect_dfa_stats): Simplify.
6671 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
6673 * cfgexpand.c (estimated_stack_frame_size): Walk over local
6674 decls instead of referenced vars.
6675 * tree-ssa.c (delete_tree_ssa): Simplify.
6676 * tree-tailcall.c (find_tail_calls): Walk over local decls
6677 instead of referenced vars.
6678 (add_virtual_phis): Remove.
6679 (tree_optimize_tail_calls_1): Instead mark the virtual operand
6682 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
6684 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
6685 (brief_dump_cfg): Update prototype to take flags argument.
6686 (check_bb_profile): Remove prototype.
6687 * tracer.c (tracer): Update brief_dump_cfg calls.
6688 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
6689 Call dump_bb_info before and after the cfghook dump_bb. Terminate
6690 the dump with a newline.
6691 (dump_flow_info): Do not call check_bb_profile.
6692 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
6693 (check_bb_profile): Make static. Take indent and flags arguments.
6694 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
6695 check_bb_profile. Print one edge per line.
6696 (brief_dump_cfg): Take a flags argument, and filter out
6697 TDF_COMMENT and TDF_DETAILS.
6698 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
6699 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
6700 dump_bb_info here, it is already called from dump_bb. Idem for
6702 (dump_gimple_bb_footer): Likewise.
6703 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
6704 avoid broken dumps for statement histograms.
6705 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
6706 not call pp_flush here, the buffer should be empty.
6707 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
6708 * sched-vis.c (debug_bb_slim): Likewise.
6709 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
6710 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
6711 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
6712 (dump_function_to_file): Do not call check_bb_profile on
6713 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
6714 Use dump_bb instead of gimple_dump_bb.
6715 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
6716 * passes.c (execute_function_dump): Always call print_rtl_with_bb
6718 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
6719 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
6720 bottom of each basic block.
6722 2012-07-20 Richard Guenther <rguenther@suse.de>
6724 PR tree-optimization/54031
6725 * tree-ssa-ccp.c (get_value_from_alignment): Use
6726 get_pointer_alignment_1.
6728 2012-07-20 Richard Guenther <rguenther@suse.de>
6730 * tree-inline.c (add_local_variables): Remove check_var_ann
6731 parameter and dead code.
6732 (expand_call_inline): Adjust.
6733 (tree_function_versioning): Likewise.
6735 2012-07-20 Jakub Jelinek <jakub@redhat.com>
6738 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
6739 of just the first one.
6741 2012-07-20 Richard Guenther <rguenther@suse.de>
6743 * builtins.c (get_object_alignment_2): Correct offset handling
6744 when using type alignment of a MEM_REF kind base.
6746 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
6749 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
6750 (_lzcnt_u64): Ditto.
6752 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
6754 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
6756 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
6758 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
6759 defining statement is a SSA name that occurs in abnormal PHIs.
6761 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
6763 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
6766 2012-07-19 Jakub Jelinek <jakub@redhat.com>
6768 PR rtl-optimization/53942
6769 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
6770 directly from likely spilled non-fixed hard registers, move them
6773 2012-07-19 Steve Ellcey <sellcey@mips.com>
6775 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
6778 2012-07-19 Jason Merrill <jason@redhat.com>
6781 * dwarf2out.c (get_die_parent): New.
6782 (generate_type_signature): Use it.
6784 2012-07-19 Richard Henderson <rth@redhat.com>
6786 * config/ia64/vect.md (smulv4hi3_highpart): New.
6787 (umulv4hi3_highpart): New.
6788 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
6789 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
6790 (udot_prodv8qi, sdot_prodv8qi): Remove.
6791 (sdot_prodv4hi, udot_prodv4hi): Remove.
6792 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
6793 * config/ia64/ia64-protos.h: Update.
6795 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
6796 vectors larger than UNITS_PER_WORD.
6798 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
6799 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
6800 dummy != CODE_FOR_nothing value.
6802 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
6804 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
6805 * doc/tm.texi: Regenerate.
6806 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
6807 * config/sh/sh.h (MODE_AFTER): Update.
6808 * config/epiphany/epiphany.h (MODE_AFTER): Update.
6810 2012-07-19 Jakub Jelinek <jakub@redhat.com>
6813 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
6814 (cleanup_tree_cfg_bb): Don't call it.
6815 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
6818 2012-07-19 Christian Bruel <christian.bruel@st.com>
6821 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
6823 2012-07-19 Richard Guenther <rguenther@suse.de>
6824 Eric Botcazou <ebotcazou@adacore.com>
6826 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
6827 about transition from invariant to known bits.
6828 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
6830 2012-07-19 Richard Guenther <rguenther@suse.de>
6832 PR tree-optimization/53970
6833 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
6835 2012-07-19 Tristan Gingold <gingold@adacore.com>
6836 Richard Henderson <rth@redhat.com>
6838 * opts.c (finish_options): Handle UI_SEH.
6839 * expr.c (build_personality_function): Handle UI_SEH.
6840 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
6841 * coretypes.h (unwind_info_type): Add UI_SEH.
6842 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
6844 (i386_pe_seh_init_sections): Likewise.
6845 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
6846 (TARGET_ASM_INIT_SECTIONS): Define.
6847 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
6848 (i386_except_unwind_info): New function.
6850 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
6851 Chao-ying Fu <fu@mips.com>
6853 * config/mips/mips.opt (mmcu): New option.
6854 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
6855 _mips_mcu when TARGET_MCU.
6856 (ASM_SPEC): Pass mcu options to the assembler.
6857 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
6859 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
6861 * config.gcc (v850-*-rtems*): New target.
6862 * config/v850/rtems.h: New.
6863 * config/v850/t-rtems: New.
6865 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
6867 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
6868 of flags controlling optimization; add -ftree-slsr to list of flags
6869 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
6870 enabled by default at -O2; add -fvect-cost-model to list of flags
6871 enabled by default at -O3; document -fhoist-adjacent-loads and
6873 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
6874 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
6876 * common.opt: Add -ftree-slsr with flag_tree_slsr.
6878 2012-07-18 Jie Zhang <jzhang918@gmail.com>
6879 Julian Brown <julian@codesourcery.com>
6881 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
6882 (arm_size_rtx_costs): Likewise.
6883 (neon_valid_immediate): Add a case for double 0.0.
6885 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
6886 Mark Shinwell <shinwell@codesourcery.com>
6887 Julian Brown <julian@codesourcery.com>
6889 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
6890 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
6891 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
6892 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
6894 * config/arm/arm.md (neon_type): Update comment.
6896 2012-07-18 Richard Guenther <rguenther@suse.de>
6898 PR tree-optimization/53970
6899 * tree.h (contains_packed_reference): Remove.
6900 * expr.c (contains_packed_reference): Likewise.
6901 * tree-vect-data-refs.c (not_size_aligned): New function.
6902 (vector_alignment_reachable_p): Use it.
6903 (vect_supportable_dr_alignment): Likewise.
6905 2012-07-18 Richard Guenther <rguenther@suse.de>
6907 * tree.h (get_object_or_type_alignment): Remove.
6908 * builtins.c (get_object_alignment_2): New function copied from
6909 get_object_alignment_1. Take extra argument to indicate whether
6910 we take the address of EXP. Rework to use type alignment information
6911 if not, and return whether the result is an approximation or not.
6912 (get_object_alignment_1): Wrap around get_object_alignment_2.
6913 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
6914 we take the address.
6915 (get_object_or_type_alignment): Remove.
6916 * expr.c (expand_assignment): Call get_object_alignment.
6917 (expand_expr_real_1): Likewise.
6919 2012-07-18 Nick Clifton <nickc@redhat.com>
6921 * doc/invoke.texi (ARM Options): Document -munaligned-access.
6923 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
6925 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
6926 expander. Use arith_reg_dest predicate.
6927 (rotldi3, rotrdi3): Remove constraints in expander.
6928 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
6929 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
6932 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
6935 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
6937 * config/sh/sh.c (sh_option_override): Do not change
6938 flag_finite_math_only. Set TARGET_IEEE to complement of
6939 flag_finite_math_only.
6940 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
6941 of mieee and mno-ieee behavior.
6943 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
6945 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
6947 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
6949 * dumpfile.h (TDF_COMMENT): New define.
6950 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
6951 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
6952 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
6953 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
6954 Move to new file cfg-flags.h.
6955 (enum cfg_edge_flags): New enum, using cfg-flags.h.
6956 (EDGE_ALL_FLAGS): Compute value automatically.
6957 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
6958 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
6959 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
6960 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
6961 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
6962 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
6963 (BB_ALL_FLAGS): New, compute value automatically.
6964 (dump_bb_info): Update prototype.
6965 (dump_edge_info): Update prototype.
6966 * cfg-flags.h: New file.
6967 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
6968 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
6969 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
6970 (debug_bb): Update dump_bb call.
6971 (dump_cfg_bb_info): Remove.
6972 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
6973 Adjust verbosity using TDF_* flags. Check that the basic block flags
6974 are within the range of BB_ALL_FLAGS.
6975 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
6976 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
6977 first for consistency with other dump functions.
6978 (dump_bb): Update prototype accordingly.
6979 * cfghooks.c: Include dumpfile.h.
6980 (verify_flow_info): Update dump_edge_info calls.
6981 (dump_bb): Take a flags argument and pass it around.
6982 Use dump_bb_info to dump common information about a basic block.
6983 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
6984 (debug_flow_info): Moved here from cfgrtl.c.
6985 * profile.c (is_edge_inconsistent): Update dump_bb calls.
6986 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
6987 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
6988 print_rtl_slim_with_bb): Remove prototypes.
6989 (dump_insn_slim): Adjust prototype to take a const_rtx.
6990 (print_rtl_with_bb): Adjust prototype.
6991 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
6992 * sched-vis.c (dump_insn_slim): Take a const_rtx.
6993 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
6994 (print_rtl_slim_with_bb): Remove.
6995 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
6996 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
6997 for that. Prototype here near DEBUG_FUNCTION marker.
6998 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
7000 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
7001 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
7002 (remove_bb): Update dump_bb call.
7003 (gimple_debug_bb): Use dump_bb.
7004 (dump_function_to_file): Update gimple_dump_bb call.
7005 (print_loops_bb): Likewise.
7006 * tree-flow.h (gimple_dump_bb): Update prototype.
7007 * gimple-pretty-print.c (dump_bb_header): Rename to
7008 dump_gimple_bb_header. Write to a stream instead of a pretty
7009 printer. Use dump_bb_info to dump basic block info.
7010 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
7011 stream instead of a pretty printer. Use dump_bb_info.
7012 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
7013 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
7014 dump_gimple_bb_footer.
7015 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
7016 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
7017 (print_rtl_with_bb): Take a flags argument and pass it around.
7018 Use dump_insn_slim if TDF_SLIM.
7019 (dump_bb_info): Removed and re-incarnated in cfg.c.
7020 (dump_flow_info): Moved to cfghooks.c.
7021 (debug_flow_info): Moved to cfghooks.c.
7022 * passes.c (execute_function_dump): Unconditionally use
7023 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
7024 * final.c (dump_basic_block_info): Update dump_edge_info calls.
7025 * tree-vrp.c (dump_asserts_for): Likewise.
7026 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
7027 * tree-if-conv.c (if_convertible_bb_p): Don't look at
7028 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
7029 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
7030 for the same reason.
7031 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
7033 2012-07-17 Richard Guenther <rguenther@suse.de>
7035 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
7036 vars here, use create_tmp_reg where appropriate.
7037 (vect_create_addr_base_for_vector_ref): Do not add referenced
7038 vars here, use create_tmp_reg where appropriate.
7039 (vect_create_data_ref_ptr): Likewise.
7040 (vect_create_destination_var): Likewise.
7041 (vect_permute_store_chain): Likewise.
7042 (vect_permute_load_chain): Likewise.
7043 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
7045 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
7046 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
7047 (vect_handle_widen_op_by_const): Likewise.
7048 * tree-vect-stmts.c (vect_init_vector): Likewise.
7049 (vectorizable_load): Likewise.
7051 2012-07-17 Tom de Vries <tom@codesourcery.com>
7053 * hwint.c: Fix loop range.
7055 2012-07-17 Tom de Vries <tom@codesourcery.com>
7057 * double-int.h (double_int_popcount): New inline function.
7058 * hwint.c (popcount_hwi): New function.
7059 * hwint.h (popcount_hwi): Declare function. New inline function.
7061 2012-07-17 Richard Henderson <rth@redhat.com>
7063 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
7065 (vectorizable_conversion): Update supportable_widening_operation call.
7066 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
7067 (vect_recog_widen_shift_pattern): Likewise.
7068 * tree-vectorizer.h: Update decl.
7070 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7071 Ulrich Weigand <ulrich.weigand@linaro.org>
7073 * common/config/arm/arm-common.c (arm_option_optimization_table):
7074 Enable -fsched-pressure by default while optimizing.
7075 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
7076 pressure algorithm by default.
7078 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
7080 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
7081 (CONST_OK_FOR_I10): Move macro to ...
7082 * config/sh/sh.c: ... here.
7083 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
7086 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
7088 * config/sh/sh.md: Delete mov related define_peephole patterns.
7090 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
7093 * doc/install.texi (Installing GCC): Refer to instructions for
7094 released versions. Fix hyphenation.
7096 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7098 * config/spu/spu.c (targetm): Move to bottom of file.
7099 (spu_attribute_table): Likewise.
7100 (spu_option_override, spu_init_builtins, spu_builtin_decl,
7101 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
7102 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
7103 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
7104 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
7105 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
7106 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
7107 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
7108 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
7109 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
7110 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
7111 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
7112 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
7113 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
7114 spu_encode_section_info, spu_legitimize_address,
7115 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
7116 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
7117 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
7118 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
7119 spu_section_type_flags, spu_select_section, spu_unique_section,
7120 spu_trampoline_init, spu_conditional_register_usage,
7121 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
7122 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
7123 spu_setup_incoming_varargs): Remove prototypes.
7124 (spu_legitimize_address): Add "static" to definition.
7126 2012-07-16 Jakub Jelinek <jakub@redhat.com>
7128 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
7130 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
7132 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
7133 before calling gsi_stmt.
7135 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
7138 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
7140 * config/i386/i386.md (stack_protect_set): Disable the pattern
7141 for Android since Android libc (bionic) does not provide random
7142 value for stack protection guard at gs:0x14. Guard value
7143 will be provided from external symbol (default implementation).
7144 (stack_protect_set_<mode>): Likewise.
7145 (stack_protect_test): Likewise.
7146 (stack_protect_test_<mode>): Likewise.
7148 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
7152 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
7155 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
7157 * opts.c (default_option): Add -fvect-cost-model to default options
7160 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
7162 * graphite-clast-to-gimple.c, graphite-dependences.c,
7163 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
7164 for pass TODO flags.
7165 * Makefile.in: Fix dependencies.
7167 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
7169 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
7170 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
7172 * function.c (stack_protect_epilogue): Use expand_call to expand
7173 targetm.stack_protect_fail.
7174 * stmt.c (expand_expr_stmt): Remove now-unused function.
7175 * tree.h (expand_expr_stmt): Remove prototype.
7176 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
7177 hook must return a CALL_EXPR.
7178 * doc/tm.texi: Regenerate.
7180 * emit-rtl.c (emit_label_before): Do not allow the same label
7181 to be emitted twice.
7182 (emit_label_after): Likewise.
7183 (emit_label): Likewise.
7185 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
7186 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
7187 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
7188 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
7190 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
7192 * system.h (dump_file): Do not define.
7193 * tree-pass.h: Include dumpfile.h, which is a new file containing...
7194 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
7195 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
7196 dump_flag_name, dump_file, dump_flags, dump_file_name,
7197 get_dump_file_info, struct dump_file_info): all of this, moved to...
7198 * dumpfile.h: Here, new file.
7199 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
7200 (dump_stmt): Remove prototype for C++ specific function.
7201 (dump_enumerated_decls): Move prototype from here...
7202 * tree-flow.h (dump_enumerated_decls): ... to here.
7203 (get_ref_base_and_extent) Move prototype from here ...
7204 * tree.h (get_ref_base_and_extent) ... to here.
7205 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
7206 gimple-pretty-print.h is enough. Do not include tree-dump.h,
7207 include timevar.h and dumpfile.h instead.
7208 (struct numbered_tree_d, compare_decls_by_uid,
7209 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
7210 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
7211 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
7212 Do not include timevar.h.
7213 * tree.c: Do not include timevar.h.
7214 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
7216 (dump_cfg_stats): Use current_function_name.
7217 (gimple_cfg2vcg): Likewise.
7218 (dump_function_to_file): Likewise.
7219 * df-scan.c: Do not include tree-pass.h and timevar.h.
7221 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
7222 use print_current_pass.
7223 * df-problems.c: Include dumpfile.h.
7224 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
7225 leads to errors in the code not selected.
7226 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
7227 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
7228 * lcm.c: Include dumpfile.h.
7229 Remove obsolete include of insn-attr.h.
7230 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
7231 missing probability notes.
7232 * stmt.c: Include dumpfile.h.
7233 (emit_case_decision_tree): Re-enable printing expand details only
7235 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
7236 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
7237 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
7238 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
7239 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
7240 function.c, fwprop.c, gcse.c, gimple-fold.c,
7241 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
7242 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
7243 graphite-dependences.c, graphite-interchange.c,
7244 graphite-optimize-isl.c, graphite-poly.c,
7245 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
7246 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
7247 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
7248 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
7249 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
7250 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
7251 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
7252 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
7253 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
7254 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
7255 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
7256 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
7257 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
7258 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
7259 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
7260 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
7261 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
7262 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
7263 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
7264 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
7265 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
7266 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
7267 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
7268 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
7269 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
7270 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
7271 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
7272 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
7273 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
7274 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
7275 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
7276 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
7277 tree-ssa-uncprop.c, tree-ssa-uninit.c,
7278 tree-switch-conversion.c, tree-tailcall.c,
7279 tree-vect-data-refs.c, tree-vect-loop.c,
7280 tree-vect-loop-manip.c, tree-vectorizer.c,
7281 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
7282 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
7283 only if needed. If tree-pass.h is included, do not include timevar.h
7284 and dumpfile.h. If tree-pass.h is not included but dump_file, or
7285 dump_flags, or the TDF_* flags are used, include dumpfile.h.
7286 If gimple-pretty-print.h is included, don't include
7287 tree-pretty-print.h. Remove assorted unnecessary includes.
7289 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
7290 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
7291 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
7293 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
7294 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
7295 spu/t-spu-elf: Fix dependencies.
7297 2012-07-16 Dehao Chen <dehao@google.com>
7300 2012-07-10 Dehao Chen <dehao@google.com>
7302 * tree.h (phi_arg_d): New field.
7303 * tree-flow-inline.h (gimple_phi_arg_block): New function.
7304 (gimple_phi_arg_block_from_edge): New function.
7305 (gimple_phi_arg_set_block): New function.
7306 (gimple_phi_arg_has_block): New function.
7307 (redirect_edge_var_map_block): New function.
7308 * tree-flow.h (_edge_var_map): New field.
7309 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
7310 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
7311 redirect_edge_var_map_add.
7312 * tree-outof-ssa.c (_elim_graph): New field.
7313 (insert_partition_copy_on_edge): New parameter.
7314 (insert_value_copy_on_edge): New parameter.
7315 (insert_rtx_to_part_on_edge): New parameter.
7316 (insert_part_to_rtx_on_edge): New parameter.
7317 (elim_graph_add_edge): New parameter.
7318 (elim_graph_remove_succ_edge): New parameter.
7319 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
7320 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
7321 (new_elim_graph): Add block debug info.
7322 (clear_elim_graph): Likewise.
7323 (delete_elim_graph): Likewise.
7324 (elim_graph_add_node): Likewise.
7325 (elim_graph_add_edge): Likewise.
7326 (elim_graph_remove_succ_edge): Likewise.
7327 (eliminate_build): Likewise.
7328 (elim_forward): Likewise.
7329 (elim_unvisited_predecessor): Likewise.
7330 (elim_backward): Likewise.
7331 (elim_create): Likewise.
7332 (eliminate_phi): Likewise.
7333 (insert_backedge_copies): Likewise.
7334 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
7336 (rewrite_add_phi_arguments): Likewise.
7337 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
7338 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
7339 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
7340 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
7341 * tree-ssa-loop-manip.c (create_iv): Likewise.
7342 (add_exit_phis_edge): Likewise.
7343 (split_loop_exit_edge): Likewise.
7344 (copy_phi_node_args): Likewise.
7345 (tree_transform_and_unroll_loop): Likewise.
7346 * value-prof.c (gimple_ic): Likewise.
7347 (gimple_stringop_fixed_value): Likewise.
7348 * tree-tailcall.c (add_successor_phi_arg): Likewise.
7349 (eliminate_tail_call): Likewise.
7350 (create_tailcall_accumulator): Likewise.
7351 (tree_optimize_tail_calls_1): Likewise.
7352 * tree-phinodes.c (add_phi_arg): Likewise.
7353 (make_phi_node): Likewise.
7354 (resize_phi_node): Likewise.
7355 (remove_phi_arg_num): Likewise.
7356 * omp-low.c (expand_parallel_call): Likewise.
7357 (expand_omp_for_static_chunk): Likewise.
7358 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
7360 (slpeel_update_phi_nodes_for_guard1): Likewise.
7361 (slpeel_update_phi_nodes_for_guard2): Likewise.
7362 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7363 (set_prologue_iterations): Likewise.
7364 (slpeel_tree_peel_loop_to_edge): Likewise.
7365 (vect_loop_versioning): Likewise.
7366 * tree-parloops.c (create_phi_for_local_result): Likewise.
7367 (transform_to_exit_first_loop): Likewise.
7368 (create_parallel_loop): Likewise.
7369 * ipa-split.c (split_function): Likewise.
7370 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
7371 (vect_create_epilog_for_reduction): Likewise.
7372 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
7373 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
7374 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
7375 (cond_if_else_store_replacement_1): Likewise.
7376 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
7377 (remove_forwarder_block_with_phi): Likewise.
7378 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
7379 * tree-predcom.c (initialize_root_vars): Likewise.
7380 (initialize_root_vars_lm): Likewise.
7381 * sese.c (sese_add_exit_phis_edge): Likewise.
7382 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
7383 * tree-ssa.c (flush_pending_stmts): Likewise.
7384 (redirect_edge_var_map_add): Likewise.
7385 (ssa_redirect_edge): Likewise.
7386 * gimple-streamer-in.c (input_phi): Likewise.
7387 * tree-vect-stmts.c (vectorizable_load): Likewise.
7388 * tree-inline.c (copy_phis_for_bb): Likewise.
7389 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
7390 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
7391 * tree-cfg.c (reinstall_phi_args): Likewise.
7392 (gimple_make_forwarder_block): Likewise.
7393 (add_phi_args_after_copy_edge): Likewise.
7394 (gimple_duplicate_sese_tail): Likewise.
7396 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
7398 * config/i386/i386.md (stack_protect_set): Disable the pattern
7399 for Android since Android libc (bionic) does not provide random
7400 value for stack protection guard at gs:0x14. Guard value
7401 will be provided from external symbol (default implementation).
7402 (stack_protect_set_<mode>): Likewise.
7403 (stack_protect_test): Likewise.
7404 (stack_protect_test_<mode>): Likewise.
7406 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
7408 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
7409 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
7410 CONSTANT_P and cris_legitimate_address_p.
7411 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
7412 (cris_preferred_reload_class): Don't return GENERAL_REGS as
7413 preferred to MOF_SRP_REGS.
7415 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
7416 of library functions for basic atomic compare-and-swap.
7417 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
7418 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
7419 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
7420 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
7421 ("atomic_compare_and_swap<mode>")
7422 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
7423 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
7424 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
7425 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
7426 (atomic_op_op_pred): Ditto.
7427 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
7428 reflect the change to include %2 in expansion. All callers changed.
7429 (qm3): New mode_attr.
7430 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
7431 as predicate for operand 2.
7432 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
7433 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
7434 constraint for operand 2.
7435 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
7436 nonmemory_operand for operand 3.
7437 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
7438 exclude memory. Improve emitted sync code for v10 and v32. Use
7439 <qm3> instead of <m> for size designator for cmp.
7440 ("atomic_compare_and_swap<mode>"): Change predicate to
7441 nonmemory_operand for operand 3. Add FIXME.
7442 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
7443 constraints for operand 3 to exclude memory.
7444 ("atomic_fetch_<atomic_op_name><mode>")
7445 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
7446 calls on result of call to need_atomic_barrier_p.
7448 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
7450 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
7452 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
7453 and mtlo. Adjust move_type->type mapping.
7454 (may_clobber_hilo): Split mthilo into mthi and mtlo.
7455 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
7456 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
7457 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
7458 instead of mthilo and mfhilo.
7459 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
7460 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
7461 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
7462 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
7463 Use mflo instead of mfhilo.
7464 * config/mips/10000.md (r10k_arith): Split mthilo.
7465 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
7466 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
7467 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
7468 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
7470 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
7471 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
7473 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
7474 * config/mips/5400.md (ir_vr54_hilo): Likewise.
7475 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
7476 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
7477 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
7478 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
7479 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
7480 * config/mips/generic.md (generic_hilo): Likewise.
7481 * config/mips/loongson2ef.md (ls2_alu): Likewise.
7482 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
7483 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
7484 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
7485 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
7486 * config/mips/xlr.md (xlr_hilo): Likewise.
7488 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
7489 Sandra Loosemore <sandra@codesourcery.com>
7491 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
7493 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
7495 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
7498 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
7500 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
7502 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
7505 * config/spu/spu.c (spu_init_cost): Mark static.
7506 (spu_add_stmt_cost): Likewise.
7507 (spu_finish_cost): Likewise.
7508 (spu_destroy_cost_data): Likewise.
7509 * config/i386/i386.c (ix86_init_cost): Mark static.
7510 (ix86_add_stmt_cost): Likewise.
7511 (ix86_finish_cost): Likewise.
7512 (ix86_destroy_cost_data): Likewise.
7513 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
7514 (rs6000_add_stmt_cost): Likewise.
7515 (rs6000_finish_cost): Likewise.
7516 (rs6000_destroy_cost_data): Likewise.
7518 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
7520 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
7521 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
7522 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
7524 * alloc-pool.h (pool_alloc): Likewise.
7526 * final.c (final): Do not loop to find max_uid.
7528 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
7530 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
7531 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
7533 2012-07-13 Richard Guenther <rguenther@suse.de>
7535 PR tree-optimization/53907
7536 * tree-ssa-forwprop.c (associate_pointerplus): New function.
7537 (ssa_forward_propagate_and_combine): Call it.
7539 2012-07-13 Richard Guenther <rguenther@suse.de>
7541 PR tree-optimization/53922
7542 * tree-vrp.c (value_inside_range): Change prototype to take
7543 min/max instead of value-range.
7544 (range_includes_zero_p): Likewise. Return the result from
7546 (extract_range_from_binary_expr_1): Adjust to handle dont-know
7547 return value from range_includes_zero_p.
7548 (extract_range_from_unary_expr_1): Likewise.
7549 (compare_range_with_value): Likewise.
7550 (vrp_meet_1): Likewise.
7552 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
7554 * doc/tm.texi: Regenerate.
7555 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
7556 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
7557 (TARGET_VECTORIZE_FINISH_COST): Likewise.
7558 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
7559 * targhooks.c (default_init_cost): New function.
7560 (default_add_stmt_cost): Likewise.
7561 (default_finish_cost): Likewise.
7562 (default_destroy_cost_data): Likewise.
7563 * targhooks.h (default_init_cost): New decl.
7564 (default_add_stmt_cost): Likewise.
7565 (default_finish_cost): Likewise.
7566 (default_destroy_cost_data): Likewise.
7567 * target.def (init_cost): New DEFHOOK.
7568 (add_stmt_cost): Likewise.
7569 (finish_cost): Likewise.
7570 (destroy_cost_data): Likewise.
7571 * target.h (struct _stmt_vec_info): New extern decl.
7572 (stmt_vectype): Likewise.
7573 (stmt_in_inner_loop_p): Likewise.
7574 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
7575 (stmt_vector_for_cost): New VEC/typedef.
7576 (add_stmt_info_to_vec): New function.
7577 (struct _slp_tree): Remove cost.inside_of_loop field.
7578 (struct _slp_instance): Remove cost.inside_of_loop field; add
7579 stmt_cost_vec field.
7580 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
7581 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
7582 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
7583 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
7584 (struct _loop_vec_info): Add target_cost_data field.
7585 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
7586 (struct _bb_vec_info): Add target_cost_data field.
7587 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
7588 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
7589 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
7590 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
7591 (init_cost): New function.
7592 (add_stmt_cost): Likewise.
7593 (finish_cost): Likewise.
7594 (destroy_cost_data): Likewise.
7595 (vect_model_simple_cost): Change parameter list.
7596 (vect_model_store_cost): Likewise.
7597 (vect_model_load_cost): Likewise.
7598 (record_stmt_cost): New extern decl.
7599 (vect_get_load_cost): Change parameter list.
7600 (vect_get_store_cost): Likewise.
7601 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
7602 (destroy_loop_vec_info): Call destroy_cost_data.
7603 (vect_estimate_min_profitable_iters): Remove old calculation of
7604 inside costs; call finish_cost instead.
7605 (vect_model_reduction_cost): Call add_stmt_cost instead of old
7606 inside-costs calculation.
7607 (vect_model_induction_cost): Likewise.
7608 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
7609 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
7610 and vect_get_store_cost to obtain the value to return.
7611 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
7612 vect_get_data_access_cost and store it in the minimum peeling
7614 (vect_peeling_hash_choose_best_peeling): Change the parameter list
7615 to add a (stmt_vector_for_cost *) output parameter, and set its value.
7616 (vect_enhance_data_refs_alignment): Ignore the new return value from
7617 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
7618 vect_peeling_hash_choose_best_peeling and pass its contents to the
7620 * tree-vect-stmts.c (stmt_vectype): New function.
7621 (stmt_in_inner_loop_p): Likewise.
7622 (record_stmt_cost): Likewise.
7623 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
7624 record_stmt_cost instead of old calculation; don't call
7625 stmt_vinfo_set_inside_of_loop_cost.
7626 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
7627 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
7628 (vect_model_store_cost): Add stmt_cost_vec parameter; call
7629 record_stmt_cost instead of old calculation; add stmt_cost_vec
7630 parameter to vect_get_store_cost call; don't call
7631 stmt_vinfo_set_inside_of_loop_cost.
7632 (vect_get_store_cost): Add stmt_cost_vec parameter; call
7633 record_stmt_cost instead of old calculation.
7634 (vect_model_load_cost): Add stmt_cost_vec parameter; call
7635 record_stmt_cost instead of old calculation; add stmt_cost_vec
7636 parameter to vect_get_load_cost call; don't call
7637 stmt_vinfo_set_inside_of_loop_cost.
7638 (vect_get_load_cost): Add stmt_cost_vec parameter; call
7639 record_stmt_cost instead of old calculation.
7640 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
7641 (vectorizable_conversion): Likewise.
7642 (vectorizable_assignment): Likewise.
7643 (vectorizable_shift): Likewise.
7644 (vectorizable_operation): Likewise.
7645 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
7646 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
7647 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
7648 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
7649 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
7650 (TARGET_VECTORIZE_FINISH_COST): Likewise.
7651 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
7652 (spu_init_cost): New function.
7653 (spu_add_stmt_cost): Likewise.
7654 (spu_finish_cost): Likewise.
7655 (spu_destroy_cost_data): Likewise.
7656 * config/i386/i386.c (ix86_init_cost): New function.
7657 (ix86_add_stmt_cost): Likewise.
7658 (ix86_finish_cost): Likewise.
7659 (ix86_destroy_cost_data): Likewise.
7660 (TARGET_VECTORIZE_INIT_COST): New macro def.
7661 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
7662 (TARGET_VECTORIZE_FINISH_COST): Likewise.
7663 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
7664 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
7665 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
7666 (TARGET_VECTORIZE_FINISH_COST): Likewise.
7667 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
7668 (rs6000_init_cost): New function.
7669 (rs6000_add_stmt_cost): Likewise.
7670 (rs6000_finish_cost): Likewise.
7671 (rs6000_destroy_cost_data): Likewise.
7672 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
7673 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
7674 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
7675 stmt_cost_vec parameter to vect_model_store_cost and
7676 vect_model_simple_cost calls.
7677 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
7678 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
7679 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
7680 calculating cost more than once for loads; remove inside_cost
7681 parameter from recursive vect_build_slp_tree calls; call
7682 record_stmt_cost instead of old calculation.
7683 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
7684 the instance; free it on premature exit; remove inside_cost parameter
7685 from vect_build_slp_tree call; add stmt_cost_vec parameter to
7686 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
7687 (new_bb_vec_info): Call init_cost.
7688 (destroy_bb_vec_info): Call destroy_cost_data.
7689 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
7690 statement recorded with an SLP instance; call finish_cost instead of
7691 the old calculation.
7692 (vect_update_slp_costs_according_to_vf): Record statement costs from
7693 SLP instances, multiplying by the appropriate number of copies; don't
7694 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
7696 2012-07-13 Richard Guenther <rguenther@suse.de>
7699 * builtins.c (get_pointer_alignment_1): Handle constant
7702 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
7703 Steven Bosscher <steven@gcc.gnu.org>
7704 Bernd Schmidt <bernds@codesourcery.com>
7706 PR rtl-optimization/53908
7707 * df-problems.c (can_move_insns_across): When doing
7708 memory-reference book-keeping, handle call insns.
7710 2012-07-13 Richard Guenther <rguenther@suse.de>
7712 * gimple.c (gimple_types_compatible_p_1): Remove redundant
7713 type attribute comparisons.
7714 (gimple_canonical_types_compatible_p): Likewise.
7716 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
7718 PR rtl-optimization/53176
7719 * rtlanal.c (rtx_cost): Adjust default cost for X with a
7720 UNITS_PER_WORD factor for all X according to the size of
7721 its mode, not just for SUBREGs with untieable modes.
7722 Handle SET. Use factor * factor for MULT, DIV, UDIV,
7725 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
7727 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
7728 QImode and HImode splitters. Use ix86_comparison_operator.
7729 Explicitly match FLAGS_REG.
7730 (DFmode cmove splitter): Explicitly match FLAGS_REG.
7732 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
7734 * expr.h (can_move_by_pieces): Move prototype from here ...
7735 * tree.h (can_move_by_pieces): ... to here.
7736 * optabs.h (set_widening_optab_handler): Use XCNEW.
7737 * gimplify.c: Do not include expr.h.
7739 * toplev.c: Do not include dwarf2out.h.
7740 * config/ia64/ia64.c: Likewise.
7741 * config/sparc/sparc.c: Likewise.
7742 * config/sparc/t-sparc (sparc.o): Fix dependencies.
7744 * Makefile.in (toplev.o): Fix dependencies
7745 (c-family/c-gimplify.o): Likewise.
7746 (c-family/c-common.o): Likewise.
7748 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
7750 * basic-block.h (struct edge_def): Use basic_block instead of
7752 * cfgloop.h (struct loop_exit, struct loop): Likewise.
7753 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
7754 instead of union tree_node *.
7755 * rtl.h (union rtunion_def, emit_insn_before_noloc,
7756 emit_insn_after_noloc, add_insn_before, add_insn_after,
7757 debug_bb_slim): Likewise.
7758 * tree-inline.h (struct copy_body_data): Likewise.
7759 * sched-rgn.c (dump_region_dot): Likewise.
7760 * gimple.h (struct gimple_statement_base, gimple_set_bb,
7761 gsi_move_to_bb_end): Likewise.
7762 * sched-vis.c (debug_bb_slim): Likewise.
7763 (debug_bb_n_slim): Likewise.
7764 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
7765 (mn10300_block_contains_call):
7767 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
7770 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
7773 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
7775 * doc/extend.texi (Namespace Association): Alter cautionary text.
7777 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
7780 * config/sh/sh.md: Remove displacement addresssing related splits.
7782 2012-07-10 Xinliang David Li <davidxl@google.com>
7784 * doc/invoke.texi: New option documented.
7785 * flag-types.h: New enum type.
7786 * gimplify.c (gimplify_bind_expr): Control
7787 clobber generation with new option.
7788 (gimplify_target_expr): Ditto.
7789 * common.opt: New option.
7791 2012-07-10 Julian Brown <julian@codesourcery.com>
7793 * config/arm/arm.md (movsi): Don't split symbol refs here.
7794 (define_split): New.
7796 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
7799 * config/m68k/m68k.c (m68k_epilogue_uses): New.
7800 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
7801 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
7803 2012-07-10 Richard Henderson <rth@redhat.com>
7805 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
7806 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
7807 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
7808 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
7809 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
7810 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
7811 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
7812 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
7813 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
7814 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
7815 (bdesc_args): Remove entries to match.
7816 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
7817 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
7818 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
7819 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
7820 (rs6000_builtin_mul_widen_odd): Remove.
7821 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
7822 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
7823 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
7824 (spu_builtin_mul_widen_odd): Remove.
7825 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
7826 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
7827 * doc/tm.texi.in: Don't document the removed hooks.
7829 * tree-vect-stmts.c (supportable_widening_operation): Expand
7830 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
7832 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
7833 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
7834 * optabs.c (can_mult_highpart_p): New.
7835 (expand_mult_highpart): New.
7836 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
7837 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
7838 by pieces if can_mult_highpart_p.
7839 (expand_vector_divmod): Use can_mult_highpart_p and always
7840 generate MULT_HIGHPART_EXPR.
7841 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
7842 * tree-vect-stmts.c (vectorizable_operation): Likewise.
7844 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
7845 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
7846 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
7847 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
7848 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
7849 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
7850 * config/spu/spu-builtins.def: Update pattern names to match.
7852 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
7853 from altivec_vmuleub.
7854 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
7855 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
7856 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
7857 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
7858 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
7859 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
7860 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
7861 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
7863 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
7865 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
7866 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
7867 (mulv4si3): Remove XOP test shadowed by SSE4 test.
7868 * config/i386/i386.c (bdesc_args): Update pattern names.
7869 (ix86_expand_sse2_mulvxdi3): Likewise.
7870 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
7871 shadowed by SSE4 test.
7873 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
7874 * cfgexpand.c (expand_debug_expr): Handle them.
7875 * expr.c (expand_expr_real_2): Likewise.
7876 * fold-const.c (fold_binary_loc): Likewise.
7877 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
7878 * optabs.c (optab_for_tree_code): Likewise.
7879 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
7880 * tree-inline.c (estimate_operator_cost): Likewise.
7881 * tree-pretty-print.c (dump_generic_node): Likewise.
7882 * tree.c (commutative_tree_code): Likewise.
7883 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7884 Handle type change before looking up optab.
7885 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
7886 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
7887 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
7888 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
7889 * genopinit.c (optabs): Initialize them.
7890 * doc/md.texi: Document them.
7892 2012-07-10 Dehao Chen <dehao@google.com>
7894 * tree.h (phi_arg_d): New field.
7895 * tree-flow-inline.h (gimple_phi_arg_block): New function.
7896 (gimple_phi_arg_block_from_edge): New function.
7897 (gimple_phi_arg_set_block): New function.
7898 (gimple_phi_arg_has_block): New function.
7899 (redirect_edge_var_map_block): New function.
7900 * tree-flow.h (_edge_var_map): New field.
7901 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
7902 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
7903 redirect_edge_var_map_add.
7904 * tree-outof-ssa.c (_elim_graph): New field.
7905 (insert_partition_copy_on_edge): New parameter.
7906 (insert_value_copy_on_edge): New parameter.
7907 (insert_rtx_to_part_on_edge): New parameter.
7908 (insert_part_to_rtx_on_edge): New parameter.
7909 (elim_graph_add_edge): New parameter.
7910 (elim_graph_remove_succ_edge): New parameter.
7911 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
7912 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
7913 (new_elim_graph): Add block debug info.
7914 (clear_elim_graph): Likewise.
7915 (delete_elim_graph): Likewise.
7916 (elim_graph_add_node): Likewise.
7917 (elim_graph_add_edge): Likewise.
7918 (elim_graph_remove_succ_edge): Likewise.
7919 (eliminate_build): Likewise.
7920 (elim_forward): Likewise.
7921 (elim_unvisited_predecessor): Likewise.
7922 (elim_backward): Likewise.
7923 (elim_create): Likewise.
7924 (eliminate_phi): Likewise.
7925 (insert_backedge_copies): Likewise.
7926 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
7928 (rewrite_add_phi_arguments): Likewise.
7929 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
7930 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
7931 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
7932 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
7933 * tree-ssa-loop-manip.c (create_iv): Likewise.
7934 (add_exit_phis_edge): Likewise.
7935 (split_loop_exit_edge): Likewise.
7936 (copy_phi_node_args): Likewise.
7937 (tree_transform_and_unroll_loop): Likewise.
7938 * value-prof.c (gimple_ic): Likewise.
7939 (gimple_stringop_fixed_value): Likewise.
7940 * tree-tailcall.c (add_successor_phi_arg): Likewise.
7941 (eliminate_tail_call): Likewise.
7942 (create_tailcall_accumulator): Likewise.
7943 (tree_optimize_tail_calls_1): Likewise.
7944 * tree-phinodes.c (add_phi_arg): Likewise.
7945 (make_phi_node): Likewise.
7946 (resize_phi_node): Likewise.
7947 (remove_phi_arg_num): Likewise.
7948 * omp-low.c (expand_parallel_call): Likewise.
7949 (expand_omp_for_static_chunk): Likewise.
7950 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
7952 (slpeel_update_phi_nodes_for_guard1): Likewise.
7953 (slpeel_update_phi_nodes_for_guard2): Likewise.
7954 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
7955 (set_prologue_iterations): Likewise.
7956 (slpeel_tree_peel_loop_to_edge): Likewise.
7957 (vect_loop_versioning): Likewise.
7958 * tree-parloops.c (create_phi_for_local_result): Likewise.
7959 (transform_to_exit_first_loop): Likewise.
7960 (create_parallel_loop): Likewise.
7961 * ipa-split.c (split_function): Likewise.
7962 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
7963 (vect_create_epilog_for_reduction): Likewise.
7964 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
7965 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
7966 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
7967 (cond_if_else_store_replacement_1): Likewise.
7968 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
7969 (remove_forwarder_block_with_phi): Likewise.
7970 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
7971 * tree-predcom.c (initialize_root_vars): Likewise.
7972 (initialize_root_vars_lm): Likewise.
7973 * sese.c (sese_add_exit_phis_edge): Likewise.
7974 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
7975 * tree-ssa.c (flush_pending_stmts): Likewise.
7976 (redirect_edge_var_map_add): Likewise.
7977 (ssa_redirect_edge): Likewise.
7978 * gimple-streamer-in.c (input_phi): Likewise.
7979 * tree-vect-stmts.c (vectorizable_load): Likewise.
7980 * tree-inline.c (copy_phis_for_bb): Likewise.
7981 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
7982 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
7983 * tree-cfg.c (reinstall_phi_args): Likewise.
7984 (gimple_make_forwarder_block): Likewise.
7985 (add_phi_args_after_copy_edge): Likewise.
7986 (gimple_duplicate_sese_tail): Likewise.
7988 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
7991 * config/sh/sh.c (sequence_insn_p): New function.
7992 (find_barrier, sh_insn_length_adjustment): Use it.
7994 2012-07-09 Iain Sandoe <iain@codesourcery.com>
7997 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
7999 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
8000 SUBTARGET_FOLD_BUILTIN.
8001 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
8002 SUBTARGET_FOLD_BUILTIN.
8004 2012-07-09 Iain Sandoe <iain@codesourcery.com>
8006 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
8007 runtime exceptions model setting from here ...
8008 * config/darwin.c (darwin_override_options): ... to here.
8010 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
8012 PR tree-optimization/53887
8013 * tree-cfg.c (group_case_labels_stmt): Make non-static.
8014 * tree-flow.h (group_case_labels_stmt): Add prototype.
8015 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
8016 to pre-process every switch.
8018 2012-07-09 Jason Merrill <jason@redhat.com>
8021 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
8022 (type_hash_eq): Likewise.
8024 2012-07-09 Tom de Vries <tom@codesourcery.com>
8025 Richard Guenther <rguenther@suse.de>
8027 * tree-ssa-ccp.c (optimize_unreachable): New function.
8028 (execute_fold_all_builtins): Use optimize_unreachable to optimize
8029 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
8031 2012-07-09 Richard Guenther <rguenther@suse.de>
8034 * graphite-optimize-isl.c: Make sure CU is not empty.
8036 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
8038 * gensupport.c (init_rtx_reader_args_cb): Start counting code
8039 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
8040 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
8041 the LAST_INSN_CODE marker at the end.
8042 * genoutput.c (nothing): New static struct data.
8043 (idata): Initialize to ¬hing.
8044 (idata_end): Initialize to ¬hing.next.
8045 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
8047 * genpeep.c (insn_code_number): Remove global variable.
8048 (gen_peephole): Take it as an argument instead.
8049 (main): Take insn_code_number from read_md_rtx.
8050 * optabs.h: Revert r161809:
8051 (optab_handlers): Change type of insn_code back to insn_code.
8052 (optab_handler, widening_optab_handler, set_optab_handler,
8053 set_widening_optab_handler, convert_optab_handler,
8054 set_convert_optab_handler, direct_optab_handler,
8055 set_direct_optab_handler): Remove int casts.
8056 Revert to treating the insn_code field as "insn_code".
8058 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
8060 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
8061 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
8062 * config/sh/sh-protos.h: Declare it.
8064 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
8066 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
8067 (dump_fixup_graph): Use current_function_name.
8068 (adjust_cfg_counts): Likewise.
8069 * ira-conflicts.c: Do not include tree.h.
8070 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
8072 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
8075 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
8077 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
8079 * basic-block.h: Re-group most prototypes per file.
8080 (struct edge_list): Remove num_blocks field.
8081 (dump_bb_info): Adjust prototypes.
8082 (dump_reg_info): Move prototype to regs.h.
8083 * function.h: Do not include tree.h.
8084 Include vec.h, vecir.h, input.h and machmode.h to compensate.
8085 (function_name): New prototype.
8086 * gimple.h: Include tree.h to compensate for basic-block.h change.
8087 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
8088 * regs.h (dump_reg_info): Prototype here.
8089 * regset.h: Adjust file reference in comment.
8090 (debug_regset): Remove prototype.
8091 * rtl.h: Include flags.h for flag_var_tracking_assignments.
8092 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
8093 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
8094 (dump_reg_info, dump_flow_info): Remove prototypes.
8095 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
8096 to here, the only user. Make static.
8097 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
8098 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
8099 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
8100 tree-pass.h, cfgloop.h, and tree-flow.h.
8101 Include basic-block.h, the first header I'd expect to be included.
8102 (reg_obstack): Move to df-core.c.
8103 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
8104 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
8105 (redirect_edge_succ_nodup): Move to cfghooks.c.
8106 (dump_regset, debug_regset): Move to df-core.c.
8107 (dump_bb_info): Move to cfgrtl.c.
8108 (dump_reg_info): Move to regstat.c.
8109 (dump_flow_info): Move to cfgrtl.c.
8110 (debug_flow_info): Likewise.
8111 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
8112 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
8113 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
8114 (flow_active_insn_p, forwarder_block_p, can_fallthru,
8115 could_fall_through): Move to cfgrtl.c.
8116 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
8117 (create_edge_list): Do not set edge_list's removed num_blocks.
8118 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
8119 (flow_nodes_print): Remove.
8120 (flow_edge_list_print): Remove.
8121 (inverted_post_order_compute): Use FOR_ALL_BB.
8122 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
8123 Do not call dump_reg_info.
8124 (debug_flow_info): Moved from cfg.c
8125 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
8126 to avoid looking at TDF_* flags from tree-pass.h.
8127 (flow_active_insn_p, forwarder_block_p, can_fallthru,
8128 could_fall_through): Moved from cfganal.c.
8129 (print_rtl_with_bb): Adjust dump_bb_info calls.
8130 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
8131 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
8132 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
8133 * cselib.c: Include tree.h with a FIXME.
8134 * df-core.c (reg_obstack): Moved from cfg.c.
8135 (dump_regset): Likewise.
8136 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
8137 * final.c (compute_alignments): Call dump_reg_info before
8139 * function.c (function_name): New function.
8140 (current_function_name): Use it.
8141 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
8143 * ira-conflicts.c: Include tree.h with a note.
8144 * regstat.c (dump_reg_info): Moved here from cfg.c.
8145 * loop-init.c: Include regs.h instead of hard-reg-set.h.
8146 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
8147 (rtl_loop_done): Likewise.
8148 * mcf.c: Include tree.h before langhooks.h.
8149 * predict.c (maybe_hot_count_p): Assert we have cfun.
8150 (probably_never_executed_bb_p): Likewise.
8151 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
8152 instead of dump_flow_info.
8153 * sched-deps.c: Include tree.h with a FIXME.
8154 (call_may_noreturn_p): Add FIXME note why this function has to
8155 look at function decls instead of function decl flags.
8156 * sched-vis.c: Include tree.h with a FIXME.
8157 (print_rtl_slim): Adjust dump_bb_info uses.
8158 * statistics.c (statistics_fini_pass_2): Use current_function_name
8159 to avoid including tree.h.
8160 (statistics_counter_event): Use function_name for the same reason.
8161 (statistics_histogram_event): Likewise.
8162 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
8163 instead of dump_flow_info.
8164 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
8165 before dump_flow_info.
8166 * doc/cfg.texi: Update CFG documentation.
8167 * Makefile.in (RTL_H): Depend on FLAGS_H.
8168 (GIMPLE_H): Depend on TREE_H.
8169 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
8170 but no longer on TREE_H.
8171 (C_COMMON_H): Depend on TREE_H.
8172 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
8173 sched-deps.o, sched-vis.o): Fixup dependencies.
8175 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
8177 * alias.h: Do not include coretypes.h in header files.
8178 * cppbuiltin.h: Likewise.
8179 * double-int.h: Likewise.
8180 * gimple-fold.h: Likewise.
8181 * flags.h: Likewise.
8182 * tree-ssa-alias.h: Likewise.
8183 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
8184 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
8185 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
8187 (ALIAS_H): Do not depend on coretypes.h.
8188 (FLAGS_H): Likewise.
8189 (realmpfr.o): Depend on coretypes.h.
8191 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
8193 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
8194 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
8196 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
8198 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
8199 (TARGET_FPA): Delete definition.
8200 (TARGET_MAVERICK): Likewise.
8201 (TARGET_FPA_EMU2): Likewise.
8202 (arm_fp_model): Remove FPA and Maverick models.
8203 (arm_arch_cirrus): Delete declaration.
8204 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
8205 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
8206 (CALL_USED_REGISTERS): Likewise.
8207 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
8208 (FIRST_VFP_REGNUM): Renumbered.
8209 (D7_VFP_REGNUM): Chain definition.
8210 (LAST_LO_VFP_REGNUM): Likewise.
8211 (FIRST_HI_VFP_REGNUM): Likewise.
8212 (LAST_HI_VFP_REGNUM): Likewise.
8213 (FIRST_IWMMXT_GR_REGNUM): Likewise.
8214 (LAST_IWMMXT_GR_REGNUM): Likewise.
8215 (FIRST_IWMMXT_REGNUM): Likewise.
8216 (LAST_IWMMXT_REGNUM): Likewise.
8217 (FRAME_POINTER_REGNUM): Renumbered.
8218 (ARG_POINTER_REGNUM): Renumbered.
8219 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
8220 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
8221 (HARD_REGNO_REGNUM): Remove FPA support.
8222 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
8223 (reg_class): Likewise.
8224 (REG_CLASS_NAMES): Likewise.
8225 (REG_CLASS_CONTENTS): Likewise.
8226 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
8227 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
8228 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
8229 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
8230 Reorganize. Use AAPCS preferred names.
8231 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
8233 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
8234 * arm.c (FL_CIRRUS): Delete definition.
8235 (arm_arch_cirrus): Delete variable.
8236 (arm_float_words_big_endian): Delete function.
8237 (cirrus_memory_offset): Delete function.
8238 (output_mov_long_double_fpa_from_arm): Delete function.
8239 (output_mov_long_double_arm_from_fpa): Delete function.
8240 (output_mov_double_fpa_from_arm): Delete function.
8241 (output_mov_double_arm_from_fpa): Delete function.
8242 (emit_sfm): Delete function.
8243 (maybe_get_arm_condition_code): Update comment.
8244 (arm_file_start): Always use softvfp for softfloat systems.
8245 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
8246 (arm_option_override): Remove FPA and Maverick support. Always
8247 default to vfp as the fallback FPU format.
8248 (use_return_insn): Remove FPA support.
8249 (arm_get_frame_offsets): Likewise.
8250 (arm_save_coproc_regs): Likewise.
8251 (arm_canonicalize_comparison): Remove Maverick support.
8252 (arm_select_cc_mode): Likewise.
8253 (arm_gen_compare_reg): Likewise.
8254 (arm_print_operand): Likewise.
8255 (arm_libcall_value_1): Remove FPA and Maverick support.
8256 (arm_function_value_regno_p): Likewise.
8257 (arm_apply_result_size): Likewise.
8258 (arm_legitimate_index_p): Likewise.
8259 (thumb2_legitimate_index_p): Likewise.
8260 (legitimize_reload_address): Likewise.
8261 (arm_register_move_cost): Likewise.
8262 (arm_hard_regno_mode_ok): Likewise.
8263 (arm_regno_class): Likewise.
8264 (arm_dbx_register_number): Likewise.
8265 (arm_emit_unwind_sequence): Likewise.
8266 (arm_conditional_register_usage): Likewise.
8267 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
8268 (cirrus_memory_offset): Likewise.
8269 (output_move_long_double_fpa_from_arm): Likewise.
8270 (output_move_long_double_arm_from_fpa): Likewise.
8271 (output_move_double_fpa_from_arm): Likewise.
8272 (output_move_double_arm_from_fpa): Likewise.
8273 (arm_float_words_big_endian): Likewise.
8274 * arm.md (CC_REGNUM): Renumbered.
8275 (VFPCC_REGNUM): Moved here. Renumbered.
8276 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
8277 (attr fpu): Remove FPA and Maverick support.
8278 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
8279 * arm-cores.def (ep9312): Remove Maverick support.
8280 * arm-arches.def (ep9312): Delete architecture.
8281 * arm-tables.opt: Regenerated.
8283 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
8285 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
8287 PR tree-optimization/53881
8288 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
8289 comparing labels to establish uniqueness of a switch case target,
8290 use the CFG instead.
8292 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
8294 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
8295 due to negative shift amount.
8297 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
8299 Fix configure test for "stack protector support in target C library".
8300 * configure.ac (test_prefix, test_exec_prefix): Move setting from
8301 inside sysroot handling to before and outside it.
8302 * configure: Regenerate.
8304 2012-07-06 Kai Tietz <ktietz@redhat.com>
8307 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
8308 as "/mingw/include".
8310 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
8313 * var-tracking.c (vt_add_function_parameter): Convert
8314 internal_arg_pointer into arg_pointer-based address even
8317 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
8319 PR rtl-optimization/53827
8322 * alias.c (memrefs_conflict_p): Adjust offset and size by the
8323 same amount for alignment ANDs.
8325 2012-07-06 Tom de Vries <tom@codesourcery.com>
8327 PR tree-optimization/51879
8328 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
8329 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
8330 (visit_use): Also call visit_reference_op_call for calls with a vdef.
8332 2012-07-06 Tom de Vries <tom@codesourcery.com>
8334 PR tree-optimization/52009
8335 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
8336 value numbers of gimple_vdef.
8337 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
8339 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
8340 (vn_reference_insert): Add and handle vdef parameter.
8341 (visit_reference_op_load): Add argument to vn_reference_insert call.
8342 (visit_reference_op_store): Find value number of vdef of store. Insert
8343 value number of vdef of store.
8345 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
8347 * config/i386/i386.md (simple lea to add peephole): Also transform
8348 RTXes where second PLUS operand matches output.
8350 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
8352 * config/i386/i386.c (construct_plt_address): Make static.
8353 * config/i386/i386-protos.h (construct_plt_address): Remove.
8355 2012-07-06 Nick Clifton <nickc@redhat.com>
8357 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
8358 default_encode_section_info.
8360 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
8363 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
8364 emit PIC sequence for fnaddr symbol reference in advance.
8366 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
8369 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
8371 * dwarf2out.c (function_possibly_abstracted_p): New static function.
8372 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
8373 cgraph_function_possibly_inlined_p.
8374 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
8375 (process_scope_var): Do not emit concrete instances of abstracted
8376 nested functions from here.
8377 (gen_decl_die): Emit the abstract instance if the function is possibly
8378 abstracted and not only possibly inlined.
8379 (dwarf2out_finish): Find the first non-abstract parent instance and
8380 attach concrete instances on the limbo list to it.
8382 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8383 Julian Brown <julian@codesourcery.com>
8387 * config/arm/neon-gen.ml (return_by_ptr): Delete.
8388 (print_function): Handle empty strings.
8389 (return): Delete use of return_by_ptr.
8390 (mask_shape_for_shuffle): New function.
8391 (mask_elems): Likewise.
8392 (shuffle_fn): Likewise.
8393 (params): Simplify and remove use of return_by_ptr.
8394 (get_shuffle): New function.
8395 (print_variant): Update.
8396 * config/arm/neon.ml (rev_elems): New function.
8397 (permute_range): Likewise.
8398 (zip_range): Likewise.
8399 (uzip_range): Likewise.
8400 (trn_range): Likewise.
8401 (zip_elems): Likewise.
8402 (uzip_elems): Likewise.
8403 (trn_elems): Likewise.
8404 (features): New enumeration Use_shuffle. Delete ReturnPtr.
8407 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
8408 * config/arm/arm_neon.h: Regenerate.
8410 2012-07-05 Richard Guenther <rguenther@suse.de>
8412 * tree-pretty-print.c (dump_generic_node): Properly test
8413 the result of exact_log2.
8415 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8417 * config/s390/s390-protos.h (s390_expand_movmem)
8418 (s390_expand_cmpmem): Add return value.
8419 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
8420 Return FALSE to use the library function in some cases.
8421 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
8424 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8426 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
8428 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
8430 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
8431 * stmt.c (dump_case_nodes): New.
8432 (expand_case): Split out code generation parts into new functions.
8433 (expand_switch_as_decision_tree_p): Split out from expand_case.
8434 (emit_case_decision_tree): Likewise.
8435 (emit_case_dispatch_table): Likewise.
8437 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8439 * config/arm/iterators.md (SDF): New mode iterator.
8440 (V_if_elem): Add support for SF and DF modes.
8442 (F_constraint): New mode iterator attribute.
8443 (F_fma_type): Likewise.
8444 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
8445 (*fmsub<SDF:mode>4): Likewise.
8446 (*fmnsub<SDF:mode>4): Likewise.
8447 (*fmnadd<SDF:mode>4): Likewise.
8449 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
8451 * expmed.c (expand_mult): Initialize coeff and is_neg.
8453 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
8455 * config/sh/predicates.md (zero_extend_operand): New predicate.
8456 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
8457 zero_extend_operand predicate.
8458 (zero_extendqisi2): Likewise.
8460 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
8463 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
8464 to not call cgraph_propagate_frequency if something was changed.
8466 2012-07-04 Richard Guenther <rguenther@suse.de>
8469 * gimple-fold.c (get_base_constructor): Do not return an
8470 error_mark_node DECL_INITIAL.
8472 2012-07-04 Richard Guenther <rguenther@suse.de>
8474 PR tree-optimization/53844
8475 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
8476 the loop virtual PHI.
8478 2012-07-04 Richard Guenther <rguenther@suse.de>
8480 PR tree-optimization/53849
8481 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
8482 for duplicated locals. Use add_referenced_var_1 to avoid
8483 pushing/popping cfun.
8485 2012-07-04 Kai Tietz <ktietz@redhat.com>
8487 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
8488 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
8490 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
8491 as i386_pe_reloc_rw_mask.
8493 2012-07-04 Richard Guenther <rguenther@suse.de>
8495 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
8496 as in free_lang_data_in_type.
8498 2012-07-04 Tobias Grosser <tobias@grosser.es>
8499 Michael Matz <matz@suse.de>
8501 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
8502 (graphite-optimize-isl.o): Add dependencies.
8503 * common.opt (floop-nest-optimize): New flag.
8504 * doc/invoke.texi (floop-nest-optimize): Document.
8505 * graphite-dependences.c (compute_deps): Export.
8506 * graphite-poly.h (compute_deps): Declare.
8507 * graphite-optimize-isl.c: New file.
8508 * graphite-poly.c (apply_poly_transforms): Run the loop
8510 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
8511 if -floop-nest-optimize is enabled.
8513 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
8515 * config/sh/predicates.md (logical_and_operand): New predicate.
8516 * config/sh/constraints.md (Jmb, Jmw): New constraints.
8517 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
8518 of 0xFFFF constant. Use logical_and_operand predicate and
8519 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
8520 (*andsi3_compact): Make it an insn_and_split. Use
8521 logical_and_operand predicate. Add Jmb,Jmw alternatives.
8523 2012-07-03 Jason Merrill <jason@redhat.com>
8526 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
8528 2012-07-03 Nick Clifton <nickc@redhat.com>
8530 * config/mep/mep.c (mep_reorg_regmove): Use
8531 next_nonnote_non_debug_insn to advance to the next insn. Do not
8532 expect delete_insn to return an rtx.
8534 2012-07-03 Richard Guenther <rguenther@suse.de>
8536 * doc/install.texi (CLooG): Clarify how CLooG needs to be
8537 configured and that it needs to be built against ISL 0.10.
8539 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8541 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
8542 code model string in the error message.
8544 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8547 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
8548 sibcall_insn_operand. Move it to a temporary register if not.
8550 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
8553 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
8556 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
8558 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
8560 2012-07-03 Roland McGrath <mcgrathr@google.com>
8562 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
8563 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
8564 * configure: Regenerated.
8565 * config/i386/i386.md (simple_return_internal_long): Use %;
8566 (ctz<mode>2): Likewise.
8569 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
8572 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
8574 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
8575 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
8576 gen_branch_true and gen_branch_false.
8577 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
8579 (branch_true, branch_false): Use t_reg_operand predicate.
8580 (*branch_true, *branch_false): Delete.
8581 (movt): Use t_reg_operand predicate.
8582 (*negnegt): Use negt_reg_operand predicate and fold little and big
8584 (*movtt): Use t_reg_operand and fold little and big endian variants.
8587 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
8589 * stmt.c (emit_case_bit_tests): Remove.
8590 (expand_case): Remove expand_switch_using_bit_tests_p code.
8591 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
8592 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
8593 (lshift_cheap_p): Likewise.
8594 (expand_switch_using_bit_tests_p): Likewise.
8595 (struct case_bit_test): Likewise.
8596 (case_bit_test_cmp): Likewise.
8597 (emit_case_bit_tests): New implementation for GIMPLE.
8598 (gen_inbound_check): Do not release post-dominator info here.
8599 (process_switch): Reorder code. Expand as bit tests if it
8601 (do_switchconv): Release post-dominator info here if something changed.
8602 (struct gimple_opt_pass): Verify more.
8603 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
8605 2012-07-02 Martin Jambor <mjambor@suse.cz>
8608 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
8609 dynamic type change check.
8611 2012-07-02 Richard Guenther <rguenther@suse.de>
8612 Michael Matz <matz@suse.de>
8613 Tobias Grosser <tobias@grosser.es>
8614 Sebastian Pop <sebpop@gmail.com>
8616 * Makefile.in: Remove PPL flags in favor of ISL ones.
8617 (BACKENDLIBS): Remove PPL libs.
8618 (INCLUDES): Remove PPL includes in favor of ISL ones.
8619 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
8620 graphite-cloog-compat.h dependencies.
8621 (graphite-dependences.o): Likewise.
8622 (graphite-poly.o): Likewise.
8623 * configure.ac: Declare ISL vars instead of PPL ones.
8624 * configure: Regenerated.
8625 * doc/install.texi: Replace PPL requirement documentation with ISL one.
8626 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
8627 * graphite-clast-to-gimple.c: Likewise.
8628 * graphite-dependences.c: Likewise.
8629 * graphite-interchange.c: Likewise.
8630 * graphite-poly.h: Likewise.
8631 * graphite-poly.c: Likewise.
8632 * graphite-sese-to-poly.c: Likewise.
8633 * graphite.c: Likewise.
8634 * graphite-scop-detection.c: Re-arrange includes.
8635 * graphite-cloog-util.c: Remove.
8636 * graphite-cloog-util.h: Likewise.
8637 * graphite-ppl.h: Likewise.
8638 * graphite-ppl.c: Likewise.
8639 * graphite-dependences.h: Likewise.
8641 2012-07-02 Richard Guenther <rguenther@suse.de>
8643 Merge from graphite branch
8644 2011-07-21 Tobias Grosser <tobias@grosser.es>
8646 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
8647 Remove graphite-cloog-util.h.
8648 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
8649 build_iv_mapping, translate_clast_user, translate_clast,
8650 free_scattering, initialize_cloog_names, build_cloog_prog,
8651 create_params_index): Do not use old compatibility functions.
8652 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
8653 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
8654 compatibility functions.
8655 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
8657 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
8658 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
8660 * graphite-cloog-compat.h: Remove.
8662 2011-08-09 Tobias Grosser <tobias@grosser.es>
8664 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
8665 of the string, no just a reference.
8666 (clast_name_index): Add a new field, that specifies if we need to free
8668 (free_clast_name_index): If necessary, free the name string.
8669 (clast_name_index_elt_info): Calculate the hash based on the string
8670 content, not the memory location it is stored in.
8671 (clast_name_to_level): Specify that we do not need to free the name.
8672 (clast_name_to_index): Dito.
8673 (clast_name_to_lb_ub): Dito.
8674 (eq_clast_name_indexes): Compare the strings, not their base pointers.
8675 (free_scattering): Removed.
8676 (initialize_cloog_names): Renamed to add_names_to_union_domain().
8677 (add_names_to_union_domain): Changed to work on a union_domain,
8678 instead of a CloogNames structure.
8679 (build_cloog_prog): Removed.
8680 (build_cloog_union_domain): New.
8681 (generate_cloog_input): New.
8682 (scop_to_clast): Use CloogInput instead of CloogProgram.
8683 (print_generated_program): Adapt to new scop_to_clast() and do not
8684 print the CloogProgram any more.
8685 (create_params_index): Removed, functionality integrated in
8686 add_names_to_union_domain().
8687 (gloog): Adapt to new scop_to_clast().
8688 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
8690 2012-01-11 Tobias Grosser <tobias@grosser.es>
8692 * graphite-clast-to-gimple.c (clast_name_to_index,
8693 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
8694 (clast_to_gcc_expression): Add clast_expr_name as a new
8695 case. Do not assume a clast_expr_term points always to a
8697 (type_for_clast_term): Do not assume a clast_expr_term points always to
8699 (type_for_clast_name): New.
8700 (type_for_clast_expr): Add clast_expr_name as a new case.
8702 2011-08-03 Sebastian Pop <sebpop@gmail.com>
8704 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
8705 new_Cloog_Scattering_from_ppl_Polyhedron,
8706 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
8708 2012-07-02 Jakub Jelinek <jakub@redhat.com>
8710 PR tree-optimization/53645
8711 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
8712 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
8714 2012-07-01 Wei Guozhi <carrot@google.com>
8717 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
8718 * config/arm/arm.c (const_ok_for_dimode_op): New function.
8719 * config/arm/constraints.md (Dd): New constraint.
8720 * config/arm/predicates.md (arm_adddi_operand): New predicate.
8721 * config/arm/arm.md (adddi3): Extend it to handle constants.
8722 (arm_adddi3): Likewise.
8723 (addsi3_carryin_<optab>): Extend it to handle sbc case.
8724 (addsi3_carryin_alt2_<optab>): Likewise.
8725 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
8727 2012-06-30 Nathan Sidwell <nathan@acm.org>
8729 * coverage.c (bbg_file_stamp): New.
8730 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
8731 (build_info): Write bbg_file_stamp.
8732 (coverage_init): Initialize bbg_file_stamp. Read counts file
8733 before writing graph header.
8734 (coverage_finish): Don't unlink the data file if we can generate a
8736 * tree.h (crc32_unsigned): Declare.
8737 * tree.c (crc32_unsigned_bits): New, broken out of ...
8738 (crc32_byte): ... here. Use it.
8739 (crc32_unsigned): New.
8741 2012-06-29 Cary Coutant <ccoutant@google.com>
8743 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
8744 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
8745 (gen_variable_die): Likewise.
8746 (gen_namespace_die): Likewise.
8748 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
8750 * tree-eh.c (lower_try_finally_switch): Really put the location of the
8751 last statement of the finally block onto the switch.
8753 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
8756 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
8759 2012-06-29 Sterling Augustine <saugustine@google.com>
8761 * dwarf2out.c (add_pubname): Add comment.
8762 (add_pubtype): Fix indentation.
8763 (gen_enumeration_type_die): Likewise.
8765 2012-06-29 Jakub Jelinek <jakub@redhat.com>
8767 * tree-vect-generic.c (expand_vector_divmod): For even/odd
8768 widening multiply, put even always as first argument to VEC_PERM_EXPR.
8770 2012-06-29 Richard Henderson <rth@redhat.com>
8772 * tree-vect-generic.c: Include target.h.
8773 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
8774 * Makefile.in (tree-vect-generic.o): Update.
8776 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
8778 * configure.ac: Remove special gtfiles case for C.
8779 * configure: Regenerate.
8780 * Makefile.in: Remove C front-end hooks and build hooks that
8781 will be picked up from c/Make-lang.in now.
8782 Add tree-mudflap to C_COMMON_OBJS.
8783 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
8784 * config/vms/vms.c: Look for c-tree.h in c/.
8785 * doc/gty.texi: Remove reference to c-config-lang.in.
8786 * doc/sourcebuild.texi: Document the c/ subdirectory.
8788 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
8790 * system.h (CASE_USE_BIT_TESTS): Poison.
8791 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
8792 (expand_switch_using_bit_tests_p): ...here.
8793 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
8794 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
8796 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
8798 * system.h (IFCVT_EXTRA_FIELDS): Poison.
8799 (IFCVT_INIT_EXTRA_FIELDS): Poison.
8800 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
8801 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
8802 IFCVT_INIT_EXTRA_FIELDS.
8803 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
8804 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
8806 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
8807 frv_ifcvt_machdep_init.
8808 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
8809 Remove documentation.
8810 (IFCVT_MACHDEP_INIT): Document.
8811 * doc/tm.texi: Regenerate.
8813 2012-06-29 Nick Clifton <nickc@redhat.com>
8815 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
8817 2012-06-29 Jakub Jelinek <jakub@redhat.com>
8819 * tree-vect-stmts.c (vectorizable_operation): Check both
8820 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
8821 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
8823 2012-06-28 Richard Henderson <rth@redhat.com>
8825 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
8827 2012-06-28 Jakub Jelinek <jakub@redhat.com>
8829 PR tree-optimization/51581
8830 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
8831 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
8832 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
8833 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
8834 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
8835 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
8837 PR tree-optimization/53645
8838 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
8839 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
8842 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
8845 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
8846 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
8847 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
8848 avr_hard_regno_call_part_clobbered.
8850 2012-06-28 Richard Guenther <rguenther@suse.de>
8853 * expr.c (expand_expr_real_1): Verify if the type is complete
8854 before inspecting its size.
8856 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
8858 * doc/include/gpl.texi: Remove.
8859 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
8861 2012-06-28 Jakub Jelinek <jakub@redhat.com>
8863 PR tree-optimization/53645
8864 * tree-vect-generic.c (add_rshift): New function.
8865 (expand_vector_divmod): New function.
8866 (expand_vector_operation): Use it for vector integer
8867 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
8868 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
8869 unused lguup variable with dummy_int.
8871 2012-06-28 OLivier Hainque <hainque@adacore.com>
8873 * expr.c (convert_move): Latch mem integer inputs into a
8874 register before expanding a multi-instructions sequence.
8876 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
8877 Uros Bizjak <ubizjak@gmail.com>
8878 Jakub Jelinek <jakub@redhat.com>
8882 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
8883 (vt_finalize): ... here instead, if needed.
8885 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
8890 * dce.c (word_dce_process_block): Check whether inserting debug
8891 temps are needed even for needed insns.
8892 (dce_process_block): Likewise.
8893 * df-problems.c (dead_debug_add): Add comment about multi-regs.
8894 (dead_debug_insert_temp): Likewise. Don't subreg when we're
8895 setting fewer regs than a multi-reg requires.
8897 2012-06-27 Richard Henderson <rth@redhat.com>
8899 * config/alpha/alpha.c (alpha_dimode_u): New.
8900 (alpha_init_builtins): Initialize it, and use it.
8901 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
8902 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
8903 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
8904 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
8905 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
8906 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
8907 (alpha_fold_builtin_ctpop): Likewise.
8908 (alpha_fold_builtin_umulh): Remove.
8909 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
8910 typo in MAX_ARGS check.
8912 2012-06-27 Richard Henderson <rth@redhat.com>
8914 * tree.def (MULT_HIGHPART_EXPR): New.
8915 * cfgexpand.c (expand_debug_expr): Ignore it.
8916 * expr.c (expand_expr_real_2): Handle it.
8917 * fold-const.c (int_const_binop_1): Likewise.
8918 * optabs.c (optab_for_tree_code): Likewise.
8919 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
8920 * tree-inline.c (estimate_operator_cost): Likewise.
8921 * tree-pretty-print.c (dump_generic_node): Likewise.
8922 (op_code_prio, op_symbol_code): Likewise.
8923 * tree.c (commutative_tree_code): Likewise. Also handle
8924 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
8926 2012-06-27 Richard Henderson <rth@redhat.com>
8929 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
8930 in 2012-06-23 change. Adjust two other DImode tests as well.
8932 2012-06-27 Nick Clifton <nickc@redhat.com>
8934 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
8937 2012-06-27 Richard Guenther <rguenther@suse.de>
8940 * tree-chrec.c (chrec_convert_1): Represent truncation to
8941 a type with undefined overflow as truncation to an unsigned
8942 type converted to the type with undefined overflow.
8943 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
8944 the scalar evolution of a truncated widened operation avoid
8945 looking at the non-existing evolution of the widened operation
8948 2012-06-27 Richard Guenther <rguenther@suse.de>
8950 PR tree-optimization/53774
8951 * tree-ssa-reassoc.c (get_rank): All default defs have
8953 (init_reassoc): Precompute rank for all SSA default defs.
8955 2012-06-27 Nick Clifton <nickc@redhat.com>
8957 * config/rx/rx.md (simple_return): Use the simple_return rtx.
8959 2012-06-26 Richard Henderson <rth@redhat.com>
8961 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
8962 and don't fall thru from standard_80387_constant_p to the memory
8965 2012-06-26 Richard Henderson <rth@redhat.com>
8967 * config/i386/i386.c (bdesc_args): Update. Change
8968 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
8969 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
8970 (ix86_builtin_mul_widen_even): Use it.
8971 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
8972 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
8973 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
8975 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
8976 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
8977 (vec_widen_smult_even_v4si): New.
8979 2012-06-26 Richard Henderson <rth@redhat.com>
8981 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
8982 to expander; move guts to ...
8983 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
8984 highparts before shifting up.
8985 * config/i386/i386-protos.h: Update.
8987 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
8989 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
8990 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
8991 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
8993 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
8995 * var-tracking.c (vt_add_function_parameter): Use a preserved
8996 VALUE for the MEM address of an incoming parameter.
8998 2012-06-26 Sterling Augustine <saugustine@google.com>
9000 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
9001 (prune_unused_types): Likewise.
9003 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
9005 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9006 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
9007 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
9008 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
9009 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
9010 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
9011 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
9012 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
9013 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
9015 * doc/tm.texi: Regenerate.
9016 * doc/cpp.texi: Make example for #error generic.
9017 * config/frv/frv.h: Fix example text to match tm.texi.
9019 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
9021 * tree-pass.h (pass_strength_reduction): New decl.
9022 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
9023 (finalize_costs): Likewise.
9024 * timevar.def (TV_TREE_SLSR): New timevar.
9025 * gimple-ssa-strength-reduction.c: New.
9026 * tree-flow.h (initialize_costs): New decl.
9027 (finalize_costs): Likewise.
9028 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
9029 * passes.c (init_optimization_passes): Add pass_strength_reduction.
9031 2012-06-26 Matt Turner <mattst88@gmail.com>
9033 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
9034 (__builtin_arm_tinsrh): Likewise.
9035 (__builtin_arm_tinsrw): Likewise.
9036 (__builtin_arm_wsadb): Add missing v2si parameter.
9037 (__builtin_arm_wsadh): Likewise.
9038 (__builtin_arm_getwcx): Delete.
9039 (__builtin_arm_setwcx): Delete.
9040 (__builtin_arm_getwcgr0): Add.
9041 (__builtin_arm_getwcgr1): Add.
9042 (__builtin_arm_getwcgr2): Add.
9043 (__builtin_arm_getwcgr3): Add.
9044 (__builtin_arm_setwcgr0): Add.
9045 (__builtin_arm_setwcgr1): Add.
9046 (__builtin_arm_setwcgr2): Add.
9047 (__builtin_arm_setwcgr3): Add.
9049 2012-06-26 Richard Guenther <rguenther@suse.de>
9052 2012-06-21 Richard Guenther <rguenther@suse.de>
9054 * tree-inline.c (estimate_num_insns): Estimate call cost for
9057 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
9060 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
9061 * doc/tm.texi: Regenerate.
9063 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
9066 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
9067 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
9068 * doc/tm.texi.in: Remove documentation for unused target macros
9069 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
9070 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
9071 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
9072 TARGET_NARROW_VOLATILE_BITFIELDS.
9073 Document that MD_HANDLE_UNWABI is a macro in libgcc.
9074 * doc/tm.texi: Regenerate.
9075 * system.h: Poison target macros
9076 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
9077 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
9078 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
9079 TARGET_NARROW_VOLATILE_BITFIELDS
9081 2012-06-26 Jan Hubicka <jh@suse.cz>
9084 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
9087 2012-06-26 Dehao Chen <dehao@google.com>
9089 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
9090 source location is consistant with the call stmt.
9092 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
9094 PR tree-optimization/53729
9095 PR tree-optimization/53636
9096 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
9097 vect_verify_datarefs_alignment until after statements have
9098 been marked as relevant/irrelevant.
9099 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
9100 Skip irrelevant statements.
9101 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
9102 instead of STMT_VINFO_RELEVANT.
9103 (vect_get_data_access_cost): Do not check for supportable
9104 alignment before calling vect_get_load_cost/vect_get_store_cost.
9105 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
9106 handling unsupported alignment.
9107 (vect_get_load_cost): Likewise.
9109 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
9111 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
9112 Do not define JMP_BUF_SIZE.
9114 2012-06-26 Jakub Jelinek <jakub@redhat.com>
9116 PR tree-optimization/53748
9117 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
9118 if arg0/arg1 have integral or pointer types.
9120 2012-06-25 Richard Henderson <rth@redhat.com>
9122 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
9123 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
9124 (sdot_prodv4si): New; handle only XOP.
9126 2012-06-25 Richard Henderson <rth@redhat.com>
9128 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
9129 (V2UDI_FUNC_V4USI_V4USI): New.
9130 (V4UDI_FUNC_V8USI_V8USI): New.
9131 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
9132 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
9133 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
9134 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
9135 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
9136 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
9137 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
9138 (bdesc_args): Add them.
9139 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
9140 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
9141 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
9142 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
9143 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
9145 2012-06-25 Richard Henderson <rth@redhat.com>
9147 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
9149 2012-06-25 Richard Henderson <rth@redhat.com>
9151 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
9153 (ix86_expand_vec_interleave): New.
9154 (ix86_expand_mul_widen_evenodd): New.
9155 (ix86_expand_mul_widen_hilo): New.
9156 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
9157 * config/i386/i386.md (u_bool) New code attr.
9158 * config/i386/predicates.md
9159 (nonimmediate_or_const_vector_operand): Remove.
9160 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
9161 both AVX and SSE4_1.
9162 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
9163 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
9164 (vec_widen<s>mult_hi_v8si): Remove.
9165 (vec_widen<s>mult_lo_v8si): Remove.
9166 (vec_widen_smult_hi_v4si): Remove.
9167 (vec_widen_smult_lo_v4si): Remove.
9168 (vec_widen_umult_hi_v4si): Remove.
9169 (vec_widen_umult_lo_v4si): Remove.
9170 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
9171 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
9172 * config/i386/i386-protos.h: Update.
9174 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
9176 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
9177 (neon_vld1_dup): Restrict to VQ operands.
9178 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
9180 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9181 James Greenhalgh <james.greenhalgh@arm.com>
9183 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
9184 (TARGET_FMA): New macro.
9185 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
9186 (TARGET_ARM_ARCH): Likewise.
9187 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
9188 (TARGET_V6M, TARGET_V7M): Likewise.
9189 (TARGET_ARM_ARCH_PROFILE): Likewise.
9190 (TARGET_ARM_FEATURE_LDREX): Likewise.
9191 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
9192 (ARM_MIN_ENUM_SIZE): Likewise.
9193 * config/arm/arm.c (arm_file_start): Refactor appropriately.
9194 (base_architecture): New enumeration.
9195 (arm_base_arch): New global variable.
9196 (processors): Add field base_arch.
9197 (ARM_ARCH, ARM_CORE): Adjust accordingly.
9198 (arm_option_override): Add initialization of arm_base_arch.
9199 * doc/cpp.texi (system-specific predefined macros.): Change.
9201 2012-06-25 Jakub Jelinek <jakub@redhat.com>
9204 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
9205 of x x x in the vmovlps load alternative.
9207 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
9210 * df.h (dead_debug_add): Remove third argument.
9211 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
9212 REG that we want to replace instead.
9213 (dead_debug_insert_temp): Use the REGNO of the reg that we want
9214 to replace instead of DF_REF_REGNO. Require there to always be
9215 at least one such use. Check for cases where the same location
9216 has more than df_ref associated with it.
9217 (df_note_bb_compute): Remove third dead_debug_add argument.
9218 * dce.c (word_dce_process_block): Likewise.
9220 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
9222 * config/v850/v850.c: Remove redundant extern declarations for
9223 last_assemble_variable_decl and size_directive_output.
9225 * doc/tm.texi.in: Document JMP_BUF_SIZE.
9226 * doc/tm.texi: Regenerate.
9227 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
9228 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
9229 * config/stormy16/stormy16.h: Likewise.
9231 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
9233 * doc/sourcebuild.texi: Add missing subdirectories.
9235 2012-06-25 Tristan Gingold <gingold@adacore.com>
9237 * config/i386/i386.h: Fix typo.
9239 2012-06-25 Tristan Gingold <gingold@adacore.com>
9241 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
9242 (seh_cfa_adjust_cfa): ... that function.
9243 (seh_emit_stackalloc): Do not emit out of range values.
9244 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
9245 UNSPEC_DEF_CFA constants.
9246 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
9247 * config/i386/i386.c (ix86_frame_pointer_required): Required
9248 for very large frames on SEH target.
9249 (ix86_compute_frame_layout): Save area is before frame pointer
9250 on SEH target. Handle very large frames.
9251 (ix86_expand_prologue): Likewise.
9253 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
9255 * output.h: (current_function_is_leaf,
9256 current_function_sp_is_unchanging,
9257 current_function_uses_only_leaf_regs): Remove.
9258 * function.c (current_function_is_leaf,
9259 current_function_sp_is_unchanging,
9260 current_function_uses_only_leaf_regs): Remove.
9261 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
9262 instead of current_function_uses_only_leaf_regs.
9263 * function.h (struct rtl_data): New fields sp_is_unchanging,
9264 is_leaf, uses_only_leaf_regs.
9265 * resource.c (init_resource_info): Replace current_function_is_leaf,
9266 current_function_sp_is_unchanging, and
9267 current_function_uses_only_leaf_regs with new crtl fields.
9268 * sdbout.c (sdbout_symbol): Likewise.
9269 * df-core.c (rest_of_handle_df_initialize): Likewise.
9270 * ira.c (ira): Likewise.
9271 * final.c (final_start_function): Likewise.
9272 * reorg.c (fill_simple_delay_slots): Likewise.
9273 * regrename.c (check_new_reg_p): Likewise.
9274 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
9275 (notice_stack_pointer_modification): Likewise.
9276 * dbxout.c (dbxout_symbol): Likewise.
9277 (dbxout_parms): Likewise.
9278 * sel-sched.c (init_regs_for_mode): Likewise.
9279 * dwarf2out.c (dbx_reg_number): Likewise.
9280 (multiple_reg_loc_descriptor): Likewise.
9281 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
9282 (gen_pop): Likewise.
9283 (ix86_select_alt_pic_regnum): Likewise.
9284 (ix86_compute_frame_layout): Likewise.
9285 (ix86_finalize_stack_realign_flags): Likewise.
9286 (ix86_expand_epilogue): Likewise.
9287 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
9288 * config/h8300/h8300.c (byte_reg): Likewise.
9289 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
9290 (c6x_save_reg): Likewise.
9291 (c6x_compute_frame_layout): Likewise.
9292 * config/pa/pa.c (pa_compute_frame_size): Likewise.
9293 (pa_output_function_prologue): Likewise.
9294 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
9295 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
9296 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
9297 (sparc_expand_prologue): Likewise.
9298 (sparc_flat_expand_prologue): Likewise.
9299 (sparc_asm_function_prologue): Likewise.
9300 (sparc_output_mi_thunk): Likewise.
9301 (sparc_frame_pointer_required): Likewise.
9302 * config/epiphany/epiphany.c (epiphany_compute_function_type):
9304 (epiphany_compute_frame_size): Likewise.
9305 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
9306 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
9307 (cris_frame_pointer_required): Likewise.
9308 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
9309 (tilepro_current_function_is_leaf): Likewise.
9310 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
9311 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
9312 * config/ia64/ia64.c (find_gr_spill): Likewise.
9313 (ia64_compute_frame_size): Likewise.
9314 (ia64_can_eliminate): Likewise.
9315 (ia64_initial_elimination_offset): Likewise.
9316 * config/m68k/m68k.c (m68k_save_reg): Likewise.
9317 (m68k_expand_epilogue): Likewise.
9318 * config/rx/rx.c (rx_get_stack_layout): Likewise.
9319 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
9320 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
9322 (picochip_output_frame_debug): Likewise.
9323 * config/sh/sh.c (sh_media_register_for_return): Likewise.
9324 (sh_allocate_initial_value): Likewise.
9325 (sh_output_mi_thunk): Likewise.
9326 * config/microblaze/microblaze.c (microblaze_must_save_register):
9328 (compute_frame_size): Likewise.
9329 (microblaze_initial_elimination_offset): Likewise.
9330 (microblaze_expand_prologue): Likewise.
9331 (microblaze_expand_epilogue): Likewise.
9332 * config/frv/frv.c (frv_expand_epilogue): Likewise.
9333 (frv_frame_pointer_required): Likewise.
9334 * config/spu/spu.c (get_pic_reg): Likewise.
9335 (direct_return): Likewise.
9336 (spu_expand_prologue): Likewise.
9337 (spu_expand_epilogue): Likewise.
9338 (spu_initial_elimination_offset): Likewise.
9339 * config/mips/mips.c (mips_global_pointer): Likewise.
9340 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
9341 (mips_compute_frame_info): Likewise.
9342 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
9343 (mep_reload_pointer): Likewise.
9344 * config/rl78/rl78.c (need_to_save): Likewise.
9345 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
9346 * config/score/score.c (score_compute_frame_size): Likewise.
9347 (score_function_prologue): Likewise.
9348 * config/bfin/bfin.c (must_save_p): Likewise.
9349 (expand_prologue_reg_save): Likewise.
9350 (expand_epilogue_reg_restore): Likewise.
9351 (bfin_frame_pointer_required): Likewise.
9352 (n_regs_saved_by_prologue): Likewise.
9353 (add_to_reg): Likewise.
9354 (expand_interrupt_handler_prologue): Likewise.
9355 (expand_interrupt_handler_epilogue): Likewise.
9356 (bfin_expand_prologue): Likewise.
9357 * config/avr/avr.c (avr_regs_to_save): Likewise.
9358 (avr_prologue_setup_frame): Likewise.
9359 (expand_epilogue): Likewise.
9360 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
9361 (s390_register_info): Likewise.
9362 (s390_frame_info): Likewise.
9363 (s390_init_frame_layout): Likewise.
9364 (s390_emit_prologue): Likewise.
9367 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
9369 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
9370 * vmsdbgout: Do not undefine it if defined.
9371 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
9372 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
9373 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
9375 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
9377 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
9379 2012-06-23 Richard Henderson <rth@redhat.com>
9382 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
9383 V*QImode shifts and multiply.
9384 (ix86_expand_vecop_qihi): Support shifts.
9385 * config/i386/i386.md (any_shift): New code iterator.
9386 * config/i386/sse.md (ashlv16qi3): Merge ...
9387 (<any_shiftrt>v16qi3): ... into ...
9388 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
9389 to support SSE and AVX.
9391 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
9392 parameter into src and dest.
9393 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
9394 (vec_unpacks_hi_<V124_AVX2>): Likewise.
9395 (vec_unpacku_lo_<V124_AVX2>): Likewise.
9396 (vec_unpacks_lo_<V124_AVX2>): Likewise.
9397 * config/i386/i386-protos.h: Update.
9399 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
9400 pure expander; move expansion code ...
9401 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
9402 * config/i386/i386-protos.h: Update.
9404 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
9406 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
9407 (popcntb<mode>2): Add attribute type popcnt.
9408 (popcntd<mode>2): Ditto.
9409 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
9410 * config/rs6000/power5.md (define_insn_reservation): Ditto.
9411 * config/rs6000/power7.md (define_insn_reservation): Ditto.
9412 * config/rs6000/476.md (define_insn_reservation): Ditto.
9413 * config/rs6000/power6.md (define_insn_reservation): New
9414 reservation for popcnt instructions.
9416 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
9418 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
9420 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
9423 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
9425 * config/i386/i386.c (ix86_option_override_internal): Allow
9426 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
9428 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
9431 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
9433 * double-int.c (double_int_multiple_of): New function.
9434 * double-int.h (double_int_multiple_of): New decl.
9435 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
9436 (mbc_entry_hash): New forward decl.
9437 (mbc_entry_eq): Likewise.
9438 (zero_cost): Change to no_cost.
9439 (mult_costs): New static var.
9440 (cost_tables_exist): Likewise.
9441 (initialize_costs): New function.
9442 (finalize_costs): Likewise.
9443 (tree_ssa_iv_optimize_init): Call initialize_costs.
9444 (add_cost): Change to add_regs_cost; distinguish costs by speed.
9445 (multiply_regs_cost): New function.
9446 (add_const_cost): Likewise.
9447 (extend_or_trunc_reg_cost): Likewise.
9448 (negate_reg_cost): Likewise.
9449 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
9451 (get_address_cost): Change add_cost to add_regs_cost; change
9452 multiply_by_cost to multiply_by_const_cost.
9453 (force_expr_to_var_cost): Change zero_cost to no_cost; change
9454 add_cost to add_regs_cost; change multiply_by_cost to
9455 multiply_by_const_cost.
9456 (split_cost): Change zero_cost to no_cost.
9457 (ptr_difference_cost): Likewise.
9458 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
9459 to multiply_by_const_cost.
9460 (get_computation_cost_at): Change add_cost to add_regs_cost; change
9461 multiply_by_cost to multiply_by_const_cost.
9462 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
9463 (determine_iv_cost): Change add_cost to add_regs_cost.
9464 (iv_ca_new): Change zero_cost to no_cost.
9465 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
9466 * tree-ssa-address.c (most_expensive_mult_to_index): Change
9467 multiply_by_cost to multiply_by_const_cost.
9468 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
9469 (add_regs_cost): New decl.
9470 (multiply_regs_cost): Likewise.
9471 (add_const_cost): Likewise.
9472 (extend_or_trunc_reg_cost): Likewise.
9473 (negate_reg_cost): Likewise.
9475 2012-06-22 Richard Guenther <rguenther@suse.de>
9477 Merge from graphite branch
9478 2011-08-10 Sebastian Pop <sebpop@gmail.com>
9480 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
9482 2012-01-13 Tobias Grosser <tobias@grosser.es>
9484 * tree-flow.h (parallelized_function_p): Declare.
9485 * tree-parloops.c (parallelized_function_p): Export.
9486 * graphite.c (graphite_transform_loops): Do not run graphite on
9487 already parallel functions.
9489 2012-06-22 Alan Modra <amodra@gmail.com>
9491 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
9492 return mem. Convert to indirect addressing if not indirect or
9493 indexed. Adjust all callers.
9495 2012-06-22 Richard Guenther <rguenther@suse.de>
9497 * gcov-iov.c: Include bconfig.h and system.h.
9499 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
9501 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
9503 2012-06-22 Richard Guenther <rguenther@suse.de>
9505 PR gcov-profile/53744
9506 * gcov-iov.c (main): Treat "" and "prerelease" the same.
9508 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
9511 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
9512 for GNU Fortran if in strict DWARF2 mode.
9514 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
9516 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
9517 DECL_IGNORED_P non-reg vars even if they are used.
9519 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
9523 * var-tracking.c (vt_get_canonicalize_base): New.
9524 (vt_canonicalize_addr, vt_stack_offset_p): New.
9525 (vt_canon_true_dep): New.
9526 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
9527 (clobber_overlaping_mems): Use vt_canonicalize_addr.
9529 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
9533 * var-tracking.c (vt_initialize): Record initial offset between
9534 arg pointer and stack pointer.
9536 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
9540 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
9543 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
9547 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
9549 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
9551 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
9553 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
9556 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
9558 2012-06-21 Meador Inge <meadori@codesourcery.com>
9561 * c-decl.c (c_push_function_context): Restore the behavior to reuse
9562 the language function allocated for -Wunused-local-typedefs.
9563 (c_pop_function_context): If necessary, clear the language function
9564 created in c_push_function_context. Always clear out the
9565 x_cur_stmt_list field of the restored language function.
9567 2012-06-21 Sterling Augustine <saugustine@google.com>
9568 Cary Coutant <ccoutant@google.com>
9570 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
9571 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
9572 (comdat_type_struct): New field 'skeleton_die'.
9573 (breakout_comdat_types): Update it.
9574 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
9575 is_namespace_die. Fix minor style violation. Call want_pubnames.
9576 (add_pubname_string): Call want_pubnames.
9577 (add_pubtype): Rework logic for calculating type name. Call
9578 is_namespace_die. Call want_pubnames.
9579 (output_pubnames): Move conditional logic deciding when to produce the
9580 section from dwarf2out_finish. Use new skeleton_die field.
9581 (base_type_die): Call add_pubtype.
9582 (gen_enumeration_type_die): Unconditionally call add_pubtype.
9583 (gen_subprogram_die): Adjust calls to add_pubname.
9584 (gen_namespace_die): Call add_pubname_string.
9585 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
9586 produce pubnames and pubtypes sections to output_pubnames.
9587 * common.opt (-gpubnames): New option.
9588 * doc/invoke.texi: Document it.
9590 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
9592 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
9594 2012-06-21 Michael Matz <matz@suse.de>
9597 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
9600 2012-06-21 Richard Guenther <rguenther@suse.de>
9602 * tree-inline.c (estimate_num_insns): Estimate call cost for
9605 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
9607 * tree.h (DECL_SOURCE_COLUMN): New accessor.
9609 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
9611 * config/i386/i386.md (SINCOS): New int iterator.
9612 (sincos): New int attribute.
9613 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
9614 SINCOS int iterator.
9615 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
9616 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
9618 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
9620 * config/i386/i386.md (RDFSGSBASE): New int iterator.
9621 (WRFSGSBASE): Ditto.
9622 (fsgs): New int attribute.
9623 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
9624 RDFSGSBASE int iterator.
9625 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
9626 WRFSGSBASE int iterator.
9628 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
9630 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
9631 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
9632 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
9633 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
9636 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
9638 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
9640 2012-06-20 Richard Guenther <rguenther@suse.de>
9642 PR tree-optimization/30318
9643 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
9645 (range_int_cst_singleton_p): But explicitely here.
9646 (zero_nonzero_bits_from_vr): And here.
9647 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
9648 to cover all cases we can perform arbitrary precision
9649 arithmetic with double-ints.
9650 (intersect_ranges): Handle adjacent anti-ranges.
9652 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
9654 * config/i386/i386.md (rounding_insn): New int attribute.
9655 (<rounding_insn>xf2): Macroize insn from
9656 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
9657 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
9659 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
9661 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
9662 (ieee_maxmin): New int attribute.
9663 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
9664 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
9666 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
9668 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
9669 * config/arm/arm.c: Do not include c-pragma.h.
9670 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
9671 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
9672 to arm_emit_eabi_attribute.
9673 * arm-c.c: Do not include output.h.
9674 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
9675 call to arm_emit_eabi_attribute.
9676 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
9678 2012-06-20 Richard Guenther <rguenther@suse.de>
9680 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9681 Allow adjusting alignment of user-aligned decls again.
9683 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
9685 * config/rl78/rl78-c.c: Remove unnecessary includes.
9687 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
9689 * config/cris/cris.c: Include cgraph.h.
9690 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
9692 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
9694 * emit-rtl.c (need_atomic_barrier_p): New function.
9695 * emit-rtl.h (need_atomic_barrier_p): Declare it.
9696 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
9697 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
9698 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
9699 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
9700 (mips_process_sync_loop): Use generic version instead.
9702 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
9704 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
9707 2012-06-19 Tom de Vries <vries@codesourcery.com>
9708 Maxim Kuvyrkov <maxim@codesourcery.com>
9710 * config/mips/constraints.md (ZR): New constraint.
9711 * config/mips/predicates.md (mem_noofs_operand): New predicate.
9712 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
9713 * config/mips/mips.h (TARGET_XLP): Define.
9714 (TARGET_SYNC_AFTER_SC): Update.
9715 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
9716 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
9717 XLP-specific swap and ldadd patterns.
9718 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
9720 2012-06-19 Tom de Vries <vries@codesourcery.com>
9721 Maxim Kuvyrkov <maxim@codesourcery.com>
9723 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
9724 (mips_emit_post_atomic_barrier_p): New static functions.
9725 (mips_process_sync_loop): Use them. Emit sync memory barriers in
9726 accordance with memory model semantics. Add return of CMP result for
9728 * config/mips/mips.md: Update comment.
9729 (sync_cmp): New attribute.
9730 (sync_memmodel): New attribute replacing sync_release_barrier.
9731 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
9732 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
9733 (sync_lock_test_and_set, test_and_set_12): Update.
9734 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
9735 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
9737 2012-06-19 Joseph Myers <joseph@codesourcery.com>
9739 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
9740 mov_si<mode>_e500_subreg0.
9741 (*mov_si<mode>_e500_subreg0_elf_low)
9742 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
9744 2012-06-19 Richard Henderson <rth@redhat.com>
9746 * config/alpha/alpha.c: Include params.h.
9747 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
9748 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
9750 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
9752 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
9753 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
9754 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
9756 * doc/tm.texi: Regenerate.
9757 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
9759 * config/darwin-c.c: Include target.h.
9760 (darwin_objc_declare_unresolved_class_reference): New function.
9761 (darwin_objc_declare_class_definition): New function.
9762 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
9763 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
9765 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
9767 * target.def (output_ident): New hook.
9768 * targhooks.h (default_asm_output_ident_directive): Add prototype.
9769 * varasm.c (assemble_asm): Only prefix a tab if the string does not
9770 already start with one.
9771 (default_asm_output_ident_directive): New function to emit
9772 .ident as a top-level asm node while parsing, or directly to
9773 asm_out_file after parsing.
9774 * toplev.c (compile_file): Print a GCC .ident with
9775 targetm.asm_out.output_ident.
9776 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
9777 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
9778 * doc/tm.texi: Update.
9780 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
9781 (TARGET_ASM_OUTPUT_IDENT): Define.
9782 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
9783 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
9784 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
9785 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
9786 (TARGET_ASM_OUTPUT_IDENT): Define.
9787 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
9788 (TARGET_ASM_OUTPUT_IDENT): Define.
9790 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
9791 * config/cris/cris.c (cris_asm_output_ident): New function.
9792 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
9794 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
9796 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
9797 (microblaze_asm_output_ident): Rewrite to work similar to
9798 default_asm_output_ident_directive for front-end .idents.
9799 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
9800 (TARGET_ASM_OUTPUT_IDENT): Define.
9802 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
9803 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
9805 * config/rx/rx.c: Include cgraph.h for add_asm_node.
9806 (rx_asm_output_ident): New function, similar to
9807 default_asm_output_ident_directive, but handle AS100 syntax also, so
9808 that #ident also works for rx in AS100 syntax.
9809 (TARGET_ASM_OUTPUT_IDENT): Define.
9810 * config/rx/rx.h (IDENT_ASM_OP): Remove.
9812 * Makefile.in: Fix dependencies for c-family/c-lex.o.
9814 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
9816 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
9817 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
9819 (*fist<mode>2_<rounding>_1): Macroize insn from
9820 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
9821 (fistdi2_<rounding>): Macroize insn from
9822 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
9823 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
9824 corresponding splitters from fistdi2_{floor,ceil} and corresponding
9825 splitters using FIST_ROUNDING int iterator.
9826 (fist<mode>2_<rounding>): Macroize insn from
9827 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
9828 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
9829 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
9830 splitters using FIST_ROUNDING int iterator.
9831 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
9832 using FIST_ROUNDING int iterator.
9834 2012-06-19 Richard Henderson <rth@redhat.com>
9836 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
9837 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
9838 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
9839 * config/i386/sse.md (sse2_mulv4si3): Delete.
9840 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
9841 nonimmediate_or_const_vector_operand.
9843 2012-06-19 Richard Henderson <rth@redhat.com>
9845 * expmed.c (struct init_expmed_rtl): Split ...
9846 (init_expmed_one_mode): ... out of ...
9847 (init_expmed): ... here. Initialize integer vector modes also.
9848 (synth_mult): Handle integer vector modes.
9849 (choose_mult_variant): Likewise.
9850 (expand_mult_const): Likewise.
9851 (expand_mult): Likewise.
9852 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
9854 2012-06-19 Richard Henderson <rth@redhat.com>
9856 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
9857 integral vector modes.
9859 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
9861 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
9862 (rounding): New int attribute.
9864 (frndintxf2_<rounding>): Macroize insn from
9865 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
9866 (frndintxf2_<rounding>_i387): Macroize insn from
9867 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
9869 2012-06-19 Richard Guenther <rguenther@suse.de>
9871 * tree-vrp.c (union_ranges): New function.
9872 (vrp_meet_1): Use union_ranges.
9873 (vrp_meet): Dump what we union and call vrp_meet_1.
9875 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
9877 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
9878 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
9879 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
9880 (attr write_conflict, attr core_cycles): Update.
9881 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
9883 2012-06-19 Richard Guenther <rguenther@suse.de>
9885 * tree-vrp.c (intersect_ranges): Handle more cases.
9886 (vrp_intersect_ranges): Dump what we intersect and call ...
9887 (vrp_intersect_ranges_1): ... this.
9889 2012-06-19 Richard Guenther <rguenther@suse.de>
9891 PR tree-optimization/53708
9892 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
9893 user-supplied alignment and alignment of decls with the used
9896 2012-06-18 Lawrence Crowl <crowl@google.com>
9898 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
9899 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
9900 (TV_PHASE_STREAM_IN): New.
9901 (TV_PHASE_STREAM_OUT): New.
9902 * timevar.c (validate_phases): New.
9903 (timevar_print): Call validate_phases.
9904 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
9905 to TV_PHASE_OPT_GEN.
9906 * langhooks.c (write_global_declarations): Rename use of
9907 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
9908 TV_PHASE_CHECK_DBGINFO.
9909 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
9910 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
9911 lang_hooks.decls.final_write_globals.
9913 2012-06-18 David Edelshn <dje.gcc@gmail.com>
9915 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
9917 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
9920 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
9921 (*sse4_2_pcmpistr_unaligned): New.
9923 2012-06-18 Ian Bolton <ian.bolton@arm.com>
9924 Sameera Deshpande <sameera.deshpande@arm.com>
9925 Greta Yorsh <greta.yorsh@arm.com>
9927 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
9928 * config/arm/arm.c (print_multi_reg): Remove.
9929 (vfp_output_fldmd): Likewise.
9930 (arm_output_epilogue): Likewise.
9931 * config/arm/arm.md (epilogue_insns): Update condition and code.
9933 2012-06-18 Ian Bolton <ian.bolton@arm.com>
9934 Sameera Deshpande <sameera.deshpande@arm.com>
9935 Greta Yorsh <greta.yorsh@arm.com>
9937 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
9938 * config/arm/arm.c (thumb2_expand_return): New function.
9939 * config/arm/arm.md (return): Update condition and code.
9941 2012-06-18 Ian Bolton <ian.bolton@arm.com>
9942 Sameera Deshpande <sameera.deshpande@arm.com>
9943 Greta Yorsh <greta.yorsh@arm.com>
9945 * config/arm/arm-protos.h (output_return_instruction): New parameter
9946 and int to bool change of parameter types.
9947 * config/arm/arm.c (output_return_instruction): Likewise.
9948 * config/arm/arm.md (arm_simple_return): New pattern.
9949 (arm_return, cond_return, cond_return_inverted): Add new arguments.
9950 * config/arm/thumb2.md (thumb2_return): Update condition and code.
9952 2012-06-18 Ian Bolton <ian.bolton@arm.com>
9953 Sameera Deshpande <sameera.deshpande@arm.com>
9954 Greta Yorsh <greta.yorsh@arm.com>
9956 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
9957 * config/arm/arm.c (arm_expand_epilogue): New function.
9958 * config/arm/arm.md (epilogue): Update condition and code.
9959 (sibcall_epilogue): Likewise.
9961 2012-06-18 Ian Bolton <ian.bolton@arm.com>
9962 Sameera Deshpande <sameera.deshpande@arm.com>
9963 Greta Yorsh <greta.yorsh@arm.com>
9965 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
9966 * config/arm/arm.md (arm_addsi3) Add an alternative.
9968 2012-06-18 Ian Bolton <ian.bolton@arm.com>
9969 Sameera Deshpande <sameera.deshpande@arm.com>
9970 Greta Yorsh <greta.yorsh@arm.com>
9972 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
9973 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
9974 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
9976 2012-06-18 Ian Bolton <ian.bolton@arm.com>
9977 Sameera Deshpande <sameera.deshpande@arm.com>
9978 Greta Yorsh <greta.yorsh@arm.com>
9980 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
9981 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
9982 (pop_multiple_with_return, ldr_with_return) Likewise.
9983 * config/arm/predicates.md (pop_multiple_return) New special predicate.
9984 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
9985 * config/arm/arm.c (arm_output_multireg_pop) New function.
9986 (arm_emit_multi_reg_pop): New function.
9988 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
9990 * config/arm/arm.c (ldm_stm_operation_p): Require SP
9991 as base register for loads if SP is in the register list.
9993 2012-06-18 Richard Guenther <rguenther@suse.de>
9995 PR tree-optimization/53693
9996 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
9997 Reject operands with more than one use.
9999 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
10001 PR tree-optimization/53703
10002 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
10003 correctly set bb_for_def[12].
10005 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
10007 * config/vax/vax.h (VMS_TARGET): Remove.
10009 2012-06-18 Richard Guenther <rguenther@suse.de>
10011 * tree-vrp.c (extract_range_from_assert): Split out range
10013 (intersect_ranges): New function.
10014 (vrp_intersect_ranges): Likewise.
10016 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10018 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
10021 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
10023 * doc/md.texi: Document int iterators.
10024 * read-rtl.c (ints): New iterator group.
10025 (find_int): Int iterator group callback.
10026 (apply_int_iterator): Likewise.
10027 (apply_iterators): Traverse int iterator table and add all the used
10029 (initialize_iterators): Initialize data structures and callbacks for
10031 (read_rtx): Parse and read mappings for int iterators.
10032 (read_rtx_code): Record int iterator usage.
10034 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
10036 PR middle-end/53698
10037 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
10038 performing an addition.
10040 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
10042 * output.h (split_double): Move prototype to rtl.h.
10043 (constructor_static_from_elts_p): Move prototype to tree.c.
10044 * rtl.h (split_double): Moved here from output.h.
10045 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
10046 * final.c (split_double): Move from here ...
10047 * rtlanal.c (split_double): ... to here.
10048 * expr.c: Do not include output.h.
10050 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
10052 * cfglayout.h: Remove.
10053 * cfglayout.c: Remove.
10054 * function.h (struct function): Remove x_last_location field.
10055 * function.c: Do not include cfglayout.h.
10056 (expand_function_start): Do not call no-op force_next_line_note.
10057 (expand_function_end): Likewise.
10058 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
10059 (unlink_insn_chain): Moved here from cfglayout.c.
10060 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
10061 into_cfg_layout_mode, outof_cfg_layout_mode,
10062 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
10063 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
10064 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
10065 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
10066 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
10067 cfg_layout_finalize): Likewise.
10068 (rtl_can_remove_branch_p): Likewise.
10069 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
10070 (duplicate_insn_chain): Likewise.
10071 (force_next_line_note): Remove prototype.
10072 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
10073 (last_location): Remove #define to emit.x_last_location.
10074 (force_next_line_note): Remove no-op function.
10075 (init_emit): Don't set x_last_location.
10076 (block_locators_locs, block_locators_blocks, locations_locators_locs,
10077 locations_locators_vals, prologue_locator, epilogue_locator,
10078 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
10079 Move POD to here from cfglayout.c.
10080 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
10081 set_curr_insn_source_location, get_curr_insn_source_location,
10082 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
10083 locator_scope, insn_scope, locator_location, locator_line, insn_line,
10084 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
10085 * cfghooks.h: Remove double-include protection.
10086 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
10087 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
10088 * final.c: Do not include cfglayout.h.
10089 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
10090 (reemit_insn_block_notes): Likewise. Make static.
10091 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
10092 operation_could_trap_p, tree_could_throw_p): Move from here...
10093 * tree.h: ... to here.
10094 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
10095 * profile.c: Do not include cfghooks.h.
10096 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
10097 * modulo-sched.c: Likewise.
10098 * loop-unswitch.c: Do not include cfglayout.h.
10099 * sched-ebb.c: Likewise.
10100 * tracer.c: Likewise.
10102 * tree-vect-loop-manip.c: Likewise.
10103 * loop-init.c: Likewise.
10104 * dwarf2out.c: Likewise.
10105 * hw-doloop.c: Likewise.
10106 * loop-unroll.c: Likewise.
10107 * cfgcleanup.c: Likewise.
10108 * bb-reorder.c: Likewise.
10109 * sched-rgn.c: Likewise.
10110 * tree-cfg.c: Likewise.
10111 * config/alpha/alpha.c: Likewise.
10112 * config/spu/spu.c: Likewise.
10113 * config/sparc/sparc.c: Likewise.
10114 * config/sh/sh.c: Likewise.
10115 * config/c6x/c6x.c: Likewise.
10116 * config/ia64/ia64.c: Likewise.
10117 * config/rs6000/rs6000.c: Likewise.
10118 * config/score/score.c: Likewise.
10119 * config/mips/mips.c: Likewise.
10120 * config/bfin/bfin.c: Likewise.
10121 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
10122 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
10123 * config/spu/t-spu-elf (spu.o: $): Likewise.
10124 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
10126 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
10128 * cfgloop.h: Do not include rtl.h.
10129 (enum iv_extend_code): New.
10130 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
10131 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
10132 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
10133 an IV_EXTEND_CODE to an RTX_CODE.
10134 (dump_iv_info): Update for rtx_iv field type change.
10135 (iv_constant): Likewise.
10136 (iv_subreg): Likewise.
10137 (iv_extend): Likewise.
10138 (iv_neg): Likewise.
10139 (iv_add): Likewise.
10140 (iv_mult): Likewise.
10141 (iv_shift): Likewise.
10142 (get_biv_step_1): Likewise.
10143 (get_biv_step): Likewise.
10144 (iv_analyze_biv): Likewise.
10145 (get_iv_value): Likewise.
10146 (shorten_into_mode): Likewise.
10147 (canonicalize_iv_subregs): Likewise.
10148 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
10149 of MAY_HAVE_DEBUG_INSNS.
10150 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
10151 * tree-ssa-loop-prefetch.c: Likewise.
10153 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
10155 * expmed.c (ceil_log2): Move from here...
10156 * hwint.c: ... to here for older GCCs...
10157 * hwint.h: ... and here for newer GCCs.
10158 * rtl.h (ceil_log2): Remove prototype.
10160 * tree-phinodes.c: Do not include rtl.h.
10161 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
10163 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
10165 * config/cris/cris.h (TARGET_ELF): Remove.
10166 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
10167 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
10168 (LOCAL_LABEL_PREFIX): Likewise.
10169 * config/cris/cris.c (cris_target_asm_named_section): Remove.
10170 (cris_option_override): Simpify using TARGET_ELF==1.
10171 (cris_file_start): Likewise.
10172 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
10174 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
10176 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
10178 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
10180 PR middle-end/53590
10181 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
10183 2012-06-15 Easwaran Raman <eraman@google.com>
10185 * passes.c (init_optimization_passes): Remove pass_call_cdce
10186 from its current position and insert after pass_dce.
10188 2012-06-15 Walter Lee <walt@tilera.com>
10190 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
10192 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
10194 * arm.c (note_invalid_constants): Don't return a result.
10195 (arm_memory_load_p): Delete function.
10196 (arm_const_double_rtx): Delete iterator variable i;
10197 (fp_immediate_constant): Likewise.
10198 (fp_const_from_val): Likewise.
10200 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
10202 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
10205 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
10206 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
10208 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
10210 * config/avr/avr.c (avr_default_expand_builtin): New function.
10211 (avr_expand_builtin): Use it.
10212 (avr_expand_unop_builtin): Remove.
10213 (avr_expand_binop_builtin): Remove.
10214 (avr_expand_triop_builtin): Remove.
10216 2012-06-15 Michael Matz <matz@suse.de>
10218 PR middle-end/38474
10219 * cfgexpand.c (add_alias_set_conflicts): Remove.
10220 (expand_used_vars): Don't call it.
10221 (aggregate_contains_union_type): Remove.
10222 * function.c (n_temp_slots_in_use): New static data.
10223 (make_slot_available, assign_stack_temp_for_type): Update it.
10224 (init_temp_slots): Zero it.
10225 (remove_unused_temp_slot_addresses): Use it for quicker removal.
10226 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
10228 2012-06-15 Michael Matz <matz@suse.de>
10230 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
10231 argument, don't emit assign statement if value is directly usable.
10232 (gimplify_expr): Adjust.
10234 2012-06-15 Michael Matz <matz@suse.de>
10236 * gimplify.c (gimplify_modify_expr): Fold generated statements.
10237 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
10239 2012-06-15 Richard Guenther <rguenther@suse.de>
10241 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
10242 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
10243 we assert for in set_value_range to VR_VARYING.
10245 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
10247 * arm.md (addsf3, adddf3): Use s_register_operand.
10248 (subsf3, subdf3): Likewise.
10249 (mulsf3, muldf3): Likewise.
10250 (difsf3, divdf3): Likewise.
10251 (movsfcc, movdfcc): Likewise.
10252 * predicates.md (f_register_operand): Delete.
10253 (arm_float_rhs_operand): Delete.
10254 (arm_float_add_operand): Delete.
10255 (arm_float_compare_operand): Use s_register_operand when
10257 (cirrus_register_operand): Delete.
10258 (cirrus_fp_register): Delete.
10259 (cirrus_shift_const): Delete.
10260 (cmpdi_operand): Remove Maverick support.
10261 * constraints.md (f, v, H): Delete constraints.
10262 (G): Update documentation.
10263 * arm.c (fp_consts_inited): Convert to bool.
10264 (strings_fp): Delete.
10265 (values_fp): Delete.
10266 (value_fp0): New variable.
10267 (init_fp_table): Simplify logic.
10268 (arm_const_double_rtx): Likewise.
10269 (fp_immediate_constant): Likewise.
10270 (fp_const_from_val): Likewise.
10271 (neg_const_double_rtx_ok_for_fpa): Delete.
10272 * doc/md.texi (ARM constraints): Update documentation.
10274 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
10276 PR tree-optimization/53636
10277 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
10278 stride when doing basic-block vectorization.
10280 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10282 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
10283 into VEC_PERM_EXPR.
10285 2012-06-15 Jakub Jelinek <jakub@redhat.com>
10287 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
10288 allocate and free bbs array for the SLP case.
10290 PR tree-optimization/51581
10291 * expr.h (choose_multiplier): New prototype.
10292 * expmed.c (choose_multiplier): No longer static.
10293 Change multiplier_ptr from rtx * to UHWI *.
10294 (expand_divmod): Adjust callers.
10295 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
10296 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
10297 argument to new_stmt_vec_info. Attempt to optimize also divisions
10298 by non-pow2 constants if integer vector division isn't supported.
10299 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
10300 don't look at pattern stmts and sequences.
10302 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
10304 PR middle-end/53590
10305 * common.opt (-fdelete-dead-exceptions): New switch.
10306 * doc/invoke.texi (Code Gen Options): Document it.
10307 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
10308 insn_could_throw_p predicate. Do not skip an insn that could throw
10309 if dead exceptions can be deleted.
10310 (insn_live_p): Likewise, do not return true in that case.
10311 * dce.c (can_alter_cfg): New flag.
10312 (deletable_insn_p): Do not return false for an insn that can throw if
10313 the CFG can be altered and dead exceptions can be deleted.
10314 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
10315 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
10316 predicate. Do not preserve an insn that could throw if dead exceptions
10318 * function.h (struct function): Add can_delete_dead_exceptions flag.
10319 * function.c (allocate_struct_function): Set it.
10320 * lto-streamer-in.c (input_struct_function_base): Stream it.
10321 * lto-streamer-out.c (input_struct_function_base): Likewise.
10322 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
10323 statement that could throw as necessary if dead exceptions can be
10326 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
10328 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
10330 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
10333 * config/sh/sh.md: Add peephole for swapbsi2.
10334 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
10336 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
10338 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
10339 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
10341 2012-06-14 Jakub Jelinek <jakub@redhat.com>
10344 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
10346 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
10348 * arm.c (arm_cirrus_insn_p): Delete.
10349 (cirrus_reorg): Delete.
10350 (arm_reorg): Don't call cirrus_reorg.
10351 (arm_final_prescan_insn_p): Don't check for cirrus insns.
10352 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
10353 (adddi3, subdi3): Remove Maverick support.
10354 (arm_adddi3): Likewise.
10355 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
10356 (addsf3, adddf3): Likewise.
10357 (subsf3, subdf3): Likewise.
10358 (mulsf3, muldf3): Likewise.
10359 (ashldi3, ashrdi3, lshrdi3): Likewise.
10360 (floatsisf2, floatsidf2): Likewise.
10361 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
10362 (arm_movdi, thumb1_movdi_insn): Likewise.
10363 (arm_cmpdi_insn): Likewise.
10364 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
10365 (cirrus.md): Don't include.
10366 * cirrus.md: Delete file.
10367 * t-arm (MD_INCLUDES): Remove cirrus.md.
10369 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
10371 * dwarf2out.c (function_possibly_abstracted_p): New static function.
10372 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
10373 cgraph_function_possibly_inlined_p.
10374 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
10375 (process_scope_var): Do not emit concrete instances of abstracted
10376 nested functions from here.
10377 (gen_decl_die): Emit the abstract instance if the function is possibly
10378 abstracted and not only possibly inlined.
10379 (dwarf2out_finish): Find the first non-abstract parent instance and
10380 attach concrete instances on the limbo list to it.
10382 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
10384 * arm.md (divsf3, divdf3): Remove FPA support.
10385 (negsf2, negdf2): Likewise.
10386 (sqrtsf2, sqrtdf2): Likewise.
10387 (movdfcc): Likewise.
10388 (modsf3, moddf3, movxf): Delete.
10389 (push_fp_multi): Delete.
10390 (fpa.md): Don't include it.
10391 * fpa.md: Delete file.
10392 * t-arm (MD_INCLUDES): Remove fpa.md.
10394 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
10396 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
10397 (cost_for_stmt): Remove decl.
10398 (vect_get_single_scalar_iteration_cost): Correct typo in name.
10399 * tree-vect-loop.c (vect_get_cost): Remove.
10400 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
10401 vect_get_stmt_cost rather than vect_get_cost.
10402 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
10404 (vect_estimate_min_profitable_iters): Correct typo in call to
10405 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
10406 than vect_get_cost.
10407 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
10409 (vect_model_induction_cost): Likewise.
10410 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
10411 typo in call to vect_get_single_scalar_iteration_cost.
10412 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
10413 (cost_for_stmt): Remove unnecessary function.
10414 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
10416 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
10418 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
10419 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
10420 * arm-tables.opt: Regenerated.
10421 * doc/invoke.texi: Remove references to deleted options.
10423 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
10425 * config/h8300/genmova.sh: Modified to add offset bits of
10426 mova/Sz assembly instruction for memory access.
10427 * config/h8300/h8300.c: Likewise.
10428 * config/h8300/mova.md: Likewise.
10430 2012-06-12 Christian Bruel <christian.bruel@st.com>
10433 * config/sh/sh.c (sh_option_override): Don't force
10434 flag_omit_frame_pointer and maccumulate_outgoing_args.
10435 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
10437 2012-06-14 Richard Guenther <rguenther@suse.de>
10439 * tree-vrp.c (VR_INITIALIZER): New define.
10440 (ranges_from_anti_range): New function.
10441 (extract_range_from_binary_expr_1): Decompose operations on
10442 VR_ANTI_RANGEs to operations on VR_RANGE.
10443 (extract_range_from_unary_expr_1): Likewise.
10444 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
10445 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
10446 extract_range_from_cond_expr, adjust_range_with_scev,
10447 vrp_visit_assignment_or_call, vrp_visit_phi_node,
10448 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
10450 2012-06-13 Richard Henderson <rth@redhat.com>
10452 * hwint.h (HOST_WIDEST_INT_C): New.
10453 (HOST_WIDE_INT_C): New.
10454 (HOST_WIDE_INT_1): Use it.
10455 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
10457 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
10460 * var-tracking.c: Include alias.h.
10461 (overlapping_mems): New struct.
10462 (drop_overlapping_mem_locs): New.
10463 (clobber_overlapping_mems): New.
10464 (var_mem_delete_and_set, var_mem_delete): Call it.
10465 (val_bind): Likewise, but only if modified.
10466 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
10467 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
10469 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
10472 * var-tracking.c (loc_exp_dep_pool): New.
10473 (vt_emit_notes): Create and release the pool.
10474 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
10475 (emit_notes_in_bb): Likewise.
10476 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
10477 (notify_dependents_of_changed_value): Likewise.
10478 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
10479 variables don't have a VAR_LOC_DEP_LST.
10480 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
10481 VALUEs or MEMs of VALUEs.
10483 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
10487 * dce.c (word_dce_process_block): Insert debug temps only if the
10488 insn is not marked.
10489 (dce_process_block): Likewise, and if debug.used is not empty,
10490 and only after iterating over all DEFs that might mark the insn.
10492 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
10494 * common.opt (ftree-coalesce-inlined-vars): New.
10495 (ftree-coalesce-vars): New.
10496 * doc/invoke.texi: Document them.
10497 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
10500 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
10502 * read-rtl.c (mapping): Remove index field. Add current_value field.
10503 Define heap vectors.
10504 (iterator_group): Fix long line. Remove num_builtins field and
10505 uses_iterator fields. Make apply_iterator take a void * parameter.
10506 (iterator_use, atttribute_use): New structures.
10507 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
10508 (current_iterators, iterator_uses, attribute_uses): New variables.
10509 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
10510 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
10511 (map_attr_string, apply_iterator_to_string): Remove iterator
10512 and value parameters. Look through all current iterator values
10513 for a matching attribute.
10514 (mode_attr_index, apply_mode_maps): Delete.
10515 (apply_iterator_to_rtx): Replace with...
10516 (copy_rtx_for_iterators): ...this new function.
10517 (uses_iterator_p, apply_iterator_traverse): Delete.
10518 (apply_attribute_uses, add_current_iterators, apply_iterators): New
10520 (add_mapping): Remove index field. Set current_value field.
10521 (initialize_iterators): Don't set num_builtins and uses_iterator_p
10523 (find_iterator): Delete.
10524 (record_iterator_use, record_attribute_use): New functions.
10525 (record_potential_iterator_use): New function.
10526 (check_code_iterator): Remove handling of bellwether codes.
10527 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
10528 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
10529 parameter. Use the first code iterator value instead of the
10530 bellwether_codes array. Use record_potential_iterator_use for modes.
10532 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
10535 * config/sh/sh.md (bswapsi2): New expander.
10536 (swapbsi2): New insn.
10538 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
10541 * config/i386/i386.c (ix86_tune_cost): New variable.
10542 (ix86_option_override_internal): Set ix86_tune_cost. Use
10543 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
10544 l1_cache_size and l2_cache_size.
10546 2012-06-13 Richard Guenther <rguenther@suse.de>
10548 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
10549 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
10550 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
10551 VR_ANTI_RANGE with VR_ANTI_RANGE.
10553 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
10555 * config.gcc (unsupported): Move obsoleted FPA-based configurations
10557 (obsolete): ... here.
10558 (arm*-*-freebsd*): Remove.
10559 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
10560 (arm*-*-uclinux*): Likewise.
10561 (arm*-*-ecos-elf): Remove.
10562 (arm*-*-rtems*): Remove.
10563 (arm*-*-elf): Remove.
10564 (arm*-wince-pe*): Remove.
10565 (arm, --with-fpu): Remove support for fpa and Maverick variants.
10566 * arm/ecos-elf.h: Delete.
10567 * arm/t-strongarm-elf: Delete.
10568 * arm/rtems-elf.h: Delete.
10569 * arm/wince-pe.h: Delete.
10570 * arm/pe.c: Delete.
10571 * arm/pe.h: Delete.
10572 * arm/t-wince-pe: Delete.
10574 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
10576 PR tree-optimization/53647
10577 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
10578 targets with no defined cache line size.
10580 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
10582 * targhooks.c (default_builtin_vectorized_conversion): Handle
10583 vec_construct, using vectype to base cost on subparts.
10584 * target.h (enum vect_cost_for_stmt): Add vec_construct.
10585 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
10586 instead of scalar_to-vec.
10587 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
10588 vec_construct in same way as default for now.
10589 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
10590 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
10591 Handle vec_construct, including special case for 32-bit loads.
10593 2012-06-13 Xinyu Qi <xyqi@marvell.com>
10595 * config/arm/arm.c (FL_IWMMXT2): New define.
10596 (arm_arch_iwmmxt2): New variable.
10597 (arm_option_override): Enable use of iWMMXt with VFP.
10598 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
10599 Thumb mode. Set arm_arch_iwmmxt2.
10600 (arm_expand_binop_builtin): Accept VOIDmode op.
10601 (enum arm_builtins): Revise built-in fcode.
10602 (IWMMXT2_BUILTIN): New define.
10603 (IWMMXT2_BUILTIN2): Likewise.
10604 (iwmmx2_mbuiltin): Likewise.
10605 (builtin_description bdesc_2arg): Revise built in declaration.
10606 (builtin_description bdesc_1arg): Likewise.
10607 (arm_init_iwmmxt_builtins): Revise built in initialization.
10608 (arm_expand_builtin): Revise built in expansion.
10609 (arm_output_iwmmxt_shift_immediate): New function.
10610 (arm_output_iwmmxt_tinsr): Likewise.
10611 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
10612 (arm_output_iwmmxt_tinsr): Likewise.
10613 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
10614 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
10615 (rorv4hi3, rorv2si3, rordi3): Likewise.
10616 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
10617 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
10618 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
10619 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
10620 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
10621 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
10622 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
10623 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
10624 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
10625 (ror<mode>3, ror<mode>3_di): Likewise.
10626 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
10627 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
10628 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
10629 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
10630 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
10631 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
10632 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
10633 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
10634 (All instruction patterns): Add wtype attribute.
10635 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
10636 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
10637 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
10638 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
10639 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
10640 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
10641 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
10642 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
10643 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
10644 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
10645 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
10646 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
10647 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
10648 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
10649 (iwmmxt2.md): Include.
10650 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
10651 (TARGET_IWMMXT2): New define.
10652 (TARGET_REALLY_IWMMXT2): Likewise.
10653 (arm_arch_iwmmxt2): Declare.
10654 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
10655 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
10656 Use C name-mangling for intrinsics.
10657 (__v8qi): Redefine.
10658 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
10659 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
10660 (_m_from_int): Likewise.
10661 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
10662 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
10663 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
10664 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
10665 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
10666 (_mm_tbcst_pi32): Likewise.
10667 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
10668 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
10669 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
10670 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
10671 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
10672 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
10673 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
10674 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
10675 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
10676 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
10677 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
10678 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
10679 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
10680 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
10681 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
10682 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
10683 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
10684 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
10685 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
10686 (_m_to_int): New define.
10687 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
10688 * config/arm/arm-arches.def (iwmmxt2): Likewise.
10689 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
10691 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
10692 (arch): Add "iwmmxt2".
10693 (arch_enabled): Handle "iwmmxt2".
10694 (wtype): New attribute.
10695 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
10696 (UNSPEC_WALIGNI): New unspec.
10697 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
10698 * config/arm/iterators.md (VMMX2): New mode_iterator.
10699 * config/arm/marvell-f-iwmmxt.md: New file.
10700 * config/arm/iwmmxt2.md: New file.
10702 2012-06-12 Jakub Jelinek <jakub@redhat.com>
10707 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
10708 if type isn't complete.
10710 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
10712 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
10714 2012-06-12 Richard Henderson <rth@redhat.com>
10716 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
10717 iterator instead of INT.
10719 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
10721 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
10722 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
10724 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
10725 (tree_ssa_phiopt): Call gate_hoist_loads.
10726 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
10727 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
10728 hoist_adjacent_loads.
10729 (local_mem_dependence): New function.
10730 (hoist_adjacent_loads): Likewise.
10731 (gate_hoist_loads): Likewise.
10732 * common.opt (fhoist-adjacent-loads): New switch.
10733 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
10735 2012-06-12 Michael Matz <matz@suse.de>
10737 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
10738 (nonoverlapping_memrefs_p): Don't call it here ...
10739 (true_dependence_1): ... but here.
10741 2012-06-12 Richard Guenther <rguenther@suse.de>
10743 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
10744 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
10745 and MEM_SIZE only refines it. Reflect that and be less conservative
10746 if either of the latter is not known.
10748 2012-06-12 Jakub Jelinek <jakub@redhat.com>
10750 PR rtl-optimization/53589
10751 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
10752 discovery even when e->dest != target. If any LABEL_REF points
10753 to e->dest label, redirect it to target's label.
10755 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
10757 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
10758 condition for generating REG_FRAME_RELATED_EXPR note.
10759 (pop): Add code for generating REG_CFA_RESTORE,
10760 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
10761 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
10762 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
10764 2012-06-11 Richard Henderson <rth@redhat.com>
10766 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
10767 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
10769 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
10771 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
10773 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
10774 Mention that this hook needs to be defined for native TLS.
10775 * doc/tm.texi: Regenerate.
10777 2012-06-11 Mike Stump <mikestump@comcast.net>
10779 * emit-rtl.c (init_emit_once): Iterate through the
10780 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
10781 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
10782 all the MIN_MODE_PARTIAL_INT modes anymore.
10784 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
10786 * gcc/config/mips/mips-tables.opt (xlp): Fix merge typo.
10788 2012-06-11 Roland McGrath <mcgrathr@google.com>
10790 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
10791 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
10792 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
10795 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
10798 * config/sh/sh.md (fmasf4): New expander.
10799 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
10800 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
10801 * config/sh/sh.opt (mfused-madd): Remove.
10802 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
10803 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
10804 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
10806 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
10809 2012-06-11 Richard Henderson <rth@redhat.com>
10811 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
10813 2012-06-11 Richard Guenther <rguenther@suse.de>
10815 PR middle-end/53470
10816 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
10817 replace it with the first non-BLOCK context.
10819 2012-06-11 Richard Guenther <rguenther@suse.de>
10821 * alias.c (aliases_everything_p): Remove.
10822 (DIFFERENT_ALIAS_SETS_P): Likewise.
10823 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
10824 Do not use aliases_everything_p or special-case ANDs. Do not
10825 special-case BLKmode moves.
10826 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
10829 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
10831 Fix CRIS build errors with --enable-build-with-cxx.
10832 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
10833 variable "and" to "andop".
10834 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
10835 temporary variable for memory model, passing C++-type-correct
10836 parameter type to expand_mem_thread_fence.
10837 ("atomic_compare_and_swap<mode>"): Ditto.
10839 2012-06-09 Richard Henderson <rth@redhat.com>
10842 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
10843 (pass_jump): Rename from pass_jump2.
10844 (execute_jump2, pass_jump2): New.
10845 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
10846 perform cfg cleanup here. Move the test of PUSH_ROUNDING
10847 and ACCUMULATE_OUTGOING_ARGS test...
10848 (gate_handle_stack_adjustments): ... here.
10849 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
10850 Place new pass_jump2 after pass_stack_adjustments.
10851 * tree-pass.h (pass_jump): Declare.
10853 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
10855 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
10858 2012-06-08 Richard Henderson <rth@redhat.com>
10861 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
10862 note to a clobber insn when no other insn is available.
10864 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
10866 * config/avr/avr.c (avr_case_values_threshold): Return 7.
10868 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
10870 * genhooks.c (main): Set progname.
10871 (emit_documentation): Remove variable found_start, always bail out
10872 when a place is missing.
10873 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
10875 2012-06-07 Jakub Jelinek <jakub@redhat.com>
10877 PR middle-end/53580
10878 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
10879 call walk_gimple_seq_mod instead of walk_gimple_seq.
10880 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
10881 scan_omp_for, scan_omp_sections, scan_omp_single,
10882 execute_lower_omp): Adjust callers.
10883 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
10884 returns false, replace stmt with GIMPLE_NOP.
10885 (check_omp_nesting_restrictions): Instead of issuing warnings,
10886 issue errors and return false if any errors were reported.
10888 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
10890 * doc/invoke.texi (fconserve-space): Remove documentation.
10892 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
10894 * config/rs6000/rs6000-tables.opt: Regenerated.
10896 2012-06-06 Richard Guenther <rguenther@suse.de>
10898 PR tree-optimization/53081
10899 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
10900 (adjacent_dr_p): ... this and make it work for reads, too.
10901 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
10902 (struct partition_s): Change main_stmt to main_dr, add
10903 secondary_dr member.
10904 (build_size_arg_loc): Change to date data-reference and not
10906 (build_addr_arg_loc): New function split out from ...
10907 (generate_memset_builtin): ... here. Use it and simplify.
10908 (generate_memcpy_builtin): New function.
10909 (generate_code_for_partition): Adjust.
10910 (classify_partition): Streamline pattern detection. Detect memcpy.
10911 (ldist_gen): Adjust.
10912 (tree_loop_distribution): Adjust seed statements for memcpy
10915 2012-06-06 Matt Turner <mattst88@gmail.com>
10917 * config/arm/mmintrin.h (_mm_empty): New.
10920 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
10922 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
10923 * common.opt (fsched-pressure-algorithm=): Remove.
10924 * flag-types.h (sched_pressure_algorithm): Move to...
10925 * sched-int.h (sched_pressure_algorithm): ...here.
10926 * params.def (sched-pressure-algorithm): New param.
10927 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
10928 * common/config/s390/s390-common.c (s390_option_optimization_table):
10929 Remove OPT_fsched_pressure_algorithm_ entry.
10930 * config/s390/s390.c (s390_option_override): Set a default value for
10931 PARAM_SCHED_PRESSURE_ALGORITHM.
10933 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
10936 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
10937 doing an unsigned compare, make sure the second argument is not a
10939 (rs6000_emit_cmove): Don't allow floating point comparisons when
10940 generating ISEL moves.
10942 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
10944 * config/rs6000/e5500.md: New file.
10945 * config/rs6000/e6500.md: New file.
10946 * config/rs6000/rs6000.c (processor_costs): Add new costs for
10948 (rs6000_option_override_internal): Altivec and Spe options not
10949 allowed with e5500. Spe options not allowed with e6500. Increase
10950 move inline limit for e5500 and e6500. Disable string instructions
10951 for e5500 and e6500. Enable branch targets alignment for e5500 and
10952 e6500. Initialize rs6000_cost for e5500 and e6500.
10953 (rs6000_adjust_cost): Add extra scheduling cycles between compare
10954 and brnach for e5500 and e6500.
10955 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
10956 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
10958 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
10959 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
10961 Include e5500.md and e6500.md.
10962 * config/rs6000/rs6000-opt.h (processor_type): Add
10963 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
10964 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
10965 (powerpc*-*-*): Add new cores e5500, e6500.
10966 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
10968 2012-06-05 Richard Guenther <rguenther@suse.de>
10970 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
10972 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
10975 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
10976 is used for x86_64-*-*.
10978 2012-06-05 Richard Guenther <rguenther@suse.de>
10980 PR tree-optimization/30442
10981 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
10982 vectorization stop analysis at the first stmt we cannot compute
10983 a data-reference for instead of giving up completely.
10985 2012-06-05 Richard Guenther <rguenther@suse.de>
10987 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
10988 (partition_alloc): Initialize it.
10989 (partition_has_writes): New function.
10990 (rdg_flag_uses): Adjust.
10991 (rdg_flag_vertex): Likewise.
10992 (rdg_flag_vertex_and_dependent): Likewise.
10993 (rdg_flag_loop_exits): Likewise.
10994 (build_rdg_partition_for_component): Likewise.
10995 (rdg_build_partitions): Likewise.
10997 2012-06-05 Richard Guenther <rguenther@suse.de>
10999 PR tree-optimization/53081
11000 * tree-loop-distribution.c (generate_memset_builtin): Handle all
11001 kinds of byte-sized stores.
11002 (classify_partition): Likewise.
11003 (tree_loop_distribution): Adjust seed statements used for
11004 !flag_tree_loop_distribution.
11006 2012-06-05 Alan Modra <amodra@gmail.com>
11008 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
11009 (rs6000_emit_prologue): Ensure register used for inline saves
11010 of vector regs is not the static chain register. Revise comment.
11012 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
11014 * doc/md.texi (Standard Pattern Names For Generation): Document
11017 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
11020 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
11022 2012-06-04 Jason Merrill <jason@redhat.com>
11024 * dwarf2out.c (is_unit_die): New.
11025 (copy_declaration_context, copy_ancestor_tree): Use it.
11026 (copy_decls_walk): Likewise.
11028 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
11031 * doc/invoke.texi (Wenum-compare): Update documentation.
11033 2012-06-04 Dodji Seketeli <dodji@redhat.com>
11035 PR preprocessor/53463
11036 * parser.c (cp_parser_assignment_expression): Use the location
11037 for the '=' as the default location for the expression.
11039 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
11042 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
11044 (altivec_stvlxl): Ditto.
11045 (altivec_stvrx): Ditto.
11046 (altivec_stvrxl): Ditto.
11048 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
11050 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
11051 (ira_uniform_class_p): New macro.
11053 * ira.c (setup_uniform_class_p): New function.
11054 (setup_allocno_and_important_classes): Call the function.
11055 (print_unform_and_important_classes): New function.
11056 (print_classes): Rename to print_translated_classes.
11057 (ira_debug_allocno_classes): Add call of
11058 print_unform_and_important_classes.
11060 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
11061 classes instead of pressure classes.
11063 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
11065 PR middle-end/47530
11066 * trans-mem.c (expand_block_edges): Do not skip the first
11067 statement when resetting the BB.
11069 2012-06-04 Richard Guenther <rguenther@suse.de>
11071 * tree-data-ref.c (stores_from_loop): Remove.
11072 (stmt_with_adjacent_zero_store_dr_p): Likewise.
11073 (stores_zero_from_loop): Likewise.
11074 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
11075 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
11076 (adjacent_store_dr_p): New function.
11077 * tree-loop-distribution.c (generate_memset_builtin): Pass
11078 the RDG, use the already available data-reference.
11079 (generate_code_for_partition): Pass down RDG.
11080 (classify_partition): Inline parts of the former
11081 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
11082 (ldist_gen): Remember if there was any detected builtin and
11083 do less work if not and flag_tree_loop_distribution is not set.
11084 (tree_loop_distribution): Inline and fuse stores_from_loop
11085 and stores_zero_from_loop here.
11087 2012-06-04 Richard Guenther <rguenther@suse.de>
11089 PR middle-end/53471
11090 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
11091 create new assembler names.
11093 2012-06-04 Richard Guenther <rguenther@suse.de>
11095 * tree-data-ref.c (struct rdg_vertex_info): Remove.
11096 (rdg_vertex_for_stmt): Simplify using gimple_uid.
11097 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
11098 hashtable. Record stmt data-references.
11099 (hash_stmt_vertex_info): Remove.
11100 (eq_stmt_vertex_info): Likewise.
11101 (hash_stmt_vertex_del): Likewise.
11102 (build_empty_rdg): Simplify.
11103 (build_rdg): Adjust.
11104 (free_rdg): Likewise.
11105 (ref_base_address): Remove.
11106 (have_similar_memory_accesses): Likewise.
11107 * tree-data-ref.h (create_rdg_vertices): Remove.
11108 (struct rdg_vertex): Add datarefs member.
11109 (RDGV_DATAREFS): New define.
11110 (RDG_DATAREFS): Likewise.
11111 (have_similar_memory_accesses): Remove.
11112 (rdg_has_similar_memory_accesses): Likewise.
11113 * tree-loop-distribution.c (ref_base_address): Re-implement here.
11114 (similar_memory_accesses): Re-implement using existing data-references.
11115 (tree_loop_distribution): Initialize stmt uids for the stmt to
11117 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
11118 access stmt vinfo for stmts in loop.
11120 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
11123 * config/m68k/m68k.md ("tablejump"): Fix check for
11124 CASE_VECTOR_PC_RELATIVE.
11126 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
11128 * output.h (merge_weak, assemble_alias,
11129 initializer_constant_valid_p,
11130 initializer_constant_valid_for_bitfield_p): Move protos from here...
11131 * tree.h: ... to here.
11132 * cgraphclones.c: Do not include output.h.
11133 * gimplify.c: Likewise.
11134 * reload.c: Likewise.
11135 * recog.c: Likewise.
11136 * tree-ssa-loop-ivopts.c: Likewise.
11137 * tree-switch-conversion.c: Likewise.
11138 * c-parser.c: Likewise.
11139 * c-typeck.c: Likewise.
11140 * Makefile.in: Fix dependencies.
11142 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
11145 * config/avr/avr-stdint.h: New file.
11146 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
11149 2012-06-04 Jakub Jelinek <jakub@redhat.com>
11151 PR tree-optimization/53550
11152 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
11153 is POINTER_TYPE_P, use sizetype as step type instead of type.
11155 2012-06-04 Richard Guenther <rguenther@suse.de>
11157 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
11158 (ref_base_address_1): Likewise.
11159 (remove_similar_memory_refs): Likewise.
11160 * tree-data-ref.h (remove_similar_memory_refs): Remove.
11161 * tree-loop-distribution.c (classify_partition): Do not classify
11162 as builtin if -ftree-loop-distribute-patterns is not enabled.
11163 (fuse_partitions_with_similar_memory_accesses): Inline ...
11164 (ldist_gen): ... here. Fuse all non-builtin partitions if
11165 -ftree-loop-distribution is not enabled. Properly return
11166 the number of created partitions. Do not update SSA form here but ...
11167 (tree_loop_distribution): ... once here for the whole function.
11168 Only walk innermost loops, constrain loops we consider here
11169 further. Do not call remove_similar_memory_refs.
11170 (distribute_loop): Do not check number of loop nodes here.
11172 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
11174 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
11176 2012-06-03 Martin Jambor <mjambor@suse.cz>
11178 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
11179 (ipa_get_jf_known_type_base_type): Likewise.
11180 (ipa_get_jf_known_type_component_type): Likewise.
11181 (ipa_get_jf_constant): Likewise.
11182 (ipa_get_jf_pass_through_formal_id): Likewise.
11183 (ipa_get_jf_pass_through_operation): Likewise.
11184 (ipa_get_jf_ancestor_offset): Likewise.
11185 (ipa_get_jf_ancestor_type): Likewise.
11186 (ipa_get_jf_ancestor_formal_id): Likewise.
11187 (ipa_get_jf_member_ptr_pfn): Likewise.
11188 * ipa-prop.c (ipa_set_jf_known_type): New function.
11189 (ipa_set_jf_constant): Likewise.
11190 (ipa_set_jf_simple_pass_through): Likewise.
11191 (ipa_set_jf_arith_pass_through): Likewise.
11192 (ipa_set_ancestor_jf): Likewise.
11193 (fill_member_ptr_cst_jump_function): Moved up and renamed to
11194 ipa_set_jf_member_ptr_cst.
11195 (detect_type_change_1): Use the new jump function creation functions.
11196 (compute_complex_assign_jump_func): Likewise.
11197 (compute_complex_ancestor_jump_func): Likewise.
11198 (compute_known_type_jump_func): Likewise.
11199 (compute_scalar_jump_functions): Likewise.
11200 (compute_pass_through_member_ptrs): Likewise.
11201 (determine_cst_member_ptr): Likewise.
11202 (combine_known_type_and_ancestor_jfs): Likewise.
11203 (try_make_edge_direct_simple_call): Likewise.
11204 (try_make_edge_direct_virtual_call): Likewise.
11205 (update_indirect_edges_after_inlining): Likewise.
11206 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
11207 access functions. Incorporat NOP_EXPR and BINFO handling from its
11209 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
11210 which was in its callers.
11211 (ipa_value_from_jfunc): Use jump function access functions. Some
11212 functionality moved to functions above.
11213 (propagate_vals_accross_ancestor): Likewise.
11214 (propagate_vals_accross_pass_through): Use jump function access
11216 (propagate_accross_jump_function): Likewise.
11217 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
11219 (inline_merge_summary): Likewise.
11221 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11223 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
11224 * config/pa/pa.c (pa_attr_length_millicode_call): Use
11225 MAX_PCREL17F_OFFSET instead of fixed offset.
11226 (pa_attr_length_call): Likewise.
11227 (pa_attr_length_indirect_call): Likewise.
11229 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
11232 * config/sh/sh.opt (mfsca, mfsrra): New options.
11233 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
11235 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
11236 (sinssf2, cossf2): Fold expanders to ...
11237 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
11238 TARGET_FSCA condition.
11239 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
11241 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
11242 -mno-fsca, -mfsrra, -mno-fsrra.
11244 2012-06-03 Matt Turner <mattst88@gmail.com>
11246 * config/mips/4600.md (r4700_imul_si): New.
11247 (r4700_imul_di): New.
11248 (r4700_fmul_single): New.
11249 (r4700_fmul_double): New.
11250 * config/mips/mips-cpus.def: Add r4700.
11251 * config/mips/mips.c: Likewise.
11252 * config/mips/mips.md: Likewise.
11253 * config/mips/mips-tables.opt: Regenerate.
11255 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
11257 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
11258 new function sparc_initial_elimination_offset.
11259 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
11261 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
11264 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
11266 * expmed.c (expand_mult, choose_multiplier): Change
11267 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
11268 * expr.c (convert_modes): Likewise.
11269 * explow.c (plus_constant): Likewise.
11270 * fixed-value.c (fixed_saturate1, fixed_saturate2)
11271 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
11272 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
11273 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
11274 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
11275 (do_fixed_shift, fixed_convert, fixed_convert)
11276 (fixed_convert_from_int, fixed_convert_from_int)
11277 (fixed_convert_from_real): Likewise.
11278 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
11279 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
11280 * varasm.c (output_constructor_bitfield): Likewise.
11281 * tree-vrp.c (register_edge_assert_for_2): Likewise.
11282 * double-int.c (rshift_double, lshift_double): Likewise.
11283 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
11285 * simplify-rtx.c (mode_signbit_p)
11286 (simplify_const_unary_operation, simplify_binary_operation_1)
11287 (simplify_immed_subreg): Likewise.
11288 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
11289 * tree-vect-generic.c (build_replicated_const): Likewise.
11290 * dbxout.c (stabstr_O): Likewise.
11291 * emit-rtl.c (immed_double_int_const, immed_double_const)
11292 (gen_lowpart_common, init_emit_once): Likewise.
11293 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
11294 (widest_int_cst_value, upper_bound_in_type): Likewise.
11295 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
11296 (fixup_unsigned_type): Likewise.
11297 * real.c (real_to_integer2, real_from_integer): Likewise.
11298 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
11299 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
11301 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
11303 PR middle-end/53501
11304 * fold-const.c (fold_binary_loc): Refine previous change.
11306 2012-06-01 Olivier Hainque <hainque@adacore.com>
11308 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
11309 the "do {" part of the do-while(0) loop.
11311 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
11313 * config/i386/i386.c (x86_sched_reorder): New function.
11314 Added new function x86_sched_reorder.
11316 2012-06-01 Richard Guenther <rguenther@suse.de>
11318 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
11320 (classify_partition): Likewise.
11322 2012-06-01 Richard Guenther <rguenther@suse.de>
11324 * tree-loop-distribution.c (enum partition_kind): New enum.
11325 (struct partition_s): Add kind and main_stmt members.
11326 (partition_alloc): Initialize kind to PKIND_NORMAL.
11327 (partition_builtin_p): New function.
11328 (copy_loop_before): Remove failure path and assert instead.
11329 (generate_loops_for_partition): Likewise.
11330 (generate_memset_zero): Fold into ...
11331 (generate_memset_builtin): ... this.
11332 (classify_partition): New function with code from
11333 can_generate_builtin and generate_builtin.
11334 (generate_builtin): Remove.
11335 (can_generate_builtin): Likewise.
11336 (fuse_partitions_with_similar_memory_accesses): Call
11337 partition_builtin_p instead of can_generate_builtin.
11338 (rdg_build_partitions): Do not call
11339 fuse_partitions_with_similar_memory_accesses here...
11340 (ldist_gen): ... but here after classifying all partitions.
11341 Remove failure path of generate_code_for_partition.
11342 (generate_code_for_partition): Generate code according
11343 to partition classification.
11345 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
11346 Jonathan Wakely <jwakely.gcc@gmail.com>
11349 * doc/invoke.texi (Warning Options): Explain purpose and differences
11350 between -Wmissing-prototypes and -Wmissing-declarations.
11352 2012-06-01 Christian Bruel <christian.bruel@st.com>
11354 * gcc.c (save_switch): Add user_p parameter.
11355 (read_specs): Likewise.
11356 (set_specs): Likewise.
11357 (validate_switches): Likewise.
11358 (validate_switches_from_spec): Likewise.
11359 (validate_all_switches): Pass on user_p parameter.
11360 (struct spec_list): Add user_p field.
11361 (struct switchstr): Add known field.
11362 (save_switch): Add known parameter.
11363 (INIT_STATIC_SPEC): Initialize user_p;
11364 (driver_unknown_option_callbac): call save_switch if
11365 OPT_SPECIAL_unknown.
11366 (driver_handle_option): Propagate OPT_specs.
11367 (do_spec_1): Set validated only if known.
11368 (check_live_switch): Likewise.
11369 (validate_switches): Set validated if known or user_spec.
11371 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
11373 Add CRIS atomic patterns for 1, 2, and 4 bytes.
11374 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
11375 * config/cris/cris-protos.h: Declare it.
11376 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
11377 (TARGET_DEFAULT): Add alignment by 32.
11378 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
11379 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
11380 TARGET_CPU_DEFAULT == 32.
11381 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
11382 * config/cris/cris.md: Include sync.md. Avoid allocating specific
11383 numbers by replacing the define_constants for all UNSPECs with the
11384 equivalent define_c_enum construct.
11385 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
11386 * config/cris/sync.md: New file.
11388 2012-05-31 Matt Turner <mattst88@gmail.com>
11390 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
11391 (r4600_imul_di): New.
11392 (r4600_idiv_si): Rename from r4600_idiv.
11393 (r4600_idiv_di): New.
11395 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
11397 * output.h (__gcc_host_wide_int__): Move to hwint.h.
11398 (decl_default_tls_model): Move to tree.h
11399 (dump_file): Move to system.h.
11400 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
11401 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
11402 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
11403 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
11404 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
11405 dbxout_stab_value_internal_label,
11406 dbxout_stab_value_internal_label_diff): Move from here ...
11407 * dbxout.h: ... to here.
11408 * system.h (dump_file): Moved here from output.h.
11409 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
11410 * tree.h (decl_default_tls_model): Moved here from output.h.
11411 * varasm.c (default_stabs_asm_out_destructor,
11412 default_stabs_asm_out_constructor): Move from here ...
11413 * dbxout.c: ... to here.
11415 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
11417 * collect2.h (dump_file): Rename to dump_ld_file.
11418 * collect2.c: Likewise.
11419 * tlink.c: Likewise.
11421 * alias.c: Do not include output.h.
11422 * auto-inc-dec.c: Likewise.
11423 * bt-load.c: Likewise.
11424 * caller-save.c: Likewise.
11426 * cfgbuild.c: Likewise.
11427 * cfgcleanup.c: Likewise.
11428 * cfglayout.c: Likewise.
11429 * cfgloop.c: Likewise.
11430 * cfgloopanal.c: Likewise.
11431 * cfgloopmanip.c: Likewise.
11432 * cfgrtl.c: Likewise.
11433 * cgraph.c: Likewise.
11434 * cgraphclones.c: Likewise.
11435 * combine-stack-adj.c: Likewise.
11436 * combine.c: Likewise.
11437 * cprop.c: Likewise.
11439 * cselib.c: Likewise.
11440 * dbgcnt.c: Likewise.
11441 * df-problems.c: Likewise.
11442 * df-scan.c: Likewise.
11443 * dojump.c: Likewise.
11444 * fwprop.c: Likewise.
11445 * gcse.c: Likewise.
11446 * graph.c: Likewise.
11447 * haifa-sched.c: Likewise.
11448 * hw-doloop.c: Likewise.
11449 * ipa-inline-transform.c: Likewise.
11450 * ipa-pure-const.c: Likewise.
11451 * ipa-reference.c: Likewise.
11452 * ipa-utils.c: Likewise.
11453 * ira-build.c: Likewise.
11454 * ira-emit.c: Likewise.
11456 * loop-doloop.c: Likewise.
11457 * loop-invariant.c: Likewise.
11458 * loop-iv.c: Likewise.
11459 * loop-unroll.c: Likewise.
11460 * loop-unswitch.c: Likewise.
11461 * lto-cgraph.c: Likewise.
11462 * lto-section-in.c: Likewise.
11463 * lto-streamer-in.c: Likewise.
11465 * mode-switching.c: Likewise.
11466 * postreload-gcse.c: Likewise.
11467 * postreload.c: Likewise.
11468 * predict.c: Likewise.
11469 * profile.c: Likewise.
11471 * reg-stack.c: Likewise.
11472 * regcprop.c: Likewise.
11473 * regmove.c: Likewise.
11474 * regstat.c: Likewise.
11475 * reload1.c: Likewise.
11476 * sched-ebb.c: Likewise.
11477 * sel-sched-dump.c: Likewise.
11478 * simplify-rtx.c: Likewise.
11479 * stor-layout.c: Likewise.
11480 * store-motion.c: Likewise.
11481 * tracer.c: Likewise.
11482 * tree-affine.c: Likewise.
11483 * tree-cfg.c: Likewise.
11484 * tree-cfgcleanup.c: Likewise.
11485 * tree-dfa.c: Likewise.
11486 * tree-into-ssa.c: Likewise.
11487 * tree-nomudflap.c: Likewise.
11488 * tree-optimize.c: Likewise.
11489 * tree-pretty-print.c: Likewise.
11490 * tree-profile.c: Likewise.
11491 * tree-ssa-address.c: Likewise.
11492 * tree-ssa-ccp.c: Likewise.
11493 * tree-ssa-copy.c: Likewise.
11494 * tree-ssa-dom.c: Likewise.
11495 * tree-ssa-loop-ch.c: Likewise.
11496 * tree-ssa-loop-im.c: Likewise.
11497 * tree-ssa-loop-manip.c: Likewise.
11498 * tree-ssa-loop-niter.c: Likewise.
11499 * tree-ssa-loop-prefetch.c: Likewise.
11500 * tree-ssa-loop-unswitch.c: Likewise.
11501 * tree-ssa-loop.c: Likewise.
11502 * tree-ssa-propagate.c: Likewise.
11503 * tree-ssa-structalias.c: Likewise.
11504 * tree-ssa-tail-merge.c: Likewise.
11505 * tree-ssa-threadedge.c: Likewise.
11506 * tree-ssa-threadupdate.c: Likewise.
11507 * tree-ssa-uncprop.c: Likewise.
11508 * tree-ssa-uninit.c: Likewise.
11509 * tree-ssa.c: Likewise.
11510 * value-prof.c: Likewise.
11511 * var-tracking.c: Likewise.
11514 * config/m32r/m32r.c: Include dbxout.h.
11515 * config/pa/pa.c: Likewise.
11516 * config/rs6000/rs6000.c: Likewise.
11518 * Makefile.in: Fix dependencies.
11519 * config/rs6000/t-rs5000: Likewise.
11521 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
11523 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
11524 * gimple.h (block_in_transaction): Check for flag_tm.
11526 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
11528 PR tree-optimization/52558
11529 * cfg.c (alloc_aux_for_edge): Fix comment.
11530 (alloc_aux_for_edge): Remove static.
11531 * basic-block.h (alloc_aux_for_edge): Protoize.
11532 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
11533 (execute_sm_if_changed_flag): New.
11534 (execute_sm_if_changed_flag_set): New.
11535 (execute_sm): Do not generate data races unless requested.
11536 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
11537 (tree_ssa_lim_finalize): Call free_aux_for_edges.
11538 * gimple.h (block_in_transaction): New.
11539 (gimple_in_transaction): Use block_in_transaction.
11541 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
11544 * config/avr/avr.opt (-msp8): Document it.
11545 * doc/invoke.texi (AVR Options): Ditto. And document related
11548 2012-05-31 Diego Novillo <dnovillo@google.com>
11550 * configure.ac (CXX_FOR_BUILD): Define and substitute.
11551 (BUILD_CXXFLAGS): Define and substitute.
11552 * Makefile.in (BUILD_CXXFLAGS): Define.
11553 (CXX_FOR_BUILD): Define.
11554 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
11555 (LINKER_FOR_BUILD): Likewise.
11556 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
11557 (BUILD_LINKERFLAGS): Likewise.
11558 * configure: Regenerate.
11560 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
11562 * Makefile.in: Fix many dependencies.
11563 * tree-profile.c: Don't include regs.h.
11564 * tree-vectorizer.c: Don't include cfglayout.h.
11565 * tree-vect-stmts.c: Likewise.
11566 * tree-vect-slp.c: Likewise.
11567 * tree-vect-loop.c: Likewise.
11568 * reg-stack.c: Likewise.
11569 * tree-ssa-loop-manip.c: Likewise.
11570 * toplev.c: Likewise.
11571 * varasm.c: Don't include cfglayout.h, basic-block.h,
11572 and tree-iterator.h.
11573 * tree-cfgcleanup.c: Don't include cfglayout.h.
11574 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
11575 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
11576 * cgraphclones.c: Don't include plugin.h.
11578 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
11580 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
11581 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
11582 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
11584 2012-05-31 Richard Guenther <rguenther@suse.de>
11586 * tree-loop-distribution.c (struct partition_s): New struct,
11587 typedef and vector type.
11588 (partition_alloc, partition_free): New functions.
11589 (generate_loops_for_partition, generate_builtin,
11590 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
11591 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
11592 build_rdg_partition_for_component, can_generate_builtin,
11593 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
11594 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
11595 number_of_rw_in_partition, partition_contains_all_rw,
11596 ldist_gen): Use partition_t instead of bitmap.
11598 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
11600 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
11601 * doc/avr-mmcu.texi: Regenerate.
11603 2012-05-31 Richard Guenther <rguenther@suse.de>
11605 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
11606 Use FOR_EACH_SSA_DEF_OPERAND.
11607 (generate_builtin): Adjust.
11608 (stmt_generated_in_another_partition): Remove.
11609 (add_scalar_computations_to_partition): Likewise.
11610 (rdg_build_partitions): Do not call
11611 add_scalar_computations_to_partition.
11613 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
11615 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
11616 double ints throughout.
11617 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
11618 Check that the position of the field is representable as an integer.
11620 2012-05-31 Richard Guenther <rguenther@suse.de>
11622 * tree-data-ref.c (dr_analyze_innermost): Properly convert
11623 the MEM_REF offset to sizetype.
11625 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
11627 * doc/invoke.texi (AVR Options): Fix typos.
11629 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
11631 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
11632 and -mcpu= options.
11633 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
11634 non-v32 into --march=v0_v10.
11636 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
11638 * ira-int.h (target_ira_int): Rename x_move_cost to
11639 x_ira_register_move_cost, x_may_move_in_cost to
11640 x_ira_may_move_in_cost and x_may_move_out_cost to
11641 x_ira_may_move_out_cost. Delete the old fields with
11642 those names and also x_ira_max_register_move_cost,
11643 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
11644 (move_cost, may_move_in_cost, may_move_out_cost)
11645 (ira_max_register_move_cost, ira_max_may_move_in_cost)
11646 (ira_max_may_move_out_cost): Delete.
11647 * ira.c (init_move_cost): Rename to...
11648 (ira_init_register_move_cost): ...this, deleting the old
11649 function with that name. Apply above variable renamings.
11650 Retain asserts for null fields.
11651 (ira_init_once): Don't initialize register move costs here.
11652 (free_register_move_costs): Apply above variable renamings.
11653 Remove code for deleted fields.
11655 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
11657 * ira.c (init_move_cost): Adjust choice of subclasses to match
11658 the current ira_init_register_move_cost choice. Use
11659 ira_class_subset_p instead of reg_class_subset_p.
11660 (ira_init_register_move_cost): Assert that move_cost,
11661 may_move_in_cost and may_move_out_cost already hold the desired
11662 values for their ira_* equivalents. For the latter two,
11663 ignore classes that can't store a register of the given mode.
11665 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
11667 * ira.c (setup_allocno_and_important_classes): Use
11668 ira_class_hard_regs_num to check whether a class has any
11669 allocatable registers.
11670 (ira_init_register_move_cost): Likewise.
11672 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
11674 * ira.c (init_move_cost): Adjust local variable names to match
11675 file conventions. Use ira_assert instead of gcc_assert.
11677 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
11679 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
11680 Move these definitions and associated target_globals fields to...
11681 * ira-int.h: ...here.
11682 * rtl.h (init_move_cost): Delete.
11683 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
11684 * ira.c: ...here, making the latter static.
11686 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
11688 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
11689 and ira_register_move_cost instead of init_move_cost and move_cost.
11691 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
11693 * ira.h (target_ira): Delete x_ira_available_class_regs.
11694 (ira_available_class_regs): Delete.
11695 * ira.c (setup_available_class_regs): Delete.
11696 (setup_alloc_classes): Don't call it.
11697 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
11698 ira_available_class_regs.
11699 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
11700 (model_spill_cost): Likewise.
11701 * ira-build.c (low_pressure_loop_node_p): Likewise.
11702 * ira-color.c (color_pass): Likewise.
11703 * ira-emit.c (change_loop): Likewise.
11704 * ira-lives.c (inc_register_pressure, dec_register_pressure)
11705 (single_reg_class, ira_implicitly_set_insn_hard_regs)
11706 (process_bb_node_lives): Likewise.
11707 * loop-invariant.c (gain_for_invariant): Likewise.
11709 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11712 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
11713 (pa_section_type_flags): New.
11714 (pa_legitimate_constant_p): Revert previous change.
11716 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
11718 * ira.c (allocate_initial_values): Make static.
11720 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
11722 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
11723 Generate tls_initial_exec_64_sun only when !TARGET_X32.
11725 2012-05-30 Richard Guenther <rguenther@suse.de>
11727 PR middle-end/53501
11728 * fold-const.c (fold_binary_loc): Make sure to call
11729 fold_plusminus_mult_expr with the original sign of operands.
11731 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
11733 * Makefile.in: Fix many dependencies.
11734 (DWARF2_H): Depend on dwarf2.def.
11735 (RTL_ERROR_H): Depend on rtl-error.h.
11736 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
11737 all gimple-pretty-print.h and tree-pretty-print.h references.
11739 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
11741 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
11744 2012-05-30 Richard Guenther <rguenther@suse.de>
11746 PR middle-end/53522
11747 * tree-emutls.c (gen_emutls_addr): Do not add globals to
11750 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
11752 * explow.c (probe_stack_range): Restore simple control flow and stop
11753 again when the probe cannot be generated if HAVE_check_stack.
11755 2012-05-30 Jakub Jelinek <jakub@redhat.com>
11757 PR rtl-optimization/53519
11758 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
11759 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
11761 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11763 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
11765 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
11768 * doc/tm.texi: Update.
11769 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
11770 * target.def (force_at_comp_dir): New hook.
11771 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
11772 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
11774 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
11776 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
11778 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
11779 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
11781 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
11784 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
11785 flag_unsafe_math_optimizations is set.
11786 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
11787 Update description of -mfused-madd.
11789 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
11792 * config/sh/predicates.md (atomic_arith_operand,
11793 atomic_logical_operand): New predicates.
11794 * config/sh/sh.c (sh_option_override): Check atomic options.
11795 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
11796 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
11797 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
11798 UNSUPPORTED_HARD_ATOMIC_CPU.
11799 * config/sh/sync.md: Update description comments.
11800 (I12): New mode iterator.
11801 (fetchop_predicate, fetchop_constraint): New code attributes.
11802 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
11803 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
11804 atomic_fetch_<fetchop_name>si_hard,
11805 atomic_fetch_<fetchop_name><mode>_hard,
11806 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
11807 atomic_<fetchop_name>_fetchsi_hard,
11808 atomic_<fetchop_name>_fetch<mode>_hard,
11809 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
11810 atomic_test_and_set_hard): New insns.
11811 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
11812 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
11813 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
11814 atomic_test_and_set_soft): Use same formatting for the first line of
11815 the asm block as in new insns above.
11816 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
11817 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
11818 atomic_test_and_set): Integrate new *_hard insns into expanders.
11819 * config/sh/sh.opt (mhard-atomic): New option.
11820 * doc/invoke.texi (SH Options): Document it.
11822 2012-05-29 Meador Inge <meadori@codesourcery.com>
11824 * c-decl.c (c_push_function_context): Always create a new language
11826 (c_pop_function_context): Clear the language function created in
11827 c_push_function_context.
11829 2012-05-29 Matt Turner <mattst88@gmail.com>
11831 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
11832 (define_bypass "ev6_fcmov"): New.
11834 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
11836 * integrate.c: Remove.
11837 * integrate.h: Remove.
11838 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
11839 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
11840 * config/rs6000/t-rs6000: Likewise
11841 * config/spu/t-spu-elf: Likewise.
11842 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
11843 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
11844 from integrate.h to here.
11845 (initial_value_entry): New prototype.
11846 * reload.h (allocate_initial_values): Remove prototype.
11847 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
11848 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
11850 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
11851 set_decl_abstract_flags, set_block_abstract_flags): Move from
11852 integrate.c to here, the only user.
11853 * expmed.c (extract_fixed_bit_field): Remove outdated comment
11855 * function.c: Don't include integrate.h.
11856 (struct initial_value_pair, struct initial_value_struct,
11857 get_hard_reg_initial_val, has_hard_reg_initial_val,
11858 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
11859 integrate.c to here.
11860 (initial_value_entry): New function.
11861 * genemit.c (main): Don't print integrate.h include line.
11862 * ira.c: Don't include integrate.h.
11863 (allocate_initial_values): Move from integrate.c to here.
11864 (ira): Update allocate_initial_values call.
11865 * tree-inline.c: Don't include integrate.h.
11866 (function_attribute_inlinable_p): Moved from integrate.c to here.
11867 * cfgexpand.c: Don't include integrate.h.
11868 * except.c: Likewise.
11869 * langhooks.c: Likewise.
11870 * passes.c: Likewise.
11871 * toplev.c: Likewise.
11872 * config/frv/frv.c: Likewise.
11873 * config/pa/pa.c: Likewise.
11874 * config/spu/spu.c: Likewise.
11875 * config/epiphany/epiphany.c: Likewise.
11876 * config/mep/mep.c: Likewise.
11877 * config/score/score.c: Likewise.
11878 * config/picochip/picochip.c: Likewise.
11879 * config/sh/sh.c: Likewise.
11880 * config/alpha/alpha.c: Likewise.
11881 * config/microblaze/microblaze.c: Likewise.
11882 * config/mips/mips.c: Likewise.
11883 * config/v850/v850.c: Likewise.
11884 * config/mmix/mmix.c: Likewise.
11885 * config/bfin/bfin.c: Likewise.
11886 * config/arm/arm.c: Likewise.
11887 * config/s390/s390.c: Likewise.
11888 * config/m32r/m32r.c: Likewise.
11889 * config/rs6000/rs6000.c: Likewise.
11890 * config/c6x/c6x.c: Include function.h instead of integrate.h.
11891 * config/tilegx/tilegx.c: Likewise.
11892 * config/tilepro/tilepro.c: Likewise.
11894 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
11896 * config/avr/t-avr (s-avr-mmcu-texi): Call
11897 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
11899 2012-05-29 Michael Matz <matz@suse.de>
11901 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
11902 assign_temp): Remove 'keep' argument.
11903 (mark_temp_addr_taken): Remove prototype.
11904 * tree.h (expand_decl): Remove prototype.
11905 * function.c (struct temp_slot): Remove addr_taken and keep member.
11906 (assign_stack_temp_for_type) Don't initialize above, remove
11908 (assign_stack_temp, assign_temp): Remove keep argument.
11909 (mark_temp_addr_taken): Remove.
11910 (preserve_temp_slots): Remove handling of addr_taken and keep members.
11911 (free_temp_slots): Ditto.
11912 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
11914 * stmt.c (expand_asm_operands): Remove dead code.
11915 (expand_decl): Remove.
11916 * c-decl.c (finish_struct): Don't call expand_decl.
11917 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
11918 and assign_stack_temp.
11919 * calls.c (save_fixed_argument_area, initialize_argument_information,
11920 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
11921 * expmed.c (extract_bit_field_1): Ditto.
11922 * expr.c (emit_group_load_1, emit_group_store,
11923 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
11924 store_field, expand_constructor, expand_cond_expr_using_cmove,
11925 expand_expr_real_2, expand_expr_real_1): Ditto.
11926 * stmt.c (expand_asm_operands, expand_return): Ditto.
11928 * function.c (pop_temp_slots): Call free_temp_slots.
11929 * calls.c (store_one_arg): Don't call preserve_temp_slots or
11931 * expr.c (expand_assignment): Don't call free_temp_slots.
11933 * config/arm/arm.c (neon_expand_vector_init): Ditto.
11934 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
11935 (ix86_expand_vector_extract): Ditto.
11936 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
11937 ia64_expand_movxf_movrf): Ditto.
11938 * config/mips/mips.c (mips_expand_vi_general): Ditto.
11939 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
11940 extendsfdf2): Ditto.
11941 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
11942 rs6000_expand_vector_set, rs6000_expand_vector_extract,
11943 rs6000_allocate_stack_temp): Ditto.
11944 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
11945 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
11946 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
11947 sparc_expand_vector_init): Ditto.
11949 2012-05-29 Michael Matz <matz@suse.de>
11951 * c-tree.h (c_expand_decl): Remove prototype.
11953 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
11955 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
11956 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
11957 COMPOUND_LITERAL_EXPR.
11958 * function.c (expand_function_start): Don't call expand_decl,
11959 instead assert that we have RTL assigned.
11960 * tree-ssa-live.c (remove_unused_locals): Clear
11961 nonlocal_goto_save_area if its backing variable is removed.
11962 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
11964 (expand_decl): Assert that this does nothing.
11965 * calls.c (expand_call): Don't call mark_temp_addr_taken.
11967 2012-05-29 Richard Guenther <rguenther@suse.de>
11969 PR tree-optimization/53516
11970 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
11972 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
11974 2012-05-29 Joseph Myers <joseph@codesourcery.com>
11976 * LANGUAGES: Fix typos.
11977 * Makefile.in: Fix typos.
11978 * alias.c: Fix typos.
11979 * auto-inc-dec.c: Fix typos.
11980 * bb-reorder.c: Fix typos.
11981 * cfgcleanup.c: Fix typos.
11982 * cgraph.c: Fix typos.
11983 * cgraph.h: Fix typos.
11984 * cgraphunit.c: Fix typos.
11985 * collect2-aix.h: Fix typos.
11986 * collect2.c: Fix typos.
11987 * compare-elim.c: Fix typos.
11988 * config/alpha/vms.h: Fix typos.
11989 * config/arm/README-interworking: Fix typos.
11990 * config/arm/arm.c: Fix typos.
11991 * config/arm/iterators.md: Fix typos.
11992 * config/arm/vxworks.h: Fix typos.
11993 * config/avr/avr.c: Fix typos.
11994 * config/avr/avr.h: Fix typos.
11995 * config/avr/avr.md: Fix typos.
11996 * config/avr/builtins.def: Fix typos.
11997 * config/c6x/c6x.c: Fix typos.
11998 * config/cr16/cr16.c: Fix typos.
11999 * config/cr16/cr16.md: Fix typos.
12000 * config/cris/cris.md: Fix typos.
12001 * config/darwin.c: Fix typos.
12002 * config/darwin.opt: Fix typos.
12003 * config/i386/i386-c.c: Fix typos.
12004 * config/i386/i386.c: Fix typos.
12005 * config/ia64/ia64.c: Fix typos.
12006 * config/m68k/cf.md: Fix typos.
12007 * config/mep/mep.c: Fix typos.
12008 * config/microblaze/microblaze.c: Fix typos.
12009 * config/microblaze/microblaze.h: Fix typos.
12010 * config/mn10300/mn10300.c: Fix typos.
12011 * config/mn10300/mn10300.md: Fix typos.
12012 * config/pa/pa.c: Fix typos.
12013 * config/picochip/picochip.h: Fix typos.
12014 * config/rs6000/a2.md: Fix typos.
12015 * config/rs6000/rs6000.c: Fix typos.
12016 * config/rs6000/vector.md: Fix typos.
12017 * config/rx/rx.md: Fix typos.
12018 * config/rx/rx.opt: Fix typos.
12019 * config/s390/2097.md: Fix typos.
12020 * config/s390/s390.c: Fix typos.
12021 * config/s390/s390.h: Fix typos.
12022 * config/sh/sh.c: Fix typos.
12023 * config/sh/sh.md: Fix typos.
12024 * config/sparc/sync.md: Fix typos.
12025 * config/spu/spu.c: Fix typos.
12026 * config/spu/spu.md: Fix typos.
12027 * config/vms/vms.c: Fix typos.
12028 * config/vxworks-dummy.h: Fix typos.
12029 * config/vxworks.h: Fix typos.
12030 * cselib.c: Fix typos.
12031 * df-scan.c: Fix typos.
12033 * doc/extend.texi: Fix typos.
12034 * doc/install.texi: Fix typos.
12035 * doc/invoke.texi: Fix typos.
12036 * doc/md.texi: Fix typos.
12037 * doc/plugins.texi: Fix typos.
12038 * doc/rtl.texi: Fix typos.
12039 * dse.c: Fix typos.
12040 * dwarf2asm.c: Fix typos.
12041 * dwarf2out.c: Fix typos.
12042 * except.h: Fix typos.
12043 * expr.c: Fix typos.
12044 * fold-const.c: Fix typos.
12045 * gcc.c: Fix typos.
12046 * gcse.c: Fix typos.
12047 * genautomata.c: Fix typos.
12048 * gengtype-state.c: Fix typos.
12049 * gengtype.c: Fix typos.
12050 * genhooks.c: Fix typos.
12051 * gimple-fold.c: Fix typos.
12052 * gimple-pretty-print.c: Fix typos.
12053 * gimple.c: Fix typos.
12054 * gimple.h: Fix typos.
12055 * gimplify.c: Fix typos.
12056 * graphite-interchange.c: Fix typos.
12057 * graphite-sese-to-poly.c: Fix typos.
12058 * ifcvt.c: Fix typos.
12059 * input.c: Fix typos.
12060 * ipa-cp.c: Fix typos.
12061 * ipa-inline-analysis.c: Fix typos.
12062 * ipa-inline-transform.c: Fix typos.
12063 * ipa-inline.c: Fix typos.
12064 * ipa-pure-const.c: Fix typos.
12065 * ipa-ref.h: Fix typos.
12066 * ipa-reference.c: Fix typos.
12067 * ipa-utils.c: Fix typos.
12068 * ipa.c: Fix typos.
12069 * ira-emit.c: Fix typos.
12070 * ira-lives.c: Fix typos.
12071 * lto-streamer.c: Fix typos.
12072 * lto-streamer.h: Fix typos.
12073 * lto-wrapper.c: Fix typos.
12074 * mcf.c: Fix typos.
12075 * mode-switching.c: Fix typos.
12076 * modulo-sched.c: Fix typos.
12077 * plugin.c: Fix typos.
12078 * postreload.c: Fix typos.
12079 * sched-deps.c: Fix typos.
12080 * sel-sched-ir.c: Fix typos.
12081 * sel-sched-ir.h: Fix typos.
12082 * sel-sched.c: Fix typos.
12083 * sese.c: Fix typos.
12084 * stor-layout.c: Fix typos.
12085 * target-hooks-macros.h: Fix typos.
12086 * target.def: Fix typos.
12087 * trans-mem.c: Fix typos.
12088 * tree-eh.c: Fix typos.
12089 * tree-predcom.c: Fix typos.
12090 * tree-sra.c: Fix typos.
12091 * tree-ssa-address.c: Fix typos.
12092 * tree-ssa-loop-ivopts.c: Fix typos.
12093 * tree-ssa-loop-niter.c: Fix typos.
12094 * tree-ssa-math-opts.c: Fix typos.
12095 * tree-ssa-pre.c: Fix typos.
12096 * tree-ssa-propagate.c: Fix typos.
12097 * tree-ssa-reassoc.c: Fix typos.
12098 * tree-ssa-sccvn.c: Fix typos.
12099 * tree-ssa-ter.c: Fix typos.
12100 * tree-ssa-uninit.c: Fix typos.
12101 * tree-ssanames.c: Fix typos.
12102 * tree-vect-generic.c: Fix typos.
12103 * tree-vect-slp.c: Fix typos.
12104 * tree.c: Fix typos.
12105 * tree.h: Fix typos.
12106 * varasm.c: Fix typos.
12107 * varpool.c: Fix typos.
12109 2012-05-29 Joseph Myers <joseph@codesourcery.com>
12111 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
12113 2012-05-29 Richard Guenther <rguenther@suse.de>
12115 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
12117 (add_referenced_var_1): Re-organize. Assert we are not
12118 called for globals.
12119 (remove_referenced_var): Likewise.
12120 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
12121 * tree-mudflap.c (execute_mudflap_function_ops): Do not
12122 call add_referenced_var on globals.
12123 * matrix-reorg.c (transform_access_sites): Likewise.
12125 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
12127 * alias.c (reg_known_value): Make this a VEC.
12128 (reg_known_equiv_p): Make this an sbitmap.
12129 (reg_known_value_size): Remove.
12130 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
12131 set_reg_known_equiv_p): Update for reg_known_value and
12132 reg_known_value_size data structure change.
12133 (init_alias_analysis, end_alias_analysis): Likewise.
12135 2012-05-29 Jakub Jelinek <jakub@redhat.com>
12137 PR middle-end/53510
12138 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
12139 to avoid leaking memory. No need to handle memory allocation
12140 failure. Double string_len on each reallocation instead of adding 2.
12141 * gcov.c (read_line): Likewise.
12143 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
12145 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
12147 * config/cris/cris.md ("trap"): Define, enabled for
12148 TARGET_TRAP_USING_BREAK8.
12149 * config/cris/cris.opt (mtrap-using-break8): New option.
12151 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
12154 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
12157 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
12159 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
12160 (Standard Names): Fix typos in documentation of atomic patterns.
12162 2012-05-27 Nathan Sidwell <nathan@acm.org>
12164 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
12166 2012-05-26 Jason Merrill <jason@redhat.com>
12169 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
12170 about array compound literals.
12172 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
12174 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
12175 if CLEANUP_NO_INSN_DEL.
12176 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
12177 from cfg_layout_merge_blocks.
12178 (emit_nop_for_unique_locus_between): New function.
12179 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
12180 (cfg_layout_merge_blocks): Likewise.
12182 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
12183 Paolo Bonzini <bonzini@gnu.org>
12185 * df-scan.c (df_def_record_1): Assert a parallel must contain an
12186 EXPR_LIST at this point. Receive the LOC and move its extraction...
12187 (df_defs_record): ... here. Change if-else to a switch statement.
12188 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
12189 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
12190 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
12191 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
12192 regs_invalidated_by_call.
12193 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
12194 df_get_call_refs().
12196 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
12199 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
12200 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
12202 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
12204 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
12205 software floating point emulation. No longer build the multilibs
12206 with -mstrict-align.
12208 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
12210 PR middle-end/53008
12211 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
12212 accessed indirectly.
12213 (ipa_tm_create_version): Same.
12215 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
12218 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
12219 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
12221 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
12224 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
12225 (ix86_expand_vec_perm): Use int mode instead of float.
12226 (expand_vec_perm_pshufb): Remove handling of useseless type
12229 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
12232 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
12233 gnu_ld variables to yes.
12234 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
12235 (HAVE_GNU_AS): Likewise.
12236 * config.in: Regenerate.
12237 * configure: Likewise.
12239 2012-05-25 Tristan Gingold <gingold@adacore.com>
12241 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
12242 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
12243 and preferred_alignment.
12245 2012-05-25 Tristan Gingold <gingold@adacore.com>
12247 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
12249 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
12251 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
12252 volatile bitfields case.
12254 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
12256 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
12257 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
12258 (adjacent_mem_locations): Move some code to and call...
12259 (get_memref_parts): ...new function.
12260 (mem_locations_overlap): New function.
12261 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
12262 (is_mem_ref): Rename to...
12263 (find_mem_ref): ...this. Return MEM rtx.
12264 (get_store_dest): Remove function.
12265 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
12266 new parameter and adjust calls.
12267 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
12268 mem refs overlap for true_store_to_load_dep_costly.
12269 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
12270 passed to adjacent_mem_locations.
12271 (is_costly_group): Walk resolved dependency list.
12272 (force_new_group): Emit group ending nop for Power6/Power7.
12273 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
12274 (group_ending_nop): New define_insn.
12276 2012-05-24 Dodji Seketeli <dodji@redhat.com>
12278 Make unwound macro expansion trace less redundant
12279 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
12280 context of macro definition in the trace, when it's redundant.
12283 2012-05-24 Richard Guenther <rguenther@suse.de>
12285 PR middle-end/53460
12286 * tree-profile.c (tree_profiling): Cleanup the CFG if
12287 execute_fixup_cfg requests it.
12289 2012-05-24 Richard Guenther <rguenther@suse.de>
12291 * tree-flow.h (create_var_ann): Remove.
12292 * tree-dfa.c (create_var_ann): Remove and inline into its
12294 (add_referenced_var_1): ... here.
12295 * varpool.c (add_new_static_var): Do not call add_referenced_var
12297 * gimple-fold.c (canonicalize_constructor_val): Likewise.
12298 * tree-switch-conversion.c (build_one_array): Likewise.
12299 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
12300 * tree-flow-inline.h (gimple_referenced_vars): Guard against
12302 * tree-inline.c (remap_gimple_op_r): Likewise. Check
12303 gimple_referenced_vars instead of gimple_in_ssa_p.
12304 (copy_tree_body_r): Likewise.
12305 (setup_one_parameter): Likewise.
12306 (declare_return_variable): Likewise.
12307 (tree_function_versioning): Likewise.
12309 2012-05-24 Jakub Jelinek <jakub@redhat.com>
12311 PR tree-optimization/53465
12312 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
12313 vr0 into *vr, then vrp_meet that.
12314 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
12315 have any equivalences.
12316 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
12319 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
12321 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
12323 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
12324 check end_regno - 1 is a hard register.
12326 2012-05-24 Richard Guenther <rguenther@suse.de>
12328 * varpool.c (add_new_static_var): Remove call to create_var_ann.
12329 * tree-ssa-operands.c (create_vop_var): Likewise.
12331 2012-05-24 Richard Guenther <rguenther@suse.de>
12334 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
12336 (remove_unused_locals): Pass global_unused_vars to
12337 remove_unused_scope_block_p. Restore code walking all
12338 referenced vars and pruning them.
12340 2012-05-23 Jan Hubicka <jh@suse.cz>
12342 * tree.h (alias_diag_flags): Remove.
12343 (alias_pair): Remove emitted_diags.
12344 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
12345 symbol_alias_set_t, symbol_alias_set_destroy,
12346 symbol_alias_set_contains, propagate_aliases_backward): Remove.
12347 * toplev.c (compile_file): Do not call finish_aliases_2
12348 * cgraphunit.c (cgraph_process_new_functions): Do not call
12350 (handle_alias_pairs): Output diagnostics about aliases to externals.
12351 (assemble_thunks_and_aliases): Use do_assemble_alias.
12352 (output_weakrefs): Likewise.
12353 (finalize_compilation_unit): Do not call finish_aliases_1.
12354 * ipa.c (symtab_remove_unreachable_nodes): De not call
12355 remove_unreachable_alias_pairs.
12356 * varasm.c (do_assemble_alias): Export.
12357 (symbol_alias_set_create, symbol_alias_set_destroy,
12358 symbol_alias_set_contains, symbol_alias_set_insert,
12359 propagate_aliases_forward, propagate_aliases_backward,
12360 propagate_aliases_backward, trivially_visible_alias,
12361 trivially_defined_alias, remove_unreachable_alias_pairs,
12362 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
12363 * output.h (do_assemble_alias): Declare.
12364 * varpool.c (varpool_remove_unreferenced_decls): Do not call
12367 2012-05-23 Martin Jambor <mjambor@suse.cz>
12369 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
12371 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
12373 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
12375 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
12376 (iterative_hash_gimple_type): Adjust comment.
12377 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
12378 domain for an array type instead of the domain type itself.
12380 2012-05-23 Richard Guenther <rguenther@suse.de>
12382 PR tree-optimization/53438
12383 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
12385 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
12388 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
12389 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
12392 2012-05-23 Richard Guenther <rguenther@suse.de>
12394 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
12395 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
12396 via the global_unused_vars bitmap.
12397 (remove_unused_locals): Handle global vars in local-decls via
12398 a global_unused_vars bitmap instead of the used flag in the
12399 var annotation. Simplify global variable handling and removal.
12401 2012-05-22 Jan Hubicka <jh@suse.cz>
12403 PR middle-end/53426
12404 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
12405 from other partitions.
12407 2012-05-22 Jan Hubicka <jh@suse.cz>
12409 PR middle-end/53161
12410 * symtab.c (symtab_register_node): Fix ordering issue.
12412 2012-05-22 Steven Drake <sbd@NetBSD.org>
12414 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
12416 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
12418 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
12419 Use strip_name_encoding target hook.
12421 2012-05-22 Richard Guenther <rguenther@suse.de>
12423 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
12424 (init_function_for_compilation): Remove.
12425 * tree-dfa.c (find_vars_r): Take struct function argument.
12426 (find_referenced_vars_in): Adjust.
12427 * tree-ssa-operands.c (clobber_stats): Remove.
12428 (create_vop_var): Take struct function argument. Mark
12429 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
12430 (init_ssa_operands): Take struct function argument.
12431 (fini_ssa_operands): Do not dump dead stats.
12432 * tree-ssa-operands.h (init_ssa_operands): Take struct function
12434 * cgraphunit.c (init_lowered_empty_function): Adjust.
12435 * lto-streamer-in.c (input_cfg): Likewise.
12436 * tree-inline.c (initialize_cfun): Likewise.
12437 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
12438 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
12439 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
12440 virtual operands are not registers.
12442 2012-05-22 Richard Guenther <rguenther@suse.de>
12444 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
12446 2012-05-22 Richard Guenther <rguenther@suse.de>
12448 PR middle-end/53437
12449 * tree-inline.c (setup_one_parameter): Create a dummy init
12450 statement for unused parameters when not optimizing.
12452 2012-05-22 Richard Guenther <rguenther@suse.de>
12454 * tree-flow.h (add_referenced_var_1): Declare.
12455 (add_referenced_var): Define.
12456 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
12457 (add_referenced_var): Rename to ...
12458 (add_referenced_var_1): ... this. Take struct function argument.
12460 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12463 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
12464 * config/arm/arm.c (arm_validize_comparison): Define.
12465 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
12466 arm_validize_comparison.
12467 ("cbranchdi4"): Likewise.
12468 ("cstoredi4"): Likewise.
12469 ("movsicc"): Likewise.
12470 ("movsfcc"): Likewise.
12471 ("movdfcc"): Likewise.
12473 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
12475 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
12476 the mw_reg_pool size.
12478 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
12480 PR tree-optimization/53336
12481 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
12482 non-integer integral types to offset type and vice versa.
12484 2012-05-22 Alan Modra <amodra@gmail.com>
12486 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
12487 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
12488 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
12489 V_SAVE_INLINE): Delete.
12490 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
12491 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
12492 For ELF targets, use out-of-line restores for -Os and any number
12493 of regs if the restore exits, and out-of-line gp save for two or
12494 more regs. Use save_reg_p to test for holes in reg restore set.
12495 Replace "#if" with "if".
12497 2012-05-22 Alan Modra <amodra@gmail.com>
12499 * config/rs6000/rs6000.c (save_reg_p): New function.
12500 (first_reg_to_save, first_fp_reg_to_save): Use it here.
12501 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
12502 (emit_frame_save): Use gen_frame_store.
12503 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
12504 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
12506 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
12507 vrsave, toc, gp and fp restores.
12509 2012-05-22 Alan Modra <amodra@gmail.com>
12511 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
12512 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
12513 Move function pointer variables after forward declarations.
12514 (rs6000_builtin_support_vector_misalignment): Make static.
12515 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
12516 (rs6000_function_value, rs6000_can_eliminate): Likewise.
12518 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
12520 PR rtl-optimization/53373
12521 * caller-save.c (save_call_clobbered_regs): Look into a possible
12522 PARALLEL manually rather than using single_set on a call insn.
12524 2012-05-21 Jakub Jelinek <jakub@redhat.com>
12526 PR tree-optimization/53436
12527 * omp-low.c (omp_build_component_ref): New function.
12528 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
12530 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
12532 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
12534 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
12535 Do not print '.' here. Output operand lossage error for unhandled
12540 <case 'z'>: Hardcode "code" argument into error strings.
12542 <case 'D'>: Merge AVX and non-AVX codes.
12543 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
12544 Update call to put_condition_code.
12546 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
12548 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
12550 (clzsi2): New expander.
12551 (*clzsi2_68k): New insn.
12552 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
12554 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
12556 * gimple.h (gimple_set_in_transaction): Remove.
12557 (gimple_in_transaction): Look in BB instead.
12558 (gimple_statement_base): Remove in_transaction field.
12559 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
12560 * trans-mem.c (compute_transaction_bits): Place transaction bit
12561 information into basic blocks.
12563 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
12565 * expr.c (get_def_for_expr_class): Define only if
12566 HAVE_conditional_move.
12567 (convert_tree_comp_to_rtx): Likewise.
12569 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
12572 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
12574 (ffssi2_no_cmove): Ditto.
12575 (*ffs<mode>_1): Remove insn pattern.
12576 (*tzcnt<mode>_1): New insn pattern.
12577 (*bsf<mode>1): Ditto.
12579 2012-05-21 Richard Guenther <rguenther@suse.de>
12581 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
12582 more referenced vars.
12583 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
12584 flag on variables that have a var-annotation.
12586 2012-05-21 Joseph Myers <joseph@codesourcery.com>
12589 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
12590 from folded operands before wrapping another around the
12591 conditional expression.
12593 2012-05-21 Jakub Jelinek <jakub@redhat.com>
12595 PR tree-optimization/53366
12596 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
12597 tests if complex_numbers == 2, but there are non-complex number loads
12600 PR tree-optimization/53409
12601 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
12602 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
12604 PR tree-optimization/53410
12605 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
12606 instead of build_int_cst (type, 0) where vector types might be
12607 involved. Instead of build_int_cst (type, 1) convert the original
12608 integer_onep argument to the desired type.
12610 2012-05-21 Michael Matz <matz@suse.de>
12612 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
12613 (simplify_test_exp): Handle one more case of distributive law,
12614 decrease cost threshold.
12615 (tests_attr_p, get_attr_order): New functions.
12616 (optimize_attrs): Use topological order, inline only cheap values.
12617 (write_attr_set): Reset our_known_true after some time.
12619 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
12622 * config/i386/i386.c (type_natural_mode): Warn passing SSE
12623 vector argument without SSE enabled changes the ABI.
12625 2012-05-21 Richard Guenther <rguenther@suse.de>
12627 PR tree-optimization/53408
12628 * tree-vect-loop.c (vectorizable_induction): Properly check
12629 the restriction that we cannot handle induction results from
12630 the inner loop outside of the outer loop.
12632 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
12635 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
12636 (UNSPECV_RDRAND): This.
12637 (rdrand<mode>_1): Updated.
12639 2012-05-21 Richard Guenther <rguenther@suse.de>
12641 * tree-loop-distribution.c (can_generate_builtin): Reject
12644 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
12646 * Makefile.in (options.c): Add options.h to included header
12647 files, before tm.h.
12649 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
12651 * tree-parloops.c : Add myself to contributors, update
12652 TODO list, add link to wiki.
12654 2012-05-21 Alan Modra <amodra@gmail.com>
12656 * config/rs6000/predicates.md (input_operand): Don't match
12657 constant pool addresses. Remove label_ref, high and plus from
12658 match_code list. Remove redundant CONSTANT_P test.
12659 (splat_input_operand): Similarly update match_code list.
12660 (small_toc_ref): New predicate.
12661 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
12662 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
12663 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
12664 register checks to..
12665 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
12666 generated by create_TOC_reference.
12667 (rs6000_legitimize_address): Update cerate_TOC_reference call.
12668 (rs6000_delegitimize_address): Handle new rtl for toc refs.
12669 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
12670 (use_toc_relative_ref): New function, split out from..
12671 (rs6000_emit_move): ..here. Remove redundant tests. Update
12672 create_TOC_reference calls.
12673 (rs6000_legitimize_reload_address): Formatting. Handle splitting
12674 of medium/large model toc addresses. Use use_toc_relative_ref.
12675 (print_operand): Formatting, style. Adjust for toc changes.
12676 (print_operand_address): Likewise.
12677 (rs6000_output_addr_const_extra): Likewise.
12678 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
12679 than a PLUS. Use this formulation for both high and low part
12680 of -mcmodel=medium/large toc reference too. Before reload,
12681 always use the small model formulation.
12682 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
12683 a PLUS in high part of addresses here.
12684 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
12685 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
12686 (largetoc_high, largetoc_low): Move earlier. Cope when no
12687 base reg available.
12688 (largetoc_high_plus): New insn.
12689 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
12690 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
12691 (tocref): ..instead do so here, new insn and split.
12693 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
12695 * config/i386/driver-i386.c (host_detect_local_cpu): Support
12696 RDRND, F16C and FSGSBASE.
12698 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12700 PR rtl-optimzation/53373
12701 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
12702 call pattern. Update split patterns.
12703 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
12704 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
12706 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
12708 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
12711 2012-05-18 Jan Hubicka <jh@suse.cz>
12713 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
12714 (cgraph_process_new_functions): Process also aliases.
12715 * lto-streamer-out.c (struct sets): Remove.
12716 (trivally_defined_alias): Remove.
12717 (output_alias_pair_p): Remove.
12718 (output_unreferenced_globals): Remove.
12719 (produce_symtab); Do not handle alias pairs.
12720 (produce_asm_for_decls): Likewise.
12721 * lto-streamer-in.c (input_alias_pairs): Remove.
12722 (lto_read_body): Do not input alias pairs.
12723 (lto_input_constructors_and_inits): Remove.
12725 2012-05-18 Jan Hubicka <jh@suse.cz>
12727 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
12730 2012-05-18 Jan Hubicka <jh@suse.cz>
12732 * cgraphbuild.c (record_reference): Update.
12733 * lto-cgraph.c (lto_output_varpool_node): External vars
12734 are not in other partition even if they are not output
12735 in current partition.
12736 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
12738 (canonicalize_constructor_val): Take FROM_DECL argument.
12739 (fold_ctor_reference, fold_string_cst_ctor_reference,
12740 fold_array_ctor_reference, fold_nonarray_ctor_reference,
12741 fold_ctor_reference): Likewise.
12742 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
12743 * gimple.h (gimple_fold_builtin): Likewise.
12745 2012-05-18 Olivier Hainque <hainque@adacore.com>
12747 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
12748 $(libsubdir) as libexecsubdir.
12750 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12752 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
12753 relied on signed overflow behavior.
12755 2012-05-18 Richard Guenther <rguenther@suse.de>
12757 PR tree-optimization/53346
12758 * tree-loop-distribution.c (ldist_gen): Make sure to apply
12759 builtin transform even when only a single partition with
12760 all reads/writes exists.
12762 2012-05-18 Richard Guenther <rguenther@suse.de>
12764 PR tree-optimization/53390
12765 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
12768 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12770 * tree-ssa-reassoc.c (bip_map): Remove decl.
12771 (completely_remove_stmt): Remove function.
12772 (remove_def_if_absorbed_call): Remove function.
12773 (remove_visited_stmt_chain): Remove __builtin_powi handling.
12774 (possibly_move_powi): Remove function.
12775 (rewrite_expr_tree): Remove calls to possibly_move_powi.
12776 (rewrite_expr_tree_parallel): Likewise.
12777 (attempt_builtin_powi): Build multiplies explicitly rather than
12778 relying on the ops vector and rank system.
12779 (transform_stmt_to_copy): New function.
12780 (transform_stmt_to_multiply): Likewise.
12781 (reassociate_bb): Handle leftover operations after __builtin_powi
12782 optimization; build a final multiply if necessary.
12784 2012-05-18 Jan Hubicka <jh@suse.cz>
12786 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
12787 (mark_functions_to_output): Fix sanity check.
12788 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
12790 2012-05-18 Richard Guenther <rguenther@suse.de>
12792 * tree-flow.h (mark_symbols_for_renaming): Remove.
12793 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
12794 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
12795 (copy_debug_stmt): Likewise.
12796 (expand_call_inline): Likewise.
12797 (declare_return_variable): Mark the return variable for renaming
12800 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
12802 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
12804 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
12805 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
12806 (ashrdi3,lshrdi3): Likewise.
12807 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
12809 2012-05-18 Meador Inge <meadori@codesourcery.com>
12811 PR rtl-optimization/53352
12812 * cse.c (equiv_constant): Ignore paradoxical subregs.
12814 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
12816 PR rtl-optimization/53125
12817 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
12818 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
12819 die in the basic block. Correctly top off REG_FREQ and
12820 REG_FREQ_CALLS_CROSSED.
12822 (regstat_compute_ri): Allocate and free local_live_last_luid.
12824 (regstat_bb_compute_calls_crossed): Correctly top off
12825 REG_FREQ_CALLS_CROSSED.
12827 2012-05-17 Jan Hubicka <jh@suse.cz>
12829 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
12830 constructor over decl without.
12831 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
12832 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
12833 * cgraphunit.c (process_function_and_variable_attributes): Finalize
12835 (mark_functions_to_output): Also accept bodies for functions with
12837 (output_in_order): Skip external vars.
12838 * lto-cgraph.c (lto_output_node): External functions are never in other
12840 (lto_output_varpool_node): Likewise.
12841 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
12842 forgotten initializers.
12843 * ipa.c (process_references): Handle external vars.
12844 (symtab_remove_unreachable_nodes): Update to handle external vars.
12845 (varpool_externally_visible_p): External vars are externally visible.
12846 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
12847 * varpool.c (varpool_remove_node): Remove constructor.
12848 (decide_is_variable_needed): Handle externals.
12849 (varpool_remove_unreferenced_decls): Likewise.
12851 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
12853 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
12854 (enable_warning_as_error): Do not special case Wuninitialized.
12855 * optc-gen.awk: Add sanity checks.
12857 2012-05-17 Jan Hubicka <jh@suse.cz>
12859 * ipa-reference.c (is_proper_for_analysis): Do not check flags
12860 that might change as result of global optimization.
12861 (analyze_function): Do not check analyzed and externally_visible
12862 flags; be happy about address dereferences.
12863 (propagate): Prune all_module_statics so it really contains just
12864 statics; prune all the local summaries.
12865 (ipa_reference_write_optimization_summary): Simplify.
12867 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
12869 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
12870 * config/m68k/m68k-tables.opt: Regenerated.
12871 * doc/invoke.texi (M680x0 Options): Document.
12873 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
12874 Patrick Marlier <patrick.marlier@gmail.com>
12876 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
12879 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
12881 * configure: Regenerated.
12883 2012-05-16 Andrew Pinski <apinski@cavium.com>
12885 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
12888 2012-05-16 David S. Miller <davem@davemloft.net>
12890 * jump.c (delete_related_insns): If we remove a CALL, make sure
12891 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
12893 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12895 PR tree-optimization/53217
12896 * tree-ssa-reassoc.c (bip_map): New static variable.
12897 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
12898 (attempt_builtin_powi): Save feeding multiplies on a stack.
12899 (reassociate_bb): Create and destroy bip_map.
12901 2012-05-16 Olivier Hainque <hainque@adacore.com>
12903 * Makefile.in (install-no-fixedincludes): New target, former toplevel
12904 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
12905 Add comments and improve stamp preservation across the whole sequence.
12906 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
12908 2012-05-16 Richard Guenther <rguenther@suse.de>
12910 * tree-inline.c (insert_init_stmt): Do not call
12911 mark_symbols_for_renaming.
12912 (setup_one_parameter): Avoid initializing unused parameters.
12913 (declare_return_variable): Properly handle DECL_BY_REFERENCE
12914 return vars in SSA form.
12916 2012-05-16 Richard Guenther <rguenther@suse.de>
12918 * tree-flow.h (get_virtual_var): Remove.
12919 * tree-dfa.c (get_virtual_var): Likewise.
12921 2012-05-16 Richard Guenther <rguenther@suse.de>
12923 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
12924 Remove set-only bitmap of new names.
12925 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
12927 * tree-flow.h (ssa_names_to_replace): Remove.
12928 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
12930 2012-05-16 Richard Guenther <rguenther@suse.de>
12932 PR tree-optimization/53364
12933 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
12934 detect a view-conversion of the decl.
12936 2012-05-16 Dodji Seketeli <dodji@redhat.com>
12938 PR preprocessor/7263
12939 * c-tree.h (enum c_declspec_word): Declare new enum.
12940 (struct c_declspecs::locations): New member.
12941 (declspecs_add_qual, declspecs_add_scspec)
12942 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
12943 location parameter.
12944 * c-decl.c (build_null_declspecs): Initialize the new struct
12945 c_declspecs::locations member.
12946 (declspecs_add_addrspace): Take a location parameter for the
12947 address space. Store it onto declaration specifiers.
12948 (declspecs_add_qual): Likewise, take a location parameter for the
12950 (declspecs_add_type): Likewise, take a location parameter for the
12952 (declspecs_add_scspec): Likewise, take a location parameter for
12953 the storage class specifier.
12954 (declspecs_add_attrs): Likewise, take a location parameter for the
12956 (declspecs_add_alignas): Likewise, take a location parameter for
12958 (finish_declspecs): For diagnostics, use the location of the
12959 relevant declspec, instead of the global input_location.
12960 * c-parser.c (c_parser_parameter_declaration): Pass the precise
12961 virtual location of the declspec to the declspecs-setters.
12962 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
12965 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
12967 * configure.ac: Stack protector enabling for Android targets.
12968 * configure: Regenerate.
12970 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
12972 * ira.c (pseudo_move_insn): Delete.
12973 (find_moveable_pseudos): Don't set it.
12974 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
12975 the definitions of the original pseudo. Delete all of them.
12977 2012-05-16 Olivier Hainque <hainque@adacore.com>
12979 * config/rs6000/rs6000-opts.h (enum processor_type): Add
12981 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
12982 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
12983 * config/rs6000/8540.md: indicate that the units/patterns apply to
12986 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
12987 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
12988 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
12989 related flags, check that what is queried is supported by the selected
12990 configuration. Rework the single/double_float and MASK_STRING resets to
12991 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
12992 costs for PROCESSOR_PPC8548 as well.
12993 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
12994 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
12995 statement instead of a sequence of ifs.
12997 * config/rs6000/rs6000.h (TARGET_E500): Remove.
12998 (TARGET_NO_LWSYNC): Adjust accordingly.
12999 * config/rs6000/e500.h (TARGET_E500): Remove.
13000 (CHECK_E500_OPTIONS): Adjust accordingly.
13001 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
13002 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
13003 * config/rs6000/linuxspe.h: Likewise.
13004 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
13005 superfluous comments.
13006 * config/rs6000/e500-double.h: Remove.
13008 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
13009 default to with_cpu=8548 if --enable-e500-double, and to 8540
13011 (set misc flags section): For powerpc*|rs6000*, remove inclusion
13012 of e500-double.h for --enable-e500-double.
13014 2012-05-16 Olivier Hainque <hainque@adacore.com>
13016 * Makefile.in (s-header-vars): Resort to -n instead of trailing
13017 -e d in sed invocation.
13019 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
13021 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
13023 * doc/tm.texi: Regenerate.
13025 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
13027 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
13029 2012-05-15 Jakub Jelinek <jakub@redhat.com>
13032 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
13033 that operands[2] is either immediate, or q_regs_operand.
13035 2012-05-15 Richard Guenther <rguenther@suse.de>
13037 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
13038 (assemble_thunk): Likewise. Manually rename and register
13039 function arguments.
13041 2012-05-15 Richard Guenther <rguenther@suse.de>
13043 PR tree-optimization/53355
13044 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
13047 2012-05-15 Tristan Gingold <gingold@adacore.com>
13049 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
13051 2012-05-15 Richard Guenther <rguenther@suse.de>
13053 * gimple.c (gimple_set_modified): Move ...
13054 * gimple.h (gimple_set_modified): ... here.
13056 2012-05-15 Tristan Gingold <gingold@adacore.com>
13058 * ira-color.c (move_spill_restore): Add a guard.
13060 2012-05-15 Tristan Gingold <gingold@adacore.com>
13062 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
13065 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
13067 * gimplify.c (gimplify_init_constructor): Do a block move for very
13068 small objects as well.
13070 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
13072 * ira.c (find_moveable_pseudos): Skip registers whose
13073 DF_REG_EQ_USE_COUNT is nonzero.
13075 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
13077 * doc/md.texi (fma): Define to only be applicable for single rounding.
13079 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
13082 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
13083 generate target register for "load" class builtins.
13086 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
13089 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
13090 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
13091 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
13092 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
13093 (<sse>_movu<ssemodesuffix>): New expander.
13094 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
13095 (avx_movdqu<avxmodesuffix>): New expander.
13096 (*sse2_movdqu): Rename from sse2_movdqu.
13097 (sse2_movdqu): New expander.
13099 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
13102 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
13103 (canonicalize_perm): ... new function.
13104 (expand_vec_perm_2vperm2f128_vshuf): New function.
13105 (ix86_expand_vec_perm_const_1): Call it.
13107 2012-05-14 Andrew Pinski <apinski@cavium.com>
13108 H.J. Lu <hongjiu.lu@intel.com>
13109 Jakub Jelinek <jakub@redhat.com>
13112 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
13115 2012-05-14 Jakub Jelinek <jakub@redhat.com>
13117 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
13118 lineno 1 the same as lineno 0 before first start file directive.
13119 (optimize_macinfo_range): Likewise.
13121 * dwarf2out.c (have_macinfo): Define.
13122 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
13123 attribute, don't force empty compilation unit and don't emit any
13124 .debug_macinfo/.debug_macro section if macinfo_table is empty.
13126 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
13129 * config/avr/avr.c (avr_const_address_lo16): Remove.
13130 (avr_assemble_integer): Print ".byte lo8(x)",
13131 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
13132 .warning if 3-byte address is assembled.
13133 * doc/extend.texi (AVR Named Address Spaces): Document that
13134 binutils 2.23 is needed to assemble 3-byte addresses.
13136 2012-05-14 Richard Guenther <rguenther@suse.de>
13138 * tree-vect-data-refs.c (vect_setup_realignment): Remove
13139 call to mark_symbols_for_renaming.
13140 (vect_permute_load_chain): Likewise.
13141 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
13142 instead of calling mark_symbols_for_renaming.
13143 * tree-vect-stmts.c (read_vector_array): Remove call to
13144 mark_symbols_for_renaming.
13145 (write_vector_array): Likewise.
13146 (vectorizable_call): Likewise.
13147 (vectorizable_store): Likewise.
13148 (vectorizable_load): Likewise.
13149 * matrix-reorg.c (transform_allocation_sites): Likewise.
13150 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
13151 (create_expression_by_pieces): Likewise.
13153 2012-05-14 Richard Guenther <rguenther@suse.de>
13155 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
13156 of statements for renaming.
13157 (force_gimple_operand_1): Likewise, consistently for both
13158 calls to force_gimple_operand and force_gimple_operand_gsi.
13160 2012-05-14 Richard Guenther <rguenther@suse.de>
13162 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
13163 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
13165 (expand_omp_for): Likewise.
13166 (expand_omp_for_generic): Adjust conditional add to referenced vars.
13167 Use make_rename_temp for temporaries that should be rewritten into
13169 (expand_omp_for_static_nochunk): Likewise.
13170 (expand_omp_atomic_pipeline): Likewise.
13172 2012-05-14 Richard Guenther <rguenther@suse.de>
13174 PR tree-optimization/53331
13175 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
13177 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
13179 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
13182 * doc/options.texi: (LangEnabledBy): Document it.
13183 * optc-gen.awk: Handle LangEnabledBy.
13184 * opth-gen.awk: Generate declaration for lang-specific functions.
13185 * opt-read.awk: Record lang numbers.
13186 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
13187 (lang_sanitized_name): New.
13189 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
13191 * attribs.c (decl_attributes): Avoid emitting a warning if
13192 ATTR_FLAG_BUILT_IN.
13193 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
13194 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
13195 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
13196 define a string "1".
13197 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
13198 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
13199 BUILT_IN_STRCPY): Use it for these functions.
13200 * postreload.c (reload_combine): Deal with SETs inside
13201 CALL_INSN_FUNCTION_USAGE.
13202 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
13203 Look for REG_RETURNED notes and use a cheap restore if possible.
13204 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
13205 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
13206 * ira-build.c (ira_create_allocno, create_cap_allocno,
13207 propagate_allocno_info, propagate_some_info_from_allocno,
13208 copy_info_to_removed_store_destination, ira_flattening): Handle it.
13209 * ira-lives.c (pseudo_regno_single_word_and_live_p,
13210 find_call_crossed_cheap_reg): New static functions.
13211 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
13212 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
13213 a REG_RETURNED note in that case.
13214 * ira.c (setup_reg_renumber): Change assert to allow cases where
13215 allocnos only cross calls for which they are cheap to restore.
13216 * ira-costs.c (ira_tune_allocno_costs): Compare
13217 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
13219 * reg-notes.def (REG_RETURNED): New note.
13220 * cse.c (cse_insn): Likewise.
13221 * sched-deps.c (sched_analyze_insn): Likewise.
13222 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
13223 * calls.c (decl_return_flags): New static function.
13224 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
13225 functions that return one of their arguments.
13226 * regcprop.c (struct kill_set_value_data): New.
13227 (kill_set_value): Interpret data as a pointer to such a struct.
13228 Do nothing if the caller wants the register to be ignored.
13229 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
13231 2012-05-14 Richard Guenther <rguenther@suse.de>
13233 PR tree-optimization/53340
13234 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
13236 2012-05-14 Richard Guenther <rguenther@suse.de>
13238 * gimplify.c (gimplify_expr): Remove odd code.
13240 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
13242 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
13243 into a PLUS_EXPR byte offset.
13245 * tree-ssa-pre.c (can_value_number_call): Delete.
13246 (compute_avail): Skip all statements with side effects.
13247 <GIMPLE_CALL>: Skip calls to internal functions.
13249 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
13251 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
13253 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13255 * common.opt (Wtype-limits): Use EnabledBy.
13257 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
13259 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
13260 (pushtf splitter): Ditto.
13262 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
13263 (<code>tf2): Enable for TARGET_SSE.
13264 (*absnegtf2_sse): Ditto.
13265 (copysign<mode>3): Enable TFmode for TARGET_SSE.
13266 (copysign<mode>3_const): Ditto.
13267 (copysign<mode>3_var): Ditto.
13268 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
13269 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
13270 (*<code>tf3): Ditto.
13271 * config/i386/i386.c (struct builtin_description bdesc_args)
13272 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
13273 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
13274 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
13275 Emit a normal call if SSE isn't available.
13277 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
13279 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
13280 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
13281 (<code><mode>3): Ditto.
13282 (*andnot<mode>3): Ditto.
13283 (*andnottf3): Ditto.
13284 (*<code><mode>3): Ditto.
13285 (<code>tf3): Ditto.
13287 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
13289 * optc-gen.awk: Error instead of warning for conflicting help.
13291 2012-05-12 Jason Merrill <jason@redhat.com>
13294 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
13297 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
13299 * function.c (requires_stack_frame_p): If the function can throw
13300 non-call exceptions, return true if the insn can throw internally.
13302 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
13304 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
13306 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
13308 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
13309 ORDERED and UNORDERED conditions.
13311 2012-05-11 Richard Guenther <rguenther@suse.de>
13313 * tree-flow.h (referenced_var_check_and_insert): Remove.
13314 (find_new_referenced_vars): Likewise.
13315 * tree-dfa.c (referenced_var_check_and_insert): Make static.
13316 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
13317 * tree-inline.c (copy_bb): Use find_referenced_vars_in
13318 instead of find_new_referenced_vars.
13319 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
13321 2012-05-11 Richard Guenther <rguenther@suse.de>
13323 * tree-pass.h (pass_rest_of_compilation,
13324 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
13326 * passes.c (pass_all_optimizations, pass_postreload,
13327 pass_all_early_optimizations): Make static.
13328 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
13329 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
13330 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
13331 (delete_tree_ssa): Do not call fini_phinodes.
13332 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
13334 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13337 * doc/options.texi (EnabledBy): Document
13338 * opts.c: Include opts.h and options.h before tm.h.
13339 (finish_options): Do not handle some sub-options here...
13340 (common_handle_option): ... instead call common_handle_option_auto
13342 * optc-gen.awk: Handle EnabledBy.
13343 * opth-gen.awk: Declare common_handle_option_auto.
13344 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
13345 (Wmaybe-uninitialized): Likewise.
13346 (Wunused-but-set-variable): Likewise.
13347 (Wunused-function): Likewise.
13348 (Wunused-label): Likewise.
13349 (Wunused-value): Likewise.
13350 (Wunused-variable): Likewise.
13351 * opt-read.awk: Create opt_numbers array.
13353 2012-05-11 Richard Guenther <rguenther@suse.de>
13355 PR tree-optimization/53295
13356 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
13358 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
13359 strides when analyzing data-references in a loop context.
13360 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
13361 non-constant strides for now.
13362 (vect_enhance_data_refs_alignment): Ignore data references
13363 that are strided loads.
13364 (vect_analyze_data_ref_access): Handle non-constant strides.
13365 (vect_check_strided_load): Verify the data-reference is a load.
13366 (vect_analyze_data_refs): Restructure to make strided load
13367 support not dependent on gather support.
13368 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
13369 when doing strided or gather loads.
13370 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
13371 integer_zerop to compare stride with zero.
13373 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
13375 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
13377 2012-05-11 Jan Hubicka <jh@suse.cz>
13380 * varpool.c (varpool_assemble_decl): Also output constat pool entries
13381 that output_constant_pool missed.
13383 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
13385 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
13386 MULTILIB_EXTRA_OPTS.
13388 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
13391 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
13393 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
13395 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
13396 optimization for TARGET_AVX.
13397 (*movti_internal_sse): Ditto.
13398 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
13399 (*movdi_internal): Ditto.
13400 (*movsi_internal): Ditto.
13401 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
13402 (*movdf_internal_rex64): Ditto.
13403 (*movfd_internal): Ditto.
13404 (*movsf_internal): Ditto.
13405 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
13407 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
13409 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
13410 reference as size attribute.
13412 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
13413 Tristan Gingold <gingold@adacore.com>
13415 * doc/md.texi (Standard Names): Document probe_stack_address.
13416 * explow.c (emit_stack_probe): Handle probe_stack_address.
13417 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
13418 (UNSPECV_PROBE_STACK_RANGE): Likewise.
13419 (probe_stack_address): New insn.
13420 (probe_stack_range): Likewise.
13421 * config/ia64/ia64.c: Include common/common-target.h.
13422 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
13423 checking is enabled.
13424 (ia64_emit_probe_stack_range): New function.
13425 (output_probe_stack_range): Likewise.
13426 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
13427 builtin stack checking is enabled.
13428 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
13429 and UNSPECV_PROBE_STACK_ADDRESS.
13430 (unknown_for_bundling_p): New predicate.
13431 (group_barrier_needed): Use important_for_bundling_p.
13432 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
13433 (issue_nops_and_insn): Likewise.
13434 (bundling): Likewise.
13435 (final_emit_insn_group_barriers): Likewise.
13436 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
13437 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
13438 (STACK_CHECK_PROTECT): Likewise.
13439 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13441 2012-05-10 Jan Hubicka <jh@suse.cz>
13443 * ipa-inline.c (update_all_callee_keys): Remove.
13444 (inline_small_functions): Simplify priority updating.
13446 2012-05-10 Jan Hubicka <jh@suse.cz>
13448 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
13450 2012-05-10 Jan Hubicka <jh@suse.cz>
13452 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
13453 (symtab_remove_unreachable_nodes): ... this one.
13454 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
13455 * cgraphunit.c (ipa_passes): Update.
13456 * cgraphclones.c (cgraph_materialize_all_clones): Update.
13457 * cgraph.c (cgraph_release_function_body): Only turn initial
13458 into error mark when initial was previously set.
13459 * ipa-inline.c (ipa_inline): Update.
13460 * ipa.c: Include ipa-inline.h
13461 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
13462 (enqueue_node): New function.
13463 (process_references): Update.
13464 (symtab_remove_unreachable_nodes): Cleanup.
13465 * passes.c (execute_todo, execute_one_pass): Update.
13467 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
13469 PR rtl-optimization/53125
13470 * ira.c (ira): Call find_moveable_pseudos and
13471 move_unallocated_pseudos if only ira_conflicts_p is true.
13473 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
13475 * config/i386/i386.md (*movoi_internal_avx): Handle
13476 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
13477 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
13478 (*movti_internal_sse): Ditto.
13479 (*movtf_internal): Ditto.
13480 * config/i386/sse.md (ssePSmode): New mode attribute.
13481 (*move<mode>_internal): Use ssePSmode.
13482 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
13483 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
13484 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
13485 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
13487 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
13489 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
13490 DECL_ORIGINAL_TYPE if it is present.
13492 2012-05-10 Nick Clifton <nickc@redhat.com>
13495 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
13496 a "0" constraint to being a (match_dup 0).
13498 2012-05-10 Richard Guenther <rguenther@suse.de>
13500 * stor-layout.c (byte_from_pos): Amend comment.
13502 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13504 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
13505 Document requirement to call in constructors.
13507 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
13509 2012-05-10 Richard Guenther <rguenther@suse.de>
13511 * tree.h (TYPE_IS_SIZETYPE): Remove.
13512 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
13513 (extract_muldiv_1): Likewise.
13514 * gimple.c (gtc_visit): Likewise.
13515 (gimple_types_compatible_p): Likewise.
13516 (iterative_hash_canonical_type): Likewise.
13517 (gimple_canonical_types_compatible_p): Likewise.
13518 * gimplify.c (gimplify_one_sizepos): Likewise.
13519 * print-tree.c (print_node): Likewise.
13520 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
13522 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
13525 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
13526 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
13527 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
13528 instead of xop_mulv2div2di3_low.
13529 (xop_p<macs>dql): Fix vec_select selector.
13530 (xop_p<macs>dqh): Ditto.
13531 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
13532 (xop_mulv2div2di3_high): Ditto.
13534 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13537 * diagnostic.h (diagnostic_context): Add last_location.
13538 * diagnostic.c (diagnostic_initialize): Initialize it.
13539 (diagnostic_show_locus): Use it.
13541 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13543 * doc/extend.texi (Function Attributes): Point xref to section
13546 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
13548 * config/i386/i386.c (*movdf_internal_rex64): Remove
13549 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
13550 Calculate "mode" attribute according to
13551 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
13552 (*movdf_internal): Ditto.
13554 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
13557 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
13558 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
13559 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
13560 or when optimizing for size.
13561 * config/i386/sse.md (*mov<mode>_internal): Remove
13562 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
13563 Calculate "mode" attribute according to optimize_function_for_size_p
13564 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
13565 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
13566 depending on the mode of the instruction. Calculate "mode" attribute
13567 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
13568 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
13569 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
13571 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
13574 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
13575 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
13576 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
13577 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
13578 (expand_prologue): Move initialization of cfun->machine->is_naked,
13579 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
13580 (avr_set_current_function): ...this new static function.
13581 (TARGET_SET_CURRENT_FUNCTION): New define.
13582 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
13583 checking attributes of current_function_decl.
13584 (avr_regs_to_save): Ditto.
13585 (signal_function_p): Rename to avr_signal_function_p.
13586 (interrupt_function_p): Rename to avr_interrupt_function_p.
13588 * doc/extend.texi (Function Attributes): Better explanation of
13589 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
13590 alphabetical order.
13592 2012-05-09 Michael Matz <matz@suse.de>
13594 PR tree-optimization/53185
13595 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
13596 peeling when we see strided loads.
13598 2012-05-09 Matthias Klose <doko@ubuntu.com>
13600 * gcc-ar.c (main): Don't check for execute bits for the plugin.
13602 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13604 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
13605 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
13606 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
13607 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
13608 (USE_LOAD_POST_INCREMENT): Define.
13609 (USE_LOAD_PRE_INCREMENT): Define.
13610 (USE_LOAD_POST_DECREMENT): Define.
13611 (USE_LOAD_PRE_DECREMENT): Define.
13612 (USE_STORE_PRE_DECREMENT): Define.
13613 (USE_STORE_PRE_INCREMENT): Define.
13614 (USE_STORE_POST_DECREMENT): Define.
13615 (USE_STORE_POST_INCREMENT): Define.
13616 (arm_auto_incmodes): Add enumeration.
13617 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
13618 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
13620 2012-05-09 Jakub Jelinek <jakub@redhat.com>
13622 PR tree-optimization/53226
13623 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
13624 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
13625 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
13626 doesn't need to be revisited, look for earliest stmt with
13627 !gimple_plf (stmt, GF_PLF_1) if something changed.
13629 2012-05-09 Terry Guo <terry.guo@arm.com>
13631 * genmultilib: Update copyright dates.
13632 * doc/fragments.texi: Ditto.
13634 2012-05-09 Terry Guo <terry.guo@arm.com>
13636 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
13637 * genmultilib (MULTILIB_REQUIRED): New.
13638 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
13640 2012-05-09 Richard Guenther <rguenther@suse.de>
13642 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
13643 (vect_do_peeling_for_loop_bound): Likewise.
13644 (vect_do_peeling_for_alignment): Likewise.
13645 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
13646 (vect_do_peeling_for_loop_bound): Get check_profitability and
13647 threshold as parameters.
13648 (vect_do_peeling_for_alignment): Likewise.
13649 (vect_loop_versioning): Likewise.
13650 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
13651 and threshold here. Control where to put the check here.
13653 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
13655 PR middle-end/53249
13656 * dwarf2out.h (get_address_mode): Move declaration to...
13658 * dwarf2out.c (get_address_mode): Move definition to...
13659 * rtlanal.c: ...here.
13660 * var-tracking.c (get_address_mode): Delete.
13661 * combine.c (find_split_point): Use get_address_mode instead of
13662 targetm.addr_space.address_mode.
13663 * cselib.c (cselib_record_sets): Likewise.
13664 * dse.c (canon_address, record_store): Likewise.
13665 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
13666 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
13667 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
13668 (expand_expr_real_1): Likewise.
13669 * ifcvt.c (noce_try_cmove_arith): Likewise.
13670 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
13671 * reload.c (find_reloads): Likewise.
13672 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
13673 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
13675 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
13677 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
13678 information from the instruction produced.
13680 2012-05-09 Richard Guenther <rguenther@suse.de>
13682 * stor-layout.c (bit_from_pos): Document.
13683 (byte_from_pos): Likewise. Optimize.
13684 (pos_from_bit): Likewise.
13685 (normalize_offset): Use pos_from_bit instead of replicating it.
13687 2012-05-09 Alan Modra <amodra@gmail.com>
13690 * config/rs6000/rs6000.c (gen_frame_set): New function.
13691 (gen_frame_load, gen_frame_store): New functions.
13692 (rs6000_savres_rtx): Use the above.
13693 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
13694 Correct mode used for CR2 in save/restore_world patterns.
13695 Don't emit instructions for eh_return frame unwind reg info.
13697 2012-05-08 Jan Hubicka <jh@suse.cz>
13699 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
13701 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
13703 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
13705 (compile_file): Do not output variables.
13706 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
13708 * langhooks.c: Include timevar.h
13709 (write_global_declarations): Finalize compilation unit after wrapup;
13710 set timevars correctly.
13711 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
13712 not to be added to varpool.
13713 * varpool.c (varpool_assemble_decl): Sanity check that we are called
13714 only on cases where it makes sense; skip constant pool and value expr
13717 2012-05-08 David S. Miller <davem@davemloft.net>
13719 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
13720 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
13721 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
13723 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
13725 PR rtl-optimization/53278
13726 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
13727 speed_p code from earlier patch.
13729 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
13732 * config/sh/sh.md (*branch_true, *branch_false): New insns.
13734 2012-05-08 Teresa Johnson <tejohnson@google.com>
13736 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
13737 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
13739 2012-05-08 Jan Hubicka <jh@suse.cz>
13741 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
13742 (cgraph_create_node_1): Rename to ...
13743 (cgraph_create_empty_node): ... this one; export.
13744 (cgraph_create_node): Update.
13745 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
13746 (cgraph_create_edge_including_clones): Likewise.
13747 (cgraph_find_replacement_node): Likewise.
13748 (cgraph_clone_edge): Likewise.
13749 (cgraph_clone_node): Likewise.
13750 (clone_function_name): Likewise.
13751 (cgraph_create_virtual_clone): Likewise.
13752 (cgraph_remove_node_and_inline_clones): Likewise.
13753 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
13754 * cgraph.h: Reorder declarations so they match file of origin.
13755 (cgraph_create_empty_node): Declare.
13756 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
13757 (cgraph_copy_node_for_versioning): Likewise.
13758 (cgraph_function_versioning): Likewise.
13759 (cgraph_materialize_clone): Likewise.
13760 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
13761 (cgraph_materialize_all_clones): Likewise.
13762 * cgraphclones.c: New file.
13763 * Makefile.in: Update for cgraphclones.
13765 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
13768 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
13769 (ix86_rtx_costs): Handle SET.
13771 2012-05-08 Michael Matz <matz@suse.de>
13773 * basic-block.h (struct rtl_bb_info): Remove visited member and
13774 move head_ member to ...
13775 (struct basic_block_def.basic_block_il_dependent): ... the new
13776 member x, replacing but containing old member rtl.
13777 (enum bb_flags): New BB_VISITED flag.
13778 (BB_HEADER, BB_FOOTER): New macros.
13780 * jump.c (mark_all_labels): Adjust.
13781 * cfgcleanup.c (try_optimize_cfg): Adjust.
13782 * cfglayout.c (record_effective_endpoints): Adjust.
13783 (relink_block_chain): Ditto (and don't fiddle with visited).
13784 (fixup_reorder_chain): Adjust.
13785 (fixup_fallthru_exit_predecessor): Ditto.
13786 (cfg_layout_duplicate_bb): Ditto.
13787 * combine.c (update_cfg_for_uncondjump): Adjust.
13788 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
13789 (bb_visited_trace): New accessor.
13790 (mark_bb_visited): Move in front.
13791 (rotate_loop): Use bb_visited_trace.
13792 (find_traces_1_round): Ditto.
13793 (emit_barrier_after): Ditto.
13794 (copy_bb): Ditto, and initialize visited on resize.
13795 (reorder_basic_blocks): Initize visited member.
13796 (duplicate_computed_gotos): Clear bb flags at start, use
13799 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
13800 (rtl_verify_flow_info_1): Ditto.
13801 (cfg_layout_split_block): Ditto.
13802 (cfg_layout_delete_block): Ditto.
13803 (cfg_layout_merge_blocks): Ditto.
13804 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
13806 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
13809 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
13810 when a constant source operand matches an "I" constraint, the "no
13811 CC0 change" applies to a register-destination only, not a
13812 strict_low_part-destination.
13814 2012-05-08 Richard Guenther <rguenther@suse.de>
13816 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
13817 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
13819 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
13821 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
13823 * doc/avr-mmcu.texi: New auto-generated file.
13824 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
13825 to document all valid -mmcu= arguments.
13827 * config/avr/avr.h (arch_info_s): New struct definition.
13828 * config/avr/avr-devices.c (avr_texinfo): New variable.
13829 * config/avr/gen-avr-mmcu-texi.c: New file.
13830 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
13832 2012-05-08 Dehao Chen <dehao@google.com>
13834 * predict.c (find_qualified_ssa_name): New.
13835 (find_ssa_name_in_expr): New.
13836 (find_ssa_name_in_assign_stmt): New.
13837 (is_comparison_with_loop_invariant_p): New.
13838 (is_bound_expr_similar): New.
13839 (predict_iv_comparison): New.
13840 (predict_loops): Add heuristic for loop-nested branches that compare an
13841 induction variable to a loop bound variable.
13842 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
13844 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
13846 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
13847 TARGET_BDVER2 defines where appropriate.
13849 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
13851 * configure.ac (PLUGIN_LD): Rename into...
13852 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
13853 * config.in: Regenerate.
13854 * configure: Likewise.
13855 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
13857 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
13859 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
13860 computation using the precision of the index type.
13861 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
13862 (fold_array_ctor_reference): Do index computations in the index type.
13864 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
13866 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
13867 down to plus_constant.
13868 (expand_epilogue): Ditto.
13870 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
13872 * postreload.c (reload_cse_regs): Make static.
13873 * reload.h (reload_cse_regs): Remove prototype.
13875 2012-05-07 Richard Henderson <rth@redhat.com>
13877 * config/alpha/alpha.md (clear_cache): New pattern.
13879 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
13881 PR middle-end/53245
13882 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
13883 is folded to a type boundary value, verify that the resulting case
13884 label is still a care range.
13886 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
13888 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
13889 only for TARGET_GENERIC, when not optimizing for size.
13890 (*ffs<mode>_1): Ditto.
13892 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
13894 * tree-cfg.c (verify_gimple_switch): Tighten checks.
13896 2012-05-07 Jakub Jelinek <jakub@redhat.com>
13898 PR tree-optimization/53239
13899 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
13900 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
13902 2012-05-07 Richard Guenther <rguenther@suse.de>
13904 PR tree-optimization/53195
13905 * tree-inline.c (setup_one_parameter): Properly add referenced
13906 vars from the parameters new known value.
13908 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
13910 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
13911 (sched_branch_type): Remove.
13912 (m68k_sched_md_init_global): Don't allocate it.
13913 (m68k_sched_md_finish_global): Don't free it.
13914 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
13915 * config/m68k/m68k.md: Set the type of insns using
13916 m68k_sched_branch_type to bcc directly.
13918 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13920 * config/sol2.c (solaris_override_options): New function.
13921 * config/sol2-protos.h (solaris_override_options): Declare.
13922 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
13924 2012-05-07 Richard Guenther <rguenther@suse.de>
13926 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
13927 whether we failed to compute data dependences.
13928 (loop_prefetch_arrays): Fail if we failed.
13930 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
13931 Paolo Bonzini <bonzini@gnu.org>
13933 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
13934 Emit bsf when optimizing for size.
13935 (*ffs<mode>_1): Ditto.
13937 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
13940 * config/sh/sh.c (sh_rtx_costs): Handle SET.
13942 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
13945 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
13946 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
13947 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
13949 (*bswapdi2_doubleword): New insn pattern.
13950 (*bswap<mode>2): Rename from *bswap<mode>2_1.
13952 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
13954 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
13955 (mips_set_reg_reg_cost): Likewise.
13956 (mips_rtx_costs): Handle SET.
13958 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
13960 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
13961 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
13962 to compute the cost of moves. Set the mode of the target register.
13964 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
13966 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
13967 plus_constant function.
13968 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
13969 that the mode is sensible.
13970 (use_anchored_address, round_push, allocate_dynamic_stack_space)
13971 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
13974 * alias.c (canon_rtx): Likewise.
13975 (init_alias_analysis): Likewise.
13976 * builtins.c (expand_builtin_return_addr)
13977 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
13978 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
13979 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
13980 (expand_builtin_stpcpy): Likewise.
13981 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
13982 (compute_argument_addresses, internal_arg_pointer_based_exp)
13983 (expand_call, emit_library_call_value_1): Likewise.
13984 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
13985 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
13986 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
13987 * cse.c (insert_const_anchor, find_reg_offset_for_const)
13988 (use_related_value, fold_rtx): Likewise.
13989 * cselib.c (cselib_subst_to_values): Likewise.
13990 * dse.c (record_store, check_mem_read_rtx): Likewise.
13991 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
13992 * emit-rtl.c (adjust_address_1): Likewise.
13993 * except.c (sjlj_emit_function_enter)
13994 (expand_builtin_extract_return_addr)
13995 (expand_builtin_frob_return_addr): Likewise.
13996 * expmed.c (expand_divmod): Likewise.
13997 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
13998 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
13999 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
14000 * function.c (assign_stack_local_1)
14001 (instantiate_virtual_regs_in_rtx): Likewise.
14002 * optabs.c (prepare_cmp_insn): Likewise.
14003 * recog.c (offsettable_address_addr_space_p): Likewise.
14004 * reload.c (find_reloads_address, form_sum)
14005 (find_reloads_subreg_address): Likewise.
14006 * reload1.c (init_reload, eliminate_regs_1)
14007 (eliminate_regs_in_insn): Likewise.
14008 * simplify-rtx.c (simplify_unary_operation_1)
14009 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
14010 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
14011 (vt_add_function_parameter): Likewise.
14013 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
14014 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
14015 * config/alpha/alpha.c (alpha_legitimize_address_1)
14016 (get_unaligned_address, alpha_expand_unaligned_load)
14017 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
14018 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
14019 (alpha_expand_builtin_establish_vms_condition_handler)
14020 (alpha_setup_incoming_varargs, emit_frame_store_1)
14021 (alpha_expand_prologue, alpha_expand_epilogue)
14022 (alpha_use_linkage): Likewise.
14023 * config/alpha/alpha.md: Likewise.
14025 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
14026 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
14027 (thumb_legitimize_address, arm_gen_load_multiple_1)
14028 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
14029 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
14030 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
14031 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
14032 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
14033 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
14034 (thumb_expand_movmemqi, arm_set_return_address)
14035 (thumb_set_return_address): Likewise.
14036 * config/arm/arm.md: Likewise.
14038 * config/avr/avr.c (avr_incoming_return_addr_rtx)
14039 (avr_prologue_setup_frame, expand_epilogue)
14040 (avr_const_address_lo16): Likewise.
14042 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
14043 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
14044 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
14045 (bfin_output_mi_thunk): Likewise.
14047 * config/c6x/c6x.c (c6x_initialize_trampoline)
14048 (c6x_output_mi_thunk): Likewise.
14050 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
14051 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
14053 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
14054 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
14055 (cris_emit_movem_store, cris_trampoline_init): Likewise.
14056 * config/cris/cris.md: Likewise.
14058 * config/darwin.c (machopic_indirect_data_reference)
14059 (machopic_legitimize_pic_address): Likewise.
14061 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
14062 (epiphany_expand_prologue, epiphany_expand_epilogue)
14063 (epiphany_trampoline_init): Likewise.
14064 * config/epiphany/epiphany.md: Likewise.
14066 * config/fr30/fr30.c (fr30_move_double): Likewise.
14068 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
14069 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
14070 (frv_index_memory, unspec_got_name, frv_find_base_term)
14071 (frv_output_dwarf_dtprel): Likewise.
14073 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
14074 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
14076 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
14077 * config/i386/i386.c (setup_incoming_varargs_64)
14078 (setup_incoming_varargs_ms_64, choose_baseaddr)
14079 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
14080 (ix86_emit_probe_stack_range, ix86_expand_prologue)
14081 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
14082 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
14083 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
14084 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
14085 (x86_output_mi_thunk): Likewise.
14086 * config/i386/i386.md: Likewise.
14088 * config/ia64/ia64.c (ia64_expand_load_address)
14089 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
14090 (do_spill, ia64_trampoline_init): Likewise.
14092 * config/iq2000/iq2000.c (iq2000_va_start)
14093 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
14094 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
14095 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
14097 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
14099 * config/m32c/m32c.c (m32c_return_addr_rtx)
14100 (m32c_expand_insv): Likewise.
14102 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
14103 (m32r_legitimize_pic_address, m32r_print_operand)
14104 (m32r_print_operand_address): Likewise.
14106 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
14107 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
14108 (EH_RETURN_HANDLER_RTX): Likewise.
14109 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
14110 (m68k_expand_epilogue, legitimize_pic_address)
14111 (m68k_output_mi_thunk): Likewise.
14112 * config/m68k/m68k.md: Likewise.
14114 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
14115 (mcore_expand_epilog): Likewise.
14116 * config/mcore/mcore.md: Likewise.
14118 * config/mep/mep.c (mep_allocate_initial_value)
14119 (mep_expand_prologue, mep_expand_epilogue): Likewise.
14121 * config/microblaze/microblaze.c (double_memory_operand)
14122 (microblaze_block_move_loop): Likewise.
14124 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
14125 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
14126 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
14127 (mips_expand_prologue, mips_epilogue_set_cfa)
14128 (mips_expand_epilogue): Likewise.
14129 * config/mips/mips.md: Likewise.
14131 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
14132 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
14134 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
14135 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
14137 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
14138 (EH_RETURN_HANDLER_RTX): Likewise.
14139 * config/moxie/moxie.c (moxie_static_chain): Likewise.
14141 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
14142 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
14143 (pa_return_addr_rtx, hppa_builtin_saveregs)
14144 (pa_trampoline_init): Likewise.
14145 * config/pa/pa.md: Likewise.
14147 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
14149 * config/picochip/picochip.c (picochip_static_chain): Likewise.
14151 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
14152 * config/rs6000/rs6000.c (rs6000_legitimize_address)
14153 (setup_incoming_varargs, print_operand, rs6000_return_addr)
14154 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
14155 (rs6000_emit_epilogue)
14156 (rs6000_machopic_legitimize_pic_address): Likewise.
14158 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14160 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
14161 (DYNAMIC_CHAIN_ADDRESS): Likewise.
14162 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
14163 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
14164 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
14165 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
14166 (s390_emit_epilogue, s390_function_profiler): Likewise.
14167 * config/s390/s390.md: Likewise.
14169 * config/score/score.c (score_add_offset, score_prologue): Likewise.
14171 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
14172 (sh_output_mi_thunk): Likewise.
14173 * config/sh/sh.md: Likewise.
14175 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
14176 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
14177 * config/sparc/sparc.c (sparc_legitimize_pic_address)
14178 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
14179 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
14180 (emit_and_preserve): Likewise.
14181 * config/sparc/sparc.md: Likewise.
14183 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
14184 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
14185 (spu_setup_incoming_varargs, ea_load_store_inline)
14186 (spu_expand_load): Likewise.
14188 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
14189 (combine_bnp): Likewise.
14191 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
14192 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
14193 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
14195 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
14196 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
14197 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
14199 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
14200 * config/v850/v850.md: Likewise.
14202 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
14203 (EH_RETURN_HANDLER_RTX): Likewise.
14204 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
14205 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
14206 (print_operand_address, vax_trampoline_init): Likewise.
14208 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
14209 (xtensa_function_value_regno_p): Likewise.
14211 2012-05-04 Andrew Pinski <apinski@cavium.com>
14213 * expr.c (get_def_for_expr_class): New function.
14214 (convert_tree_comp_to_rtx): New function.
14215 (expand_cond_expr_using_cmove): New function.
14216 (expand_expr_real_2 <case COND_EXPR>): Call
14217 expand_cond_expr_using_cmove first and return if it succeeds.
14218 Remove the check for HAVE_conditional_move since we should have
14219 already converted it to a conditional move.
14220 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
14221 modes of DImode for 32bits and TImode.
14223 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
14226 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
14227 (print_md_ptr_loc, print_c_condition): Use them.
14228 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
14229 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
14230 attr_file, dfa_file, latency_file): New global variables.
14231 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
14232 write_upcase, write_indent, write_length_unit_log, write_test_expr,
14233 write_attr_get, write_insn_cases, write_eligible_delay,
14234 write_const_num_delay_slots): Accept FILE pointer and toss it around.
14235 Update all callers.
14236 (write_header, open_outfile, handle_arg): New funcions.
14237 (make_automaton_attrs): Write prototypes as extern to the output
14239 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
14240 names from the command line. Open the output files and write out
14241 internal functions for DFA functions to dfa_file_name, insn latency
14242 functions to latency_file_name, and everything else to attr_file.
14243 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
14244 (BACKEND): Build libbackend first.
14245 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
14246 (.PRECIOUS): Likewise.
14247 (insn-dfatab.o): New rule.
14248 (insn-latencytab.o): New rule.
14249 (simple_rtl_generated_c): Do not include insn-attrtab.c.
14250 (s-attrtab): New rule.
14252 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
14254 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
14255 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
14256 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
14257 * reorg.c (get_jump_flags): Do not set the removed flags.
14259 * doc/md.texi (attr_flag): Update for abovementioned changes.
14261 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
14264 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
14265 (TARGET_CMOV): Rename from TARGET_CMOVE.
14266 (TARGET_CMOVE): New define.
14267 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
14268 Do not set TARGET_CMOVE here.
14270 2012-05-04 Dodji Seketeli <dodji@redhat.com>
14272 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
14273 * opts.c (finish_options): Activate -Wunused-local-typedefs if
14274 -Wunused is activated.
14275 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
14277 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14279 * config/s390/s390.md (*movmem_short, *clrmem_short)
14280 (*cmpmem_short): Move the mode check from the insn condition to
14283 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
14285 PR tree-optimization/52633
14286 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
14287 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
14288 (vect_recog_over_widening_pattern): Remove handling of code that was
14289 already detected as over-widening pattern. Remove special handling
14290 of "unsigned" cases. Instead, support general case of conversion
14291 of the shift result to another type.
14293 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
14295 * tree-vect-patterns.c (vect_single_imm_use): New function.
14296 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
14297 (vect_recog_over_widening_pattern): Likewise.
14298 (vect_recog_widen_shift_pattern): Likewise.
14300 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
14302 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
14303 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
14304 (vect_recog_widen_mult_pattern): Likewise.
14305 (vect_operation_fits_smaller_type): Likewise.
14306 (vect_recog_over_widening_pattern): Likewise.
14307 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
14309 2012-05-04 Richard Guenther <rguenther@suse.de>
14312 * lto-wrapper.c (merge_and_complain): Complain about mismatches
14313 of -freg-struct-return and -fpcc-struct-return.
14314 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
14315 from the input file options and ignore those from the link
14318 2012-05-04 Richard Guenther <rguenther@suse.de>
14320 PR tree-optimization/53168
14321 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
14322 memory reads when the result is a constant we can pun.
14324 2012-05-04 Richard Guenther <rguenther@suse.de>
14326 * common.opt (flto-report): Do not mark as Optimization.
14328 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
14331 * recog.c (constrain_operands): If extra constraints are present, also
14332 accept pseudo-registers with equivalent memory locations during reload.
14334 2012-05-04 Olivier Hainque <hainque@adacore.com>
14336 * collect2.c (may_unlink_output_file): New global.
14337 (maybe_unlink): Honor it.
14338 * collect2.h: Add extern for it.
14339 * tlink.c (do_tlink): Set it to true if the link succeeded.
14341 2012-05-04 Olivier Hainque <hainque@adacore.com>
14343 * gcc.c (eval_spec_function): Finalize/restore the current string
14344 obstack state as part of the context push/pop operations.
14346 2012-05-04 Bin Cheng <bin.cheng@arm.com>
14348 PR rtl-optimization/52804
14349 * reload1.c (reload_reg_reaches_end_p): Check whether successor
14350 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
14351 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
14352 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
14353 RELOAD_FOR_OUTADDR_ADDRESS.
14355 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
14358 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
14359 for macro expansion.
14361 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
14363 * flags.h (flag_permissive): Do not declare.
14364 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
14366 * toplev.c (flag_permissive): Do not define.
14367 * c-tree.h (system_header_p): Delete unused.
14369 2012-05-03 David S. Miller <davem@davemloft.net>
14372 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
14373 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
14374 (sparc_emit_float_lib_cmp): Likewise.
14376 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14379 * config/rs6000/rs6000.md (bswapdi splitters): If
14380 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
14381 default) is used, generate an alternate sequence that does not
14382 depend on using indexed addressing.
14384 2012-05-03 Jason Merrill <jason@redhat.com>
14386 * gengtype.c (write_types): Fix warning message.
14387 (write_local): Likewise.
14389 2012-05-02 Jason Merrill <jason@redhat.com>
14391 * dwarf2out.c (struct external_ref, build_local_stub): New.
14392 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
14393 (optimize_external_refs, optimize_external_refs_1): New.
14394 (change_AT_die_ref): New.
14395 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
14396 (build_abbrev_table): Take the external refs hashtable.
14397 (output_comp_unit): Get it from optimize_external_refs and pass it in.
14399 2012-05-03 Jan Hubicka <jh@suse.cz>
14401 PR middle-end/53093
14402 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
14404 2012-05-03 Jan Hubicka <jh@suse.cz>
14406 PR middle-end/53106
14407 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
14409 2012-05-03 Jason Merrill <jason@redhat.com>
14411 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
14412 use_debug_types to discriminate the die_id union.
14413 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
14414 (build_abbrev_table, output_die): Likewise.
14415 (prune_unused_types_walk_attribs): Likewise.
14416 (generate_type_signature, copy_declaration_context): Set it.
14417 (remove_child_or_replace_with_skeleton): Set it.
14418 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
14419 check use_debug_types.
14420 (dwarf2out_finish): Do break_out_includes after .debug_types.
14422 2012-05-03 Jason Merrill <jason@redhat.com>
14424 * dwarf2out.c (modified_type_die): Use scope_die_for.
14425 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
14426 (uses_local_type_r, uses_local_type): New.
14427 (scope_die_for): Keep a type that uses a local type in local scope.
14428 Use get_context_die for namespace and type scope.
14430 2012-05-03 Jason Merrill <jason@redhat.com>
14432 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
14434 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
14435 (dwarf2out_finish): Likewise.
14437 2012-05-03 Martin Jambor <mjambor@suse.cz>
14439 * builtins.c (get_object_alignment_1): Return whether we can determine
14440 the alignment or conservatively assume byte alignment. Return the
14441 alignment by reference. Use get_pointer_alignment_1 for dereference
14443 (get_pointer_alignment_1): Return whether we can determine the
14444 alignment or conservatively assume byte alignment. Return the
14445 alignment by reference. Use get_ptr_info_alignment to get SSA name
14447 (get_object_alignment): Update call to get_object_alignment_1.
14448 (get_object_or_type_alignment): Likewise, fall back to type alignment
14449 only when it returned false.
14450 (get_pointer_alignment): Update call to get_pointer_alignment_1.
14451 * fold-const.c (get_pointer_modulus_and_residue): Update call to
14452 get_object_alignment_1.
14453 * ipa-prop.c (ipa_modify_call_arguments): Update call to
14454 get_pointer_alignment_1.
14455 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
14456 of MEM_REF or TARGET_MEM_REF only when it returns false.
14457 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
14458 get_object_alignment_1.
14459 (ccp_finalize): Use set_ptr_info_alignment.
14460 * tree.h (get_object_alignment_1): Update declaration.
14461 (get_pointer_alignment_1): Likewise.
14462 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
14463 (dump_gimple_stmt): Likewise.
14464 * tree-flow.h (ptr_info_def): Updated comments of fields align and
14466 (get_ptr_info_alignment): Declared.
14467 (mark_ptr_info_alignment_unknown): Likewise.
14468 (set_ptr_info_alignment): Likewise.
14469 (adjust_ptr_info_misalignment): Likewise.
14470 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
14471 and set alignment of SSA names.
14472 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
14473 mark_ptr_info_alignment_unknown.
14474 * tree-ssanames.c (get_ptr_info_alignment): New function.
14475 (mark_ptr_info_alignment_unknown): Likewise.
14476 (set_ptr_info_alignment): Likewise.
14477 (adjust_ptr_info_misalignment): Likewise.
14478 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
14479 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
14481 (bump_vector_ptr): Likewise.
14482 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
14483 (vectorizable_store): Likewise.
14484 (vectorizable_load): Likewise.
14486 2012-05-03 Michael Matz <matz@suse.de>
14488 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
14489 in front of basic_block_def.
14490 (struct basic_block_def): Make il.gimple the full struct, not a
14492 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
14494 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
14495 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
14496 NULL il.gimple, which can't happen anymore.
14497 * gimple.h (bb_seq): il.gimple can't be NULL.
14498 (bb_seq_add): Ditto.
14499 (set_bb_seq): Adjust.
14500 (gsi_start_bb, gsi_last_bb): Tidy.
14501 * lto-streamer-in.c (make_new_block): Don't zero members that
14502 are zeroed already, don't allocate a gimple_bb_info.
14503 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
14504 (remove_bb): Clear all il.gimple members.
14505 (gimple_verify_flow_info): Adjust for flat il.gimple.
14506 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
14508 * coretypes.h (const_gimple_seq): Remove typedef.
14509 * gimple.h (gimple_seq_first): Take gimple_seq.
14510 (gimple_seq_first_stmt): Ditto.
14511 (gimple_seq_last): Ditto.
14512 (gimple_seq_last_stmt): Ditto.
14513 (gimple_seq_empty_p): Ditto.
14515 2012-05-03 Richard Guenther <rguenther@suse.de>
14517 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
14519 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
14520 (compute_avail): Do not add possibly trapping operations to
14521 EXP_GEN if they might not be executed in the block.
14523 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
14525 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
14527 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
14529 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
14530 information as early as possible. Update dominance info instead of
14533 2012-05-03 Richard Guenther <rguenther@suse.de>
14535 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
14536 (union_contains_value): Remove.
14537 (vro_valid_in_sets): Likewise.
14538 (op_valid_in_sets): New function.
14539 (valid_in_sets): Use op_valid_in_sets.
14540 (insert_into_preds_of_block): Move dumping ...
14541 (do_regular_insertion): ... here.
14542 (do_partial_partial_insertion): ... and here. Dump that
14543 we've found a partial partial redundancy.
14544 (insert): Dump the current insert iteration.
14546 2012-05-03 Jakub Jelinek <jakub@redhat.com>
14549 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
14550 append program name to it and pass that as first argument
14551 to make_relative_prefix. Always pass standard_libexec_prefix
14552 as last argument to make_relative_prefix. If
14553 make_relative_prefix returns NULL, fall back to
14554 standard_libexec_prefix.
14557 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
14561 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
14562 mode, return that mode.
14565 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
14566 define __ATOMIC_HLE_* macros here.
14567 (ix86_target_macros): But here, using cpp_define_formatted.
14569 2012-05-03 Richard Guenther <rguenther@suse.de>
14571 PR tree-optimization/53144
14572 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
14574 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
14575 with SSA name values.
14576 (vn_reference_lookup_3): Adjust callers.
14578 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14580 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
14581 has_fma4 for AMD processors with both fma3 and fma4 support.
14583 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
14586 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
14589 2012-05-03 Michael Matz <matz@suse.de>
14592 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
14593 (dse_enter_block): Properly iterate the whole sequence even
14594 if the last statement was removed.
14596 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
14598 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
14599 unset flag_jump_tables.
14600 * stmt.c (expand_case): Remove special flag_pic case conditional
14601 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
14603 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
14605 * common/config/s390/s390-common.c (s390_option_optimization_table):
14606 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
14607 default when optimizing.
14609 2012-05-02 Martin Jambor <mjambor@suse.cz>
14612 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
14613 of a variable when the contect is a function.
14615 2012-05-02 Michael Matz <matz@suse.de>
14617 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
14618 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
14619 (const_gimple_seq_node): Remove.
14620 (gimple_seq_node): Typedef as gimple.
14621 (struct gimple_statement_base): Add next and prev members,
14622 adjust all WORD markers in using structs.
14623 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
14624 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
14625 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
14626 gimple are the same.
14627 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
14628 gimple_seq, adjust.
14629 (gimple_init_singleton): New function.
14630 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
14631 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
14632 (gsi_stmt): Adjust.
14633 (gsi_stmt_ptr): Remove.
14634 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
14636 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
14637 again, adjust for above changes.
14638 (update_call_edge_frequencies): Adjust for above changes.
14639 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
14640 (gsi_insert_seq_nodes_after): Ditto.
14641 (gsi_split_seq_after): Ditto.
14642 (gsi_set_stmt): Ditto.
14643 (gsi_split_seq_before): Ditto.
14644 (gsi_remove): Ditto.
14645 (gsi_insert_seq_before_without_update): Don't free sequence.
14646 (gsi_insert_seq_after_without_update): Ditto.
14647 (gsi_replace): Assert some more invariants.
14648 (gsi_insert_before_without_update, gsi_insert_after_without_update):
14650 (gsi_for_stmt): Don't search for stmt.
14651 (gsi_insert_on_edge_immediate): Tidy.
14653 * gimple.c (gimple_alloc_k): Remove "sequences".
14654 (gimple_seq_cache): Remove.
14655 (gimple_alloc_stat): Make stmt a singleton sequence.
14656 (gimple_seq_alloc, gimple_seq_free): Remove.
14657 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
14658 (gimple_copy): Ditto.
14659 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
14660 create iterator from correct sequence.
14661 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
14663 2012-05-02 Michael Matz <matz@suse.de>
14665 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
14667 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
14668 sequence, lazily allocate it.
14669 (bb_seq_addr): New function.
14670 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
14671 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
14672 (gsi_none): New function.
14673 (gsi_start_bb): Adjust.
14674 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
14675 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
14676 (gsi_last_bb): Adjust.
14678 * tree-flow-inline.h (phi_nodes_ptr): New function.
14680 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
14681 datastructure and interface change.
14682 (gsi_insert_seq_before_without_update): Ditto.
14683 (gsi_insert_seq_nodes_after): Ditto.
14684 (gsi_insert_seq_after_without_update): Ditto.
14685 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
14686 (gsi_split_seq_before): Ditto.
14687 (gsi_start_phis): Adjust.
14688 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
14689 (vect_transform_loop): Ditto.
14690 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
14691 gimple_seq_copy): Don't use gimple_seq_alloc.
14692 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
14693 (gimplify_seq_add_seq): Ditto.
14694 * lto-streamer-in.c (make_new_block): Ditto.
14695 * tree-cfg.c (create_bb): Ditto.
14696 * tree-sra.c (initialize_parameter_reductions): Ditto.
14698 2012-05-02 Michael Matz <matz@suse.de>
14700 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
14701 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
14702 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
14703 set_bb_seq): Move down to after gimple_statement_d definition.
14705 2012-05-02 Michael Matz <matz@suse.de>
14707 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
14708 gsi_replace_with_seq, instead of inserting itself.
14709 * gimple-iterator.c (gsi_replace_with_seq): New function.
14710 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
14711 iterator instead of statement, advance it.
14712 (ssa_forward_propagate_and_combine): Adjust call to above.
14714 2012-05-02 Michael Matz <matz@suse.de>
14716 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
14718 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
14719 * tree-nested.c (walk_gimple_omp_for): Ditto.
14720 * trans-mem.c (lower_transaction): Ditto.
14721 * tree-eh.c (do_return_redirection): Ditto.
14722 (do_goto_redirection): Ditto.
14723 (lower_try_finally_switch): Ditto.
14724 * gimplify.c (gimplify_stmt): Ditto.
14725 (gimplify_scan_omp_clauses): Ditto.
14726 (gimplify_omp_for): Ditto.
14727 (gimplify_function_tree): Ditto.
14728 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
14729 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
14730 (mf_build_check_statement_for): Ditto.
14731 (mx_register_decls): Ditto.
14732 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
14733 and don't use itertors to append.
14734 (insert_stmts): Ditto.
14735 (insert_out_of_ssa_copy): Ditto.
14736 (insert_out_of_ssa_copy_on_edge): Ditto.
14738 2012-05-02 Michael Matz <matz@suse.de>
14740 * gimple.h (gimple_bind_body_ptr): New function.
14741 (gimple_bind_body): Use it.
14742 (gimple_catch_handler): Use gimple_catch_handler_ptr.
14743 (gimple_eh_filter_failure_ptr): New function.
14744 (gimple_eh_filter_failure): Use it.
14745 (gimple_eh_else_n_body_ptr): New function.
14746 (gimple_eh_else_n_body): Use it.
14747 (gimple_eh_else_e_body_ptr): New function.
14748 (gimple_eh_else_e_body): Use it.
14749 (gimple_try_eval_ptr): New function.
14750 (gimple_try_eval): Use it.
14751 (gimple_try_cleanup_ptr): New function.
14752 (gimple_try_cleanup): Use it.
14753 (gimple_wce_cleanup_ptr): New function.
14754 (gimple_wce_cleanup): Use it.
14755 (gimple_omp_body_ptr): New function.
14756 (gimple_omp_body): Use it.
14757 (gimple_omp_for_pre_body_ptr): New function.
14758 (gimple_omp_for_pre_body): Use it.
14759 (gimple_transaction_body_ptr): New function.
14760 (gimple_transaction_body): Use it.
14761 (gsi_split_seq_before): Adjust to return nothing and take pointer
14763 (gsi_set_stmt): Declare.
14764 (gsi_replace_with_seq): Declare.
14765 (walk_gimple_seq_mod): Declare.
14766 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
14768 * gimple-iterator.c (gsi_set_stmt): New function.
14769 (gsi_split_seq_before): Return new sequence via pointer argument.
14770 (gsi_replace): Use gsi_set_stmt.
14772 * tree-ssa-loop-im.c (move_computations_stmt): First remove
14774 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
14775 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
14777 (reserve_phi_args_for_new_edge): Change call to above,
14780 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
14781 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
14782 iterators. Adjust call to lower_omp.
14783 (lower_lastprivate_clauses): Adjust call to lower_omp.
14784 (lower_reduction_clauses): Ditto.
14785 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
14786 (lower_omp_sections): Don't explicitely count sequence length,
14787 nullify lowered bodies earlier, ensure stmts are part of only
14788 one sequence, adjust call to lower_omp.
14789 (lower_omp_single): Ensure stmts are part of only one sequence,
14790 adjust call to lower_omp.
14791 (lower_omp_master): Ditto.
14792 (lower_omp_ordered): Ditto.
14793 (lower_omp_critical): Ditto.
14794 (lower_omp_for): Ditto.
14795 (lower_omp_taskreg): Ditto, tidy.
14796 (lower_omp_1): Adjust calls to lower_omp.
14797 (execute_lower_omp): Ditto.
14798 (lower_omp): Adjust to take pointer to sequence.
14799 (diagnose_sb_2): Use walk_gimple_seq_mod.
14800 (diagnose_omp_structured_block_errors): Ditto and set possibly
14801 changed function body.
14802 * gimple-low.c (lower_function_body): Set function body after
14804 (lower_sequence): Adjust to take pointer to sequence.
14805 (lower_omp_directive): Ensure stmt isn't put twice into the
14806 sequence, adjust call to lower_sequence.
14807 (lower_stmt): Adjust calls to lower_sequence.
14808 (lower_gimple_bind): Ditto.
14809 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
14810 * tree-nested.c (walk_body): Take pointer to sequence, use
14811 walk_gimple_seq_mod.
14812 (walk_function): Adjust call to walk_body, set possibly changed body.
14813 (walk_gimple_omp_for): Adjust calls to walk_body.
14814 (convert_nonlocal_omp_clauses): Ditto.
14815 (convert_nonlocal_reference_stmt): Ditto.
14816 (convert_local_omp_clauses): Ditto.
14817 (convert_local_reference_stmt): Ditto.
14818 (convert_tramp_reference_stmt): Ditto.
14819 (convert_gimple_call): Ditto.
14820 (convert_nl_goto_reference): Use local iterator copy.
14821 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
14822 but taking pointer to sequence, ensure gsi_start is called with
14824 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
14825 asserting that the sequence head didn't change.
14826 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
14827 walk_gimple_seq_mod.
14828 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
14829 (execute_lower_tm): Ditto, and set possibly changed body.
14830 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
14831 call gsi_start with that lvalue.
14832 (replace_goto_queue_stmt_list): Ditto.
14833 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
14834 (replace_goto_queue): Ditto.
14835 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
14836 (lower_try_finally_onedest): Ditto.
14837 (lower_try_finally_copy): Ditto.
14838 (lower_try_finally_switch): Ditto.
14839 (lower_try_finally): Ditto.
14840 (lower_eh_filter): Ditto.
14841 (lower_eh_must_not_throw): Ditto.
14842 (lower_cleanup): Ditto.
14843 (lower_eh_constructs_2): Ditto.
14844 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
14845 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
14846 set possibly changed body.
14847 (optimize_double_finally): Call gsi_start with lvalue.
14849 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
14850 (gimple_split_block): Ditto.
14851 (gimple_merge_blocks): Use gsi_start_phis.
14852 (move_stmt_r): Use walk_gimple_seq_mod.
14853 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
14854 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
14855 (rebuild_cgraph_edges): Ditto.
14856 (cgraph_rebuild_references): Ditto.
14857 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
14858 * tree-inline.c (copy_phis_for_bb): Ditto.
14859 * tree-ssa-dce.c: Ditto.
14861 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
14863 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
14864 Andi Kleen <ak@linux.intel.com>
14866 * coretypes.h (MEMMODEL_MASK): New.
14867 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
14868 and return new variable.
14869 (expand_builtin_atomic_exchange): Mask memmodel values.
14870 (expand_builtin_atomic_compare_exchange): Ditto.
14871 (expand_builtin_atomic_load): Ditto.
14872 (expand_builtin_atomic_store): Ditto.
14873 (expand_builtin_atomic_clear): Ditto.
14874 * doc/extend.texi: Mention port-dependent memory model flags.
14875 * config/i386/cpuid.h (bit_HLE): New.
14876 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14878 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
14879 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
14880 (ix86_target_string)<-mhle>: New.
14881 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
14882 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
14883 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
14884 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
14885 enabled for generic, generic64 and core-avx2.
14886 (ix86_print_operand): Generate HLE lock prefixes.
14887 (ix86_memmodel_check): New.
14888 (TARGET_MEMMODEL_CHECK): Ditto.
14889 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
14890 (IX86_HLE_ACQUIRE): Ditto.
14891 (IX86_HLE_RELEASE): Ditto.
14892 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
14893 * config/i386/i386.opt (mhle): Ditto.
14894 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
14895 success model to instruction emitter.
14896 (atomic_fetch_add<mode>): Ditto.
14897 (atomic_exchange<mode>): Ditto.
14898 (atomic_add<mode>): Ditto.
14899 (atomic_sub<mode>): Ditto.
14900 (atomic_<code><mode>): Ditto.
14901 (*atomic_compare_and_swap_doubledi_pic): Ditto.
14902 (atomic_compare_and_swap_single<mode>): Define and use argument
14904 (atomic_compare_and_swap_double<mode>): Ditto.
14905 * configure.ac: Check if assembler support HLE prefixes.
14906 * configure: Regenerate.
14907 * config.in: Ditto.
14909 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
14911 PR middle-end/53153
14912 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
14914 (gimplify_switch_expr): ... here.
14915 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
14916 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
14917 to clean up case labels with values outside the index type range.
14918 (simplify_gimple_switch): Call it if something changed.
14919 Remove strange and unnecessary assert.
14921 2012-05-02 Richard Guenther <rguenther@suse.de>
14923 * fold-const.c (div_if_zero_remainder): sizetypes no longer
14925 (int_const_binop_1): New worker for int_const_binop with
14926 overflowable parameter. Pass it through to force_fit_type_double.
14927 (int_const_binop): Wrap around int_const_binop_1 with overflowable
14929 (size_binop_loc): Call int_const_binop_1 with overflowable equal
14930 to minus one, forcing overflow detection for even unsigned types.
14931 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
14932 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
14933 * stor-layout.c (initialize_sizetypes): sizetypes no longer
14935 (layout_type): For zero-sized arrays ignore overflow on the
14937 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
14938 (bit_value_binop_1): Likewise.
14939 * tree.c (double_int_to_tree): Likewise.
14940 (double_int_fits_to_tree_p): Likewise.
14941 (force_fit_type_double): Likewise.
14942 (host_integerp): Likewise.
14943 (int_fits_type_p): Likewise.
14944 * varasm.c (output_constructor_regular_field): Sign-extend the
14945 field-offset to cater for negative offsets produced by the Ada
14947 * omp-low.c (extract_omp_for_data): Convert the loop step to
14948 signed for pointer adjustments.
14950 2012-05-02 Richard Guenther <rguenther@suse.de>
14952 * tree.c (valid_constant_size_p): New function.
14953 * tree.h (valid_constant_size_p): Declare.
14954 * cfgexpand.c (expand_one_var): Adjust check for too large
14955 variables by using valid_constant_size_p.
14956 * varasm.c (assemble_variable): Likewise.
14958 * c-decl.c (grokdeclarator): Properly check for sizes that
14959 cover more than half of the address-space.
14961 2012-05-02 Jakub Jelinek <jakub@redhat.com>
14963 PR tree-optimization/53163
14964 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
14965 return value from compute_all_dependences.
14967 PR rtl-optimization/53160
14968 * ree.c (combine_reaching_defs): Handle the case where cand->insn
14969 has been modified by ree pass already.
14971 2012-05-01 Ian Lance Taylor <iant@google.com>
14974 * c-decl.c (build_compound_literal): Make the decl readonly if it
14975 an array of a readonly type.
14976 * gimplify.c (gimplify_compound_literal_expr): Add fallback
14977 parameter. Change all callers. If the decl is not addressable
14978 and is not an l-value, make it readonly.
14980 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
14982 * ira.c (allocated_reg_info_size): New static variable.
14983 (expand_reg_info): Manage it. Call
14984 setup_preferred_alternate_classes_for_new_pseudos.
14985 (ira): Don't do it here. Remove local allocated_reg_info_size,
14986 set the global before calling find_moveable_pseudos.
14987 (find_moveable_pseudos): Call expand_reg_info rather than
14990 2012-05-01 Richard Henderson <rth@redhat.com>
14992 * common.opt (fsync-libcalls): New.
14993 * doc/invoke.texi: Document it.
14994 * optabs.c (init_sync_libfuncs): Honor it.
14996 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
14997 Richard Sandiford <r.sandiford@uk.ibm.com>
14999 PR rtl-optimization/52543
15000 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
15002 * lower-subreg.h: New file.
15003 * target-globals.h (this_target_lower_subreg): Declare.
15004 (target_globals): Add lower_subreg;
15005 (restore_target_globals): Restore this_target_lower_subreg.
15006 * target-globals.c: Include it.
15007 (default_target_globals): Add default_target_lower_subreg.
15008 (save_target_globals): Initialize target_lower_subreg.
15009 * rtl.h (init_lower_subreg): Added declaration.
15010 * toplev.c (backend_init_target): Call initializer for lower-subreg
15012 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
15013 (default_target_lower_subreg): New variable.
15014 (this_target_lower_subreg): Likewise.
15015 (twice_word_mode, choices): New macros.
15016 (shift_cost, compute_splitting_shift, compute_costs)
15017 (init_lower_subreg): New functions.
15018 (resolve_simple_move): Add speed_p argument. Check choices.
15019 (find_pseudo_copy): Don't check the mode size here.
15020 (resolve_simple_move): Assert the mode size.
15021 (find_decomposable_shift_zext): Add speed_p argument and return
15022 a bool. Check choices.
15023 (resolve_shift_zext): Add comment.
15024 (dump_shift_choices, dump_choices): New functions.
15025 (decompose_multiword_subregs): Dump list of profitable
15026 transformations. Add code to skip non profitable transformations.
15027 Update calls to simple_move and find_decomposable_shift_zext.
15029 2012-05-01 Ian Bolton <ian.bolton@arm.com>
15030 Sameera Deshpande <sameera.deshpande@arm.com>
15031 Greta Yorsh <greta.yorsh@arm.com>
15033 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
15034 (thumb1_unexpanded_epilogue): ...this.
15035 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
15036 (thumb1_unexpanded_epilogue): ...this.
15037 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
15038 (thumb1_unexpanded_epilogue): ...this.
15040 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
15042 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
15043 comparing enumeration values. Update comments.
15045 2012-05-01 Alan Modra <amodra@gmail.com>
15048 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
15049 load_cr_save, add_crlr_cfa_restore): New functions.
15050 (rs6000_restore_saved_cr): Rename to..
15051 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
15052 (rs6000_emit_epilogue): Use new functions. Adjust condition
15053 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
15054 regs when using out-of-line restore only when shrink wrapping.
15056 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
15058 PR middle-end/53136
15059 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
15060 calls to cgraph_node_name in xstrdup.
15061 (ipa_make_edge_direct_to_target): Ditto.
15062 * cgraph.c (dump_cgraph_node): Ditto.
15063 * tree-sra.c (convert_callers_for_node): Ditto.
15064 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
15065 * ipa-cp.c (perhaps_add_new_callers): Ditto.
15066 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
15067 (cgraph_materialize_all_clones): Ditto.
15068 * ipa-inline.c (report_inline_failed_reason): Ditto.
15069 (want_early_inline_function_p): Ditto.
15070 (edge_badness): Ditto.
15071 (update_edge_key): Ditto.
15072 (flatten_function): Ditto.
15073 (ipa_inline): Ditto.
15074 (inline_always_inline_functions): Ditto.
15075 (early_inline_small_functions): Ditto.
15077 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
15080 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
15081 constraints 0 and 1.
15083 012-04-30 Jan Hubicka <jh@suse.cz>
15085 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
15086 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
15087 (cgraph_add_to_same_comdat_group): Remove.
15088 (cgraph_add_asm_node): Move to cgraphunit.c.
15089 (cgraph_make_decl_local): Move to symtab.c
15090 (cgraph_make_node_local_1): Update.
15091 (cgraph_can_remove_if_no_direct_calls_and): Update.
15092 (used_from_object_file_p): Update.
15093 (resolution_used_from_other_file_p): Move to symtab.c
15094 (cgraph_used_from_object_file_p): move to symtab.c
15095 (verify_cgraph_node): Verify same comdat groups.
15096 * cgraph.h (cgraph_asm_node): Rename to ...
15097 (asm_node): ... this one.
15098 (cgraph_asm_nodes): Rename to ...
15099 (asm_nodes): ... this one.
15100 (symtab_add_to_same_comdat_group): New function.
15101 (symtab_dissolve_same_comdat_group_list): New function.
15102 (symtab_used_from_object_file_p): Declare.
15103 (symtab_make_decl_local): Declare.
15104 (cgraph_add_to_same_comdat_group): Remove.
15105 (cgraph_add_asm_node): Remove.
15106 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
15108 (cgraph_finalize_compilation_unit): Rename to ...
15109 (finalize_compilation_unit): ... this one.
15110 (cgraph_optimize): Rename to ....
15111 (compile): ... this one.
15112 (add_asm_node): Declare.
15113 (fixup_same_cpp_alias_visibility): Declare.
15114 (cgraph_make_decl_local): Remove.
15115 (varpool_assemble_pending_decls): Rename to ...
15116 (varpool_output_variables): ... this one.
15117 (varpool_remove_unreferenced_decls): Remove.
15118 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
15119 (preserve_function_body_p): Make static.
15120 * toplev.c (compile_file): Update comments; update.
15121 * cgraphunit.c: Update comments.
15122 (cgraph_expand_all_functions): Rename to ...
15123 (expand_all_functions): ... this one; update.
15124 (cgraph_mark_functions_to_output): Rename to ...
15125 (mark_functions_to_output): ... this one; cleanup.
15126 (cgraph_output_pending_asms): Remove prototype.
15127 (asm_nodes, asm_last_node): New static vars.
15128 (cgraph_process_new_functions): Update.
15129 (cgraph_reset_node): Cleanup; add comment.
15130 (cgraph_add_new_function): Update.
15131 (cgraph_output_pending_asms): Rename to ...
15132 (output_asm_statements): ... this one.
15133 (add_asm_node): New function.
15134 (fixup_same_cpp_alias_visibility): New function based on code
15135 in cgraph_analyze_function.
15136 (cgraph_analyze_function): Use it.
15137 (cgraph_order_sort): Update.
15138 (cgraph_output_in_order): Update.
15139 (cgraph_function_versioning): Update.
15140 (cgraph_optimize): Rename to ...
15141 (compile): ... this one; initialize streamer hooks here.
15142 (cgraph_finalize_compilation_unit): Rename to ...
15143 (finalize_compilation_unit): ... this one; do not initialize streamer
15145 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
15146 * dwarf2out.c: Update ocmment.
15147 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
15148 * method.c (use_thunk): Likewise.
15149 * semantics.c (maybe_add_lambda_conv_op): Likewise.
15150 * decl2.c (maybe_emit_vtables): Likewise.
15151 (cp_write_global_declarations): Use finalize_compilation_unit.
15152 * parser.c (cp_parser_asm_definition): Use add_asm_node.
15153 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
15154 * c-decl.c (c_write_global_declarations): Use
15155 finalize_compilation_unit.
15156 * langhooks.c (write_global_declarations): Update.
15157 * ipa.c (cgraph_externally_visible_p): Update.
15158 (dissolve_same_comdat_group_list): Remove.
15159 (function_and_variable_visibility): Update.
15160 * symtab.c: Inlcude lto-streamer.h and rtl.h
15161 (ld_plugin_symbol_resolution_names): New.
15162 (symtab_add_to_same_comdat_group): New.
15163 (symtab_dissolve_same_comdat_group_list): New.
15164 (resolution_used_from_other_file_p): Move here from cgraph.c
15165 (symtab_used_from_object_file_p): New.
15166 (symtab_make_decl_local): New.
15167 * passes.c (register_pass): Update comments.
15168 * c-parser.c (c_parser_asm_definition): Update.
15169 * varpool.c (varpool_analyze_node): Use
15170 fixup_same_cpp_alias_visibility.
15171 (varpool_remove_unreferenced_decls): Make static.
15172 (varpool_assemble_pending_decls): Rename to ...
15173 (varpool_output_variables): ... this one; call
15174 varpool_remove_unreferenced_decls.
15175 (varpool_used_from_object_file_p): Remove.
15177 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
15180 * c-typeck.c (build_array_ref): Call
15181 convert_vector_to_pointer_for_subscript.
15182 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
15184 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
15186 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
15187 to compile-time "mode == <MODE>mode" checks.
15188 (and splitter): Ditto.
15190 2012-04-30 Richard Henderson <rth@redhat.com>
15192 * config/arm/arm.md (UNSPEC_LL): New.
15193 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
15194 (arm_load_exclusivedi): Use %H0.
15196 2012-04-30 Jason Merrill <jason@redhat.com>
15198 * dwarf2out.c (comdat_symbol_id): Add const.
15199 (union die_symbol_or_type_node): Add const to die_symbol.
15200 (output_die_symbol, output_die, output_comp_unit): Adjust.
15202 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
15204 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
15205 * config/arm/neon.md (negdi2_neon): New insn.
15206 Also add splitters for core and NEON registers.
15208 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
15210 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
15211 (arm_print_operand): Add 'x' format.
15212 * config/arm/constraints.md (Dn): Allow const_int.
15213 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
15214 Use 'x' format to print constants.
15215 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
15216 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
15218 (movdi_vfp_cortexa8): Likewise.
15220 2012-04-30 Ian Bolton <ian.bolton@arm.com>
15221 Sameera Deshpande <sameera.deshpande@arm.com>
15222 Greta Yorsh <greta.yorsh@arm.com>
15224 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
15225 * config/arm/arm.c (ldm_stm_operation_p): New function.
15226 * config/arm/predicates.md (load_multiple_operation): Update predicate.
15227 (store_multiple_operation): Likewise.
15229 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
15230 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
15231 * config/arm/predicates.md (load_multiple_operation): Add arguments.
15232 (store_multiple_operation): Likewise.
15234 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
15236 * config/i386/i386.md (and<mode>3): Expand masking operations with
15237 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
15238 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
15240 2012-04-30 Dodji Seketeli <dodji@redhat.com>
15242 Add -Wvarargs option
15243 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
15244 argument for the various warning_at calls.
15245 * docs/invoke.texi: Update the documentation.
15247 2012-04-30 Dodji Seketeli <dodji@redhat.com>
15249 Switch -ftrack-macro-expansion=2 on by default.
15250 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
15253 Fix va_start related location
15254 * builtins.c (fold_builtin_next_arg): Unwinds to the first
15255 location in real source code.
15257 Make conversion warnings work on NULL with -ftrack-macro-expansion
15258 * input.h (expansion_point_location_if_in_system_header): Declare
15260 * input.c (expansion_point_location_if_in_system_header): Define it.
15262 Fix -Wuninitialized for -ftrack-macro-expansion
15263 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
15264 declaration. Use linemap_location_before_p for source locations.
15266 Strip "<built-in>" loc from displayed expansion context
15267 * input.c (expand_location_1): When expanding to spelling location
15268 in a context of a macro expansion, skip reserved system header
15269 locations. Update comments. * tree-diagnostic.c
15270 (maybe_unwind_expanded_macro_loc): Likewise.
15272 Make expand_location resolve to locus in main source file
15273 * input.c (expand_location_1): New. Takes a parameter to choose
15274 whether to resolve the location to spelling or expansion point.
15275 Was factorized from ...
15276 (expand_location): ... here.
15277 (expand_location_to_spelling_point): New. Implemented in terms of
15279 * diagnostic.c (diagnostic_build_prefix): Use the new
15280 expand_location_to_spelling_point instead of expand_location.
15282 Fix PCH crash on GTYed pointer-to-scalar field of a struct
15283 * gengtype.c (write_types_process_field): Force second argument of
15284 the call to the PCH object hierarchy walker to be 'x'.
15286 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
15288 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
15289 predicate to discriminate types.
15291 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
15293 * doc/invoke.texi (Wmissing-format-attribute): Document as an
15294 alias of Wsuggest-attribute=format.
15295 * c-typeck.c (convert_for_assignment): Replace
15296 Wmissing-format-attribute with Wsuggest-attribute=format.
15297 (digest_init): Likewise.
15299 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
15301 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
15302 * common.opt (Wmissing-noreturn): Alias of
15303 -Wsuggest-attribute=noreturn.
15305 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
15308 * config/cris/cris.md (andqu): New peephole2.
15309 (andu): Tweak head comment.
15311 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
15312 Steven Bosscher <steven@gcc.gnu.org>
15313 Maxim Kuvyrkov <maxim@codesourcery.com>
15315 PR tree-optimization/38785
15316 * common.opt (ftree-partial-pre): New option.
15317 * doc/invoke.texi: Document it.
15318 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
15319 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
15320 benefit speed path.
15321 (execute_pre): Use flag_tree_partial_pre.
15323 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15326 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
15329 2012-04-27 Ollie Wild <aaw@google.com>
15331 * doc/invoke.texi (Wliteral-suffix): Document new option.
15333 2012-04-27 Tom Tromey <tromey@redhat.com>
15335 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
15336 (dwarf_tag_name): Use get_DW_TAG_name.
15337 (dwarf_attr_name): Use get_DW_AT_name.
15338 (dwarf_form_name): Use get_DW_FORM_name.
15339 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
15341 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
15343 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
15344 arguments are -1 and 0, by negating the result of the conditional.
15346 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
15349 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
15351 2012-04-27 Richard Guenther <rguenther@suse.de>
15353 * tree-flow.h (is_hidden_global_store): Remove.
15354 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
15355 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
15356 (stmt_may_clobber_global_p): Likewise.
15357 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
15358 (stmt_may_clobber_global_p): Likewise.
15359 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
15360 stmt_may_clobber_global_p.
15361 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
15363 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
15365 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
15368 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
15369 reorganize some fields and update comments. Rename bit_test_uniq
15370 and bit_test_count to uniq resp. count. Remove bit_test_bb.
15371 (collect_switch_conv_info): New function, collects info about a
15372 GIMPLE_SWITCH into a struct switch_conv_info.
15373 (check_range): Simplify to use pre-recorded info. Fix think-o in
15374 range-branch ratio check.
15375 (check_process_case): Remove function.
15376 (check_all_empty_except_final): New function, verifies that all
15377 non-final basic blocks are empty.
15378 (process_switch): Simplify to use pre-recorded info. Call
15379 collect_switch_conv_info to do that. Assert that degenerate switch
15380 statements have been cleaned up.
15382 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
15384 PR middle-end/27139
15385 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
15387 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15390 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
15392 2012-04-27 Tom de Vries <tom@codesourcery.com>
15394 PR tree-optimization/51879
15395 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
15396 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
15398 (defs_to_varying): ... here. Don't set use_processed.
15399 (visit_reference_op_call): Handle gimple_vdef.
15400 Handle case that lhs is NULL_TREE.
15401 (visit_use): Use mark_use_processed. Handle calls with side-effect
15402 using visit_reference_op_call.
15404 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
15406 * sched-deps.c (fixup_sched_groups): Rename to...
15407 (chain_to_prev_insn): ...this.
15408 (chain_to_prev_insn_p): New function.
15409 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
15411 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
15413 * sched-int.h (_haifa_insn_data): Move priority_status.
15415 (INSN_MODEL_INDEX): New macro.
15416 * haifa-sched.c (insn_delay): New function.
15417 (sched_regno_pressure_class): Update commentary.
15418 (mark_regno_birth_or_death): Pass the liveness bitmap and
15419 pressure array as arguments, instead of using curr_reg_live and
15420 curr_reg_pressure. Only update the pressure if the bit in the
15421 liveness set has changed.
15422 (initiate_reg_pressure_info): Always trust the live-in set for
15423 SCHED_PRESSURE_MODEL.
15424 (initiate_bb_reg_pressure_info): Update call to
15425 mark_regno_birth_or_death.
15426 (dep_list_size): Take the list as argument.
15427 (calculate_reg_deaths): New function, extracted from...
15428 (setup_insn_reg_pressure_info): ...here.
15429 (MODEL_BAR): New macro.
15430 (model_pressure_data, model_insn_info, model_pressure_limit)
15431 (model_pressure_group): New structures.
15432 (model_schedule, model_worklist, model_insns, model_num_insns)
15433 (model_curr_point, model_before_pressure, model_next_priority):
15435 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
15436 (MODEL_INSN_INFO, MODEL_INSN): New macros.
15437 (model_index, model_update_limit_points_in_group): New functions.
15438 (model_update_limit_points, model_last_use_except): Likewise.
15439 (model_start_update_pressure, model_update_pressure): Likewise.
15440 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
15441 (model_excess_cost, model_dump_pressure_points): Likewise.
15442 (model_set_excess_costs): Likewise.
15443 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
15444 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
15445 schedule as an alternative tie-breaker. Update the call to
15447 (ready_sort): Call model_set_excess_costs.
15448 (update_register_pressure): Update call to mark_regno_birth_or_death.
15449 Rely on that function to check liveness rather than doing it here.
15450 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
15451 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
15452 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
15453 (model_record_pressure, model_record_pressures): New functions.
15454 (model_record_final_pressures, model_add_successors_to_worklist)
15455 (model_promote_predecessors, model_choose_insn): Likewise.
15456 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
15457 (model_start_schedule, model_finalize_pressure_group): Likewise.
15458 (model_end_schedule): Likewise.
15459 (schedule_insn): Say when we're scheduling the next instruction
15460 in the model schedule.
15461 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
15462 (queue_to_ready): Do not add instructions that are
15463 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
15464 Always allow the next instruction in the model schedule to be added.
15465 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
15466 and delay for SCHED_PRESSURE_MODEL too.
15467 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
15468 SCHED_PRIORITY_MODEL, but also take the DFA into account.
15469 (schedule_block): Call model_start_schedule and model_end_schedule.
15470 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
15471 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
15472 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
15474 (sched_finish): Update accordingly.
15475 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
15476 to SCHED_PRESSURE_MODEL.
15477 (add_jump_dependencies): Update call to dep_list_size.
15478 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
15479 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
15480 to SCHED_PRESSURE_MODEL.
15481 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
15482 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
15483 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
15484 handling to SCHED_PRESSURE_MODEL.
15486 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
15488 * common.opt (fsched-pressure-algorithm=): New option.
15489 * flag-types.h (sched_pressure_algorithm): New enum.
15490 * sched-int.h (sched_pressure_p): Replace with...
15491 (sched_pressure): ...this new variable.
15492 * haifa-sched.c (sched_pressure_p): Replace with...
15493 (sched_pressure): ...this new variable.
15494 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
15495 (update_reg_and_insn_max_reg_pressure, schedule_insn)
15496 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
15497 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
15498 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
15499 (sched_analyze_insn): Likewise.
15500 * sched-rgn.c (schedule_region): Likewise.
15501 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
15503 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
15505 * PR middle-end/52997
15506 * ira.c (find_moveable_pseudos): Call resize_reg_info.
15508 PR middle-end/52940
15509 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
15510 * expr.c (convert_move): Honor unsignedp when extending partial int
15512 * genmodes.c (complete_mode): Don't clear component field of partial
15514 (emit_mode_inner): Don't emit it however.
15515 (calc_wider_mode): Partial int modes widen to their component.
15517 2012-04-26 David S. Miller <davem@davemloft.net>
15519 * config/sparc/niagara4.md: New file.
15520 * config/sparc/sparc.md: Include it.
15521 * config/sparc/sparc.c (niagara4_costs): New processor costs.
15522 (sparc_option_override): Use it.
15523 (sparc_use_sched_lookahead): Return 2 for niagara4.
15524 (sparc_issue_rate): Likewise.
15526 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
15527 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
15528 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
15529 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
15530 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
15531 alignaddrldi_vis): Set type to gsr.
15532 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
15533 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
15534 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
15535 v<vis3_shift_patname><mode>3, fmean16_vis,
15536 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
15537 fucmp<code>8<P:mode>_vis): Set type to fga.
15538 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
15539 * config/sparc/niagara.md: Likewise.
15540 * config/sparc/niagara2.md: Likewise.
15541 * config/sparc/ultra3.md: Likewise, and fix type matching for
15542 us3_ialuX reservation.
15544 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15546 * reload.c (find_reloads): Change the loop nesting when trying an
15547 alternative with swapped operands.
15549 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15551 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
15552 comment. Delete unused parameter first_exp_point_map.
15553 (virt_loc_aware_diagnostic_finalizer): Update call.
15555 2012-04-26 Michael Hope <michael.hope@linaro.org>
15556 Richard Earnshaw <rearnsha@arm.com>
15558 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
15559 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
15560 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
15561 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
15563 2012-04-25 Sriraman Tallam <tmsriram@google.com>
15565 * doc/extend.texi: Document avx2 support.
15566 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
15568 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
15571 * config/cris/cris.md ("*andhi_lowpart_v32")
15572 ("*andqi_lowpart_v32"): Change first input-only operand from
15573 a (match_operand ...) to (match_dup 0). Drop alternatives with
15574 const_int-matching constraints for redundancy.
15575 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
15576 three-operand alternative.
15578 2012-04-25 Jakub Jelinek <jakub@redhat.com>
15581 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
15582 instead expand it as zero extension.
15584 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
15587 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
15589 2012-04-25 Jakub Jelinek <jakub@redhat.com>
15591 * common.opt (flag_debug_types_section): Default to 0.
15592 (dwarf_version): Default to 4.
15593 (dwarf_record_gcc_switches): Default to 1.
15594 (dwarf_strict): Default to 0.
15595 * toplev.c (process_options): Don't handle dwarf_strict
15596 or dwarf_version here.
15597 * config/vxworks.c (vxworks_override_options): Don't
15598 test whether dwarf_strict or dwarf_version are negative,
15599 instead test !global_options_set.x_dwarf_*.
15600 * config/darwin.c (darwin_override_options): Default to
15602 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
15603 and -fno-debug-types-section are now the default.
15605 2012-04-25 Jan Hubicka <jh@suse.cz>
15607 * cgraphunit.c: Update toplevel comment.
15608 (tree_rest_of_compilation): Merge into cgraph_expand_function.
15609 (cgraph_analyze_function): Make static.
15610 (cgraph_decide_is_function_needed): Make static.
15611 (cgraph_add_new_function): Use expand_function instead of
15612 rest_of_compilation.
15613 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
15614 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
15616 (cgraph_inline_p): Remove.
15617 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
15618 (init_cgraph): Add comment.
15619 * cgraphbuild.c (record_reference, mark_address, mark_load,
15620 mark_store): Do not call analyze_expr hook.
15621 * cgraph.c: Update toplevel comment.
15622 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
15623 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
15624 Move fere from cgraphunit.c
15625 (cgraph_mark_force_output_node): Move to cgraph.h
15626 * cgraph.h: Reorder so the comments match the function placement.
15627 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
15628 (cgraph_mark_force_output_node): Move here from cgraph.c
15629 * tree.c (free_lang_data): Do not clear analyze_expr hook.
15630 * ipa-inline-transform.c (preserve_function_body_p): New function.
15631 (inline_transform): Update.
15632 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
15633 * langhooks.h (lang_hooks_for_callgraph): Remove.
15634 (lang_hooks): Remove callgraph.
15635 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
15636 * varpool.c: Remove out of date comment.
15637 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
15638 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
15640 2012-04-25 Jan Hubicka <jh@suse.cz>
15642 PR middle-end/53089
15643 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
15644 forward declaration.
15645 (cgraph_finalize_function): Finalize them here.
15646 * symtab.c (dump_symtab): Dump ctors and dtors.
15648 2012-04-25 Jakub Jelinek <jakub@redhat.com>
15650 PR middle-end/52979
15651 * stor-layout.c (get_best_mode): Don't return mode with bitsize
15652 larger than maxbits. Don't compute maxbits modulo align.
15653 Also check that unit bytes long store at bitpos / unit * unit
15654 doesn't affect bits beyond bitregion_end.
15655 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
15656 would not fit into bitregion_start ... bitregion_end + 1 bit region.
15657 (store_split_bit_field): Decrease unit close to end of bitregion_end
15658 if access is restricted in order to avoid mutual recursion.
15660 PR tree-optimization/53058
15661 * double-int.h (double_int_max_value, double_int_min_value): New
15663 * double-int.c (double_int_max_value, double_int_min_value): New
15665 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
15666 or GT_EXPR with double_int_max_value instead of double_int_mask.
15668 2012-04-25 Richard Guenther <rguenther@suse.de>
15670 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
15671 * tree-vect-loop.c (vect_transform_loop): Adjust.
15672 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
15673 the maximum number of iterations for the epilogue loop.
15674 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
15676 2012-04-25 Jakub Jelinek <jakub@redhat.com>
15679 * c-typeck.c (set_nonincremental_init,
15680 set_nonincremental_init_from_string): Pass true instead of false
15681 as IMPLICIT to add_pending_init.
15683 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15685 * c-typeck.c (pop_init_level): Improve diagnostics.
15687 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
15689 * compare-elim.c (try_eliminate_compare): Also handle operands with
15690 implicit extensions.
15692 2012-04-25 Alan Modra <amodra@gmail.com>
15694 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
15695 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
15696 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
15697 (no_global_regs_above): Delete.
15698 (no_global_regs): New function.
15699 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
15700 value for load multiple test.
15701 (savres_routine_syms): Increase size.
15702 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
15703 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
15704 rather than a number of boolean flags. Update all callers.
15705 (rs6000_savres_routine_name): Generate vector save/restore names.
15706 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
15707 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
15708 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
15709 and using_store_multiple. Expand uses. Don't always use r11 as
15710 frame reg when needed for out-of-line saves. Set up initial offset
15711 for out-of-line vector saves when buying stack frame. Handle pointer
15712 reg setup for out-of-line fp save. Emit call to out-of-line vector
15713 save function. Choose r11 or r12 for vrsave reg when available for
15715 (rs6000_output_function_prologue): Don't emit .extern for ELF.
15716 (rs6000_emit_epilogue): Choose a better frame reg when restoring
15717 from back-chain to suit out-of-line vector restore functions. Emit
15718 call to out-of-line vector restore function. Adjust register used
15719 for cr restore. Tweak pointer register setup for gpr restore.
15720 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
15722 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
15723 (V_SAVE_INLINE): Define.
15724 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
15726 2012-04-25 Alan Modra <amodra@gmail.com>
15728 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
15729 out-of-line save/restore for large frames. Don't disable
15730 out-of-line saves on ABI_AIX when using static chain reg.
15731 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
15732 clobber static chain reg, and tweak for out-of-line gpr saves
15735 2012-04-25 Alan Modra <amodra@gmail.com>
15737 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
15738 (rs6000_emit_prologue): Use the above to catch register overlap.
15740 2012-04-25 Alan Modra <amodra@gmail.com>
15742 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
15743 decl. Move logic selecting update reg to callers. Update all callers.
15744 (rs6000_emit_allocate_stack): Add copy_off param.
15745 (emit_frame_save): Don't handle reg+reg addressing.
15746 (ptr_regno_for_savres): New function, extracted from..
15747 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
15748 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
15749 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
15750 frame offset adjustment for out-of-line save with copy from sp.
15751 Simplify condition controlling whether cr is saved early or
15752 late. Use ptr_regno_for_savres to verify correct reg is set
15753 up for out-of-line saves. Pass the actual pointer reg used to
15754 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
15755 function. Rearrange spe vars so code is similar to that
15756 elsewhere in this function. Don't update frame_off when spe
15757 save code will restore r11. Use emit_frame_save for spe and
15758 gpr saves. Consolidate darwin out-of-line gpr setup with that
15759 for other abis. Don't assume frame_offset is zero and frame
15760 reg is sp when setting up altivec reg saves, and calculate
15761 exact offset requirement.
15762 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
15763 spe restore code. Consolidate darwin out-of-line gpr setup
15764 with that for other abis.
15766 2012-04-25 Alan Modra <amodra@gmail.com>
15768 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
15769 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
15771 (emit_frame_save): Delete frame_ptr param. Rename total_size to
15773 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
15774 and emit_frame_save calls. Cope with possibly missing note.
15776 2012-04-24 Sriraman Tallam <tmsriram@google.com>
15778 * config/i386/i386.c (build_processor_model_struct): New function.
15779 (make_var_decl): New function.
15780 (fold_builtin_cpu): New function.
15781 (ix86_fold_builtin): New function.
15782 (make_cpu_type_builtin): New function.
15783 (ix86_init_platform_type_builtins): New function.
15784 (ix86_expand_builtin): Expand new builtins by folding them.
15785 (ix86_init_builtins): Make new builtins to detect CPU type.
15786 (TARGET_FOLD_BUILTIN): New macro.
15787 (IX86_BUILTIN_CPU_INIT): New enum value.
15788 (IX86_BUILTIN_CPU_IS): New enum value.
15789 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
15790 * config/i386/i386-builtin-types.def: New function type.
15791 * testsuite/gcc.target/builtin_target.c: New testcase.
15792 * doc/extend.texi: Document builtins.
15794 2012-04-24 Olivier Hainque <hainque@adacore.com>
15796 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
15797 * toplev.c (process_options): Default to dwarf_version 2.
15798 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
15799 and dwarf_version 2.
15801 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15803 * tree-pretty-print.h (default_tree_printer): Do not declare.
15804 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
15806 (default_tree_diagnostic_starter): Make static.
15807 (default_tree_printer): Move to here. Make static.
15808 (tree_diagnostics_defaults): New.
15809 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
15810 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
15811 * toplev.c: Do not include tree-pass.h.
15812 (default_tree_printer): Move from here.
15813 (general_init): Use tree_diagnostics_defaults.
15815 2012-04-24 Chao-ying Fu <fu@mips.com>
15817 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
15818 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
15819 * config/mips/gnu-user.h
15820 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
15821 (GNU_USER_TARGET_LINK_SPEC): New define.
15822 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
15823 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
15824 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
15825 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
15826 GNU_USER_TARGET_ENDFILE_SPEC.
15827 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
15828 (GNU_USER_TARGET_LINK_SPEC): New define.
15829 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
15830 * config/mips/linux-common.h: New file.
15832 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15835 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
15836 (altivec_build_resolved_builtin): Call fully_fold_convert.
15838 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
15841 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
15843 2012-04-24 Richard Guenther <rguenther@suse.de>
15845 PR tree-optimization/53085
15846 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
15849 2012-04-24 Richard Guenther <rguenther@suse.de>
15851 * tree-if-conv.c (main_tree_if_conversion): Move bb under
15854 2012-04-24 Jim Meyering <meyering@redhat.com>
15856 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
15857 absence of an define_enum call.
15859 2012-04-24 Richard Guenther <rguenther@suse.de>
15861 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
15862 the epilogue loop is not re-used as unvectorized version
15863 record the its maximum number of iterations.
15865 2012-04-24 Andrew Pinski <apinski@cavium.com>
15867 * tree-ssa-forwprop.c (simplify_bitwise_binary):
15868 Don't directly use def1/def2.
15870 2012-04-24 Richard Guenther <rguenther@suse.de>
15872 PR tree-optimization/53098
15873 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
15876 2012-04-24 Andrew Pinski <apinski@cavium.com>
15879 * tree-ssa-forwprop.c (defcodefor_name): New function.
15880 (simplify_bitwise_binary): Use defcodefor_name instead of manually
15881 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
15882 Simplify "(~X | Y) & X" to "X & Y" and
15883 "(~X & Y) | X" to "X | Y".
15885 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15887 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
15888 validate_change to add clobbers if IN_GROUP is nonzero.
15889 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
15890 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
15892 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
15894 * config/s390/s390.c (insn_invalid_p): Likewise.
15896 2012-04-24 Jakub Jelinek <jakub@redhat.com>
15898 PR middle-end/53084
15899 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
15900 (output_addressed_constants): Likewise.
15902 PR middle-end/52999
15903 * varasm.c (get_section): Don't ICE for section conflicts with
15904 built-in section kinds.
15906 2012-04-23 DJ Delorie <dj@redhat.com>
15908 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
15909 (LIBSTDCXX): Change to CPP2.
15911 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
15914 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
15917 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
15919 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
15920 (*addsi_2_zext): Ditto.
15921 (*add<mode>_3): Ditto.
15922 (*addsi_3_zext): Ditto.
15923 (*add<mode>_5): Ditto.
15925 2012-04-23 Andrew Pinski <apinski@cavium.com>
15927 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
15928 (C & B) to (A OP0) & B.
15930 2012-04-23 Martin Jambor <mjambor@suse.cz>
15932 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
15933 temporaries created for a bitfield (reverting revision 122014).
15935 2012-04-23 Richard Guenther <rguenther@suse.de>
15937 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
15938 the condition using is_gimple_condexpr and avoid the not necessary
15940 (set_prologue_iterations): Likewise.
15941 (vect_loop_versioning): Likewise.
15943 2012-04-23 Richard Guenther <rguenther@suse.de>
15945 PR tree-optimization/53070
15946 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
15947 (main_tree_if_conversion): Verify we succeeded in that.
15949 2012-04-23 Jan Hubicka <jh@suse.cz>
15951 * lto-symtab.c (lto_cgraph_replace_node): Do not call
15952 mark_reahcable_node.
15953 * cgraph.c (cgraph_remove_node): Do not clear reachable.
15954 (cgraph_mark_reachable_node): Remove.
15955 (cgraph_mark_force_output_node): Do not set reachable.
15956 (dump_cgraph_node): Do not dump reachable.
15957 (cgraph_create_virtual_clone): Do not set reachable.
15958 * cgraph.h (cgraph_node): Remove reachable flag.
15959 (varpool_node): Remove reachable flag.
15960 (cgraph_mark_if_needed): Remove.
15961 (cgraph_mark_reachable_node): Remove.
15962 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
15963 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
15965 (cgraph_add_new_function): Likewise.
15966 (cgraph_mark_if_needed): Remove.
15967 (cgraph_analyze_function): Do not set target as reachable.
15968 (process_function_and_variable_attributes): Do not care about
15970 (cgraph_analyze_functions): Do not set reachable flags.
15971 (cgraph_mark_functions_to_output): Do not check reachability.
15972 (cgraph_copy_node_for_versioning): Do not set reachable flag.
15973 (dbxout_expand_expr): Update.
15974 * c-decl.c (merge_decls): Do not track changed externs.
15975 * ipa.c: Include pointer-set.h
15976 (enqueue_cgraph_node): Use reachable pointer set.
15977 (process_references): Likewise.
15978 (cgraph_remove_unreachable_nodes): Likewise.
15979 (whole_program_function_and_variable_visibility): Do not recompute
15981 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
15983 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
15985 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
15987 2012-04-23 Richard Guenther <rguenther@suse.de>
15990 * c-typeck.c (build_binary_op): Fix typo.
15992 2012-04-23 Jakub Jelinek <jakub@redhat.com>
15994 PR tree-optimizations/52891
15995 * tree-vect-patterns.c (adjust_bool_pattern): Use
15996 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
15997 but with non-standard precision.
15999 2012-04-22 Jan Hubicka <jh@suse.cz>
16001 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
16004 2012-04-22 Jan Hubicka <jh@suse.cz>
16006 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
16007 * cgraphbuild.c (record_reference, record_type_list, mark_address,
16008 mark_load, mark_store): Do not mark varpool nodes as needed.
16009 * cgraph.c (cgraph_new_nodes): Remove.
16010 (cgraph_create_function_alias): Do not mark nodes as reachable.
16011 (cgraph_add_thunk): Likewise.
16012 (cgraph_mark_reachable_node): Do not manage the queue.
16013 * cgraph.h (cgraph_node): Remove next_needed.
16014 (varpool_nodes_queue): Remove next_needed and prev_needed.
16015 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
16016 (cgraph_new_nodes): Declare.
16017 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
16018 (varpool_analyze_pending_decls): Remove.
16019 (varpool_analyze_node): New.
16020 (varpool_mark_needed_node): Remove.
16021 (varpool_first_variable, varpool_next_variable): New inlines.
16022 (varpool_first_static_initializer, varpool_next_static_initializer):
16024 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
16025 (varpool_first_defined_variable): New inline.
16026 (varpool_next_defined_variable): New inline
16027 (FOR_EACH_VARIABLE): Reimplement.
16028 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
16029 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
16031 * cgraphunit.c (cgraph_new_nodes): Declare here.
16032 (enqueue_node): New function.
16033 (cgraph_process_new_functions): update for new
16034 node set; when constructing cgraph enqueue node for processing.
16035 (cgraph_add_new_function): Use new node set.
16036 (process_function_and_variable_attributes): Do not set varpool needed
16038 (referred_to_p): New function.
16039 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
16040 when varpool is in construction.
16041 (cgraph_analyze_functions): Rewrite.
16042 (cgraph_expand_all_functions): Update.
16043 (cgraph_output_in_order): Do not analyze pending decls; do not set
16045 (cgraph_optimize): Do not analyze pending decls.
16046 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
16047 in other partition; do not mark node as needed.
16048 * dwarf2out.c (reference_to_unused): Use analyzed flag.
16049 (premark_types_used_by_global_vars_helper): Likewise.
16050 * ipa.c (process_references): Do not call varpool_mark_needed_node.
16051 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
16053 (function_and_variable_visibility): Do not mark node as needed.
16054 (whole_program_function_and_variable_visibility): Likewise.
16055 * Makefile.in (gt-varpool.h): No longer needed.
16056 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
16057 (ipa_write_summaries): Do not use needed flag.
16058 * varpool.c: Do not include gt-varpool.h
16059 (x_varpool_nodes_queue, x_varpool_last_needed_node,
16060 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
16061 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
16063 (varpool_remove_node): Do not update the lists.
16064 (dump_varpool_node): Do not dump needed flag.
16065 (varpool_enqueue_needed_node): Remove.
16066 (varpool_mark_needed_node): Remove.
16067 (varpool_reset_queue): Remove.
16068 (varpool_finalize_decl): Move to cgraphunit.c
16069 (varpool_analyze_node): New functions based on former
16070 varpool_analyze_pending_decls.
16071 (varpool_analyze_pending_decls): Remove.
16072 (varpool_assemble_decl): Do not update the lists.
16073 (enqueue_node): New function.
16074 (varpool_remove_unreferenced_decls): Rewrite.
16075 (varpool_empty_needed_queue): Remove.
16076 (add_new_static_var): Do not mark node as needed.
16077 (varpool_create_variable_alias): Handle expansion state
16079 * except.c (output_ttype): Do not mark node as needed.
16080 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
16081 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
16083 * tree-switch-conversion.c (build_one_array): Likewise.
16085 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
16088 * doc/invoke.texi (pedantic): Rename to Wpedantic.
16089 * common.opt (Wpedantic): New.
16090 (pedantic): Alias Wpedantic.
16091 * diagnostic.c (warning_at): Likewise.
16092 * c-decl.c (diagnose_mismatched_decls): Likewise.
16093 (build_array_declarator): Likewise.
16094 (mark_forward_parm_decls):
16095 (check_bitfield_type_and_width): Likewise.
16096 (grokdeclarator): Likewise.
16097 (grokfield): Likewise.
16098 (finish_struct): Likewise.
16099 (build_enumerator): Likewise.
16100 (store_parm_decls_oldstyle): Likewise.
16101 (declspecs_add_qual): Likewise.
16102 (declspecs_add_type): Likewise.
16103 (finish_declspecs): Likewise.
16104 * c-typeck.c (composite_type): Likewise.
16105 (comp_target_types): Likewise.
16106 (build_array_ref): Likewise.
16107 (pointer_diff): Likewise.
16108 (build_unary_op): Likewise.
16109 (build_conditional_expr): Likewise.
16110 (build_c_cast): Likewise.
16111 (convert_for_assignment): Likewise.
16112 (maybe_warn_string_init): Likewise.
16113 (digest_init): Likewise.
16114 (pop_init_level): Likewise.
16115 (set_init_index): Likewise.
16116 (c_finish_goto_label): Likewise.
16117 (c_finish_return): Likewise.
16118 (do_case): Likewise.
16119 (build_binary_op): Likewise.
16120 * c-parser.c (static): Likewise.
16121 (c_parser_external_declaration): Likewise.
16122 (c_parser_declaration_or_fndef): Likewise.
16123 (c_parser_static_assert_declaration_no_se): Likewise.
16124 (c_parser_enum_specifier): Likewise.
16125 (c_parser_struct_or_union_specifier): Likewise.
16126 (c_parser_struct_declaration): Likewise.
16127 (c_parser_alignas_specifier): Likewise.
16128 (c_parser_braced_init): Likewise.
16129 (c_parser_initelt): Likewise.
16130 (c_parser_compound_statement_nostart): Likewise.
16131 (c_parser_conditional_expression): Likewise.
16132 (c_parser_alignof_expression): Likewise.
16133 (c_parser_postfix_expression): Likewise.
16134 (c_parser_postfix_expression_after_paren_): Likewise.
16135 (c_parser_objc_class_instance_variables): Likewise.
16136 (c_parser_objc_method_definition): Likewise.
16137 (c_parser_objc_methodprotolist): Likewise.
16139 2012-04-22 Ian Lance Taylor <iant@google.com>
16141 * godump.c (go_output_typedef): Dump size of structs.
16143 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
16145 Correcting transform_to_exit_first_loop + fix to PR46886
16146 * tree-parloops.c (transform_to_exit_first_loop): Remove
16147 setting of number of iterations according to the loop pattern.
16148 Duplicate from entry to exit->src instead of loop->latch.
16149 (pallelize_loops): Remove the condition preventing do-while loops.
16150 * tree-cfg.c (bool bb_in_region_p): New.
16151 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
16152 Adjust redirection of the duplicated iteration.
16154 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
16157 * rtl.def (ADDRESS): Use "i" rather than "w".
16158 * rtl.h (find_base_term): Delete.
16159 (may_be_sp_based_p): Declare.
16160 * rtl.c (rtx_code_size): Remove ADDRESS special case.
16161 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
16162 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
16163 * alias.c: ...here.
16164 (find_base_term): Make static.
16165 (may_be_sp_based_p): New function.
16166 * dse.c (record_store): Use it.
16167 * store-motion.c (store_killed_in_insn): Likewise.
16169 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
16171 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
16173 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
16176 * c-typeck.c (inform_declaration): New.
16177 (build_function_call_vec): Do not pretty-print
16178 expressions when caret is enabled.
16179 (convert_arguments): Use inform_declaration.
16181 2012-04-20 Jim Meyering <meyering@redhat.com>
16183 * genmodes.c (make_complex_modes): Don't truncate a mode name of
16184 length 7 or more when prepending a "C". Suggested by Richard Guenther.
16186 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16188 PR rtl-optimization/44214
16189 * fold-const.c (exact_inverse): New function.
16190 (fold_binary_loc): Fold vector and complex division by constant into
16191 multiply by recripocal with flag_reciprocal_math; fold vector division
16192 by constant into multiply by reciprocal with exact inverse.
16194 2012-04-20 Jan Hubicka <jh@suse.cz>
16196 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
16198 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
16199 (cgraph_remove_node): Update.
16200 (cgraph_mark_needed_node): Remove.
16201 (cgraph_mark_force_output_node): New.
16202 (dump_cgraph_node): Do not dump needed flag.
16203 (cgraph_node_cannot_be_local_p_1): Update.
16204 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
16205 * cgraph.h (symtab_node_base): Add force_output flag.
16206 (cgraph_node): Remove needed flag.
16207 (varpool_node): Remove force_output flag.
16208 (cgraph_mark_needed_node): Remove.
16209 (cgraph_mark_force_output_node): New.
16210 (cgraph_only_called_directly_or_aliased_p,
16211 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
16212 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
16213 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
16214 (cgraph_add_new_function): Update.
16215 (cgraph_mark_if_needed): Update.
16216 (verify_cgraph_node): Update.
16217 (cgraph_analyze_function): Alias target is reachable.
16218 (process_function_and_variable_attributes): Update: externally_visible
16219 flag makes function reachable.
16220 (cgraph_analyze_functions): Update dumping.
16221 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16222 input_overwrite_node, input_varpool_node): Update streaming.
16223 * lto-streamer-out.c (produce_symtab): Use force_output.
16224 * ipa.c (process_references): Weakrefs must be processed.
16225 (cgraph_remove_unreachable_nodes): Likewise; update for new
16227 (varpool_externally_visible_p): Weakrefs are externally visible
16228 even if they are not.
16229 (function_and_variable_visibility): Update; when processing alias
16230 pair force the targets to be output.
16231 (whole_program_function_and_variable_visility): Use
16232 mark_reachable_node.
16233 * trans-mem.c (ipa_tm_mark_needed_node): Remove
16234 (ipa_tm_mark_force_output_node): New function.
16235 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
16236 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
16238 * varasm.c (mark_decl_referenced): Update.
16239 (find_decl_and_mark_needed): Remove.
16240 (find_decl): New function.
16241 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
16242 alias targets as needed.
16243 (dump_tm_clone_pairs): Update.
16244 * tree-inline.c (copy_bb): Update check.
16245 * symtab.c (dump_symtab_base): Dump force_output.
16246 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
16247 * passes.c (execute_todo): Fix dumping.
16248 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
16249 (varpool_analyze_pending_decls): Alias target is reachable.
16250 (varpool_create_variable_alias): Finalize weakrefs.
16252 2012-04-20 Jakub Jelinek <jakub@redhat.com>
16255 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
16256 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
16257 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
16258 macros instead of constants.
16259 * dse.c (record_store): Check for SP ADDRESS by comparing
16260 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
16261 XEXP to be stack_pointer_rtx.
16263 2012-04-20 Richard Guenther <rguenther@suse.de>
16265 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
16266 update_call_from_tree when propagating into a call.
16268 2012-04-20 Alan Modra <amodra@gmail.com>
16270 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
16271 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
16272 sp_offset to frame_off. Move world save code earlier.
16274 2012-04-20 Richard Guenther <rguenther@suse.de>
16276 PR tree-optimization/53050
16277 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
16278 Do only one transform on COND_EXPRs at the same time.
16280 2012-04-19 Jan Hubicka <jh@suse.cz>
16282 * symtab.c (dump_symtab_base): Revert accidental checkin.
16284 2012-04-20 Alan Modra <amodra@gmail.com>
16287 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
16288 static chain, set REST_INLINE_FPRS too.
16290 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
16292 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
16295 2012-04-20 Richard Guenther <rguenther@suse.de>
16297 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
16298 loops that can never run more often than the vectorization factor.
16300 2012-04-19 Jan Hubicka <jh@suse.cz>
16302 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
16304 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
16306 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
16308 2012-04-19 Jim Meyering <meyering@redhat.com>
16310 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
16311 We verified above that the string(including trailing NUL) fits in buf,
16312 so just use memcpy.
16314 2012-04-19 Richard Guenther <rguenther@suse.de>
16316 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
16317 for dumping DECL_SECTION_NAME.
16319 2012-04-19 Michael Matz <matz@suse.de>
16321 PR middle-end/52977
16322 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
16323 (struct tree_vector): Adjust GTY length.
16324 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
16326 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
16328 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
16329 caller emitted the length calulation already.
16330 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
16331 before handling any of the fields for structs.
16333 2012-04-19 Richard Guenther <rguenther@suse.de>
16335 PR tree-optimization/53031
16336 * tree-vrp.c (adjust_range_with_scev): Revert back to
16337 using max_loop_iterations.
16339 2012-04-19 Michael Matz <matz@suse.de>
16341 * diagnostic.c (emit_diagnostic): Move va_end call after user
16343 (warning, warning_at, pedwarn, permerror): Ditto.
16345 2012-04-19 Richard Guenther <rguenther@suse.de>
16347 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
16350 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
16353 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
16354 the case *(X+const).
16356 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16358 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
16360 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16363 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
16364 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
16366 2012-04-19 Richard Guenther <rguenther@suse.de>
16368 PR rtl-optimization/44688
16369 * loop-iv.c (determine_max_iter): Only return max_iter.
16370 (iv_number_of_iterations): Also use the recorded loop bound
16371 on the maximum number of iterations.
16372 * loop-unroll.c (decide_unroll_runtime_iterations): Use
16373 max_iter to avoid unrolling loops that do not roll.
16374 (decide_unroll_stupid): Likewise.
16376 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
16378 * targhooks.c (default_case_values_threshold): Fix code style nit.
16380 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
16381 case range and type folding from here...
16382 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
16383 type, as documented in tree.def.
16385 2012-04-18 Jan Hubicka <jh@suse.cz>
16387 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
16389 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
16390 cgraph hash and same comdat groups.
16391 (cgraph_optimize): Verify symbol table.
16392 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
16393 (dissolve_same_comdat_group_list): Work on symtab nodes.
16394 (function_and_variable_visibility): Dissolve variable same comdat group
16396 * symtab.c: Include timevar.h
16397 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
16399 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
16401 * tree-switch-conversion.c (info): Remove global pass info.
16402 (check_range, check_process_case, check_final_bb, create_temp_arrays,
16403 free_temp_arrays, gather_default_values, build_constructors,
16404 array_value_type, build_one_array, build_arrays, gen_def_assigns,
16405 fix_phi_nodes, gen_inbound_check): Pass info around from ...
16406 (process_switch): ... here. Unify message format. Return a const
16407 char pointer to the failure reason message.
16408 (do_switchconv): Unify message format. Update process_switch usage.
16410 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
16411 * tree-cfg.c (edge_to_cases): Fix documentation.
16413 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
16415 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
16417 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16419 PR tree-optimization/52976
16420 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
16421 (possibly_move_powi): New function.
16422 (rewrite_expr_tree): Call possibly_move_powi.
16423 (rewrite_expr_tree_parallel): Likewise.
16424 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
16425 call add_to_ops_vec instead.
16427 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16429 PR tree-optimization/52976
16430 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
16431 (decrement_power): Likewise.
16432 (propagate_op_to_single_use): Likewise.
16433 (zero_one_operation): Handle __builtin_pow* calls in linearized
16434 expression trees; factor logic into propagate_op_to_single_use.
16435 (undistribute_ops_list): Allow operands with repeat counts > 1.
16437 2012-04-18 Richard Guenther <rguenther@suse.de>
16439 PR tree-optimization/44688
16440 * cfgloop.h (record_niter_bound): Declare.
16441 * tree-ssa-loop-niter.c (record_niter_bound): Export.
16442 Update the estimation with the upper bound here...
16443 (estimate_numbers_of_iterations_loop): ... instead of here.
16444 Do not forcefully reset a recorded upper bound.
16445 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
16446 Record the maximum number of loop iterations of the prologue loop.
16448 2012-04-18 Jan Hubicka <jh@suse.cz>
16450 * lto-symtab.c (lto_cgraph_replace_node): Update.
16451 * cgraphbuild.c (record_reference, record_type_list,
16452 record_eh_tables, mark_address, mark_load, mark_store): Update.
16453 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
16454 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
16456 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
16457 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
16458 * reload.c: Fix typo in comment.
16459 * rtlanal.c: Likewise.
16460 * tree-emultls.c (gen_emutls_addr): Update.
16461 * ipa-reference.c (analyze_function): Update.
16462 * cgraphunit.c (cgraph_analyze_function,
16463 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
16465 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
16466 (ipa_remove_reference): Likewise.
16467 (ipa_remove_all_refering): Rename to ...
16468 (ipa_remove_all_referring): ... this one; update.
16469 (ipa_dump_references): Update.
16470 (ipa_dump_referring): Update.
16471 (ipa_clone_references): Update.
16472 (ipa_clone_refering): Rename to ...
16473 (ipa_clone_referring): ... this one; update.
16474 (ipa_ref_cannot_lead_to_return): Update.
16475 (ipa_ref_has_aliases_p): Update.
16476 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
16478 (ipa_ref_type): Remove.
16479 (ipa_ref_ptr_u): Remove.
16480 (ipa_ref): Remove referencing, refered, refered_index, refering_type
16481 and refered_type; add referring, referred and referred_index.
16482 (ipa_ref_list): Rename refering to referring.
16483 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
16484 ipa_clone_references, ipa_clone_referring): Update prototypes.
16485 * lto-cgraph.c (referenced_from_other_partition_p): Update.
16486 (lto_output_ref): Update.
16487 (add_references): Update.
16488 (input_varpool_node): Update.
16489 (input_refs): Update.
16490 * ipa-ref-inline.h (ipa_ref_node): Update.
16491 (ipa_ref_varpool_node): Update.
16492 (ipa_ref_referring_node): Update.
16493 (ipa_ref_referring_varpool_node): Update.
16494 (ipa_ref_referring_ref_list): Update.
16495 (ipa_ref_referred_ref_list): Update.
16496 (ipa_ref_list_first_referring): Update.
16497 (ipa_empty_ref_list): Update.
16498 (ipa_ref_list_refering_iterate): Rename to ...
16499 (ipa_ref_list_referring_iterate): ... this one.
16500 * cse.c: Update comment.
16501 * ipa-utils.c (ipa_reverse_postorder): Update.
16502 * tree-ssa-alias.c: Update.
16503 * ipa-inline.c (reset_edge_caches): Update.
16504 (update_caller_keys): Update.
16505 * ipa-inline.h: Update comments.
16506 * jump.c: Update comment.
16507 * alias.c: Likewise.
16508 * ipa.c (process_references): Update.
16509 (cgraph_remove_unreachable_nodes): Likewise.
16510 (ipa_discover_readonly_nonaddressable_var): Likewise.
16511 (cgraph_address_taken_from_non_vtable_p): Likewise.
16512 * trans-mem.c (ipa_tm_execute): Update.
16513 * simplify-rtx.c: Fix comment.
16514 * rtl.c: Fix comment.
16515 * symtab.c (symtab_unregister_node): Update.
16516 * varpool.c (dump_varpool_node): Update.
16517 (varpool_analyze_pending_decls): Update.
16518 (assemble_aliases): Update.
16519 (varpool_for_node_and_aliases): Update.
16521 2012-04-18 Richard Guenther <rguenther@suse.de>
16523 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
16524 use_undefined_p parameter.
16525 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
16526 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
16528 (estimate_numbers_of_iterations): Likewise.
16529 (estimated_loop_iterations): Adjust.
16530 (max_loop_iterations): Likewise.
16531 (scev_probably_wraps_p): Likewise.
16532 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
16533 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
16534 not max_loop_iterations.
16535 (execute_vrp): Remove explicit number of iterations estimation.
16537 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
16539 * config/i386/linux-common.h: New.
16541 * config.gcc: Add i386/linux-common.h before
16542 all i386/linux.h and i386/linux64.h usages.
16544 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
16545 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
16546 * config/i386/gnu-user64.h: Likewise.
16548 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
16549 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
16550 (GNU_USER_TARGET_MATHFILE_SPEC): New.
16551 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
16553 2012-04-18 Jan Hubicka <jh@suse.cz>
16555 * cgraph.c (cgraph_node_name): Remove.
16556 (dump_cgraph_node): Use dump_symtab_base; reformat.
16557 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
16558 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
16560 (cgraph_node_name, varpool_node_name): Remove.
16561 (cgraph_node_asm_name, varpool_node_asm_name,
16562 cgraph_node_name, varpool_node_name): New.
16563 * tree-pass.h (TODO_dump_cgraph): Rename to ...
16564 (TODO_dump_symtab): ... this one.
16565 * ipa-cp (pass_ipa_cp): Update.
16566 * ia-reference.c (generate_summary, read_write_all_from_decl,
16567 propagate, ipa_reference_read_optimization_summary): Update.
16568 * cgraphunit.c (cgraph_analyze_functions): Update.
16569 (cgraph_optimize): Update.
16570 * ipa-ref.c (ipa_dump_references): Update.
16571 (ipa_dump_refering): Update.
16572 * ipa-inline.c (pass_ipa_inline): Update.
16573 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
16574 * ipa.c (pass_ipa_function_visibility,
16575 pass_ipa_whole_program_visibility): Update.
16576 * tree-sra.c (pass_early_ipa_sra): Update.
16577 * symtab.c: Include langhooks.h
16578 (symtab_node_asm_name): New.
16579 (symtab_node_name): New.
16580 (symtab_type_names): New static var.
16581 (dump_symtab_base): New.
16582 (dump_symtab_node, dump_symtab): New.
16583 (debug_symtab_node, debug_symtab): New.
16584 * tree-ssa-structalias.c: Dump symbol table.
16585 * pases.c (execute_todo): Handle TODO_dump_symtab instead
16586 of TODO_dump_cgraph.
16587 * varpoo.c (varpool_node_name): Remove.
16588 (dump_varpool_node): Use dump_symtab_base; reformat.
16590 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
16592 * doc/invoke.texi (Language Independent Options): @item should be
16595 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
16598 * rtl.c (rtx_code_size): Handle ADDRESS.
16600 2012-04-17 Tom de Vries <tom@codesourcery.com>
16602 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
16603 is not a STMT_LIST.
16605 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
16608 * config/i386/sync.md (atomic_<code><mode>): Rename to
16609 atomic_<logic><mode>.
16611 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
16613 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
16614 * alias.c (reg_base_value): Expand and update comment.
16615 (arg_base_value): New variable.
16616 (unique_id): Move up file.
16617 (unique_base_value, unique_base_value_p, known_base_value_p): New.
16618 (find_base_value): Use arg_base_value and known_base_value_p.
16619 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
16620 (find_base_term): Use known_base_value_p.
16621 (base_alias_check): Use unique_base_value_p.
16622 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
16623 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
16625 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
16627 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
16629 2012-04-17 Michael Matz <matz@suse.de>
16631 PR tree-optimization/18437
16632 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
16633 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
16634 (vect_check_strided_load): Declare.
16635 * tree-vect-data-refs.c (vect_check_strided_load): New function.
16636 (vect_analyze_data_refs): Use it to accept strided loads.
16637 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
16639 2012-04-17 Richard Guenther <rguenther@suse.de>
16641 PR middle-end/53011
16642 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
16643 loops when redirecting an entry or latch edge.
16645 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
16647 * sel-sched.c (sel_global_init): Revert previous change.
16649 2012-04-17 Richard Guenther <rguenther@suse.de>
16651 * tree-flow.h (array_at_struct_end_p): Move declaration ...
16652 * tree.h (array_at_struct_end_p): ... here.
16653 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
16654 * expr.c (array_at_struct_end_p): ... here. Rewrite.
16656 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
16658 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
16659 COST_TABLE): Remove.
16660 (estimate_case_costs): Remove.
16661 (expand_case): Do not call estimate_case_costs
16662 to set use_cost_table.
16663 (balance_case_nodes): Do not use use_cost_table.
16665 2012-04-16 Jan Hubicka <jh@suse.cz>
16667 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
16668 (hash_node, eq_node): Remove.
16669 (cgraph_create_node): Do not handle hashtable.
16670 (cgraph_get_node): Remove.
16671 (cgraph_insert_node_to_hashtable): Remove.
16672 (hash_node_by_assembler_name): Remove.
16673 (eq_assembler_name): Remove.
16674 (cgraph_node_for_asm): Rewrite.
16675 (cgraph_find_replacement_node): Break out from ...
16676 (cgraph_remove_node): ... here; do not maintain hashtables.
16677 (change_decl_assembler_name): Remove.
16678 (cgraph_clone_node): Do not maintain hashtables.
16679 * cgraph.h (const_symtab_node): New typedef.
16680 (cgraph_insert_node_to_hashtable): Remove.
16681 (symtab_get_node, symtab_node_for_asm,
16682 symtab_insert_node_to_hashtable): Declare.
16683 (cgraph_find_replacement_node): Declare.
16684 (cgraph_get_node, varpool_get_node): Turn into inlines.
16685 (cgraph, varpool): Work sanely on NULL pointers.
16686 (FOR_EACH_SYMBOL): New walker.
16687 * ipa-inline-transform.c (save_inline_function_body): Use
16688 symtab_insert_node_to_hashtable.
16689 * symtab.c: Include ggc.h and diagnostics.h
16690 (symtab_hash, assembler_name_hash): New static vars;
16691 (hash_node, eq_node, hash_node_by_assembler_name,
16692 eq_assembler_name, insert_to_assembler_name_hash,
16693 unlink_from_assembler_name_hash): New.
16694 (symtab_register_node): Update hashtables.
16695 (symtab_insert_node_to_hashtable): New.
16696 (symtab_unregister_node): Update hashtables.
16697 (symtab_get_node): New.
16698 (symtab_node_for_asm): New.
16699 (change_decl_assembler_name): New.
16700 * Makefile.in (symtab.o): Needs GTY.
16701 * varpool.c (varpool_hash): Remove.
16702 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
16703 (varpool_node): Rewrite using varpool_get_node.
16704 (varpool_remove_node): DO not maintain hashtables.
16705 (varpool_node_for_asm): Rewrite.
16707 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
16709 * doc/invoke.texi: Copy-edit to put verbs in the present tense
16710 when describing the current behavior of GCC.
16712 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
16714 * genemit.c (gen_exp): Remove ADDRESS handling.
16715 * genoutput.c (scan_operands): Likewise.
16716 * genpeep.c (match_rtx): Likewise.
16717 * genrecog.c (add_to_sequence): Likewise.
16719 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
16721 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
16723 2012-04-16 Martin Jambor <mjambor@suse.cz>
16725 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
16728 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
16731 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
16732 hints for 'A' operand types.
16734 2012-04-16 Jan Hubicka <jh@suse.cz>
16736 * cgraph.h (symtab_node_base): Add next and previous pointers.
16737 (cgraph_node): Remove next and preivous pointers.
16738 (varpool_node): Likewise; remove next/previous GTY marker;
16739 it is not type safe.
16740 (symtab_node_def): Update GTY marker
16741 (x_cgraph_nodes, cgraph_nodes): Remove.
16742 (symtab_nodes): New function.
16743 (cgraph_order): Rename to ...
16744 (symtab_order): ... this one.
16745 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
16747 (x_varpool_nodes, varpool_nodes): Remove.
16748 (FOR_EACH_STATIC_VARIABLE): Update.
16749 (symtab_function_p, symtab_variable_p): New function.
16750 (FOR_EACH_VARIABLE): Update.
16751 (varpool_first_variable, varpool_next_variable): New functions.
16752 (FOR_EACH_VARIABLE): Update.
16753 (cgraph_first_defined_function): Update.
16754 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
16755 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
16756 (cgraph_first_function, cgraph_next_function): New.
16757 (FOR_EACH_FUNCTION): Update.
16758 (cgraph_first_function_with_gimple_body,
16759 cgraph_next_function_with_gimple_body): Update.
16760 * symtab.c: New file.
16761 * cgraph.c: Update copyright dates.
16762 (x_cgraph_nodes, cgraph_order): Remove.
16763 (NEXT_FREE_NODE): Update.
16764 (SET_NEXT_FREE_NODE): New.
16765 (cgraph_create_node_1): Remove common code.
16766 (cgraph_create_node): Remove common code; call symtab_register_node.
16767 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
16768 (cgraph_add_asm_node): Update.
16769 (cgraph_clone_node): Register new node.
16770 * cgraphunit.c (process_function_and_variable_attributes): Update.
16771 (cgraph_analyze_functions): Update.
16772 (cgraph_analyze_functions): Update.
16773 (cgraph_output_in_order): Update.
16774 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
16776 * ipa-inline.c (recursive_inlining): Update.
16777 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
16778 * ipa.c (cgraph_remove_unreachable_nodes): Update.
16779 * Makefile.in: Add symtab.o
16780 * varpool.c (x_varpool_nodes): Remove
16781 (varpool_node): Remove common code; call symtab_register_node.
16782 (varpool_remove_node): Remove common code; call symtab_unregister_node.
16784 2012-04-16 Richard Guenther <rguenther@suse.de>
16786 PR middle-end/52977
16787 * tree.h (VECTOR_CST_NELTS): Adjust.
16788 (struct tree_vector): Add explicit length field.
16789 (make_vector_stat): Declare.
16790 (make_vector): Define.
16791 * tree.c (make_vector_stat): New function.
16792 (build_vector_stat): Use it.
16793 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
16795 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16797 PR tree-optimization/52976
16798 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
16799 (undistribute_ops_list): Ops with repeat counts aren't eligible for
16801 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
16803 2012-04-16 Jan Hubicka <jh@suse.cz>
16805 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
16807 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
16808 walkers to walk cgraph and varpool.
16809 * cgraph.c (cgraph_node_for_asm): Likewise.
16810 (dump_cgraph): Likewise.
16811 * value-prof.c (init_node_map): Likewise.
16812 * tree.c (free_lang_data_in_cgraph): Likewise.
16813 * tree-emutls.c: (ipa_lower_emutls): Likewise.
16814 * ipa-reference.c (generate_summary, propagate): Likewise.
16815 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
16816 cgraph_mark_functions_to_output, cgraph_output_in_order,
16817 output_weakrefs, cgraph_materialize_all_clones,
16818 cgraph_optimize): Likewise.
16819 * lto-cgraph.c (merge_profile_summaries): Likewise.
16820 (input_cgraph): Likewise.
16821 * ipa-pure-const.c (generate_summary): Likewise.
16822 (propagate): Likwise.
16823 * ipa-utils.c (ipa_reduced_postorder): Likewise.
16824 (ipa_free_postorder_info): Likewise.
16825 (ipa_reverse_postorder): Likewise.
16826 * ipa-inline.c (ipa_inline): Likewise.
16827 * matrix-reorg.c (find_matrices_decl): Likewise.
16828 (matrix_reorg): Likewise.
16829 * tree-vectorizer.c (increase_alignment): Likewise.
16830 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
16831 (function_and_variable_visibility): Likewise.
16832 (whole_program_function_and_variable_visibility): Likewise.
16833 (ipa_cdtor_merge): Likewise.
16834 * trans-mem.c (ipa_tm_execute): Likewise.
16835 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
16836 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
16837 (ipa_print_all_params): Likewise.
16838 (ipa_update_after_lto_read): Likewise.
16839 * tree-profie.c (tree_profiling): Likewise.
16840 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
16841 * passes.c (dump_passes): Likewise.
16842 (do_per_function): Likewise.
16843 (ipa_write_summaries): Likewise.
16844 * varpool.c (dump_varpool): Likewise.
16845 (varpool_node_for_asm): Likewise.
16846 (varpool_assemble_pending_decls): Likewise.
16848 2012-04-16 Richard Guenther <rguenther@suse.de>
16850 PR tree-optimization/52975
16851 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
16852 condition but always mark it with TRUTH_NOT_EXPR.
16854 2012-04-16 Richard Guenther <rguenther@suse.de>
16856 PR tree-optimization/52975
16857 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
16858 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
16859 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
16860 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
16862 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
16864 * config/i386/sse.md (ssse3_plusminus): New code iterator.
16865 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
16866 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
16867 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
16868 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
16869 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
16870 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
16872 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
16873 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
16874 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
16875 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
16876 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
16877 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
16879 (xop_plus): New code iterator.
16880 (macs): New code attribute.
16882 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
16883 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
16885 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
16886 xop_plus code iterator.
16887 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
16888 xop_plus code iterator.
16889 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
16890 xop_plus code iterator.
16891 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
16892 xop_plus code iterator.
16894 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
16895 any_extend code iterator.
16896 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
16897 any_extend code iterator.
16898 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
16899 any_extend code iterator.
16900 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
16901 any_extend code iterator.
16902 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
16903 any_extend code iterator.
16904 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
16905 any_extend code iterator.
16907 2012-04-14 Tom de Vries <tom@codesourcery.com>
16909 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
16910 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
16911 DELETED_LABEL note, and move it to ...
16912 * cfgrtl.c (delete_insn): ... here. Change return type to void.
16913 (delete_insn_and_edges): Likewise.
16914 (delete_insn_chain): Handle new return type of delete_insn. Delete
16915 chain backwards rather than forwards.
16916 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
16918 * cfglayout.c (fixup_reorder_chain): Delete unused label.
16920 2012-04-14 Jan Hubicka <jh@suse.cz>
16922 * cgraph.h: Update copyrights;
16923 (symtab_node): Turn to union typedef.
16924 (symtab_node_base): New structure.
16925 (symtab_type): Add SYMTAB_SYMBOL tag.
16926 (cgraph_node): Annotate some pinters with nested_ptr.
16927 (varpool_node): Likewise.
16928 (cgraph_local_info): Remove lto_file_data
16929 and externally_visible.
16930 (cgraph_node): Remove decl; same_comdat_group list;
16931 aux; ref_list; order; address_taken; reachable_from_other_parittion,
16932 in_other_partition; resolution.
16933 (varpool_node): Remove decl; same_comdat_group;
16934 ref_list; lto_file_data; aux; order; resolution; externally_visible;
16935 used_from_other_partition; in_other_partition.
16936 (symtab_node_def): New union.
16937 (cgraph, varpool): Update.
16938 (varpool_first_static_initializer, varpool_next_static_initializer,
16939 cgraph_only_called_directly_or_aliased_p,
16940 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
16941 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
16942 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
16944 * cgraph.c: Likewise.
16945 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
16946 * cgraphbuild.c: Likewise.
16947 * lto-symtab.c: Likewise.
16948 * c-gimplify.c: Likewise.
16949 * value-prof.c: Likewise.
16950 * tree.c: Likewise.
16951 * ipa-cp.c: Likewise.
16952 * tree-emutls.c: Likewise.
16953 * ipa-inline-transform.c: Likwise.
16954 * ipa-reference.c: Likewise.
16955 * cgraphunit.c: Likewise.
16956 * ipa-ref.c: Likewise.
16957 * lto-cgraph.c: Likewise.
16958 * ipa-ref-inline.h: Likewise.
16959 * ipa-pure-const.c: Likewise.
16960 * lto-streamer-out.c: Likewise.
16961 * ipa-utils.c: Likewise.
16962 * ipa-inline.c: Likewise.
16963 * matrix-reorg.c: Likewise.
16964 * tree-eh.c: Likewise.
16965 * tree-vectorizer.c: Likewise.
16966 * ipa-split.c: Likewise.
16968 * trans-mem.c: Likewise.
16969 * ipa-inline-analysis.c: Likewise.
16970 * gimplify.c: Likewise.
16971 * cfgexpand.c: Likewise.
16972 * tree-sra.c: Likewise.
16973 * ipa-prop.c: Likewise.
16974 * varasm.c: Likewise.
16975 * tree-nested.c: Likewise.
16976 * tree-inline.c: Likewise.
16977 * tree-profile.c: Likewise.
16978 * tree-ssa-structalias.c: Likewise.
16979 * passes.c: Likewise.
16980 * varpool.c: Likewise.
16982 2012-04-14 Tom de Vries <tom@codesourcery.com>
16984 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
16985 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
16986 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
16988 (gsi_advance_fw_nondebug_nonlocal): New function.
16989 (local_def): Removed function.
16990 (same_succ_hash): Use stmt_local_def.
16991 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
16992 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
16994 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
16996 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
16997 and __ILP32__ for x32.
16999 2012-04-13 Martin Jambor <mjambor@suse.cz>
17001 PR middle-end/52939
17002 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
17003 fold_ctor_reference returns a zero constant.
17005 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
17007 * config.gcc: Add i386/gnu-user-common.h before all
17008 i386/gnu-user.h and i386/gnu-user64.h usages.
17010 * config/i386/gnu-user-common.h: New.
17012 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
17013 (CC1_SPEC): Likewise.
17014 (ENDFILE_SPEC): Likewise.
17015 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
17016 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
17017 (TARGET_OS_CPP_BUILTINS): Likewise.
17018 (LIBGCC2_HAS_TF_MODE): Likewise.
17019 (LIBGCC2_TF_CEXT): Likewise.
17020 (TF_SIZE): Likewise.
17021 (TARGET_ASM_FILE_END): Likewise.
17022 (STACK_CHECK_MOVING_SP): Likewise.
17023 (STACK_CHECK_STATIC_BUILTIN): Likewise.
17024 * config/i386/gnu-user64.h: Likewise.
17026 2012-04-13 Martin Jambor <mjambor@suse.cz>
17028 * expr.c (expand_expr_real_1): Pass type, not the expression, to
17029 set_mem_attributes for a memory temporary. Do not call the function
17030 for the memory temporary created for a bitfield.
17032 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
17035 * df.h (enum debug_temp_where): New.
17036 (dead_debug_init, dead_debug_finish) Declare.
17037 (dead_debug_add, dead_debug_insert_temp): Declare.
17038 (struct dead_debug_use, struct dead_debug): Moved from...
17039 * df-problems.c: ... here.
17040 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
17042 (df_create_unused_note): Likewise.
17043 (df_set_dead_notes_for_mw): Move comment where it belongs.
17044 (dead_debug_init): Export.
17045 (dead_debug_reset_uses): New, factored out of...
17046 (dead_debug_finish): ...this. Export.
17047 (dead_debug_reset): Remove.
17048 (dead_debug_add): Export.
17049 (dead_debug_insert_before): Rename to...
17050 (dead_debug_insert_temp): ... this. Add where argument. Export.
17051 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
17052 Return insertion count.
17053 (df_note_bb_compute): Adjust.
17054 * dce.c (word_dce_process_block): Adjust dead debug uses.
17055 (dce_process_block): Likewise.
17057 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
17059 * df-problems.c (df_note_bb_compute): Do not take note of
17060 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
17062 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
17065 * var-tracking.c (expand_depth): New type.
17066 (onepart_aux, expand_loc_callback_data): Change depth type to it.
17067 (loc_exp_dep_alloc): Adjust initializer.
17068 (update_depth): Use new type. Add entryvals.
17069 (vt_expand_var_loc_chain): Take note of expansions with
17070 ENTRY_VALUEs, but don't accept them right away. Run an optional
17071 second pass accepting the minimum ENTRY_VALUE count found in the
17073 (vt_expand_loc_callback, INIT_ELCD): Adjust.
17075 2012-04-13 Tom de Vries <tom@codesourcery.com>
17077 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
17078 parameters vuse and vuse_escaped.
17079 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
17080 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
17083 2012-04-13 Richard Guenther <rguenther@suse.de>
17085 PR tree-optimization/52969
17086 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
17087 the condition for the COND_EXPR and handle predicate negation
17088 by swapping the COND_EXPR arms.
17090 2012-04-13 Nick Clifton <nickc@redhat.com>
17092 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
17093 TODO_dump_func flag.
17095 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
17097 PR rtl-optimization/52203
17098 PR rtl-optimization/52715
17100 Revert the 2012-03-07 fix for PR 52203.
17101 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
17102 the insn does not modify DFA right before issuing, adjust
17103 issue_rate accordingly.
17105 2012-04-13 Richard Guenther <rguenther@suse.de>
17108 * c-typeck.c (pointer_diff): Remove bogus assert.
17110 2012-04-13 Richard Guenther <rguenther@suse.de>
17113 * convert.c (convert_to_pointer): Remove special-casing of zero.
17115 2012-04-13 Joey Ye <joey.ye@arm.com>
17117 * config/arm/constraints.md (Pe): New constraint.
17118 * config/arm/arm.md: New split for imm 256-510.
17120 2012-04-13 Terry Guo <terry.guo@arm.com>
17122 * config/arm/arm-cores.def: Added core cortex-m0plus.
17123 * config/arm/arm-tune.md: Regenerated.
17124 * config/arm/arm-tables.opt: Regenerated.
17125 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
17127 2012-04-13 Alan Modra <amodra@gmail.com>
17130 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
17131 tie regs on destination of sets. Delete forward declaration.
17132 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
17133 (rs6000_emit_prologue): Likewise.
17134 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
17136 (is_mem_ref): Use tie_operand to recognise stack ties.
17137 * config/rs6000/predicates.md (tie_operand): New.
17138 * config/rs6000/rs6000.md (restore_stack_block): Generate new
17140 (restore_stack_nonlocal): Likewise.
17141 (stack_tie): Update.
17142 (frame_tie): Delete.
17144 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17146 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
17147 HOST_WIDE_INT_PRINT_DEC in format strings.
17149 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
17152 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
17153 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
17154 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
17155 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
17156 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
17157 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
17158 avx2_permvarv8si using VI4F_256 mode iterator.
17159 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
17160 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
17161 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
17162 gen_avx2_permvarv8sf.
17163 (expand_vec_perm_pshufb): Ditto.
17165 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17168 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
17169 the list of options to enable the FCFID instruction.
17170 (TARGET_EXTRA_BUILTINS): Adjust comment.
17172 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17174 PR tree-optimization/18589
17175 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
17176 (operand_entry): Add count field.
17177 (add_repeat_to_ops_vec): New function.
17178 (completely_remove_stmt): Likewise.
17179 (remove_def_if_absorbed_call): Likewise.
17180 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
17181 (acceptable_pow_call): New function.
17182 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
17183 entries with repeat counts when found.
17184 (repeat_factor_d): New struct and associated typedefs.
17185 (repeat_factor_vec): New static vector variable.
17186 (compare_repeat_factors): New function.
17187 (get_reassoc_pow_ssa_name): Likewise.
17188 (attempt_builtin_powi): Likewise.
17189 (reassociate_bb): Call attempt_builtin_powi.
17190 (fini_reassoc): Two new calls to statistics_counter_event.
17192 2012-04-12 Richard Guenther <rguenther@suse.de>
17194 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
17195 * cgraph.h (tree_rest_of_compilation): Remove.
17196 * cgraph.c (cgraph_add_new_function): Move ...
17197 * cgraphunit.c (cgraph_add_new_function): ... here.
17198 (tree_rest_of_compilation): Make static.
17199 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
17200 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
17201 gate_all_early_local_passes, execute_all_early_local_passes,
17202 pass_early_local_passes, gate_all_early_optimizations,
17203 pass_all_early_optimizations): Move ...
17204 * passes.c (gate_all_optimizations, pass_all_optimizations,
17205 gate_all_early_local_passes, execute_all_early_local_passes,
17206 pass_early_local_passes, gate_all_early_optimizations,
17207 pass_all_early_optimizations): ... here.
17208 * tree-optimize.c (execute_free_datastructures): Remove.
17209 * tree-flow.h (execute_free_datastructures): Remove.
17210 * tree-optimize.c (execute_init_datastructures,
17211 pass_init_datastructures): Move ...
17212 * tree-ssa.c (execute_init_datastructures,
17213 pass_init_datastructures): ... here.
17214 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
17215 execute_free_datastructures.
17217 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
17219 * dbgcnt.def (ira_move): New counter.
17220 * ira-int.h (ira_create_new_reg): Declare function.
17221 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
17222 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
17223 no longer static. All callers changed.
17224 * ira.c: Include "dbgcnt.h".
17225 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
17226 move_unallocated_pseudos): New static functions.
17227 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
17228 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
17229 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
17230 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
17231 to the pseudos generated in find_moveable_pseudos.
17232 * Makefile.in (ira.o): Add $(DBGCNT_H).
17234 2012-04-12 Richard Guenther <rguenther@suse.de>
17236 PR tree-optimization/52943
17237 * tree-chrec.h (chrec_is_positive): Remove.
17238 * tree-scalar-evolution.c (chrec_is_positive): Move ...
17239 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
17240 Return false for a constant zero instead of negative.
17241 (analyze_siv_subscript_cst_affine): Handle zero difference
17242 in the initial condition explicitely.
17244 2012-04-12 Richard Guenther <rguenther@suse.de>
17246 * tree-parloops.c (parallelize_loops): Also consult the upper
17247 bound for the number of iterations.
17248 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
17249 (loop_prefetch_arrays): Likewise.
17251 2012-04-12 Richard Guenther <rguenther@suse.de>
17253 * cfgloop.h (estimated_loop_iterations_int): Ditch
17254 'conservative' parameter.
17255 (max_stmt_executions_int): Likewise.
17256 (estimated_loop_iterations): Likewise.
17257 (max_stmt_executions): Likewise.
17258 (max_loop_iterations): Declare.
17259 (max_loop_iterations_int): Likewise.
17260 (estimated_stmt_executions): Likewise.
17261 (estimated_stmt_executions_int): Likewise.
17262 * tree-ssa-loop-niter.c (estimated_loop_iterations):
17264 (max_loop_iterations): ... this.
17265 (estimated_loop_iterations_int): Split parts to ...
17266 (max_loop_iterations_int): ... this.
17267 (max_stmt_executions_int): Split parts to ...
17268 (estimated_stmt_executions_int): ... this.
17269 (max_stmt_executions): Split parts to ...
17270 (estimated_stmt_executions): ... this.
17271 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
17272 * predict.c (predict_loops): Likewise.
17273 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
17274 (analyze_siv_subscript_cst_affine): Likewise.
17275 (compute_overlap_steps_for_affine_1_2): Likewise.
17276 (analyze_subscript_affine_affine): Likewise.
17277 (init_omega_for_ddr_1): Likewise.
17278 * tree-parloops.c (parallelize_loops): Likewise.
17279 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
17280 (may_eliminate_iv): Likewise.
17281 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
17282 (loop_prefetch_arrays): Likewise.
17283 * tree-vrp.c (adjust_range_with_scev): Likewise.
17285 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
17287 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
17288 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
17290 (dump_table): Use bool type for need_align and have_df variables.
17291 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
17292 (regs_used): Remove register modifier.
17293 (barrier_align): Move variables slot, credit, jump_to_next
17294 into if block above for loop. Use bool type for jump_to_next.
17295 (sh_function_arg): Use NULL_RTX instead of 0.
17297 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
17299 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
17300 (bswapsi2): New expander.
17302 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
17304 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
17305 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
17307 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
17309 PR rtl-optimization/52876
17310 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
17311 Don't call mark_reg_pointer for incompatible pointer sign extension.
17313 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
17316 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
17318 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
17319 comparisons against TYPE_PRECISION.
17320 * tree-ssa-forwprop.c (combine_conversions): Likewise.
17322 2012-04-11 Xinliang David Li <davidxl@google.com>
17324 * tree-passes.h: Remove TODO_dump_func.
17325 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
17326 * trans-mem.c: Remove TODO_dump_func.
17327 * ira.c: Remove TODO_dump_func.
17329 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
17331 * config/i386/i386.c (ix86_option_override_internal): Check
17332 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
17333 after TARGET_64BIT is updated.
17335 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
17337 * config/sh/sh.h: Remove old secondary reload code.
17339 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
17341 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
17342 (ready_reorder): ... this function.
17344 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
17346 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
17349 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
17350 insns so that no other insn is queued for a time before them.
17352 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
17355 2012-04-11 Richard Guenther <rguenther@suse.de>
17357 PR middle-end/52621
17358 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
17359 consider loop nesting.
17360 (evolution_function_is_univariate_p): Properly check the remainder
17363 2012-04-11 Richard Guenther <rguenther@suse.de>
17365 PR middle-end/52918
17366 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
17368 2012-04-11 Nick Clifton <nickc@redhat.com>
17370 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
17371 information, if requested.
17373 * config/rx/rx.c (rx_expand_prologue): Likewise.
17375 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
17376 Michael Matz <matz@suse.de>
17379 * rtlanal.c (unsigned_reg_p): New function.
17380 Update copyright notice dates.
17381 * rtl.h (unsigned_reg_p): Prototype it.
17382 Update copyright notice dates.
17383 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
17385 * expr.c (expand_expr_real_1): Set register attributes.
17386 * stmt.c (expand_case): Likewise.
17388 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
17391 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
17392 consider_sh2a and allow_zero.
17393 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
17394 (disp_addr_displacement): New function.
17395 (sh_address_cost): Use disp_addr_displacement function instead
17396 of DISP_ADDR_OFFSET.
17397 (sh_legitimate_address_p): Adapt to changed
17398 sh_legitimate_index_p declaration.
17399 (sh_find_mov_disp_adjust): Remove HImode check.
17400 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
17401 disp_addr_displacement and max_mov_insn_displacement.
17402 (max_mov_insn_displacement): Remove HImode check.
17403 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
17404 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
17405 * config/sh/constraints.md (K05, K13): New constraints.
17406 (K12): Correct comment.
17407 (Sdd): Do not use DISP_ADDR_P macro.
17408 (Snd, Sbw): Use satisfies_constraint_Sdd.
17409 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
17410 (*extendhisi2_compact, movhi_i): Remove.
17411 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
17412 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
17413 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
17414 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
17415 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
17416 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
17417 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
17419 Add new peepholes for HImode displacement addressing.
17421 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
17423 * config/sh/sh.h (SIDI_OFF): Remove.
17424 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
17425 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
17426 or operand_subword.
17428 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
17431 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
17432 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
17433 * doc/md.texi (Standard Names): Add bswap.
17434 * builtin-types.def (BT_UINT16): New primitive type.
17435 (BT_FN_UINT16_UINT16): New function type.
17436 * builtins.def (BUILT_IN_BSWAP16): New.
17437 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
17438 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
17439 expand_builtin_bswap.
17440 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
17441 (fold_builtin_1): Likewise.
17442 (is_inexpensive_builtin): Likewise.
17443 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
17444 missing bits for bswap to libcall code.
17445 * tree.c (build_common_tree_nodes): Build uint16_type_node.
17446 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
17447 (uint16_type_node): New define.
17448 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
17449 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
17451 (rs6000_init_builtins): Likewise.
17452 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
17454 2012-04-11 Tristan Gingold <gingold@adacore.com>
17456 * doc/extend.texi (Type Attributes): Move paragraph.
17458 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17461 * diagnostic.h (show_caret): Declare.
17462 (caret_max_width): Declare.
17463 (diagnostic_show_locus): Declare.
17464 * diagnostic.c (diagnostic_initialize): Initialize to false.
17465 (diagnostic_show_locus): New.
17466 (diagnostic_report_diagnostic): Call it.
17467 (getenv_columns): New.
17468 (adjust_line): New.
17469 (diagnostic_set_caret_max_width): New.
17470 * input.c (read_line): New.
17471 (location_get_source_line): New.
17472 * input.h (location_get_source_line): Declare.
17473 * toplev.c (general_init): Initialize show_caret from options.
17474 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
17475 * opts.c (common_handle_option): Likewise.
17476 * pretty-print.h (pp_get_prefix): New.
17477 (pp_base_get_prefix): New.
17478 * common.opt (fdiagnostics-show-caret): New option.
17479 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
17481 2012-04-11 Richard Guenther <rguenther@suse.de>
17483 PR rtl-optimization/52881
17484 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
17486 2012-04-11 Richard Guenther <rguenther@suse.de>
17488 PR tree-optimization/52912
17489 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
17490 manipulation code we are threading through a loop header
17491 to an exit destination.
17493 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
17495 * tree.h (warn_if_unused_value): Move declaration from here.
17496 * stmt.c (warn_if_unused_value): Move definition from here.
17498 2012-04-10 Michael Matz <matz@suse.de>
17500 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
17502 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
17503 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
17504 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
17505 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
17506 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
17507 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
17508 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
17509 (vect_record_strided_load_vectors): Rename to
17510 vect_record_grouped_load_vectors.
17511 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
17512 Rename use of above macros.
17513 (vect_verify_datarefs_alignment): Ditto.
17514 (vector_alignment_reachable_p): Ditto.
17515 (vect_peeling_hash_get_lowest_cost): Ditto.
17516 (vect_enhance_data_refs_alignment): Ditto.
17517 (vect_analyze_group_access): Ditto and rename stride to groupsize.
17518 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
17519 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
17520 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
17521 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
17522 (vect_record_strided_load_vectors): Rename to
17523 vect_record_grouped_load_vectors.
17524 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
17525 (destroy_loop_vec_info): Ditto.
17526 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
17527 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
17528 (vect_analyze_slp): Ditto.
17529 (new_bb_vec_info): Ditto.
17530 (destroy_bb_vec_info): Ditto.
17531 (vect_schedule_slp_instance): Ditto and rename strided_store to
17533 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
17534 vect_cost_group_size.
17535 (vect_model_store_cost): Rename use of above macros and call
17536 to vect_cost_strided_group_size.
17537 (vect_model_load_cost): Ditto.
17538 (vectorizable_store): Ditto, rename strided_store to grouped_store
17539 and calls to renamed tree-vectorizer.h functions.
17540 (vectorizable_load): Ditto.
17541 (vect_transform_stmt): Rename use of above macros and strided_store
17544 2012-04-10 Jan Hubicka <jh@suse.cz>
17546 * cgraph.h: Remove misledaing comment on ipa-ref.h.
17547 (symtab_type): New enum.
17548 (symtab_node): New structure.
17549 (cgraph_node, varpool_node): Add symbol base type.
17550 (cgraph, varpool): New accestor functions.
17551 * cgraph.c (cgraph_create_node_1): Set symbol type.
17552 * varpool.c (varpool_node): Set symbol type.
17554 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
17555 Richard Sandiford <rdsandiford@googlemail.com>
17557 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
17559 2012-04-10 Richard Guenther <rguenther@suse.de>
17561 PR middle-end/52888
17562 * gimple-low.c (gimple_check_call_args): Properly account for
17563 compatible aggregate types.
17565 2012-04-10 Richard Guenther <rguenther@suse.de>
17567 * toplev.h (tree_rest_of_compilation): Remove.
17568 * tree-optimize.c (tree_rest_of_compilation): Likewise.
17569 * cgraph.h (tree_rest_of_compilation): Declare.
17570 * tree-optimize.c (tree_rest_of_compilation): Move ...
17571 * cgraphunit.c (tree_rest_of_compilation): ... here.
17572 * cgraph.c (cgraph_add_new_function): Adjust.
17573 * Makefile.in (tree-optimize.o): Adjust.
17574 (cgraphunit.o): Likewise.
17576 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
17578 PR tree-optimization/52870
17579 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
17580 presumed pattern statement is within the same loop or basic block.
17582 2012-04-10 Tristan Gingold <gingold@adacore.com>
17584 * gengtype.c (main): Make uintptr_t a known type.
17586 2012-04-10 Richard Guenther <rguenther@suse.de>
17588 * tree-pass.h (tree_lowering_passes): Remove.
17589 * tree-optimize.c (tree_lowering_passes): Remove.
17590 * cgraph.c (cgraph_add_new_function): Inline relevant parts
17591 of tree_lowering_passes, avoid redundant call of early local passes.
17592 * cgraphunit.c (cgraph_lower_function): Fold into ...
17593 (cgraph_analyze_function): ... its single caller. Inline
17594 relevant parts of tree_lowering_passes.
17596 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
17599 * config/pa/pa.opt: Remove SIO and GNU_LD.
17601 2012-04-09 Jan Hubicka <jh@suse.cz>
17606 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
17607 boundary, add its target too.
17608 * lto.c (add_references_to_partition): Add also aliased nodes.
17609 (add_cgraph_node_to_partition,
17610 add_varpool_node_to_partition): Work on nodes, not functions/variables;
17611 when adding alias, add also the aliased object.
17613 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
17616 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
17617 VOIDmode immediate operands.
17618 * config/i386/constraints.md (Wz): New constraint.
17619 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
17621 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
17624 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
17625 the DECL generated for the special GOT helper.
17627 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
17629 * config/sh/constraints.md: Update list of constraints in
17631 (Sr0): Remove unused memory constraint.
17633 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
17635 * tree-pretty-print.h: Update comment.
17637 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
17639 * config/sh/sh.md: Use braced string notation where applicable.
17640 (*prefetch_i4, prefetch_m2a): Merge into ...
17641 (*prefetch): ... this new insn.
17643 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
17645 * config/sh/sh.h (high_life_started): Remove
17646 * config/sh/predicates.md (general_movdst_operand): Use
17647 'reload_in_progress' instead of 'high_life_started'.
17648 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
17649 divsi_inv_fp): Likewise.
17651 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
17653 * config/sh/sh-protos.h (prepare_move_operands): Return void
17655 * config/sh/sh.c (prepare_move_operands): Likewise.
17656 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
17658 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
17660 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
17661 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
17662 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
17663 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
17664 commutative_float_operator, noncommutative_float_operator,
17665 sh_handle_pragma): Remove.
17667 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
17669 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
17670 Use @option markup on command-line options. Use @samp markup on
17671 literal keywords to options. Use @code markup on code fragments.
17672 Use other markup in preference to quotation marks in the text.
17673 Add markup to some passages without any.
17675 2012-04-06 Mike Stump <mikestump@comcast.net>
17677 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
17679 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
17681 * config/sh/sh.c (hi_const): Remove.
17682 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
17685 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
17687 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
17689 * config/sh/sh.c (sh_expand_t_scc): Likewise.
17690 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
17691 calling sh_expand_t_scc.
17693 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
17695 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
17696 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
17697 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
17698 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
17699 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
17700 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
17701 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
17702 sh2a_is_function_vector_call): Use bool as return type.
17703 (sh_pass_in_reg_p): Remove.
17704 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
17705 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
17706 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
17707 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
17708 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
17709 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
17710 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
17711 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
17712 sh_loads_bankedreg_p): Use bool as return type.
17713 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
17714 'register' modifier.
17716 2012-04-06 Matt Turner <mattst88@gmail.com>
17718 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
17720 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
17722 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
17723 of the destination isn't also a FP_REGS register.
17725 2012-04-05 Teresa Johnson <tejohnson@google.com>
17726 H.J. Lu <hongjiu.lu@intel.com>
17728 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
17729 * config/i386/i386.md (move immediate to memory peephole2):
17730 Add cases for HImode move when LCP stall avoidance is needed.
17731 * config/i386/i386.c (initial_ix86_tune_features): Initialize
17732 X86_TUNE_LCP_STALL entry.
17734 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
17737 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
17738 CONST_INT operands, zero-extended with AND.
17740 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
17743 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
17744 first argument instead of mode size. Move displacement calculations
17746 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
17747 ... these new functions.
17748 (disp_adjust): Remove max_mov_disp field.
17749 (sh_legitimate_index_p): Use max_mov_insn_displacement and
17750 mov_insn_alignment_mask.
17751 (sh_address_cost): Use max_mov_insn_displacement.
17753 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
17755 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
17756 (arch_enabled): Handle new arch types.
17757 (one_cmpldi2): Add NEON support.
17759 2012-04-05 Richard Guenther <rguenther@suse.de>
17761 * gimple.c (walk_gimple_op): Compute val_only for the LHS
17762 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
17763 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
17764 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
17765 ... here and make static.
17766 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
17769 2012-04-05 Richard Guenther <rguenther@suse.de>
17771 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
17772 basic-block before removing it.
17774 2012-04-05 Richard Guenther <rguenther@suse.de>
17776 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
17777 version namespace as we release the freelist.
17779 2012-04-05 Richard Guenther <rguenther@suse.de>
17781 * tree-nrv.c (tree_nrv): Release VDEFs.
17782 * tree-sra.c (sra_modify_constructor_assign): Likewise.
17783 (sra_modify_assign): Likewise.
17784 * tree-vect-stmts.c (vect_remove_stores): Likewise.
17785 * tree-vect-loop.c (vect_transform_loop): Likewise.
17786 * tree-ssa-dom.c (optimize_stmt): Likewise.
17787 * tree-vect-slp.c (vect_schedule_slp): Likewise.
17788 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
17790 2012-04-05 Richard Guenther <rguenther@suse.de>
17792 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
17794 * gimple.h (gsi_remove): Adjust.
17795 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
17796 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
17797 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
17798 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
17799 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
17800 * tree-ssa-pre.c (eliminate): Likewise.
17802 2012-04-04 Mike Stump <mikestump@comcast.net>
17804 * doc/rtl.texi (const_double): Document as sign-extending.
17805 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
17806 * emit-rtl.c (immed_double_int_const): Refine to state the
17808 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
17809 CONST_DOUBLE integers.
17810 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
17811 negative values are converted. Fix conversions bigger than
17812 HOST_BITS_PER_WIDE_INT.
17813 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
17814 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
17815 * explow.c (plus_constant_mode): Add.
17816 (plus_constant): Implement with plus_constant_mode.
17817 * rtl.h (plus_constant_mode): Add.
17819 2012-04-04 Richard Guenther <rguenther@suse.de>
17821 PR tree-optimization/52808
17822 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
17823 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
17825 2012-04-04 Tristan Gingold <gingold@adacore.com>
17827 * expr.c (expand_expr_real_2): Handle larger sizetype in
17830 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
17832 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
17833 to m2a-single instead of m2e.
17835 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
17837 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
17838 Change type of BITOFFSET to signed. Make sure the lower bound of
17839 the computed range is non-negative by adjusting OFFSET and BITPOS.
17840 (expand_assignment): Adjust call to get_bit_range.
17842 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
17844 * h8300/h8300.c (h8300_current_function_monitor_function_p):
17845 New function. Added to check monitor functions.
17846 (h8300_option_override): Modified to generate error/warning
17847 messages for invalid combinations of different command line
17849 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
17850 save EXR on stack for monitor function in case of H8S target
17851 when "-mno-exr" is passed.
17852 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
17854 * doc/invoke.texi: Document H8S options.
17856 2012-04-03 Tristan Gingold <gingold@adacore.com>
17858 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
17859 of gcc_AC_FUNC_MMAP_BLACKLIST.
17860 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
17861 * Makefile.in (aclocal_deps): Add mmap.m4.
17862 * configure: Regenerate.
17863 * aclocal.m4: Regenerate.
17865 2012-04-03 Richard Guenther <rguenther@suse.de>
17867 PR tree-optimization/52808
17868 * tracer.c (tail_duplicate): Return whether we have duplicated
17870 (tracer): If we have duplicated any block, cleanup the CFG.
17871 * cfghooks.c (duplicate_block): If we duplicated a loop
17872 header but not its loop, destroy the loop because it now has
17874 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
17875 the cfg manipulation routines we are not creating a multiple
17878 2012-04-03 Tristan Gingold <gingold@adacore.com>
17880 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
17882 (vms_c_common_override_options): Allow parameterless variadic
17885 2012-04-03 Jakub Jelinek <jakub@redhat.com>
17887 PR tree-optimization/52835
17888 * tree-data-ref.c (build_rdg): Return NULL if
17889 compute_data_dependences_for_loop failed.
17891 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
17893 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
17894 for REAL_CST as well.
17895 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
17896 In the bitfield case, if the value is a REAL_CST, convert it first to
17899 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
17901 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
17902 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
17903 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
17905 * config/i386/biarchx32.h: New.
17907 2012-04-02 Anatoly Sokolov <aesok@post.ru>
17909 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
17910 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17911 (arm_preferred_reload_class): New function.
17913 2012-04-02 Richard Guenther <rguenther@suse.de>
17915 PR tree-optimization/52756
17916 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
17917 (thread_through_loop_header): After threading through the loop latch
17918 remove the split part from the loop and clear further threading
17919 opportunities that would create a multiple entry loop.
17921 2012-04-02 Richard Guenther <rguenther@suse.de>
17923 PR rtl-optimization/52800
17924 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
17925 CLEANUP_CFG_CHANGED.
17927 2012-04-02 Richard Guenther <rguenther@suse.de>
17929 PR middle-end/52803
17930 * loop-init.c (gate_handle_loop2): Destroy loops here if
17931 we don't enter RTL loop optimizers.
17933 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
17936 2012-03-29 Richard Guenther <rguenther@suse.de>
17938 * rtl.h (extended_count): Remove.
17939 * combine.c (extended_count): Remove.
17941 2012-04-02 Dodji Seketeli <dodji@redhat.com>
17944 * pt.c (more_specialized_fn): Don't apply decay conversion to
17945 types of function parameters.
17947 2012-04-02 Tristan Gingold <gingold@adacore.com>
17949 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
17950 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
17951 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
17952 (ggc_pch_this_base): Use uintptr_t instead of size_t.
17954 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
17957 * config/i386/i386.c (ix86_option_override_internal): Don't
17958 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
17960 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
17962 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
17963 (stmt_can_make_abnormal_goto): Use it.
17964 (is_ctrl_altering_stmt): Likewise.
17966 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
17967 Kaz Kojima <kkojima@gcc.gnu.org>
17969 * config/sh/sh.c (push_regs): Skip banked registers when
17970 resbank attribute is specified.
17971 (sh_expand_epilogue): Likewise.
17973 2012-03-30 Richard Henderson <rth@redhat.com>
17976 * combine-stack-adj.c (prev_active_insn_bb): New.
17977 (next_active_insn_bb): New.
17978 (force_move_args_size_note): New.
17979 (combine_stack_adjustments_for_block): Use it.
17981 2012-03-30 Richard Henderson <rth@redhat.com>
17983 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
17984 (ix86_expand_vector_init_duplicate): Initialize it.
17985 (expand_vec_perm_palignr): Likewise.
17986 (ix86_expand_vec_perm_const): Likewise.
17987 (ix86_vectorize_vec_perm_const_ok): Likewise.
17988 (expand_vec_perm_blend): Use it.
17989 (expand_vec_perm_vpermil): Likewise.
17990 (expand_vec_perm_pshufb): Likewise.
17991 (expand_vec_perm_1): Likewise.
17992 (expand_vec_perm_pshuflw_pshufhw): Likewise.
17993 (expand_vec_perm_interleave2): Likewise.
17994 (expand_vec_perm_vpermq_perm_1): Likewise.
17995 (expand_vec_perm_vperm2f128): Likewise.
17996 (expand_vec_perm_interleave3): Likewise.
17997 (expand_vec_perm_vperm2f128_vblend): Likewise.
17998 (expand_vec_perm_vpshufb2_vpermq): Likewise.
17999 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
18000 (expand_vec_perm_broadcast): Likewise.
18001 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18003 2012-03-30 Richard Henderson <rth@redhat.com>
18005 * dwarf2out.c (gen_variable_die): Initialize off.
18007 2012-03-30 Tristan Gingold <gingold@adacore.com>
18009 * config/vms/vms-f.c: New file.
18010 * config/vms/t-vms (vms-f.o): New rule.
18011 * config.gcc (*-*-*vms*): Define fortran_target_objs.
18013 2012-03-30 Richard Guenther <rguenther@suse.de>
18015 PR tree-optimization/52754
18016 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
18017 propagate arbitrary addresses into really plain dereferences.
18019 2012-03-30 Richard Guenther <rguenther@suse.de>
18021 PR middle-end/52772
18022 * except.c (emit_to_new_bb_before): Move loop updating ...
18023 (dw2_build_landing_pads): ... here. Use a proper block for
18024 querying the loop father.
18026 2012-03-30 Tristan Gingold <gingold@adacore.com>
18028 * config/ia64/ia64.c (ia64_section_type_flags): Remove
18029 common_object attribute handling.
18030 (SECTION_VMS_OVERLAY): Remove
18031 (ia64_vms_common_object_attribute): Replace abort with an assert.
18032 Do not set DECL_SECTION_NAME.
18033 (ia64_vms_output_aligned_decl_common): Handle common_object
18035 (ia64_vms_elf_asm_named_section): Remove.
18036 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
18038 2012-03-30 Richard Guenther <rguenther@suse.de>
18040 PR middle-end/52786
18041 * double-int.c (rshift_double): Remove not needed cast.
18043 2012-03-30 Richard Guenther <rguenther@suse.de>
18045 * tree-affine.h (print_aff): Remove.
18046 * tree-affine.c (print_aff): Make static.
18047 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
18048 (get_references_in_stmt): Likewise.
18049 (print_direction_vector): Likewise.
18050 (print_dir_vectors): Likewise.
18051 (print_dist_vectors): Likewise.
18052 (dump_subscript): Likewise.
18053 (dump_ddrs): Likewise.
18054 (dump_dist_dir_vectors): Likewise.
18055 (dump_data_references): Likewise.
18056 (dump_data_dependence_relation): Likewise.
18057 (dump_data_dependence_direction): Likewise.
18058 (dump_rdg_vertex): Likewise.
18059 (dump_rdg_component): Likewise.
18060 (debug_ddrs): Declare.
18061 (struct data_ref_loc_d): Move ...
18062 * tree-data-ref.c (struct data_ref_loc_d): ... here.
18063 (get_references_in_stmt): Make static.
18064 (dump_data_references): Likewise.
18065 (dump_subscript): Likewise.
18066 (print_direction_vector): Likewise.
18067 (print_dir_vectors): Likewise.
18068 (print_dist_vectors): Likewise.
18069 (dump_data_dependence_relation): Likewise.
18070 (dump_dist_dir_vectors): Likewise.
18071 (dump_ddrs): Likewise.
18072 (dump_rdg_vertex): Likewise.
18073 (dump_rdg_component): Likewise.
18074 (debug_ddrs): New function.
18075 (access_matrix_get_index_for_parameter): Remove.
18077 2012-03-30 Tristan Gingold <gingold@adacore.com>
18079 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
18080 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
18081 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
18082 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
18083 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
18084 (vms_patch_builtins): Handle new flags
18085 * config/vms/vms-crtlmap.map: Completed using nm on
18086 c and math system libraries.
18087 * config/vms/make-crtlmap.awk: Handle any number of flags.
18089 2012-03-30 Martin Jambor <mjambor@suse.cz>
18091 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
18092 is a builtin_stack_save in a dominating BB.
18094 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
18096 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
18097 crossing 128bit lane boundary.
18099 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
18101 * ira-color.c (setup_left_conflict_sizes_p): Process all
18102 conflicting objects.
18104 2012-03-29 Jakub Jelinek <jakub@redhat.com>
18106 PR tree-optimization/52760
18107 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
18108 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
18110 2012-03-29 Richard Guenther <rguenther@suse.de>
18112 * cgraph.h (cgraph_materialize_all_clones): Remove.
18113 (reset_inline_failed): Likewise.
18114 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
18115 * cgraphbuild.c (reset_inline_failed): Remove.
18116 * rtl.h (cse_main): Remove.
18117 (extended_count): Likewise.
18118 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
18119 (cse_main): Make static.
18120 * combine.c (extended_count): Remove.
18121 (dump_combine_stats): Mark as DEBUG_FUNCTION.
18122 * basic-block.h (reorder_basic_blocks): Remove.
18123 * bb-reorder.c (reorder_basic_blocks): Make static.
18124 * Makefile.in (dse.o): Remove dse.h dependency.
18126 * dse.c (gate_dse): Remove.
18127 (clear_alias_mode_eq): Likewise.
18128 (clear_alias_mode_hash): Likewise.
18129 (dse_record_singleton_alias_set): Likewise.
18130 (dse_invalidate_singleton_alias_set): Likewise.
18132 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
18134 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
18135 crtbegin_so%O%s for -shared.
18136 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
18138 2012-03-29 Richard Guenther <rguenther@suse.de>
18140 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
18141 (add_to_value): Remove.
18142 (print_value_expressions): Likewise.
18143 * tree-ssa-pre.c (add_to_value): Make static.
18144 (print_value_expressions): Likewise.
18145 * gimple.h (gimple_adjust_this_by_delta): Remove.
18146 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
18148 2012-03-29 Richard Guenther <rguenther@suse.de>
18150 PR middle-end/50708
18151 * double-int.h (rshift_double): Remove.
18152 * double-int.c (lshift_double): Use absu_hwi to make count positive.
18153 (rshift_double): Make static, take unsigned count argument,
18154 remove handling of negative count argument.
18155 (double_int_rshift): Dispatch to lshift_double.
18157 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
18159 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
18160 OPTION_MASK_ABI_64.
18162 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
18163 (SPEC_X32): Likewise.
18164 (MULTILIB_DEFAULTS): Likewise.
18166 * config/i386/i386.c (isa_opts): Remove -m64.
18167 (ix86_target_string): Properly handle -m32/-m64/-mx32.
18168 (ix86_option_override_internal): Properly
18169 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
18170 handle -m32, -m64 and -mx32.
18172 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
18173 with OPTION_ABI_X32. Moved after TARGET_LP64.
18174 (TARGET_LP64): Changed to OPTION_ABI_64.
18176 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
18177 (mx32): Replace ISA_X32 with ABI_X32.
18179 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
18181 * tree.c (tree_size) <VECTOR_CST>: New case.
18183 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
18185 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
18186 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
18188 2012-03-28 Jakub Jelinek <jakub@redhat.com>
18190 PR middle-end/52691
18191 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
18192 __builtin_va_start to __builtin_next_arg if the latter is
18193 builtin_decl_explicit_p rather than when it is not.
18195 PR middle-end/52750
18196 * tree-vect-generic.c (vector_element): Perform multiplication
18197 for pos in bitsizetype type instead of idx type.
18199 2012-03-28 Richard Guenther <rguenther@suse.de>
18201 * loop-init.c (loop_optimizer_init): If loops are preserved
18202 perform incremental initialization of required loop features.
18203 (loop_optimizer_finalize): If loops are to be preserved only
18204 clean up optional loop features.
18205 (rtl_loop_done): Forcefully free loops here.
18206 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
18207 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
18209 (construct_init_block): Likewise.
18210 (construct_exit_block): Likewise.
18211 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
18212 the CFG after expanding.
18213 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
18214 If we needed to calculate them, free them afterwards.
18215 * tree-pass.h (PROP_loops): New define.
18216 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
18217 * basic-block.h (CLEANUP_CFG_CHANGED): New.
18218 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
18219 (cleanup_cfg): If we did something and have loops around, fix them up.
18220 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
18221 with CLEANUP_CFG_CHANGED.
18222 * cfghooks.c (merge_blocks): If we merge a loop header into
18223 its predecessor, update the loop structure.
18224 (duplicate_block): If we copy a loop latch, adjust loop state
18225 to note we may have multiple latches.
18226 (delete_basic_block): Mark loops for fixup if we remove a loop.
18227 * cfganal.c (forwarder_block_p): Protect loop latches, headers
18229 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
18230 (cfg_layout_can_merge_blocks_p): Likewise.
18231 * cprop.c (bypass_block): If we create a loop with multiple
18232 entries, mark it for removal.
18233 * except.c (emit_to_new_bb_before): Add the new basic-block
18235 * tree-eh.c (lower_resx): Likewise.
18236 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
18237 (expand_omp_taskreg): Likewise.
18238 * tree-inline.c (initialize_cfun): Likewise.
18239 * tree-mudflap.c (add_bb_to_loop): Prototype.
18240 (mf_build_check_statement_for): Properly add new basic-blocks
18242 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
18243 if we remove a loop.
18244 (thread_through_loop_header): Likewise.
18245 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
18246 new basic-blocks to existing loops.
18247 (expand_transaction): Likewise.
18248 * Makefile.in (except.o): Add $(CFGLOOP_H).
18249 (expr.o): Likewise.
18250 (cgraph.o): Likewise.
18251 (cprop.o): Likewise.
18252 (cfgexpand.o): Likewise.
18253 (cfganal.o): Likewise.
18254 (trans-mem.o): Likewise.
18255 (tree-eh.o): Likewise.
18257 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
18260 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
18261 (avr_builtin_decl): New static function.
18262 (struct avr_builtin_description, avr_bdesc): Move up.
18263 Add GTY marker. Add field fndecl. Remove redundant field id.
18264 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
18265 (avr_expand_builtin): Code cleanup because .id is removed.
18267 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
18270 * config.gcc (tm_file): Remove avr/multilib.h.
18272 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
18274 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
18275 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
18276 * config/avr/t-avr: Remove generation of multilib.h.
18277 * config/avr/t-multilib: Regenerate.
18278 * config/avr/multilib.h: Remove.
18279 * config/avr/avr.opt (-msp8): New option.
18280 (avr_sp8): New variable.
18281 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
18282 * config/avr/avr.h (AVR_HAVE_SPH): New define.
18283 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
18284 (avr_device_to_sp8): New prototype.
18285 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
18286 (DRIVER_SELF_SPECS): New define.
18287 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
18288 __AVR_SP8__, __AVR_HAVE_SPH__.
18289 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
18290 AVR_HAVE_8BIT_SP to decide if SP_H is present.
18291 (avr_file_start): Ditto.
18293 2012-03-28 Jakub Jelinek <jakub@redhat.com>
18296 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
18297 instead of 8 in adjust_address.
18299 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
18301 PR middle-end/51893
18302 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
18305 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
18308 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
18309 Rearrange conditional logic. Move displacement address calculations
18311 (sh_find_mov_disp_adjust): ... this new function.
18313 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
18315 * config/arm/arm.opt (mapcs): Remove MaskExists.
18316 * config/cris/linux.opt (mno-gotplt): Likewise.
18317 * config/i386/i386.opt (mhard-float): Likewise.
18319 (mno-sse4): Likewise.
18320 * config/m68k/m68k.opt (mhard-float): Likewise.
18321 * config/mep/mep.op (mcop32): Likewise.
18322 * config/pa/pa-hpux.opt (msio): Likewise.
18323 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
18324 * config/picochip/picochip.opt (mlittle): Likewise.
18325 * config/sh/sh.opt (mrenesas): Likewise.
18326 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
18327 * config/sparc/sparc.opt (mhard-float): Likewise.
18328 * config/v850/v850.opt (mv850es): Likewise.
18329 * config/vax/vax.opt (mg-float): Likewise.
18331 2012-03-27 Martin Jambor <mjambor@suse.cz>
18333 PR middle-end/52693
18334 * tree-sra.c (sra_modify_assign): Do not call
18335 load_assign_lhs_subreplacements when working with an unscalarizable
18338 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
18341 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
18343 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
18344 * config/i386/i386.c: Include reload.h.
18345 (ix86_legitimize_reload_address): New function.
18347 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
18349 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
18350 hasn't been allocated. Define a target macro for Mask and
18351 InverseMask if it hasn't been defined. Remove MaskExists handling.
18353 * doc/options.texi: Remove MaskExists.
18355 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
18358 * config/sh/sh.c (find_barrier): Add equality check of last_got
18359 to avoid going above orig insn. Update comments.
18361 2012-03-27 Richard Guenther <rguenther@suse.de>
18363 PR middle-end/52720
18364 * fold-const.c (try_move_mult_to_index): Handle &x.array more
18367 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
18369 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
18370 of a unit before computing the offset in units.
18371 * expr.c (get_bit_range): Return the null range if the enclosing record
18372 is part of a larger bit field.
18374 2012-03-27 Tristan Gingold <gingold@adacore.com>
18376 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
18377 * config/ia64/ia64.md: Remove mode in template.
18378 Sign extend operand in expand_simple_binop.
18379 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
18380 CASE_VECTOR_MODE instead of TARGET_ILP32.
18381 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
18383 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
18385 * varasm.c (assemble_external): #if 0 out the new assert from the
18386 previous commit, it breaks the Java and Go front ends.
18388 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
18390 * toplev.c (check_global_declaration_1): Do not call assemble_external.
18391 * expr.c (emit_block_move_libcall_fn): Likewise.
18392 (clear_storage_libcall_fn): Likewise.
18393 (expand_expr_addr_expr_1): Likewise.
18394 (expand_expr_real_1): Likewise.
18395 * calls.c (rtx_for_function_call): Likewise.
18397 * varasm.c (assemble_external): Assert this function is only called
18398 during or after expanding to RTL.
18400 2012-03-26 Martin Jambor <mjambor@suse.cz>
18402 PR tree-optimization/50052
18403 * tree-sra.c (tree_non_aligned_mem_p): Removed.
18404 (tree_non_aligned_mem_for_access_p): Likewise.
18405 (build_accesses_from_assign): Removed strict alignment requirements
18407 (access_precludes_ipa_sra_p): Likewise.
18409 2012-03-26 Richard Guenther <rguenther@suse.de>
18411 PR tree-optimization/52701
18412 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
18413 compute and set the evolution part of PHI nodes.
18415 2012-03-26 Richard Guenther <rguenther@suse.de>
18417 PR tree-optimization/52721
18418 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
18420 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
18422 PR tree-optimization/52686
18423 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
18426 2012-03-26 Tristan Gingold <gingold@adacore.com>
18428 * config/alpha/vms.h (LINK_SPEC): Simplify.
18429 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
18430 (NAME__MAIN, SYMBOL__MAIN): Remove.
18431 (VMS_DEBUG_MAIN_POINTER): Remove.
18432 * config/ia64/vms.h: Likewise.
18433 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
18434 code to vms.c. Call vms_start_function.
18435 * config/ia64/ia64.c (ia64_start_function): Likewise.
18436 * config/vms/vms-protos.h (vms_start_function): Declare.
18437 * config/vms/vms.c (vms_start_function): New function.
18438 * config/vms/vms.h (MATH_LIBRARY): Define.
18439 (VMS_DEBUG_MAIN_POINTER): Define.
18441 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
18443 PR rtl-optimization/52629
18444 * reload1.c (count_pseudo): Short-circuit common case.
18445 (count_spilled_pseudo): Return early for pseudos without hard regs.
18446 Assert that the pseudo has got a hard reg before manipulating it.
18448 2012-03-24 Jan Hubicka <jh@suse.cz>
18451 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
18452 (decide_is_variable_needed): Do not handle toplevel reorder here.
18453 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
18454 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
18457 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
18459 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
18460 and str_bitsize instead of more convoluted expressions.
18462 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
18465 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
18467 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
18470 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
18472 2012-03-23 Martin Jambor <mjambor@suse.cz>
18474 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
18476 2012-03-23 Richard Guenther <rguenther@suse.de>
18478 PR tree-optimization/52678
18479 * tree-vectorizer.h (struct _stmt_vec_info): Add
18480 loop_phi_evolution_part member.
18481 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
18482 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
18483 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
18484 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
18485 Use the cached evolution part and the PHI nodes value from
18486 the loop preheader edge instead of re-analyzing the evolution.
18488 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
18490 * config/mips/mips-tables.opt: Update.
18491 * config/mips/mips.md (processor): Add xlp.
18492 * config/mips/mips-cpus.def: Add xlp.
18493 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
18495 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
18496 * doc/invoke.texi: Mention XLP.
18498 2012-03-22 Jakub Jelinek <jakub@redhat.com>
18500 PR middle-end/52547
18501 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
18502 on any new_local_var_chain vars declared during recursing on
18503 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
18505 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
18507 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
18508 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
18509 (ASM_OUTPUT_LOCAL): Ditto.
18510 (ASM_OUTPUT_COMMON): Remove.
18511 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
18512 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
18514 2012-03-22 Jan Hubicka <jh@suse.cz>
18516 PR middle-end/51737
18517 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
18519 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
18520 * ipa-inline-transform.c (save_inline_function_body): Remove
18521 copied clone if needed.
18522 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
18524 2012-03-22 Richard Guenther <rguenther@suse.de>
18526 PR middle-end/52666
18527 * fold-const.c (fold_ternary_loc): Fix typo.
18529 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
18532 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
18533 (unspecv): Add UNSPECV_MEMORY_BARRIER.
18534 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
18535 (delay_cycles_1, delay_cycles_2): Ditto.
18536 (delay_cycles_3, delay_cycles_4): Ditto.
18537 (nopv, *nopv): Ditto.
18538 (sleep, *sleep): Ditto.
18539 (wdr, *wdr): Ditto.
18541 2012-03-22 Richard Guenther <rguenther@suse.de>
18543 PR tree-optimization/52548
18544 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
18545 because of clobbers.
18546 (prune_clobbered_mems): New function.
18547 (compute_antic_aux): Use it to prune ANTIC_OUT.
18548 (compute_partial_antic_aux): Use it to prune PA_IN.
18549 (compute_avail): Only insert expressions into EXP_GEN that are not
18550 invalidated when translated up to the beginning of the block.
18552 2012-03-22 Richard Guenther <rguenther@suse.de>
18554 PR tree-optimization/52638
18555 * tree-vect-stmts.c (vect_init_vector_1): New function, split
18557 (vect_init_vector): ... here. Handle scalar vector inits.
18558 (vect_get_vec_def_for_operand): Adjust.
18559 (vectorizable_load): Likewise.
18561 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
18563 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
18564 (alpha*-*-freebsd*): Ditto.
18565 (alpha*-*-netbsd*): Ditto.
18566 (alpha*-*-openbsd*): Ditto.
18567 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
18568 (DWARF2_DEBUGGING_INFO): Remove.
18569 (PREFERRED_DEBUGGING_TYPE): Remove.
18570 (ASM_FINAL_SPEC): Remove.
18571 (IDENT_ASM_OP): Remove.
18572 (ASM_OUTPUT_IDENT): Remove.
18573 (SKIP_ASM_OP): Remove.
18574 (ASM_OUTPUT_SKIP): Remove.
18575 (ALIGN_ASM_OP): Remove.
18576 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
18577 (ASM_OUTPUT_CASE_LABEL): Remove.
18578 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
18579 (COMMON_ASM_OP): Remove.
18580 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
18581 (ASCII_DATA_ASM_OP): Remove.
18582 (READONLY_DATA_SECTION_ASM_OP): Remove.
18583 (INIT_SECTION_ASM_OP): Remove.
18584 (FINI_SECTION_ASM_OP): Remove.
18585 (ASM_SECTION_START_OP): Remove.
18586 (ASM_OUTPUT_SECTION_START_FILE): Remove.
18587 (TARGET_ASM_NAMED_SECTION): Remove.
18588 (TARGET_ASM_SELECT_SECTION): Remove.
18589 (MAKE_DECL_ONE_ONLY): Remove.
18590 (TYPE_ASM_OP): Remove.
18591 (SIZE_ASM_OP): Remove.
18592 (ASM_WEAKEN_LABEL): Remove.
18593 (TYPE_OPERAND_FMT): Remove.
18594 (ASM_DECLARE_RESULT): Remove.
18595 (ASM_DECLARE_OBJECT_NAME): Remove.
18596 (ASM_FINISH_DECLARE_OBJECT): Remove.
18597 (ELF_ASCII_ESCAPES): Remove.
18598 (ELF_STRING_LIMIT): Remove.
18599 (STRING_ASM_OP): Remove.
18600 (ASM_OUTPUT_EXTERNAL): Remove.
18601 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
18602 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
18604 (ASM_DECLARE_FUNCTION_NAME): Ditto.
18605 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
18606 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
18607 (ASM_OUTPUT_SKIP): Ditto.
18608 (READONLY_DATA_SECTION_ASM_OP): Remove.
18609 (USER_LABEL_PREFIX): Remove.
18610 (ASM_OUTPUT_ASCII): Remove.
18611 (ASM_OUTPUT_CASE_LABEL): Remove.
18612 (NO_DOLLAR_IN_LABEL): Undefine.
18614 2012-03-22 Richard Guenther <rguenther@suse.de>
18616 PR tree-optimization/52459
18617 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
18618 PHI insertion for calls.
18620 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
18622 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
18623 find_sets_in_insn, canonicalize_insn): Split out from ...
18624 (cse_insn): ... here.
18625 (invalidate_from_clobbers): Take an insn instead of the pattern.
18627 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
18630 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
18631 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
18632 * config/sh/sh.md (sindf2, cosdf2): Remove.
18634 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
18637 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
18638 prologue for unwinder and profiler.
18640 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
18642 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
18643 Introduce emul_name to select the right linker emulation for
18644 powerpc64-*-freebsd*.
18645 * configure: Regenerate.
18646 * config.gcc: Add bits to support powerpc64-*-freebsd*.
18647 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
18648 * config/rs6000/freebsd64.h: New file.
18649 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
18651 (rs6000_savres_strategy): Likewise.
18652 (rs6000_savres_routine_name): Likewise.
18653 (rs6000_elf_file_end): Likewise.
18654 * config/rs6000/t-freebsd64: New file.
18655 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
18656 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
18658 * config/rs6000/freebsd64.h: Remove duplicated entries from last
18660 * config/rs6000/t-freebsd64: Likewise.
18662 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
18664 PR rtl-optimization/52543
18666 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
18667 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
18668 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
18669 (avr_load_libgcc_p): Restrict to __flash loads.
18670 (avr_out_lpm): Only handle 1-byte loads from __flash.
18671 (avr_load_lpm): New function.
18672 (avr_find_unused_d_reg): Remove.
18673 (avr_out_lpm_no_lpmx): Remove.
18674 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
18675 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
18676 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
18677 (load_<mode>, load_<mode>_clobber): New insns.
18678 (mov<mode>): For multi-byte move from non-generic
18679 16-bit address spaces: Expand to load_<mode> resp.
18680 load_<mode>_clobber.
18681 (load<mode>_libgcc): Remove expander.
18682 (split-lpmx): Remove split.
18684 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
18686 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
18687 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
18688 All callers changed.
18689 (Fixed_core_reg): New feature.
18690 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
18692 * neon-testgen.ml: Handle Fixed_core_reg.
18694 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
18696 * config/arm/arm.c (thumb2_reorg): Add complete support
18697 for 16-bit instructions.
18698 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
18700 2012-03-21 Richard Guenther <rguenther@suse.de>
18702 PR tree-optimizer/52636
18703 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
18704 to the appropriate type.
18706 2012-03-21 Richard Guenther <rguenther@suse.de>
18708 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
18710 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
18711 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
18712 * passes.c (init_optimization_passes): Remove pass_init_function,
18713 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
18714 * tree-pass.h (pass_init_function): Remove.
18715 (pass_jump): Remove.
18716 (pass_initial_value_sets): Remove.
18717 (pass_unshare_all_rtl): Remove.
18718 * integrate.c (pass_initial_value_sets): Remove.
18719 * emit-rtl.c (pass_unshare_all_rtl): Remove.
18720 * tree.h (init_function_for_compilation): Remove.
18721 * function.c (init_function_for_compilation): Remove.
18722 (pass_init_function): Remove.
18723 * cfgcleanup.c (rest_of_handle_jump): Remove.
18724 (pass_jump): Remove.
18726 2012-03-20 Jason Merrill <jason@redhat.com>
18728 * tree-streamer-in.c (streamer_alloc_tree): Call
18729 ggc_alloc_zone_cleared_tree_node instead of
18730 ggc_alloc_zone_cleared_tree_node_stat.
18732 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
18734 * doc/extend.texi (Template Instantiation): Remove anachronisms.
18736 2012-03-20 Jakub Jelinek <jakub@redhat.com>
18739 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
18740 (ix86_expand_vec_perm_const_1): Call it.
18742 * config/i386/i386.c (vselect_insn): New variable.
18743 (init_vselect_insn): New function.
18744 (expand_vselect, expand_vselect_insn): Add testing_p argument.
18745 Call init_vselect_insn if vselect_insn is NULL. Adjust
18746 PATTERN (vselect_insn), instead of creating a new insn each time,
18747 only emit a copy of it if not testing and recog has been successful.
18748 (expand_vec_perm_pshufb, expand_vec_perm_1,
18749 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
18753 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
18754 ("enabled" attribute): Handle avx2 and noavx2 isas.
18755 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
18757 (vec_dup<mode>): Add avx2 =x,x alternative.
18758 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
18759 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
18760 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
18761 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
18763 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
18764 if possible, handle also V8SFmode.
18766 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
18768 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
18769 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
18770 reg_or_zero_operand predicate.
18771 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
18773 2012-03-20 Jakub Jelinek <jakub@redhat.com>
18775 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
18776 If operand isn't UNSPEC, return 0.
18778 2012-03-20 Richard Guenther <rguenther@suse.de>
18780 * tree-pass.h (pass_rtl_eh): Remove.
18781 * except.c (gate_handle_eh): Likewise.
18782 (rest_of_handle_eh): Likewise.
18783 (pass_rtl_eh): Likewise.
18784 (finish_eh_generation): Export.
18785 * except.h (finish_eh_generation): Declare.
18786 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
18787 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
18788 after expanding stack alignment. Instead of compacting blocks
18791 2012-03-20 Richard Guenther <rguenther@suse.de>
18793 * stor-layout.c (finish_bitfield_representative): Fallback
18794 to conservative maximum size if the padding up to the next
18795 field cannot be computed as a constant.
18796 (finish_bitfield_layout): If we cannot compute the distance
18797 between the start of the bitfield representative and the
18798 bitfield member start a new representative.
18799 * expr.c (get_bit_range): The distance between the start of
18800 the bitfield representative and the bitfield member is zero
18801 if the field offsets are not constants.
18803 2012-03-20 Tristan Gingold <gingold@adacore.com>
18805 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
18806 convert in lowercase.
18807 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
18808 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
18809 * stor-layout.c (sizetype_tab): Adjust.
18810 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
18811 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
18812 instead of type_kind_last.
18813 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
18814 instead of size_int_kind.
18815 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
18816 * doc/tm.texi: Regenerate.
18817 * defaults.h (SIZETYPE): Provide a default value.
18818 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
18819 (SIZETYPE): Define.
18821 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
18823 * config/sh/sh.md: Use braced string notation where applicable.
18825 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
18827 * config/i386/i386.md (allocate_stack): Simplify.
18829 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
18831 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
18832 copy_to_mode_reg (Pmode, ...).
18833 (expand_builtin_frame_address): Ditto.
18834 * expr.c (emit_block_move_via_libcall): Ditto.
18835 (set_storage_via_libcall): Ditto.
18837 * config/i386/i386.c (ix86_expand_movmem): Ditto.
18838 (ix86_expand_setmem): Ditto.
18839 (ix86_trampoline_init): DItto.
18840 * config/i386/i386.md (cmpstrnsi): Ditto.
18842 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
18844 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
18845 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
18846 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
18847 (SH Options): Likewise.
18849 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
18851 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
18852 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
18853 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
18854 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
18855 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
18858 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
18860 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
18861 * config/i386/i386.c (ix86_decompose_address): Use
18862 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
18863 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
18864 thread pointer to a register.
18867 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
18869 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
18870 if Pmode != word_mode.
18871 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
18872 Pmode == SImode for TARGET_X32.
18874 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
18875 (tls_initial_exec_x32): Likewise.
18877 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
18880 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
18881 DISP_ADDR_OFFSET): New macros.
18882 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
18883 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
18884 (sh_legitimize_address): Add QImode displacement handling.
18885 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
18887 (sh_secondary_reload): Add QImode displacement handling.
18888 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
18889 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
18890 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
18891 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
18892 to register operands only.
18893 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
18894 (extendqihi2): Change insn to expander.
18895 (*extendqihi2_compact_reg): New insn.
18896 (movqi_i, movqi): Replace with ...
18897 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
18898 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
18899 Add new peepholes for QImode displacement addressing.
18901 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
18904 * doc/invoke.texi: Document -Wuseless-cast.
18906 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
18908 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
18909 * tree.h (handled_component_p): Reorder cases.
18910 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
18911 not initialize unsignedp.
18912 (loc_list_from_tree): Likewise.
18913 (fortran_common): Likewise.
18914 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
18916 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
18918 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
18919 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
18920 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
18921 (ix86_split_long_move): Ditto.
18922 (legitimize_tls_address): Use ix86_gen_sub3.
18923 (construct_plt_address): Assert that Pmode == DImode.
18925 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
18927 * config/i386/i386.md: Remove empty predicates and/or constraints.
18928 * config/i386/sync.md: Ditto.
18929 * config/i386/sse.md: Ditto.
18930 * config/i386/mmx.md: Ditto.
18931 * config/i386/pentium.md: Ditto.
18932 * config/i386/athlon.md: Ditto.
18934 2012-03-16 Richard Guenther <rguenther@suse.de>
18936 PR tree-optimization/52603
18937 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
18941 2012-03-14 Richard Guenther <rguenther@suse.de>
18943 PR tree-optimization/52571
18944 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
18945 flag_section_anchors check ...
18946 (vect_can_force_dr_alignment_p): ... here.
18948 2012-03-16 Martin Jambor <mjambor@suse.cz>
18950 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
18951 memory through MEM_REFs by calling extract_bit_field.
18953 2012-03-16 Richard Guenther <rguenther@suse.de>
18955 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
18956 and REFERENCE_TYPE interpretations.
18957 (can_native_interpret_type_p): New function.
18958 (fold_ternary_loc): Use native encode/interpret to fold
18959 BIT_FIELD_REFs of constants.
18961 2012-03-16 Richard Guenther <rguenther@suse.de>
18963 PR middle-end/52584
18964 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
18965 of vector constants and constructors.
18967 2012-03-16 Richard Guenther <rguenther@suse.de>
18969 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
18970 VIEW_CONVERT_EXPR to convert constants.
18971 (vect_is_simple_use): Treat all constants as vec_constant_def.
18973 2012-03-16 Richard Guenther <rguenther@suse.de>
18974 Kai Tietz <ktietz@redhat.com>
18976 PR middle-end/48814
18977 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
18978 side-effects completely in the pre-queue and use a temporary
18981 2012-03-16 Richard Guenther <rguenther@suse.de>
18983 * stor-layout.c (finish_bitfield_representative): Fall back
18984 to the conservative maximum size if we cannot compute the
18985 size of the tail padding.
18987 2012-03-16 Tristan Gingold <gingold@adacore.com>
18989 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
18990 __CRTL_VER and __VMS_VER.
18991 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
18992 and vms_c_get_vms_ver.
18993 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
18995 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
18996 (VMS_DEFAULT_VMS_VER): Define.
18997 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
18998 (VMS_DEFAULT_VMS_VER): Define.
19000 2012-03-16 Richard Guenther <rguenther@suse.de>
19002 * tree-vect-loop.c (get_initial_def_for_induction): Use
19003 build_constructor directly.
19004 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
19005 build_vector_from_val.
19006 * tree.c (build_vector_from_val): Avoid creating a constructor
19007 first when we want a constant vector.
19009 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19011 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
19013 2012-03-16 Richard Guenther <rguenther@suse.de>
19015 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
19016 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
19017 (struct tree_vector): Remove elements member, add variable size
19019 (build_vector_stat): Declare.
19020 (build_vector): Define in terms of build_vector_stat.
19021 * tree.c (build_vector): Rename to ...
19022 (build_vector_stat): ... this. Take array of trees as parameter.
19023 (build_vector_from_ctor): Adjust.
19024 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
19025 initializer_zerop): Adjust.
19026 * cfgexpand.c (expand_debug_expr): Likewise.
19027 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
19028 const_vector_from_tree): Likewise.
19029 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
19030 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
19031 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
19032 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
19033 (lto_input_ts_vector_tree_pointers): Adjust.
19034 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
19035 (write_ts_vector_tree_pointers): Adjust.
19036 * varasm.c (const_hash_1, compare_constant, copy_constant,
19037 output_constant): Adjust.
19038 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
19039 * print-tree.c (print_node): Adjust.
19040 * tree-pretty-print.c (dump_generic_node): Adjust.
19041 * tree-vect-generic.c (uniform_vector_p, vector_element,
19042 lower_vec_perm): Adjust.
19043 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
19044 * tree-vect-slp.c (vect_get_constant_vectors,
19045 vect_transform_slp_perm_load): Adjust.
19046 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
19047 * expmed.c (make_tree): Adjust.
19048 * config/i386/i386.c (ix86_expand_builtin): Adjust.
19049 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
19050 and implementation.
19051 (sparc_fold_builtin): Adjust.
19053 2012-03-16 Tristan Gingold <gingold@adacore.com>
19055 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
19056 * config/vms/vms-stdint.h: New file.
19058 2012-03-16 Tristan Gingold <gingold@adacore.com>
19060 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
19061 (ia64-hp-*vms*): Replaced by ...
19062 (*-*-*vms*): ... This new entry.
19064 2012-03-15 Jakub Jelinek <jakub@redhat.com>
19067 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
19068 (ix86_expand_vec_perm_const_1): Use it.
19071 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
19072 (avx2_permv4df): Remove.
19073 (avx2_permv4di): Macroize into...
19074 (avx2_perm<mode>): ... this using VI8F_256 iterator.
19075 (avx2_permv4di_1): Macroize into...
19076 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
19078 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
19080 * combine.c (apply_distributive_law): Do not distribute SUBREG.
19082 2012-03-15 Ira Rosen <irar@il.ibm.com>
19083 Ulrich Weigand <ulrich.weigand@linaro.org>
19085 * tree-vect-patterns.c (widened_name_p): Rename to ...
19086 (type_conversion_p): ... this. Add new argument to determine
19087 if it's a promotion or demotion operation. Check for
19088 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
19089 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
19091 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
19092 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
19094 (vect_recog_mixed_size_cond_pattern): Likewise and allow
19095 non-constant then and else clauses.
19097 2012-03-15 Ira Rosen <irar@il.ibm.com>
19098 Ulrich Weigand <ulrich.weigand@linaro.org>
19100 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
19101 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
19102 vect_pattern_recog.
19103 * tree-vect-patterns.c (widened_name_p): Pass basic block
19104 info to vect_is_simple_use.
19105 (vect_recog_dot_prod_pattern): Fail for basic blocks.
19106 (vect_recog_widen_sum_pattern): Likewise.
19107 (vect_handle_widen_op_by_const): Support basic blocks.
19108 (vect_operation_fits_smaller_type,
19109 vect_recog_over_widening_pattern): Likewise.
19110 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
19111 Update call to vect_is_simple_use.
19112 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
19114 (check_bool_pattern): Add an argument, update call to
19115 vect_is_simple_use and the recursive calls.
19116 (vect_recog_bool_pattern): Update relevant function calls.
19118 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
19119 (vect_pattern_recog_1): Check for reduction only in loops.
19120 (vect_pattern_recog): Add new argument. Support basic blocks.
19121 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
19122 info to vect_is_simple_use_1.
19123 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
19124 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
19126 2012-03-15 Jakub Jelinek <jakub@redhat.com>
19127 Andrew Pinski <apinski@cavium.com>
19129 PR middle-end/52592
19130 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
19131 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
19132 calls instead of __builtin_ir{int,ound}*.
19134 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19136 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
19139 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19141 * config.gcc (target_type_format_char): New. Document it. Set it for
19143 * configure.ac (gnu_unique_option): Use target_type_format_char
19144 in test. Comment rationale.
19145 * configure: Regenerate .
19147 2012-03-15 Jakub Jelinek <jakub@redhat.com>
19149 PR tree-optimization/52267
19150 * tree-vrp.c (masked_increment): New function.
19151 (register_edge_assert_for_2): Derive ASSERT_EXPRs
19152 from (X & CST1) cmp CST2 tests.
19154 2012-03-15 Richard Guenther <rguenther@suse.de>
19156 PR middle-end/52580
19157 * tree-data-ref.c (subscript_dependence_tester_1): Check
19158 all dimensions for non-conflicting access functions.
19160 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
19163 * doc/invoke.texi [C++ Language Options]: Document
19164 -ftemplate-backtrace-limit.
19166 2012-03-15 Tristan Gingold <gingold@adacore.com>
19168 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
19169 before a parameter.
19171 2012-03-15 Tristan Gingold <gingold@adacore.com>
19173 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
19174 use DW_OP_call_frame_cfa.
19176 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
19179 * config/i386/i386-opts.h (pmode): New.
19181 * config/i386/i386.c (ix86_option_override_internal): Properly
19182 check and set ix86_pmode.
19184 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
19186 * config/i386/i386.opt (maddress-mode=): New.
19188 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
19190 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19192 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
19193 (dwarf2out_do_cfi_asm): Likewise.
19194 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
19196 (add_data_member_location_attribute): Likewise.
19197 (gen_array_type_die): Likewise.
19198 (gen_subprogram_die): Likewise.
19199 (gen_producer_string): Likewise.
19200 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
19201 Remove MIPS_DEBUGGING_INFO handling.
19202 (sdb_debug_hooks): Likewise.
19203 (sdbout_begin_block): Likewise.
19204 (sdbout_end_block): Likewise.
19205 (sdbout_begin_prologue): Likewise.
19206 (sdbout_start_source_file): Likewise.
19207 (sdbout_end_source_file): Likewise.
19208 (sdbout_init): Likewise.
19209 * system.h (MIPS_DEBUGGING_INFO): Poison.
19211 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19213 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
19214 (alpha_file_start) [MS_STAMP]: Remove.
19216 * config/alpha/elf.h (TARGET_GAS): Remove.
19217 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
19218 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
19219 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
19220 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
19221 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
19222 (alpha*-*-freebsd*): Likewise.
19223 (alpha*-*-netbsd*): Likewise.
19224 (alpha*-*-openbsd*): Likewise.
19225 (alpha*-*-*): Remove target_cpu_default2.
19226 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
19228 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
19229 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
19230 * config/alpha/alpha.c (print_operand): Always assume
19231 TARGET_AS_SLASH_BEFORE_SUFFIX.
19232 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
19233 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
19234 ("*builtin_setjmp_receiver_er_1"): Remove.
19235 * config/alpha/alpha.opt (malpha-as): Remove.
19237 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
19239 Remove DEC Unix reference.
19241 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
19242 (EXTENDED_COFF): Remove.
19243 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
19244 (EXTENDED_COFF): Don't undef.
19245 * config/alpha/alpha.c (alpha_file_start): Always assume
19247 Don't set targetm.asm_file_start_file_directive.
19248 [!OBJECT_FORMAT_ELF]: Remove.
19249 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
19251 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
19252 (DBX_DEBUGGING_INFO): Remove.
19253 (MIPS_DEBUGGING_INFO): Remove.
19254 (PREFERRED_DEBUGGING_TYPE): Remove.
19255 (DBX_OUTPUT_SOURCE_LINE): Remove.
19256 (SDB_OUTPUT_SOURCE_LINE): Remove.
19257 (DBX_CONTIN_LENGTH): Remove.
19258 (NO_DBX_FUNCTION_END): Remove.
19259 (ASM_STABS_OP): Remove.
19260 (ASM_STABN_OP): Remove.
19261 (ASM_STABD_OP): Remove.
19262 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
19263 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
19264 (PUT_SDB_DEF): Remove.
19265 (PUT_SDB_PLAIN_DEF): Remove.
19266 (PUT_SDB_TYPE): Remove.
19267 (sdb_label_count): Remove.
19268 (PUT_SDB_BLOCK_START): Remove.
19269 (PUT_SDB_BLOCK_END): Remove.
19270 (PUT_SDB_FUNCTION_START): Remove.
19271 (PUT_SDB_FUNCTION_END): Remove.
19272 (PUT_SDB_EPILOGUE_END): Remove.
19273 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
19274 (MIPS_DEBUGGING_INFO): Don't undef.
19275 (DBX_DEBUGGING_INFO): Don't undef.
19276 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
19277 (MIPS_DEBUGGING_INFO): Don't undef.
19278 (DBX_DEBUGGING_INFO): Don't undef.
19279 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
19280 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
19282 (alpha_start_function): Likewise.
19283 (sdb_label_count): Remove.
19284 (alpha_output_filename): Remove DBX_DEBUG handling.
19285 (alpha_file_start): Likewise.
19287 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19289 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
19290 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
19291 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
19293 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
19294 (ld_tls_support): Remove Solaris 8 references.
19295 (lwp_dir, lwp_spec): Remove support for alternate thread library.
19296 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
19297 * configure: Regenerate.
19298 * config.in: Regenerate.
19300 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
19301 * config/i386/sol2.h: Remove Solaris 8 references.
19303 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
19304 (i?86-*-solaris2.9): ... this.
19305 Remove Solaris 8 references.
19306 (Specific, *-*-solaris2*): Document Solaris 8 removal.
19307 Remove Solaris 8 references.
19309 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19311 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
19312 (mips-sgi-irix6.5*): Remove.
19313 * config.host (mips-sgi-irix*): Remove.
19314 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
19315 (set_have_as_tls): Remove *-*-irix6*.
19316 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
19317 * configure: Regenerate.
19319 * config/mips/iris6.h: Remove.
19320 * config/mips/iris6.opt: Remove.
19321 * config/mips/t-irix6: Remove.
19323 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
19324 (TARGET_IRIX6): Remove.
19325 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
19326 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
19327 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
19329 (mips_file_start): Likewise.
19330 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
19332 * config/mips/driver-native.c [__sgi__]: Remove.
19333 (host_detect_local_cpu) [__sgi__]: Remove.
19335 * config/mips/gnu-user.h: Remove iris5.h reference.
19337 * config/mips/mips-modes.def: Remove IRIX 6 reference.
19338 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
19339 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
19342 * gcc.c (main): Move asm_debug initialization ...
19343 (asm_debug): ... here.
19345 * ginclude/stddef.h (__STDDEF_H__): Don't define.
19347 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
19348 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
19349 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
19350 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
19351 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
19352 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
19354 * doc/tm.texi: Regenerate.
19356 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
19358 (MIPS Options, -march): Remove IRIX reference.
19359 * doc/install.texi (Binaries, SGI IRIX): Remove.
19360 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
19362 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
19364 2012-03-14 Martin Jambor <mjambor@suse.cz>
19366 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
19367 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
19368 (expand_expr_real_1): Do not handle misalignment if modifier is
19371 2012-03-14 Richard Guenther <rguenther@suse.de>
19373 PR middle-end/52584
19374 * tree-vect-generic.c (type_for_widest_vector_mode): Take
19375 element type instead of mode, use build_vector_type_for_mode
19376 instead of the langhook, build a vector of proper signedness.
19377 (expand_vector_operations_1): Adjust.
19379 2012-03-14 Richard Guenther <rguenther@suse.de>
19381 PR middle-end/52582
19382 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
19383 a cgraph node for a FUNCTION_DECL that comes from a constructor.
19384 (gimple_get_virt_method_for_binfo): Likewise.
19386 2012-03-14 Richard Guenther <rguenther@suse.de>
19388 PR tree-optimization/52571
19389 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
19390 flag_section_anchors check ...
19391 (vect_can_force_dr_alignment_p): ... here. Do not re-align
19392 DECL_COMMON variables.
19394 2012-03-14 Richard Guenther <rguenther@suse.de>
19396 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
19397 * stor-layout.c (start_bitfield_representative): New function.
19398 (finish_bitfield_representative): Likewise.
19399 (finish_bitfield_layout): Likewise.
19400 (finish_record_layout): Call finish_bitfield_layout.
19401 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
19402 for QUAL_UNION_TYPE fields.
19403 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
19404 Stream DECL_BIT_FIELD_REPRESENTATIVE.
19405 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
19407 PR middle-end/52080
19408 PR middle-end/52097
19409 PR middle-end/48124
19410 * expr.c (get_bit_range): Unconditionally extract bitrange
19411 from DECL_BIT_FIELD_REPRESENTATIVE.
19412 (expand_assignment): Adjust call to get_bit_range.
19414 2012-03-14 Richard Guenther <rguenther@suse.de>
19416 PR middle-end/52578
19417 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
19418 the outermost conversion is a sign-change only.
19419 (fold_binary_loc): Disregard widening and sign-changing
19420 conversions when we determine if two variables are equal
19422 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
19423 (T1)x if the outermost conversion is a sign-change only.
19425 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
19428 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
19430 * config/i386/predicates.md (constant_call_address_operand): Declare
19431 as special predicate. Update all uses.
19433 2012-03-13 Jakub Jelinek <jakub@redhat.com>
19436 * c-parser.c (c_parser_postfix_expression)
19437 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
19439 * config/i386/smmintrin.h: Avoid /* within a comment.
19440 * config/i386/nmmintrin.h: Likewise.
19442 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
19444 * config/i386/i386.md (xbegin): Remove constraint from expander.
19446 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
19448 * config/i386/predicates.md (constant_call_address_operand): Declare
19449 as special predicate. Update all uses.
19450 * config/i386/i386.md: Remove mode from constant_call_address_operand
19452 * config/i386/i386.c (ix86_output_call_insn): Call
19453 constant_call_address_operand with VOIDmode.
19455 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
19457 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
19458 AND zero extended address correctly.
19460 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
19462 * config/i386/predicates.md (tls_symbolic_operand): Declare as
19464 (tls_modbase_operand): Ditto.
19465 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
19466 tls_modbase_operand predicates.
19468 2012-03-13 Martin Jambor <mjambor@suse.cz>
19470 * expr.c (expand_assignment): Handle misaligned scalar writes to
19471 memory through top-level MEM_REFs by calling store_bit_field.
19473 2012-03-13 Richard Guenther <rguenther@suse.de>
19475 PR middle-end/52134
19476 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
19477 if Y is a constant multiple of 1 << CST.
19479 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
19482 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
19483 offset (size) to a value the insns can deal with.
19484 (expand_epilogue): Ditto.
19486 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
19488 * config/arm/neon.ml (ops): Fixup expected instructions for
19489 unsigned vector compares.
19491 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
19493 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
19494 addresses only when %reg is not in word mode.
19496 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19498 * config/microblaze/microblaze.md: Fix typo.
19499 * tree-if-conv.c: Likewise.
19500 * tree-vect-patterns.c: Likewise.
19502 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19504 * config.gcc (extra_passes): Remove.
19505 * configure.ac (extra_passes): Don't substitute.
19506 * configure: Regenerate.
19507 * Makefile.in (EXTRA_PASSES): Remove.
19508 (GCC_PASSES): Remove $(EXTRA_PASSES).
19509 (MOSTLYCLEANFILES): Likewise.
19510 (native): Likewise.
19511 (install-common): Likewise.
19513 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
19515 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
19516 * config/i386/i386.c (ix86_decompose_address): Use
19517 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
19518 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
19519 thread pointer to a register.
19521 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
19523 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
19524 on tls_symbolic_operand.
19525 (tls_global_dynamic_64_<mode>): Likewise.
19527 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
19530 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
19531 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
19533 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
19536 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
19537 type from reg_class_t to enum reg_class.
19538 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
19540 2012-03-12 Andrew Pinski <apinski@cavium.com>
19542 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
19543 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
19544 (value_replacement): Likewise.
19545 (empty_block_p): Check also if the PHIs for the block are empty.
19547 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
19550 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
19551 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
19552 r184615 from 2012-02-28.
19554 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
19556 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
19557 (ix86_gen_tls_local_dynamic_base_64): Likewise.
19558 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
19559 and ix86_gen_tls_local_dynamic_base_64.
19560 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
19561 ix86_gen_tls_local_dynamic_base_64.
19563 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
19564 (*tls_global_dynamic_64_<mode>): This.
19565 (tls_global_dynamic_64): Renamed to ...
19566 (tls_global_dynamic_64_<mode>): This.
19567 (*tls_local_dynamic_base_64): Renamed to ...
19568 (*tls_local_dynamic_base_64_<mode>): This.
19569 (tls_local_dynamic_base_64): Renamed to ...
19570 (tls_local_dynamic_base_64_<mode>): This.
19572 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
19574 * config/i386/i386.c (ix86_option_override_internal): Properly
19575 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
19576 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
19577 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
19578 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
19580 * config/i386/sse.md (sse3_monitor64): Renamed to ...
19581 (sse3_monitor64_<mode>): This.
19583 2012-03-12 Tristan Gingold <gingold@adacore.com>
19585 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
19586 (ia64_function_arg_advance): Ditto.
19588 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19590 * config.gcc (mips*-*-openbsd*): Remove.
19591 * config/mips/openbsd.h: Remove.
19592 * config/mips/sdb.h: Remove.
19594 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
19595 * config/mips/mips.c (sdb_label_count): Remove.
19596 (mips_debugger_offset): Remove #if 0 code.
19597 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
19598 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
19600 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19602 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
19603 binutils reference.
19604 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
19605 Update binutils references.
19606 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
19607 Update binutils reference.
19608 Update Sun as/GNU ld caveat.
19609 Document binutils largefile requirement for LTO plugin.
19610 Remove reference to alternate libpthread.
19612 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19614 * config.gcc (alpha*-dec-osf5.1*): Remove.
19615 * config.host (alpha*-dec-osf*): Remove.
19616 * configure.ac (*-*-osf*): Remove.
19617 (alpha*-dec-osf*): Remove.
19618 * configure: Regenerate.
19620 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
19621 config/alpha/va_list.h, config/alpha/x-osf: Remove.
19623 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
19624 * config/alpha/alpha.c (struct machine_function): Update comment.
19625 (alpha_start_function): Remove Tru64 UNIX as handling for
19627 * config/alpha/alpha.md ("exception_receiver"): Remove
19628 TARGET_LD_BUGGY_LDGP.
19629 ("*exception_receiver_2"): Likewise.
19630 * except.c (finish_eh_generation): Remove Tru64 reference.
19631 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
19632 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
19633 * target.def (handle_pragma_extern_prefix): Remove.
19635 * Makefile.in (mips-tfile.o-warn): Remove.
19636 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
19637 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
19638 * mips-tdump.c, mips-tfile.c: Remove.
19640 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
19642 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
19643 (Specific, alpha*-dec-osf5.1): Note removal.
19644 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
19646 * doc/tm.texi: Regenerate.
19647 * doc/trouble.texi (Cross-Compiler Problems): Remove.
19649 2012-03-12 Richard Guenther <rguenther@suse.de>
19651 * config/arm/arm.c (neon_dereference_pointer): Do not call
19652 covert during RTL expansion.
19654 2012-03-12 Tristan Gingold <gingold@adacore.com>
19656 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
19657 Options. Mention -mpointer-size.
19659 2012-03-12 Richard Guenther <rguenther@suse.de>
19661 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
19662 build_nonstandard_integer_type.
19664 2012-03-12 Richard Guenther <rguenther@suse.de>
19666 * tree.c (signed_or_unsigned_type_for): Use
19667 build_nonstandard_integer_type.
19668 (signed_type_for): Adjust documentation.
19669 (unsigned_type_for): Likewise.
19670 * tree-pretty-print.c (dump_generic_node): Use standard names
19671 for non-standard integer types if available.
19673 2012-03-12 Tristan Gingold <gingold@adacore.com>
19675 * config/vms/vms.opt: Add vms-opts.h header.
19676 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
19678 (-mvms-return-codes): Document.
19679 (-mpointer-size): New option.
19680 (vms_pointer_size): Add enumeration.
19681 * config/vms/vms-opts.h: New file.
19682 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
19683 __INITIAL_POINTER_SIZE.
19684 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
19685 (C_COMMON_OVERRIDE_OPTIONS): Define.
19686 (DWARF2_ADDR_SIZE): Define.
19687 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
19688 * config/vms/vms-protos.h (vms_c_common_override_options):
19690 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
19691 if -mno-pointer-size.
19692 (vms_c_common_override_options): New function.
19693 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
19694 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
19695 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
19696 and flag_vms_pointer_size.
19697 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
19698 * config.gcc (*-*-*vms*): Define xm_file.
19699 (alpha*-dec-*vms*): Do not define xm_file.
19700 (alpha64-dec-*vms*): Remove.
19701 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
19704 2012-03-12 Jakub Jelinek <jakub@redhat.com>
19706 PR tree-optimization/51721
19707 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
19708 if (int) unsvar cmp CST.
19710 2012-03-12 Richard Guenther <rguenther@suse.de>
19712 * tree-sra.c (create_access_replacement): Only rename the replacement
19713 if we can rewrite it into SSA form. Properly mark register typed
19714 replacements that we cannot rewrite with TREE_ADDRESSABLE.
19715 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
19716 for aggregate or BLKmode results.
19718 2012-03-12 Jakub Jelinek <jakub@redhat.com>
19720 PR tree-optimization/52533
19721 * tree-vrp.c (register_edge_assert_for_2): Use double_int
19722 type for mask, only handle shifts by non-zero in-range
19723 shift count, for LE_EXPR and GT_EXPR if new_val is
19724 maximum, don't add the assertion.
19726 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
19728 * doc/invoke.texi: Document -mrtm option.
19729 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
19730 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
19731 (ix86_handle_option): Handle OPT_mrtm.
19732 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
19734 (x86_64-*-*): Ditto.
19735 * i386-builtin-types.def (INT_FTYPE_VOID): New.
19736 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19738 (ix86_target_string): Define -mrtm option.
19740 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
19742 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
19743 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
19744 IX86_BUILTIN_XTEST.
19745 (bdesc_special_args): Ditto.
19746 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
19747 (ix86_expand_special_args_builtin): Handle new built-in type.
19748 (ix86_expand_builtin): Handle XABORT instruction.
19749 * config/i386/i386.h (TARGET_RTM): New.
19750 * config/i386/i386.md (UNSPECV_XBEGIN): New.
19751 (UNSPECV_XEND): Ditto.
19752 (UNSPECV_XABORT): Ditto.
19753 (UNSPECV_XTEST): Ditto.
19760 * config/i386/i386.opt (mrtm): New.
19761 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
19762 * config/i386/rtmintrin.h: New header.
19763 * config/i386/xtestintrin.h: Ditto.
19765 2012-03-12 Tristan Gingold <gingold@adacore.com>
19767 * ginclude/stddef.h: Adjust previous patch.
19768 Use __VMS__ instead of VMS.
19770 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
19772 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
19773 Also convert sequences with CC setting arithmetic instruction.
19775 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
19777 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
19778 from C Language Options to Preprocessor Options.
19779 (C Dialect Options): Move -no-integrated-cpp documentation
19781 (Preprocessor Options): ...to here. Rewrite the description
19782 so it makes more sense, and remove discussion of merging front ends.
19784 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
19786 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
19788 (ix86_expand_setmem): Likewise.
19790 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
19792 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
19795 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
19797 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
19798 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
19800 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
19802 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
19804 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
19806 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
19809 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
19810 Uros Bizjak <ubizjak@gmail.com>
19812 * config/i386/predicates.md (call_insn_operand): Allow
19813 constant_call_address_operand in Pmode only.
19814 (sibcall_insn_operand): Ditto.
19815 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
19816 (*call_vzeroupper): Ditto.
19818 (*sibcall_vzeroupper): Ditto.
19819 (*call_value): Ditto.
19820 (*call_value_vzeroupper): Ditto.
19821 (*sibcall_value): Ditto.
19822 (*sibcall_value_vzeroupper): Ditto.
19823 (*indirect_jump): Ditto.
19824 (*tablejump_1): Ditto.
19825 (indirect_jump): Convert memory address to word mode for TARGET_X32.
19826 (tablejump): Ditto.
19827 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
19830 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
19833 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
19834 Use movrt_negc instead of negc pattern for non-SH2A.
19835 (*movnegt): Remove.
19836 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
19838 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
19840 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
19841 if Pmode != word_mode.
19842 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
19843 Pmode == SImode for TARGET_X32.
19845 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
19846 (tls_initial_exec_x32): Likewise.
19848 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
19850 PR rtl-optimization/52528
19851 * combine.c (can_combine_p): Add setting of subst_low_luid
19852 before call to expand_field_assignment().
19854 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
19856 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
19857 and related program names.
19859 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
19861 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
19863 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
19866 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
19867 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
19868 to set code to 'q'.
19869 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
19870 (*movdi_internal_rex64): Use %E operand modifier for lea.
19871 (*movsi_internal): Ditto.
19873 (*lea<mode>_2): Ditto.
19874 (*lea_{3,4,5,6}_zext): Ditto.
19875 (*tls_global_dynamic_32_gnu): Ditto.
19876 (*tls_global_dynamic_64): Ditto.
19877 (*tls_dynamic_gnu2_lea_32): Ditto.
19878 (*tls_dynamic_gnu2_lea_64): Ditto.
19879 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
19881 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
19883 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
19884 redefine to be NULL if the current bit-size is different from the
19885 configured bit-size.
19887 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
19888 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
19889 set the default tuning. Add asserts to make sure the cpu and tune
19890 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
19891 test whether the index is set, instead of > 0.
19892 (rs6000_file_start): Do not reset the default cpu if the current
19893 bit-size is different from the configured bit-size.
19895 2012-03-09 Tristan Gingold <gingold@adacore.com>
19897 * config/vms/vms-crtlmap.map: Add comments.
19898 Add entries needed to build Ada RTS.
19900 2012-03-09 Tristan Gingold <gingold@adacore.com>
19902 * ginclude/stddef.h: Do not define __size_t on VMS.
19904 2012-03-09 Tristan Gingold <gingold@adacore.com>
19906 * c-tree.h (c_default_pointer_mode): New variable.
19907 * c-decl.c (c_default_pointer_mode): New variable.
19908 (c_build_pointer_type): New function.
19909 (grokdeclarator): Call c_build_pointer_type instead
19910 of build_pointer_type.
19912 * config/vms/vms-c.c: Include c-tree.h
19913 (saved_pointer_mode): New variable.
19914 (handle_pragma_pointer_size): New function.
19915 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
19916 (vms_c_register_pragma): Register __pointer_size and
19917 __required_pointer_size pragmas.
19919 2012-03-09 Tristan Gingold <gingold@adacore.com>
19921 * config/vms/vms-c.c (vms_construct_include_filename): New function.
19922 (vms_c_register_includes): Reference it.
19924 2012-03-09 Andrew Pinski <apinski@cavium.com>
19926 PR middle-end/51988
19927 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
19928 print_generic_expr.
19929 (tree_ssa_phiopt_worker): Go through all the PHIs for
19930 value_replacement instead of just the singleton one.
19931 (value_replacement): Change return type to int. Return 0 instead of
19933 Allow the middle basic block to contain more than just the defining
19935 Handle non empty middle basic blocks.
19936 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
19938 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
19940 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
19941 array reference and component reference.
19942 (analyze_scalar_evolution_for_address_of): New.
19944 2012-03-08 Jie Zhang <jzhang918@gmail.com>
19947 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
19948 (hwloop_pattern_reg): Fix set but not used warning.
19949 (bfin_reorg_loops): Remove unused parameter.
19950 (bfin_reorg): Update use of bfin_reorg_loops.
19952 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
19954 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
19955 with integer parameters in registers.
19956 (gen_push): Push register in word_mode instead of Pmode.
19957 (ix86_emit_save_regs): Likewise.
19958 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
19959 (gen_pop): Pop register in word_mode instead of Pmode.
19960 (ix86_emit_restore_regs_using_pop): Likewise.
19961 (ix86_expand_prologue): Replace Pmode with word_mode for push
19962 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
19963 restore RAX and R10 in word_mode.
19964 (ix86_emit_restore_regs_using_mov): Restore integer registers
19966 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
19968 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
19969 (ix86_split_long_move): Likewise.
19971 * config/i386/i386.md (W): New.
19972 (*push<mode>2_prologue): Replace :P with :W.
19973 (*pop<mode>1): Likewise.
19974 (*pop<mode>1_epilogue): Likewise.
19975 (push/pop peephole2): Use word_mode scratch registers.
19977 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
19979 * config/i386/predicates.md (indirect_branch_operand): Simplify.
19981 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
19983 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
19984 for constants in [-63,63].
19986 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
19990 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
19992 * config/i386/i386.c (ix86_print_operand_address): Only handle
19993 zero-extended DImode addresses.
19995 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19997 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
19998 * configure: Regenerate.
20000 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
20003 * config/avr/avr.c (avr_mem_clobber): New static function.
20004 (avr_expand_delay_cycles): Add memory clobber operand to
20005 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
20006 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
20007 (enable_interrupt, disable_interrupt): New expander.
20008 (nopv, sleep, wdr): New expanders.
20009 (delay_cycles_1): Add memory clobber.
20010 (delay_cycles_2): Add memory clobber.
20011 (delay_cycles_3): Add memory clobber.
20012 (delay_cycles_4): Add memory clobber.
20013 (cli_sei): New insn from former "enable_interrupt",
20014 "disable_interrupt" with memory clobber.
20015 (*wdt): New insn from former "wdt" with memory clobber.
20016 (*nopv): Similar, but for "nopv".
20017 (*sleep): Similar, but for "sleep".
20019 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
20020 Kaz Kojima <kkojima@gcc.gnu.org>
20023 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
20024 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
20025 (SUBTARGET_OVERRIDE_OPTIONS): Define.
20027 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
20029 * config/i386/predicates.md (x86_64_zext_general_operand): New.
20030 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
20031 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
20033 2012-03-07 Walter Lee <walt@tilera.com>
20035 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
20036 REG_CFA_* notes for the stack pointer.
20037 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
20038 EH_RETURN_STACKADJ_RTX.
20039 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
20040 generate REG_CFA_* notes for the stack pointer.
20041 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
20042 by EH_RETURN_STACKADJ_RTX.
20044 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
20046 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
20047 when __AVR_3_BYTE_PC__ is defined.
20049 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
20051 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
20052 (ix86_print_operand): Handle '^'.
20053 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
20054 using P mode iterator. Add %^ to asm template to conditionally emit
20056 (*rep_movdi_rex64): Ditto.
20057 (*strsetdi_rex_1): Ditto.
20058 (*rep_stosdi_rex64): Ditto.
20059 (*strmov{si,hi,qi}_1): Add %^ to asm template to
20060 conditionally emit addr32 prefix.
20061 (*rep_mov{si,qi}): Ditto.
20062 (*strset{si,hi,qi}): Ditto.
20063 (*rep_stos{si,qi}): Ditto.
20064 (*cmpstrnqi_nz_1): Ditto.
20065 (*cmpstrnqi_1): Ditto.
20066 (*strlenqi_1): Ditto.
20068 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
20070 * config/i386/i386.c (function_value_64): Return pointers in
20071 word_mode instead of Pmode.
20072 (ix86_promote_function_mode): Likewise.
20074 2012-03-07 Richard Guenther <rguenther@suse.de>
20076 * coverage.c (get_gcov_type): Use type_for_mode.
20077 (get_gcov_unsigned_t): Likewise.
20078 * expr.c (store_constructor): Use type_for_mode.
20079 (try_casesi): Likewise.
20080 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
20081 (add_standard_iv_candidates): Use standard type trees.
20082 * dojump.c (do_jump): Remove dead code.
20084 2012-03-07 Richard Guenther <rguenther@suse.de>
20086 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
20088 2012-03-07 Richard Guenther <rguenther@suse.de>
20090 * convert.c (strip_float_extensions): Move ...
20091 * tree.c (strip_float_extensions): ... here.
20093 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
20096 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
20098 2012-03-07 Richard Guenther <rguenther@suse.de>
20100 * omp-low.c (extract_omp_for_data): Use signed_type_for.
20101 (expand_omp_for_generic): Likewise.
20102 (expand_omp_for_static_nochunk): Likewise.
20103 (expand_omp_for_static_chunk): Likewise.
20104 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
20105 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
20106 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
20107 Use unsigned_type_for.
20108 (vect_create_cond_for_align_checks): Use signed_type_for.
20110 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
20112 PR rtl-optimization/52203
20113 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
20114 all callers to pass NULL except ...
20115 (reset_sched_cycles_in_current_ebb): ... here, save the value
20116 in new variable 'empty'. Increase issue_rate only for
20119 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
20122 * Makefile.in: Let install-gcc-ar depend on installdirs,
20123 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
20124 Don't double canonicalize if cross-compiling.
20126 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
20129 * gcc/config/avr/avr.c (expand_epilogue): Fix order of restoration
20130 to: RAMPZ, RAMPY, RAMPX, RAMPD.
20131 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
20133 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
20136 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
20138 * config/avr/avr.md (xload_8): Adjust insn length.
20140 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
20143 * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
20144 if RAMPZ affects reading from RAM.
20146 2012-03-07 Richard Guenther <rguenther@suse.de>
20150 * doc/invoke.texi (Precompiled Headers): Remove sentence that
20151 suggests you can include PCHs from inside another header.
20153 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
20155 PR middle-end/52515
20156 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
20158 2012-03-07 Kai Tietz <ktietz@redhat.com>
20160 * doc/invoke.texi (fwritable-relocated-rdata): Document
20161 new Cygwin/MinGW target option.
20162 * config/i386/winnt.c (i386_pe_unique_section): Ignore
20163 reloc if flag -fwritable-relocated-rdata is not set.
20164 (i386_pe_section_type_flags): Likewise.
20165 * config/i386/cygming.opt (fwritable-relocated-rdata):
20166 Add new flag variable flag_writable_rel_rdata.
20168 2012-03-07 Richard Guenther <rguenther@suse.de>
20170 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
20171 precision against gimple constraints.
20173 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
20175 PR middle-end/52372
20176 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
20178 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
20179 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
20181 (init_emit_regs): Move associated initialization to...
20182 (init_emit_once): ...here.
20184 2012-03-06 Richard Henderson <rth@redhat.com>
20186 * config/m68k/m68k.h (ISA_HAS_TAS): New.
20187 * config/m68k/sync.md (atomic_test_and_set): Use it.
20188 (atomic_test_and_set_1): Likewise.
20190 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
20193 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
20194 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
20195 (vector_ltgt<mode>): Likewise.
20196 (vector_ordered<mode>): Likewise.
20197 (vector_unordered<mode>): Likewise.
20198 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
20200 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
20202 * trans-mem.c: New typedef for tm_region_p.
20203 Define vector types for tm_region_p.
20204 (tm_region_init): Replace region_worklist to a vector called
20207 2012-03-06 Richard Guenther <rguenther@suse.de>
20209 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
20210 MEM_REF with constant pointer operand.
20212 2012-03-06 Richard Guenther <rguenther@suse.de>
20214 PR middle-end/52493
20215 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
20217 2012-03-06 Tristan Gingold <gingold@adacore.com>
20219 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
20220 (external_model_kind): Improve documentation.
20221 (vms_pragma_extern_model): Handle relaxed_redef.
20222 (vms_c_register_pragma): Allow expansion for nomember_alignment.
20224 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
20226 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
20227 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
20228 Some more notes on EIND usage and reorder EIND subsection.
20230 2012-03-06 Tristan Gingold <gingold@adacore.com>
20232 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
20233 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
20235 2012-03-06 Tristan Gingold <gingold@adacore.com>
20237 * config/vms/t-vmsnative (version): Define.
20238 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
20240 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
20242 PR rtl-optimization/52250
20243 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
20244 to put note list into. Unconditionally call move_bb_info.
20245 (move_bb_info): Do not assert the blocks being in the same region,
20246 just drop the note list if they are not.
20248 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
20251 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
20252 and use unified expansion logic.
20253 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
20254 closer to the existing movt insn.
20255 (negc): Rename insn to *negc. Add new expander.
20256 (movnegt): Use xor pattern for T bit negation. Reserve helper
20257 constant for negc pattern.
20258 (*movnegt): New insn and splitter.
20260 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
20262 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
20265 2012-03-05 Richard Henderson <rth@redhat.com>
20267 * genemit.c (main): Include "target.h" in insn-emit.c.
20268 * Makefile.in (insn-emit.o): Depend on TARGET_H.
20269 * config/sh/sync.md (atomic_test_and_set): Reference
20270 targetm.atomic_test_and_set_trueval instead of
20271 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
20273 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
20275 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
20278 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
20280 * langhooks.c (add_builtin_type): New function.
20281 * langhooks.h (add_builtin_type): Export it.
20282 * config/mep/mep.c (mep_init_builtins): Use it.
20283 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
20285 2012-03-05 Jakub Jelinek <jakub@redhat.com>
20288 * tree.h (BLOCK_SAME_RANGE): Define.
20289 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
20290 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
20291 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
20292 isn't equal to supercontext fragment's fragment chain.
20293 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
20295 (blocks_nreverse_all): Likewise.
20296 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
20297 BLOCK_SUPERCONTEXT to supercontext fragment instead of
20298 supercontext fragment's fragment origin.
20299 * dwarf2out.c (add_high_low_attributes): If stmt has the same
20300 range as its parent (or parents thereof etc.), use the parent's
20301 DW_AT_ranges value instead of creating a new .debug_ranges range.
20303 2012-03-05 Richard Henderson <rth@redhat.com>
20306 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
20307 * omp-low.c (expand_omp_atomic): Assume anything aligned to
20308 BIGGEST_ALIGNMENT is aligned.
20310 2012-03-05 Richard Henderson <rth@redhat.com>
20312 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
20313 * config/sh/sh.c: ... here.
20315 2012-03-05 Richard Henderson <rth@redhat.com>
20318 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
20319 instead of calling negqi2 directly.
20321 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
20323 PR middle-end/52463
20324 * trans-mem.c (tm_region_init): Use last_basic_block.
20326 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
20328 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
20329 * config/sh/sync.md (atomic_test_and_set): New expander.
20330 (tasb, atomic_test_and_set_soft): New insns.
20331 * config/sh/sh.opt (menable-tas): New option.
20332 * doc/invoke.texi (SH Options): Document it.
20334 2012-03-05 Richard Guenther <rguenther@suse.de>
20336 * cfgloop.c (verify_loop_structure): Verify dominators before
20338 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
20339 dominators from here.
20340 * graphite-scop-detection.c (create_sese_edges): Likewise.
20341 * loop-doloop.c (doloop_optimize_loops): Likewise.
20342 * loop-init.c (loop_optimizer_init): Likewise.
20343 * loop-unroll.c (unroll_and_peel_loops): Likewise.
20344 * loop-unswitch.c (unswitch_loops): Likewise.
20345 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
20346 * tree-parloops.c (parallelize_loops): Likewise. Verify
20347 only when checking is enabled.
20348 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
20350 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
20352 * genautomata.c (parse_automata_opt): New static function.
20353 (initiate_automaton_gen): Remove all option handling code. Remove
20354 argc argument. All callers changed.
20355 (main): Call init_rtx_reader_args_cb with the new function as argument.
20357 2012-03-05 Richard Guenther <rguenther@suse.de>
20359 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
20360 * tree-if-conv.c (combine_blocks): Free post-dominator info
20362 * tree-parloops.c (create_parallel_loop): Free and re-compute
20363 dominator info after breaking it.
20365 2012-03-05 Richard Guenther <rguenther@suse.de>
20367 PR middle-end/52353
20368 * optabs.h (trapv_unoptab_p): New function.
20369 (trapv_binoptab_p): Likewise.
20370 * optabs.c (expand_binop): Use emit_libcall_block_1 with
20371 a proper equiv_may_trap argument.
20372 (expand_unop): Likewise.
20373 (emit_libcall_block_1): Take extra argument whether the
20374 instruction may trap. Renamed from ...
20375 (emit_libcall_block): ... this. New wrapper.
20377 2012-03-05 Jakub Jelinek <jakub@redhat.com>
20379 PR tree-optimization/51721
20380 * tree-vrp.c (register_edge_assert_for_2): If comparing
20381 lhs of right shift by constant with an integer constant,
20382 add ASSERT_EXPRs for the rhs1 of the right shift.
20384 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
20386 2012-03-05 Richard Guenther <rguenther@suse.de>
20388 * tree.c (integer_zerop): Handle VECTOR_CSTs.
20389 (integer_onep): Likewise.
20390 (integer_all_onesp): Likewise.
20392 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
20394 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
20396 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
20398 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
20399 instead of TARGET_64BIT.
20401 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
20403 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
20406 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
20408 * config/i386/i386.c (ix86_print_operand_address): Only handle
20409 zero-extended DImode addresses.
20411 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
20413 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
20414 taken and cputaken as bool.
20416 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
20418 * config/i386/constraints.md (Ya): New internal constraint.
20419 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
20420 (*zero_extendsidi2_rex64): Add x,x alternative.
20421 (*zero_extendsidi2): Ditto. Add o,0 alternative.
20422 Remove flags reg clobber. Adjust corresponding splits.
20423 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
20424 zero_extendqisi2 expanders using SWI12 mode iterator.
20425 (zero_extend<mode>si2_and): Macroize insn from
20426 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
20428 (*zero_extend<mode>si2): Macroize insn from
20429 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
20430 (*zero_extend*2_movzbl_and): Remove insn patterns.
20431 (zero_extendqihi2_and): Merge corresponding splitter.
20432 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
20433 (*zero_extend*2_movzbl_and): Remove insn patterns.
20434 (*anddi_1): Split TYPE_IMOVX instructions.
20435 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
20437 (and->zext splitter): Add splitter pattern.
20438 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
20440 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
20442 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
20444 (Debugging Options): Likewise.
20445 (Optimize Options): Likewise.
20446 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
20447 with other architectures. Use official processor names with correct
20448 spelling/capitalization. Fix formatting and grammar issues.
20449 (i386 and x86-64 Windows Options): Similar cleanup here.
20451 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
20453 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
20455 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
20457 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
20458 DBX_REGISTER_NUMBER.
20460 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
20462 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
20463 operand is CONST_INT. Take COSTS_N_INSNS into account.
20464 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
20467 2012-03-02 Richard Henderson <rth@redhat.com>
20469 * optabs.c (expand_atomic_test_and_set): Honor
20470 atomic_test_and_set_trueval even when atomic_test_and_set
20471 optab is not in use.
20473 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
20477 * config/sh/sh.c (sh_register_move_cost): Increase cost between
20478 GENERAL_REGS and FP_REGS for SImode.
20480 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
20483 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
20484 (absdi2): New expander.
20485 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
20487 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
20489 * config/sh/sync.md (atomic_exchange<mode>): New expander.
20490 (atomic_exchange<mode>_soft): New insn.
20492 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
20494 * config/sh/sync.md: Update copyright notice dates.
20495 (atomic_compare_and_swap<mode>): Use SImode for return value instead
20497 (atomic_compare_and_swap<mode>_soft): Likewise.
20499 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
20502 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
20503 * config/sh/sh.c: Update copyright notice dates.
20504 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
20505 alignment for TARGET_HARD_SH4.
20506 (sh_option_override): Reduce default function alignment. Set
20507 loop alignment to 4 bytes when not optimizing for size.
20509 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
20511 PR middle-end/50335
20512 * doc/invoke.texi (floop-flatten): Remove.
20513 * toplev.c (process_options): Remove references to flag_loop_flatten.
20514 * tree-ssa-loop.c (gate_graphite_transform): Same.
20515 * common.opt (floop-flatten): Obsolete.
20516 * graphite-poly.c (apply_poly_transforms): Remove reference to
20518 * Makefile.in (graphite-flattening.o): Remove.
20519 * graphite-flattening.c: Remove.
20521 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
20523 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
20524 having mode compatible with the mode of previous compare. Substitute
20525 compare mode of previous compare with the mode, compatible
20526 with eliminated and previous compare.
20528 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
20530 * config/rs6000/dfp.md (floatdidd2): New define_insn.
20532 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
20534 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
20535 compatible with CCGOCmode and CCGCmode.
20537 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
20539 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
20541 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
20543 * config/arm/arm.c (arm_sat_operator_match): New function.
20544 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
20545 * config/arm/arm.md ("insn" attribute): Add "sat" value.
20546 ("SAT", "SATrev"): New code iterators.
20547 ("SATlo", "SAThi"): New code iterator attributes.
20548 ("*satsi_<SAT:code>"): New pattern.
20549 ("*satsi_<SAT:code>_shift"): Likewise.
20550 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
20551 and "shift" attributes.
20552 ("arm_usatsihi"): Add "insn" attribute.
20553 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
20554 by powers of two. Do not allow shift by 32.
20556 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
20559 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
20560 to pass the argument in the register of "natural" mode.
20562 2012-03-02 Richard Guenther <rguenther@suse.de>
20564 PR tree-optimization/52406
20565 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
20566 (struct indices): Add unconstrained_base member.
20567 (struct dr_alias): Remove unused vops member.
20568 (DR_UNCONSTRAINED_BASE): New define.
20569 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
20570 add indices to allow their disambiguation. Make DR_BASE_OBJECT
20571 be an artificial access that covers the whole indexed object,
20572 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
20573 plain decl base-objects to their MEM_REF variant.
20574 (dr_may_alias_p): When the base-object of either data reference
20575 has unknown size use only points-to information.
20576 (compute_affine_dependence): Make dumps easier to read and
20578 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
20579 DR_REF when looking for packed references.
20580 (vect_supportable_dr_alignment): Likewise.
20582 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
20584 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
20585 Improve conditions for peepholes of loads followed by commutative
20587 * config/arm/ldmstm.md: Regenerated.
20589 2012-03-02 Richard Guenther <rguenther@suse.de>
20591 * BASE-VER: Set to 4.8.0.
20593 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
20595 * config.gcc (obsolete): Add all ARM targets using the FPA.
20596 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
20597 * doc/install.texi: Avoid references to obsolete ARM ports.
20599 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
20601 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
20603 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
20604 Joern Rennecke <joern.rennecke@embecosm.com>
20606 * doc/extend.texi: Expand and update information on interrupt
20607 attribute for Epiphany.
20609 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
20611 * config/sh/sh-protos.h: Update copyright notice dates.
20612 * config/sh/sh.h: Likewise.
20613 * config/sh/sh.md: Likewise.
20614 * config/sh/constraints.md: Likewise.
20615 * config/sh/predicates.md: Likewise.
20617 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
20619 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
20620 * config/sh/sh.c (tertiary_reload_operand): Likewise.
20622 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
20624 * config/sh/constraints.md: Fix comment typo.
20626 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20629 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
20630 unsigned HOST_WIDE_INT.
20631 (zvdep_imm64): Likewise.
20632 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
20633 (vdepi_and): Likewise.
20634 Likewise for unamed 64-bit patterns.
20635 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
20637 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
20640 PR rtl-optimization/52417
20641 * cselib.c (cselib_any_perm_equivs): New variable.
20642 (cselib_reset_table): Check that it's not set when not
20643 preserving constants.
20644 (cselib_add_permanent_equiv): Set it.
20645 (cselib_have_permanent_equivalences): New.
20646 (cselib_init, cselib_finish): Reset it.
20647 * cselib.h (cselib_have_permanent_equivalences): Declare.
20648 * alias.c (get_addr): Restore earlier behavior when there
20649 aren't permanent equivalences.
20651 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
20653 * config/mn10300/mn10300-modes.def: Fix copyright notice.
20654 * config/v850/v850-modes.def: Fix copyright notice.
20656 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
20658 * doc/extend.texi (AVR Built-in Functions): Document
20659 __builtin_avr_flash_segment.
20661 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
20662 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
20663 (*split.flash_segment): New insn-and-split.
20664 * config/avr/avr.c (avr_init_builtins): Add local variables:
20665 const_memx_void_node, const_memx_ptr_type_node,
20666 char_ftype_const_memx_ptr.
20668 2012-03-01 Jakub Jelinek <jakub@redhat.com>
20670 PR tree-optimization/52445
20671 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
20672 add ssa_name_ver, offset and size fields and change store field
20674 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
20675 (add_or_mark_expr): Likewise. Only consider previous stores
20676 with the same size and offset.
20677 (nt_init_block): Only look at gimple_assign_single_p stmts,
20678 doesn't look at rhs2.
20680 2012-03-01 Richard Guenther <rguenther@suse.de>
20682 PR middle-end/52443
20683 * tree-cfg.c (verify_gimple_assign_unary): Allow any
20684 conversions from integral types to pointer types.
20686 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
20688 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
20689 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
20690 unintentionally removed in r184616.
20692 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20694 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
20697 2012-02-29 Jakub Jelinek <jakub@redhat.com>
20698 Uros Bizjak <ubizjak@gmail.com>
20701 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
20702 alternatives, add "e" constraint to the new last alternative
20703 and ! to last 3 alternatives.
20705 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
20707 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
20708 DW_AT_artificial attributes at the end of the processing.
20709 (gen_array_type_die): Likewise.
20710 (gen_enumeration_type_die): Likewise.
20711 (gen_struct_or_union_type_die): Likewise.
20712 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
20715 2012-02-29 Jakub Jelinek <jakub@redhat.com>
20717 PR middle-end/52419
20718 * expr.c (expand_assignment): If doing misaligned store that doesn't
20719 cover all mode bits, perform a RMW cycle.
20721 PR tree-optimization/52429
20722 * tree-parloops.c (separate_decls_in_region_debug): Return early
20723 if var is LABEL_DECL.
20725 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20727 PR tree-optimization/52424
20728 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
20729 calling dom_thread_across_edge.
20731 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
20733 * config/avr/avr.c: Move definition of TARGET macros to end of file.
20735 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
20737 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
20738 * config/avr/avr.c (avr_output_bld): Remove unused function.
20739 (avr_out_sbxx_branch): Use "%T" to print bit position.
20741 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
20743 * config/avr/avr.md: Untabify.
20745 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
20747 * config/avr/avr.md (eqne): New code iterator.
20748 (*dec-and-branchsi): Use it in text peephole's condition.
20749 (*dec-and-branchhi): Ditto.
20750 (*dec-and-branchqi): Ditto.
20752 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
20755 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
20756 the device does not have the skip-bug.
20758 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
20760 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
20761 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
20762 -mpretend-cmove): New.
20764 2012-02-29 Jakub Jelinek <jakub@redhat.com>
20767 * df.h (struct df_d): Adjust comment that hard_regs_live_count
20768 doesn't count DEBUG_INSN refs.
20769 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
20770 for DEBUG_INSN refs.
20772 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20776 2012-02-20 Richard Guenther <rguenther@suse.de>
20777 PR tree-optimization/52298
20778 * tree-vect-stmts.c (vectorizable_load): Properly use
20779 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
20781 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
20783 PR middle-end/51752
20784 * gimple.h (gimple_in_transaction): New.
20785 (gimple_set_in_transaction): New.
20786 (struct gimple_statement_base): Add in_transaction field.
20787 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
20789 (tree_ssa_lim_initialize): Compute transaction bits.
20790 * tree.h (compute_transaction_bits): Protoize.
20791 * trans-mem.c (tm_region_init): Use the heap to store BB
20793 (compute_transaction_bits): New.
20795 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20797 * gcc.c (display_help): Document --help=common and sort entries
20800 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
20802 * doc/install.texi: Document check-$LANG specific shortcuts
20804 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
20807 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
20809 * config/arm/arm_neon.h: Regenerate.
20810 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
20811 (neon_vcgeu): New insn.
20812 (neon_vcgtu): Likewise.
20813 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
20814 (ops): Unsigned comparison intrinsics call a different builtin.
20816 2012-02-28 Richard Guenther <rguenther@suse.de>
20819 * config/i386/i386.c (ix86_expand_vector_set): Fix element
20820 ordering for the VEC_CONCAT for two element vectors for
20821 V2SFmode, V2SImode and V2DImode.
20823 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
20826 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
20827 detecting big-endian triplets.
20829 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
20831 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
20832 mode if there is no type information available.
20834 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
20836 PR tree-optimization/53207
20837 * doc/invoke.texi: Document as experimental and relying on graphite.
20839 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
20841 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
20842 of initializer to changes from r184614.
20844 2012-02-28 Richard Guenther <rguenther@suse.de>
20846 PR tree-optimization/52395
20847 * tree-sra.c (build_ref_for_offset): Also look at the base
20848 TYPE_ALIGN when figuring out the alignment of the replacement.
20850 2012-02-28 Richard Guenther <rguenther@suse.de>
20852 PR tree-optimization/52402
20853 * ipa-prop.c (ipa_modify_call_arguments): Properly use
20854 mis-aligned types when creating the accesses at the call site.
20856 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
20858 * config/avr/builtins.def: New file.
20859 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
20860 * config/avr/avr.c (enum avr_builtin_id): Use it.
20861 (avr_init_builtins): Use it. And use avr_bdesc.
20862 (bdesc_1arg): Remove.
20863 (bdesc_2arg): Remove.
20864 (bdesc_3arg): Remove.
20865 (struct avr_builtin_description): Add field n_args.
20866 (avr_bdesc): New static variable using builtins.def.
20867 (avr_expand_builtin): Use it.
20868 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
20869 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
20870 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
20872 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
20875 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
20876 match only one single hard register with respective hard reg rtx.
20877 (movmemx_<mode>): Ditto.
20878 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
20879 insn anatomy of movmem[x]_<mode>.
20880 (avr_out_movmem): Same for printing assembler and operand usage.
20882 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
20886 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
20887 address spaces located outside of device flash.
20889 * config/avr/avr.h (base_arch_s): Remove field n_segments.
20890 (mcu_type_s): Add field n_flash.
20891 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
20892 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
20893 (AVR_MCU): Add N_FLASH argument.
20894 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
20895 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
20896 macro __FLASH<n> if that address space makes sense for the device.
20897 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
20898 outside of target flash.
20899 (avr_asm_named_section): Ditto.
20900 (avr_asm_select_section): Ditto.
20901 (avr_addr_space_convert): Ditto.
20902 (avr_emit_movmemhi): Ditto.
20903 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
20904 address space is outside of device flash.
20905 (avr_insert_attributes): Ditto.
20906 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
20907 avr_current_arch->n_segments.
20909 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
20912 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
20913 (*movabs<mode>_2): Likewise.
20915 2012-02-27 Jakub Jelinek <jakub@redhat.com>
20918 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
20919 s_register_operand in the test instead of REG_P. Don't call
20920 gen_reg_rtx if it won't be used.
20922 PR tree-optimization/52376
20923 * ipa-split.c (split_function): Ignore CLOBBER stmts.
20925 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
20927 * ifcvt.c (noce_get_condition): Check condition variable is not
20928 small_register_classes_for_mode_p before accepting.
20930 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
20932 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
20934 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
20937 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
20938 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
20940 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
20942 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
20944 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
20946 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
20948 * config/sh/predicates.md: Remove blank lines.
20949 * config/sh/sh.c: Fix typos in comments.
20950 * config/sh/constraints.md: Likewise.
20951 * config/sh/sh.md: Remove blank lines.
20952 Fix typos in comments. Use ;; as comment characters.
20954 2012-02-26 Walter Lee <walt@tilera.com>
20956 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
20957 (replace_mov_pcrel_step2): Ditto.
20959 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
20962 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
20963 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
20964 and locs that reference values newer than the non-canonical value
20965 at hand. Return the canonical value as a worst case.
20966 (memrefs_conflict_p): Walk canonical value's locs.
20969 * cselib.c (preserve_only_constants): Rename to...
20970 (preserve_constants_and_equivs): ... this. Split out...
20971 (invariant_or_equiv_p): ... this. Preserve plus expressions
20972 of other preserved expressions too.
20973 (cselib_reset_table): Adjust.
20974 * var-tracking.c (reverse_op): Use canonical value to build
20977 2012-02-23 Kai Tietz <ktietz@redhat.com>
20979 * config/i386/i386.c (ix86_delegitimize_address): Handle
20980 UNSPEC_PCREL plus displacement.
20982 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
20985 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
20986 to test for unusedness in st X addressing.
20988 2012-02-24 Richard Guenther <rguenther@suse.de>
20990 PR middle-end/52361
20991 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
20992 (is_gimple_reg_type): Move inline ...
20993 * gimple.h (is_gimple_reg_type): ... here.
20995 2012-02-24 Richard Guenther <rguenther@suse.de>
20997 PR middle-end/52361
20998 * passes.c (execute_function_todo): When verifying SSA form
20999 verify gimple form first.
21000 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
21002 2012-02-24 Richard Guenther <rguenther@suse.de>
21004 PR middle-end/52355
21005 * fold-const.c (fold_addr_of_array_ref_difference): New function.
21006 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
21008 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21010 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
21012 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21014 * tree-phinodes.c (make_phi_node): Mark static.
21015 * tree-flow.h (make_phi_node): Remove extern decl.
21016 * doc/gimple.texi (make_phi_node): Remove documentation.
21018 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21020 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
21021 * tree-ssa-sccvn.c (print_scc): Ditto.
21023 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21025 * doc/passes.texi (Full redundancy elimination): Fix typo.
21027 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21029 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
21031 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
21034 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
21036 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
21039 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
21041 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
21043 * config/avr/avr.md (code_stdname): Add ior, xor.
21044 (xior): New code iterator.
21045 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
21046 (*<code_stdname><mode>qi.byte1-3): Ditto.
21048 2012-02-23 Jakub Jelinek <jakub@redhat.com>
21050 PR tree-optimization/52019
21051 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
21054 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
21056 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
21057 HAVE_INITFINI_ARRAY to work around namespace pollution in
21058 certain versions of newlib system headers.
21059 * config.in: Regenerate.
21060 * configure: Regenerate.
21061 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
21062 instead of HAVE_INITFINI_ARRAY.
21064 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
21067 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
21068 is not offsettable memory reference.
21070 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
21073 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
21074 setting avr_need_clear_bss_p for __gnu_lto* symbols.
21076 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
21078 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
21079 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
21081 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21083 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
21084 library on Solaris 8 even without TLS support.
21085 * configure: Regenerate.
21087 2012-02-22 Richard Guenther <rguenther@suse.de>
21089 PR middle-end/52329
21090 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
21091 for GIMPLE_DEBUG stmts.
21093 2012-02-22 Martin Jambor <mjambor@suse.cz>
21095 PR middle-end/51782
21096 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
21097 according to the base object.
21099 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
21101 PR rtl-optimization/50063
21102 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
21103 and 2 (8-bit SP) in operand 2.
21104 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
21105 setup to use movhi_sp_r instead of vanilla move to write SP.
21106 Adjust REG_CFA notes to superseed unspec.
21107 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
21109 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
21110 known to be off) only with TARGET_NO_INTERRUPTS. Never use
21111 irq_state 1 (IRQ known to be on) here.
21113 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
21115 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
21117 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
21118 assign_hard_reg): Likewise.
21120 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
21122 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
21124 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
21126 * config/avr/avr.md
21127 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
21128 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
21130 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
21132 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
21133 prototype from here to...
21134 * config/avr/avr.h: ...here.
21136 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
21139 * thumb2.md (thumb2_shiftsi3_short): Split register and
21140 immediate shifts. For register shifts tie operands 0 and 1.
21141 (peephole2 for above): Check that register-controlled shifts
21142 have suitably tied operands.
21144 2012-02-21 Quentin Neill <quentin.neill@amd.com>
21147 * config/i386/bdver1.md (bdver1_call, bdver1_push,
21148 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
21149 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
21150 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
21151 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
21152 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
21153 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
21154 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
21155 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
21156 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
21157 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
21158 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
21159 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
21160 bdver1_ssevector_avx256_unaligned_load,
21161 bdver1_ssevector_sse128_unaligned_load,
21162 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
21163 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
21164 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
21165 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
21166 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
21167 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
21168 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
21169 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
21170 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
21171 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
21172 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
21173 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
21174 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
21175 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
21176 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
21177 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
21178 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
21179 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
21180 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
21181 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
21182 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
21183 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
21184 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
21185 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
21186 bdver1_ssediv_double_load, bdver1_ssediv_double,
21187 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
21188 Add "bdver2" attribute.
21190 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21192 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
21193 default if possible and not specified otherwise.
21195 2012-02-21 Richard Guenther <rguenther@suse.de>
21197 PR middle-end/52314
21198 * gimplify.c (create_tmp_from_val): Use the main variant type
21199 for the type of the temporary we create.
21201 2012-02-21 Richard Guenther <rguenther@suse.de>
21203 PR tree-optimization/52324
21204 * gimplify.c (gimplify_expr): When re-gimplifying expressions
21205 do not gimplify a MEM_REF address operand if it is already
21208 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21210 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
21211 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
21213 2012-02-21 Richard Guenther <rguenther@suse.de>
21215 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
21216 nested_in_vect_loop.
21218 2012-02-21 Jakub Jelinek <jakub@redhat.com>
21220 PR tree-optimization/52318
21221 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
21222 vdef also to non-pure/const call stmts in the sequence.
21224 2012-02-21 Tristan Gingold <gingold@adacore.com>
21226 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
21228 2012-02-20 David S. Miller <davem@davemloft.net>
21230 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
21231 don't use the "rd %pc" instruction on v9 for PIC register loads.
21233 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
21235 PR middle-end/52141
21236 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
21237 in a transaction safe function.
21239 2012-02-20 Kai Tietz <ktietz@redhat.com>
21242 * stor-layout.c (place_field): Handle desired_align for
21245 2012-02-20 Richard Guenther <rguenther@suse.de>
21247 PR tree-optimization/52298
21248 * tree-vect-stmts.c (vectorizable_store): Properly use
21249 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
21251 (vectorizable_load): Likewise.
21252 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
21253 Access DR_STEP after ensuring it is not NULL.
21255 2012-02-20 Jakub Jelinek <jakub@redhat.com>
21257 PR tree-optimization/52286
21258 * fold-const.c (fold_binary_loc): For (X & C1) | C2
21259 optimization use double_int_to_tree instead of build_int_cst_wide,
21260 rewrite to use double_int vars.
21262 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21265 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
21267 Remove -e 0 from $gcc_cv_ld invocation.
21268 Only use __GLIBC_PREREQ if defined.
21269 Enable on Solaris since Solaris 8 patch.
21270 (gcc_SUN_LD_VERSION): New macro.
21271 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
21272 gcc_SUN_LD_VERSION for version number format.
21273 * configure: Regenerate.
21274 * varasm.c (get_elf_initfini_array_priority_section): Set
21275 SECTION_NOTYPE for non-default priority.
21276 Use get_section instead of get_unnamed_section to emit
21277 .init_array/.fini_array with default priority.
21279 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
21281 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
21282 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
21283 (mips_start_unique_function, mips_output_mips16_rdhwr)
21284 (mips_code_end): New functions.
21285 (TARGET_ASM_CODE_END): Define.
21287 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
21289 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
21290 to stubs with non-sibling calls.
21292 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
21294 * doc/invoke.texi (-fira-* options): Copy-edit.
21295 (ira-* parameters): Copy-edit.
21297 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
21299 * doc/invoke.texi: Minor copy-edits to bring into conformance with
21300 GCC coding conventions.
21302 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
21304 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
21305 when used as adjectives.
21307 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
21309 * doc/invoke.texi: Clean up "that"/"which" confusion.
21311 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
21313 * system.h: Poison SMALL_REGISTER_CLASSES
21314 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
21315 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
21317 2012-02-16 Jakub Jelinek <jakub@redhat.com>
21319 PR tree-optimization/52285
21320 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
21321 when deciding if a call is a tail call or tail recursion.
21323 2012-02-16 Kai Tietz <ktietz@redhat.com>
21325 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
21326 interger-constant displacement for UNSPEC_PCREL.
21328 2012-02-16 Jakub Jelinek <jakub@redhat.com>
21330 PR rtl-optimization/52208
21331 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
21332 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
21334 PR tree-optimization/52255
21335 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
21336 loop->header has virtual PHI, but exit_e->dest doesn't, add
21337 virtual PHI to exit_e->dest and adjust all uses after the loop.
21340 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
21341 children with clone_tree_hash, not after it.
21343 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
21345 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
21346 extended identifiers.
21348 2012-02-16 Jakub Jelinek <jakub@redhat.com>
21350 PR middle-end/51929
21351 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
21352 a same_body_alias, also test whether e->callee isn't a former
21353 or current clone of the decl this is a same body alias of.
21355 PR translation/52264
21356 * cgraphunit.c (verify_cgraph_node): Fix a typo.
21358 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
21360 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
21362 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
21365 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
21366 force_reg instead of copy_to_reg for better optimization. Force
21367 non-register or memory operands into a register.
21369 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
21371 * extend.texi: Reserve upper bits of memory model for future use.
21373 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
21374 Anatoly Sokolov <aesok@post.ru>
21375 Eric Weddington <eric.weddington@atmel.com>
21378 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
21379 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
21380 Rewrite initializers for .macro.
21381 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
21382 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
21383 atxmega32d4, atxmega32x1.
21384 avrxmega4: atxmega64a3, atxmega64d3.
21385 avrxmega5: atxmega64a1, atxmega64a1u.
21386 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
21387 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
21388 avrxmega7: atxmega128a1, atxmega128a1u.
21389 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
21390 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
21391 (struct base_arch_s): Rename reserved to xmega_p.
21392 Rename reserved2 to have_rampd.
21393 (AVR_XMEGA): New define.
21394 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
21395 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
21396 * config/avr/predicates.md (io_address_operand): Take into
21397 account SFR offset.
21398 (low_io_address_operand): Ditto.
21399 (high_io_address_operand): Ditto.
21400 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
21401 (enabled, movhi_sp_r): Use them.
21402 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
21403 cpp_define_formatted to built-in define __AVR_ARCH__.
21404 (__AVR_XMEGA__): New built-in define.
21405 (__AVR_HAVE_RAMPD__): New built-in define.
21406 (__AVR_HAVE_RAMPX__): New built-in define.
21407 (__AVR_HAVE_RAMPY__): New built-in define.
21408 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
21410 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
21411 (avr_option_override): Initialize them.
21412 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
21413 (avr_init_expanders): Initialize them. No more block several calls.
21414 (emit_push_sfr): New static function.
21415 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
21417 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
21418 (avr_print_operand): Print addreeses as symbols for
21419 RAMPX, RAMPY, RAMPD, CCP.
21420 (output_movhi): Handle AVR_XMEGA when writing to SP.
21421 (avr_out_movhi_mr_r_xmega): New static function.
21422 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
21423 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
21424 __RAMPD__, __CCP__ as needed.
21426 * config/avr/multilib.h: Regenerate.
21427 * config/avr/t-multilib: Regenerate.
21428 * config/avr/avr-tables.opt: Regenerate.
21430 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
21432 PR tree-optimization/50561
21433 * graphite-flattening.c (lst_project_loop): Do not
21434 remove old scattering dimensions after flattening.
21435 (lst_do_flatten): Likewise.
21437 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
21439 * doc/extend.texi (AVR Built-in Functions): Remove doc for
21440 __builtin_avr_map8, __builtin_avr_map16.
21441 Document __builtin_avr_insert_bits.
21443 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
21444 (insert_bits): New insn.
21445 (adjust_len.map_bits): Rename to insert_bits.
21446 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
21447 * avr-protos.h (avr_out_map_bits): Remove.
21448 (avr_out_insert_bits, avr_has_nibble_0xf): New.
21449 * config/avr/constraints.md (Cxf,C0f): New.
21450 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
21451 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
21452 New built-in define __BUILTIN_AVR_INSERT_BITS.
21453 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
21454 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
21455 (avr_move_bits): Rewrite.
21456 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
21458 (avr_map_op_t): New typedef.
21459 (avr_map_op): New static variable.
21460 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
21461 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
21462 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
21463 (bdesc_3arg, avr_expand_triop_builtin): New.
21464 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
21465 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
21466 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
21467 (avr_map_equal_p, avr_map_sig_p): Remove.
21468 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
21469 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
21470 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
21471 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
21472 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
21473 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
21475 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
21477 * config/c6x/c6x.md (reserve_cycles): New attribute.
21478 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
21479 don't reserve functional units after the branch occurs.
21481 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
21483 PR middle-end/52142
21484 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
21485 functions into non-tm_pure functions.
21487 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
21490 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
21491 (iterative_hash_canonical_type): Likewise.
21492 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
21495 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
21497 * haifa-sched.c (prune_ready_list): Ensure that if there is a
21498 sched-group insn, it either remains alone or the entire list is pruned.
21500 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
21502 * doc/install.texi (Prerequisites): Fix grammar.
21503 (Configuration): Likewise.
21505 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
21507 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
21508 MPC as part of GCC before describing configuring with --with-gmp etc.
21509 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
21510 sources are present.
21512 2012-02-14 Jakub Jelinek <jakub@redhat.com>
21515 * dwarf2out.c (clone_tree_hash): New function.
21516 (copy_decls_walk): Use it instead of clone_tree.
21518 2012-02-14 Richard Guenther <rguenther@suse.de>
21520 PR tree-optimization/52244
21521 PR tree-optimization/51528
21522 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
21523 replacements for integral types.
21525 2012-02-14 Walter Lee <walt@tilera.com>
21527 * config.gcc: Handle tilegx and tilepro.
21528 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
21529 tilegx and tilepro.
21530 Add HAVE_AS_TLS check for tilegx and tilepro.
21531 * configure: Regenerate.
21532 * doc/contrib.texi: Add Mat Hostetter and self.
21533 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
21534 Document instruction intrinsics and network accessing intrinsics.
21535 (TILEPro Built-in Functions): New node. Document instruction
21536 intrinsics and network accessing intrinsics.
21537 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
21538 (Specific, tilepro-*-linux*): Likewise.
21539 * doc/invoke.texi (TILE-Gx Options): New section.
21540 (TILEPro Options): New section.
21541 * doc/md.texi (TILE-Gx): New section.
21542 (TILEPro): New section.
21543 * common/config/tilegx/tilegx-common.c: New file.
21544 * common/config/tilepro/tilepro-common.c: New file.
21545 * config/tilegx/constraints.md: New file.
21546 * config/tilegx/linux.h: New file.
21547 * config/tilegx/mul-tables.c: New file.
21548 * config/tilegx/predicates.md: New file.
21549 * config/tilegx/sync.md: New file.
21550 * config/tilegx/t-tilegx: New file.
21551 * config/tilegx/tilegx-builtins.h: New file.
21552 * config/tilegx/tilegx-c.c: New file.
21553 * config/tilegx/tilegx-generic.md: New file.
21554 * config/tilegx/tilegx-modes.def: New file.
21555 * config/tilegx/tilegx-multiply.h: New file.
21556 * config/tilegx/tilegx-protos.h: New file.
21557 * config/tilegx/tilegx.c: New file.
21558 * config/tilegx/tilegx.h: New file.
21559 * config/tilegx/tilegx.md: New file.
21560 * config/tilegx/tilegx.opt: New file.
21561 * config/tilepro/constraints.md: New file.
21562 * config/tilepro/gen-mul-tables.cc: New file.
21563 * config/tilepro/linux.h: New file.
21564 * config/tilepro/mul-tables.c: New file.
21565 * config/tilepro/predicates.md: New file.
21566 * config/tilepro/t-tilepro: New file.
21567 * config/tilepro/tilepro-builtins.h: New file.
21568 * config/tilepro/tilepro-c.c: New file.
21569 * config/tilepro/tilepro-generic.md: New file.
21570 * config/tilepro/tilepro-modes.def: New file.
21571 * config/tilepro/tilepro-multiply.h: New file.
21572 * config/tilepro/tilepro-protos.h: New file.
21573 * config/tilepro/tilepro.c: New file.
21574 * config/tilepro/tilepro.h: New file.
21575 * config/tilepro/tilepro.md: New file.
21576 * config/tilepro/tilepro.opt: New file.
21578 2012-02-14 Jakub Jelinek <jakub@redhat.com>
21580 PR tree-optimization/52210
21581 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
21582 vect_model_simple_cost with two entry vect_def_type array instead
21583 of an address of dt.
21585 2012-02-14 Richard Guenther <rguenther@suse.de>
21588 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
21589 Do not stream DECL_QUALIFIER.
21590 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
21591 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
21592 (find_decls_types_r): Do not walk DECL_QUALIFIER.
21594 2012-02-14 Jakub Jelinek <jakub@redhat.com>
21597 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
21600 2012-02-13 Jakub Jelinek <jakub@redhat.com>
21603 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
21604 * cselib.c (cselib_subst_to_values_from_insn): New function.
21605 * sched-deps.c (add_insn_mem_dependence,
21606 sched_analyze_1, sched_analyze_2): Use it.
21608 2012-02-13 Jan Hubicka <jh@suse.cz>
21610 PR middle-end/52214
21611 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
21613 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
21615 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
21616 (GTM_SELF_SPECS): Define if not already defined.
21617 (driver_self_specs): Add GTM_SELF_SPECS.
21618 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
21619 (GTM_SELF_SPECS): Define.
21620 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
21621 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
21623 2012-02-13 Jakub Jelinek <jakub@redhat.com>
21625 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
21628 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
21630 PR middle-end/52230
21631 * omp-low.c (expand_omp_for): If a static schedule without chunk size
21632 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
21634 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
21637 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
21639 2012-02-13 Richard Guenther <rguenther@suse.de>
21641 PR translation/52211
21642 * passes.c (enable_disable_pass): Fix typo.
21644 2012-02-13 Jakub Jelinek <jakub@redhat.com>
21646 PR middle-end/52209
21647 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
21648 XOR for reduce_bit_field if type is unsigned.
21650 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
21652 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
21653 disallow changes from SFmode to mode with different size in FP regs.
21655 2012-02-12 Robert Millan <rmh@gnu.org>
21656 Gerald Pfeifer <gerald@pfeifer.com>
21658 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
21661 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
21663 PR rtl-optimization/52175
21664 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
21665 to frame-related instructions.
21667 2012-02-10 Jason Merrill <jason@redhat.com>
21670 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
21671 (demangle_new_symbols): Fill it.
21672 (scan_linker_output): Walk it.
21673 (start_tweaking): Split out from scan_linker_output.
21674 (maybe_tweak): Update sym->chosen.
21675 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
21677 2012-02-11 Jakub Jelinek <jakub@redhat.com>
21680 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
21682 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
21684 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
21685 having the same mode as previous compare.
21687 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
21689 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
21690 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
21691 (nonlocal_goto_internal): Likewise.
21692 (nonlocal_goto): Emit a use and an indirect jump directly.
21694 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
21697 * doc/extend.texi : Update comments for __atomic_compare_exchange and
21698 __atomic_{is,always}_lock_free.
21700 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
21703 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
21704 negative constant address for TARGET_X32.
21706 2012-02-10 Richard Henderson <rth@redhat.com>
21708 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
21709 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
21710 for GIMPLE_TRANSACTION. Tidy if's into a switch.
21712 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21713 Ira Rosen <irar@il.ibm.com>
21715 PR tree-optimization/50031
21716 * targhooks.c (default_builtin_vectorization_cost): Handle
21717 vec_promote_demote.
21718 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
21719 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
21720 all types of reduction and pattern statements.
21721 (vect_estimate_min_profitable_iters): Likewise.
21722 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
21723 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
21724 for explicit realigns.
21725 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
21726 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
21727 vec_promote_demote.
21728 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
21729 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
21730 vec_perm for VSX and handle vec_promote_demote.
21732 2012-02-10 Jakub Jelinek <jakub@redhat.com>
21734 PR middle-end/52177
21735 * builtins.c (fold_builtin_atomic_always_lock_free,
21736 expand_builtin_atomic_always_lock_free,
21737 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
21738 Return and/or test boolean_true_node/boolean_false_node instead of
21739 integer_one_node/integer_zero_node.
21741 2012-02-10 Jan Hubicka <jh@suse.cz>
21743 PR middle-end/48600
21744 * predict.c (predict_paths_for_bb): Prevent looping.
21745 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
21747 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
21749 * config/arm/arm.c (output_move_double): In one case properly
21750 count number of instructions that will be emitted.
21752 2012-02-10 Richard Guenther <rguenther@suse.de>
21754 PR translation/52193
21755 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
21757 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
21759 PR middle-end/52140
21760 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
21762 2012-02-09 Jakub Jelinek <jakub@redhat.com>
21765 * var-tracking.c (emit_note_insn_var_location): If
21766 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
21767 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
21768 non-NOTE_DURING_CALL_P insn.
21770 2012-02-09 Bin Cheng <bin.cheng@arm.com>
21772 PR middle-end/51867
21773 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
21775 2012-02-08 Magnus Granberg <zorry@gentoo.org>
21778 * gcc.c (switch_matches) Support switches with separated form,
21781 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
21783 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
21785 (RAMPZ_ADDR): Ditto.
21786 * config/avr/avr.c (avr_addr_t): New typedef.
21787 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
21788 (avr_init_expanders): Initialize it.
21789 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
21791 (expand_epilogue): Ditto.
21792 (avr_print_operand): Ditto.
21793 (avr_file_start): Ditto.
21794 (avr_emit_movmemhi): Ditto.
21796 2012-02-08 Richard Guenther <rguenther@suse.de>
21798 PR tree-optimization/46886
21799 * tree-flow.h (do_while_loop_p): Declare.
21800 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
21801 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
21803 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
21805 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
21806 always succeed for integers larger than a native word.
21808 2012-02-08 Richard Guenther <rguenther@suse.de>
21810 PR rtl-optimization/52170
21811 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
21812 properly handle integer vector modes.
21814 2012-02-08 Jakub Jelinek <jakub@redhat.com>
21816 PR gcov-profile/52150
21817 * coverage.c: Include target.h.
21818 (build_var): Call targetm.strip_name_encoding on the assembler name.
21819 Change one _ into . or $ if the target allows it.
21820 * Makefile.in (coverage.o): Depend on $(TARGET_H).
21822 PR rtl-optimization/52139
21823 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
21824 is a BARRIER after emit_insn_after_noloc, move BB_END
21825 to the last non-BARRIER insn before it.
21827 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
21829 PR middle-end/24306
21830 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
21831 (mips_gimplify_va_arg_expr): Call it instead of
21832 std_gimplify_va_arg_expr.
21834 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
21836 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
21837 message for -mno-pointers-to-nested-function.
21839 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
21841 PR middle-end/51994
21842 * expr.c (get_inner_reference): If there is an offset, add a negative
21843 bit position to it (if any).
21845 2012-02-07 Jakub Jelinek <jakub@redhat.com>
21847 PR rtl-optimization/52060
21848 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
21849 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
21850 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
21851 and/or i0src_copy2 when needed.
21853 2012-02-07 Jakub Jelinek <jakub@redhat.com>
21855 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
21856 or LTOPLUGINSONAME if have_c.
21858 * config/freebsd-spec.h: Add comment about what macros can be defined
21860 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
21861 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
21864 2012-02-07 Richard Guenther <rguenther@suse.de>
21866 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
21867 newline in -alias dumps.
21869 2012-02-07 Kai Tietz <ktietz@redhat.com>
21870 Dave Korn <dave.korn.cygwin@gmail.com>
21873 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
21874 Take care that typinfo gets dllexport-attribute.
21876 2012-02-07 Jakub Jelinek <jakub@redhat.com>
21878 PR middle-end/52074
21879 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
21880 if modifier < EXPAND_SUM call force_operand on the result.
21882 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
21884 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
21885 adding __forwarder_dst__ prefix if a forwarder_section attribute is
21887 (epiphany_function_type): Replace types for specific interrupts with
21888 EPIPHANY_FUNCTION_INTERRUPT.
21889 (EPIPHANY_INTERRUPT_P): Update.
21890 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
21891 New static function.
21892 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
21893 <disinterrupt>: Affects type identity.
21894 (epiphany_handle_interrupt_attribute): Handle variable number of
21896 (epiphany_compute_function_type): Update for new
21897 epiphany_function_type definition.
21898 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
21899 handlers with a longcall forwarder.
21900 (epiphany_start_function): Handle multiple interrupt arguments and/or
21901 forwarder_section attribute.
21903 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
21906 2012-02-07 Alan Modra <amodra@gmail.com>
21909 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
21912 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21914 PR tree-optimization/50969
21915 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
21916 use vec_perm rather than vector_stmt.
21917 (vect_model_load_cost): Likewise.
21918 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
21919 vec_perm to be the same as other vector statements.
21920 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
21921 cost of vec_perm for TARGET_VSX.
21923 2012-02-06 Richard Guenther <rguenther@suse.de>
21925 PR tree-optimization/52115
21926 * tree-sra.c (access_has_replacements_p): New function.
21927 (sra_modify_assign): Use it to decide whether a use is uninitialized.
21929 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
21931 PR middle-end/52047
21932 * trans-mem.c (expand_call_tm): Add an assertion.
21933 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
21936 2012-02-06 Richard Guenther <rguenther@suse.de>
21938 PR tree-optimization/50955
21939 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
21940 raise cost of expressions that replace an address with an
21941 expression based on a different pointer.
21943 2012-02-06 Jakub Jelinek <jakub@redhat.com>
21946 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
21947 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
21949 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
21952 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
21953 -Weffc++ and specify guidelines come from second edition.
21955 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
21957 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
21958 (sibcall_value_multiple_internal, call_split, call_internal_direct)
21959 (call_direct_split, call_value_split, call_value_internal_direct)
21960 (call_value_direct_split, call_value_multiple_split): Use jal and
21961 jal_macro attributes.
21963 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
21965 * reload1.c (reload_regs_reach_end_p): Replace with...
21966 (reload_reg_rtx_reaches_end_p): ...this function.
21967 (new_spill_reg_store): Update commentary.
21968 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
21969 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
21970 before setting new_spill_reg_store.
21971 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
21972 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
21973 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
21974 for non-spill reload registers.
21976 2012-02-05 Ira Rosen <irar@il.ibm.com>
21978 PR tree-optimization/52091
21979 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
21980 (vect_is_simple_use_1): Likewise.
21981 * tree-vect-loop.c (vectorizable_reduction): Update calls
21982 to vect_is_simple_use_1 and vect_is_simple_use.
21983 (vectorizable_live_operation): Likewise.
21984 * tree-vect-patterns.c (widened_name_p,
21985 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
21986 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
21987 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
21988 vectorizable_shift,vectorizable_operation, vectorizable_store,
21989 vectorizable_load): Likewise.
21990 (vect_is_simple_cond): Add an argument, pass it to
21991 vect_is_simple_use_1.
21992 (vectorizable_condition): Update calls to vect_is_simple_cond,
21993 vect_is_simple_use.
21994 (vect_is_simple_use): Add an argument, the statement in which
21995 OPERAND is used. Check that if OPERAND's def stmt is a double
21996 reduction phi node, the use is a phi node too.
21997 (vect_is_simple_use_1): Add an argument, pass it to
21998 vect_is_simple_use.
21999 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
22000 to vect_is_simple_use.
22002 2012-02-04 Jakub Jelinek <jakub@redhat.com>
22004 PR rtl-optimization/52095
22005 * modulo-sched.c (dump_insn_locator): New function.
22006 (loop_canon_p, sms_schedule): Use it.
22008 PR rtl-optimization/52113
22009 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
22010 even for decomposable shift/zext insns.
22012 2012-02-03 Jakub Jelinek <jakub@redhat.com>
22013 Zdenek Dvorak <ook@ucw.cz>
22015 PR rtl-optimization/52092
22016 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
22017 on get_iv_value result.
22019 2012-02-02 Andrew Pinski <apinski@cavium.com>
22021 PR middle-end/47982
22022 PR middle-end/43967
22023 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
22025 2012-02-02 Jakub Jelinek <jakub@redhat.com>
22027 PR middle-end/48071
22028 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
22030 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
22032 PR rtl-optimization/49800
22033 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
22034 (sched_finish): Call regstat_free_n_sets_and_refs.
22036 2012-02-02 Jia Liu <proljc@gmail.com>
22038 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
22041 2012-02-02 Jan Hubicka <jh@suse.cz>
22042 Tom de Vries <tom@codesourcery.com>
22044 PR middle-end/51998
22045 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
22046 * varpool.c (varpool_analyze_pending_decls): Likewise.
22048 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
22049 Jayant R Sonar <jayant.sonar@kpitcummins.com>
22051 * config.gcc: Add cr16-* support.
22053 * doc/extend.texi: Document cr16 extensions.
22054 * doc/install.texi: Document cr16 install.
22055 * doc/invoke.texi: Document cr16 options.
22056 * doc/md.texi: Document cr16 constraints.
22058 * common/config/cr16/cr16-common.c: New file.
22059 * config/cr16/cr16.c: New file.
22060 * config/cr16/cr16.h: New file.
22061 * config/cr16/cr16.md: New file.
22062 * config/cr16/cr16.opt: New file.
22063 * config/cr16/cr16-protos.h: New file.
22064 * config/cr16/predicates.md: New file.
22065 * config/cr16/constraints.md: New file.
22066 * config/cr16/t-cr16: New file.
22068 2012-02-02 Jakub Jelinek <jakub@redhat.com>
22071 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
22072 that operands[2] is either immediate, or q_regs_operand.
22074 PR tree-optimization/52073
22075 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
22076 a pattern stmt for pattern uses, ignore uses outside of the loop.
22078 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
22080 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
22081 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
22082 (OUT_AS1, OUT_AS2): Remove.
22084 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
22086 PR rtl-optimization/51374
22087 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
22088 to cross other volatile_refs_p insns.
22090 2012-02-01 Richard Guenther <rguenther@suse.de>
22092 * doc/invoke.texi (fno-inline): Clarify documentation.
22093 (finline-small-functions): Likewise.
22094 (finline-functions): Likewise.
22095 * common.opt (finline): Adjust comment and documentation.
22096 (finline-small-functions): Clarify documentation.
22097 (finline-functions): Likewise.
22098 (finline-functions-called-once): Likewise.
22100 2012-02-01 Tristan Gingold <gingold@adacore.com>
22102 * c-typeck.c (composite_type): Keep mode for pointers.
22104 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
22106 * function.h (regno_reg_rtx): Adjust comment.
22107 * reginfo.c (init_reg_modes_target): Only use the previous mode
22108 if it fits within one register. Remove MIPS comment.
22110 2012-01-31 Jakub Jelinek <jakub@redhat.com>
22113 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
22115 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22117 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
22118 to srak instruction.
22120 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
22122 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
22124 2012-01-31 Jakub Jelinek <jakub@redhat.com>
22129 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
22131 2012-01-31 Richard Guenther <rguenther@suse.de>
22133 PR tree-optimization/51528
22134 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
22137 2012-01-31 Jakub Jelinek <jakub@redhat.com>
22142 * ree.c (add_removable_extension): Change def_map argument
22143 to unsigned *, store in def_map 1 + offset into *insn_list vector
22144 instead of pointers into the vector.
22145 (find_removable_extensions): Adjust caller.
22147 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
22149 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
22150 Transform all "* quoted-c-code" to { c-code }.
22151 Remove redundant test for "optimize" in combine patterns.
22152 Move (include "avr-dimode.md") to end of file.
22154 2012-01-30 Bin Cheng <bin.cheng@arm.com>
22157 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
22158 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
22160 2012-01-30 Richard Guenther <rguenther@suse.de>
22162 PR tree-optimization/52028
22163 * tree-loop-distribution.c (ldist_gen): Properly update
22166 2012-01-30 Jakub Jelinek <jakub@redhat.com>
22169 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
22170 set_cur_line_info_table if not emitting debug info.
22172 PR tree-optimization/52046
22173 * tree-vect-patterns.c (check_bool_pattern): Give up if
22174 a comparison could throw.
22177 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
22179 2012-01-30 Richard Guenther <rguenther@suse.de>
22181 PR tree-optimization/52045
22182 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
22183 SSA form if cfgcleanup did anything.
22185 2012-01-30 Richard Guenther <rguenther@suse.de>
22187 PR tree-optimization/52045
22188 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
22189 before computing final todo.
22191 2012-01-30 Richard Guenther <rguenther@suse.de>
22193 PR tree-optimization/51528
22194 * tree-sra.c (sra_modify_assign): Re-factor in preparation
22197 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
22199 * df-problems.c (df_kill_notes): Check that the use refers
22200 to the note under examination.
22202 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
22205 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
22206 parameter and use short-lived pseudos.
22207 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
22208 (sparc_expand_vector_init): Const-ify local variables and adjust
22209 calls to above functions.
22211 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
22213 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
22215 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
22217 * doc/invoke.texi: Make usage of "compile time" and
22218 "run time"/"runtime" consistent throughout the file.
22220 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
22222 * config/alpha/alpha.c (alpha_option_override): Default to
22223 full IEEE compliance mode for Go language.
22225 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
22227 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
22228 (LINK_SSP_SPEC): Define.
22230 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22233 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
22236 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
22238 * doc/invoke.texi: Correct hyphenation of "floating point",
22239 "double precision", and related terminology throughout the file.
22241 2012-01-28 Jakub Jelinek <jakub@redhat.com>
22244 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
22245 arm_general_register_operand predicate for operand 2 instead of
22248 2012-01-27 Ian Lance Taylor <iant@google.com>
22251 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
22252 * builtins.c (expand_builtin_init_trampoline): Add onstack
22253 parameter. Change caller.
22254 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
22255 * tree.c (build_common_builtin_nodes): Declare
22256 __builtin_init_heap_trampoline.
22258 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
22260 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
22261 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
22262 * config/avr/avr.c: Ditto.
22263 (avr_regnames): Remove because unused.
22264 * config/avr/avr.md (*cpse.ne): New peephole.
22265 (*cpse.eq): New peephole from former cpse peepholes.
22267 2012-01-27 Michael Eager <eager@eagercon.com>
22269 * config/microblaze.c (microblaze_emit_compare): Correct
22270 test after pcmp instruction.
22272 2012-01-27 Richard Guenther <rguenther@suse.de>
22274 PR tree-optimization/52020
22275 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
22277 2012-01-27 Richard Guenther <rguenther@suse.de>
22279 * ipa-pure-const.c (check_stmt): Clobbers do not make a
22280 function non-const/pure.
22282 2012-01-27 Richard Guenther <rguenther@suse.de>
22284 PR tree-optimization/50444
22285 * tree-sra.c (build_ref_for_offset): Properly adjust the
22286 MEM_REF type for unaligned accesses.
22288 2012-01-27 Richard Guenther <rguenther@suse.de>
22290 PR tree-optimization/50444
22291 * expr.c (mem_ref_refers_to_non_mem_p): New function.
22292 (expand_assignment): Use it. Properly handle misaligned
22293 bases when expanding stores to component references.
22294 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
22295 refactor that case.
22297 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
22299 PR middle-end/51389
22300 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
22301 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
22302 * tree-data-ref.c (find_data_references_in_loop): Make static.
22303 (compute_all_dependences): Change return type to bool. Bail out
22304 for too many datarefs in a loop. Move the hunk resetting the data
22305 dependences vector from ...
22306 (compute_data_dependences_for_loop): ... here. Account for
22307 compute_all_dependences returning false.
22308 (compute_data_dependences_for_bb): Likewise.
22309 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
22310 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
22312 2012-01-27 Richard Guenther <rguenther@suse.de>
22314 PR middle-end/51959
22315 * expr.c (store_field): Use the alias-set of the scratch memory
22318 2012-01-27 Tom de Vries <tom@codesourcery.com>
22320 PR tree-optimization/51990
22321 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
22323 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
22325 2012-01-27 Jakub Jelinek <jakub@redhat.com>
22328 * var-tracking.c (reverse_op): Don't add any reverse operation
22329 if V already has any constant locations.
22331 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
22333 * doc/invoke.texi: Correct usage of "command line" (noun)
22334 vs "command-line" (adjective) throughout.
22336 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
22338 * doc/invoke.texi (Language Independent Options): Move
22339 -Wcoverage-mismatch blurb from here....
22340 (Warning Options): ...to here.
22342 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
22344 * config/rs6000/rs6000.c (rs6000_option_override_internal):
22345 Set rs6000_always_hint to false for 476.
22347 2012-01-27 Matthias Klose <doko@ubuntu.com>
22349 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
22351 * incpath.c (add_standard_paths): Likewise.
22353 2012-01-27 Richard Henderson <rth@redhat.com>
22355 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
22356 * config/m68k/sync.md (atomic_test_and_set): Rename from
22357 sync_test_and_setqi and adjust the operands.
22358 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
22359 and unconditionally enable.
22361 2012-01-27 Richard Henderson <rth@redhat.com>
22363 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
22364 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
22365 (ldstub): Rename from ldstubqi.
22366 (ldstub<I24MODE>): Remove.
22368 2012-01-27 Richard Henderson <rth@redhat.com>
22370 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
22371 * c-cppbuiltin.c (cpp_atomic_builtins): Define
22372 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
22373 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
22374 * doc/tm.texi: Rebuild.
22376 2012-01-27 Richard Henderson <rth@redhat.com>
22378 * optabs.c (gen_atomic_test_and_set): Remove default.
22379 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
22381 2012-01-26 Jakub Jelinek <jakub@redhat.com>
22383 PR rtl-optimization/51978
22384 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
22385 (combine_reaching_defs): Likewise.
22386 (struct re_info): Remove.
22387 (add_removable_extension): Remove x and data arguments,
22388 add insn, insn_list and def_map. Use the arguments directly
22389 instead of using struct re_info.
22390 (find_removable_extensions): Don't call add_removable_extension
22391 through note_stores, instead just call it with single_set
22392 result if non-NULL.
22393 (find_and_remove_re): Pass curr_cand->expr instead of
22394 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
22396 2012-01-26 Michael Matz <matz@suse.de>
22398 PR tree-optimization/46590
22399 * cfgexpand.c: Revert last change (r183305).
22400 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
22402 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
22403 checking for emptiness.
22405 2012-01-26 Jakub Jelinek <jakub@redhat.com>
22407 PR middle-end/51895
22408 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
22409 non-addressable non-BLKmode base correctly.
22411 2012-01-26 Michael Matz <matz@suse.de>
22413 PR tree-optimization/48794
22414 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
22415 regions referenced from RESX/EH_DISPATCH.
22417 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22419 * config/s390/s390.h: Make BRANCH_COST an option.
22420 * config/s390/s390.opt: New option -mbranch-cost.
22422 2012-01-26 Richard Henderson <rth@redhat.com>
22424 Revert 2012-01-24 change:
22425 * trans-mem.c (requires_barrier): Do not instrument thread local
22426 variables and emit save/restore for them.
22428 2012-01-25 Jakub Jelinek <jakub@redhat.com>
22430 PR middle-end/51986
22431 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
22434 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
22436 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
22439 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
22442 Rename __pgm to __flash.
22443 Rename __pgm1 to __flash1.
22444 Rename __pgm2 to __flash2.
22445 Rename __pgm3 to __flash3.
22446 Rename __pgm4 to __flash4.
22447 Rename __pgm5 to __flash5.
22448 Rename __pgmx to __memx.
22449 * doc/extend.texi (AVR Named Address Spaces)
22450 Rename address space names as indicated above.
22451 * config/avr/avr.c (avr_addrspace): Ditto.
22453 * config/avr/avr-protos.h
22454 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
22455 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
22456 * config/avr/predicates.md: Ditto.
22457 * config/avr/avr.c Ditto, and
22458 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
22459 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
22461 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
22462 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
22463 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
22464 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
22465 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
22466 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
22467 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
22468 * config/avr/avr.c: Ditto.
22469 * config/avr/avr.md: Ditto.
22471 2012-01-25 Jason Merrill <jason@redhat.com>
22474 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
22476 2012-01-25 Jakub Jelinek <jakub@redhat.com>
22478 PR tree-optimization/51987
22479 * tree-data-ref.c (get_references_in_stmt): Handle references in
22480 non-volatile GIMPLE_ASM.
22482 2012-01-25 Richard Guenther <rguenther@suse.de>
22484 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
22485 bases are dereferenced.
22487 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
22489 PR rtl-optimization/48374
22490 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
22492 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
22494 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
22495 compute_data_dependences_for_loop returns false.
22496 * tree-parloops.c (loop_parallel_p): Likewise.
22498 2012-01-25 Richard Guenther <rguenther@suse.de>
22500 * tree.h (get_pointer_alignment_1): Declare.
22501 * builtins.c (get_pointer_alignment_1): New function.
22502 (get_pointer_alignment): Use it.
22504 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22506 PR rtl-optimization/48308
22507 * combine.c (enum undo_kind): Add UNDO_LINKS.
22508 (struct undo): Add member l to other_contents and where.
22509 (do_SUBST_LINK): New.
22511 (try_combine): Handle LOG_LINKS for the dummy i1 case.
22512 (undo_all): Handle UNDO_LINKS.
22514 2012-01-25 Richard Henderson <rth@redhat.com>
22516 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
22519 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
22521 * optabs.c (gen_atomic_test_and_set): Use each argument.
22523 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
22525 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
22526 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
22527 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
22528 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
22529 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
22530 TARGET_PAIRED_SINGLE_FLOAT.
22532 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
22534 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
22535 (in_struct, return_val): Remove MEM documentation.
22536 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
22537 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
22538 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
22540 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
22541 * cfgexpand.c (add_alias_set_conflicts): Likewise.
22542 * expr.c (store_field): Likewise.
22543 * function.c (assign_stack_temp_for_type): Likewise.
22544 * ifcvt.c (noce_try_cmove_arith): Likewise.
22545 * reload1.c (reload): Likewise.
22546 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
22547 (alpha_set_memflags): Likewise.
22548 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
22550 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
22552 * rtl.h (true_dependence, canon_true_dependence): Remove varies
22554 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
22555 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
22556 (true_dependence_1, true_dependence, canon_true_dependence): Remove
22558 * cselib.c (cselib_rtx_varies_p): Delete.
22559 (cselib_invalidate_mem): Update call to canon_true_dependence.
22560 * dse.c (record_store, check_mem_read_rtx): Likewise.
22561 (scan_reads_nospill): Likewise.
22562 * cse.c (check_dependence): Likewise.
22563 (cse_rtx_varies_p): Delete.
22564 * expr.c (safe_from_p): Update call to true_dependence.
22565 * ira.c (validate_equiv_mem_from_store): Likewise.
22566 (memref_referenced_p): Likewise.
22567 * postreload-gcse.c (find_mem_conflicts): Likewise.
22568 * sched-deps.c (sched_analyze_2): Likewise.
22569 * store-motion.c (load_kills_store): Likewise.
22570 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
22571 * gcse.c (mems_conflict_for_gcse_p): Likewise.
22572 (compute_transp): Update call to canon_true_dependence.
22574 2012-01-25 Richard Henderson <rth@redhat.com>
22576 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
22577 (maybe_emit_atomic_test_and_set): New.
22578 (expand_sync_lock_test_and_set): Use it.
22579 (expand_atomic_test_and_set): Likewise.
22580 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
22581 the implementation; clarify implementation defined details.
22582 * doc/md.texi (atomic_test_and_set): Document.
22584 2012-01-25 Richard Henderson <rth@redhat.com>
22586 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
22588 2012-01-25 Richard Henderson <rth@redhat.com>
22591 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
22592 to effect no-op split.
22594 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
22597 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
22598 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
22599 (BT_FN_VOID_PTR_INT_SIZE): New.
22600 (BT_FN_UINT_UINT_VAR): Remove.
22601 (BT_FN_UINT32_UINT32_VAR): New.
22602 (BT_FN_DOUBLE_VPTR): Remove.
22603 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
22605 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
22606 (_ITM_changeTransactionMode): Same.
22607 (_ITM_memmoveRtWt): Change return type to void.
22608 (_ITM_memcpyRtWt): Same.
22609 (_ITM_memsetW): Same.
22610 (_ITM_RaRD): Change types to double.
22615 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
22617 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
22618 Patrick Marlier <patrick.marlier@gmail.com>
22620 * trans-mem.c (requires_barrier): Do not instrument thread local
22621 variables and emit save/restore for them.
22623 2012-01-24 Jason Merrill <jason@redhat.com>
22626 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
22627 output static aliases.
22629 2012-01-24 Jakub Jelinek <jakub@redhat.com>
22632 * common.opt (-pie, -shared, pie, shared): Change from Common to
22634 * gcc.c (display_help): Display help for -pie and -shared.
22636 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
22639 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
22640 Remove note on size/offset limitation.
22641 (AVR Variable Attributes): Add example how to read data located
22642 with progmem. Refer to named address spaces.
22643 * doc/invoke.texi (AVR Options): Fix typo.
22645 2012-01-24 Richard Guenther <rguenther@suse.de>
22647 Forward-port to trunk
22648 2010-09-21 Jakub Jelinek <jakub@redhat.com>
22650 PR middle-end/45678
22651 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
22652 op0 isn't sufficiently aligned and there is movmisalignM
22653 insn for mode, use it to load op0 into a temporary register.
22655 2012-01-24 Jakub Jelinek <jakub@redhat.com>
22658 * target.def (const_not_ok_for_debug_p): New hook.
22659 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
22661 * doc/tm.texi: Regenerated.
22662 * dwarf2out.c (const_ok_for_output_1): If
22663 targetm.const_not_ok_for_debug_p returns true, fail.
22664 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
22666 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
22668 2012-01-23 Kai Tietz <ktietz@redhat.com>
22671 * config/i386/predicates.md (symbolic_operand): Allow
22672 UNSPEC_PCREL as PIC expression for lea.
22673 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
22674 * config/i386/i386.c (ix86_delegitimize_address): Handle
22675 UNSPEC_PCREL for none-MEM, too.
22677 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
22679 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
22680 (ipa_tm_create_version_alias): Same.
22682 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
22685 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
22686 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
22688 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
22689 Patrick Marlier <patrick.marlier@gmail.com>
22690 Iain Sandoe <developer@sandoe-acoustics.co.uk>
22693 * lto-wrapper.c (run_gcc): Pass the LTO section name to
22694 simple_object_start_read.
22696 2012-01-23 Richard Guenther <rguenther@suse.de>
22699 PR tree-optimization/51895
22700 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
22701 parameter decomposition into BLKmode components.
22703 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
22705 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
22706 fake variables for restrict-qualified pointers whose pointed-to type
22707 contains a placeholder.
22709 2012-01-23 Richard Guenther <rguenther@suse.de>
22711 PR tree-optimization/51949
22712 * ipa-split.c (execute_split_functions): Do not split malloc functions.
22714 2012-01-23 Jakub Jelinek <jakub@redhat.com>
22716 PR rtl-optimization/51933
22717 * ree.c (transform_ifelse): Return true right away if dstreg is
22718 already wider or equal to cand->mode.
22719 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
22720 (make_defs_and_copies_lists): Remove defs_list and copies_list
22721 arguments, add state argument, just truncate state->work_list
22722 instead of always allocating and freeing the vector. Assert that
22723 get_defs succeeds instead of returning 2. Changed return type to bool.
22724 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
22725 have ext_src_mode, see if it has been modified already with the
22726 right kind of extension and has been extended before from the
22727 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
22728 just return true. Remember the original mode in state->modified array.
22729 (combine_reaching_defs): Add state argument. Don't allocate and
22730 free here def_list, copied_list and vec vectors, instead just
22731 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
22732 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
22733 Add state variable, clear vectors in it, initialize state.modified
22734 if needed. Free all the vectors at the end and state.modified too.
22735 Don't skip a candidate if the extension expression has been modified.
22737 2012-01-22 Douglas B Rupp <rupp@gnat.com>
22740 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
22741 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
22742 (extra_options) interix.opt -> i386/interix.opt"
22743 (extra_objs):Add winnt-stubs.o
22744 * configure.ac: Add interix to target_os .comm on PE check.
22745 * configure: Regenerate.
22746 * config/interix3.h: Delete and move bits to..
22747 * config/interix.h: Delete and move bits to..
22748 * config/i386/i386-interix3.h: Delete and move bits to..
22749 * config/i386/i386-interix.h: ..here.
22750 (TARGET_CPU_DEFAULT): Remove redefinition.
22751 (TARGET_ASM_CONSTRUCTOR): Undefine.
22752 (SUBTARGET_SWITCHES): Define for ms-bitfields.
22753 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
22754 (PTRDIFF_TYPE): Define.
22755 (LONG_DOUBLE_TYPE_SIZE): Define.
22756 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
22757 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
22758 (TARGET_SECTION_TYPE_FLAGS): Define.
22759 (ASM_DECLARE_FUNCTION_NAME): Define.
22760 (ASM_OUTPUT_EXTERNAL): Define.
22761 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
22762 (ASM_OUTPUT_ALIGNED_BSS): Define.
22763 (PCC_BITFIELD_TYPE_MATTERS): Define.
22764 (USE_CONST_SECTION): Define.
22765 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
22766 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
22767 (SUPPORTS_ONE_ONLY): Remove.
22768 (I386_PE_STRIP_ENCODING): Define.
22769 * config/interix.opt: Delete and move bits to..
22770 * config/i386/interix.opt: ..here. New.
22771 (mpe-aligned-commons): Add.
22772 * config/i386/t-interix: Add copyright header.
22773 (winnt-stubs.o): Add rule.
22775 2012-01-22 Jason Merrill <jason@redhat.com>
22778 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
22779 for extra name aliases.
22781 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
22783 PR rtl-optimization/51924
22784 * ree.c (combine_set_extension): Improve debugging message.
22785 (combine_reaching_defs): Likewise.
22786 (get_defs): Rename confusingly named variable.
22787 (find_and_remove_re): Skip a candidate if the extension expression has
22790 2012-01-21 Robert Millan <rmh@gnu.org>
22791 Gerald Pfeifer <gerald@pfeifer.com>
22793 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
22794 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
22796 2012-01-20 Jakub Jelinek <jakub@redhat.com>
22798 PR tree-optimization/51914
22799 * tree-vect-stmts.c (vectorizable_conversion): For
22800 cvt_type && modifier == WIDEN, put temporary with cvt_type
22801 at the beginning of vec_dsts and set vec_dest to temporary
22804 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
22806 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
22808 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
22810 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
22811 * config/rs6000/rs6000.c: Likewise.
22813 2012-01-20 Jakub Jelinek <jakub@redhat.com>
22816 * config/arm/arm.c (arm_count_output_move_double_insns): Call
22817 output_move_double on a copy of operands array.
22819 2012-01-20 Cary Coutant <ccoutant@google.com>
22820 Dodji Seketeli <dodji@redhat.com>
22823 * dwarf2out.c (copy_declaration_context): Return ref to parent
22824 of declaration DIE, if necessary.
22825 (remove_child_or_replace_with_skeleton): Add new parameter; update
22826 caller. Place skeleton DIE under parent DIE of original declaration.
22827 Move call to copy_declaration_context to here ...
22828 (break_out_comdat_types): ... from here.
22830 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22832 PR rtl-optimization/51856
22833 * reload.c (find_reloads_subreg_address): Set the address_reloaded
22836 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22839 * config/arm/arm.c (arm_print_operand): Correct output of alignment
22840 hints for neon loads and stores.
22842 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
22846 * doc/extend.texi (Named Address Spaces): Split into subsections.
22847 (AVR Named Address Spaces): New subsection.
22848 (M32C Named Address Spaces): New subsection.
22849 (RL78 Named Address Spaces): New subsection.
22850 (SPU Named Address Spaces): New subsection.
22851 (Variable Attributes): New anchor "AVR Variable Attributes".
22852 (AVR Variable Attributes): Rewrite and avoid wording
22853 "address space" in this context.
22854 * doc/invoke.texi (AVR Options): Rewrite and add documentation
22855 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
22856 (AVR Built-in Macros): New subsubsection therein.
22857 * doc/md.texi (AVR constraints): Remove "C04", "R".
22859 2012-01-20 Richard Guenther <rguenther@suse.de>
22861 PR tree-optimization/51903
22862 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
22863 when removing stmts.
22865 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22868 * config/arm/arm.c (arm_load_pic_register): Use
22869 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
22870 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
22871 (arm_pic_static_addr): Likewise.
22872 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
22873 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
22874 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
22875 (pic_load_addr_unified): New.
22877 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
22880 * function.c (instantiate_virtual_regs_in_insn): Use
22881 delete_insn_and_edges when removing a wrong asm insn.
22883 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
22885 PR rtl-optimization/40761
22886 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
22887 Add new member loop_num.
22888 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
22889 (ira_build): Remove the parameter.
22891 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
22892 (ira.c): Do not build CFG loops for one region allocation. Remove
22893 argument from ira_build call.
22895 * ira-build.c (init_loop_tree_node): New function.
22896 (create_loop_tree_nodes): Use it. Separate the case when CFG
22897 loops are not built.
22898 (more_one_region_p): Check current_loops.
22899 (finish_loop_tree_nodes): Separate the case when CFG loops are not
22901 (add_loop_to_tree): Process loop equal to NULL too.
22902 (form_loop_tree): Separate the case when CFG loops are not built.
22903 Use explicitly number for the root.
22904 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
22906 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
22907 instead of loop->num.
22908 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
22909 (mark_all_loops_for_removal): Ditto.
22910 (remove_unnecessary_regions): Separate the case when CFG loops
22912 (ira_build): Remove the parameter. Use explicit number of regions
22913 when CFG loops are not built.
22915 * ira-color.c (print_loop_title): Separate the case for the root node.
22916 Use loop_num instead of loop->num.
22917 (move_spill_restore): Use loop_num instead of loop->num.
22919 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
22920 (change_loop): Ditto.
22921 (change_loop): Use loop_num instead of loop->num.
22923 * ira-lives.c (process_bb_node_lives): Ditto.
22925 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
22927 * ira-conflicts.c (print_allocno_conflicts): Ditto.
22929 2012-01-19 Jakub Jelinek <jakub@redhat.com>
22931 PR libmudflap/40778
22932 * tree-mudflap.c (mf_artificial): New function.
22933 (execute_mudflap_function_ops, execute_mudflap_function_decls,
22934 mx_register_decls, mudflap_enqueue_decl): Use it.
22937 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
22938 numbers in the insn pattern.
22940 2012-01-19 Michael Matz <matz@suse.de>
22942 PR tree-optimization/46590
22943 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
22944 use it in remembering which conflicts we already created.
22945 (add_scope_conflicts): Adjust call to above, (de)allocate helper
22948 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
22951 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
22952 (merge_and_complain): Same.
22954 2012-01-19 Jakub Jelinek <jakub@redhat.com>
22957 * config/initfini-array.h: Guard content of the header
22958 with #ifdef HAVE_INITFINI_ARRAY.
22959 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
22960 Add initfini-array.h to tm_file here.
22961 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
22962 * config.gcc: Don't add initfini-array.h to tm_file here.
22963 * configure: Regenerated.
22965 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
22967 PR rtl-optimization/51505
22968 * df-problems.c (df_kill_notes): New parameter live. Update comment.
22969 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
22970 (df_note_bb_compute): Update the call to df_kill_notes.
22972 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
22974 * trans-mem.c (requires_barrier): Remove call to is_global_var.
22976 2012-01-18 Richard Guenther <rguenther@suse.de>
22978 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
22979 of conversions to void *.
22981 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22982 Richard Sandiford <rdsandiford@googlemail.com>
22984 PR middle-end/50325
22985 PR middle-end/51192
22986 * optabs.h (simplify_expand_binop): Declare.
22987 * optabs.c (simplify_expand_binop): Make global.
22988 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
22989 endian targets if the source cannot be exactly covered by word
22992 2012-01-17 Jakub Jelinek <jakub@redhat.com>
22995 * hard-reg-set.h (struct hard_reg_set_container): New type.
22996 * target.h (struct hard_reg_set_container): Forward declare.
22997 * target.def (set_up_by_prologue): New target hook.
22998 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
22999 * doc/tm.texi: Regenerated.
23000 * function.c (thread_prologue_and_epilogue_insns): Change
23001 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
23002 Call targetm.set_up_by_prologue on it.
23003 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
23004 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
23006 2012-01-17 Nick Clifton <nickc@redhat.com>
23008 * config/rx/rx.c (rx_can_use_simple_return): New function.
23009 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
23010 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
23012 2012-01-17 Richard Guenther <rguenther@suse.de>
23014 PR middle-end/51782
23015 * expr.c (expand_assignment): Take address-space information
23016 from the address operand of MEM_REF and TARGET_MEM_REF.
23017 (expand_expr_real_1): Likewise.
23019 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23021 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
23022 reload dump is requested.
23024 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
23027 * trans-mem.c (requires_barrier): Call may_be_aliased.
23029 2012-01-17 Jakub Jelinek <jakub@redhat.com>
23031 PR tree-optimization/51877
23032 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
23033 call arguments and fndecls compare equal, instead return false if they
23034 don't. Return true only if lhs1 and lhs2 are either both NULL, or
23035 both SSA_NAMEs that are valueized the same, or they satisfy
23038 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23040 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
23042 * configure: Regenerate.
23044 2012-01-16 Jan Hubicka <jh@suse.cz>
23048 * convert.c (convert_to_integer): Use fold_convert for
23049 converting an INTEGER_CST to integer type.
23051 2012-01-16 Jason Merrill <jason@redhat.com>
23054 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
23056 2012-01-16 Jakub Jelinek <jakub@redhat.com>
23059 * config/s390/s390.c (s390_chunkify_start): Don't skip
23060 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
23061 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
23062 If insn is followed by NOTE_INSN_VAR_LOCATION or
23063 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
23064 Don't use location of note insns.
23066 PR tree-optimization/51865
23067 * tree-inline.c (tree_function_versioning): Call remap_decl
23068 on DECL_RESULT whenever it has VOID_TYPE_P type.
23070 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
23072 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
23073 for calls to locally-binding MIPS16 functions if only the return
23074 type uses float regs.
23076 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
23077 Richard Sandiford <rdsandiford@googlemail.com>
23079 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
23080 (SYMBOL_32_HIGH): Likewise.
23081 (mips_output_tls_reloc_directive): Declare.
23082 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
23083 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
23084 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
23085 (mips_lo_relocs, mips_hi_relocs): Make extern.
23086 (mips16_stub_function): Move up file.
23087 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
23088 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
23089 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
23090 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
23091 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
23092 (mips_get_tp): Add MIPS16 support.
23093 (mips_legitimize_tls_address): Remove MIPS16 sorry().
23094 Generalize DTPREL and TPREL handling.
23095 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
23096 Add MIPS16 TLS support.
23097 (mips_output_tls_reloc_directive): New function.
23098 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
23099 * config/mips/predicates.md (symbolic_operand_with_high)
23100 (tls_reloc_operand): New predicates.
23101 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
23102 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
23103 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
23104 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
23105 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
23106 (*tls_get_tp_mips16_call_<mode>): Likewise.
23108 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
23110 PR rtl-optimization/51821
23111 * recog.c (peep2_find_free_register): Determine clobbered registers
23114 2012-01-14 Denis Chertykov <chertykov@gmail.com>
23117 * config/avr/avr-protos.h: Revert change of 2012-01-09.
23118 * config/avr/avr.c: Likewise.
23119 * config/avr/avr.h: Likewise.
23121 2012-01-13 Ian Lance Taylor <iant@google.com>
23124 * tree.h (TYPE_QUALS): Add cast to int.
23125 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
23127 2012-01-13 Ian Lance Taylor <iant@google.com>
23129 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
23130 comparing param_index to VEC_length result.
23132 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
23134 * c-decl.c: Do not include tree-mudflap.h
23135 * tree-optimize.c: Likewise.
23136 * Makefile.in: Update dependencies.
23138 2012-01-13 Richard Guenther <rguenther@suse.de>
23141 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
23142 variable-sized result always use RSO.
23144 2012-01-12 DJ Delorie <dj@redhat.com>
23146 * cfgexpand.c (convert_debug_memory_address): Allow any valid
23147 pointer type, not just the default pointer type.
23149 2012-01-09 Richard Henderson <rth@redhat.com>
23150 Denis Chertykov <chertykov@gmail.com>
23153 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
23154 * config/avr/avr.c (avr_can_eliminate): Simplify.
23155 (avr_initial_elimination_offset): Likewise.
23156 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
23157 (expand_epilogue): Likewise.
23158 (avr_legitimize_address): Gut.
23159 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
23160 (avr_hard_regno_nregs): New.
23161 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
23162 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
23163 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
23164 add soft frame pointer.
23165 (CALL_USED_REGISTERS): Likewise.
23166 (REG_CLASS_CONTENTS): Likewise.
23167 (REGISTER_NAMES): Likewise.
23168 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
23169 (HARD_FRAME_POINTER_REGNUM): New.
23170 (FRAME_POINTER_REGNUM): Use soft frame pointer.
23171 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
23172 remove the HARD_FRAME_POINTER self-elimination.
23174 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
23177 * config/avr/avr.c (avr_encode_section_info): Test for absence of
23178 DECL_EXTERNAL when checking for initializers of progmem variables.
23180 2012-01-12 Ira Rosen <irar@il.ibm.com>
23182 PR tree-optimization/51799
23183 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
23184 that the last operation is a type demotion.
23186 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
23188 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
23189 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
23191 2012-01-11 Jakub Jelinek <jakub@redhat.com>
23194 * combine.c (distribute_notes): If i3 is a noreturn call,
23195 allow old_size to be equal to args_size and make sure the
23196 noreturn call gets REG_ARGS_SIZE note.
23197 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
23198 on noreturn calls even when the delta is 0.
23200 2012-01-11 Nathan Sidwell <nathan@acm.org>
23202 * gcov.c (STRING_SIZE): Remove.
23203 (generate_results): Erase annotations for source files with no
23204 coverage information.
23206 (output_lines): Use it.
23208 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
23210 * gimple.h (gimplify_body): Remove first argument.
23211 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
23212 pointer set here, instead just pass DATA to walk_tree.
23213 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
23214 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
23215 (unvisit_body): Likewise, but with unmark_visited.
23216 (gimplify_body): Remove BODY_P argument and adjust.
23217 (gimplify_function_tree): Adjust call to gimplify_body.
23218 * omp-low.c (finalize_task_copyfn): Likewise.
23220 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
23222 * tree.h (build_function_decl_skip_args): Add boolean parameter.
23223 (build_function_type_skip_args): Delete.
23224 * tree.c (build_function_type_skip_args): Make static and add
23225 SKIP_RETURN parameter. Fix thinko in the handling of variants.
23226 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
23227 pass it to build_function_type_skip_args.
23228 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
23229 (tree_function_versioning): Likewise.
23230 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
23231 build_function_decl_skip_args.
23232 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
23233 and pass it to build_function_decl_skip_args/tree_function_versioning.
23234 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
23235 * ipa-inline-transform.c (save_inline_function_body): Likewise.
23236 * trans-mem.c (ipa_tm_create_version): Likewise.
23237 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
23238 * tree-inline.c (declare_return_variable): Remove always-true test.
23239 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
23240 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
23241 * ipa-split.c (split_function): Skip the return value for the split
23242 part if it doesn't return.
23244 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23246 PR tree-optimization/49642
23247 * ipa-split.c (forbidden_dominators): New variable.
23248 (check_forbidden_calls): New function.
23249 (dominated_by_forbidden): Likewise.
23250 (consider_split): Check for forbidden dominators.
23251 (execute_split_functions): Initialize and free forbidden
23252 dominators info; call check_forbidden_calls.
23254 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
23256 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
23258 2012-01-11 Nick Clifton <nickc@redhat.com>
23260 * config/rx/rx.md (return): Define pattern.
23262 2012-01-11 Richard Guenther <rguenther@suse.de>
23264 * doc/extend.texi (malloc attribute): Adjust according to
23267 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
23268 Patrick Marlier <patrick.marlier@gmail.com>
23270 PR middle-end/51516
23271 * trans-mem.c (get_cg_data): Traverse aliases if requested.
23272 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
23273 (ipa_tm_note_irrevocable): Same.
23274 (ipa_tm_scan_irr_block): Same.
23275 (ipa_tm_decrement_clone_counts): Same.
23276 (ipa_tm_scan_irr_function): Same.
23277 (ipa_tm_create_version_alias): Same.
23278 (ipa_tm_create_version): Same.
23279 (ipa_tm_transform_calls_redirect): Same.
23280 (ipa_tm_transform_calls): Same.
23281 (ipa_tm_transform_transaction): Same.
23282 (ipa_tm_execute): Same.
23284 2012-01-10 Richard Guenther <rguenther@suse.de>
23286 PR middle-end/51806
23287 * opts.c (common_handle_option): Handle -Werror.
23289 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
23291 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
23294 2012-01-10 Jason Merrill <jason@redhat.com>
23296 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
23299 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23301 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
23302 supports R_386_TLS_GD_PLT reloc.
23303 (gcc_cv_as_ix86_tlsldmplt): Check if linker
23304 supports R_386_TLS_LDM_PLT reloc.
23305 * configure: Regenerate.
23306 * config.in: Regenerate.
23308 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
23311 Extend __pgmx semantics to linearize memory.
23312 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
23313 determine if code comes inline or from libgcc.
23314 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
23315 (movmem_qi, movmem_qi): Set constraint #2 to "n".
23316 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
23317 (movmemx_qi, movmemx_hi): New insns.
23318 (xload_<mode>_libgcc): Rewrite to new insn condition.
23319 (xload_<mode>): Remove insns.
23320 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
23321 cases that don't satisfy avr_xload_libgcc_p().
23322 (avr_addr_space_convert): Allow converting in any direction.
23323 (avr_addr_space_subset_p): Return always true.
23324 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
23325 (avr_emit_movmemhi): Ditto.
23326 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
23327 (avr_out_movmem): Ditto.
23328 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
23329 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
23330 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
23331 (avr_encode_section_info): Encode 'progmem' in symbol flags.
23332 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
23334 2012-01-10 Richard Guenther <rguenther@suse.de>
23336 PR tree-optimization/50913
23337 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
23338 Require data-refs to be representable by Graphite with respect
23341 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
23343 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
23344 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
23346 2012-01-10 Tom de Vries <tom@codesourcery.com>
23348 PR rtl-optimization/51271
23349 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
23350 handling annulled branch.
23352 2012-01-10 Richard Henderson <rth@redhat.com>
23354 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
23355 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
23356 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
23357 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
23358 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
23359 arm_expand_vec_perm_const): New.
23360 * config/arm/arm-protos.h: Update.
23361 * config/arm/neon.md (UNSPEC_VCONCAT): New.
23362 (*neon_vswp<VDQX>): New.
23363 (neon_vcombine<VDX>): Use neon_split_vcombine.
23364 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
23365 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
23366 (vec_perm<VE>): New.
23368 2012-01-10 Richard Henderson <rth@redhat.com>
23370 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
23371 use it if reload_completed.
23372 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
23373 arm_output_asm_insn, arm_process_output_memory_barrier,
23374 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
23375 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
23376 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
23377 arm_process_output_sync_insn, arm_output_sync_insn,
23378 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
23379 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
23380 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
23381 (emit_unlikely_jump): New.
23382 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
23383 (arm_split_atomic_op): New.
23384 * config/arm/arm-protos.h: Update.
23385 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
23386 (struct arm_sync_generator): Remove.
23387 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
23388 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
23389 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
23390 (VUNSPEC_LL, VUNSPEC_SC): New.
23391 (sync_result, sync_memory, sync_required_value, sync_new_value,
23392 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
23393 (attr length): Don't use arm_sync_loop_insns.
23394 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
23395 (movsfcc, movdfcc): Likewise.
23396 * config/arm/constraints.md (Ua): New.
23397 * config/arm/prediates.md (mem_noofs_operand): New.
23398 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
23399 (sync_clobber, sync_t2_reqd): Remove.
23400 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
23401 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
23402 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
23403 (arm_sync_compare_and_swap<SIDI>): Remove.
23404 (arm_sync_compare_and_swap<NARROW>): Remove.
23405 (arm_sync_lock_test_and_set<SIDI>): Remove.
23406 (arm_sync_lock_test_and_set<NARROW>): Remove.
23407 (arm_sync_new_<syncop><SIDI>): Remove.
23408 (arm_sync_new_<syncop><NARROW>): Remove.
23409 (arm_sync_new_nand<SIDI>): Remove.
23410 (arm_sync_new_nand<NARROW>): Remove.
23411 (arm_sync_old_<syncop><SIDI>): Remove.
23412 (arm_sync_old_<syncop><NARROW>): Remove.
23413 (arm_sync_old_nand<SIDI>): Remove.
23414 (arm_sync_old_nand<NARROW>): Remove.
23415 (*memory_barrier): Merge arm_output_memory_barrier.
23416 (atomic_compare_and_swap<QHSD>): New.
23417 (atomic_compare_and_swap<NARROW>_1): New.
23418 (atomic_compare_and_swap<SIDI>_1): New.
23419 (atomic_exchange<QHSD>): New.
23420 (cas_cmp_operand, cas_cmp_str): New.
23421 (atomic_op_operand, atomic_op_str): New.
23422 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
23423 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
23424 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
23425 (arm_load_exclusive<NARROW>): New.
23426 (arm_load_exclusivesi, arm_load_exclusivedi): New.
23427 (arm_store_exclusive<QHSD>): New.
23429 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23431 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
23432 reload patterns if -mvsx-scalar-memory.
23434 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
23435 generated, even -mno-vsx-scalar-double was used.
23436 (vsx_xscvdpsp_scalar): Likewise.
23437 (vsx_xscvspdp_scalar2): Likewise.
23439 2012-01-09 Tom de Vries <tom@codesourcery.com>
23440 Andrew Pinski <apinski@cavium.com>
23443 * reorg.c (fill_slots_from_thread): Don't speculate
23444 frame-related insns.
23446 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
23448 * sched-int.h (bb_note): Move to...
23449 * basic-block.h: ...here.
23450 * haifa-sched.c (bb_note): Move to...
23451 * cfgrtl.c: ...here.
23452 * function.c (next_block_for_reg): New function.
23453 (move_insn_for_shrink_wrap): Likewise.
23454 (prepare_shrink_wrap): Rewrite to use the above.
23456 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
23458 * gimple.c (is_gimple_non_addressable): Remove.
23459 * gimple.h: Remove is_gimple_non_addressable.
23460 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
23461 is_gimple_non_addressable.
23462 * trans-mem.c (expand_assign_tm): Same.
23464 2012-01-09 Richard Guenther <rguenther@suse.de>
23466 PR tree-optimization/51775
23467 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
23468 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
23470 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
23472 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
23474 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
23476 2012-01-09 Richard Guenther <rguenther@suse.de>
23478 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
23480 2012-01-08 Jan Hubicka <jh@suse.cz>
23482 PR tree-optimize/51680
23483 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
23484 on when known_vals needs to be computed; cleanup.
23486 2012-01-08 Jan Hubicka <jh@suse.cz>
23488 PR tree-optimize/51694
23489 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
23491 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
23493 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
23494 for -std=c++98 and -std=c++11 too.
23496 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
23498 * cfgloop.c (cancel_loop): Add free() of bbs array.
23500 2012-01-07 Jan Hubicka <jh@suse.cz>
23502 PR tree-optimization/51600
23503 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
23504 that benefits small functions.
23506 2012-01-07 Jan Hubicka <jh@suse.cz>
23508 * ipa-inline.c (want_inline_small_function_p): Fix formating.
23510 2012-01-07 Jan Hubicka <jh@suse.cz>
23512 PR tree-optimization/51680
23513 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
23514 whose inlining reduce unit size.
23516 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
23519 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
23520 Add canonical node to containing_mem chain after the non-canonical
23521 one, even if there weren't any locs to propagate.
23522 (remove_useless_values): Keep only canonical values.
23523 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
23524 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
23525 canonicalize mem_chain elements that are not discarded.
23527 2012-01-06 Jakub Jelinek <jakub@redhat.com>
23530 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
23531 before emitting functions.
23533 PR gcov-profile/50127
23534 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
23535 clear_aux_for_blocks.
23537 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
23540 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
23542 2012-01-06 Arnaud Charlet <charlet@adacore.com>
23544 * c-decl.c (ext_block): Moved up.
23545 (collect_all_refs, for_each_global_decl): Take ext_block into account.
23547 2012-01-06 Han Shen <shenhan@google.com>
23549 Translate built-in include paths for sysroot.
23550 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
23551 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
23553 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
23554 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
23556 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
23557 control whether sysroot should be prepended to gxx include dir.
23559 * configure: Regenerate.
23561 2012-01-06 Torvald Riegel <triegel@redhat.com>
23563 PR rtl-optimization/51771
23564 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
23565 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
23567 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
23569 PR tree-optimization/51315
23570 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
23571 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
23573 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
23576 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
23577 for shrp pattern. Correctly handle and fixup shift variable.
23578 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
23580 2012-01-05 Jakub Jelinek <jakub@redhat.com>
23583 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
23584 note when !ACCUMULATE_OUTGOING_ARGS.
23586 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
23588 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
23590 (extract_range_from_unary_expr_1): Avoid useless computations.
23592 2012-01-05 Jakub Jelinek <jakub@redhat.com>
23594 PR rtl-optimization/51767
23595 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
23596 of jump_block and add an extra edge for degenerated asm gotos.
23598 PR middle-end/51768
23599 * stmt.c (check_unique_operand_names): Don't ICE during error
23600 reporting if i is from labels chain.
23602 PR middle-end/44777
23603 * profile.c (branch_prob): Split bbs that have exit edge
23604 and need a fake entry edge too.
23606 2012-01-05 Jan Hubicka <jh@suse.cz>
23608 PR middle-end/49710
23609 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
23612 2012-01-05 Richard Guenther <rguenther@suse.de>
23615 * tree-streamer-out.c (write_ts_optimization): New function.
23616 (streamer_write_tree_body): Call it.
23617 * tree-streamer-in.c (lto_input_ts_optimization): New function.
23618 (streamer_read_tree_body): Call it.
23619 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
23621 2012-01-05 Jakub Jelinek <jakub@redhat.com>
23623 PR middle-end/51761
23624 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
23625 * gimplify.c (gimplify_cleanup_point_expr): Save and set
23626 in_cleanup_point_expr before gimplify_stmt call and restore it
23628 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
23629 in_cleanup_point_expr is false.
23631 2012-01-05 Richard Guenther <rguenther@suse.de>
23633 PR middle-end/51764
23634 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
23636 * toplev.c (process_options): Reject combining mudflap and LTO.
23637 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
23639 2012-01-05 Richard Guenther <rguenther@suse.de>
23641 PR tree-optimization/51760
23642 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
23644 (bit_value_unop): Handle UNDEFINED operands.
23645 (bit_value_binop): Likewise.
23647 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
23649 * config/avr/avr.c (avr_replace_prefix): Remove.
23650 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
23651 (avr_asm_function_rodata_section): Ditto.
23652 (avr_asm_select_section): Ditto.
23654 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
23656 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
23659 2012-01-05 Jakub Jelinek <jakub@redhat.com>
23662 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
23663 calls that have any non-fake successor edges.
23666 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
23668 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
23670 PR tree-optimization/51624
23671 * tree-sra.c (build_ref_for_model): When replicating a chain of
23672 COMPONENT_REFs, stop as soon as the offset would become negative.
23674 2012-01-04 Jakub Jelinek <jakub@redhat.com>
23677 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
23678 in .debug_loc on the floor.
23680 2012-01-04 Andrew Pinski <apinski@cavium.com>
23682 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
23684 2012-01-04 Andrew Pinski <apinski@cavium.com>
23685 Adam Nemet <anemet@caviumnetworks.com>
23687 * config/mips/mips.md (size): Add SI and DI.
23688 (SIZE): New mode attribute.
23689 (U): New code attribute.
23690 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
23691 (mips_lbux_<mode>): Delete.
23692 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
23693 (mips_lhx): Use gen_mips_lhx_extsi.
23694 (mips_lhx_<mode>): Delete.
23695 (mips_lwx): Delete.
23696 (mips_l<size>x): New expand.
23697 (mips_lwx_<mode>): Delete.
23698 (mips_l<GPR:size>x_<P:mode>): New pattern.
23699 (*mips_lw<u>x_<P:mode>_ext): Likewise.
23700 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
23701 * config/mips/mips.c (mips_lx_address_p): New function.
23702 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
23703 (dsp64): New availability predicate.
23704 (mips_builtins): Add an entry for __builtin_mips_ldx.
23705 * config/mips/mips.h (ISA_HAS_LBX): New define.
23706 (ISA_HAS_LBUX): Likewise.
23707 (ISA_HAS_LHX): Likewise.
23708 (ISA_HAS_LHUX): Likewise.
23709 (ISA_HAS_LWX): Likewise.
23710 (ISA_HAS_LWUX): Likewise.
23711 (ISA_HAS_LDX): Likewise.
23712 * doc/extend.texi (__builtin_mips_ldx): Document.
23714 2012-01-04 Tristan Gingold <gingold@adacore.com>
23716 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
23717 when long pointers are used.
23718 * config.build (*-*-*vms*): Handle all OpenVMS targets.
23719 (alpha64-dec-*vms*, alpha*-dec-*vms*)
23720 (ia64-hp-*vms*): Remove.
23721 * config/vms/xm-vms64.h: Delete.
23723 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
23725 PR middle-end/51472
23726 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
23728 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
23730 * opts.c (finish_options): Remove duplicate sorry.
23732 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
23734 PR middle-end/51696
23735 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
23738 2012-01-04 Richard Guenther <rguenther@suse.de>
23740 PR middle-end/51750
23741 * tree.c (size_low_cst): New function.
23742 * tree.h (size_low_cst): Declare.
23743 * fold-const.c (fold_comparison): Use it to extract the low
23744 part of the POINTER_PLUS_EXPR offset.
23746 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
23748 Fix clearing ZERO_REG
23749 * config/avr/avr.md (cc): Add alternative "ldi".
23750 (movqi_insn): Use it in cc attribute.
23751 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
23752 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
23753 (output_reload_insisf): Use ZERO_REG to pre-clear register.
23755 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23757 * configure: Regenerate.
23759 2012-01-04 Richard Guenther <rguenther@suse.de>
23761 PR tree-optimization/49651
23762 * tree-ssa-structalias.c (type_can_have_subvars): New function.
23763 (var_can_have_subvars): Use it.
23764 (get_constraint_for_1): Only consider subfields if there can be any.
23766 2012-01-03 Jakub Jelinek <jakub@redhat.com>
23769 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
23770 to its new canonical_cselib_val and the cselib_val was in
23771 first_containing_mem chain, but the canonical_cselib_val was not,
23772 add the latter into the chain.
23773 (cselib_invalidate_mem): Compare canonical_cselib_val of
23774 addr_list chain elt with v.
23777 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
23778 dwarf2out_undef): Allocate e.info using ggc_strdup instead
23780 (output_macinfo_op): Don't ggc_strdup fd->filename.
23781 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
23782 then ggc_strdup it. Don't free inc->info or cur->info.
23783 (output_macinfo): Don't free ref->info or file->info.
23785 2012-01-03 Ira Rosen <irar@il.ibm.com>
23787 PR tree-optimization/51269
23788 * tree-vect-loop-manip.c (set_prologue_iterations): Make
23789 first_niters a pointer.
23790 (slpeel_tree_peel_loop_to_edge): Likewise.
23791 (vect_do_peeling_for_loop_bound): Update call to
23792 slpeel_tree_peel_loop_to_edge.
23793 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
23794 here. Remove it from the parameters list.
23795 (vect_do_peeling_for_alignment): Update calls and compute
23796 wide_prolog_niters.
23798 2012-01-03 Richard Guenther <rguenther@suse.de>
23800 PR tree-optimization/51070
23801 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
23802 Properly handle calls.
23804 2012-01-03 Richard Guenther <rguenther@suse.de>
23806 PR tree-optimization/51692
23807 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
23808 the LHS of allocation stmts.
23810 2012-01-03 Olivier Hainque <hainque@adacore.com>
23812 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
23814 2012-01-03 Olivier Hainque <hainque@adacore.com>
23816 * collect2.c (main): In AIX specific computations for vector
23817 insertions, use CONST_CAST2 to cast from char ** to const char **.
23819 2012-01-03 Richard Guenther <rguenther@suse.de>
23822 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
23823 the context of a limbo DIE when it does not already exist.
23825 2012-01-03 Jakub Jelinek <jakub@redhat.com>
23827 PR tree-optimization/51719
23828 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
23829 but direct call is, clear direct call's lhs and don't add fallthrough
23830 edge from dcall_bb to join_bb and PHIs.
23832 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23834 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
23835 the instructions emitted by the pattern.
23836 ("*TDC_insn_<mode>"): Add comment.
23838 2012-01-03 Richard Guenther <rguenther@suse.de>
23840 PR middle-end/51730
23841 * fold-const.c (fold_comparison): Properly canonicalize
23842 tree offset and HOST_WIDE_INT bit position.
23844 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
23846 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
23847 operands for extzv pattern.
23849 2012-01-02 Jakub Jelinek <jakub@redhat.com>
23852 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
23855 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
23857 * doc/invoke.texi (-flto and related options): Copy-edit.
23859 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23861 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
23863 2012-01-02 Jakub Jelinek <jakub@redhat.com>
23865 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
23868 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
23870 * expr.h (move_by_pieces_ninsns): Declare.
23871 * expr.c (move_by_pieces_ninsns): Make external.
23872 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
23873 (mips_store_by_pieces_p): Likewise.
23874 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
23875 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
23876 * config/mips/mips.c (mips_move_by_pieces_p): New function.
23877 (mips_store_by_pieces_p): Likewise.
23879 2012-01-02 Jakub Jelinek <jakub@redhat.com>
23881 * passes.c (register_one_dump_file): Free full_name.
23883 * reload1.c (reload): Don't allocate reg_max_ref_width here.
23884 (calculate_elim_costs_all_insns): Free offsets_at and
23885 offsets_known_at at the end and clear the pointers.
23887 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
23889 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
23890 this option introduced in r180739.
23892 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
23895 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
23896 (tmake_file target=avr): Add avr/t-multilib.
23898 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
23899 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
23900 * config/avr/genmultilib.awk: New file.
23901 * config/avr/t-multilib: New auto-generated file.
23902 * config/avr/multilib.h: New auto-generated file.
23903 * config/avr/t-avr (AVR_MCUS): New variable.
23904 (genopt.sh): Use it.
23905 (s-mlib): Depend on t-multilib.
23906 (t-multilib, multilib.h): New dependencies.
23907 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
23908 (MULTILIB_OPTIONS): Remove.
23909 (MULTILIB_MATCHES): Remove.
23910 (MULTILIB_DIRNAMES): Remove.
23911 (MULTILIB_EXCEPTIONS): Remove:
23912 * config/avr/genopt.sh: Don't use hard coded file name;
23913 pass AVR_MCUS from t-avr instead.
23915 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
23917 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
23919 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
23921 Implement light-weight DImode support.
23922 * config/avr/avr-dimode.md: New file.
23923 * config/avr/avr.md: Include it.
23924 (adjust_len): Add plus64, compare64.
23925 (HIDI): Remove code iterator.
23926 (code_stdname): New code attribute.
23927 (rotx, rotsmode): Remove DI.
23928 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
23930 * config/avr/avr-protos.h (avr_have_dimode): New.
23931 (avr_out_plus64, avr_out_compare64): New.
23932 * config/avr/avr.c (avr_out_compare): Handle DImode.
23933 (avr_have_dimode): New variable definition and initialization.
23934 (avr_out_compare64, avr_out_plus64): New functions.
23935 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
23936 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
23937 (avr_compare_pattern): Skip DImode comparisons.
23939 2012-01-02 Revital Eres <revital.eres@linaro.org>
23941 * ddg.c (def_has_ccmode_p): New function.
23942 (add_cross_iteration_register_deps,
23943 create_ddg_dep_from_intra_loop_link): Call it.
23945 2012-01-02 Richard Guenther <rguenther@suse.de>
23948 * invoke.texi (fassociative-math): Remove spurious paranthesis.
23950 2012-01-01 Jakub Jelinek <jakub@redhat.com>
23952 * gcc.c (process_command): Update copyright notice dates.
23953 * gcov.c (print_version): Likewise.
23954 * gcov-dump.c (print_version): Likewise.
23955 * mips-tfile.c (main): Likewise.
23956 * mips-tdump.c (main): Likewise.
23958 2012-01-01 Ira Rosen <irar@il.ibm.com>
23960 PR tree-optimization/51704
23961 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
23962 a use is inside the basic block or loop before accessing its vect info.
23964 2012-01-01 Jan Hubicka <jhjh@suse.cz>
23966 PR rtl-optimization/51069
23967 * cfgloopmanip.c (remove_path): Removing path making irreducible
23968 region unconditional makes BB part of the region.
23970 2012-01-01 Jakub Jelinek <jakub@redhat.com>
23972 PR tree-optimization/51683
23973 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
23974 calls with side-effects.
23975 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
23977 Copyright (C) 2012 Free Software Foundation, Inc.
23979 Copying and distribution of this file, with or without modification,
23980 are permitted in any medium without royalty provided the copyright
23981 notice and this notice are preserved.