1 2012-11-20 Matthias Klose <doko@ubuntu.com>
3 * configure.ac: Substitute `with_cpu'.
4 * configure: Regenerate.
5 * Makefile.in: Define `with_cpu'.
6 * config/rs6000/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
7 * config/rs6000/t-linux: New file; define MULTIARCH_DIRNAME.
8 * config/rs6000/t-fprules (SOFT_FLOAT_CPUS): New macro. Add e300c2
10 (MULTILIB_MATCHES_FLOAT): Define in terms of SOFT_FLOAT_CPUS.
11 * config/rs6000/t-spe: Define MULTIARCH_DIRNAME.
12 * config.gcc <powerpc-*-linux* | powerpc64-*-linux*> (tmake_file):
13 Include rs6000/t-linux for 32bit non-biarch configurations.
15 2012-11-20 Matthias Klose <doko@ubuntu.com>
17 * doc/install.texi: Move multiarch paragraph out of multilib
20 2012-11-20 Matthias Klose <doko@ubuntu.com>
22 * config/arm/t-linux-eabi: Define MULTIARCH_DIRNAME for linux target.
24 2012-11-20 Richard Sandiford <rdsandiford@googlemail.com>
26 * stor-layout.c (bit_field_mode_iterator::next_mode): Fix signedness.
28 2012-11-20 Vladimir Makarov <vmakarov@redhat.com>
30 PR rtl-optimization/55396
31 * lra-constraints.c (get_reload_reg): Change class if it is
32 different from reg class.
34 2012-11-20 Jakub Jelinek <jakub@redhat.com>
36 * vec.h (class vec_prefix): Change into struct.
37 Rename field alloc_PRIVATE_ back to alloc_.
38 Rename field num_PRIVATE_ to num_.
40 (class vec<T, A, vl_embed>): Rename field pfx_PRIVATE_ to vecpfx_.
41 Rename field data_PRIVATE_ to vecdata_.
43 (class vec<T, A, vl_ptr>): Make every field public.
44 Rename field vec_PRIVATE_ back to vec_.
47 2012-11-20 Richard Sandiford <rdsandiford@googlemail.com>
51 * expmed.c (store_bit_field_1): Use adjust_bitfield_address_size
52 rather than adjust_bitfield_address to change the mode of a reference.
53 (extract_bit_field_1): Likewise.
55 2012-11-20 Michael Meissner <meissner@linux.vnet.ibm.com>
57 * config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment
58 explaining the register ordering preferences.
60 2012-11-20 Aldy Hernandez <aldyh@redhat.com>
62 PR tree-optimization/55350
63 * gimple-ssa-strength-reduction.c (replace_dependent): Handle
64 POINTER_PLUS_EXPR correctly.
66 2012-11-20 Uros Bizjak <ubizjak@gmail.com>
68 * config/i386/i386.md (fix_trunc<MODEF:mode><SWI48:mode>_sse): Macroize
69 insn from fix_trunc<mode>{si,di}_sse using SWI48 mode iterator.
70 (peephole2 to avoid vector decoded forms): Macroize peephole2
71 using MODEF mode iterator. Use SWI48 mode iterator instead of SWI48x.
73 2012-11-20 Uros Bizjak <ubizjak@gmail.com>
77 (peephole2 to shorten x87->SSE reload sequences): Remove peephole2.
78 * config/i386/i386.h (enum ix86_tune_indices)
79 <IX86_TUNE_SHORTEN_X87_SSE>: Remove.
80 * config/i386/i386.h (initial_ix86_tune_features): Update.
82 2012-11-20 Vladimir Makarov <vmakarov@redhat.com>
85 * lra-constraints.c (process_alt_operands): Discourage reloads
86 through secodnary memory.
88 2012-11-20 David Edelsohn <dje.gcc@gmail.com>
90 * config/rs6000/rs6000.md (largetoc_low): Revert.
91 (largetoc_low_aix<mode>): New.
93 2012-11-20 Diego Novillo <dnovillo@google.com>
94 Jakub Jelinek <jakub@redhat.com>
96 * vec.h (struct vnull): Declare.
98 * vec.c (vNULL): Define.
99 * bb-reorder.c: Replace all vec<T, A>() initializers with vNULL.
100 * cfgexpand.c: Likewise.
101 * cfgloop.c: Likewise.
102 * cfgloopanal.c: Likewise.
103 * cfgloopmanip.c: Likewise.
104 * cgraph.c: Likewise.
105 * config/c6x/c6x.c: Likewise.
106 * config/i386/i386.c: Likewise.
107 * df-core.c: Likewise.
108 * dominance.c: Likewise.
109 * dwarf2out.c: Likewise.
110 * except.c: Likewise.
111 * function.c: Likewise.
113 * genautomata.c: Likewise.
114 * graphds.c: Likewise.
115 * graphite-scop-detection.c: Likewise.
116 * graphite.c: Likewise.
117 * haifa-sched.c: Likewise.
119 * ipa-cp.c: Likewise.
120 * ipa-inline-analysis.c: Likewise.
121 * ipa-inline-transform.c: Likewise.
122 * ipa-inline.c: Likewise.
123 * ipa-prop.c: Likewise.
124 * ipa-split.c: Likewise.
125 * ipa-utils.c: Likewise.
126 * ira-build.c: Likewise.
127 * lto-cgraph.c: Likewise.
128 * lto-streamer-in.c: Likewise.
129 * lto-symtab.c: Likewise.
130 * opts-global.c: Likewise.
131 * passes.c: Likewise.
133 * sched-deps.c: Likewise.
134 * sel-sched-ir.c: Likewise.
135 * sel-sched-ir.h: Likewise.
136 * sel-sched.c: Likewise.
137 * stor-layout.c: Likewise.
138 * trans-mem.c: Likewise.
139 * tree-call-cdce.c: Likewise.
140 * tree-cfg.c: Likewise.
141 * tree-data-ref.c: Likewise.
142 * tree-diagnostic.c: Likewise.
143 * tree-eh.c: Likewise.
144 * tree-loop-distribution.c: Likewise.
145 * tree-predcom.c: Likewise.
146 * tree-ssa-loop-im.c: Likewise.
147 * tree-ssa-loop-ivcanon.c: Likewise.
148 * tree-ssa-loop-manip.c: Likewise.
149 * tree-ssa-loop-niter.c: Likewise.
150 * tree-ssa-loop-prefetch.c: Likewise.
151 * tree-ssa-math-opts.c: Likewise.
152 * tree-ssa-phiopt.c: Likewise.
153 * tree-ssa-pre.c: Likewise.
154 * tree-ssa-propagate.c: Likewise.
155 * tree-ssa-reassoc.c: Likewise.
156 * tree-ssa-sccvn.c: Likewise.
157 * tree-ssa-structalias.c: Likewise.
158 * tree-ssa-threadedge.c: Likewise.
159 * tree-ssa-uninit.c: Likewise.
160 * tree-stdarg.c: Likewise.
161 * tree-switch-conversion.c: Likewise.
162 * tree-vect-data-refs.c: Likewise.
163 * tree-vect-loop.c: Likewise.
164 * tree-vect-slp.c: Likewise.
165 * tree-vect-stmts.c: Likewise.
166 * value-prof.c: Likewise.
167 * varasm.c: Likewise.
169 2012-11-20 Diego Novillo <dnovillo@google.com>
171 * Makefile.in (tlink.o): Add dependency on VEC_H.
173 2012-11-20 Diego Novillo <dnovillo@google.com>
176 * vec.h (class vec_prefix): Make every field public.
177 Rename field alloc_ to alloc_PRIVATE_.
178 Rename field num_ to num_PRIVATE_.
180 (class vec<T, A, vl_embed>): Make every field public.
181 Rename field pfx_ to pfx_PRIVATE_.
182 Rename field data_ to data_PRIVATE_.
184 (class vec<T, A, vl_ptr>): Make every field public.
185 Rename field vec_ to vec_PRIVATE_.
188 2012-11-20 Kai Tietz <ktietz@redhat.com>
191 * i386.c (ix86_mangle_decl_assembler_name): Use
192 SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME if defined.
193 * cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Rename
194 to SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME.
196 2012-11-20 Uros Bizjak <ubizjak@gmail.com>
198 * config/i386/i386.c (ix86_expand_call): Emit CLOBBERs in VOIDmode.
200 2012-11-20 Nick Clifton <nickc@redhat.com>
202 * config/v850/v850.c (F): New function. Mark the given insn as
204 (v850_all_frame_related): New function. Mark the given push insn
205 as being frame related.
206 (v850_pass_by_reference): When using the RH850 ABI do not pass
207 arguments by reference.
208 (v850_strict_argument_naming): Delete function.
209 (v850_function_arg): Use word alignment with the RH850 ABI.
210 (v850_arg_partial_bytes): Likewise.
211 (v850_function_arg_advance): Likewise.
212 (v850_print_operand): Handle CONST_INT and CONST_DOUBLE.
213 (compute_register_save_size): Use df_regs_ever_live_p.
214 (increment_stack): Mark prologue adjustments as being frame related.
215 (expand_prologue): Handle pretend args. Mark insns generated as
217 (expand_epilogue): Likewise.
218 (v850_return_in_memory): When using the RH850 ABI return
219 aggregates in memory.
220 (v850_setup_incoming_varargs): Delete function.
221 (v850_option_override): New function.
222 (TARGET_DEBUG_UNWIND_INFO): Delete definition.
223 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
224 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
225 (TARGET_OPTION_OVERRIDE): Define.
226 * config/v850/v850.h (ASM_SPEC): Pass 8byte-align and gcc-abi
227 options on to assembler.
228 (LINK_SPEC): Likewise.
229 (TARGET_CPU_CPP_BUILTINS): Define __V850_8BYTE_ALIGN__ and
231 (STACK_BOUNDARY): Set to BIGGEST_ALIGNMENT.
232 (FUNCTION_BOUNDARY): With the RH850 ABI always 32-bit alignment.
233 (BIGGEST_ALIGNMENT): With -8byte-align set to 64-bits.
234 (BIGGEST_FIELD_ALIGNMENT): Likewise.
235 (enum reg_class): Swap EVEN_REGS and GENERAL_REGS.
236 (REG_CLASS_NAMES): Likewise.
237 (REG_CLASS_CONTENTS): Likewise.
238 (struct cum_arg): Delete anonymous_args field.
239 (INIT_CUMULATIVE_ARGS): Update.
240 (PREFERRED_DEBUG): Set to DWARF2_DEBUG.
241 (DWARF2_FRAME_INFO): Define.
242 (DWARF2_UNWIND_INFO): Define.
243 (INCOMING_RETURN_ADDR_RTX): Define.
244 (DWARF_FRAME_RETURN_COLUMN): Define.
245 (TARGET_USE_FPU): Define.
246 * config/v850/v850.md: Replace TARGET_V850E2V3 in floating point
247 insns with TARGET_USE_FPU.
248 (fixuns_truncsfsi2): New pattern.
249 (fixuns_truncdfsi2): New pattern.
250 (fix_truncsfdi2): New pattern.
251 (fixuns_truncsfdi2): New pattern.
252 (fix_truncdfdi2): New pattern.
253 (fixuns_truncdfdi2): New pattern.
254 (unsfloatsisf2): New pattern.
255 (unsfloatsidf2): New pattern.
256 (floatdisf2): New pattern.
257 (unsfloatdisf2): New pattern.
258 (floatdidf2): New pattern.
259 (unsfloatdidf2): New pattern.
260 (fnmasf4): Fix RTl description.
262 * config/v850/v850.opt (mrelax): New option.
263 (mlong-jumps): Likewise.
264 (msoft-float): Likewise.
265 (mhard-float): Likewise.
266 (mrh850-abi): Likewise.
267 (mgcc-abi): Likewise.
268 (m8byte-align): Likewise.
269 * config/v850/t-v850 (MULTILIB_OPTIONS): Update multilib options.
270 (MULTILIB_DIRNAMES): Likewise.
272 2012-11-20 Nick Clifton <nickc@redhat.com>
274 * config/rx/rx.c (rx_function_arg_boundary): When using the RX ABI
275 align stack arguments to their natural alignment.
276 (rx_narrow_volatile_bitfield): New function. Allows narrow
278 (rx_ok_to_inline): New function. Do not inline functions with
279 local variables into a naked caller.
280 (TARGET_NARROW_VOLATILE_BITFIELD): Define.
281 (TARGET_CAN_INLINE_P): Define.
282 * config/rx/rx.c (TARGET_CPU_CPP_BUILTINS): Define __RX_ABI__ or
284 (ASM_SPEC): Pass -mgcc-abi on to the assembler.
285 (STRICT_ALIGNMENT): Set to false.
286 (CTORS_SECTION_ASM_OP): Add executable attribute.
287 (DTORS_SECTION_ASM_OP): Add executable attribute.
288 (INIT_ARRAY_SECTION_ASM_OP): Add executable attribute.
289 (FINI_ARRAY_SECTION_ASM_OP): Add executable attribute.
290 * config/rx/rx.md (subdi3): Don't allow MEMs as the third operand,
291 as it causes too much reload pressure.
292 * config/rx/rx.opt (mgcc-abi): New option.
293 (mrx-abi): New option.
294 * config/rx/t-rx (MULTILIB_OPTIONS): Show how to add an ABI multilib.
295 (MULTILIB_DIRNAMES): Likewise.
297 2012-11-20 James Greenhalgh <james.greenhalgh@arm.com>
298 Tejas Belagod <tejas.belagod@arm.com>
300 * config/aarch64/aarch64-builtins.c
301 (aarch64_simd_builtin_type_bits): Rename to...
302 (aarch64_simd_builtin_type_mode): ...this, make sequential.
303 (aarch64_simd_builtin_datum): Refactor members.
304 (VAR1, VAR2, ..., VAR12): Update accordingly.
305 (aarch64_simd_builtin_data): Include from aarch64-simd-builtins.def.
306 (aarch64_builtins): Update accordingly.
307 (init_aarch64_simd_builtins): Refactor, rename to...
308 (aarch64_init_simd_builtins): ...this.
309 (aarch64_simd_builtin_compare): Remove.
310 (locate_simd_builtin_icode): Likewise.
311 * config/aarch64/aarch64-protos.h (aarch64_init_builtins): New.
312 (aarch64_expand_builtin): New.
313 * config/aarch64/aarch64-simd-builtins.def: New file.
314 * config/aarch64/aarch64.c (aarch64_init_builtins):
315 Move to aarch64-builtins.c.
316 (aarch64_expand_builtin): Likewise.
317 * config/aarch64/aarch64.h
318 (aarch64_builtins): Move to aarch64-builtins.c.
320 2012-11-20 Martin Jambor <mjambor@suse.cz>
322 PR tree-optimization/55260
323 * ipa-cp.c (find_aggregate_values_for_callers_subset): Rename info to
324 dest_info, use caller_info instead of info when determining whether
327 2012-11-20 Andrey Turetskiy <andrey.turetskiy@gmail.com>
329 * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3): Merge
330 *avx2_pmulhrswv16hi3 and *ssse3_pmulhrswv8hi3 into one pattern.
332 2012-11-20 Sofiane Naci <sofiane.naci@arm.com>
334 * config/aarch64/aarch64.md
335 (define_attr "sync_*"): Remove.
336 (define_attr "length"): Update.
338 * config/aarch64/aarch64-protos.h
339 (aarch64_expand_compare_and_swap): Add function prototype.
340 (aarch64_split_compare_and_swap): Likewise.
341 (aarch64_split_atomic_op): Likewise.
342 (aarch64_expand_sync): Remove function prototype.
343 (aarch64_output_sync_insn): Likewise.
344 (aarch64_output_sync_lock_release): Likewise.
345 (aarch64_sync_loop_insns): Likewise.
346 (struct aarch64_sync_generator): Remove.
347 (enum aarch64_sync_generator_tag): Likewise.
348 * config/aarch64/aarch64.c
349 (aarch64_legitimize_sync_memory): Remove function.
350 (aarch64_emit): Likewise.
351 (aarch64_insn_count): Likewise.
352 (aarch64_output_asm_insn): Likewise.
353 (aarch64_load_store_suffix): Likewise.
354 (aarch64_output_sync_load): Likewise.
355 (aarch64_output_sync_store): Likewise.
356 (aarch64_output_op2): Likewise.
357 (aarch64_output_op3): Likewise.
358 (aarch64_output_sync_loop): Likewise.
359 (aarch64_get_sync_operand): Likewise.
360 (aarch64_process_output_sync_insn): Likewise.
361 (aarch64_output_sync_insn): Likewise.
362 (aarch64_output_sync_lock_release): Likewise.
363 (aarch64_sync_loop_insns): Likewise.
364 (aarch64_call_generator): Likewise.
365 (aarch64_expand_sync): Likewise.
366 (* emit_f): Remove variable.
367 (aarch64_insn_count): Likewise.
368 (FETCH_SYNC_OPERAND): Likewise.
369 (aarch64_emit_load_exclusive): New function.
370 (aarch64_emit_store_exclusive): Likewise.
371 (aarch64_emit_unlikely_jump): Likewise.
372 (aarch64_expand_compare_and_swap): Likewise.
373 (aarch64_split_compare_and_swap): Likewise.
374 (aarch64_split_atomic_op): Likewise.
375 * config/aarch64/iterators.md
376 (atomic_sfx): New mode attribute.
377 (atomic_optab): New code attribute.
378 (atomic_op_operand): Likewise.
379 (atomic_op_str): Likewise.
380 (syncop): Rename to atomic_op.
381 * config/aarch64/sync.md: Delete.
382 * config/aarch64/atomics.md: New file.
384 2012-11-20 Jakub Jelinek <jakub@redhat.com>
387 * builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note
388 on the trap insn for !ACCUMULATE_OUTGOING_ARGS.
389 * cfgcleanup.c (outgoing_edges_match): Don't look at debug insns
390 on the first old_insns_match_p call. For !ACCUMULATE_OUTGOING_ARGS
391 fail if the last real insn doesn't have REG_ARGS_SIZE note.
393 PR rtl-optimization/54921
394 * cselib.h (fp_setter_insn): New prototype.
395 * cselib.c (fp_setter_insn): New function.
396 (cselib_process_insn): If frame_pointer_needed,
397 call cselib_invalidate_rtx (stack_pointer_rtx) after
398 processing a frame pointer setter.
399 * var-tracking.c (fp_setter): Removed.
400 (vt_initialize): Use fp_setter_insn instead of fp_setter.
402 2012-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
404 * config/rs6000/rs6000.md (movdf_hardfloat32): Reorder move
405 constraints so that the traditional floating point loads, stores,
406 and moves are done first, then the VSX loads, stores, and moves,
407 and finally the GPR loads, stores, and moves so that reload
408 chooses FPRs over GPRs, and uses the traditional load/store
409 instructions which provide an offset.
410 (movdf_hardfloat64): Likewise.
412 2012-11-19 Richard Sandiford <rdsandiford@googlemail.com>
415 * simplify-rtx.c (simplify_subreg): Return null for invalid offsets.
417 2012-11-19 Aldy Hernandez <aldyh@redhat.com>
419 * trans-mem.c (execute_tm_mark): Release bb_regions.
421 2012-11-19 Aldy Hernandez <aldyh@redhat.com>
423 * trans-mem (collect_bb2reg): Stop scanning at irrevocable blocks.
424 (get_bb_regions_instrumented): Add new traverse_clone argument and
426 (expand_regions_1): Same.
427 (expand_region): Same.
428 (execute_tm_mark): Pass new argument to expand_regions.
429 (expand_block_edges): Pass new argument to get_bb_regions_instrumented.
431 2012-11-19 Sofiane Naci <sofiane.naci@arm.com>
433 * config/aarch64/aarch64.c
434 (aarch64_output_mi_thunk): Refactor to generate RTL patterns.
436 2012-11-19 Mans Rullgard <mans@mansr.com>
439 * config/rs6000/rs6000.c (rs6000_stack_info): Always set vrsave_mask
440 for TARGET_ALTIVEC_ABI. Zero vrsave_save_offset if
441 !TARGET_ALTIVEC_VRSAVE.
442 (rs6000_emit_prologue): For SAVE_INLINE_VLRs, check vrsave_size
445 2012-11-19 David Edelsohn <dje.gcc@gmail.com>
448 * system.h (vec_free): Undef.
450 2012-11-19 Jakub Jelinek <jakub@redhat.com>
453 * tree-ssa-coalesce.c (coalesce_ssa_name): Remove static
454 keyword from ssa_name_hash var.
456 2012-11-19 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
457 Kirill Yukhin <kirill.yukhin@intel.com>
458 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
460 * doc/md.texi: Document define_subst.
461 * gensupport.c (MAX_OPERANDS): New define.
463 (match_operand_entries_in_pattern): New.
464 (used_operands_numbers): New.
467 (define_subst_queue): New.
468 (define_subst_tail): New.
469 (define_subst_attr_queue): New.
470 (define_subst_attr_tail): New.
471 (has_subst_attribute): New.
472 (subst_pattern_match): New.
473 (get_alternatives_number): New.
474 (alter_output_for_subst_insn): New.
475 (alter_attrs_for_subst_insn): New.
476 (process_substs_on_one_elem): New.
478 (process_define_subst): New.
479 (duplicate_alternatives): New.
480 (duplicate_each_alternative): New.
481 (constraints_handler_t): New typedef.
482 (alter_constraints): New.
483 (adjust_operands_numbers): New.
484 (replace_duplicating_operands_in_pattern): New.
485 (remove_from_queue): New.
486 (process_rtx): Handle define_subst and define_subst_attr.
487 (change_subst_attribute): New.
488 (alter_predicate_for_insn): Fix formatting.
489 (alter_attrs_for_insn): Likewise.
490 (alter_output_for_insn): Likewise.
491 (mark_operands_from_match_dup): New.
492 (mark_operands_used_in_match_dup): New.
493 (find_first_unused_number_of_operand): New.
494 (renumerate_operands_in_pattern): New.
495 (generate_match_dup): New.
496 (check_define_attr_duplicates): New.
497 (init_rtx_reader_args_cb): Add checking for duplicated attrs and
498 processing of define_subst.
499 (read_md_rtx): Handle define_subst.
500 * read-rtl.c (struct subst_attr_to_iter_mapping): New.
501 (substs): New global.
502 (apply_subst_iterator): New.
503 (bind_subst_iter_and_attr): New.
504 (find_subst_iter_by_attr): New.
505 (map_attr_string): Handle subst-iterators.
506 (add_condition_to_rtx): Handle define_subst.
507 (apply_iterators): Likewise.
508 (initialize_iterators): Likewise.
509 (add_define_attr_for_define_subst): New.
510 (add_define_subst_attr): New.
511 (read_subst_mapping): New.
512 (read_rtx): Handle define_subst_attr.
513 (read_rtx_code): Add subst-attributes recognition during reading of
515 * rtl.def (DEFINE_EXPAND): Add vector of attributes.
517 (DEFINE_SUBST_ATTR): New.
519 2012-11-19 Tom de Vries <tom@codesourcery.com>
521 PR rtl-optimization/55315
523 * rtlanal.c (nonzero_address_p): Don't assume a nonzero address plus a
524 const is a nonzero address.
526 2012-11-18 Sandra Loosemore <sandra@codesourcery.com>
528 * doc/extend.texi: Use @smallexample consistently. Add @noindent
529 when continuing a sentence or paragraph past an example. Change
530 tabs to spaces in examples.
532 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
534 * doc/md.texi (extv@var{m}, extvmisalign@var{m}, extzv@var{m})
535 (extzvmisalign@var{m}, insv@var{m}, insvmisalign@var{m}): Document.
536 (insv, extv, extzv): Deprecate.
537 * optabs.def (insv_optab, extv_optab, extzv_optab)
538 (insvmisalign_optab, extvmisalign_optab, extzvmisalign_optab):
540 * optabs.c (get_optab_extraction_insn): New function.
541 (get_extraction_insn): Use it.
542 * config/mips/mips.md (extv): Split into...
543 (extvmisalign<mode>, extv<mode>): ...these new patterns. Rename
544 existing extv<mode> pattern to...
545 (*extv<mode>): ...this.
546 (extzv): Split into...
547 (extzvmisalign<mode>, extzv<mode>): ...these new patterns. Rename
548 existing extzv<mode> pattern to...
549 (*extzv<mode>): ...this.
550 (insv): Split into...
551 (insvmisalign<mode>, insv<mode>): ...these new patterns. Rename
552 existing insv<mode> pattern to...
553 (*insv<mode>): ...this. Use const_int_operand rather than
555 * config/mips/mips.c (mips_block_move_straight): Use set_mem_size
556 to set the size of BLKmode accesses.
557 (mips_get_unaligned_mem): Require OP0 to be a BLKmode memory,
558 turning it from an "rtx *" to an rtx.
559 (mips_expand_ext_as_unaligned_load): Simplify for new optab
560 interface. Update call to mips_get_unaligned_mem.
561 (mips_expand_ins_as_unaligned_store): Update call to
562 mips_get_unaligned_mem.
564 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
566 * Makefile.in (recog.o): Add insn-codes.h.
567 * expr.h (extraction_pattern): Move to optabs.h.
568 (mode_for_extraction): Delete.
569 * optabs.h (extraction_insn): New structure.
570 (extraction_pattern): Moved from expr.h.
571 (get_best_reg_extraction_insn, get_best_mem_extraction_insn): Declare.
572 * optabs.c (HAVE_insv, CODE_FOR_insv, HAVE_extv, CODE_FOR_extv)
573 (HAVE_extzv, CODE_FOR_extzv): Provide defaults.
574 (extraction_type): New enum.
575 (get_traditional_extraction_insn, get_extraction_insn)
576 (get_best_reg_extraction_insn, get_best_mem_extraction_insn):
578 * combine.c (make_extraction): Use get_best_reg_extraction_insn
579 instead of mode_for_extraction.
580 * expmed.c (HAVE_insv, CODE_FOR_insv, gen_insv, HAVE_extv)
581 (CODE_FOR_extv, gen_extv, HAVE_extzv, CODE_FOR_extzv, gen_extzv):
582 Remove fallback definitions.
583 (mode_for_extraction): Delete.
584 (adjust_bit_field_mem_for_reg): New function.
585 (store_bit_field_using_insv): Replace OP_MODE parameter with
586 an extraction_insn. Pass struct_mode to narrow_bit_field_mem.
587 (extract_bit_field_using_extv): Likewise EXT_MODE.
588 (store_bit_field_1): Use get_best_reg_extraction_insn and
589 get_best_mem_extraction_insn instead of mode_for_extraction.
590 Use adjust_bit_field_mem_for_reg when forcing memory to a
591 register and doing a register insertion. Update calls to
592 store_bit_field_using_insv.
593 (extract_bit_field_1): Likewise extractions and calls to
594 extract_bit_field_using_extv.
595 (store_Bit_field): When narrowing to a bitregion, don't use the
596 insv mode as a limit.
597 * recog.c: (HAVE_extv, CODE_FOR_extv, HAVE_extzv, CODE_FOR_extzv):
599 (simplify_while_replacing): Use insn_data instead of
602 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
604 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
605 Set up a default value of bitregion_end_.
606 (bit_field_mode_iterator::next_mode): Always apply bitregion_end_
607 check. Include SLOW_UNALIGNED_ACCESS in the alignment check.
608 (get_best_mode): Ignore modes that are wider than the alignment.
610 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
612 * machmode.h (bit_field_mode_iterator): New class.
613 (get_best_mode): Change final parameter to bool.
614 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator)
615 (bit_field_mode_iterator::next_mode): New functions, split out from...
616 (get_best_mode): ...here. Change final parameter to bool.
617 Use bit_field_mode_iterator.
619 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
621 * expmed.c (narrow_bit_field_mem): New function.
622 (store_bit_field_using_insv, store_bit_field_1, store_fixed_bit_field)
623 (extract_bit_field_1): Use it.
625 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
627 * expr.h (adjust_address_1): Add a size parameter.
628 (adjust_address, adjust_address_nv, adjust_bitfield_address)
629 (adjust_bitfield_address_nv): Adjust accordingly.
630 (adjust_bitfield_address_size): Define.
631 * emit-rtl.c (adjust_address_1): Add a size parameter.
632 Use it to set the size if MODE has no size. Check whether
633 the size matches before returning the original memref.
634 Require the size to be known for adjust_object.
635 (adjust_automodify_address_1, widen_memory_access): Update calls
638 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
640 * combine.c (make_extraction): Handle TRUNCATEd INNERs.
642 2012-11-18 Richard Sandiford <rdsandiford@googlemail.com>
644 * expr.c (expand_assignment): Don't set MEM_KEEP_ALIAS_SET_P here.
645 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle DECL_BIT_FIELDs,
646 using their size instead of the COMPONENT_REF's.
648 2012-11-17 Matthias Klose <doko@ubuntu.com>
650 * config/mips/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
652 2012-11-17 Diego Novillo <dnovillo@google.com>
654 VEC API overhaul (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
656 * vec.c (register_overhead): Convert it into
657 member function of vec_prefix.
658 (release_overhead): Likewise.
659 (calculate_allocation): Likewise.
660 (vec_heap_free): Remove.
661 (vec_gc_o_reserve_1): Remove.
662 (vec_heap_o_reserve_1): Remove.
663 (vec_stack_o_reserve_1): Remove.
664 (vec_stack_o_reserve_exact): Remove.
665 (register_stack_vec): New.
666 (stack_vec_register_index): New.
667 (unregister_stack_vec): New.
668 (vec_assert_fail): Remove.
669 * vec.h: Conditionally include ggc.h. Document conditional hackery.
670 Update top-level documentation.
671 (ALONE_VEC_CHECK_INFO): Remove.
672 (VEC_CHECK_INFO): Remove.
673 (ALONE_VEC_CHECK_DECL): Remove.
674 (VEC_CHECK_DECL): Remove.
675 (ALONE_VEC_CHECK_PASS): Remove.
676 (VEC_CHECK_PASS): Remove.
677 (VEC_ASSERT): Remove.
678 (vec_prefix): Add friends va_gc, va_gc_atomic, va_heap and va_stack.
679 Mark fields alloc_ and num_ as protected.
680 (struct vec_t): Remove. Remove all function members.
681 (struct vl_embed): Declare.
682 (struct vl_ptr): Declare.
684 (reserve_exact): Remove.
686 (safe_splice): Remove.
689 (safe_grow_cleared): Remove.
690 (safe_insert): Remove.
692 (DEF_VEC_ALLOC_I): Remove.
694 (DEF_VEC_ALLOC_P): Remove.
696 (DEF_VEC_ALLOC_O): Remove.
697 (DEF_VEC_ALLOC_P_STACK): Remove.
698 (DEF_VEC_ALLOC_O_STACK): Remove.
699 (DEF_VEC_ALLOC_I_STACK): Remove.
701 (DEF_VEC_ALLOC_A): Remove.
702 (vec_stack_p_reserve_exact_1): Remove.
703 (vec_stack_o_reserve): Remove.
704 (vec_stack_o_reserve_exact): Remove.
705 (VEC_length): Remove.
707 (VEC_address): Remove.
708 (vec_address): Remove.
711 (VEC_iterate): Remove.
712 (VEC_embedded_size): Remove.
713 (VEC_embedded_init): Remove.
717 (VEC_reserve): Remove.
718 (VEC_reserve_exact): Remove.
719 (VEC_splice): Remove.
720 (VEC_safe_splice): Remove.
721 (VEC_quick_push): Remove.
722 (VEC_safe_push): Remove.
724 (VEC_truncate): Remove.
725 (VEC_safe_grow): Remove.
726 (VEC_replace): Remove.
727 (VEC_quick_insert): Remove.
728 (VEC_safe_insert): Remove.
729 (VEC_ordered_remove): Remove.
730 (VEC_unordered_remove): Remove.
731 (VEC_block_remove): Remove.
732 (VEC_lower_bound): Remove.
737 (va_heap::default_layout): New typedef to vl_ptr.
738 (va_heap::reserve): New.
739 (va_heap::release): New.
741 (va_gc::default_layout): New typedef to vl_embed.
742 (va_gc::reserve): New.
743 (va_gc::release): New.
744 (va_gc_atomic): Declare. Inherit from va_gc.
746 (va_stack::default_layout): New typedef to vl_ptr.
747 (va_stack::alloc): New.
748 (va_stack::reserve): New.
749 (va_stack::release): New.
750 (register_stack_vec): Declare.
751 (stack_vec_register_index): Declare.
752 (unregister_stack_vec): Declare.
754 (vec<T, A = va_heap, L = typename A::default_layout>): Declare
756 (vec<T, A, vl_embed>): Partial specialization for embedded
758 (vec<T, A, vl_embed>::allocated): New.
759 (vec<T, A, vl_embed>::length): New.
760 (vec<T, A, vl_embed>::is_empty): New.
761 (vec<T, A, vl_embed>::address): New.
762 (vec<T, A, vl_embed>::operator[]): New.
763 (vec<T, A, vl_embed>::last New.
764 (vec<T, A, vl_embed>::space): New.
765 (vec<T, A, vl_embed>::iterate): New.
766 (vec<T, A, vl_embed>::iterate): New.
767 (vec<T, A, vl_embed>::copy): New.
768 (vec<T, A, vl_embed>::splice): New.
769 (vec<T, A, vl_embed>::quick_push New.
770 (vec<T, A, vl_embed>::pop New.
771 (vec<T, A, vl_embed>::truncate): New.
772 (vec<T, A, vl_embed>::quick_insert): New.
773 (vec<T, A, vl_embed>::ordered_remove): New.
774 (vec<T, A, vl_embed>::unordered_remove): New.
775 (vec<T, A, vl_embed>::block_remove): New.
776 (vec<T, A, vl_embed>::qsort): New.
777 (vec<T, A, vl_embed>::lower_bound): New.
778 (vec<T, A, vl_embed>::embedded_size): New.
779 (vec<T, A, vl_embed>::embedded_init): New.
780 (vec<T, A, vl_embed>::quick_grow): New.
781 (vec<T, A, vl_embed>::quick_grow_cleared): New.
782 (vec_safe_space): New.
783 (vec_safe_length): New.
784 (vec_safe_address): New.
785 (vec_safe_is_empty): New.
786 (vec_safe_reserve): New.
787 (vec_safe_reserve_exact): New.
790 (vec_safe_grow): New.
791 (vec_safe_grow_cleared): New.
792 (vec_safe_iterate): New.
793 (vec_safe_push): New.
794 (vec_safe_insert): New.
795 (vec_safe_truncate): New.
796 (vec_safe_copy): New.
797 (vec_safe_splice): New.
799 (vec<T, A, vl_ptr>): New partial specialization for the space
801 (vec<T, A, vl_ptr>::exists): New.
802 (vec<T, A, vl_ptr>::is_empty): New.
803 (vec<T, A, vl_ptr>::length): New.
804 (vec<T, A, vl_ptr>::address): New.
805 (vec<T, A, vl_ptr>::operator[]): New.
806 (vec<T, A, vl_ptr>::operator!=): New.
807 (vec<T, A, vl_ptr>::operator==): New.
808 (vec<T, A, vl_ptr>::last): New.
809 (vec<T, A, vl_ptr>::space): New.
810 (vec<T, A, vl_ptr>::iterate): New.
811 (vec<T, A, vl_ptr>::copy): New.
812 (vec<T, A, vl_ptr>::reserve): New.
813 (vec<T, A, vl_ptr>::reserve_exact): New.
814 (vec<T, A, vl_ptr>::splice): New.
815 (vec<T, A, vl_ptr>::safe_splice): New.
816 (vec<T, A, vl_ptr>::quick_push): New.
817 (vec<T, A, vl_ptr>::safe_push): New.
818 (vec<T, A, vl_ptr>::pop): New.
819 (vec<T, A, vl_ptr>::truncate): New.
820 (vec<T, A, vl_ptr>::safe_grow): New.
821 (vec<T, A, vl_ptr>::safe_grow_cleared): New.
822 (vec<T, A, vl_ptr>::quick_grow): New.
823 (vec<T, A, vl_ptr>::quick_grow_cleared): New.
824 (vec<T, A, vl_ptr>::quick_insert): New.
825 (vec<T, A, vl_ptr>::safe_insert): New.
826 (vec<T, A, vl_ptr>::ordered_remove): New.
827 (vec<T, A, vl_ptr>::unordered_remove): New.
828 (vec<T, A, vl_ptr>::block_remove): New.
829 (vec<T, A, vl_ptr>::qsort): New.
830 (vec<T, A, vl_ptr>::lower_bound): New.
831 (vec_stack_alloc): Define.
832 (FOR_EACH_VEC_SAFE_ELT): Define.
833 * vecir.h: Remove. Update all users.
834 * vecprim.h: Remove. Update all users.
835 Move uchar to coretypes.h.
837 * Makefile.in (VEC_H): Add $(GGC_H).
838 Remove vecir.h and vecprim.h dependencies everywhere.
840 2012-11-16 Diego Novillo <dnovillo@google.com>
842 * gengtype-lex.l (VEC): Remove.
843 Add characters in the set [\!\>\.-].
844 * gengtype-parse.c (token_names): Remove "VEC".
845 (require_template_declaration): Remove handling of VEC_TOKEN.
847 Call create_user_defined_type when parsing GTY((user)).
848 * gengtype-state.c (type_lineloc): handle TYPE_UNDEFINED.
849 (write_state_undefined_type): New.
850 (write_state_type): Call write_state_undefined_type for TYPE_UNDEFINED.
851 (read_state_type): Call read_state_undefined_type for TYPE_UNDEFINED.
852 * gengtype.c (dbgprint_count_type_at): Handle TYPE_UNDEFINED.
853 (create_user_defined_type): Make extern.
854 (type_for_name): Factor out of resolve_typedef.
855 (create_undefined_type): New
856 (resolve_typedef): Call it when we cannot find a previous
857 typedef and the type is not a template.
858 (find_structure): Accept TYPE_UNDEFINED.
859 (set_gc_used_type): Add argument ALLOWED_UNDEFINED_TYPES,
861 Emit an error for TYPE_UNDEFINED unless LEVEL is GC_UNUSED or
862 ALLOWED_UNDEFINED_TYPES is set.
863 Set ALLOWED_UNDEFINED_TYPES to true for TYPE_USER_STRUCT.
864 (filter_type_name): Accept templates with more than one argument.
865 (output_mangled_typename): Handle TYPE_UNDEFINED
866 (walk_type): Likewise.
867 (write_types_process_field): Likewise.
868 (write_func_for_structure): If CHAIN_NEXT is set, ORIG_S
869 should not be a user-defined type.
870 (write_types_local_user_process_field): Handle TYPE_ARRAY,
871 TYPE_NONE and TYPE_UNDEFINED.
872 (write_types_local_process_field): Likewise.
873 (contains_scalar_p): Return 0 for TYPE_USER_STRUCT.
874 (write_root): Reject user-defined types that are not pointers.
875 Handle TYPE_NONE, TYPE_UNDEFINED, TYPE_UNION, TYPE_LANG_STRUCT
876 and TYPE_PARAM_STRUCT.
877 (output_typename): Handle TYPE_NONE, TYPE_UNDEFINED, and TYPE_ARRAY.
878 (dump_typekind): Handle TYPE_UNDEFINED.
879 * gengtype.h (enum typekind): Add TYPE_UNDEFINED.
880 (create_user_defined_type): Declare.
881 (enum gty_token): Remove VEC_TOKEN.
883 2012-11-16 Diego Novillo <dnovillo@google.com>
885 Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
887 * coretypes.h (uchar): Define.
888 * alias.c: Use new vec API in vec.h.
890 * attribs.c: Likewise.
891 * basic-block.h: Likewise.
892 * bb-reorder.c: Likewise.
893 * builtins.c: Likewise.
896 * cfganal.c: Likewise.
897 * cfgcleanup.c: Likewise.
898 * cfgexpand.c: Likewise.
899 * cfghooks.c: Likewise.
900 * cfghooks.h: Likewise.
901 * cfgloop.c: Likewise.
902 * cfgloop.h: Likewise.
903 * cfgloopanal.c: Likewise.
904 * cfgloopmanip.c: Likewise.
905 * cfgrtl.c: Likewise.
906 * cgraph.c: Likewise.
907 * cgraph.h: Likewise.
908 * cgraphclones.c: Likewise.
909 * cgraphunit.c: Likewise.
910 * combine.c: Likewise.
911 * compare-elim.c: Likewise.
912 * coverage.c: Likewise.
914 * data-streamer.h: Likewise.
915 * dbxout.c: Likewise.
917 * df-core.c: Likewise.
918 * df-problems.c: Likewise.
919 * df-scan.c: Likewise.
920 * dominance.c: Likewise.
921 * domwalk.c: Likewise.
922 * domwalk.h: Likewise.
924 * dwarf2cfi.c: Likewise.
925 * dwarf2out.c: Likewise.
926 * dwarf2out.h: Likewise.
927 * emit-rtl.c: Likewise.
928 * except.c: Likewise.
929 * except.h: Likewise.
933 * fold-const.c: Likewise.
934 * function.c: Likewise.
935 * function.h: Likewise.
936 * fwprop.c: Likewise.
939 * genattr.c: Likewise.
940 * genattrtab.c: Likewise.
941 * genautomata.c: Likewise.
942 * genextract.c: Likewise.
943 * genopinit.c: Likewise
944 * ggc-common.c: Likewise.
946 * gimple-low.c: Likewise.
947 * gimple-ssa-strength-reduction.c: Likewise.
948 * gimple-streamer-in.c: Likewise.
949 * gimple.c: Likewise.
950 * gimple.h: Likewise.
951 * gimplify.c: Likewise.
953 * graphds.c: Likewise.
954 * graphds.h: Likewise.
955 * graphite-blocking.c: Likewise.
956 * graphite-clast-to-gimple.c: Likewise.
957 * graphite-dependences.c: Likewise.
958 * graphite-interchange.c: Likewise.
959 * graphite-optimize-isl.c: Likewise.
960 * graphite-poly.c: Likewise.
961 * graphite-poly.h: Likewise.
962 * graphite-scop-detection.c: Likewise.
963 * graphite-scop-detection.h: Likewise.
964 * graphite-sese-to-poly.c: Likewise.
965 * graphite.c: Likewise.
966 * godump.c: Likewise.
967 * haifa-sched.c: Likewise.
968 * hw-doloop.c: Likewise.
969 * hw-doloop.h: Likewise.
971 * insn-addr.h: Likewise.
972 * ipa-cp.c: Likewise.
973 * ipa-inline-analysis.c: Likewise.
974 * ipa-inline-transform.c: Likewise.
975 * ipa-inline.c: Likewise.
976 * ipa-inline.h: Likewise.
977 * ipa-prop.c: Likewise.
978 * ipa-prop.h: Likewise.
979 * ipa-pure-const.c: Likewise.
980 * ipa-ref-inline.h: Likewise.
981 * ipa-ref.c: Likewise.
982 * ipa-ref.h: Likewise.
983 * ipa-reference.c: Likewise.
984 * ipa-split.c: Likewise.
985 * ipa-utils.c: Likewise.
986 * ipa-utils.h: Likewise.
988 * ira-build.c: Likewise.
989 * ira-color.c: Likewise.
990 * ira-emit.c: Likewise.
991 * ira-int.h: Likewise.
993 * loop-invariant.c: Likewise.
994 * loop-unroll.c: Likewise.
995 * lower-subreg.c: Likewise.
996 * lra-lives.c: Likewise.
998 * lto-cgraph.c: Likewise.
999 * lto-section-out.c: Likewise.
1000 * lto-streamer-in.c: Likewise.
1001 * lto-streamer-out.c: Likewise.
1002 * lto-streamer.h: Likewise.
1003 * lto-symtab.c: Likewise.
1005 * modulo-sched.c: Likewise.
1006 * omp-low.c: Likewise.
1007 * opts-common.c: Likewise.
1008 * opts-global.c: Likewise.
1011 * passes.c: Likewise.
1012 * predict.c: Likewise.
1013 * print-tree.c: Likewise.
1014 * profile.c: Likewise.
1015 * profile.h: Likewise.
1016 * read-rtl.c: Likewise.
1018 * reg-stack.c: Likewise.
1019 * regrename.c: Likewise.
1020 * regrename.h: Likewise.
1021 * reload.c: Likewise.
1022 * reload.h: Likewise.
1023 * reload1.c: Likewise.
1025 * sched-deps.c: Likewise.
1026 * sched-int.h: Likewise.
1027 * sdbout.c: Likewise.
1028 * sel-sched-dump.c: Likewise.
1029 * sel-sched-ir.c: Likewise.
1030 * sel-sched-ir.h: Likewise.
1031 * sel-sched.c: Likewise.
1034 * statistics.h: Likewise.
1036 * stor-layout.c: Likewise.
1037 * store-motion.c: Likewise.
1038 * tlink.c: Likewise.
1039 * toplev.c: Likewise.
1040 * trans-mem.c: Likewise.
1041 * tree-browser.c: Likewise.
1042 * tree-call-cdce.c: Likewise.
1043 * tree-cfg.c: Likewise.
1044 * tree-cfgcleanup.c: Likewise.
1045 * tree-chrec.c: Likewise.
1046 * tree-chrec.h: Likewise.
1047 * tree-complex.c: Likewise.
1048 * tree-data-ref.c: Likewise.
1049 * tree-data-ref.h: Likewise.
1050 * tree-dfa.c: Likewise.
1051 * tree-diagnostic.c: Likewise.
1052 * tree-dump.c: Likewise.
1053 * tree-eh.c: Likewise.
1054 * tree-emutls.c: Likewise.
1055 * tree-flow.h: Likewise.
1056 * tree-if-conv.c: Likewise.
1057 * tree-inline.c: Likewise.
1058 * tree-inline.h: Likewise.
1059 * tree-into-ssa.c: Likewise.
1060 * tree-iterator.c: Likewise.
1061 * tree-loop-distribution.c: Likewise.
1062 * tree-mudflap.c: Likewise.
1063 * tree-optimize.c: Likewise.
1064 * tree-outof-ssa.c: Likewise.
1065 * tree-parloops.c: Likewise.
1066 * tree-phinodes.c: Likewise.
1067 * tree-predcom.c: Likewise.
1068 * tree-pretty-print.c: Likewise.
1069 * tree-scalar-evolution.c: Likewise.
1070 * tree-sra.c: Likewise.
1071 * tree-ssa-address.c: Likewise.
1072 * tree-ssa-alias.c: Likewise.
1073 * tree-ssa-ccp.c: Likewise.
1074 * tree-ssa-coalesce.c: Likewise.
1075 * tree-ssa-dce.c: Likewise.
1076 * tree-ssa-dom.c: Likewise.
1077 * tree-ssa-forwprop.c: Likewise.
1078 * tree-ssa-live.c: Likewise.
1079 * tree-ssa-live.h: Likewise.
1080 * tree-ssa-loop-im.c: Likewise.
1081 * tree-ssa-loop-ivcanon.c: Likewise.
1082 * tree-ssa-loop-ivopts.c: Likewise.
1083 * tree-ssa-loop-manip.c: Likewise.
1084 * tree-ssa-loop-niter.c: Likewise.
1085 * tree-ssa-loop-prefetch.c: Likewise.
1086 * tree-ssa-math-opts.c: Likewise.
1087 * tree-ssa-operands.c: Likewise.
1088 * tree-ssa-phiopt.c: Likewise.
1089 * tree-ssa-phiprop.c: Likewise.
1090 * tree-ssa-pre.c: Likewise.
1091 * tree-ssa-propagate.c: Likewise.
1092 * tree-ssa-reassoc.c: Likewise.
1093 * tree-ssa-sccvn.c: Likewise.
1094 * tree-ssa-sccvn.h: Likewise.
1095 * tree-ssa-strlen.c: Likewise.
1096 * tree-ssa-structalias.c: Likewise.
1097 * tree-ssa-tail-merge.c: Likewise.
1098 * tree-ssa-threadedge.c: Likewise.
1099 * tree-ssa-threadupdate.c: Likewise.
1100 * tree-ssa-uncprop.c: Likewise.
1101 * tree-ssa-uninit.c: Likewise.
1102 * tree-ssa.c: Likewise.
1103 * tree-ssanames.c: Likewise.
1104 * tree-stdarg.c: Likewise.
1105 * tree-streamer-in.c: Likewise.
1106 * tree-streamer-out.c: Likewise.
1107 * tree-streamer.c: Likewise.
1108 * tree-streamer.h: Likewise.
1109 * tree-switch-conversion.c: Likewise.
1110 * tree-vect-data-refs.c: Likewise.
1111 * tree-vect-generic.c: Likewise.
1112 * tree-vect-loop-manip.c: Likewise.
1113 * tree-vect-loop.c: Likewise.
1114 * tree-vect-patterns.c: Likewise.
1115 * tree-vect-slp.c: Likewise.
1116 * tree-vect-stmts.c: Likewise.
1117 * tree-vectorizer.c: Likewise.
1118 * tree-vectorizer.h: Likewise.
1119 * tree-vrp.c: Likewise.
1122 * value-prof.c: Likewise.
1123 * value-prof.h: Likewise.
1124 * var-tracking.c: Likewise.
1125 * varasm.c: Likewise.
1126 * varpool.c: Likewise.
1127 * vmsdbgout.c: Likewise.
1128 * config/bfin/bfin.c: Likewise.
1129 * config/c6x/c6x.c: Likewise.
1130 * config/darwin.c: Likewise.
1131 * config/i386/i386.c: Likewise.
1132 * config/ia64/ia64.c: Likewise.
1133 * config/mep/mep.c: Likewise.
1134 * config/mips/mips.c: Likewise.
1135 * config/pa/pa.c: Likewise.
1136 * config/rs6000/rs6000-c.c: Likewise.
1137 * config/rs6000/rs6000.c: Likewise.
1138 * config/rx/rx.c: Likewise.
1139 * config/spu/spu-c.c: Likewise.
1140 * config/vms/vms.c: Likewise.
1141 * config/vxworks.c: Likewise.
1142 * config/epiphany/resolve-sw-modes.c: Likewise.
1144 2012-11-17 Jakub Jelinek <jakub@redhat.com>
1146 PR tree-optimization/55236
1147 * fold-const.c (make_range_step) <case NEGATE_EXPR>: For -fwrapv
1148 and signed ARG0_TYPE, force low and high to be non-NULL.
1150 2012-11-17 H.J. Lu <hongjiu.lu@intel.com>
1152 * common.opt (static-libasan): New option.
1153 * gcc.c (LIBASAN_SPEC): New macro.
1154 (LINK_COMMAND_SPEC): Replace -lasan with LIBASAN_SPEC.
1155 * doc/invoke.texi: Document -static-libasan.
1157 2012-11-17 Vladimir Makarov <vmakarov@redhat.com>
1159 PR rtl-optimization/55342
1160 * lra-assigns.c (spill_for): Try to allocate other reload pseudos
1161 before and after spilling.
1163 2012-11-16 Sandra Loosemore <sandra@codesourcery.com>
1165 * doc/extend.texi: Various copy-edits to comply with GCC coding
1166 standards for spelling, terminology, and markup, including use of
1167 American spelling, correct use of terms like "back end" and
1168 "run time", use correct name for GCC, use "@:" markup.
1170 2012-11-16 Jakub Jelinek <jakub@redhat.com>
1172 PR tree-optimization/55329
1173 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Never clear
1174 bits in needed_eh_cleanup while iterating over the bitmap.
1175 Look through all forwarder blocks at once.
1177 2012-11-16 Jan Hubicka <jh@suse.cz>
1179 * params.def (max-peeled-insns, max-completely-peeled-insns): Reduce
1182 2012-11-16 Simon Baldwin <simonb@google.com>
1184 * doc/cppopts.texi: Document -f[no-]canonical-system-headers.
1185 * doc/install.texi: Document --enable-canonical-system-headers.
1187 2012-11-16 Vladimir Makarov <vmakarov@redhat.com>
1189 PR rtl-optimization/55330
1190 * lra-constraints.c (MAX_INHERITANCE_PASSES): New macro.
1191 (lra_inheritance, lra_undo_inheritance): Use it to limit number of
1194 2012-11-16 Matthias Klose <doko@ubuntu.com>
1196 * config/pa/t-linux: New file; define MULTIARCH_DIRNAME.
1197 * config.gcc <hppa*64*-*-linux*, hppa*-*-linux*> (tmake_file):
1200 2012-11-16 Jakub Jelinek <jakub@redhat.com>
1203 * config/i386/i386.md (mov<mode>cc): Use comparison_operator
1204 instead of ordered_comparison_operator resp.
1205 ix86_fp_comparison_operator predicates.
1206 * config/i386/i386.c (ix86_expand_fp_movcc): Reject TImode
1207 or for -m32 DImode comparisons.
1209 2012-11-16 Jan Hubicka <jh@suse.cz>
1211 PR tree-optimization/54717
1212 * tree-ssa-pre.c (do_partial_partial_insertion): Consider also edges
1215 2012-11-16 Uros Bizjak <ubizjak@gmail.com>
1217 * config/i386/i386-protos.h (ix86_emit_mode_set): Add third argument.
1218 * config/i386/i386.h (EMIT_MODE_SET): Update.
1219 * config/i386/i386.c (ix86_avx_emit_vzeroupper): New function.
1220 (ix86_emit_mode_set) <AVX_U128>: Call ix86_avx_emit_vzeroupper.
1222 2012-11-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1225 * doc/extend.texi: Add details about bdver3.
1226 * doc/invoke.texi: Add details about bdver3.
1227 * config.gcc (i[34567]86-*-linux* | ...): Add bdver3.
1228 (case ${target}): Add bdver3.
1229 * config/i386/i386.h (TARGET_BDVER3): New definition.
1230 * config/i386/i386.md (define_attr "cpu"): Add bdver3.
1231 * config/i386/sse.md (sseshuf, sseshuf1): New type attributes.
1232 * config/i386/athlon.md: Handle sseshuf attribute.
1233 * config/i386/atom.md: Likewise.
1234 * config/i386/ppro.md: Likewise.
1235 * config/i386/bdver1.md: Likewise.
1236 * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver3.
1237 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1238 bdver3 def_and_undef
1239 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1240 -march=native recognize bdver3 processors.
1241 * config/i386/i386.c (struct processor_costs bdver3_cost): New.
1242 (m_BDVER3): New definition.
1243 (m_AMD_MULTIPLE): Includes m_BDVER3.
1244 (initial_ix86_tune_features): Add bdver3 tune.
1245 (processor_target_table): Add bdver3 entry.
1246 (static const char *const cpu_names): Add bdver3 entry.
1247 (software_prefetching_beneficial_p): Add bdver3.
1248 (ix86_option_override_internal): Add bdver3 instruction sets.
1249 (ix86_option_override_internal): Remove XSAVEOPT for bdver1 and bdver2.
1250 (ix86_issue_rate): Add bdver3.
1251 (ix86_adjust_cost): Add bdver3.
1252 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver3.
1253 (enum processor_type): Add PROCESSOR_BDVER3.
1254 * config/i386/bdver3.md: New file describing bdver3 pipelines.
1256 2012-11-15 David S. Miller <davem@davemloft.net>
1258 * expmed.c (expand_shift_1): Don't strip non-integral SUBREGs.
1260 * configure.ac: Add check for assembler SPARC4 instruction support.
1261 * configure: Rebuild.
1262 * config.in: Add HAVE_AS_SPARC4 section.
1263 * config/sparc/sparc.opt (mcbcond): New option.
1264 * doc/invoke.texi: Document it.
1265 * config/sparc/constraints.md: New constraint 'A' for 5-bit signed
1267 * doc/md.texi: Document it.
1268 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_CBCOND.
1269 (sparc_option_override): Likewise.
1270 (emit_cbcond_insn): New function.
1271 (emit_conditional_branch_insn): Call it.
1272 (emit_cbcond_nop): New function.
1273 (output_ubranch): Use cbcond, remove label arg.
1274 (output_cbcond): New function.
1275 * config/sparc/sparc-protos.h (output_ubranch): Update.
1276 (output_cbcond): Declare it.
1277 (emit_cbcond_nop): Likewise.
1278 * config/sparc/sparc.md (type attribute): New types 'cbcond'
1280 (emit_cbcond_nop): New attribute.
1281 (length attribute): Handle cbcond and uncond_cbcond.
1282 (in_call_delay attribute): Reject cbcond and uncond_cbcond.
1283 (in_branch_delay attribute): Likewise.
1284 (in_uncond_branch_delay attribute): Likewise.
1285 (in_annul_branch_delay attribute): Likewise.
1286 (*cbcond_sp32, *cbcond_sp64): New insn patterns.
1287 (jump): Rewrite into an expander.
1288 (*jump_ubranch, *jump_cbcond): New patterns.
1289 * config/sparc/niagara4.md: Match 'cbcond' in 'n4_cti'.
1290 * config/sparc/sparc.h (AS_NIAGARA4_FLAG): New macro, use it
1291 when target default is niagara4.
1292 (SPARC_SIMM5_P): Define.
1293 * config/sparc/sol2.h (AS_SPARC64_FLAG): Adjust.
1294 (AS_SPARC32_FLAG): Define.
1295 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Use
1296 AS_NIAGARA4_FLAG as needed.
1298 2012-11-15 Steve Ellcey <sellcey@mips.com>
1300 * expr.c (expand_cond_expr_using_cmove): Use promoted mode for temp.
1302 2012-11-15 Tom de Vries <tom@codesourcery.com>
1304 PR tree-optimization/54619
1305 * tree-ssa-loop-ivopts.c (get_use_type): New function.
1306 (get_computation_at): Use get_use_type.
1307 (get_computation_cost_at): Declare and set mem_mode. Use mem_mode.
1309 2012-11-15 Jakub Jelinek <jakub@redhat.com>
1311 * asan.c (report_error_func): Set DECL_IGNORED_P, don't touch
1312 DECL_ASSEMBLER_NAME.
1313 (asan_init_func): Likewise.
1314 (asan_finish_file): Use void * instead of __asan_global * as type of
1315 __asan_{,un}register_globals. Set DECL_IGNORED_P on the decls.
1317 2012-11-15 Matthias Klose <doko@ubuntu.com>
1319 * Makefile.in (if_multiarch): Don't use a GNU make 3.81 feature.
1321 2012-11-14 Jan Hubicka <jh@suse.cz>
1324 * gcov-io.c (gcov_read_summary): Fix array bound check.
1326 2012-11-14 Sterling Augustine <saugustine@google.com>
1329 * dwarf2out.c (index_address_table_entry): Check a node's refcount.
1331 2012-11-14 Jan Hubicka <jh@suse.cz>
1334 * ipa-inline.c (edge_badness): Improve dumping; fix overflow.
1336 2012-11-14 Matthias Klose <doko@ubuntu.com>
1338 * config/sparc/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1339 * config/sparc/t-linux: New file; define MULTIARCH_DIRNAME.
1340 * config.gcc <sparc-*-linux*> (tmake_file): Include sparc/t-linux
1341 for 32bit non-biarch configurations.
1343 2012-11-14 Matthias Klose <doko@ubuntu.com>
1345 * doc/invoke.texi: Document -print-multiarch.
1346 * doc/install.texi: Document --enable-multiarch.
1347 * doc/fragments.texi: Document MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME.
1348 * configure.ac: Add --enable-multiarch option.
1349 * configure: Regenerate.
1350 * Makefile.in (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib.
1351 enable_multiarch, with_float: New macros.
1352 if_multiarch: New macro, define in terms of enable_multiarch.
1353 * genmultilib: Add new argument for the multiarch name.
1354 * gcc.c (multiarch_dir): Define.
1355 (for_each_path): Search for multiarch suffixes.
1356 (driver_handle_option): Handle multiarch option.
1357 (do_spec_1): Pass -imultiarch if defined.
1358 (main): Print multiarch.
1359 (set_multilib_dir): Separate multilib and multiarch names
1360 from multilib_select.
1361 (print_multilib_info): Ignore multiarch names in multilib_select.
1362 * incpath.c (add_standard_paths): Search the multiarch include dirs.
1363 * cppdefault.h (default_include): Document multiarch in multilib
1365 * cppdefault.c: [LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR] Add an
1366 include directory for multiarch directories.
1367 * common.opt: New options --print-multiarch and -imultilib.
1368 * config.gcc <i[34567]86-*-linux* | x86_64-*-linux*> (tmake_file):
1369 Include i386/t-linux.
1370 <i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu> (tmake_file):
1371 Include i386/t-kfreebsd.
1372 <i[34567]86-*-gnu*> (tmake_file): Include i386/t-gnu.
1373 * config/i386/t-linux64: Add multiarch names in
1374 MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME.
1375 * config/i386/t-gnu: New file.
1376 * config/i386/t-kfreebsd: Likewise.
1377 * config/i386/t-linux: Likewise.
1379 2012-11-14 Jan Hubicka <jh@suse.cz>
1381 * tree.c (set_call_expr_flags): New function.
1382 (local_define_builtin): Use it.
1383 * tree.h (set_call_expr_flags): Declare.
1385 2012-11-14 Uros Bizjak <ubizjak@gmail.com>
1386 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
1389 * config/i386/i386.c (gate_insert_vzeroupper): New function.
1390 (rest_of_handle_insert_vzeroupper): Ditto.
1391 (struct rtl_opt_pass pass_insert_vzeroupper): New.
1392 (ix86_option_override): Register vzeroupper insertion pass here.
1393 (ix86_check_avx256_register): Handle SUBREGs properly.
1394 (ix86_init_machine_status): Remove optimize_mode_switching[AVX_U128]
1397 2012-11-14 David Edelsohn <dje.gcc@gmail.com>
1399 * configure.ac (HAVE_LD_LARGE_TOC): Add AIX test.
1400 * configure: Regenerated.
1401 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Warn if
1402 other toc options used with cmodel. Disable TARGET_NO_FP_IN_TOC
1403 and TARGET_NO_SUM_IN_TOC if not CMODEL_SMALL. CMODEL_MEDIUM means
1404 CMODEL_LARGE on AIX.
1405 (ASM_SPEC): -mvsx implies -mpwr6. Add -many.
1406 (ASM_DEFAULT_SPEC): Use -mpwr4.
1407 (TARGET_CMODEL): Define.
1408 (SET_CMODEL): Define.
1409 * config/rs6000/rs6000.md (largetoc_high_aix<mode>): New.
1410 (largetoc_high_plus_aix<mode>): New.
1411 (largetoc_low<mode>): Change to mode iterator. Test TARGET_TOC
1412 instead of TARGET_ELF.
1413 (tocref): Remove TARGET_ELF test.
1414 * config/rs6000/rs6000.c (output_toc): Use [TE] for large TOC
1416 * config/rs6000/aix64.opt (mcmodel): New.
1418 2012-11-14 Andreas Tobler <andreast@fgznet.ch>
1420 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Guard
1421 variables with ASM_OUTPUT_TYPE_DIRECTIVE and
1422 HAVE_GNU_INDIRECT_FUNCTION where needed.
1424 2012-11-13 Ian Lance Taylor <iant@google.com>
1426 * common.opt (fPIC, fPIE, fpic, fpie): Create a Negative loop such
1427 that any of these options disables the others.
1429 2012-11-13 Sriraman Tallam <tmsriram@google.com>
1431 * cgraph.c (insert_new_cgraph_node_version): Use cgraph_get_node
1432 instead of cgraph_get_create_node.
1433 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Move
1434 ifunc not supported code to the end.
1436 2012-11-13 Martin Jambor <mjambor@suse.cz>
1438 PR tree-optimization/55253
1439 * ipa-cp.c (merge_aggregate_lattices): Propagate aggs_contain_variable
1442 2012-11-13 Eric Botcazou <ebotcazou@adacore.com>
1443 H.J. Lu <hongjiu.lu@intel.com>
1446 * config/i386/i386.c (legitimize_pic_address): Properly handle
1448 (ix86_print_operand_address): Set code to 'k' when forcing
1449 addr32 prefix. For x32, zero-extend negative displacement if
1452 2012-11-13 Uros Bizjak <ubizjak@gmail.com>
1455 * mode-switching.c (create_pre_exit): Set return_copy to last_insn if
1456 copy_start is not a function return regno. Skip debug instructions
1457 in instruction scan loop.
1459 2012-11-13 Andrew Stubbs <ams@codesourcery.com>
1460 Ulrich Weigand <ulrich.weigand@linaro.org>
1462 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Fix comment.
1463 * config/arm/arm.md (opt, opt_enabled): New attributes.
1464 (enabled): Use opt_enabled.
1465 (ashldi3, ashrdi3, lshrdi3): Add TARGET_NEON case.
1466 (ashldi3): Allow general operands for TARGET_NEON case.
1467 * config/arm/iterators.md (rshifts): New code iterator.
1468 (shift, shifttype): New code attributes.
1469 * config/arm/neon.md (UNSPEC_LOAD_COUNT): New unspec type.
1470 (neon_load_count, ashldi3_neon_noclobber, ashldi3_neon,
1471 signed_shift_di3_neon, unsigned_shift_di3_neon,
1472 ashrdi3_neon_imm_noclobber, lshrdi3_neon_imm_noclobber,
1473 <shift>di3_neon): New patterns.
1475 2012-11-13 Jakub Jelinek <jakub@redhat.com>
1477 * Makefile.in (asan.o): Depend on $(TM_P_H).
1479 PR tree-optimization/55281
1480 * tree-vect-generic.c (expand_vector_condition): Accept any
1481 is_gimple_val rather than just SSA_NAME if not COMPARISON_CLASS_P.
1482 * fold-const.c (fold_ternary_loc): Fold VEC_COND_EXPR if arg0 is
1483 either integer_all_onesp or integer_zerop.
1484 * tree-vect-stmts.c (vectorizable_condition): Build the condition
1485 using corresponding vector integer type instead of vectype.
1487 PR rtl-optimization/54127
1488 * cfgrtl.c (force_nonfallthru_and_redirect): When redirecting
1489 asm goto labels from BB_HEAD (e->dest) to target bb, decrement
1490 LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of
1491 BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or
1492 REG_LABEL_TARGET and REG_LABEL_OPERAND.
1494 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1496 * asan.c (instrument_builtin_call) <case BUILT_IN_BCOPY>: Fix up
1499 2012-11-13 Hans-Peter Nilsson <hp@axis.com>
1502 * config/cris/cris.c (cris_asm_output_mi_thunk): Call
1503 final_start_function and final_end_function.
1505 2012-11-12 David Edelsohn <dje.gcc@gmail.com>
1507 * asan.c: Include tm_p.h.
1509 2012-11-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1512 * config/pa/pa.md (attr type): Add sibcall and sh_func_adrs insn types.
1513 (in_branch_delay): Don't allow sibcall or sh_func_adrs insns.
1514 (in_nullified_branch_delay): Likewise.
1515 (in_call_delay): Likewise.
1516 Define delay for sibcall insns. Adjust Z3 and Z4 insn reservations for
1517 new types. Add opaque cond to mark all calls, sibcalls, dyncalls and
1518 the $$sh_func_adrs call as variable. Update type of sibcalls and
1519 $$sh_func_adrs call.
1520 * config/pa/pa.c (pa_adjust_insn_length): Revise to return updated
1521 length instead of adjustment. Handle negative and undefined call
1522 adjustments for insn_default_length. Remove adjustment for millicode
1523 insn with unfilled delay slot.
1524 (pa_output_millicode_call): Update for revised millicode length.
1525 * config/pa/pa.h (ADJUST_INSN_LENGTH): Revise to set LENGTH.
1527 2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
1529 * tree-ssa-ccp.c (dump_lattice_value) <CONSTANT>: Fix duplication.
1531 2012-11-12 Eric Botcazou <ebotcazou@adacore.com>
1533 * common.opt (fvar-tracking-uninit): Document.
1534 * toplev.c (process_options): Fix handling of flag_var_tracking_uninit.
1535 * config/darwin.c (darwin_override_options): Likewise.
1537 2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
1539 * sched-vis.c (print_pattern): Handle NULL patterns.
1541 2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
1542 Jakub Jelinek <jakub@redhat.com>
1544 PR rtl-optimization/51447
1545 * df-scan.c (df_get_entry_block_def_set): Add global regs to the set.
1546 * df-problems.c (df_lr_local_compute): Make global regs always live.
1547 * dce.c (deletable_insn_p): Make insns setting a global reg
1548 inherently necessary.
1550 2012-11-12 Ian Bolton <ian.bolton@arm.com>
1552 * config/aarch64/aarch64.md (cmov<mode>_insn): Emit CSINC when
1553 one of the alternatives is constant 1.
1554 * config/aarch64/constraints.md: New constraint.
1555 * config/aarch64/predicates.md: Rename predicate
1556 aarch64_reg_zero_or_m1 to aarch64_reg_zero_or_m1_or_1.
1558 2012-11-12 Ian Bolton <ian.bolton@arm.com>
1560 * config/aarch64/aarch64.md (*compare_neg<mode>): New pattern.
1562 2012-11-12 Tobias Burnus <burnus@net-b.de>
1564 * doc/invoke.texi: Move -faddress-sanitizer from Optimization
1565 Options to Debugging Options.
1567 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1569 * asan.c: Formatting cleanups.
1571 2012-11-12 Wei Mi <wmi@google.com>
1573 * gcc.c (LINK_COMMAND_SPEC): Add -lasan to link command if
1574 -faddress-sanitizer is on.
1576 2012-11-12 Dodji Seketeli <dodji@redhat.com>
1578 * gimple.h (is_gimple_builtin_call): Declare ...
1579 * gimple.c (is_gimple_builtin_call): ... new public function.
1580 * asan.c (insert_if_then_before_iter, instrument_mem_region_access,
1581 instrument_strlen_call, maybe_instrument_builtin_call,
1582 instrument_call): New static functions.
1583 (create_cond_insert_point): Renamed
1584 create_cond_insert_point_before_iter into this. Add a new
1585 parameter to decide whether to insert the condition before or
1586 after the statement iterator.
1587 (build_check_stmt): Adjust for the new create_cond_insert_point.
1588 Add a new parameter to decide whether to add the instrumentation
1589 code before or after the statement iterator.
1590 (instrument_assignment): Factorize from ...
1591 (transform_statements): ... here. Use maybe_instrument_call to
1592 instrument builtin function calls as well.
1593 (instrument_derefs): Adjust for the new parameter of
1594 build_check_stmt. Fix detection of bit-field access.
1596 2012-11-12 Dodji Seketeli <dodji@redhat.com>
1598 * asan.c (create_cond_insert_point_before_iter): Factorize out of ...
1599 (build_check_stmt): ... here.
1601 2012-11-12 Dodji Seketeli <dodji@redhat.com>
1603 * asan.c (create_cond_insert_point_before_iter): Factorize out of ...
1604 (build_check_stmt): ... here.
1606 2012-11-12 Dodji Seketeli <dodji@redhat.com>
1608 * asan.c (build_check_stmt): Accept the memory access to be
1609 represented by an SSA_NAME.
1611 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1612 Wei Mi <wmi@google.com>
1614 * varasm.c: Include asan.h.
1615 (assemble_noswitch_variable): Grow size by asan_red_zone_size
1616 if decl is asan protected.
1617 (place_block_symbol): Likewise.
1618 (assemble_variable): If decl is asan protected, increase
1619 DECL_ALIGN if needed, and for decls emitted using
1620 assemble_variable_contents append padding zeros after it.
1621 * Makefile.in (varasm.o): Depend on asan.h.
1622 * asan.c: Include output.h.
1623 (asan_pp, asan_pp_initialized, asan_ctor_statements): New variables.
1624 (asan_pp_initialize, asan_pp_string): New functions.
1625 (asan_emit_stack_protection): Use asan_pp{,_initialized}
1626 instead of local pp{,_initialized} vars, use asan_pp_initialize
1627 and asan_pp_string helpers.
1628 (asan_needs_local_alias, asan_protect_global,
1629 asan_global_struct, asan_add_global): New functions.
1630 (asan_finish_file): Protect global vars that can be protected. Use
1631 asan_ctor_statements instead of ctor_statements
1632 * asan.h (asan_protect_global): New prototype.
1633 (asan_red_zone_size): New inline function.
1635 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1637 * Makefile.in (asan.o): Depend on $(EXPR_H) $(OPTABS_H).
1638 (cfgexpand.o): Depend on asan.h.
1639 * asan.c: Include expr.h and optabs.h.
1640 (asan_shadow_set): New variable.
1641 (asan_shadow_cst, asan_emit_stack_protection): New functions.
1642 (asan_init_shadow_ptr_types): Initialize also asan_shadow_set.
1643 * cfgexpand.c: Include asan.h. Define HOST_WIDE_INT heap vector.
1644 (partition_stack_vars): If i is large alignment and j small
1645 alignment or vice versa, break out of the loop instead of continue,
1646 and put the test earlier. If flag_asan, break out of the loop
1647 if for small alignment size is different.
1648 (struct stack_vars_data): New type.
1649 (expand_stack_vars): Add DATA argument. Change PRED type to
1650 function taking size_t argument instead of tree. Adjust pred
1651 calls. Fill DATA in and add needed padding in between variables
1652 if -faddress-sanitizer.
1653 (defer_stack_allocation): Defer everything for flag_asan.
1654 (stack_protect_decl_phase_1, stack_protect_decl_phase_2): Take
1655 size_t index into stack_vars array instead of the decl directly.
1656 (asan_decl_phase_3): New function.
1657 (expand_used_vars): Return var destruction sequence. Adjust
1658 expand_stack_vars calls, add another one for flag_asan. Call
1659 asan_emit_stack_protection if expand_stack_vars added anything
1661 (expand_gimple_basic_block): Add disable_tail_calls argument.
1662 (gimple_expand_cfg): Pass true to it if expand_used_vars returned
1663 non-NULL. Emit the sequence returned by expand_used_vars after
1665 * asan.h (asan_emit_stack_protection): New prototype.
1666 (asan_shadow_set): New decl.
1667 (ASAN_RED_ZONE_SIZE, ASAN_STACK_MAGIC_LEFT, ASAN_STACK_MAGIC_MIDDLE,
1668 ASAN_STACK_MAGIC_RIGHT, ASAN_STACK_FRAME_MAGIC): Define.
1669 (asan_protect_stack_decl): New inline.
1670 * toplev.c (process_options): Also disable -faddress-sanitizer on
1671 !FRAME_GROWS_DOWNWARDS targets.
1673 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1675 * asan.c (build_check_stmt): Rename join_bb variable to else_bb.
1676 (gate_asan_O0): New function.
1677 (pass_asan_O0): New variable.
1678 * passes.c (init_optimization_passes): Add pass_asan_O0.
1679 * tree-pass.h (pass_asan_O0): New declaration.
1681 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1682 Xinliang David Li <davidxl@google.com>
1683 Dodji Seketeli <dodji@redhat.com>
1685 * Makefile.in (GTFILES): Add $(srcdir)/asan.c.
1686 (asan.o): Update the dependencies of asan.o.
1687 * asan.c (tm.h, tree.h, tm_p.h, basic-block.h, flags.h
1688 function.h, tree-inline.h, tree-dump.h, diagnostic.h, demangle.h,
1689 langhooks.h, ggc.h, cgraph.h, gimple.h): Remove these unused but
1691 (shadow_ptr_types): New variable.
1692 (report_error_func): Change is_store argument to bool, don't append
1693 newline to function name.
1694 (PROB_VERY_UNLIKELY, PROB_ALWAYS): Define.
1695 (build_check_stmt): Change is_store argument to bool. Emit GIMPLE
1696 directly instead of creating trees and gimplifying them. Mark
1697 the error reporting function as very unlikely.
1698 (instrument_derefs): Change is_store argument to bool. Use
1699 int_size_in_bytes to compute size_in_bytes, simplify size check.
1700 Use build_fold_addr_expr instead of build_addr.
1701 (transform_statements): Adjust instrument_derefs caller.
1702 Use gimple_assign_single_p as stmt test. Don't look at MEM refs
1704 (asan_init_shadow_ptr_types): New function.
1705 (asan_instrument): Don't push/pop gimplify context.
1706 Call asan_init_shadow_ptr_types if not yet initialized.
1707 * asan.h (ASAN_SHADOW_SHIFT): Adjust comment.
1709 2012-11-12 Jakub Jelinek <jakub@redhat.com>
1711 * toplev.c (process_options): Warn and turn off
1712 -faddress-sanitizer if not supported by target.
1713 * asan.c: Include target.h.
1714 (asan_scale, asan_offset_log_32, asan_offset_log_64,
1715 asan_offset_log): Removed.
1716 (build_check_stmt): Use ASAN_SHADOW_SHIFT and
1717 targetm.asan_shadow_offset ().
1718 (asan_instrument): Don't initialize asan_offset_log.
1719 * asan.h (ASAN_SHADOW_SHIFT): Define.
1720 * target.def (TARGET_ASAN_SHADOW_OFFSET): New hook.
1721 * doc/tm.texi.in (TARGET_ASAN_SHADOW_OFFSET): Add it.
1722 * doc/tm.texi: Regenerated.
1723 * Makefile.in (asan.o): Depend on $(TARGET_H).
1724 * config/i386/i386.c (ix86_asan_shadow_offset): New function.
1725 (TARGET_ASAN_SHADOW_OFFSET): Define.
1727 2012-11-12 Wei Mi <wmi@google.com>
1728 Diego Novillo <dnovillo@google.com>
1729 Dodji Seketeli <dodji@redhat.com>
1731 * Makefile.in: Add asan.c and its dependencies.
1732 * common.opt: Add -faddress-sanitizer option.
1733 * doc/invoke.texi: Document the new flag.
1734 * passes.c: Add the asan pass.
1735 * toplev.c (compile_file): Call asan_finish_file.
1738 * tree-pass.h: Declare pass_asan.
1740 2012-11-12 Tobias Burnus <burnus@net-b.de>
1742 * diagnostic.c (diagnostic_append_note): Also call va_end when
1743 inhibit_notes_p is true.
1745 2012-11-12 Bin Cheng <bin.cheng@arm.com>
1747 * gcse.c (struct bb_data): Add new fields, old_pressure, live_in
1749 (get_regno_pressure_class): Add prototype.
1750 (update_bb_reg_pressure): New.
1751 (should_hoist_expr_to_dom): Add new parameter from.
1752 Monitor the change of reg pressure and use it to drive hoisting.
1753 (hoist_code): Update LIVE and reg pressure information.
1754 (calculate_bb_reg_pressure): Initialize live_in and backup.
1756 2012-11-12 Oleg Endo <olegendo@gcc.gnu.org>
1758 * doc/md.texi (Standard Pattern Names For Generation): Fix swapped
1759 sine and cosine operands in the sincos description.
1761 2012-11-12 Oleg Endo <olegendo@gcc.gnu.org>
1764 * config/sh/sh.md (sincossf3): Fix swapped sin and cos operands.
1766 2012-11-11 H.J. Lu <hongjiu.lu@intel.com>
1768 * config/i386/i386.md (*movti_internal_rex64): Remove "!" from
1771 2012-11-11 Eric Botcazou <ebotcazou@adacore.com>
1773 * config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak.
1774 * config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto.
1776 2012-11-11 Eric Botcazou <ebotcazou@adacore.com>
1777 H.J. Lu <hongjiu.lu@intel.com>
1779 PR rtl-optimization/55247
1781 * emit-rtl.c (adjust_address_1): If POINTERS_EXTEND_UNSIGNED > 0,
1783 * recog.c (offsettable_address_addr_space_p): Likewise.
1785 2012-11-11 Steven Bosscher <steven@gcc.gnu.org>
1788 * postreload.c (rest_of_handle_postreload): With non-call exceptions,
1789 if edges are purged call cleanup_cfg to remove unreachable blocks.
1791 2012-11-11 Sandra Loosemore <sandra@codesourcery.com>
1793 * doc/extend.texi: Copy-edit to use "built-in function" instead
1794 of "builtin", per GCC coding standards. Also use consistent
1795 capitalization in titles of sections describing built-in functions.
1797 2012-11-11 Martin Jambor <mjambor@suse.cz>
1799 PR tree-optimization/55238
1800 * ipa-cp.c (agg_pass_through_permissible_p): New function.
1801 (propagate_aggs_accross_jump_function): Use it.
1802 (find_aggregate_values_for_callers_subset): Likewise and relax an
1805 2012-11-10 Uros Bizjak <ubizjak@gmail.com>
1808 * config/i386/i386.c (check_avx256_stores): Remove.
1809 (ix86_check_avx256_register): New.
1810 (ix86_avx_u128_mode_needed): Use ix86_check_avx256_register.
1811 Check the whole RTX for 256bit registers using for_each_rtx.
1812 (ix86_check_avx_stores): New.
1813 (ix86_avx_u128_mode_after): Change mode of CALL RTX to AVX_U128_CLEAN
1814 if there are no 256bit registers used in the function return register.
1815 (ix86_avx_u128_mode_entry): Use ix86_check_avx256_register.
1816 (ix86_avx_u128_mode_exit): Ditto.
1818 2012-11-10 Jan Hubicka <jh@suse.cz>
1821 * ipa-inline.c (want_inline_small_function_p): Take aray index hint.
1822 (edge_badness): Likewise.
1823 * ipa-inline.h (inline_hints_vals): Add array_index and comments.
1824 (inline_summary): Add ARRAY_INDEX.
1825 * ipa-inline-analysis.c (dump_inline_hints): Dump array_index hint.
1826 (reset_inline_summary): Handle array_index hint.
1827 (inline_node_duplication_hook): Likewise.
1828 (dump_inline_summary): Likewise.
1829 (array_index_predicate): New function.
1830 (estimate_function_body_sizes): Use it.
1831 (estimate_node_size_and_time): Use array_index hint.
1832 (inline_merge_summary, inline_read_section): Likewise.
1834 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
1836 * doc/extend.texi: Copy-edit to use "bit-field" consistently
1837 instead of "bitfield" or "bit field".
1839 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
1841 * doc/extend.texi: Copy-edit to fix incorrect hyphenation phrases
1842 involving "bit", "byte", "word", "precision", and "floating"
1845 2012-11-10 Sandra Loosemore <sandra@codesourcery.com>
1847 * doc/extend.texi: Copy-edit to fix incorrect uses of "which"
1848 and "that" throughout the file.
1850 2012-11-10 Andrew Pinski <apinski@cavium.com>
1853 * configure.ac: Set PLUGIN_LD_SUFFIX to just "ld" if it was "ld-new"
1855 * configure: Regenerate.
1857 2012-11-10 Eric Botcazou <ebotcazou@adacore.com>
1859 * expr.c (store_field): Remove TYPE parameter. Remove block of code
1860 dealing with BLKmode in registers. Reimplement this support using
1861 pseudo-registers and bit-field techniques.
1862 (store_constructor_field): Remove TYPE parameter and adjust calls to
1864 (expand_assignment): Adjust calls to store_field. Add comment.
1865 (store_expr): Add comment.
1866 (store_constructor): Adjust calls to store_constructor_field.
1867 (expand_expr_real_2): Adjust call to store_field.
1869 2012-11-10 Vladimir Makarov <vmakarov@redhat.com>
1870 Uros Bizjak <ubizjak@gmail.com>
1873 * config/i386/i386.md (*movti_internal_rex64): Add "!" to riF->o
1876 2012-11-09 Ed Smith-Rowland <3dw4rd@verizon.net>
1879 * doc/invoke.texi: Document f[no-]ext-numeric-literals flag.
1881 2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
1883 * doc/install.texi (sparc64-x-solaris2): Mention MPC as well.
1885 2012-11-09 Richard Henderson <rth@redhat.com>
1887 * config/i386/i386.c (ix86_lra_p): Remove.
1888 (TARGET_LRA_P): Use hook_bool_void_true.
1890 2012-11-09 Jason Merrill <jason@redhat.com>
1892 * attribs.c (lookup_attribute_spec): Handle getting a TREE_LIST.
1894 2012-11-09 Vladimir Makarov <vmakarov@redhat.com>
1896 PR tree-optimization/55154
1897 * lra-int.h (LRA_LOSER_COST_FACTOR, LRA_MAX_REJECT): New macros.
1898 * lra.c (setup_operand_alternative): Use them.
1899 * lra-constraints.c (LOSER_COST_FACTOR, MAX_OVERALL_COST_BOUND):
1901 (process_alt_operands): Use LRA_LOSER_COST_FACTOR and LRA_MAX_REJECT.
1902 Accumulate reject instead of setting for non-const.
1903 (curr_insn_transform): Initialize best_losers and best_overall by
1906 2012-11-09 Christian Bruel <christian.bruel@st.com>
1908 * config/sh/sh.c (sh_can_use_simple_return_p): Enable with
1909 -freorder-blocks-and-partition.
1911 2012-11-09 Kenneth Zadeck <zadeck@naturalbridge.com>
1913 * rtl.h (CONST_SCALAR_INT_P): New macro.
1914 * cfgexpand.c (expand_debug_locations): Changed to use
1915 CONST_SCALAR_INT_P macro.
1916 * combine.c (try_combine, subst, make_extraction,
1917 gen_lowpart_for_combine): Ditto.
1918 * cselib.c (entry_and_rtx_equal_p, rtx_equal_for_cselib_1): Ditto.
1919 * dwarf2out.c (loc_descriptor): Ditto.
1920 * emit-rtl.c (gen_lowpart_common): Ditto.
1921 * ira-costs.c (record_reg_classes, record_address_regs): Ditto.
1922 * ira-lives.c (single_reg_class): Ditto.
1923 * recog.c (simplify_while_replacing, asm_operand_ok,
1924 constrain_operands): Ditto.
1925 * reload.c (find_reloads): Ditto.
1926 * simplify-rtx.c (simplify_unary_operation_1,
1927 simplify_const_unary_operation, simplify_binary_operation_1,
1928 simplify_const_binary_operation, simplify_relational_operation_1,
1929 simplify_subreg): Ditto.
1931 2012-11-09 Steven Bosscher <steven@gcc.gnu.org>
1934 * postreload.c (reload_cse_simplify): Return a bool indicating
1935 whether the CFG was changed.
1936 (reload_cse_regs_1): Traverse the CFG instead of the insns chain.
1937 Cleanup the CFG if edges may have been removed.
1938 (reload_cse_regs): Update.
1940 2012-11-09 Andrey Belevantsev <abel@ispras.ru>
1942 PR rtl-optimization/54472
1943 * sel-sched-ir.c (has_dependence_note_reg_set): Handle implicit sets.
1944 (has_dependence_note_reg_clobber, has_dependence_note_reg_use):
1947 2012-11-09 Eric Botcazou <ebotcazou@adacore.com>
1949 * config/i386/i386.c (release_scratch_register_on_entry): Also adjust
1952 2012-11-08 Christian Bruel <christian.bruel@st.com>
1954 * tree-ssa-tail-merge.c (replace_block_by): Update bb2 profile count.
1955 Do not reset dead bb1->frequency.
1957 2012-11-08 Steven Bosscher <steven@gcc.gnu.org>
1959 PR tree-optimization/55191
1960 * cfganal.c (connect_infinite_loops_to_exit): Call dfs_deadend here.
1961 (flow_dfs_compute_reverse_execute): Don't call it here.
1963 2012-11-08 Jakub Jelinek <jakub@redhat.com>
1966 * dwarf2out.c (gen_compile_unit_die): Don't call gen_producer_string
1967 here, instead add "" if producer_string is NULL.
1968 (dwarf2out_finish): Call gen_producer_string here, unconditionally
1969 decrease refcount of the old indirect string and set val_str to
1970 find_AT_string result.
1973 * cgraphunit.c (assemble_thunk): Don't call source_line debug hook
1974 here, instead call insn_locations_{init,finalize} and initialize
1977 2012-11-08 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
1980 * gcc.c (process_command): Use save_switch for synthesized
1981 -fcompare-debug=* option; mark the switch as known.
1983 2012-11-08 Jakub Jelinek <jakub@redhat.com>
1986 * config/rs6000/rs6000.c (legitimate_indirect_address_p): Remove
1989 2012-11-08 Bernd Schmidt <bernds@codesourcery.com>
1991 PR rtl-optimization/54850
1992 * sched-deps.c (find_inc): Add all dependencies from the inc_insn
1995 2012-11-08 Jan Hubicka <jh@suse.cz>
1998 * ipa-inline.c (big_speedup_p): New function.
1999 (want_inline_small_function_p): Use it.
2000 (edge_badness): Dump it.
2001 * params.def (inline-min-speedup): New parameter.
2002 * doc/invoke.texi (inline-min-speedup): Document.
2004 2012-11-08 Martin Jambor <mjambor@suse.cz>
2006 * ipa-prop.c (determine_known_aggregate_parts): Skip writes to
2007 different declarations when tracking writes to a declaration.
2009 2012-11-07 David S. Miller <davem@davemloft.net>
2011 * config/sparc/constraints.md ("U"): Document, in detail,
2012 which this constraint is necessary.
2014 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
2017 * expr.c (store_expr): Do not call emit_block_move for
2020 2012-11-07 Eric Botcazou <ebotcazou@adacore.com>
2023 * fold-const.c (fold_binary_op_with_conditional_arg): Do not fold if
2024 the argument is itself a conditional expression.
2026 2012-11-07 Vladimir Makarov <vmakarov@redhat.com>
2028 PR rtl-optimization/55122
2029 * lra-constraints.c (match_reload): Sync values for dead input pseudos.
2031 2012-11-07 Richard Henderson <rth@redhat.com>
2033 * trans-mem.c (pass_ipa_tm): Don't use TODO_update_ssa.
2035 2012-11-07 Peter Bergner <bergner@vnet.ibm.com>
2037 * doc/invoke.texi (-mcpu=power8): Document.
2038 * config.in (HAVE_AS_POWER8): New.
2039 * config.gcc: Add cpu_type power8.
2040 * configure.ac: (HAVE_AS_POWER8): Check for assembler support for
2041 the POWER8 instructions.
2042 * configure: Regenerate.
2043 * config/rs6000/rs6000.h: (ASM_CPU_POWER8_SPEC): Define.
2044 (ASM_CPU_SPEC): Pass %(asm_cpu_power8) for -mcpu=power8.
2045 (EXTRA_SPECS): Add asm_cpu_power8 spec string.
2046 * config/rs6000/rs6000-cpus.def (processor_target_table): Alias
2048 * config/rs6000/rs6000-tables.opt: Regenerate.
2049 * config/rs6000/driver-rs6000.c (ASM_CPU_SPEC): For -mcpu=power8,
2050 pass %(asm_cpu_power8)/-mpwr8.
2051 * config/rs6000/aix53.h: Likewise.
2052 * config/rs6000/aix61.h: Likewise.
2054 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
2057 * config/i386/i386.c (ix86_function_ok_for_sibcall): Put back exception
2058 to make a sibcall if one of the functions has void return type.
2060 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2063 * doc/invoke.texi (Wformat): Update.
2065 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2067 * optc-gen.awk: Factor code out to...
2068 * opt-functions.awk (lang_enabled_by): ... this new function.
2070 2012-11-07 Manuel López-Ibáñez <manu@gcc.gnu.org>
2073 * common.opt (Wswitch,Wswitch-default,Wswitch-enum): Move to c.opt.
2075 2012-11-07 Yufeng Zhang <yufeng.zhang@arm.com>
2077 * config/aarch64/aarch64.c (aarch64_expand_prologue): Add the missing
2078 argument 'Pmode' to the 'plus_constant' call.
2080 2012-11-07 Martin Jambor <mjambor@suse.cz>
2082 PR tree-optimization/53787
2083 * ipa-cp.c (ipcp_value_source): New field offset.
2084 (ipcp_agg_lattice): New type.
2085 (ipcp_param_lattices): Likewise, move virt_call from ipcp_lattice here.
2086 (ipcp_agg_lattice_pool): New variable.
2087 (ipa_get_parm_lattices): New function.
2088 (ipa_get_lattice): Turned into ipa_get_scalar_lat, use the above.
2089 Adjusted all callers.
2090 (print_lattice): New function.
2091 (print_all_lattices): Use the above, also print aggregate lattices.
2092 (set_agg_lats_to_bottom): New function.
2093 (set_agg_lats_contain_variable): Likewise.
2094 (set_all_contains_variable): Likewise.
2095 (initialize_node_lattices): Also handle aggregate lattices, set
2096 virt_call in ipcp_param_lattices.
2097 (add_value_source): Handle offsets.
2098 (add_value_to_lattice): Likewise.
2099 (add_scalar_value_to_lattice): New function.
2100 (propagate_vals_accross_pass_through): Use add_scalar_value_to_lattice.
2101 (propagate_vals_accross_ancestor): Likewise.
2102 (propagate_accross_jump_function): Renamed to
2103 propagate_scalar_accross_jump_function, use
2104 add_scalar_value_to_lattice.
2105 (set_check_aggs_by_ref): New function.
2106 (merge_agg_lats_step): Likewise.
2107 (set_chain_of_aglats_contains_variable): Likewise.
2108 (merge_aggregate_lattices): Likewise.
2109 (propagate_constants_accross_call): Also handle aggregate lattices.
2110 (hint_time_bonus): New function.
2111 (context_independent_aggregate_values): Likewise.
2112 (gather_context_independent_values): Also handle agggregate values.
2113 (agg_jmp_p_vec_for_t_vec): New function.
2114 (estimate_local_effects): Also handle agggregate values.
2115 (add_all_node_vals_to_toposort): Likewise.
2116 (ipcp_propagate_stage): Use struct ipcp_param_lattices.
2117 (get_clone_agg_value): New function.
2118 (cgraph_edge_brings_value_p): Also handle agggregate values.
2119 (create_specialized_node): Likewise.
2120 (find_more_values_for_callers_subset): Rename to
2121 find_more_scalar_values_for_callers_subset. Modify dump.
2122 (copy_plats_to_inter): New function.
2123 (intersect_with_plats): Likewise.
2124 (agg_replacements_to_vector): Likewise.
2125 (intersect_with_agg_replacements): Likewise.
2126 (find_aggregate_values_for_callers_subset): Likewise.
2127 (known_aggs_to_agg_replacement_list): Likewise.
2128 (cgraph_edge_brings_all_scalars_for_node): Likewise.
2129 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
2130 (perhaps_add_new_callers): Old functionality moved to
2131 cgraph_edge_brings_all_scalars_for_node, call it and
2132 cgraph_edge_brings_all_agg_vals_for_node.
2133 (ipcp_val_in_agg_replacements_p): New function.
2134 (decide_about_value): New function.
2135 (decide_whether_version_node): A lot of functionality moved to
2136 decide_about_value. Also handle agggregate values.
2137 (ipcp_driver): Also allocate ipcp_agg_lattice_pool.
2138 (pass_ipa_cp): Fill in new entries.
2139 * ipa-prop.c (ipa_node_agg_replacements): New variable.
2140 (free_parms_ainfo): New function.
2141 (ipa_analyze_node): Use free_parms_ainfo to free stuff.
2142 (ipa_find_agg_cst_for_param): Do not rely on offset ordering.
2143 (ipa_set_node_agg_value_chain): New function.
2144 (ipa_node_removal_hook): Also handle ipa_node_agg_replacements.
2145 (ipa_node_duplication_hook): Likewise.
2146 (ipa_free_all_structures_after_ipa_cp): Also free ipcp_agg_lattice_pool.
2147 (ipa_free_all_structures_after_iinln): Likewise.
2148 (ipa_dump_agg_replacement_values): New function.
2149 (write_agg_replacement_chain): Likewise.
2150 (read_agg_replacement_chain): Likewise.
2151 (ipa_prop_write_all_agg_replacement): Likewise.
2152 (read_replacements_section): Likewise.
2153 (ipa_prop_read_all_agg_replacement): Likewise.
2154 (adjust_agg_replacement_values): Likewise.
2155 (ipcp_transform_function): Likewise.
2156 * ipa-prop.h: Also define heap vector of ipa_agg_jf_item_t and of
2157 ipa_agg_jump_function_t.
2158 (ipa_node_params): Make lattices an array of ipcp_param_lattices.
2159 (ipa_agg_replacement_value): New type and its vector.
2160 (ipa_set_node_agg_value_chain) Declare.
2161 (ipa_node_agg_replacements): Likewise.
2162 (ipa_get_agg_replacements_for_node): New function.
2163 (ipcp_agg_lattice_pool): Declare.
2164 (ipa_dump_agg_replacement_values): Likewise.
2165 (ipa_prop_write_all_agg_replacement): Likewise.
2166 (ipa_prop_read_all_agg_replacement): Likewise.
2167 (ipcp_transform_function): Likewise.
2168 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time): Pass around
2169 known aggregates and hints.
2170 * ipa-inline.h: include ipa-prop.h.
2171 (estimate_ipcp_clone_size_and_time): Adjust declaration.
2172 * lto-streamer.h (lto_section_type): New item
2173 LTO_section_ipcp_transform.
2174 * lto-section-in.c (lto_section_name): New element ipcp_trans.
2175 * params.def (PARAM_IPA_CP_LOOP_HINT_BONUS): New parameter.
2176 * Makefile.in (IPA_INLINE_H): New. Use everywhee instead of
2179 2012-11-07 Uros Bizjak <ubizjak@gmail.com>
2181 * config/i386/i386.c (enum upper_128bits_state): Remove.
2182 (check_avx256_store): Use bool pointer argument.
2183 (ix86_avx_u128_mode_needed): Use note_stores also for CALL insns.
2184 * config/i386/predicates.md (vzeroupper_operation): Use match_test.
2186 2012-11-07 Yufeng Zhang <yufeng.zhang@arm.com>
2188 * config/aarch64/aarch64.c (aarch64_expand_prologue): For the
2189 load-pair with writeback instruction, replace
2190 aarch64_set_frame_expr with add_reg_note (REG_CFA_ADJUST_CFA);
2191 add new local variable 'cfa_reg' and use it.
2193 2012-11-07 Kaz Kojima <kkojima@gcc.gnu.org>
2196 * mode-switching.c (create_pre_exit): Set short_block if there
2199 2012-11-07 Martin Jambor <mjambor@suse.cz>
2201 * lto-cgraph.c: Include tree-pass.h.
2202 (lto_output_node): Stream node->ipa_transforms_to_apply.
2203 (input_node): Likewise.
2204 * tree-pass.h (passes_by_id): Declare.
2205 (passes_by_id_size): Likewise.
2206 * Makefile.in (lto-cgraph.o): Add TREE_PASS_H to dependencies.
2208 2012-11-07 Jan Hubicka <jh@suse.cz>
2210 * ipa-inline-analysis.c (true_predicate, single_cond_predicate,
2211 reset_inline_edge_summary): Fix formatting.
2212 (account_size_time): Bump up the limit on number of size/time
2214 (estimate_function_body_sizes): Work in reverse postorder.
2216 2012-11-07 David S. Miller <davem@davemloft.net>
2220 * config/sparc/constraints.md ("U"): Delete.
2221 * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
2222 * config/sparc/sync.md: Likewise.
2223 And revert parts of:
2224 * doc/md.texi: Sync sparc constraint documentation with reality.
2226 2012-11-07 Jakub Jelinek <jakub@redhat.com>
2228 * config/i386/i386.c (ix86_avx_u128_mode_after): Don't
2229 look for reg in CALL operand.
2232 * tree-flow.h (propagate_threaded_block_debug_into): New prototype.
2233 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): No
2235 * tree-ssa-loop-ch.c (copy_loop_headers): Use it.
2237 2012-11-06 Sterling Augustine <saugustine@google.com>
2239 * dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF.
2241 2012-11-06 Aldy Hernandez <aldyh@redhat.com>
2242 Richard Henderson <rth@redhat.com>
2244 * cfg-flags.def (TM_UNINSTRUMENTED, TM_ABORT): New.
2245 * trans-mem.c (PROB_VERY_LIKELY, PROB_UNLIKELY, PROB_LIKELY): New.
2246 (struct tm_region): Add tm_state, restart_block,
2247 original_transaction_was_outer.
2248 (tm_region_init_0): Initialize them.
2249 (collect_bb2reg, get_bb_regions_instrumented): New.
2250 (tm_log_emit_save_or_restores): Merge into ...
2251 (expand_transaction): ... here.
2252 (generate_tm_state, propagate_tm_flags_out): New.
2253 (execute_tm_mark): Avoid processing blocks more than once.
2254 (split_bb_make_tm_edge): Split out from ...
2255 (make_tm_edge): ... here. And merge the rest into ...
2256 (expand_block_edges): ... here.
2257 (execute_tm_edges): Avoid processing blocks more than once.
2258 (ipa_uninstrument_transaction): New.
2259 (ipa_tm_scan_calls_transaction): Use it. Rebuild cgraph and ssa.
2260 (ipa_tm_execute): Init and free original_copy_tables.
2261 * trans-mem.h (PR_MULTIWAYCODE): New.
2262 * tree-cfg.c (make_edges): Use EDGE_TM_ABORT.
2264 2012-11-06 Aldy Hernandez <aldyh@redhat.com>
2266 * cfghooks.c (copy_bbs): Handle a null loop_father.
2268 * cgraph.c (cgraph_debug_gimple_stmt): Handle a null
2269 current_function_decl.
2271 2012-11-06 Richard Henderson <rth@redhat.com>
2273 * tree-ssa-tail-merge.c (find_duplicate): Do not consider
2274 is_tm_ending_fndecl calls as mergable.
2276 2012-11-06 Sterling Augustine <saugustine@google.com>
2277 Cary Coutant <ccoutant@google.com>
2279 * common.opt (gno-split-dwarf, gsplit-dwarf): New switches.
2280 * doc/invoke.texi (Debugging Options): Document them.
2281 * gcc.c (replace_extension_spec_func): New function.
2282 (ASM_FINAL_SPEC): Adjust.
2283 (static_spec_functions): Add new field for replace-extension.
2284 (check_live_switch): Adjust comment. Add case for 'g'.
2285 * opts.c (finish_options): Set x_debug_generate_pub_sections based on
2286 x_dwarf_split_debug_info.
2287 (common_handle_option): Add case for OPT_gsplit_dwarf.
2288 * dwarf2out.h (addr_table_entry_struct): Add forward declaration.
2289 (dw_val_struct): Add val_entry pointer.
2290 * dwarf2out.c (debug_skeleton_info_section,
2291 debug_skeleton_abbrev_section, debug_addr_section,
2292 debug_skeleton_line_section, debug_str_offsets_section): New globals.
2293 (NOT_INDEXED, NO_INDEX_ASSIGNED): New defines.
2294 (indirect_string_node): New field index.
2295 (ate_kind): New enum with fields ate_kind_rtc, ate_kind_rtx_dtprel,
2297 (addr_table_entry): New structure and type.
2298 (dw_loc_list_struct): Add field begin_entry.
2299 (new_loc_desc): Initialize val_entry.
2300 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
2301 Add cases for DW_OP_GNU_addr_index and DW_OP_const_index.
2302 (build_cfa_loc): Initialize val_entry.
2303 (AT_index, add_addr_table_entry, remove_addr_table_entry,
2304 add_AT_lbl_id): New functions.
2305 (add_AT_addr, add_AT_range_list): New parameter force_direct.
2306 (output_die_abbrevs): New function.
2307 (add_ranges_by_labels): New parameter force_direct.
2308 (output_line_info): New parameter prologue_only.
2309 (dtprel_bool): New enum with dtprel_false and dtprel_true.
2310 (dw_addr_op, new_addr_loc_descr): New functions.
2311 (DEBUG_DWO_INFO_SECTION, DEBUG_DWO_ABBREV_SECTION,
2312 DEBUG_ADDR_SECTION, DEBUG_NORM_MACINFO_SECTION,
2313 DEBUG_DWO_MACINFO_SECTION, DEBUG_MACINFO_SECTION,
2314 DEBUG_NORM_MACRO_SECTION, DEBUG_DWO_MACRO_SECTION,
2315 DEBUG_MACRO_SECTION, DEBUG_DWO_LINE_SECTION,
2316 DEBUG_DWO_LOC_SECTION, DEBUG_NORM_STR_OFFSETS_SECTION,
2317 DEBUG_DWO_STR_OFFSETS_SECTION, DEBUG_STR_OFFSETS_SECTION,
2318 DEBUG_DWO_STR_SECTION, DEBUG_NORM_STR_SECTION, DEBUG_STR_SECTION,
2319 DEBUG_MACRO_SECTION_FLAGS, DEBUG_SKELETON_LINE_SECTION_LABEL,
2320 DEBUG_SKELETON_INFO_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL
2321 DEBUG_SKELETON_ABBREV_SECTION_LABEL): New macros.
2322 (DEBUG_STR_SECTION_FLAGS): Adjust.
2323 (TEXT_SECTION_LABEL, COLD_TEXT_SECTION_LABEL,
2324 DEBUG_LINE_SECTION_LABEL, DEBUG_INFO_SECTION_LABEL,
2325 DEBUG_ABBREV_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL,
2326 DEBUG_LOC_SECTION_LABEL, DEBUG_RANGES_SECTION_LABEL,
2327 DEBUG_MACINFO_SECTION_LABEL, DEBUG_MACRO_SECTION_LABEL): Adjust
2329 (debug_skeleton_abbrev_section_label, debug_addr_section_label,
2330 debug_skeleton_line_section_label, debug_skeleton_info_section_label):
2331 New global variables.
2332 (add_AT_flag, add_AT_int, add_AT_unsigned, add_AT_double, add_AT_vec,
2333 add_AT_data8): Initialize val_entry.
2334 (add_AT_low_high_pc): New parameter force_direct. Handle
2335 dwarf_split_debug_info.
2336 (set_indirect_string, find_AT_string_form): New functions.
2337 (AT_string_form): Adjust to call find_AT_string_from.
2338 (add_AT_die_ref, add_AT_fde_ref, add_AT_loc, add_AT_list):
2339 Initialize val_entry.
2340 (addr_index_table): New global variable.
2341 (addr_table_entry_do_hash, addr_table_entry_eq, add_addr_table_entry,
2342 init_addr_table_entry, remove_addr_table_entry, index_addr_table_entry,
2343 remove_loc_list_addr_table_entries): New functions.
2344 (add_AT_addr, add_AT_lbl_id, add_AT_range_list): New parameter
2345 force_direct. Handle dwarf_split_debug_info.
2346 (add_AT_file, add_AT_vms_delta, add_AT_lineptr, add_AT_macptr,
2347 add_AT_offset): Initialize val_entry.
2348 (UNRELOCATED_OFFSET, RELOCATED_OFFSET): New defines.
2349 (size_of_die): Handle dwarf_split_debug_info.
2350 (size_of_aranges, value_format): Call AT_class. Check AT_index.
2351 (output_die_abbrevs): New function.
2352 (output_abbrev_section): Call output_die_abbrevs.
2353 (new_loc_list): Initialize begin_entry.
2354 (output_loc_list): Handle dwarf_split_debug_info.
2355 (output_range_list_offset, output_loc_list_offset,
2356 output_attr_index_or_value, ): New functions.
2357 (output_die): Fix call to dw2_asm_output_data. Call
2358 output_attr_index_or_value and output_range_list_offset.
2359 Adjust logic around dw_val_class_str.
2360 (add_top_lebel_skeleton_die_attrs, get_skeleton_type_unit,
2361 output_skeleton_debug_sections): New functions.
2362 (output_comdat_type_unit, output_pubname, output_aranges): Handle
2363 dwarf_split_debug_info.
2364 (add_ranges_by_labels): New parameter force_direct.
2365 (mem_loc_descriptor, loc_descr): Call new_addr_loc_descr.
2366 (loc_list_from_tree, add_const_value_attribtue): Use dtprel_bools in
2367 place of generic integer.
2368 (dwarf2out_vms_debug_main_pointer, gen_entry_point_die, gen_label_die,
2369 gen_call_site_die, gen_subprogram_die, gen_variable_die,
2370 add_high_low_attributes): Adjust calls to add_AT_lbl_id.
2371 (output_macinfo_op): Adjust indirect_string_logic.
2372 (save_macinfo_strings): New function.
2373 (output_macinfo): Adjust.
2374 (dwarf2out_init): Handle dwarf_split_debug_info.
2375 (index_string, output_index_string_offset, output_index_string): New
2377 (output_indirect_string): Adjust.
2378 (output_indirect_strings, output_addr_table_entry, output_addr_table):
2380 (resolve_addr_in_expr, hash_loc_operands): Handle DW_OP_GNU_addr_index
2381 and DW_OP_GNU_const_index. Handle dwarf_split_debug_info. Call
2382 remove_loc_list_addr_table_entries and remove_addr_table_entry.
2383 (index_location_lists): New function.
2384 (dwarf2out_finish): Handle dwarf_split_debug_info. New variable
2385 main_comp_unit_die. Adjust calls to add_AT_low_high_pc,
2386 add_ranges_by_labels, add_AT_addr, and add_AT_lineptr. Call
2387 save_macinfo_strings and output_indirect_strings.
2389 2012-11-06 Gerald Pfeifer <gerald@pfeifer.com>
2391 * config/i386/i386.c (make_dispatcher_decl): Guard with
2392 ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION.
2394 2012-11-06 Jan Hubicka <jh@suse.cz>
2396 * ipa-inline-analysis.c (estimate_function_body_sizes,
2397 inline_update_overall_summary): Cap time calculations.
2399 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
2401 * config/i386/i386.c (ix86_init_machine_status): Do not
2402 explicitly clear tls_descriptor_call_expanded_p again.
2404 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
2406 * config/i386/sse.md
2407 (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Mark operand 0
2408 as read and written by the instruction.
2410 2012-11-06 Alexandre Oliva <aoliva@redhat.com>
2413 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
2414 Use a stack vector before allocating a pointer set.
2416 2012-11-06 Martin Jambor <mjambor@suse.cz>
2418 * ipa-prop.c (ipa_get_param_decl_index_1): New function.
2419 (ipa_get_param_decl_index): Just call ipa_get_param_decl_index_1.
2420 (ipa_populate_param_decls): Accept descriptors parameter rather
2421 than the whole info.
2422 (load_from_unmodified_param): Likewise.
2423 (ipa_load_from_parm_agg_1): Likewise.
2424 (ipa_load_from_parm_agg): Extract descriptors from info.
2425 (compute_complex_assign_jump_func): Likewise.
2426 (ipa_analyze_indirect_call_uses): Likewise.
2428 2012-11-06 Jan Hubicka <jh@suse.cz>
2430 * ipa-inline.c (compute_uninlined_call_time): Return gcov_type.
2431 (compute_inlined_call_time): Watch overflows.
2432 (relative_time_benefit): Compute in gcov_type.
2434 2012-11-06 Jan Hubicka <jh@suse.cz>
2436 * cfgloopanal.c (get_loop_hot_path): New function.
2437 * tree-ssa-lop-ivcanon.c (struct loop_size): Add CONSTANT_IV,
2438 NUM_NON_PURE_CALLS_ON_HOT_PATH, NUM_PURE_CALLS_ON_HOT_PATH,
2439 NUM_BRANCHES_ON_HOT_PATH.
2440 (tree_estimate_loop_size): Compute the new values.
2441 (try_unroll_loop_completely): Disable unrolling of loops with only
2442 calls or too many branches.
2443 (tree_unroll_loops_completely): Deal also with outer loops of hot loops.
2444 * cfgloop.h (get_loop_hot_path): Declare.
2445 * params.def (PARAM_MAX_PEEL_BRANCHES): New parameters.
2446 * invoke.texi (max-peel-branches): Document.
2448 2012-11-06 Jan Hubicka <jh@suse.cz>
2450 * ipa-pure-const.c (check_stmt): Fix debug info formatting.
2452 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
2454 * config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define.
2455 (ix86_instantiate_decls): New function.
2456 (ix86_expand_builtin) <case IX86_BUILTIN_LDMXCSR>: Use SLOT_TEMP
2457 stack slot instead of SLOT_VIRTUAL.
2458 <case IX86_BUILTIN_STMXCSR>: Ditto.
2459 (assign_386_stack_local): Do not assert when virtual slot is valid.
2460 * config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL.
2461 * config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot.
2462 (truncxf<mode>2): Ditto.
2463 (floatunssi<mode>2): Ditto.
2464 (isinf<mode>2): Ditto.
2465 * config/i386/sync.md (atomic_load<mode>): Ditto.
2466 (atomic_store<mode>): Ditto.
2468 2012-11-06 Jan Hubicka <jh@suse.cz>
2470 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound,
2471 vect_do_peeling_for_alignment): Fix loop bound computation.
2472 * tree-vect-loop.c (vect_transform_loop): Maintain loop bounds.
2474 2012-11-06 Oleg Endo <olegendo@gcc.gnu.org>
2477 * config/sh/sh.c (and_xor_ior_costs, addsubcosts): Double the costs for
2478 ops larger than SImode.
2479 * config/sh/sh.md (rotcl, *rotcl): New insns and splits.
2480 (ashldi3_k): Convert to insn_and_split and use new rotcl insn.
2482 2012-11-06 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
2485 * config/i386/i386-protos.h (emit_i387_cw_initialization): Delete.
2486 (emit_vzero): Add prototype.
2487 (ix86_mode_entry): Likewise.
2488 (ix86_mode_exit): Likewise.
2489 (ix86_emit_mode_set): Likewise.
2491 * config/i386/i386.c (typedef struct block_info_def): Delete.
2492 (define BLOCK_INFO): Delete.
2493 (check_avx256_stores): Add checking for MEM_P.
2494 (move_or_delete_vzeroupper_2): Delete.
2495 (move_or_delete_vzeroupper_1): Delete.
2496 (move_or_delete_vzeroupper): Delete.
2497 (ix86_maybe_emit_epilogue_vzeroupper): Delete.
2498 (function_pass_avx256_p): Delete.
2499 (ix86_function_ok_for_sibcall): Remove sibcall disabling.
2500 (nit_cumulative_args): Remove initialization of of avx256 fields of
2502 (ix86_emit_restore_sse_regs_using_mov): Remove vzeroupper generation.
2503 (ix86_expand_epilogue): Likewise.
2504 (ix86_avx_u128_mode_needed): New.
2505 (ix86_i387_mode_needed): Rename from ix86_mode_needed.
2506 (ix86_mode_needed): New.
2507 (ix86_avx_u128_mode_after): New.
2508 (ix86_mode_after): New.
2509 (ix86_avx_u128_mode_entry): New.
2510 (ix86_mode_entry): New.
2511 (ix86_avx_u128_mode_exit): New.
2512 (ix86_mode_exit): New.
2513 (ix86_emit_mode_set): New.
2514 (ix86_expand_call): Delete vzeroupper generation.
2515 (ix86_split_call_vzeroupper): Delete.
2516 (ix86_init_machine_status): Initialize optimize_mode_switching.
2517 (ix86_expand_special_args_builtin): Change.
2518 (ix86_reorg): Delete a call of move_or_delete_vzeroupper.
2520 * config/i386/i386.h (VALID_AVX256_REG_OR_OI_MODE): New.
2522 (avx_u128_state): New.
2523 (NUM_MODES_FOR_MODE_SWITCHING): Added AVX_U128_ANY.
2527 (EMIT_MODE_SET): Change.
2528 (machine_function): Delete avx256 fields.
2530 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): Delete.
2531 (define_insn_and_split "*call_vzeroupper"): Delete.
2532 (define_insn_and_split "*call_rex64_ms_sysv_vzeroupper"): Delete.
2533 (define_insn_and_split "*sibcall_vzeroupper"): Delete.
2534 (define_insn_and_split "*call_pop_vzeroupper"): Delete.
2535 (define_insn_and_split "*sibcall_pop_vzeroupper"): Delete.
2536 (define_insn_and_split "*call_value_vzeroupper"): Delete.
2537 (define_insn_and_split "*sibcall_value_vzeroupper"): Delete.
2538 (define_insn_and_split "*call_value_rex64_ms_sysv_vzeroupper"): Delete.
2539 (define_insn_and_split "*call_value_pop_vzeroupper"): Delete.
2540 (define_insn_and_split "*sibcall_value_pop_vzeroupper"): Delete.
2541 (define_expand "return"): Remove vzeroupper emitting.
2542 (define_expand "simple_return"): Delete.
2544 * config/i386/predicates.md (vzeroupper_operation): New.
2546 * config/i386/sse.md (avx_vzeroupper): Change.
2548 2012-11-06 Uros Bizjak <ubizjak@gmail.com>
2549 Kaz Kojima <kkojima@gcc.gnu.org>
2552 * mode-switching.c (create_pre_exit): Set return_copy to
2553 last_insn when copy_start is a pseudo reg.
2555 2012-11-06 Andrey Turetskiy <andrey.turetskiy@gmail.com>
2557 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_avx2_umulhrswv16hi3
2558 to CODE_FOR_avx2_pmulhrswv16hi3.
2559 * config/i386/predicates.md (const1_operand): Extend for vectors.
2560 * config/i386/sse.md (ssse3_avx2): Extend.
2561 (ssedoublemode): Ditto.
2562 (<sse2_avx2>_uavg<mode>3): Merge avx2_uavgv32qi3, sse2_uavgv16qi3,
2563 avx2_uavgv16hi3 and sse2_uavgv8hi3 into one.
2564 (*<sse2_avx2>_uavg<mode>3): Merge *avx2_uavgv32qi3, *sse2_uavgv16qi3,
2565 *avx2_uavgv16hi3 and *sse2_uavgv8hi3 into one.
2567 (<ssse3_avx2>_pmulhrsw<mode>3): Merge avx2_umulhrswv16hi3,
2568 ssse3_pmulhrswv8hi3 and ssse3_pmulhrswv4hi3 into one.
2569 (*avx2_pmulhrswv16hi3): Replace const_vector with const1_operand
2571 (*ssse3_pmulhrswv8hi3): Ditto.
2572 (*ssse3_pmulhrswv4hi3): Ditto.
2574 2012-11-06 Joern Rennecke <joern.rennecke@embecosm.com>
2576 * config/epiphany/epiphany.c (epiphany_address_cost):
2579 2012-11-05 Sriraman Tallam <tmsriram@google.com>
2581 * doc/tm.texi.in (TARGET_OPTION_FUNCTION_VERSIONS): New hook
2583 * (TARGET_COMPARE_VERSION_PRIORITY): New hook description.
2584 * (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New hook description.
2585 * (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New hook description.
2586 * doc/tm.texi: Regenerate.
2587 * target.def (compare_version_priority): New target hook.
2588 * (generate_version_dispatcher_body): New target hook.
2589 * (get_function_versions_dispatcher): New target hook.
2590 * (function_versions): New target hook.
2591 * cgraph.c (cgraph_fnver_htab): New htab.
2592 (cgraph_fn_ver_htab_hash): New function.
2593 (cgraph_fn_ver_htab_eq): New function.
2594 (version_info_node): New pointer.
2595 (insert_new_cgraph_node_version): New function.
2596 (get_cgraph_node_version): New function.
2597 (delete_function_version): New function.
2598 (record_function_versions): New function.
2599 * cgraph.h (cgraph_node): New bitfield dispatcher_function.
2600 (cgraph_function_version_info): New struct.
2601 (get_cgraph_node_version): New function.
2602 (insert_new_cgraph_node_version): New function.
2603 (record_function_versions): New function.
2604 (delete_function_version): New function.
2605 (init_lowered_empty_function): Expose function.
2606 * tree.h (DECL_FUNCTION_VERSIONED): New macro.
2607 (tree_function_decl): New bit-field versioned_function.
2608 * cgraphunit.c (cgraph_analyze_function): Generate body of multiversion
2609 function dispatcher.
2610 (cgraph_analyze_functions): Analyze dispatcher function.
2611 (init_lowered_empty_function): Make non-static. New parameter in_ssa.
2612 (assemble_thunk): Add parameter to call to init_lowered_empty_function.
2613 * config/i386/i386.c (add_condition_to_bb): New function.
2614 (get_builtin_code_for_version): New function.
2615 (ix86_compare_version_priority): New function.
2616 (feature_compare): New function.
2617 (dispatch_function_versions): New function.
2618 (ix86_function_versions): New function.
2619 (attr_strcmp): New function.
2620 (ix86_mangle_function_version_assembler_name): New function.
2621 (ix86_mangle_decl_assembler_name): New function.
2622 (make_name): New function.
2623 (make_dispatcher_decl): New function.
2624 (is_function_default_version): New function.
2625 (ix86_get_function_versions_dispatcher): New function.
2626 (make_attribute): New function.
2627 (make_resolver_func): New function.
2628 (ix86_generate_version_dispatcher_body): New function.
2629 (fold_builtin_cpu): Return integer for cpu builtins.
2630 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): New macro.
2631 (TARGET_COMPARE_VERSION_PRIORITY): New macro.
2632 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New macro.
2633 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New macro.
2634 (TARGET_OPTION_FUNCTION_VERSIONS): New macro.
2636 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
2638 * recog.c (extract_insn): Enabled alternative defaults to 1.
2640 2012-11-05 H.J. Lu <hongjiu.lu@intel.com>
2642 * config/i386/i386.c (print_reg): Replace REX_INT_REG_P with
2645 2012-11-05 Eric Botcazou <ebotcazou@adacore.com>
2647 PR tree-optimization/54986
2648 * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op
2649 conversions on entry but add them back on exit if needed.
2651 2012-11-05 Andreas Schwab <schwab@linux-m68k.org>
2653 * final.c (final_scan_insn) [HAVE_cc0]: Handle all comparison
2654 codes in non-jump and cmove insn.
2656 2012-11-05 Uros Bizjak <ubizjak@gmail.com>
2657 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
2659 * mode-switching.c (create_pre_exit): Force late switching if
2660 __builtin_{apply,return} emitted a load that require mode,
2661 other than MODE_EXIT.
2663 2012-11-05 Richard Sandiford <rdsandiford@googlemail.com>
2666 * config/i386/i386.c (ix86_address_subreg_operand): Remove stack
2668 (print_reg): Use true_regnum rather than REGNO.
2669 (ix86_print_operand_address): Remove SUBREG handling.
2671 2012-11-05 Jan Hubicka <jh@suse.cz>
2673 * tree-ssa-loop-niter.c (finite_loop_p): Revamp to be just wrapper of
2674 max_loop_iterations.
2676 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
2678 * reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
2679 with a return instruction.
2681 2012-11-05 Vladimir Makarov <vmakarov@redhat.com>
2683 PR rtl-optimization/55151
2684 * lra-constraints.c (process_alt_operands): Permit putting reg
2685 value into memory. Increase reject for this case.
2687 2012-11-05 Dehao Chen <dehao@google.com>
2689 * final.c (reemit_insn_block_notes): Do not change scope if insn
2690 location is UNKNOWN_LOCATION.
2692 2012-11-05 Joern Rennecke <joern.rennecke@embecosm.com>
2694 * doc/md.texi (Defining Attributes): Document that we are defining
2695 HAVE_ATTR_name macros as 1 for defined attributes, and as 0
2696 for undefined special attributes.
2697 * final.c (asm_insn_count, align_fuzz): Always define.
2698 (insn_current_reference_address): Likewise.
2699 (init_insn_lengths): Use if (HAVE_ATTR_length) instead of
2700 #ifdef HAVE_ATTR_length.
2701 (get_attr_length_1, shorten_branches, final): Likewise.
2702 (final_scan_insn, output_asm_name): Likewise.
2703 * genattr.c (gen_attr): Define HAVE_ATTR_name macros for
2704 defined attributes as 1.
2705 Remove ancient get_attr_alternative compatibility code.
2706 For special purpose attributes not provided, define HAVE_ATTR_name
2708 In case no length attribute is given, provide stub definitions
2709 for insn_*_length* functions, and also include insn-addr.h.
2710 In case no enabled attribute is given, provide stub definition.
2711 * genattrtab.c (write_length_unit_log): Always write a definition.
2712 * hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions.
2713 * hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare.
2714 * lra-int.h (struct lra_insn_recog_data): Make member
2715 alternative_enabled_p unconditional.
2716 * lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of
2717 #ifdef HAVE_ATTR_length.
2718 (lra_set_insn_recog_data): Likewise. Make initialization of
2719 alternative_enabled_p unconditional.
2720 (lra_update_insn_recog_data): Use #if instead of #ifdef for
2722 * recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define.
2723 (extract_insn): Check HAVE_ATTR_enabled.
2724 (gate_handle_split_before_regstack): Use #if instead of
2725 #if defined for HAVE_ATTR_length.
2727 2012-11-05 Jan Hubicka <jh@suse.cz>
2729 * ipa-inline.c (compute_uninlined_call_time,
2730 compute_inlined_call_time): New functions.
2731 (RELATIVE_TIME_BENEFIT_RANGE): New macro.
2732 (relative_time_benefit): Rewrite.
2733 (edge_badness): Rewrite path with guessed profile and estimated profile.
2734 * ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module):
2736 (struct inline_summary): Add GROWTH filed.
2737 * ipa-inline-analysis.c (dump_inline_hints): Update.
2738 (reset_inline_summary): Update.
2739 (dump_inline_summary): Update.
2740 (will_be_nonconstant_predicate): Cleanup to use gimple_store_p and
2741 gimple_assign_load_p predicates.
2742 (estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint.
2743 (simple_edge_hints): New function.
2744 (do_estimate_edge_time): Return time of invocation of callee rather
2745 than the time scaled by edge frequency; update hints code.
2746 (do_estimate_edge_hints): Update.
2747 (do_estimate_growth): Cleanup.
2749 2012-11-05 Jakub Jelinek <jakub@redhat.com>
2752 * dwarf2out.c (value_format) <case dw_val_class_high_pc>: Handle
2753 also DWARF2_ADDR_SIZE 1 and 2.
2755 2012-11-05 Jan Hubicka <jh@suse.cz>
2757 * tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
2758 (maybe_lower_iteration_bound): Initialize not_executed_last_iteration to NULL
2759 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip
2760 just_once_each_iteration_p; record estimated bound when loop has only one
2761 likely exit; test just_once_each_iteration_p before IV canon itself.
2763 2012-11-05 Jan Hubicka <jh@suse.cz>
2765 * ipa-inline.c (leaf_node_p): Rename to ...
2766 (num_calls) ... this one.
2767 (want_early_inline_function_p): Allow smal growth on non-leafs.
2769 2012-11-05 Jakub Jelinek <jakub@redhat.com>
2772 * var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE
2774 (vt_initialize): Look for fp_setter in any bb, not just successor of
2777 2012-11-05 Oleg Endo <olegendo@gcc.gnu.org>
2779 * config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro.
2780 (TARGET_SUPERSCALAR): Add TARGET_SH2A.
2781 (CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
2783 (TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
2785 * config/sh/sh.c (sh_trampoline_init): Likewise.
2787 2012-11-05 David Edelsohn <dje.gcc@gmail.com>
2789 * system.h (loc_t): Poison.
2791 2012-11-05 Marc Glisse <marc.glisse@inria.fr>
2793 * fold-const.c (fold_unary_loc): Disable conversion optimization
2796 2012-11-04 Thomas Schwinge <thomas@codesourcery.com>
2798 * configure: Regenerate.
2800 2012-11-04 Eric Botcazou <ebotcazou@adacore.com>
2802 * combine.c: Adjust toplevel comment.
2803 (make_extraction): Adjust head comment and move up canonicalization.
2805 2012-11-04 Alexandre Oliva <aoliva@redhat.com>
2806 Jakub Jelinek <jakub@redhat.com>
2809 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps
2810 for dropped IV sets.
2812 2012-11-04 Alexandre Oliva <aoliva@redhat.com>
2815 * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
2816 New, rewritten from debug stmt copying code...
2817 (thread_around_empty_block): ... removed from here.
2818 (thread_across_edge): Call propagate_threaded_block_debug_into.
2820 2012-11-04 Dehao Chen <dehao@google.com>
2822 * expr.c (expand_expr_real_1): Change to not using input_location.
2824 2012-11-03 Jan Hubicka <jh@suse.cz>
2826 * invoke.texi (profile-use): update documentation.
2827 * opts.c (common_handle_option): Enable tree-vectorize
2828 and tree-loop-distribute-patterns.
2829 * tree-loop-distribution.c (tree_loop_distribution): Skip loops
2831 * config/i386/i386.c (ix86_option_override_internal): Enabe
2832 prefetch_lop_arrays for profile-use.
2834 2012-11-03 Robert Mason <rbmj@verizon.net>
2836 * gcov-io.c (gcov_open): Add file mode to open call (need for VxWorks)
2838 2012-11-03 Sandra Loosemore <sandra@codesourcery.com>
2840 * doc/extend.texi: Copy-edit to use present tense except when
2841 explicitly describing future or past behavior.
2843 2012-11-03 Oleg Endo <olegendo@gcc.gnu.org>
2845 * config/sh/sh.c (output_movedouble, output_far_jump,
2846 output_ieee_ccmpeq): Use multi-line strings for asm.
2847 (find_regmode_weight): Wrap lines.
2848 (sh_optimize_target_register_callee_saved): Remove commented out
2850 (emit_load_ptr): Remove prototype.
2852 2012-11-03 Oleg Endo <olegendo@gcc.gnu.org>
2855 * config/sh/sh.md (*cbranch_t): Allow splitting after reload.
2856 Allow going beyond current basic block before reload when looking for
2858 * config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels.
2860 2012-11-02 Jan Hubicka <jh@suse.cz>
2862 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
2863 missing sign to unsigned.
2865 2012-11-02 Andrew Pinski <apinski@cavium.com>
2868 * simplify-rtx.c (simplify_relational_operation_1): Don't simplify
2869 (LTU/GEU (PLUS a 0) 0) into (GEU/LTU a 0) since they are not
2872 2012-11-02 Jan Hubicka <jh@suse.cz>
2874 * tree-ssa-loop-niter.c (double_int_cmp, bound_index,
2875 discover_iteration_bound_by_body_walk): New functions.
2876 (discover_iteration_bound_by_body_walk): Use it.
2878 2012-11-02 Jan Hubicka <jh@suse.cz>
2880 * predict.c (predict_loops): Predict also exits not dominating latch.
2882 2012-11-02 Jan Hubicka <jh@suse.cz>
2884 * predict.c (predict_loops): Do not predict infinite loops.
2886 2012-11-02 Jan Hubicka <jh@suse.cz>
2889 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
2890 MAX field if NITER was folded to contant.
2891 (record_estimate): Sanity check.
2892 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): New
2894 (remove_redundant_iv_test): New function.
2895 (loops_to_unloop, loops_to_unloop_nunroll): New static vars.
2896 (unloop_loops): Break out from ...
2897 (try_unroll_loop_completely): ... here; Pass in MAXITER; use
2898 remove_exits_and_undefined_stmts; do not unloop.
2899 (canonicalize_loop_induction_variables): Compute MAXITER;
2900 use remove_redundant_iv_test; remove loop_close_ssa_invalidated
2901 and irred_invalidated arguments.
2902 (canonicalize_induction_variables): Compute fresh bound estimates;
2903 unloop; walk from innermost.
2904 (tree_unroll_loops_completely): Likewise.
2906 2012-11-02 Vladimir Makarov <vmakarov@redhat.com>
2909 * lra-constraints.c (debug_loc_equivalence_change_p): Rename to
2910 loc_equivalence_change_p.
2911 (lra_constraints): Check equiv_insn_bitmap for debug insn. Call
2912 loc_equivalence_change_p for non-transformed insn.
2914 2012-11-02 Eric Botcazou <ebotcazou@adacore.com>
2916 * cfg-flags.def (ABNORMAL_CALL): Fix comment.
2918 (SIBCALL): Likewise.
2919 * cfgrtl.c (rtl_verify_flow_info_1): Adjust error messages.
2920 Deal with EDGE_SIBCALL and fix the EDGE_ABNORMAL check.
2922 2012-11-02 Jakub Jelinek <jakub@redhat.com>
2925 * config/i386/i386.md (bswapdi2): Limit to TARGET_64BIT.
2926 (*bswapdi2_doubleword): Removed.
2928 2012-11-02 Gerald Pfeifer <gerald@pfeifer.com>
2930 * doc/install.texi (Specific): Remove moxie web reference.
2932 2012-11-01 Marc Glisse <marc.glisse@inria.fr>
2935 * tree-vect-generic.c (expand_vector_condition): New function.
2936 (expand_vector_operations_1): Call it.
2938 2012-11-01 Steve Ellcey <sellcey@mips.com>
2940 * target-globals.c (save_target_globals): Save lra_int struct.
2942 2012-11-01 Gerald Pfeifer <gerald@pfeifer.com>
2944 * doc/standards.texi (Standards): Adjust reference to Go specification.
2946 2012-11-01 Lawrence Crowl <crowl@google.com>
2948 * ebitmap.h: Remove unused.
2949 * ebitmap.c: Remove unused.
2950 * Makefile.in: Remove ebitmap.h and ebitmap.c.
2951 * sbitmap.h (SBITMAP_SIZE_BYTES): Move to source file.
2952 (SET_BIT_WITH_POPCOUNT): Remove unused.
2953 (RESET_BIT_WITH_POPCOUNT): Remove unused.
2954 (bitmap_copy_n): Remove unused.
2955 (bitmap_range_empty_p): Remove unused.
2956 (sbitmap_popcount): Remove unused.
2957 (sbitmap_verify_popcount): Make private to source file.
2958 * sbitmap.c (SBITMAP_SIZE_BYTES): Move here from header.
2959 (bitmap_copy_n): Remove unused.
2960 (bitmap_range_empty_p): Remove unused.
2961 (sbitmap_popcount): Remove unused.
2962 (sbitmap_verify_popcount): Make private to source file.
2964 2012-11-01 Lawrence Crowl <crowl@google.com>
2966 * sbitmap.h (sbitmap_iter_init): Rename bmp_iter_set_init and add
2967 unused parameter to match bitmap iterator. Update callers.
2968 (sbitmap_iter_cond): Rename bmp_iter_set. Update callers.
2969 (sbitmap_iter_next): Rename bmp_iter_next and add unused parameter to
2970 match bitmap iterator. Update callers.
2971 (EXECUTE_IF_SET_IN_SBITMAP_REV): Remove unused.
2972 (EXECUTE_IF_SET_IN_SBITMAP): Rename EXECUTE_IF_SET_IN_BITMAP and
2973 adjust to be identical to the definition in bitmap.h. Conditionalize
2974 the definition based on not having been defined. Update callers.
2975 * bitmap.h (EXECUTE_IF_SET_IN_BITMAP): Conditionalize the definition
2976 based on not having been defined. (To match the above.)
2978 2012-11-01 Lawrence Crowl <crowl@google.com>
2980 * sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter
2981 type. Update callers to match.
2982 (SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update
2984 (SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount,
2985 normalizing parameter type. Update callers to match.
2986 (RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type.
2987 Update callers to match.
2988 (RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount,
2989 normalizing parameter type. Update callers to match.
2990 * basic-block.h (sbitmap_intersection_of_succs): Rename
2991 bitmap_intersection_of_succs. Update callers to match.
2992 * basic-block.h (sbitmap_intersection_of_preds): Rename
2993 bitmap_intersection_of_preds. Update callers to match.
2994 * basic-block.h (sbitmap_union_of_succs): Rename
2995 bitmap_union_of_succs. Update callers to match.
2996 * basic-block.h (sbitmap_union_of_preds): Rename
2997 bitmap_union_of_preds. Update callers to match.
2999 2012-11-01 Vladimir Makarov <vmakarov@redhat.com>
3002 * lra-constraints.c (lra_constraints): Check only pseudos with
3003 equivalences. Add insns with equivalence pseudos.
3005 2012-11-01 Sharad Singhai <singhai@google.com>
3008 * dumpfile.h (struct dump_file_info): Fix order of flags.
3010 2012-11-01 Jan Hubicka <jh@suse.cz>
3013 * ipa-inline-transform.c (inline_call): Silence an sanity check until
3014 ipa-cp issue if fixed.
3016 2012-11-01 Sharad Singhai <singhai@google.com>
3018 * doc/invoke.texi: Update -fopt-info documentation.
3019 * dumpfile.c: Move dump_flags here from passes.c.
3020 Rename opt_info_options to optinfo_verbosity_options.
3021 Add optgroup_options.
3022 (dump_files): Add field for optinfo_flags in the static initializer.
3023 (dump_register): Handle additional parameter for optgroup_flags.
3024 (opt_info_enable_passes): Renamed opt_info_enable_all. Handle
3025 optgroup_flags. Fix documentation.
3026 (opt_info_switch_p_1): Handle optgroup options.
3027 (opt_info_switch_p): Handle optgroup_flags. Warn on multiple files.
3028 * dumpfile.h (dump_register): Additional argument for optgroup_flags.
3029 All callers updated.
3030 (struct dump_file_info): Add field for optgroup_flags.
3031 Define OPTGROUP_* flags.
3032 * tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags.
3033 All opt_pass static initializers updated.
3034 * opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all'
3035 instead of 'optall'.
3036 (handle_common_deferred_options): Fix typo in error message.
3037 * passes.c (register_one_dump_file): Add argument for optgroup_flags.
3038 Turn on OPTGROUP_IPA for IPA passes.
3039 Move dump_flags from here to dumpfile.c.
3040 * statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to
3043 2012-11-01 Joern Rennecke <joern.rennecke@embecosm.com>
3046 * config/sh/sh.md (doloop_end): Use emit_jump_insn.
3048 2012-10-31 Jakub Jelinek <jakub@redhat.com>
3050 PR tree-optimization/53708
3051 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
3052 user-supplied alignment when used with an explicit section name.
3054 2012-10-31 Dehao Chen <dehao@google.com>
3056 * tree-eh.c (do_return_redirection): Set location for jump statement.
3057 (do_goto_redirection): Likewise.
3058 (frob_into_branch_around): Likewise.
3059 (lower_try_finally_nofallthru): Likewise.
3060 (lower_try_finally_copy): Likewise.
3061 (lower_try_finally_switch): Likewise.
3062 * expr.c (store_expr): Use current insn location instead of expr
3064 (expand_expr_real): Likewise.
3065 (expand_expr_real_1): Likewise.
3067 2012-10-31 Easwaran Raman <eraman@google.com>
3071 * optabs.c (emit_cmp_and_jump_insn_1): Add REG_BR_PROB note
3072 only if it doesn't already exist.
3073 * stmt.c (get_outgoing_edge_probs): Return 0 if BB is NULL.
3074 (emit_case_dispatch_table): Handle the case where STMT_BB is NULL.
3075 (expand_sjlj_dispatch_table): Pass BB containing before_case
3076 to emit_case_dispatch_table.
3078 2012-10-31 Lawrence Crowl <crowl@google.com>
3081 (is_a <T> (U*)): New. Test for is-a relationship.
3082 (as_a <T> (U*)): New. Treat as a derived type.
3083 (dyn_cast <T> (U*)): New. Conditionally cast based on is_a.
3084 * cgraph.h (varpool_node): Rename to varpool_node_for_decl.
3085 Adjust callers to match.
3086 (is_a_helper <cgraph_node>::test (symtab_node_def *)): New.
3087 (is_a_helper <varpool_node>::test (symtab_node_def *)): New.
3088 (symtab_node_def::try_function): New. Change most calls to
3089 symtab_function_p with calls to dyn_cast <cgraph_node> (p).
3090 (symtab_node_def::try_variable): New. Change most calls to
3091 symtab_variable_p with calls to dyn_cast <varpool_node> (p).
3092 (symtab_function_p): Remove. Change callers to use
3093 is_a <cgraph_node> (p) instead.
3094 (symtab_variable_p): Remove. Change callers to use
3095 is_a <varpool_node> (p) instead.
3096 * cgraph.c (cgraph_node_for_asm): Remove redundant call to
3097 symtab_node_for_asm.
3098 * cgraphunit.c (symbol_finalized_and_needed): New.
3099 (symbol_finalized): New.
3100 (cgraph_analyze_functions): Split complicated conditionals out into
3101 above new functions.
3102 * Makefile.in (CGRAPH_H): Add is-a.h as used by cgraph.h.
3104 2012-10-31 Steven Bosscher <steven@gcc.gnu.org>
3105 Jakub Jelinek <jakub@redhat.com>
3107 PR tree-optimization/55018
3108 * basic-block.h (dfs_find_deadend): New prototype.
3109 * cfganal.c (dfs_find_deadend): No longer static. Use bitmap
3110 instead of sbitmap for visited.
3111 (flow_dfs_compute_reverse_execute): Use dfs_find_deadend here, too.
3112 * dominance.c (calc_dfs_tree): If saw_unconnected, traverse from
3113 dfs_find_deadend of unconnected b instead of b directly.
3115 2012-10-31 Eric Botcazou <ebotcazou@adacore.com>
3117 * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the
3118 special register pushes before frame probing and allocation.
3120 2012-10-31 Vladimir Makarov <vmakarov@redhat.com>
3123 * lra-constraints.c (lra_constraints): Update debug insn info
3124 after equivalence change.
3126 2012-10-31 Jan Hubicka <jh@suse.cz>
3128 * ipa-inline.c (ipa_inline): Avoid infinite loop on inlining
3129 empty virtual functions calling themselves.
3131 2012-10-31 Tom Tromey <tromey@redhat.com>
3134 * doc/gcc.texi: Add @direntry for gcov.
3136 2012-10-31 Joern Rennecke <joern.rennecke@embecosm.com>
3138 * expr.c (can_move_by_pieces): Apply ATTRIBUTE_UNUSED to len.
3140 2012-10-31 Jakub Jelinek <jakub@redhat.com>
3142 PR tree-optimization/19105
3143 PR tree-optimization/21643
3144 PR tree-optimization/46309
3145 * tree-ssa-reassoc.c (init_range_entry): Add STMT argument
3146 and use it if EXP is NULL.
3147 (update_range_test): Handle OPCODE equal to ERROR_MARK and oe->op NULL.
3148 (optimize_range_tests): Likewise.
3149 (final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops,
3150 maybe_optimize_range_tests): New functions.
3151 (reassociate_bb): Call maybe_optimize_range_tests if last
3152 stmt of bb is GIMPLE_COND that hasn't been visited yet.
3154 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
3156 * config/rs6000/rs6000.md (insvsi, insvdi, extvsi, extvdi): Rename
3158 (insvsi_internal, insvdi_internal, extvsi_internal)
3159 (extvdi_internal): ...this.
3160 (insv, extv): Update accordingly.
3162 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
3164 * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume
3165 that zero_extracts of const_ints are doing word-sized extractions.
3167 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
3169 * combine.c (make_extraction): Remove dead wanted_inner_mode-
3170 and pos_rtx-related code.
3172 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
3174 * expmed.c (store_bit_field_1): Move generation of MEM insvs
3176 (extract_bit_field_1): Likewise extvs and extzvs.
3178 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
3180 * expmed.c (store_bit_field_using_insv): New function,
3182 (store_bit_field_1): ...here.
3183 (extract_bit_field_using_extv): New function, split out from...
3184 (extract_bit_field_1): ...here.
3186 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
3188 * expmed.c (store_bit_field_1): Use OP_MODE to check whether an
3189 insv pattern is available. Remove redundant checks for OP_MODE
3190 being MAX_MACHINE_MODE.
3191 (extract_bit_field_1): Remove redundant checks for EXT_MODE being
3194 2012-10-31 Richard Sandiford <rdsandiford@googlemail.com>
3196 * expmed.c (store_bit_field_1): Remove test for BLKmode values.
3198 2012-10-31 Ralf Corsépius <ralf.corsepius@rtems.org>,
3199 Joel Sherrill <joel.sherrill@oarcorp.com>
3201 * config/sparc/t-rtems: New (Custom multilibs).
3202 * config/sparc/t-rtems-64: New (Custom multilibs).
3203 * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64.
3204 (sparc-*-rtems*): Add sparc/t-rtems.
3206 2012-10-31 Alan Modra <amodra@gmail.com>
3208 * config/rs6000/rs6000.c (legitimize_reload_address): Remove code
3209 handling non-aligned ld/std.
3210 * config/rs6000/paired.md (movv2sf_paired): Use 'Y' instead of 'o'.
3211 * config/rs6000/vsx.md (vsx_mov, vsx_movti): Likewise.
3212 * config/rs6000/altivec.md (altivec_mov, altivec_movti): Likewise.
3213 * config/rs6000/dfp.md (movtd_internal): Use 'm' instead of 'o'.
3215 2012-10-31 Alan Modra <amodra@gmail.com>
3217 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX.
3219 2012-10-31 Joern Rennecke <joern.rennecke@embecosm.com>
3221 * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to
3225 * vmsdbgout.c (vmsdbgout_write_source_line): Comment out names of
3226 last two parameters.
3228 2012-10-30 Alexandre Oliva <aoliva@redhat.com>
3232 * valtrack.c (dead_debug_promote_uses): Assert-check that
3233 global used bit was clear and initialize entry unconditionally.
3235 2012-10-30 Eric Botcazou <ebotcazou@adacore.com>
3237 * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in
3239 (hash_rtx): Likewise.
3241 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
3243 PR rtl-optimization/55093
3244 * rtlanal.c (simplify_subreg_regno): Remove lra_in_progress
3245 check for ARG_POINTER_REGNUM.
3247 2012-10-30 Steve Ellcey <sellcey@mips.com>
3249 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order
3251 (DRIVER_SELF_SPECS): Make -n32 the default on mips64* archs.
3252 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Change order.
3253 (MULTILIB_DIRNAMES): Ditto.
3254 (MULTILIB_EXCEPTIONS): New.
3256 2012-10-30 Joern Rennecke <joern.rennecke@embecosm.com>
3258 * lra-constraints.c (check_secondary_memory_needed_p):
3259 Add ATTRIBUTE_UNUSED to parameters.
3261 2012-10-30 Richard Sandiford <rdsandiford@googlemail.com>
3263 * defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition.
3264 * expmed.c (SLOW_UNALIGNED_ACCESS): Remove default definition.
3265 * expr.c (SLOW_UNALIGNED_ACCESS): Likewise.
3266 * lra-constraints.c (SLOW_UNALIGNED_ACCESS): Likewise.
3267 (simplify_operand_subreg): Don't check STRICT_ALIGNMENT here.
3269 2012-10-30 Jan Hubicka <jh@suse.cz>
3271 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Cleanup.
3273 2012-10-30 Jan Hubicka <jh@suse.cz>
3275 * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter
3276 EVERY_ITERATION with implicit value of true.
3277 (record_estimate): Check dominance relationship of the basic block
3278 we are estimating on instead of relying on UPPER to be false.
3279 (struct ilb_data): Drop RELIABLE.
3280 (idx_infer_loop_bounds): Update.
3281 (infer_loop_bounds_from_ref): Drop parameter RELIABLE.
3282 (infer_loop_bounds_from_array): Drop parameter RELIABLE.
3283 (infer_loop_bounds_from_undefined): Update comments and handling
3285 (estimate_numbers_of_iterations_loop): Record all bounds.
3287 2012-10-30 Richard Sandiford <r.sandiford@uk.ibm.com>
3289 * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg
3290 rather than gen_rtx_SUBREG.
3292 2012-10-30 Richard Biener <rguenther@suse.de>
3294 * gimple.h (gimple_store_p): New predicate.
3295 (gimple_assign_load_p): Likewise.
3296 * tree-inline.c (estimate_num_insns): Use it.
3298 2012-10-30 Marc Glisse <marc.glisse@inria.fr>
3300 * fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors.
3301 (fold_binary_loc): Call it for VEC_COND_EXPR.
3303 2012-10-30 James Greenhalgh <james.greenhalgh@arm.com>
3304 Tejas Belagod <tejas.belagod@arm.com>
3306 * config/aarch64/aarch64-simd.md
3307 (aarch64_simd_bsl<mode>_internal): New pattern.
3308 (aarch64_simd_bsl<mode>): Likewise.
3309 (aarch64_vcond_internal<mode>): Likewise.
3310 (vcondu<mode><mode>): Likewise.
3311 (vcond<mode><mode>): Likewise.
3312 * config/aarch64/iterators.md (UNSPEC_BSL): Add to define_constants.
3314 2012-10-30 Richard Biener <rguenther@suse.de>
3316 PR tree-optimization/55111
3317 * tree-ssa-pre.c (eliminate_insert): Properly fold the built stmt.
3319 2012-10-30 Oleg Endo <olegendo@gcc.gnu.org>
3322 * config/sh/iterators.md (SIDI): New mode iterator.
3323 * config/sh/sh.md (negdi2): Use parallel around operation and T_REG
3324 clobber in expander.
3325 (*negdi2): Mark output operand as early clobbered. Add T_REG clobber.
3326 Split after reload. Simplify split code.
3327 (abssi2, absdi2): Fold expanders into abs<mode>2.
3328 (*abssi2, *absdi2): Fold into *abs<mode>2 insn_and_split. Split insns
3330 (*negabssi2, *negabsdi2): Fold into *negabs<mode>2. Add T_REG clobber.
3331 Split insns before reload.
3332 (negsi_cond): Reformat. Use emit_move_insn instead of gen_movesi.
3333 (negdi_cond): Reformat. Use emit_move_insn instead of a pair
3334 of gen_movsi. Split insn before reload.
3336 2012-10-30 Oleg Endo <olegendo@gcc.gnu.org>
3339 * config/sh/sh.md (tstqi_t_zero): Rename to *tstqi_t_zero.
3340 (*tst<mode>_t_zero): New insns.
3341 * config/sh/iterators.md (lowpart_be, lowpart_le): New mode attributes.
3343 2012-10-30 H.J. Lu <hongjiu.lu@intel.com>
3345 * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca.
3347 2012-10-30 Jakub Jelinek <jakub@redhat.com>
3350 * valtrack.h (DEBUG_TEMP_AFTER_WITH_REG_FORCE): New.
3351 * valtrack.c (dead_debug_insert_temp): Use emit_debug_insn_after
3352 even for where == DEBUG_TEMP_AFTER_WITH_REG_FORCE.
3353 * dce.c (word_dce_process_block, dce_process_block): Pass
3354 DEBUG_TEMP_AFTER_WITH_REG_FORCE if insn is needed and therefore
3355 not going to be eliminated.
3357 2012-10-29 Lawrence Crowl <crowl@google.com>
3359 * sbitmap.h (sbitmap_copy): Rename bitmap_copy.
3360 (sbitmap_copy_n): Rename bitmap_copy_n.
3361 (sbitmap_equal): Rename bitmap_equal_p.
3362 (sbitmap_empty_p): Rename bitmap_empty_p.
3363 (sbitmap_range_empty_p): Rename bitmap_range_empty_p.
3364 (sbitmap_zero): Rename bitmap_clear.
3365 (sbitmap_ones): Rename bitmap_ones.
3366 (sbitmap_vector_zero): Rename bitmap_vector_clear.
3367 (sbitmap_vector_ones): Rename bitmap_vector_ones.
3368 (sbitmap_not): Rename bitmap_not.
3369 (sbitmap_a_and_b_cg): Commented out.
3370 (sbitmap_a_and_b): Rename bitmap_and. Add bool return.
3371 (sbitmap_difference): Rename bitmap_and_compl.
3372 (sbitmap_a_or_b_cg): Commented out.
3373 (sbitmap_a_or_b): Rename bitmap_xor. Add bool return.
3374 (sbitmap_a_xor_b_cg): Commented out.
3375 (sbitmap_a_xor_b): Rename bitmap_xor. Add bool return.
3376 (sbitmap_a_and_b_or_c_cg): Rename bitmap_and_or.
3377 (sbitmap_a_and_b_or_c): Commented out.
3378 (sbitmap_a_or_b_and_c_cg): Rename bitmap_or_and.
3379 (sbitmap_a_or_b_and_c): Commented out.
3380 (sbitmap_union_of_diff_cg): Rename bitmap_ior_and_compl.
3381 (sbitmap_union_of_diff): Commented out.
3382 (dump_sbitmap): Rename dump_bitmap.
3383 (dump_sbitmap_file): Rename dump_bitmap_file.
3384 (debug_sbitmap): Rename debug_bitmap.
3385 (dump_sbitmap_vector): Rename dump_bitmap_vector.
3386 (sbitmap_first_set_bit): Rename bitmap_first_set_bit.
3387 (sbitmap_last_set_bit): Rename bitmap_last_set_bit.
3388 (sbitmap_a_subset_b_p): Rename bitmap_subset_p.
3389 (sbitmap_any_common_bits): Rename bitmap_intersect_p.
3390 (#define sbitmap_free): Reimplement as inline function.
3391 (#define sbitmap_vector_free): Reimplement as inline function.
3392 * bitmap.h (#define bitmap_zero): Remove as redundant.
3393 (#define bitmap_empty_p): Reimplement as inline function.
3394 (#define dump_bitmap): Reimplement as inline function.
3396 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3399 * doc/invoke.texi (Warning Options): Document -Wno-return-local-addr.
3401 2012-10-29 H.J. Lu <hongjiu.lu@intel.com>
3403 * lra-assigns.c: Remove trailing white spaces.
3404 * lra-coalesce.c: Likewise.
3405 * lra-constraints.c: Likewise.
3406 * lra-eliminations.c: Likewise.
3407 * lra-int.h: Likewise.
3408 * lra-spills.c: Likewise.
3411 2012-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
3414 * tree.h (FUNCTION_POINTER_TYPE_P): New.
3416 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
3419 * valtrack.c (dead_debug_insert_temp): Defer rescan of
3420 newly-emitted debug insn.
3422 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
3425 * tree-ssa-threadedge.c (thread_around_empty_block): Copy
3426 debug temps from predecessor before threading.
3428 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
3432 * valtrack.c (dead_debug_global_find): Accept NULL dtemp.
3433 (dead_debug_global_insert): Return new entry.
3434 (dead_debug_global_replace_temp): Return early if REG is no
3435 longer in place, or if dtemp was already substituted.
3436 (dead_debug_promote_uses): Insert for all defs and replace all
3438 (dead_debug_local_finish): Release used after promotion.
3439 (dead_debug_insert_temp): Stop if dtemp is NULL.
3441 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
3444 * loop-unroll.c (loop_exit_at_end_p): Skip debug insns.
3446 2012-10-29 Alexandre Oliva <aoliva@redhat.com>
3449 * config/i386/i386.c (add_parameter_dependencies): Stop
3450 backward scan at the insn before the incoming head.
3451 (ix86_dependencies_evaluation_hook): Skip debug insns. Stop
3452 if first_arg is head.
3454 2012-10-29 Andrew Pinski <apinski@cavium.com>
3456 * config/aarch64/aarch64-protos.h (aarch64_load_tp): New proto.
3457 * config/aarch64/aarch64.c (aarch64_load_tp): Export.
3458 (aarch64_init_builtins): Don't add __builtin_thread_pointer builtin.
3459 * config/aarch64/aarch64.h (aarch64_builtins): Delete
3460 AARCH64_BUILTIN_THREAD_POINTER.
3461 * config/aarch64/aarch64.md (get_thread_pointerdi): New pattern.
3463 2012-10-29 Marc Glisse <marc.glisse@inria.fr>
3466 * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
3469 2012-10-29 Vladimir Makarov <vmakarov@redhat.com>
3471 * rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of XEXP.
3473 2012-10-29 Uros Bizjak <ubizjak@gmail.com>
3475 * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
3476 for all addresses, zero-extended with AND.
3478 2012-10-29 Vladimir Makarov <vmakarov@redhat.com>
3481 * rtlanal.c (strip_address_mutation): Add SUBREG case.
3483 2012-10-29 Jan Hubicka <jh@suse.cz>
3485 * ipa-inline.c (want_inline_function_called_once_p): Rename to ...
3486 (want_inline_function_to_all_callers_p): check also functions with
3488 (ipa_inline): Handle inlining for size into multiple callers.
3490 2012-10-29 Richard Guenther <rguenther@suse.de>
3493 * tracer.c (tracer): Fixup loop structure.
3494 * cfgloopmanip.c (force_single_succ_latches): Add assert.
3495 (fix_loop_structure): Re-compute loop latches and disambiguate
3496 loops with multiple latches if required.
3498 2012-10-29 Uros Bizjak <ubizjak@gmail.com>
3500 * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
3501 to check SImode equivalent of address, zero-extended with AND RTX.
3502 * config/i386/i386.md (ashift to lea splitter): Split to SImode mult.
3503 (simple lea to add/shift peephole2s): Remove peephole2s that operate
3504 on subregs of DImode operations.
3506 2012-10-28 Vladimir Makarov <vmakarov@redhat.com>
3508 PR rtl-optimization/55106
3509 * lra-constraints.c (skip_usage_debug_insns): New function.
3510 (check_secondary_memory_needed_p): Ditto.
3511 (inherit_reload_reg): Use the new functions. Improve debug output.
3513 2012-10-29 Jonathan Wakely <jwakely.gcc@gmail.com>
3515 * doc/cpp.texi (Search Path): Fix outdated C++ path.
3517 2012-10-28 Jan Hubicka <jh@suse.cz>
3519 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
3520 &this->field expressions.
3522 2012-10-28 Vladimir Makarov <vmakarov@redhat.com>
3524 * rtl.h (struct rtx_def): Add a comment for member unchanging.
3525 * lra-int.h (LRA_TEMP_CLOBBER_P): New macro.
3526 (lra_hard_reg_substitution): Rename to lra_final_code_change.
3527 * lra-constraints.c (match_reload): Mark temporary clobbers.
3528 * lra-spill.c (lra_hard_reg_substitution): Rename to
3529 lra_final_code_change. Remove temporary clobbers.
3530 * lra.c (lra): Rename to lra_final_code_change.
3532 2012-10-28 Jan Hubicka <jh@suse.cz>
3534 * ipa-inline.c (edge_badness): Fix overflow.
3535 (inline_small_functions): Initialize SCCs correctly.
3536 (do_estimate_edge_time, do_estimate_edge_hints): Skip self
3537 recursive functions in SCC hints.
3539 2012-10-28 Steven Bosscher <steven@gcc.gnu.org>
3541 PR rtl-optimization/38711
3542 * ira.c (ira): Remove DF_LIVE if the problem is in the stack.
3543 (do_reload): Add it back at the end for -O2 and higher.
3545 * function.c (thread_prologue_and_epilogue_insns): Use
3546 REG_SET_TO_HARD_REG_SET instead of CLEAR_HARD_REG_SET and
3547 reg_set_to_hard_reg_set.
3549 2012-10-28 Jan Hubicka <jh@suse.cz>
3551 * ipa-inline.c (edge_badness): Reduce precision; use scc hints.
3552 (inline_small_functions): Fix dumps; update all callees after inlining.
3553 * ipa-inline.h (INLINE_HINT_in_scc, INLINE_HINT_same_scc): New
3555 (inline summary): Add SCC_NO.
3556 * ipa-inline-analysis.c (dump_inline_hints): Dump SCC hints.
3557 (reset_inline_summary): Reset scc_no.
3558 (estimate_node_size_and_time): Set in_scc hint.
3559 (do_estimate_edge_time): Add same_scc hint.
3560 (do_estimate_edge_hints): Likewise.
3562 2012-10-28 Andreas Schwab <schwab@linux-m68k.org>
3564 * doc/cppopts.texi: Fix use of @item vs. @itemx inside @table.
3565 * doc/extend.texi: Likewise.
3566 * doc/generic.texi: Likewise.
3567 * doc/invoke.texi: Likewise.
3568 * doc/md.texi: Likewise.
3569 * doc/sourcebuild.texi: Likewise.
3571 * doc/tm.texi.in (Misc): Add newline before @end.
3572 * doc/tm.texi: Update.
3574 2012-10-27 Joern Rennecke <joern.rennecke@embecosm.com>
3576 * lra-assigns.c (find_hard_regno_for): Fix use of WORDS_BIG_ENDIAN.
3578 2012-10-27 Georg-Johann Lay <avr@gjlay.de>
3581 * config/avr/avr.c (avr_out_lpm): Remove unused regno_dest.
3583 2012-10-27 Oleg Endo <olegendo@gcc.gnu.org>
3586 * config/sh/sh.c (sh1_builtin_p): Comment out unused function.
3588 2012-10-27 Uros Bizjak <ubizjak@gmail.com>
3590 * config/i386/i386.md (*lea<mode>): Remove unneeded temporary.
3592 2012-10-26 David S. Miller <davem@davemloft.net>
3594 * config/sparc/constraints.md: Update unused letter list, move
3595 "w" near other memory constraints. Remove no longer relevant
3597 * doc/md.texi: Sync sparc constraint documentation with reality.
3599 2012-10-26 DJ Delorie <dj@redhat.com>
3601 * config/rl78/rl78.c (rl78_as_legitimate_address): Do not allow
3602 reg+addend addresses for the _far namespace.
3604 2012-10-26 Segher Boessenkool <segher@kernel.crashing.org>
3606 * config/rs6000/sync.md (ATOMIC): Correct DI condition.
3608 2012-10-26 Jakub Jelinek <jakub@redhat.com>
3611 * cfgexpand.c (expand_debug_expr): Expand &MEM_REF[&var, n]
3612 as DEBUG_IMPLICIT_PTR + n if &var expands to DEBUG_IMPLICIT_PTR.
3613 * tree-sra.c (create_access_replacement): Allow also MEM_REFs
3614 with ADDR_EXPR first operand in DECL_DEBUG_EXPR expressions.
3615 * var-tracking.c (track_expr_p): Handle MEM_REFs in DECL_DEBUG_EXPR
3617 * dwarf2out.c (add_var_loc_to_decl): Likewise.
3619 2012-10-26 Jeff Law <law@redhat.com>
3621 * tree-ssa-threadedge.c (cond_arg_set_in_bb): Use last stmt.
3623 2012-10-26 Gunther Nikl <gnikl@users.sourceforge.net>
3625 * common/config/m68k/m68k-common.c (m68k_handle_option): Set
3626 gcc_options fields of opts_set for -m68020-40 and -m68020-60.
3628 2012-10-26 Teresa Johnson <tejohnson@google.com>
3630 * ree.c (add_removable_extension): Remove unnecessary
3631 mode check with other extension.
3632 * testsuite/gcc.c-torture/execute/20111227-2.c: New test.
3633 * testsuite/gcc.c-torture/execute/20111227-3.c: Ditto.
3635 2012-10-26 Jan Hubicka <jh@suse.cz>
3637 * ipa-inline-transform.c (inline_call): Only account size changes
3640 2012-10-26 Martin Jambor <mjambor@suse.cz>
3643 * tree-sra.c (struct access): New flag grp_to_be_debug_replaced.
3644 (dump_access): Dump the new flag.
3645 (analyze_access_subtree): Set the new flag when appropriate.
3646 (create_access_replacement): Handle debug replacements differently.
3647 (generate_subtree_copies): Handle the grp_to_be_debug_replaced flag.
3648 (init_subtree_with_zero): Likewise.
3649 (sra_modify_expr): Likewise.
3650 (load_assign_lhs_subreplacements): Likewise.
3651 (sra_modify_assign): Likewise.
3653 2012-10-23 Yuri Rumyantsev <ysrumyan@gmail.com>
3655 * config/i386/i386.c (insn_is_function_arg) : Add check on CALL
3657 (ix86_dependencies_evaluation_hook): Insert dependencies in all
3658 predecessors of call block for non-trivial region avoiding creation
3659 of loop-carried dependency to avoid cross-block motion of HW registers.
3661 2012-10-26 Richard Biener <rguenther@suse.de>
3664 * tree-optimize.c (execute_fixup_cfg): Insert __builtin_unreachable
3665 at the end of blocks with no successors.
3667 2012-10-26 Alexander Ivchenko <alexander.ivchenko@intel.com>
3668 Uros Bizjak <ubizjak@gmail.com>
3670 * common/config/i386/i386-common.c
3671 (OPTION_MASK_ISA_FXSR_SET): New.
3672 (OPTION_MASK_ISA_XSAVE_SET): Likewise.
3673 (OPTION_MASK_ISA_XSAVEOPT_SET): Likewise.
3674 (ix86_handle_option): Handle mfxsr, mxsave, mxsaveopt options.
3675 * config.gcc (i[34567]86-*-*): Add fxsrintrin.h,
3676 xsaveintrin.h, xsaveoptintrin.h.
3677 (x86_64-*-*): Likewise.
3678 * config/i386/fxsrintrin.h: New header.
3679 * config/i386/xsaveintrin.h: Likewise.
3680 * config/i386/xsaveoptintrin.h: Likewise.
3681 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3682 FXSR/XSAVE/XSAVEOPT support.
3683 * config/i386/i386-builtin-types.def
3684 (VOID_FTYPE_PVOID_INT64): New function type.
3685 * config/i386/i386-c.c: Define __FXSR__, __XSAVE__
3686 and __XSAVEOPT__ if needed.
3687 * config/i386/i386.c (ix86_target_string): Define -mfxsr,
3688 -mxsave and -mxsaveopt options.
3690 (PTA_XSAVE): Likewise.
3691 (PTA_XSAVEOPT): Likewise.
3692 (ix86_option_override_internal): Handle new option.
3693 (processor_alias_table): Added PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT.
3694 (ix86_valid_target_attribute_inner_p): Add OPT_mfxsr,
3695 OPT_mxsave, OPT_mxsaveopt.
3696 (ix86_builtins): Add IX86_BUILTIN_FXSAVE, IX86_BUILTIN_FXRSTOR,
3697 IX86_BUILTIN_FXSAVE64, IX86_BUILTIN_XSAVE, IX86_BUILTIN_XSAVE64,
3698 IX86_BUILTIN_XRSTOR, IX86_BUILTIN_XRSTOR64, IX86_BUILTIN_XSAVEOPT,
3699 IX86_BUILTIN_XSAVEOPT64.
3700 (ix86_expand_builtin): Handle these built-ins.
3701 * config/i386/i386.h (TARGET_FXSR): New.
3702 (TARGET_XSAVE): Likewise.
3703 (TARGET_XSAVEOPT): Likewise.
3704 * config/i386/i386.md (ANY_XSAVE): New int iterator.
3705 (ANY_XSAVE64): Likewise.
3706 (xsave): New int attribute.
3707 (fxsave): New instruction.
3708 (fxsave64): Likewise.
3709 (fxrstor): Likewise.
3710 (fxrstor64): Likewise.
3711 (<xsave>): Likewise.
3712 (<xsave>_rex64): Likewise.
3714 (xrstor_rex64): Likewise.
3715 (xrstor64): Likewise.
3716 * config/i386/i386.opt (mfxsr): New.
3718 (mxsaveopt): Likewise.
3719 * config/i386/x86intrin.h: Include
3720 xsaveintrin.h, fxsrintrin.h, xsaveoptintrin.h.
3722 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
3724 * config/avr/t-rtems: Revert previous commit.
3726 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
3729 * Makefile.in (rtlanal.o): Add dependency on addresses.h.
3730 * rtl.h (address_info): New structure.
3731 (strip_address_mutations, decompose_address, decompose_lea_address)
3732 (decompose_mem_address, update_address, get_index_scale)
3733 (get_index_code): Declare.
3734 * rtlanal.c: Include addresses.h.
3735 (strip_address_mutations, must_be_base_p, must_be_index_p)
3736 (set_address_segment, set_address_base, set_address_index)
3737 (set_address_disp, decompose_incdec_address, decompose_automod_address)
3738 (extract_plus_operands, baseness, decompose_normal_address)
3739 (decompose_address, decompose_lea_address, decompose_mem_address)
3740 (update_address, get_index_scale, get_index_code): New functions.
3741 * lra-constraints.c (strip_subreg): New function.
3742 (address, extract_loc_address_regs, extract_address_regs)
3743 (get_index_scale): Delete.
3744 (process_addr_reg): Apply strip_subreg to the location.
3745 (uses_hard_regs_p): Use decompose_mem_address.
3746 (valid_address_p, base_plus_disp_to_reg, can_add_disp_p)
3747 (equiv_address_substitution): Take an address_info rather
3748 than an address. Remove other arguments. Avoid using Pmode.
3749 (process_address): Use decompose_mem_address and decompose_lea_address.
3750 Update calls to above functions.
3752 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
3754 * lra-constraints.c (process_address): Tighten arguments to
3755 base_reg_class. Use simplify_gen_binary to generate PLUS rtxes.
3757 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
3759 * lra-constraints.c (get_index_scale, can_add_disp_p): New functions.
3760 (equiv_address_substitution): Use them.
3762 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
3764 * lra-constraints.c (valid_address_p): New function, split out from...
3765 (process_address): ...here.
3767 2012-10-26 Richard Sandiford <rdsandiford@googlemail.com>
3769 * lra-constraints.c (process_address): Describe the kinds of address
3772 2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
3774 * lra-int.h (lra_assert): Redefine it gcc_checking_assert.
3775 * lra-constraints.c (check_and_process_move): Remove #if
3776 ENABLE_ASSERT_CHECKING.
3778 2012-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
3780 * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
3782 * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.
3784 2012-10-25 David S. Miller <davem@davemloft.net>
3786 * config/sparc/constraints.md ("U"): Delete.
3787 * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
3788 * config/sparc/sync.md: Likewise.
3790 2012-10-25 Lawrence Crowl <crowl@google.com>
3792 * hash-table.h: Add usage documentation.
3793 (template struct typed_free_remove): Clarify documentation.
3794 Rename template parameter.
3795 (struct typed_noop_remove): Likewise.
3796 (descriptor concept): Change typedef T to value_type.
3797 Add typedef compare_type. Use more precise template parameter name,
3798 Descriptor instead of Descr. Update users to match.
3799 (struct hash_table): Change 'find' parameters to use compare_type
3800 instead of the value type.
3802 2012-10-25 Jan Hubicka <jh@suse.cz>
3804 * ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned
3805 to direct call update the summary.
3806 * ipa-inline-transform.c (inline_call): Sanity check that summaries
3807 match the predicted effect; fix updating of summary after edge
3809 * ipa-inline-analysis.c (inline_node_duplication_hook): Do not try
3810 to update the summary and recompute it instead.
3811 (estimate_function_body_sizes): Fix self size estimation; double
3812 check that it agrees with inline_update_overall_summary.
3813 (estimate_edge_size_and_time): Handle devirtualizaiton costs.
3814 (estimate_edge_devirt_benefit): Update to be called from
3815 estimate_edge_size_and_time.
3816 (estimate_calls_size_and_time): Update.
3817 (estimate_node_size_and_time): Watch overflows.
3818 (inline_merge_summary): Likewise.
3819 * ipa-prob.c: Include ipa-inline.h
3820 (ipa_make_edge_direct_to_target): After redirection update the summary.
3822 2012-10-25 Cary Coutant <ccoutant@google.com>
3825 * dwarf2out.c (prune_unused_types_prune): Check whether DIE is
3826 already a declaration.
3828 2012-10-25 Vladimir Makarov <vmakarov@redhat.com>
3830 * lra-assigns.c (assign_by_spills): Add non-reload pseudos
3831 assigned to hard register to changed_pseudo_bitmap.
3833 2012-10-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3835 * config.gcc (microblaze*-*-rtems*): New target.
3836 * config/microblaze/rtems.h: New.
3837 * config/microblaze/t-rtems: New.
3839 2012-10-25 Jan Hubicka <jh@suse.cz>
3841 PR tree-optimize/54980
3842 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Fix obvious typo.
3843 (loop_edge_to_cancel): Be sure that the edge is from an conditional
3844 so we can cancel it.
3846 2012-10-25 Marc Glisse <marc.glisse@inria.fr>
3849 * tree.c (signed_or_unsigned_type_for): Handle vectors.
3851 2012-10-25 Jan Hubicka <jh@suse.cz>
3853 * ipa-inline.c (recursive_inlining): Redirect to master
3854 clone before testing profitability.
3856 2012-10-25 Richard Biener <rguenther@suse.de>
3858 PR tree-optimization/54902
3859 * tree-ssa-pre.c (fini_eliminate): Return TODO.
3861 (execute_fre): Likewise.
3862 * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
3863 blocks before computing dominators.
3865 2012-10-25 Richard Sandiford <rdsandiford@googlemail.com>
3867 * expr.c (emit_block_move_via_loop): Use simplify_gen_binary
3868 rather than gen_rtx_PLUS.
3870 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
3874 * ira.c (setup_reg_renumber): Fix assert.
3875 * ira-emit.c (emit_move_list): Update equivalences only for LRA.
3877 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
3880 * lra.c: Rename loc to sloc and loc_t to sloc_t.
3882 2012-10-24 Sharad Singhai <singhai@google.com>
3884 * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p
3885 instead of dump_kind_p.
3887 2012-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
3890 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc):
3891 Use diagnostic_append_note.
3892 * diagnostic.c (diagnostic_build_prefix): Make diagnostic const.
3893 (default_diagnostic_finalizer): Do not destroy prefix here.
3894 (diagnostic_report_diagnostic): Destroy it here.
3895 (diagnostic_append_note): New.
3896 * diagnostic.h (diagnostic_append_note): Declare.
3898 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
3900 PR rtl-optimization/55055
3901 * lra-spills.c (alter_subregs): New function.
3902 (lra_hard_reg_substitution): Use it.
3904 2012-10-24 Sharad Singhai <singhai@google.com>
3906 * dumpfile.c (dump_enabled_p): Make it inline and move the definition
3908 (dump_kind_p): Deleted. Functionality replaced by dump_enabled_p.
3909 Make alt_dump_file extern.
3910 * dumpfile.h (dump_enabled_p): Move inline definition here.
3911 (dump_kind_p): Delete declaration.
3912 Add extern declaration of alt_dump_file.
3913 * toplev.c: Move dump_file and dump_file_name to dumpfile.c.
3914 * tree-vect-loop-manip.c: Replace all uses of dump_kind_p with
3916 * tree-vectorizer.c: Likewise.
3917 * tree-vect-loop.c: Likewise.
3918 * tree-vect-data-refs.c: Likewise.
3919 * tree-vect-patterns.c: Likewise.
3920 * tree-vect-stmts.c: Likewise.
3921 * tree-vect-slp.c: Likewise.
3923 2012-10-24 Richard Sandiford <rdsandiford@googlemail.com>
3925 * expmed.c (lowpart_bit_field_p): Add missing == 0 check.
3927 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
3930 * lra-constraints.c (extract_loc_address_regs): Pass top_p for
3931 ZERO_EXTEND operand.
3933 2012-10-24 Vladimir Makarov <vmakarov@redhat.com>
3936 * lra-constraints.c (update_ebb_live_info): Skip
3937 non-NOTE_INSN_BASIC_BLOCK notes.
3939 2012-10-24 Jakub Jelinek <jakub@redhat.com>
3941 PR rtl-optimization/55010
3942 * cse.c (fold_rtx) <RTX_COMPARE>: Call copy_rtx on folded_arg{0,1}
3943 before passing it to simplify_relational_operation.
3946 * gimple.h (is_gimple_sizepos): New inline function.
3947 * gimplify.c (gimplify_one_sizepos): Use it. Remove useless
3948 final assignment to expr variable.
3949 * tree.c (RETURN_TRUE_IF_VAR): Return true also if
3950 !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
3951 into a local temporary.
3953 2012-10-23 David S. Miller <davem@davemloft.net>
3955 * config/sparc/constraints.md ("T", "W"): Change
3956 definitions to use define_memory_constraint. Do not match 'reg'.
3957 * config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM
3958 handling code, update comment.
3960 2012-10-23 Ian Lance Taylor <iant@google.com>
3962 * doc/extend.texi (Extended Asm): The '+' constraint does not
3965 2012-10-23 Jeff Law <law@redhat.com>
3967 * tree-ssa-threadedge.c (thread_across_edge): Remove unused
3968 parameter in call to cond_arg_set_in_bb.
3970 * tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused
3973 PR tree-optimization/54985
3974 * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted
3975 from thread_across_edge.
3976 (thread_across_edge): Use it in all cases where we might thread
3979 2012-10-23 Vladimir Makarov <vmakarov@redhat.com>
3981 * lra-constraints.c (update_ebb_live_info): Process empty blocks.
3983 2012-10-23 Richard Sandiford <rdsandiford@googlemail.com>
3985 * expmed.c (store_split_bit_field): Update the calls to
3986 extract_fixed_bit_field. In the big-endian case, always
3987 use the mode of OP0 to count the number of significant bits.
3988 (extract_bit_field_1): Remove unit, offset, bitpos and
3989 byte_offset from the outermost scope. Express conditions in terms
3990 of bitnum rather than offset, bitpos and byte_offset. Move the
3991 computation of MODE1 to the block that needs it. Use MODE unless
3992 the TMODE-based mode_for_size calculation succeeds. Split the
3993 plain move cases into two, one for memory accesses and one for
3994 register accesses. Generalize the memory case, freeing it from
3995 the old register-based endian checks. Move the INT_MODE calculation
3996 above the code that needs it. Use simplify_gen_subreg to handle
3997 multiword OP0s. If the field still spans several words, pass it
3998 directly to extract_split_bit_field. Assume after that point
3999 that both targets and register sources fit within a word.
4000 Replace x-prefixed variables with non-prefixed forms.
4001 Compute the bitpos for ext(z)v register operands directly in the
4002 chosen unit size, rather than going through an intermediate
4003 BITS_PER_WORD unit size. Simplify the containment check
4004 used when forcing OP0 into a register. Update the call to
4005 extract_fixed_bit_field.
4006 (extract_fixed_bit_field): Replace the bitpos and offset parameters
4007 with a single bitnum parameter, of the same form as extract_bit_field.
4008 Assume that OP0 contains the full field. Simplify the memory offset
4009 calculation and containment check for volatile bitfields. Make the
4010 offset explicit when volatile bitfields force a misaligned access.
4011 Remove WARNED and fix long lines. Assert that the processed OP0
4012 has an integral mode.
4013 (store_split_bit_field): Update the call to store_fixed_bit_field.
4015 2012-10-23 Richard Sandiford <rdsandiford@googlemail.com>
4017 * expmed.c (lowpart_bit_field_p): New function.
4018 (store_bit_field_1): Remove unit, offset, bitpos and byte_offset
4019 from the outermost scope. Express conditions in terms of bitnum
4020 rather than offset, bitpos and byte_offset. Split the plain move
4021 cases into two, one for memory accesses and one for register accesses.
4022 Allow simplify_gen_subreg to fail rather than calling validate_subreg.
4023 Move the handling of multiword OP0s after the code that coerces VALUE
4024 to an integer mode. Use simplify_gen_subreg for this case and assert
4025 that it succeeds. If the field still spans several words, pass it
4026 directly to store_split_bit_field. Assume after that point that
4027 both sources and register targets fit within a word. Replace
4028 x-prefixed variables with non-prefixed forms. Compute the bitpos
4029 for insv register operands directly in the chosen unit size, rather
4030 than going through an intermediate BITS_PER_WORD unit size.
4031 Update the call to store_fixed_bit_field.
4032 (store_fixed_bit_field): Replace the bitpos and offset parameters
4033 with a single bitnum parameter, of the same form as store_bit_field.
4034 Assume that OP0 contains the full field. Simplify the memory offset
4035 calculation. Assert that the processed OP0 has an integral mode.
4036 (store_split_bit_field): Update the call to store_fixed_bit_field.
4038 2012-10-23 Paul Koning <ni1d@arrl.net>
4041 * dwarf2out.c (prune_unused_types_prune): If pruning a class and
4042 not all its children were marked, add DW_AT_declaration flag.
4044 2012-10-23 Ian Bolton <ian.bolton@arm.com>
4045 James Greenhalgh <james.greenhalgh@arm.com>
4046 Jim MacArthur <jim.macarthur@arm.com>
4047 Marcus Shawcroft <marcus.shawcroft@arm.com>
4048 Nigel Stephens <nigel.stephens@arm.com>
4049 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4050 Richard Earnshaw <rearnsha@arm.com>
4051 Sofiane Naci <sofiane.naci@arm.com>
4052 Stephen Thomas <stephen.thomas@arm.com>
4053 Tejas Belagod <tejas.belagod@arm.com>
4054 Yufeng Zhang <yufeng.zhang@arm.com>
4056 * config.gcc: Add AArch64.
4057 * configure.ac: Add AArch64 TLS support detection.
4058 * configure: Regenerate.
4060 2012-10-23 Ian Bolton <ian.bolton@arm.com>
4061 James Greenhalgh <james.greenhalgh@arm.com>
4062 Jim MacArthur <jim.macarthur@arm.com>
4063 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4064 Marcus Shawcroft <marcus.shawcroft@arm.com>
4065 Nigel Stephens <nigel.stephens@arm.com>
4066 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4067 Richard Earnshaw <rearnsha@arm.com>
4068 Sofiane Naci <sofiane.naci@arm.com>
4069 Stephen Thomas <stephen.thomas@arm.com>
4070 Tejas Belagod <tejas.belagod@arm.com>
4071 Yufeng Zhang <yufeng.zhang@arm.com>
4073 * doc/invoke.texi (AArch64 Options): New.
4074 * doc/md.texi (Machine Constraints): Add AArch64.
4076 2012-10-23 Ian Bolton <ian.bolton@arm.com>
4077 James Greenhalgh <james.greenhalgh@arm.com>
4078 Jim MacArthur <jim.macarthur@arm.com>
4079 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4080 Marcus Shawcroft <marcus.shawcroft@arm.com>
4081 Nigel Stephens <nigel.stephens@arm.com>
4082 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4083 Richard Earnshaw <rearnsha@arm.com>
4084 Sofiane Naci <sofiane.naci@arm.com>
4085 Stephen Thomas <stephen.thomas@arm.com>
4086 Tejas Belagod <tejas.belagod@arm.com>
4087 Yufeng Zhang <yufeng.zhang@arm.com>
4089 * common/config/aarch64/aarch64-common.c: New file.
4090 * config/aarch64/aarch64-arches.def: New file.
4091 * config/aarch64/aarch64-builtins.c: New file.
4092 * config/aarch64/aarch64-cores.def: New file.
4093 * config/aarch64/aarch64-elf-raw.h: New file.
4094 * config/aarch64/aarch64-elf.h: New file.
4095 * config/aarch64/aarch64-generic.md: New file.
4096 * config/aarch64/aarch64-linux.h: New file.
4097 * config/aarch64/aarch64-modes.def: New file.
4098 * config/aarch64/aarch64-option-extensions.def: New file.
4099 * config/aarch64/aarch64-opts.h: New file.
4100 * config/aarch64/aarch64-protos.h: New file.
4101 * config/aarch64/aarch64-simd.md: New file.
4102 * config/aarch64/aarch64-tune.md: New file.
4103 * config/aarch64/aarch64.c: New file.
4104 * config/aarch64/aarch64.h: New file.
4105 * config/aarch64/aarch64.md: New file.
4106 * config/aarch64/aarch64.opt: New file.
4107 * config/aarch64/arm_neon.h: New file.
4108 * config/aarch64/constraints.md: New file.
4109 * config/aarch64/gentune.sh: New file.
4110 * config/aarch64/iterators.md: New file.
4111 * config/aarch64/large.md: New file.
4112 * config/aarch64/predicates.md: New file.
4113 * config/aarch64/small.md: New file.
4114 * config/aarch64/sync.md: New file.
4115 * config/aarch64/t-aarch64-linux: New file.
4116 * config/aarch64/t-aarch64: New file.
4118 2012-10-23 Michael Matz <matz@suse.de>
4120 * tree-ssa-operands.h (struct def_optype_d, def_optype_p): Remove.
4121 (ssa_operands.free_defs): Remove.
4122 (DEF_OP_PTR, DEF_OP): Remove.
4123 (struct ssa_operand_iterator_d): Remove 'defs', add 'flags' members,
4124 rename 'phi_stmt' to 'stmt', 'phi_i' to 'i' and 'num_phi' to 'numops'.
4125 * gimple.h (gimple_statement_with_ops.def_ops): Remove.
4126 (gimple_def_ops, gimple_set_def_ops): Remove.
4127 (gimple_vdef_op): Don't take const gimple, adjust.
4128 (gimple_asm_input_op, gimple_asm_input_op_ptr,
4129 gimple_asm_set_input_op, gimple_asm_output_op,
4130 gimple_asm_output_op_ptr, gimple_asm_set_output_op): Adjust asserts,
4131 and rewrite to move def operands to front.
4132 (gimple_asm_clobber_op, gimple_asm_set_clobber_op,
4133 gimple_asm_label_op, gimple_asm_set_label_op): Correct asserts.
4134 * tree-ssa-operands.c (build_defs): Remove.
4135 (init_ssa_operands): Don't initialize it.
4136 (fini_ssa_operands): Don't free it.
4137 (cleanup_build_arrays): Don't truncate it.
4138 (finalize_ssa_stmt_operands): Don't assert on it.
4139 (alloc_def, add_def_op, append_def): Remove.
4140 (finalize_ssa_defs): Remove building of def_ops list.
4141 (finalize_ssa_uses): Don't mark for SSA renaming here, ...
4142 (add_stmt_operand): ... but here, don't call append_def.
4143 (get_indirect_ref_operands): Remove recurse_on_base argument.
4144 (get_expr_operands): Adjust call to get_indirect_ref_operands.
4145 (verify_ssa_operands): Don't check def operands.
4146 (free_stmt_operands): Don't free def operands.
4147 * gimple.c (gimple_copy): Don't clear def operands.
4148 * tree-flow-inline.h (op_iter_next_use): Adjust to explicitely
4150 (op_iter_next_tree, op_iter_next_def): Ditto.
4151 (clear_and_done_ssa_iter): Clear new fields.
4152 (op_iter_init): Adjust to setup new iterator structure.
4153 (op_iter_init_phiuse): Adjust.
4155 2012-10-23 Greta Yorsh <Greta.Yorsh@arm.com>
4157 * config/arm/arm.c (offset_ok_for_ldrd_strd): Return false for Thumb1.
4159 2012-10-23 Vladimir Makarov <vmakarov@redhat.com>
4161 * dbxout.c (dbxout_symbol_location): Pass new argument to alter_subreg.
4162 * dwarf2out.c: Include ira.h and lra.h.
4163 (based_loc_descr, compute_frame_pointer_to_fb_displacement): Use
4164 lra_eliminate_regs for LRA instead of eliminate_regs.
4165 * expr.c (emit_move_insn_1): Pass an additional argument to
4166 emit_move_via_integer. Use emit_move_via_integer for LRA only if
4167 the insn is recognized.
4168 * emit-rtl.c (gen_rtx_REG): Add lra_in_progress.
4169 (validate_subreg): Don't check offset for LRA and floating point modes.
4170 * final.c (final_scan_insn, cleanup_subreg_operands): Pass new
4171 argument to alter_subreg.
4172 (walk_alter_subreg, output_operand): Ditto.
4173 (alter_subreg): Add new argument.
4174 * gcse.c (calculate_bb_reg_pressure): Add parameter to
4175 ira_setup_eliminable_regset call.
4176 * ira.c: Include lra.h.
4177 (ira_init_once, ira_init, ira_finish_once): Call lra_start_once,
4178 lra_init, lra_finish_once in anyway.
4179 (ira_setup_eliminable_regset): Add parameter. Remove need_fp.
4180 Call lra_init_elimination and mark HARD_FRAME_POINTER_REGNUM as
4181 living forever if frame_pointer_needed.
4182 (setup_reg_class_relations): Set up ira_reg_class_subset.
4183 (ira_reg_equiv_invariant_p, ira_reg_equiv_const): Remove.
4184 (find_reg_equiv_invariant_const): Ditto.
4185 (setup_reg_renumber): Use ira_equiv_no_lvalue_p instead of
4186 ira_reg_equiv_invariant_p. Skip caps for LRA.
4187 (setup_reg_equiv_init, ira_update_equiv_info_by_shuffle_insn): New
4189 (ira_reg_equiv_len, ira_reg_equiv): New externals.
4190 (ira_reg_equiv): New.
4191 (ira_expand_reg_equiv, init_reg_equiv, finish_reg_equiv): New
4193 (no_equiv, update_equiv_regs): Use ira_reg_equiv instead of
4195 (setup_reg_equiv): New function.
4196 (ira_use_lra_p): New global.
4197 (ira): Set up lra_simple_p and ira_conflicts_p. Set up and
4198 restore flag_caller_saves and flag_ira_region. Move
4199 initialization of ira_obstack and ira_bitmap_obstack upper. Call
4200 init_reg_equiv, setup_reg_equiv, and setup_reg_equiv_init instead
4201 of initialization of ira_reg_equiv_len, ira_reg_equiv_invariant_p,
4202 and ira_reg_equiv_const. Call ira_setup_eliminable_regset with a
4203 new argument. Don't flatten IRA IRA for LRA. Don't reassign
4204 conflict allocnos for LRA. Call finish_reg_equiv.
4205 (do_reload): Prepare code for LRA call. Call LRA.
4206 * ira.h (ira_use_lra_p): New external.
4207 (struct target_ira): Add members x_ira_class_subset_p
4208 x_ira_reg_class_subset, and x_ira_reg_classes_intersect_p.
4209 (ira_class_subset_p, ira_reg_class_subset): New macros.
4210 (ira_reg_classes_intersect_p): New macro.
4211 (struct ira_reg_equiv): New.
4212 (ira_setup_eliminable_regset): Add an argument.
4213 (ira_expand_reg_equiv, ira_update_equiv_info_by_shuffle_insn): New
4215 * ira-color.c (color_pass, move_spill_restore, coalesce_allocnos):
4216 Use ira_equiv_no_lvalue_p.
4217 (coalesce_spill_slots, ira_sort_regnos_for_alter_reg): Ditto.
4218 * ira-emit.c (ira_create_new_reg): Call ira_expand_reg_equiv.
4219 (generate_edge_moves, change_loop) Use ira_equiv_no_lvalue_p.
4220 (emit_move_list): Simplify code. Call
4221 ira_update_equiv_info_by_shuffle_insn. Use ira_reg_equiv instead
4222 of ira_reg_equiv_invariant_p and ira_reg_equiv_const. Change assert.
4223 * ira-int.h (struct target_ira_int): Remove x_ira_class_subset_p
4224 and x_ira_reg_classes_intersect_p.
4225 (ira_class_subset_p, ira_reg_classes_intersect_p): Remove.
4226 (ira_reg_equiv_len, ira_reg_equiv_invariant_p): Ditto.
4227 (ira_reg_equiv_const): Ditto.
4228 (ira_equiv_no_lvalue_p): New function.
4229 * jump.c (true_regnum): Always use hard_regno for subreg_get_info
4230 when lra is in progress.
4231 * haifa-sched.c (sched_init): Pass new argument to
4232 ira_setup_eliminable_regset.
4233 * loop-invariant.c (calculate_loop_reg_pressure): Pass new
4234 argument to ira_setup_eliminable_regset.
4238 * lra-assigns.c: Ditto.
4239 * lra-constraints.c: Ditto.
4240 * lra-coalesce.c: Ditto.
4241 * lra-eliminations.c: Ditto.
4242 * lra-lives.c: Ditto.
4243 * lra-spills.c: Ditto.
4244 * Makefile.in (LRA_INT_H): New.
4245 (OBJS): Add lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o,
4246 lra-eliminations.o, lra-lives.o, and lra-spills.o.
4247 (dwarf2out.o): Add dependence on ira.h and lra.h.
4248 (ira.o): Add dependence on lra.h.
4249 (lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o): New entries.
4250 (lra-eliminations.o, lra-lives.o, lra-spills.o): Ditto.
4251 * output.h (alter_subreg): Add new argument.
4252 * rtlanal.c (simplify_subreg_regno): Permit mode changes for LRA.
4253 Permit ARG_POINTER_REGNUM and STACK_POINTER_REGNUM for LRA.
4254 * recog.c (general_operand, register_operand): Accept paradoxical
4255 FLOAT_MODE subregs for LRA.
4256 (scratch_operand): Accept pseudos for LRA.
4257 * rtl.h (lra_in_progress): New external.
4258 (debug_bb_n_slim, debug_bb_slim, print_value_slim): New prototypes.
4259 (debug_rtl_slim, debug_insn_slim): Ditto.
4260 * sdbout.c (sdbout_symbol): Pass new argument to alter_subreg.
4261 * sched-vis.c (print_value_slim): New.
4262 * target.def (lra_p): New hook.
4263 (register_priority): Ditto.
4264 (different_addr_displacement_p): Ditto.
4265 (spill_class): Ditto.
4266 * target-globals.h (this_target_lra_int): New external.
4267 (target_globals): New member lra_int.
4268 (restore_target_globals): Restore this_target_lra_int.
4269 * target-globals.c: Include lra-int.h.
4270 (default_target_globals): Add &default_target_lra_int.
4271 * targhooks.c (default_lra_p): New function.
4272 (default_register_priority): Ditto.
4273 (default_different_addr_displacement_p): Ditto.
4274 * targhooks.h (default_lra_p): Declare.
4275 (default_register_priority): Ditto.
4276 (default_different_addr_displacement_p): Ditto.
4277 * timevar.def (TV_LRA, TV_LRA_ELIMINATE, TV_LRA_INHERITANCE): New.
4278 (TV_LRA_CREATE_LIVE_RANGES, TV_LRA_ASSIGN, TV_LRA_COALESCE): New.
4279 * config/arm/arm.c (load_multiple_sequence): Pass new argument to
4281 (store_multiple_sequence): Ditto.
4282 * config/i386/i386.h (enum ix86_tune_indices): Add
4283 X86_TUNE_GENERAL_REGS_SSE_SPILL.
4284 (TARGET_GENERAL_REGS_SSE_SPILL): New macro.
4285 * config/i386/i386.c (initial_ix86_tune_features): Set up
4286 X86_TUNE_GENERAL_REGS_SSE_SPILL for m_COREI7 and m_CORE2I7.
4287 (ix86_lra_p, ix86_register_priority): New functions.
4288 (ix86_secondary_reload): Add NON_Q_REGS, SIREG, DIREG.
4289 (inline_secondary_memory_needed): Change assert.
4290 (ix86_spill_class): New function.
4291 (TARGET_LRA_P, TARGET_REGISTER_BANK, TARGET_SPILL_CLASS): New macros.
4292 * config/m68k/m68k.c (emit_move_sequence): Pass new argument to
4294 * config/m32r/m32r.c (gen_split_move_double): Ditto.
4295 * config/pa/pa.c (pa_emit_move_sequence): Ditto.
4296 * config/sh/sh.md: Ditto.
4297 * config/v850/v850.c (v850_reorg): Ditto.
4298 * config/xtensa/xtensa.c (fixup_subreg_mem): Ditto.
4299 * doc/md.texi: Add new interpretation of hint * for LRA.
4300 * doc/passes.texi: Describe LRA pass.
4301 * doc/tm.texi.in: Add TARGET_LRA_P, TARGET_REGISTER_PRIORITY,
4302 TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, and TARGET_SPILL_CLASS.
4303 * doc/tm.texi: Update.
4305 2012-10-23 Jan Hubicka <jh@suse.cz>
4307 * loop-unroll.c (decide_peel_simple): Simple peeling makes sense even
4308 with simple loops; bound number of branches only when FDO is not
4310 (decide_unroll_stupid): Mention that num_loop_branches heuristics
4313 2012-10-23 Nick Clifton <nickc@redhat.com>
4316 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress
4317 compile time warning about pointer printing.
4319 2012-10-23 Joseph Myers <joseph@codesourcery.com>
4321 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
4322 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Use
4323 glibc-c.o in c_target_objs and cxx_target_objs. Use t-glibc in
4324 tmake_file. Set target_has_targetcm.
4325 (tilegx-*-linux*, tilepro-*-linux*): Append to c_target_objs and
4326 cxx_target_objs rather than overriding previous value.
4327 * config/glibc-c.c, config/t-glibc: New.
4328 * doc/tm.texi.in (TARGET_C_PREINCLUDE): New @hook.
4329 * doc/tm.texi: Regenerate.
4330 * hooks.c (hook_constcharptr_void_null): New.
4331 * hooks.h (hook_constcharptr_void_null): Declare.
4333 2012-10-23 Eric Botcazou <ebotcazou@adacore.com>
4335 * config/mips/linux-common.h (STACK_CHECK_STATIC_BUILTIN): Define.
4336 (STACK_CHECK_PROTECT): Likewise.
4337 * config/mips/mips.h (MIPS_PROLOGUE_TEMP2_REGNUM): Likewise.
4338 (MIPS_PROLOGUE_TEMP2): Likewise.
4339 * config/mips/mips-protos.h (mips_output_probe_stack_range): Declare.
4340 * config/mips/mips.c: Include common/common-target.h.
4341 (mips_emit_probe_stack_range): New function.
4342 (mips_output_probe_stack_range): Likewise.
4343 (mips_expand_prologue): Invoke mips_emit_probe_stack_range if static
4344 builtin stack checking is enabled.
4345 * config/mips/mips.md (UNSPEC_PROBE_STACK_RANGE): New constant.
4346 (probe_stack_range_<P:mode>): New insn.
4348 2012-10-23 Marc Glisse <marc.glisse@inria.fr>
4350 * tree-ssa-forwprop.c (forward_propagate_into_cond): Handle vectors.
4351 * fold-const.c (fold_relational_const): Handle VECTOR_CST.
4352 * doc/generic.texi (VEC_COND_EXPR): Document current policy.
4354 2012-10-23 Jan Hubicka <jh@suse.cz>
4357 * tree-ssa-loop-niter.c (record_estimate): Do not try to lower
4358 the bound of non-is_exit statements.
4359 (maybe_lower_iteration_bound): Do it here.
4360 (estimate_numbers_of_iterations_loop): Call it.
4362 2012-10-23 Jan Hubicka <jh@suse.cz>
4365 * cfgloopmanip.c (fix_bb_placements): Add loop_closed_ssa_invalidated;
4366 track basic blocks that moved out of their loops.
4368 (remove_path): Update.
4369 (fix_loop_placements): Update.
4370 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add
4371 loop_closed_ssa_invalidated parameter; pass it around.
4372 (canonicalize_loop_induction_variables): Update loop closed
4374 (tree_unroll_loops_completely): Likewise; do irred update out of
4375 the outer loop; verify that SSA form is closed.
4376 * cfgloop.h (unrloop): Update.
4378 2012-10-23 Terry Guo <terry.guo@arm.com>
4381 * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with
4384 2012-10-23 Hans-Peter Nilsson <hp@bitrange.com>
4388 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
4389 expand_builtin_setjmp_receiver.
4390 (expand_label): Adjust, call expand_builtin_setjmp_receiver
4391 with NULL for the label parameter.
4392 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
4393 the frame-pointer. Adjust comments.
4394 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
4395 only if LABEL is non-NULL.
4397 2012-10-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4399 PR tree-optimization/55008
4400 * gimple-ssa-strength-reduction.c (find_basis_for_candidate):
4401 Don't allow a candidate to be a basis for itself under another
4404 2012-10-22 Sharad Singhai <singhai@google.com>
4406 * dumpfile.c (dump_phase_enabled_p): Renamed dump_enabled_p. Update
4408 (dump_enabled_p): A new function to check if any of the dump files
4410 (dump_kind_p): Remove check for current_function_decl. Add check for
4411 dumpfile and alt_dump_file.
4412 * dumpfile.h: Add declaration of dump_enabled_p.
4414 2012-10-22 Richard Biener <rguenther@suse.de>
4417 * tree-streamer-in.c (unpack_ts_int_cst_value_fields): Remove
4420 2012-10-22 Uros Bizjak <ubizjak@gmail.com>
4422 * config/i386/i386.c (memory_address_length): Assert that non-null
4423 base or index RTXes are registers. Do not check for REG RTXes.
4424 Determine addr32 prefix using SImode_address_operand or
4425 from original base and index RTXes. Simplify code.
4427 2012-10-22 Richard Biener <rguenther@suse.de>
4429 PR tree-optimization/55011
4430 * tree-vrp.c (update_value_range): For invalid lattice transitions
4433 2012-10-22 Julian Brown <julian@codesourcery.com>
4435 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
4436 VFP D registers in big-endian mode.
4438 2012-10-22 Georg-Johann Lay <avr@gjlay.de>
4440 * doc/invoke.texi (AVR Options): Document __AVR_ARCH__.
4441 Note __AVR_<device>__ is not defined for cores.
4442 Don't point to --help=target.
4444 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
4445 Greta Yorsh <Greta.Yorsh@arm.com>
4447 * config/arm/arm.c (thumb2_emit_ldrd_pop): New function.
4448 (arm_expand_epilogue): Use the new function.
4450 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
4451 Greta Yorsh <Greta.Yorsh@arm.com>
4453 * config/arm/arm.c (thumb2_emit_strd_push): New function.
4454 (arm_expand_prologue): Use the new function.
4456 2012-10-22 Sameera Deshpande <sameera.deshpande@arm.com>
4457 Greta Yorsh <Greta.Yorsh@arm.com>
4459 * config/arm/arm-protos.h (offset_ok_for_ldrd_strd): New declaration.
4460 (operands_ok_ldrd_strd): Likewise.
4461 * config/arm/arm.c (offset_ok_for_ldrd_strd): New function.
4462 (operands_ok_ldrd_strd): Likewise.
4463 * config/arm/arm.md (thumb2_ldrd, thumb2_ldrd_base): New patterns.
4464 (thumb2_ldrd_base_neg): Likewise.
4465 (thumb2_strd, thumb2_strd_base, thumb_strd_base_neg): Likewise.
4466 * predicates.md (ldrd_strd_offset_operand): New predicate.
4467 * config/arm/constraints.md (Do): New constraint.
4469 2012-10-22 Hans-Peter Nilsson <hp@bitrange.com>
4471 * config/mmix/mmix.md ("nonlocal_goto_receiver"): Refer to the
4472 frame-pointer as an operand.
4473 ("*nonlocal_goto_receiver_expanded"): Ditto. Use
4474 mmix_output_register_setting instead of naked output_asm_insn for
4475 the offset from the frame-pointer to the saved rO.
4476 * config/mmix/mmix.c (mmix_output_register_setting): Emit NEGU for
4478 * config/mmix/predicates.md ("frame_pointer_operand"): New.
4479 * config/mmix/constraints.md ("Yf"): New.
4481 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
4482 expand_builtin_setjmp_receiver.
4483 (expand_label): Adjust, call expand_builtin_setjmp_receiver
4484 with NULL for the label parameter.
4485 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
4486 the frame-pointer. Adjust comments.
4487 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
4488 only if LABEL is non-NULL.
4490 2012-10-21 Uros Bizjak <ubizjak@gmail.com>
4492 * config/i386/i386-protos.h (memory_address_length): Add new bool
4493 argument. Update all uses.
4494 * config/i386/i386.c (memory_address_length): If not LEA insn, then
4495 add length of addr32 prefix based on mode of base or index register.
4496 (ix86_attr_length_address_default) <TYPE_LEA>: Do not handle SImode
4497 addresses here. Update call to memory_address_length.
4498 (ix86_print_address_operand): Use SImode_address_operand predicate.
4499 * config/i386/predicates.md (SImode_address_operand): New.
4500 * config/i386/i386.md (lea<mode>): Use SImode_address_operand
4501 to calculate "mode" attribute. Use SImode_address_operand predicate
4502 instead of open-coding accepted RTX codes.
4504 2012-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
4506 * rtl.def (ADDR_DIFF_VEC): Fix comment typo.
4508 2012-10-21 Eric Botcazou <ebotcazou@adacore.com>
4510 PR rtl-optimization/44194
4511 * calls.c (expand_call): Allow sibling calls in the PARALLEL case.
4513 2012-10-21 Tobias Burnus <burnus@net-b.de>
4516 * Makefile.in (TARGET_SYSTEM_ROOT_DEFINE): New.
4518 2012-10-21 Chung-Lin Tang <cltang@codesourcery.com>
4520 * config/xtensa/xtensa.c (xtensa_expand_builtin): Remove unused 'arg'
4523 2012-10-20 Eric Botcazou <ebotcazou@adacore.com>
4525 PR rtl-optimization/54315
4526 * calls.c (expand_call): Don't deal specifically with BLKmode values
4527 returned in naked registers.
4528 * expr.h (copy_blkmode_from_reg): Adjust prototype.
4529 * expr.c (copy_blkmode_from_reg): Rename first parameter into
4530 TARGET and make it required. Assert that SRCREG hasn't BLKmode.
4531 Add a couple of short-circuits for common cases and be prepared
4532 for sub-word registers.
4533 (expand_assignment): Call copy_blkmode_from_reg for BLKmode values
4534 returned in naked registers.
4535 (store_expr): Likewise.
4536 (store_field): Likewise.
4538 2012-10-20 Jan Hubicka <jh@suse.cz>
4540 * loop-unroll.c (decide_unroll_constant_iterations): Don't
4541 perform unrolling for loops with low iterations bounds or estimates.
4543 2012-10-20 Jan Hubicka <jh@suse.cz>
4545 * loop-iv.c (iv_number_of_iterations): Record the upper bound
4546 only if there are no further conditions on it.
4548 2012-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
4552 * opts.c (finish_options): Remove explicit handling from here.
4554 2012-10-20 Joern Rennecke <joern.rennecke@embecosm.com>
4555 Richard Sandiford <rdsandiford@googlemail.com>
4557 * emit-rtl.c (copy_delay_slot_insn): New function.
4558 * emit-rtl.h (copy_delay_slot_insn): Declare.
4559 * reorg.c: Include "emit-rtl.h".
4560 (steal_delay_list_from_target): Use copy_delay_slot_insn.
4561 (fill_slots_from_thread, fill_simple_delay_slots): Likewise.
4563 * final.c (shorten_branches): When optimizing, start with small
4564 length and increase from there, and don't decrease lengths.
4566 2012-10-19 Jan Hubicka <jh@suse.cz>
4568 * builtins.def (BUILT_IN_UNREACHABLE): Make
4569 ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST.
4570 * builtin-attrs.def (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
4572 2012-10-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4573 Dominique Dhumieres <dominiq@lps.ens.fr>
4575 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume
4576 OPTION_MASK_STRICT_ALIGN is defined.
4577 (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined,
4578 define this to 0 for the 3 ports that use it.
4580 * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do
4581 check for ports not having -mstrict-align here, move test to
4583 (MASK_STRICT_ALIGN): Likewise.
4584 (rs6000_debug_reg_global): Print out correct target flag words if
4587 2012-10-19 Marek Polacek <polacek@redhat.com>
4590 * fold-const.c (fold_sign_changed_comparison): Punt if folding
4591 pointer/non-pointer comparison.
4593 2012-10-19 Greta Yorsh <Greta.Yorsh@arm.com>
4595 * doc/sourcebuild.texi (Effective-Target Keywords): Document
4596 new effective target keyword arm_prefer_ldrd_strd.
4598 2012-10-19 Richard Guenther <rguenther@suse.de>
4600 PR tree-optimization/54981
4601 * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p):
4602 Do not consider debug stmts as uses.
4604 2012-10-19 Richard Biener <rguenther@suse.de>
4606 PR tree-optimization/54976
4607 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
4608 Robustify against odd inner_mode inputs.
4610 2012-10-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4613 * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make
4614 sure the mode is correct when falling through from above cases.
4616 2012-10-19 Bin Cheng <bin.cheng@arm.com>
4618 * common.opt (flag_ira_hoist_pressure): New.
4619 * doc/invoke.texi (-fira-hoist-pressure): Describe.
4620 * ira-costs.c (ira_set_pseudo_classes): New parameter.
4621 * ira.h: Update copyright dates.
4622 (ira_set_pseudo_classes): Update prototype.
4623 * haifa-sched.c (sched_init): Update call.
4624 * ira.c (ira): Update call.
4625 * regmove.c: Update copyright dates.
4626 (regmove_optimize): Update call.
4627 * loop-invariant.c: Update copyright dates.
4628 (move_loop_invariants): Update call.
4629 * gcse.c: (struct bb_data): New structure.
4630 (BB_DATA): New macro.
4631 (curr_bb, curr_reg_pressure): New static variables.
4632 (should_hoist_expr_to_dom): Rename from hoist_expr_reaches_here_p.
4633 Change parameter expr_index to expr.
4634 New parameters pressure_class, nregs and hoisted_bbs.
4635 Use reg pressure to determine the distance expr can be hoisted.
4636 (hoist_code): Use reg pressure to direct the hoist process.
4637 (get_regno_pressure_class, get_pressure_class_and_nregs)
4638 (change_pressure, calculate_bb_reg_pressure): New.
4639 (one_code_hoisting_pass): Calculate register pressure. Allocate
4642 2012-10-19 Bin Cheng <bin.cheng@arm.com>
4644 * gcse.c: Update copyright dates.
4645 (hoist_expr_reaches_here_p): Change parameter type from char *
4648 2012-10-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
4651 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
4652 "arm*-*-rtemseabi*" to "arm*-*-rtems*".
4654 2012-10-19 Alan Modra <amodra@gmail.com>
4656 * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
4657 (HAVE_LD_LARGE_TOC): Likewise.
4658 * configure: Regenerate.
4660 2012-10-19 Alan Modra <amodra@gmail.com>
4662 * config/rs6000/predicates.md (splat_input_operand): Don't call
4663 input_operand for MEMs. Instead check for volatile and call
4664 memory_address_addr_space_p with modified mode.
4666 2012-10-18 Uros Bizjak <ubizjak@gmail.com>
4668 * config/i386/i386.md (rdpmc): Remove expander.
4671 (rdpmc): Rename from *rdpmc.
4672 (rdpmc_rex64): Rename from *rdpmc_rex64.
4673 (rdtsc): Rename from *rdtsc.
4674 (rdtsc_rex64): Rename from *rdtsc_rex64.
4675 (rdtscp): Rename from *rdtscp.
4676 (rdtscp_rex64): Rename from *rdtscp_rex64.
4678 * config/i386/i386.c (struct builtin_description bdesc_special_args)
4679 <IX86_BUILTIN_RDTSC>: Use CODE_FOR_NOTHING.
4680 <IX86_BUILTIN_RDTSCP>: Ditto.
4681 (struct builtin_description bdesc__args) <IX86_BUILTIN_RDPMC>: Ditto.
4682 (ix86_expand_builtin) <IX86_BUILTIN_{RDPMC,RDTSC,RDTSCP}>: Handle here.
4684 2012-10-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4686 * config/sh/sh.c: Fix comment to silence warning.
4688 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4689 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4690 Sameera Deshpande <sameera.deshpande@arm.com>
4692 * config/arm/cortex-a15-neon.md: New file.
4693 * config/arm/cortex-a15.md (cortex_a15_call): Adjust reservation.
4694 (cortex_a15_load1): Likewise.
4695 (cortex_a15_load3): Likewise.
4696 (cortex_a15_store1): Likewise.
4697 (cortex_a15_store3): Likewise.
4698 (cortex-a15-neon.md): Include.
4700 2012-10-18 Segher Boessenkool <segher@kernel.crashing.org>
4702 * config/rs6000/altivec.md (altivec_lvsl, altivec_lvsr): Add mode.
4703 (altivec_vsumsws_nomode): Delete.
4704 (reduc_splus_<mode>, reduc_uplus_<mode>): Call gen_altivec_vsumsws
4705 instead of gen_altivec_vsumsws_nomode.
4706 (altivec_lvlx, altivec_lvlxl, altivec_lvrx, altivec_lvrxl): Add mode.
4707 * config/rs6000/rs6000.md (probe_stack): Rename to...
4708 (probe_stack_<mode>): ... this. Add mode. Change pattern to
4709 use std instead of stw when appropriate.
4710 (probe_stack): New expander.
4711 (move_from_CR_ov_bit): Add mode.
4712 (splitter for compare_plus_ne0_<mode>, splitter for
4713 compare_plus_ne0_<mode>_1): Remove constraints.
4714 * config/rs6000/sync.md (loadsync): Rename to...
4715 (loadsync_<mode>): ... this. Add mode.
4716 (atomic_load<mode>): Adjust.
4718 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4720 * loop-invariant.c: Include target.h.
4721 (check_dependency): Return false for an uninitialized argument register
4722 that is likely to be spilled.
4723 * Makefile.in (loop-invariant.o): Add $(TARGET_H).
4725 2012-10-18 Eric Botcazou <ebotcazou@adacore.com>
4727 * except.c (sjlj_emit_function_enter): Remove unused variable.
4729 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4730 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4732 * config/arm/arm.c (neon_builtin_data): Add vfma and vfms builtins.
4733 * config/arm/neon-docgen.ml (intrinsic_groups): Add
4734 fused-multiply-* groups.
4735 * config/neon-gen.ml (print_feature_test_start): New function.
4736 (print_feature_test_end): Likewise.
4737 (print_variant): Print feature test macros.
4738 * config/arm/neon-testgen.ml (emit_prologue): Allow different
4739 tests to require different effective targets.
4740 (effective_target): New function.
4741 (test_intrinsic): Specify correct effective targets.
4742 * config/arm/neon.md (fma<VCVTF:mode>4_intrinsic): New pattern.
4743 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
4744 (neon_vfma<VCVFT:mode>): New expand.
4745 (neon_vfms<VCVFT:mode>): Likewise.
4746 * config/neon.ml (opcode): Add Vfma and Vfms.
4747 (features): Add Requires_feature.
4748 (ops): Add VFMA and VFMS intrinsics.
4749 * config/arm/arm_neon.h: Regenerate.
4750 * doc/arm-neon-intrinsics.texi: Likewise.
4752 2012-10-18 Richard Guenther <rguenther@suse.de>
4754 * lto-streamer.h (enum LTO_tags): Add LTO_integer_cst.
4755 * lto-streamer-in.c (lto_input_tree): Use it.
4756 * lto-streamer-out.c (lto_output_tree): Likewise, for
4757 !TREE_OVERFLOW integer constants only.
4758 * tree-streamer-in.c (unpack_ts_int_cst_value_fields): New function.
4759 (unpack_value_fields): Call it.
4760 (streamer_read_integer_cst): Simplify.
4761 * tree-streamer-out.c (pack_ts_int_cst_value_fields): New function.
4762 (streamer_pack_tree_bitfields): Call it.
4763 (streamer_write_integer_cst): Adjust.
4765 2012-10-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4766 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4768 * config.gcc: Add support for ARMv8 for arm*-*-* targets.
4769 * config/arm/arm-arches.def: Add armv8-a
4770 * config/arm/arm-fpus.def: Add fp-armv8, neon-fp-armv8,
4771 crypto-neon-fp-armv8. Add crypto field.
4772 * config/arm/arm-tables.opt: Regenerate.
4773 * config/arm/arm.c (FL_FOR_ARCH8A): Likewise.
4774 (arm_arch8): New global variable.
4775 (ARM_FPU): Add crypto parameter.
4776 (arm_option_override): Set arm_arch8, update comments.
4777 * config/arm/arm.h (TARGET_CRYPTO): New macro.
4778 (arm_fpu_desc): Add crypto field.
4779 (base_architecture): Add ARMv8 entry.
4780 (arm_arch8): New variable declaration.
4781 * config/arm/bpabi.h: ARMv8 supports BE8.
4782 * doc/invoke.texi: Document ARMv8 options.
4784 2012-10-17 Aldy Hernandez <aldyh@redhat.com>
4787 * trans-mem.c (diagnose_tm_1_op): Allow volatiles inside relaxed
4790 2012-10-17 Aldy Hernandez <aldyh@redhat.com>
4792 PR rtl-optimization/54900
4793 * ifcvt.c (noce_can_store_speculate_p): Call
4794 memory_must_be_modified_in_insn_p.
4795 * alias.c (memory_must_be_modified_in_insn_p): New.
4796 (set_dest_equal_p): New.
4797 * rtl.h (memory_must_be_modified_in_p): Protoize.
4799 2012-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4801 * config/rs6000/rs6000.opt (rs6000_isa_flags): New flag word to
4802 replace target_flags that gives us 63 possible switches.
4803 (x_rs6000_isa_flags): Save area for rs6000_isa_flags.
4804 (x_rs6000_isa_flags_explicit): Save area for rs6000_isa_flags_explicit.
4805 (rs6000_target_flags_explicit): Delete in favor of
4806 x_rs6000_isa_flags_explicit.
4807 (-mpowerpc64): Change all switches that used to be in target_flags
4808 to now be in rs6000_isa_flags. In using rs6000_isa_flags, the
4809 options machinary will generate names of the form OPITON_<xxx>
4810 instead of TARGET_<xxx> and OPTION_MASK_<xxx> instead of MASK_<xxx>.
4811 (-mpowerpc-gpopt): Likewise.
4812 (-mpowerpc-gfxopt): Likewise.
4813 (-mmfcrf): Likewise.
4814 (-mpopcntb): Likewise.
4815 (-mfprnd): Likewise.
4817 (-mmfpgpr): Likewise.
4818 (-maltivec): Likewise.
4819 (-mhard-dfp): Likewise.
4820 (-mmulhw): Likewise.
4821 (-mdlmzb): Likewise.
4822 (-mmultiple): Likewise.
4823 (-mstring): Likewise.
4824 (-msoft-float): Likewise.
4825 (-mhard-float): Likewise.
4826 (-mpopcntd): Likewise.
4828 (-mno-update): Likewise.
4829 (-mupdate): Likewise.
4830 (-mrecip-precision): Likewise.
4831 (-mminimal-toc): Likewise.
4833 * config/rs6000/aix64.opt (-maix64): Likewise.
4834 (-maix32): Likewise.
4835 * config/rs6000/sysv4.opt (-mstrict-align): Likewise.
4836 (-mrelocatable): Likewise.
4837 (-mlittle-endian): Likewise.
4838 (-mlittle): Likewise.
4839 (-mbig-endian): LIkewise.
4844 * config/rs6000/darwin.opt (-m64): Likewise.
4847 * config/rs6000/rs6000-cpus.def (ISA_2_1_MASKS): Move the various
4848 masks used in rs6000.c here, since they are more logically in this
4849 file. Convert from being enums to just #defines, since the types
4850 of these masks is now HOST_WIDE_INT instead of int. For
4851 POWERPC_MASKS, add MASK_SOFT_FLOAT, since the only use case or'ed
4852 in the mask. Change the use in rs6000.c not to do the OR of
4854 (ISA_2_1_MASKS): Likewise.
4855 (ISA_2_2_MASKS): Likewise.
4856 (ISA_2_4_MASKS): Likewise.
4857 (ISA_2_5_MASKS_EMBEDDED): Likewise.
4858 (ISA_2_5_MASKS_SERVER): Likewise.
4859 (POWERPC_7400_MASK): Likewise.
4860 (POWERPC_MASKS): Likewise.
4861 * config/rs6000/rs6000.c (ISA_2_1_MASKS): Likewise.
4862 (ISA_2_1_MASKS): Likewise.
4863 (ISA_2_2_MASKS): Likewise.
4864 (ISA_2_4_MASKS): Likewise.
4865 (ISA_2_5_MASKS_EMBEDDED): Likewise.
4866 (ISA_2_5_MASKS_SERVER): Likewise.
4867 (POWERPC_7400_MASK): Likewise.
4868 (POWERPC_MASKS): Likewise.
4869 (rs6000_option_override_internal): Likewise.
4871 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Change
4872 all uses of target_flags to rs6000_isa_flags. Change all uses of
4873 target_flags_explicit to rs6000_isa_flags_explicit. Change the
4874 use of MASK_<xxx> to OPTION_MASK_<xxx> that options.h defines when
4875 we use a secondary flags word. Save/restore/print the new flags
4876 word when switching contexts with different target attributes.
4877 (rs6000_option_override_internal): Likewise.
4878 (rs6000_darwin_file_start): Likewise.
4879 (rs6000_opt_masks): Likewise.
4880 (rs6000_inner_target_options): Likewise.
4881 (rs6000_pragma_target_parse): Likewise.
4882 (rs6000_set_current_function): Likewise.
4883 (rs6000_function_specific_save): Likewise.
4884 (rs6000_function_specific_restore): Likewise.
4885 (rs6000_function_specific_print): Likewise.
4886 (rs6000_can_inline_p): Likewise.
4887 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
4888 (rs6000_cpu_cpp_builtins): Likewise.
4889 * common/config/rs6000/rs6000-driver.c (rs6000_handle_option):
4892 * config/rs6000/rs6000.h (MASK_ALTIVEC): In moving to using
4893 Var(...) for all of the isa switches, the options machinery now
4894 uses OPTION_MASK_<xxx> instead of MASK_<xxx> for the mask name.
4895 Use #define to map the old name into the new name. For switches
4896 that are defined in aix64.opt, sysv4.opt, and darwin.opt, only do
4897 the definition if those switches were defined.
4898 (MASK_ALTIVEC): Likewise.
4899 (MASK_CMPB): Likewise.
4900 (MASK_DFP): Likewise.
4901 (MASK_DLMZB): Likewise.
4902 (MASK_EABI): Likewise.
4903 (MASK_FPRND): Likewise.
4904 (MASK_HARD_FLOAT): Likewise.
4905 (MASK_ISEL): Likewise.
4906 (MASK_MFCRF): Likewise.
4907 (MASK_MFPGPR): Likewise.
4908 (MASK_MULHW): Likewise.
4909 (MASK_MULTIPLE): Likewise.
4910 (MASK_NO_UPDATE): Likewise.
4911 (MASK_POPCNTB): Likewise.
4912 (MASK_POPCNTD): Likewise.
4913 (MASK_PPC_GFXOPT): Likewise.
4914 (MASK_PPC_GPOPT): Likewise.
4915 (MASK_RECIP_PRECISION): Likewise.
4916 (MASK_SOFT_FLOAT): Likewise.
4917 (MASK_STRICT_ALIGN): Likewise.
4918 (MASK_STRING): Likewise.
4919 (MASK_UPDATE): Likewise.
4920 (MASK_VSX): Likewise.
4921 (MASK_POWERPC64): Likewise.
4922 (MASK_64BIT): Likewise.
4923 (MASK_RELOCATABLE): Likewise.
4924 (MASK_LITTLE_ENDIAN): Likewise.
4925 (MASK_MINIMAL_TOC): Likewise.
4926 (MASK_REGNAMES): Likewise.
4927 (MASK_PROTOTYPE): Likewise.
4928 (rs6000_isa_flags_explicit): Define in terms of the
4929 global_options_set structure.
4931 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS):
4932 Change use of target_flags to rs6000_isa_flags, target_flags_explicit
4933 to rs6000_isa_flags_explicit, and MASK_<xxx> to OPTION_MASK_<xxx>.
4934 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4935 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4936 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4937 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4938 * config/rs6000/freebsd64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
4939 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4940 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
4941 * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
4942 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4943 (OPTION_LITTLE_ENDIAN): Likewise.
4944 (OPTION_RELOCATABLE): Likewise.
4945 (OPTION_EABI): Likewise.
4946 (OPTION_PROTOTYPE): Likewise.
4947 * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
4948 * config/rs6000/option-defaults.h (OPTION_MASK_64BIT): Likewise.
4949 (OPT_ARCH32): Likewise.
4950 (OPT_ARCH64): Likewise.
4951 * config/rs6000/sysv4.h (TARGET_TOC): Likewise.
4952 (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4953 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
4954 (TARGET_OS_SYSV_CPP_BUILTINS): Likewise.
4956 * config/rs6000/t-rs6000 (rs6000.o): Add rs6000-cpus.def as a
4959 2012-10-17 Jan Hubicka <jh@suse.cz>
4961 * cfgloopmanip.c (copy_loop_info): New function.
4962 (duplicate_loop): Use it.
4963 (loop_version): Use it.
4964 * loop-unswitch.c (unswitch_loop): Use it.
4965 * cfgloop.h (copy_loop_info): Declare.
4967 2012-10-17 Jan Hubicka <jh@suse.cz>
4969 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add edge_to_cancel
4970 parameter and use it to estimate code optimized out in the final
4972 (loop_edge_to_cancel): New function.
4973 (try_unroll_loop_completely): New IRRED_IVALIDATED parameter;
4974 handle unrolling loops with bounds given via max_loop_iteratins;
4975 handle unrolling non-inner loops when code size shrinks;
4976 tidy dump output; when the last iteration loop still stays
4977 as loop in the CFG forcongly redirect the latch to
4978 __builtin_unreachable.
4979 (canonicalize_loop_induction_variables): Add irred_invlaidated
4980 parameter; record niter bound derrived; dump
4981 max_loop_iterations bounds; call try_unroll_loop_completely
4982 even if no niter bound is given.
4983 (canonicalize_induction_variables): Handle irred_invalidated.
4984 (tree_unroll_loops_completely): Handle non-innermost loops;
4985 handle irred_invalidated.
4986 * cfgloop.h (unlop): Declare.
4987 * cfgloopmanip.c (unloop): Export.
4988 * tree.c (build_common_builtin_nodes): Build BULTIN_UNREACHABLE.
4990 2012-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
4992 * opth-gen.awk (TARGET_* generation): Always generate TARGET_<xxx>
4993 for Mask options, whether they use Var(...) or not.
4995 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): Use
4996 TARGET_<xxx> instead of OPTION_<xxx>.
4997 * config/i386/i386.h (TARGET_64BIT): Likewise.
4998 (TARGET_MMX): Likewise.
4999 (TARGET_3DNOW): Likewise.
5000 (TARGET_3DNOW_A): Likewise.
5001 (TARGET_SSE): Likewise.
5002 (TARGET_SSE2): Likewise.
5003 (TARGET_SSE3): Likewise.
5004 (TARGET_SSSE3): Likewise.
5005 (TARGET_SSE4_1): Likewise.
5006 (TARGET_SSE4_2): Likewise.
5007 (TARGET_AVX): Likewise.
5008 (TARGET_AVX2): Likewise.
5009 (TARGET_FMA): Likewise.
5010 (TARGET_SSE4A): Likewise.
5011 (TARGET_FMA4): Likewise.
5012 (TARGET_XOP): Likewise.
5013 (TARGET_LWP): Likewise.
5014 (TARGET_ROUND): Likewise.
5015 (TARGET_ABM): Likewise.
5016 (TARGET_BMI): Likewise.
5017 (TARGET_BMI2): Likewise.
5018 (TARGET_LZCNT): Likewise.
5019 (TARGET_TBM): Likewise.
5020 (TARGET_POPCNT): Likewise.
5021 (TARGET_SAHF): Likewise.
5022 (TARGET_MOVBE): Likewise.
5023 (TARGET_CRC32): Likewise.
5024 (TARGET_AES): Likewise.
5025 (TARGET_PCLMUL): Likewise.
5026 (TARGET_CMPXCHG16B): Likewise.
5027 (TARGET_FSGSBASE): Likewise.
5028 (TARGET_RDRND): Likewise.
5029 (TARGET_F16C): Likewise.
5030 (TARGET_RTM): Likewise.
5031 (TARGET_HLE): Likewise.
5032 (TARGET_RDSEED): Likewise.
5033 (TARGET_PRFCHW): Likewise.
5034 (TARGET_ADX): Likewise.
5035 (TARGET_64BIT): Likewise.
5036 (TARGET_MMX): Likewise.
5037 (TARGET_3DNOW): Likewise.
5038 (TARGET_3DNOW_A): Likewise.
5039 (TARGET_SSE): Likewise.
5040 (TARGET_SSE2): Likewise.
5041 (TARGET_SSE3): Likewise.
5042 (TARGET_SSSE3): Likewise.
5043 (TARGET_SSE4_1): Likewise.
5044 (TARGET_SSE4_2): Likewise.
5045 (TARGET_AVX): Likewise.
5046 (TARGET_AVX2): Likewise.
5047 (TARGET_FMA): Likewise.
5048 (TARGET_SSE4A): Likewise.
5049 (TARGET_FMA4): Likewise.
5050 (TARGET_XOP): Likewise.
5051 (TARGET_LWP): Likewise.
5052 (TARGET_ROUND): Likewise.
5053 (TARGET_ABM): Likewise.
5054 (TARGET_BMI): Likewise.
5055 (TARGET_BMI2): Likewise.
5056 (TARGET_LZCNT): Likewise.
5057 (TARGET_TBM): Likewise.
5058 (TARGET_POPCNT): Likewise.
5059 (TARGET_SAHF): Likewise.
5060 (TARGET_MOVBE): Likewise.
5061 (TARGET_CRC32): Likewise.
5062 (TARGET_AES): Likewise.
5063 (TARGET_PCLMUL): Likewise.
5064 (TARGET_CMPXCHG16B): Likewise.
5065 (TARGET_FSGSBASE): Likewise.
5066 (TARGET_RDRND): Likewise.
5067 (TARGET_F16C): Likewise.
5068 (TARGET_RTM): Likewise.
5069 (TARGET_HLE): Likewise.
5070 (TARGET_RDSEED): Likewise.
5071 (TARGET_PRFCHW): Likewise.
5072 (TARGET_ADX): Likewise.
5073 (TARGET_LP64): Likewise.
5074 (TARGET_X32): Likewise.
5075 (TARGET_ISA_ROUND): Likewise.
5076 * config/i386/darwin.h (TARGET_64BIT): Likewise.
5078 * doc/options.texi (Mask): Update documentation to specify only
5079 TARGET_<xxx> is generated.
5081 2012-10-17 Greta Yorsh <Greta.Yorsh@arm.com>
5083 * config/arm/arm.md (UNSPEC_PROLOGUE_USE): Rename this...
5084 (UNSPEC_REGISTER_USE): ... to this.
5085 (prologue_use): Rename this...
5086 (force_register_use): ... to this and update output assembly.
5087 (epilogue) Rename gen_prologue_use to gen_force_register_use.
5088 * config/arm/arm.c (arm_expand_prologue): Likewise.
5089 (thumb1_expand_epilogue): Likewise.
5090 (arm_expand_epilogue): Likewise.
5091 (arm_expand_epilogue): Likewise.
5093 2012-10-17 Georg-Johann Lay <avr@gjlay.de>
5095 * config/avr/avr-arch.h (avr_extra_arch_macro): Remove prototype.
5096 * config/avr/avr.c (avr_extra_arch_macro): Remove variable.
5097 (avr_option_override): Remove setting of avr_extra_arch_macro.
5098 * config/avr/avr-c.c (avr_extra_arch_macro): Replace with
5099 avr_current_device->macro.
5101 2012-10-17 Richard Biener <rguenther@suse.de>
5103 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
5104 Do not write TREE_CHAIN of PARM_DECLs.
5105 (write_ts_decl_non_common_tree_pointers): Instead stream
5106 the DECL_ARGUMENTS chain.
5107 * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5108 Do not read TREE_CHAIN of PARM_DECLs.
5109 (lto_input_ts_decl_non_common_tree_pointes): Instead read
5110 the DECL_ARGUMENTS as chain.
5112 2012-10-17 Steven Bosscher <steven@gcc.gnu.org>
5114 * config/iq2000/iq2000.h (call_used_regs): Remove definition.
5116 2012-10-16 Eric Botcazou <ebotcazou@adacore.com>
5118 PR rtl-optimization/54870
5119 * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME.
5120 * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the
5121 SSA_NAME pointer that points to a partition if there is at least
5122 one variable with it set in the partition.
5123 * dse.c (local_variable_can_escape): New predicate.
5124 (can_escape): Call it.
5125 * gimplify.c (mark_addressable): If this is a partitioned decl, also
5126 mark the SSA_NAME pointer that points to a partition.
5128 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
5130 * df-problems.c (df_kill_notes): Split up in two functions.
5131 (df_remove_dead_and_unused_notes): New function, first half of
5132 df_kill notes to remove all REG_DEAD and REG_UNUSED notes.
5133 (df_remove_dead_eq_notes): New function, second half of df_kill_notes
5134 to remove REG_EQUAL and REG_EQUIV notes referring to dead registers.
5135 (df_note_bb_compute): Call df_remove_dead_and_unused_notes instead
5136 of df_kill_notes. Call df_remove_dead_eq_notes after processing insn.
5138 * web.c (web): Re-add DF_RD_PRUNE_DEAD_DEFS;
5140 2012-10-16 Ian Lance Taylor <iant@google.com>
5142 * doc/extend.texi (Return Address): Change
5143 __builtin_extract_return_address to
5144 __builtin_extract_return_addr.
5146 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
5148 * rtl.h (get_call_rtx_from): New prototype.
5149 * rtlanal.c (get_call_rtx_from): New function.
5150 * calls.c (emit_call_1): Use it.
5151 * dse.c (scan_insn): Likewise
5152 * dwarf2out.c (dwarf2out_var_location): Likewise.
5153 * sched-deps.c (call_may_noreturn_p): Likewise.
5154 * var-tracking.c (prepare_call_arguments): Likewise.
5155 * config/sh/sh.c (sh_adjust_cost): Likewise.
5157 2012-10-16 Tom de Vries <tom@codesourcery.com>
5159 * expr.c (move_by_pieces, move_by_pieces_ninsns, can_store_by_pieces)
5160 (store_by_pieces_1): Don't enter loop when no more data is left.
5162 2012-10-16 Joern Rennecke <joern.rennecke@embecosm.com>
5164 * loop-doloop.c (doloop_modify): Pass doloop_end pattern to
5166 (doloop_optimize): Pass flag to indicate if loop is entered at top
5168 * config/arm/thumb2.md (doloop_end): Accept extra operand.
5169 * config/bfin/bfin.md (doloop_end): Likewise.
5170 * config/c6x/c6x.md (doloop_end): Likewise.
5171 * config/ia64/ia64.md (doloop_end): Likewise.
5172 * config/mep/mep.md (doloop_begin, doloop_end): Likewise.
5173 * config/rs6000/rs6000.md (doloop_end): Likewise.
5174 * config/s390/s390.md (doloop_end): Likewise.
5175 * config/sh/sh.md (doloop_end): Likewise.
5176 * config/spu/spu.md (doloop_end): Likewise.
5177 * config/tilegx/tilegx.md (doloop_end): Likewise.
5178 * config/tilepro/tilepro.md (doloop_end): Likewise.
5179 * doc/md.texi (doloop_end): Document new operand.
5180 * basic-block.h (contains_no_active_insn_p): Declare.
5181 * cfgrtl.c (contains_no_active_insn_p): New function, factored
5183 (forwarder_block_p): ... here.
5185 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5189 * doc/options.texi (EnabledBy): Document new form.
5190 * optc-gen.awk: Handle new form of EnabledBy.
5191 * common.opt (Wunused-but-set-parameter): Use EnabledBy.
5192 (Wunused-parameter): Likewise.
5193 * opts.c (finish_options): Do not handle them explicitly.
5194 * opt-functions.awk (search_var_name): New.
5196 2012-10-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5200 * optc-gen.awk: Handle new form of LangEnabledBy.
5201 * opts.c (set_Wstrict_aliasing): Declare here. Make static.
5202 * common.opt (Wstrict-aliasing=,Wstrict-overflow=): Do not use Init.
5203 * doc/options.texi (LangEnabledBy): Document new form.
5204 * flags.h (set_Wstrict_aliasing): Do not declare.
5206 2012-10-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5208 * reload.c (find_reloads_subreg_address): Remove FORCE_REPLACE
5209 parameter. Always replace normal subreg with memory reference
5210 whenever possible. Return NULL otherwise.
5211 (find_reloads_toplev): Always call find_reloads_subreg_address
5212 for subregs of registers equivalent to a memory location.
5213 Only recurse further if find_reloads_subreg_address fails.
5214 (find_reloads_address_1): Only call find_reloads_subreg_address
5215 for subregs of registers equivalent to a memory location.
5216 Properly handle failure of find_reloads_subreg_address.
5218 2012-10-16 Jakub Jelinek <jakub@redhat.com>
5221 * rtl.h: Document jump flag on VALUE.
5222 * cselib.h (cselib_set_value_sp_based,
5223 cselib_sp_based_value_p): New prototypes.
5224 * alias.c (find_base_term): For cselib_sp_based_value_p
5225 return static_reg_base_value[STACK_POINTER_REGNUM].
5226 * cselib.c (SP_BASED_VALUE_P): Define.
5227 (cselib_set_value_sp_based, cselib_sp_based_value_p): New functions.
5228 * var-tracking.c (add_stores): Call cselib_set_value_sp_based
5229 for not yet preserved VALUEs of sp on sp assignments if
5230 hard_frame_pointer_adjustment != -1.
5231 (vt_initialize): When setting hard_frame_pointer_adjustment,
5232 disassociate sp from its previous value and call
5233 cselib_set_value_sp_based on a new VALUE created for sp.
5235 PR tree-optimization/54889
5236 * tree-vect-stmts.c (vectorizable_load): Add VIEW_CONVERT_EXPR if
5237 ARRAY_REF newref doesn't have compatible type with vectype element
5238 type, use vectype element type for MEM_REF.
5240 2012-10-16 Steven Bosscher <steven@gcc.gnu.org>
5242 * combine.c (record_dead_and_set_regs): Iterate over hard register set
5243 with a hard_reg_set_iterator.
5244 * cse.c (invalidate_for_call): Likewise.
5245 * gcse.c (compute_hash_table_work): Likewise.
5246 * loop-iv.c (simplify_using_initial_values): Likewise.
5247 * postreload-gcse.c (record_opr_changes): Likewise.
5248 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
5249 * var-tracking.c (dataflow_set_clear_at_call): Likewise.
5251 2012-10-15 Easwaran Raman <eraman@google.com>
5253 * optabs.c (emit_cmp_and_jump_insn_1): Add a new parameter to
5254 specificy the probability of taking the jump.
5255 (emit_cmp_and_jump_insns): Likewise.
5256 (expand_compare_and_swap_loop): Make the jump predicted not taken.
5257 * dojump.c (do_compare_rtx_and_jump): Remove the code attaching
5258 REG_BR_PROB note and pass probability to emit_cmp_and_jump_insns.
5259 * cfgbuild.c (compute_outgoing_frequencies): Do not guess outgoing
5260 probabilities for branches with more than two successors.
5261 * expr.c (emit_block_move_via_loop): Predict the loop backedge loop
5263 (try_casesi): Pass the probability of jumping to the default label.
5264 (try_tablejump): Likewise.
5265 (do_tablejump): Likewise.
5266 * expr.h (try_tablejump): Add a new parameter.
5267 (try_casesi): Likewise.
5268 (emit_cmp_and_jump_insns): Add probability as default parameter with a
5269 default value of -1.
5270 * except.c (sjlj_emit_function_enter): Pass probability to
5271 emit_cmp_and_jump_insns.
5272 * stmt.c (case_node): Add new fields PROB and SUBTREE_PROB.
5273 (do_jump_if_equal): Pass probability for REG_BR_PROB note.
5274 (add_case_node): Pass estimated probability of jumping to the case
5276 (emit_case_decision_tree): Pass default_prob to emit_case_nodes.
5277 (get_outgoing_edge_probs): New function.
5278 (conditional_probability): Likewise.
5279 (reset_out_edges_aux): Likewise.
5280 (compute_cases_per_edge): Likewise.
5281 (emit_case_dispatch_table): Update probabilities of edges coming out
5282 of the switch statement.
5283 (expand_case): Compute and propagate default edge probability to
5284 emit_case_dispatch_table.
5285 (expand_sjlj_dispatch_table): Update calls to add_case_node and
5286 emit_case_dispatch_table.
5287 (balance_case_nodes): Update subtree_prob values.
5288 (emit_case_nodes): Compute edge probabilities and add pass them to
5289 emit_cmp_and_jump_insns.
5291 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
5294 * config/sh/sh-protos.h (set_of_reg): New struct.
5295 (sh_find_set_of_reg, sh_is_logical_t_store_expr,
5296 sh_try_omit_signzero_extend): Declare...
5297 * config/sh/sh.c (sh_find_set_of_reg, sh_is_logical_t_store_expr,
5298 sh_try_omit_signzero_extend): ...these new functions.
5299 * config/sh/sh.md (*logical_op_t): New insn_and_split.
5300 (*zero_extend<mode>si2_compact): Use sh_try_omit_signzero_extend
5302 (*extend<mode>si2_compact_reg): Convert to insn_and_split.
5303 Use sh_try_omit_signzero_extend in splitter.
5304 (*mov<mode>_reg_reg): Disallow t_reg_operand as operand 1.
5305 (*cbranch_t): Rewrite combine part in splitter using new
5306 sh_find_set_of_reg function.
5308 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
5311 * config/sh/sh.c (sh_find_base_reg_disp): Stop searching insns when
5312 hitting a call insn if GBR is marked as call used.
5313 * config/sh/iterators.md (QIHISIDI): New mode iterator.
5314 * config/sh/predicates.md (gbr_address_mem): New predicate.
5315 * config/sh/sh.md (*movdi_gbr_load, *movdi_gbr_store): New
5316 insn_and_split. Use QIHISIDI instead of QIHISI in unnamed GBR
5319 2012-10-15 Oleg Endo <olegendo@gcc.gnu.org>
5321 * config/sh/sh.c: Update function attribute comments.
5322 * doc/extend.texi (function_vector): Rephrase SH2A specific part.
5323 (nosave_low_regs, renesas, trapa_handler): Document SH specific
5325 (sp_switch, trap_exit): Add to index.
5327 2012-10-15 Matthias Klose <doko@ubuntu.com>
5329 * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
5330 * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi.
5332 2012-10-15 Uros Bizjak <ubizjak@gmail.com>
5334 * config/i386/sse.md (UNSPEC_MOVU): Remove.
5335 (UNSPEC_LOADU): New.
5336 (UNSPEC_STOREU): Ditto.
5337 (<sse>_movu<ssemodesuffix><avxsizesuffix>): Split to ...
5338 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): ... this and ...
5339 (<sse>_storeu<ssemodesuffix><avxsizesuffix>) ... this.
5340 (<sse2>_movdqu<avxsizesuffix>): Split to ...
5341 (<sse2>_loaddqu<avxsizesuffix>): ... this and ...
5342 (<sse2>_storedqu<avxsizesuffix>): ... this.
5343 (*sse4_2_pcmpestr_unaligned): Update.
5344 (*sse4_2_pcmpistr_unaligned): Ditto.
5346 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use
5347 gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and
5348 gen_avx_store{dqu,ups,upd}256 to store to unaligned memory.
5349 (ix86_expand_vector_move_misalign): Use gen_sse_loadups or
5350 gen_sse2_load{dqu,upd} to load from unaligned memory and
5351 gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to
5353 (struct builtin_description bdesc_spec) <IX86_BUILTIN_LOADUPS>:
5354 Use CODE_FOR_sse_loadups.
5355 <IX86_BUILTIN_LOADUPD>: Use CODE_FOR_sse2_loadupd.
5356 <IX86_BUILTIN_LOADDQU>: Use CODE_FOR_sse2_loaddqu.
5357 <IX86_BUILTIN_STOREUPS>: Use CODE_FOR_sse_storeups.
5358 <IX86_BUILTIN_STOREUPD>: Use CODE_FOR_sse2_storeupd.
5359 <IX86_BUILTIN_STOREDQU>: Use CODE_FOR_sse2_storedqu.
5360 <IX86_BUILTIN_LOADUPS256>: Use CODE_FOR_avx_loadups256.
5361 <IX86_BUILTIN_LOADUPD256>: Use CODE_FOR_avx_loadupd256.
5362 <IX86_BUILTIN_LOADDQU256>: Use CODE_FOR_avx_loaddqu256.
5363 <IX86_BUILTIN_STOREUPS256>: Use CODE_FOR_avx_storeups256.
5364 <IX86_BUILTIN_STOREUPD256>: Use CODE_FOR_avx_storeupd256.
5365 <IX86_BUILTIN_STOREDQU256>: Use CODE_FOR_avx_storedqu256.
5367 2012-10-15 Dodji Seketeli <dodji@redhat.com>
5369 * alias.c: Cleanup comments.
5371 2012-10-15 Marc Glisse <marc.glisse@inria.fr>
5373 PR tree-optimization/54915
5374 * tree-ssa-forwprop.c (simplify_vector_constructor): Check
5377 2012-10-15 Richard Biener <rguenther@suse.de>
5379 * data-streamer.h (bp_pack_string_with_length): New function.
5380 (bp_pack_string): Likewise.
5381 (bp_unpack_indexed_string): Likewise.
5382 (bp_unpack_string): Likewise.
5383 * data-streamer-out.c (bp_pack_string_with_length): Likewise.
5384 (bp_pack_string): Likewise.
5385 * data-streamer-in.c (bp_unpack_indexed_string): Likewise.
5386 (bp_unpack_string): Likewise.
5387 * tree-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
5388 Pack TRANSLATION_UNIT_LANGUAGE here, not ...
5389 (write_ts_translation_unit_decl_tree_pointers): ... here. Remove.
5390 (streamer_pack_tree_bitfields): Adjust.
5391 (streamer_write_tree_body): Likewise.
5392 * tree-streamer-in.c (unpack_ts_translation_unit_decl_value_fields):
5393 Unpack TRANSLATION_UNIT_LANGUAGE here, not ...
5394 (lto_input_ts_translation_unit_decl_tree_pointers): ... here. Remove.
5395 (unpack_value_fields): Adjust.
5396 (streamer_read_tree_body): Likewise.
5398 2012-10-15 J"orn Rennecke <joern.rennecke@arc.com>
5400 * genoutput.c (process_template): Process '*' in '@' alternatives.
5401 * doc/md.texi (node Output Statement): Provide example for the above.
5403 2012-10-15 Richard Guenther <rguenther@suse.de>
5405 PR tree-optimization/54920
5406 * tree-ssa-pre.c (create_expression_by_pieces): Properly
5407 allocate temporary storage for all NARY elements.
5409 2012-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
5411 * web.c (union_match_dups): Properly handle OP_INOUT match_dups.
5413 2012-10-15 Eric Botcazou <ebotcazou@adacore.com>
5415 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Do not unnecessarily
5416 copy the object in the MEM_P case.
5418 2012-10-15 Richard Guenther <rguenther@suse.de>
5420 * tree-streamer-out.c (streamer_pack_tree_bitfields): Back
5421 BINFO_BASE_ACCESSES and CONSTRUCTOR lengths here.
5422 (streamer_write_chain): Write TREE_CHAIN as null-terminated list.
5423 (write_ts_exp_tree_pointers): Adjust.
5424 (write_ts_binfo_tree_pointers): Likewise.
5425 (write_ts_constructor_tree_pointers): Likewise.
5426 * tree-streamer-in.c (streamer_read_chain): Read TREE_CHAIN as
5427 null-terminated list.
5428 (unpack_value_fields): Unpack BINFO_BASE_ACCESSES and
5429 CONSTRUCTOR lengths and materialize the arrays.
5430 (lto_input_ts_exp_tree_pointers): Adjust.
5431 (lto_input_ts_binfo_tree_pointers): Likewise.
5432 (lto_input_ts_constructor_tree_pointers): Likewise.
5434 2012-10-14 Hans-Peter Nilsson <hp@bitrange.com>
5436 * config/mmix/mmix.c (mmix_opposite_regno): Handle the
5437 return-value register too.
5439 2012-10-14 Steven Bosscher <steven@gcc.gnu.org>
5441 PR rtl-optimization/38711
5442 * df.h (df_get_live_out, df_get_live_in): Make static inline functions.
5443 * df-problems.c (df_get_live_out, df_get_live_in): Moved to df.h.
5444 * ira-lives.c (process_bb_node_lives): Use df_get_live_out instead of
5446 * ira-build.c (create_bb_allocnos): Likewise.
5447 (create_loop_allocnos): Likewise, and use df_get_live_in instead of
5449 * ira-emit.c (generate_edge_moves): Likewise.
5450 (add_ranges_and_copies): Likewise.
5451 * ira-color.c (ira_loop_edge_freq): Use df_get_live_out instead of
5452 DF_LR_OUT, and df_get_live_in instead of DF_LR_IN.
5453 * ira.c (mark_elimination): Update DF_LR and DF_LIVE.
5454 (build_insn_chain): Use df_get_live_out instead of DF_LR_OUT.
5455 (do_reload): Remove the DF_LIVE problem for -O1.
5457 2012-10-14 Steven Bosscher <steven@gcc.gnu.org>
5459 PR rtl-optimization/54919
5460 * loop-unroll.c (struct var_to_expand): Remove accum_pos field.
5461 (analyze_insn_to_expand_var): Do not record accum_pos.
5462 (expand_var_during_unrolling): Use validate_replace_rtx_group to
5463 perform replacement of all references to SET_DEST (set) with the
5464 new register, including references in REG_EQUAL notes.
5465 (insert_var_expansion_initialization): Insert initializatio insns
5466 at the bottom of the pre-header of the loop.
5468 2012-10-14 Jan Hubicka <jh@suse.cz>
5470 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
5471 predict loops with multiple exits realistically.
5472 * cfgloopanal.c (single_likely_exit): New function.
5474 2012-10-14 Uros Bizjak <ubizjak@gmail.com>
5476 * config/alpha/alpha.md: Remove empty predicates and/or constraints.
5477 * config/alpha/sync.md: Ditto.
5479 2012-10-13 Uros Bizjak <ubizjak@gmail.com>
5481 * config/alpha/alpha.md (I24MODE): New mode iterator.
5482 (any_divmod): New code iterator.
5483 (<code>si3): Macroize expander from {div,mod,udiv,umod}si3 using
5484 any_divmod code iterator.
5485 (<code>si3): Macroize expander from {div,mod,udiv,umod}di3 using
5486 any_divmod code iterator.
5487 (extendqi<mode>2): Macroize insn from extendqi{hi,si}2 using
5488 I24MODE mode iterator.
5489 (unaligned_store<mode>): Macroize expander from unaligned_store{qi,hi}
5490 using I12MODE mode iterator.
5491 (mov<mode>): Macroize expander from mov{qi,hi} using
5492 I12MODE mode iterator.
5494 2012-10-13 Eric Botcazou <ebotcazou@adacore.com>
5496 PR rtl-optimization/54871
5497 * loop-iv.c (simplify_using_initial_values): When scanning previous
5498 basic blocks, prune the recorded conditions if the current insn was
5499 not used to make a replacement.
5501 * loop-unroll.c (decide_unroll_constant_iterations): Clean up message.
5502 (unroll_loop_constant_iterations): Clarify head comment.
5503 (decide_unroll_runtime_iterations): Clean up message.
5504 (unroll_loop_runtime_iterations): Clarify head comment.
5505 (decide_peel_simple): Clean up message.
5506 (peel_loop_simple): Clarify head comment.
5507 (decide_unroll_stupid): Clean up message.
5508 (unroll_loop_stupid): Clarify head comment.
5510 2012-10-13 Andreas Schwab <schwab@linux-m68k.org>
5512 PR gcov-profile/44728
5513 * gcov.c (create_file_names): When stripping extension only look
5516 2012-10-13 Jan Hubicka <jh@suse.cz>
5518 * loop-iv.c (determine_max_iter): Fix handling of AND.
5519 (iv_number_of_iterations): Record upper bounds as unsigned
5522 2012-10-13 Steven Bosscher <steven@gcc.gnu.org>
5524 * ira.c (ira): Set current_loops to &ira_loops before recording
5525 loop exits. Release recorded exits and loops early.
5527 2012-10-13 Chung-Lin Tang <cltang@codesourcery.com>
5529 * builtins.c (expand_builtin_set_thread_pointer): Use
5530 create_input_operand() instead of create_fixed_operand().
5532 2012-10-13 Uros Bizjak <ubizjak@gmail.com>
5534 * config/alpha/alpha.md (FMODE): New mode iterator.
5535 (modesuffix): Handle SF and DF modes.
5536 (opmode): New mode attribute.
5537 (abs<mode>2): Macroize insn from abs{sf,df}2 using FMODE mode iterator.
5538 (*nabs<mode>2): Macroize insn from *nabs{sf,df}2 using
5539 FMODE mode iterator.
5540 (neg<mode>2): Macroize insn from neg{sf,df}2 using FMODE mode iterator.
5541 (copysign<mode>3): Macroize insn from copysign{sf,df}3 using
5542 FMODE mode iterator.
5543 (*ncopysign<mode>3): Macroize insn from *ncopysign{sf,df}3 using
5544 FMODE mode iterator.
5545 (*add<mode>3_ieee): Macroize insn from *add{sf,df}_ieee using
5546 FMODE mode iterator.
5547 (add<mode>3): Macroize insn from add{sf,df}3 using FMODE mode iterator.
5548 (*sub<mode>3_ieee): Macroize insn from *sub{sf,df}3_ieee using
5549 FMODE mode iterator.
5550 (sub<mode>3): Macroize insn from sub{sf,df}3 using FMODE mode iterator.
5551 (*mul<mode>3_ieee): Macroize insn from *mul{sf,df}3_ieee using
5552 FMODE mode iterator.
5553 (mul<mode>3): Macroize insn from mul{sf,df}3 using FMODE mode iterator.
5554 (*div<mode>3_ieee): Macroize insn from *div{sf,df}3_ieee using
5555 FMODE mode iterator.
5556 (div<mode>3): Macroize insn from div{sf,df}3 using FMODE mode iterator.
5557 (*sqrt<mode>2_ieee): Macroize insn from *sqrt{sf,df}2_ieee using
5558 FMODE mode iterator.
5559 (sqrt<mode>2): Macroize insn from sqrt{sf,df}2
5560 using FMODE mode iterator.
5561 (*mov<mode>cc_internal): Macroize insn from *mov{sf,df}cc_internal
5562 using FMODE mode iterator.
5563 (mov<mode>cc): Macroize expander from mov{sf,df}cc
5564 using FMODE mode iterator.
5566 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
5569 * config/sh/sh.md: Correct define_delay for return insns.
5570 (*movsi_pop): Delete.
5572 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
5575 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_int2sf): Fix swapped
5577 * config/sh/predicates.md (fpul_operand): Add comment.
5578 (fpul_fsca_operand, fsca_scale_factor): New predicates.
5579 * config/sh/sh.md (fsca): Move below sincossf3 expander. Convert to
5580 insn_and_split. Use fpul_fsca_operand and fsca_scale_factor
5581 predicates. Simplify fpul operand in splitter.
5583 2012-10-12 Jan Hubicka <jh@suse.cz>
5585 * tree-ssa-threadupdate.c (def_split_header_continue_p): Do not
5588 2012-10-12 Jan Hubicka <jh@suse.cz>
5590 * web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag.
5592 2012-10-12 Aaron Gray <aaronngray.lists@gmail.com>
5593 Diego Novillo <dnovillo@google.com>
5595 * gengtype-lex.l: Support for C++ single line comments.
5596 Support for classes.
5597 (CXX_KEYWORD): New. Support C++ keywords inline, public,
5598 protected, private, template, operator, friend, &, ~.
5599 (TYPEDEF): New. Support typedef.
5600 * gengtype-parser.c: updated 'token_names[]'
5601 (direct_declarator): Add support for parsing functions and ctors.
5603 2012-10-12 Diego Novillo <dnovillo@google.com>
5605 * doc/gty.texi: Document C++ limitations in gengtype.
5606 * gengtype-lex.l (CID): Rename from ID.
5607 (ID): Include scoping '::' as part of the identifier name.
5608 * gengtype-parse.c (token_names): Update.
5609 (token_value_format): Update.
5610 (consume_until_eos): Rename from consume_until_semi.
5611 Remove unused argument IMMEDIATE. Update all callers.
5612 Also consider '}' as a finalizer.
5613 (consume_until_comma_or_eos): Rename from
5614 consume_until_comma_or_semi.
5615 Remove unused argument IMMEDIATE. Update all callers.
5616 Also consider '}' as a finalizer.
5617 (direct_declarator): Add documentation on ctor support.
5618 Add argument IN_STRUCT.
5619 If the token following ID is a '(', consider ID a
5620 function and return NULL.
5621 If the token following '(' is not a '*', and IN_STRUCT is true,
5622 conclude that this is a ctor and return NULL.
5623 If the token is IGNORABLE_CXX_KEYWORD, return NULL.
5624 (inner_declarator): Add argument IN_STRUCT.
5626 (declarator): Add argument IN_STRUCT with default value false.
5628 (type): Document argument NESTED.
5629 Skip over C++ inheritance specifiers.
5630 If a token TYPEDEF is found, emit an error.
5631 If an enum is found inside a class/structure, emit an error.
5632 (typedefs, structures, param_structs, variables): Initialize.
5633 (new_structure): Do not complain about duplicate
5634 structures if S has a line location set.
5635 * gengtype-state.c (write_state_type): Remove default handler.
5636 Add handler for TYPE_NONE.
5637 (read_state_scalar_char_type):
5638 * gengtype.c: Fix spacing.
5639 * gengtype.h (enum gty_token): Add name. Add token
5640 IGNORABLE_CXX_KEYWORD.
5642 2012-10-12 Chung-Lin Tang <cltang@codesourcery.com>
5644 * config/arm/arm.md (get_thread_pointersi): Moved to place with
5645 other TLS related patterns.
5647 2012-10-12 Richard Biener <rguenther@suse.de>
5649 * tree-streamer-out.c (pack_ts_target_option): Rename from ...
5650 (write_ts_target_option): ... this.
5651 (pack_ts_optimization): Rename from ...
5652 (write_ts_optimization): ... this.
5653 (streamer_pack_tree_bitfields): Pack them in the bitfield section ...
5654 (streamer_write_tree_body): ... not here.
5655 * tree-streamer-in.c (unpack_ts_target_option): Rename from ...
5656 (lto_input_ts_target_option): ... this.
5657 (unpack_ts_optimization): Rename from ...
5658 (lto_input_ts_optimization): ... this.
5659 (unpack_value_fields): Unpack them from the bitfield section ...
5660 (streamer_read_tree_body): ... not from here.
5662 2012-10-12 Uros Bizjak <ubizjak@gmail.com>
5664 * config/alpha/alpha.md (vecmodesuffix): New mode attribute.
5665 (modesuffix): Handle V8QI and V4HI modes.
5666 (any_maxmin): New code iterator.
5667 (maxmin): New code attribute.
5668 (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{qi,hi}3
5669 using any_maxmin code iterator and I12MODE mode iterator.
5670 (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{v8qi,v4hi}3
5671 using any_maxmin code iterator and VEC12 mode iterator.
5673 2012-10-12 Marc Glisse <marc.glisse@inria.fr>
5675 * optabs.c (vector_compare_rtx): Change prototype.
5676 (expand_vec_cond_expr): Handle VEC_COND_EXPR whose first operand
5677 is not a comparison.
5678 * gimplify.c (gimplify_expr): Handle VEC_COND_EXPR.
5680 2012-10-12 Richard Biener <rguenther@suse.de>
5682 PR tree-optimization/54894
5683 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
5684 Handle over-aligned scalar types properly.
5686 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
5689 * config/sh/sh.c (bdesc): Remove thread pointer built-ins.
5690 * config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode
5693 2012-10-12 Oleg Endo <olegendo@gcc.gnu.org>
5696 * config/sh/sh.md (negsi_cond, negdi_cond, stack_protect_test): Remove
5697 get_t_reg_rtx when invoking gen_branch_true or gen_branch_false.
5698 (*zero_extend<mode>si2_compact): Convert to insn_and_split. Convert
5699 zero extensions of T bit stores to reg moves in splitter. Remove
5700 obsolete unnamed peephole2 that caught zero extensions after negc T bit
5702 (*branch_true_eq, *branch_false_ne): Delete.
5703 (branch_true, branch_false): Convert insn to expander. Move actual
5705 (*cbranch_t): ...this new insn_and_split. Try to find preceding
5706 redundant T bit stores and tests and combine them with the conditional
5707 branch if possible in the splitter.
5708 (movrt_xor, *movt_movrt): New insn_and_split.
5709 * config/sh/predicates.md (cbranch_treg_value): New predicate.
5710 * config/sh/sh-protos.h (sh_eval_treg_value): Forward declare...
5711 * config/sh/sh.c (sh_eval_treg_value): ...this new function.
5712 (expand_cbranchsi4, expand_cbranchdi4): Remove get_t_reg_rtx
5713 when invoking gen_branch_true or gen_branch_false.
5715 2012-10-11 Uros Bizjak <ubizjak@gmail.com>
5717 * config/alpha/alpha.md (IMODE): New mode iterator.
5720 (modesuffix): Handle QI and HI modes.
5721 (zero_extendqi<mode>2): Macroize insn from zero_extendqi{hi,si,di}2
5722 using I248MODE mode iterator.
5723 (zero_extendhi<mode>2): Macroize insn from zero_extendhi{si,di}2
5724 using I48MODE mode iterator.
5725 (andnot<mode>3): Macroize insn from andnot{si,di}3 using
5726 I48MODE mode iterator.
5727 (ins<modesuffix>l_const): Macroize insn from ins{b,w,l}l_const
5728 using I248MODE mode iterator.
5729 (ins<modesuffix>l): Macroize insn from ins{b,w,l}l
5730 using I248MODE mode iterator.
5731 (*mov<mode>cc_internal): Macroize insn from
5732 *mov{qi,hi,si,di}cc_internal using IMODE mode iterator.
5733 (*mov<mode>cc_lbc): Macroize insn from
5734 *mov{qi,hi,si,di}cc_lbc using IMODE mode iterator.
5735 (*mov<mode>cc_lbs): Macroize insn from
5736 *mov{qi,hi,si,di}cc_lbs using IMODE mode iterator.
5737 (mov<mode>cc): Macroize expander from mov{si,di}cc
5738 using I48MODE mode iterator.
5740 2012-10-11 Steven Bosscher <steven@gcc.gnu.org>
5742 * ira-build.c (ira_loop_tree_body_rev_postorder): New function.
5743 (ira_traverse_loop_tree): Traverse a loop's basic blocks in
5744 reverse post-order of the reversed control-flow direction.
5745 * ira-conflicts.c (ira_build_conflicts): Pass add_copies as
5746 the pre-order function to ira_traverse_loop_tree to preserve
5747 the existing semantics.
5749 * ira-lives.c (remove_some_program_points_and_update_live_ranges):
5750 Squeeze out live range chain elements if their program points are
5753 2012-10-11 Jakub Jelinek <jakub@redhat.com>
5755 * tree.def (REDUC_PLUS_EXPR): Fix up comment.
5757 * fold-const.c (fold_unary_loc): Handle REDUC_MIN_EXPR,
5758 REDUC_MAX_EXPR and REDUC_PLUS_EXPR.
5760 2012-10-11 James Lemke <jwlemke@codesourcery.com>
5762 * config/rs6000/predicates.md (zero_fp_constant): Fix comment.
5763 * config/rs6000/rs6000.md (return_pred): Fix null return.
5764 * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation.
5765 (print_operand): Make FALLTHRU obvious.
5766 (output_cbranch): Correct comment.
5768 2012-10-11 Uros Bizjak <ubizjak@gmail.com>
5770 * config/alpha/alpha.md (DWI): New mode attribute.
5771 (*sadd<modesuffix>): Macroize insn from *saddl and *saddq using
5772 I48MODE mode iterator.
5773 (addv<mode>3): Macroize insn from addvsi3 and addvdi3 using
5774 I48MODE mode iterator.
5775 (neg<mode>2): Macroize insn from negsi2 and negdi2 using
5776 I48MODE mode iterator.
5777 (negv<mode>2): Macroize insn from negvsi2 and negvdi2 using
5778 I48MODE mode iterator.
5779 (sub<mode>3): Macroize insn from subsi3 and subdi3 using
5780 I48MODE mode iterator.
5781 (*ssub<modesuffix>): Macroize insn from *ssubl and *ssubq using
5782 I48MODE mode iterator.
5783 (subv<mode>3): Macroize insn from subvsi3 and subvdi3 using
5784 I48MODE mode iterator.
5785 (mul<mode>3): Macroize insn from mulsi3 and muldi3 using
5786 I48MODE mode iterator.
5787 (mulv<mode>3): Macroize insn from mulvsi3 and mulvdi3 using
5788 I48MODE mode iterator.
5789 (*iornot<mode>3): Macroize insn from *iornotsi3 and *iornotdi3 using
5790 I48MODE mode iterator.
5791 (*xornot<mode>3): Macroize insn from *xornotsi3 and *xornotdi3 using
5792 I48MODE mode iterator.
5794 2012-10-11 Jason Merrill <jason@redhat.com>
5796 * configure.ac (gcc_cv_as_aix_ref): Fix typo.
5797 * configure: Regenerate.
5799 2012-10-11 Chung-Lin Tang <cltang@codesourcery.com>
5801 * builtins.c (expand_builtin_thread_pointer): New.
5802 (expand_builtin_set_thread_pointer): New.
5803 (expand_builtin): Add BUILT_IN_THREAD_POINTER,
5804 BUILT_IN_SET_THREAD_POINTER expand cases.
5805 * builtins.def (BUILT_IN_THREAD_POINTER):
5806 New __builtin_thread_pointer builtin.
5807 (BUILT_IN_SET_THREAD_POINTER):
5808 New __builtin_set_thread_pointer builtin.
5809 * optabs.def (get_thread_pointer,set_thread_pointer):
5811 * doc/md.texi (Standard Names): Document get_thread_pointer and
5812 set_thread_pointer patterns.
5813 * config/alpha/alpha.md (get_thread_pointerdi): Rename from load_tp.
5814 (set_thread_pointerdi): Rename from set_tp.
5815 * config/alpha/alpha.c (alpha_legitimize_address_1): Change
5816 gen_load_tp calls to gen_get_thread_pointerdi.
5817 (alpha_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
5818 ALPHA_BUILTIN_SET_THREAD_POINTER.
5819 (code_for_builtin): Remove CODE_FOR_load_tp, CODE_FOR_set_tp.
5820 (alpha_init_builtins): Remove __builtin_thread_pointer,
5821 __builtin_set_thread_pointer machine-specific builtins.
5822 (alpha_expand_builtin_thread_pointer): Add hook function for
5823 TARGET_EXPAND_BUILTIN_THREAD_POINTER.
5824 (alpha_expand_builtin_set_thread_pointer): Add hook function for
5825 TARGET_EXPAND_BUILTIN_SET_THREAD_POINTER.
5826 (alpha_fold_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
5827 ALPHA_BUILTIN_SET_THREAD_POINTER cases.
5828 * config/arm/arm.md (get_thread_pointersi): New pattern.
5829 * config/arm/arm-protos.h (arm_load_tp): Add extern declaration.
5830 * config/arm/arm.c (arm_load_tp): Remove static.
5831 (arm_builtins): Remove ARM_BUILTIN_THREAD_POINTER.
5832 (arm_init_tls_builtins): Remove function.
5833 (arm_init_builtins): Remove call to arm_init_tls_builtins().
5834 (arm_expand_builtin): Remove ARM_BUILTIN_THREAD_POINTER case.
5835 * config/mips/mips.md (get_thread_pointer<mode>): New pattern.
5836 * config/mips/mips-protos.h (mips_expand_thread_pointer):
5837 Add extern declaration.
5838 * config/mips/mips.c (mips_expand_thread_pointer):
5839 Renamed from mips_get_tp.
5840 (mips_get_tp): New stub calling mips_expand_thread_pointer.
5841 * config/s390/s390.c (s390_builtin,code_for_builtin_64,
5842 code_for_builtin_31,s390_init_builtins,s390_expand_builtin): Remove.
5843 * config/s390/s390.md (get_tp_64,get_tp_31,set_tp_64,set_tp_31):
5845 (get_thread_pointer<mode>,set_thread_pointer<mode>):
5846 New, adapted from removed patterns.
5847 * config/xtensa/xtensa.md (get_thread_pointersi):
5848 Renamed from load_tp.
5849 (set_thread_pointersi): Renamed from set_tp.
5850 * config/xtensa/xtensa.c (xtensa_legitimize_tls_address):
5851 Change gen_load_tp calls to gen_get_thread_pointersi.
5852 (xtensa_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER and
5853 XTENSA_BUILTIN_SET_THREAD_POINTER.
5854 (xtensa_init_builtins): Remove __builtin_thread_pointer,
5855 __builtin_set_thread_pointer machine-specific builtins.
5856 (xtensa_fold_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
5857 XTENSA_BUILTIN_SET_THREAD_POINTER cases.
5858 (xtensa_expand_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
5859 XTENSA_BUILTIN_SET_THREAD_POINTER cases.
5861 2012-10-11 Marc Glisse <marc.glisse@inria.fr>
5863 * doc/extend.texi (Vector Extensions): C++ improvements.
5864 * doc/generic.texi (LSHIFT_EXPR, RSHIFT_EXPR): Mixed vector-scalar.
5865 (LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, NE_EXPR): Specify
5867 (VEC_COND_EXPR): Document it.
5869 2012-10-11 Terry Guo <terry.guo@arm.com>
5871 * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m
5873 * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB
5876 2012-10-11 Hans-Peter Nilsson <hp@bitrange.com>
5879 * configure.ac (out-of-tree linker .hidden support) Set to "no"
5880 for mmix-knuth-mmixware.
5881 * configure: Regenerate.
5883 * configure.ac (gcc_cv_as_comdat_group_group): Default to no.
5884 * configure: Regenerate.
5886 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION): Allow a single
5887 character to quote the VERSION= contents. Sanity-check contents.
5888 * configure.ac ("what linker to use" ld version extraction): Ditto.
5889 * configure: Regenerate.
5891 2012-10-10 Segher Boessenkool <segher@kernel.crashing.org>
5893 * config/rs6000/rs6000.h (PRINT_OPERAND_PUNCT_VALID_P): Delete '.'.
5895 2012-10-10 Jakub Jelinek <jakub@redhat.com>
5897 PR tree-optimization/54877
5898 * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
5899 use make_ssa_name instead of copy_ssa_name.
5901 2012-10-10 Richard Biener <rguenther@suse.de>
5903 * lto-streamer-in.c (lto_input_location_bitpack): Rename to ...
5904 (lto_input_location): ... this. Kill original.
5905 (input_eh_region): Adjust.
5906 (input_struct_function_base): Likewise.
5907 (lto_read_tree): Likewise.
5908 * lto-streamer-out.c (lto_output_location_bitpack): Rename to ...
5909 (lto_output_location): ... this. Kill original.
5910 (lto_write_tree): Adjust.
5911 (output_eh_region): Likewise.
5912 (output_struct_function_base): Likewise.
5913 * lto-streamer.c (lto_streamer_hooks_init): Initialize location hooks.
5914 * lto-streamer.h (lto_input_location): Adjust prototype.
5915 (lto_output_location): Likewise.
5916 * streamer-hooks.h (struct streamer_hooks): Adjust prototype
5917 of input_location and output_location hooks.
5918 (stream_input_location): New define.
5919 (stream_output_location): Likewise.
5920 * tree-streamer-in.c (unpack_ts_block_value_fields): Adjust.
5921 (unpack_value_fields): Likewise.
5922 (streamer_read_tree_bitfields): Likewise.
5923 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
5924 (lto_input_ts_exp_tree_pointers): Likewise.
5925 (lto_input_ts_block_tree_pointers): Likewise.
5926 * tree-streamer-out.c (pack_ts_block_value_fields): Adjust.
5927 (streamer_pack_tree_bitfields): Likewise.
5928 (write_ts_decl_minimal_tree_pointers): Likewise.
5929 (write_ts_exp_tree_pointers): Likewise.
5930 (write_ts_block_tree_pointers): Likewise.
5931 * gimple-streamer-in.c (input_phi): Adjust.
5932 (input_gimple_stmt): Likewise.
5933 * gimple-streamer-out.c (output_phi): Adjust.
5934 (output_gimple_stmt): Likewise.
5935 * tree-streamer.h (streamer_read_tree_bitfields): Adjust prototype.
5936 (streamer_pack_tree_bitfields): Likewise.
5938 2012-10-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5940 * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Fix signed
5941 vs. unsigned warnings by using enum type for function code.
5942 (paired_expand_builtin): Likewise.
5943 (spe_expand_builtin): Likewise.
5945 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Change
5946 builtin mask, target flags masks type to HOST_WIDE_INT in
5947 preparation for growing the number of ISA switches from 31 to 63.
5949 * config/rs6000/rs6000.opt (rs6000_builtin_mask): Make mask type
5952 * config/rs6000/rs6000.c (struct builtin_description): Make
5953 builtin mask field HOST_WIDE_INT. Make target flags field
5954 HOST_WIDE_INT in preparation for growing the # of ISA switches.
5955 (struct rs6000_builtin_info_type): Likewise.
5956 (struct rs6000_ptt): Likewise.
5957 (rs6000_builtin_mask_calculate): Likewise.
5958 (rs6000_invalid_builtin): Likewise.
5959 (rs6000_builtin_decl): Likewise.
5960 (rs6000_common_init_builtins): Likewise.
5961 (rs6000_darwin_file_start): Likewise.
5962 (rs6000_final_prescan_insn): Likewise.
5963 (rs6000_inner_target_options): Likewise.
5964 (build_target_option_node): Likewise.
5965 (rs6000_function_specific_print): Likewise.
5966 (DEBUG_FMT_W): New format for printing HOST_WIDE_INT in hex.
5968 * config/rs6000/rs6000-protos.h (rs6000_builtin_mask_calculate):
5969 Make target flags, builtin masks arguments/return values
5970 HOST_WIDE_INT in preparation for growing the number of ISA from 31
5972 (rs6000_target_modify_macros): Likewise.
5973 (rs6000_target_modify_macros_ptr): Likewise.
5975 * config/rs6000/rs6000.c (DEBUG_FMT_ID): Move "-32s" to a separate
5976 define and change DEBUG_FMT_<x> to use it.
5977 (DEBUG_FMT_D): Likewise.
5978 (DEBUG_FMT_S): Likewise.
5979 (DEBUG_FMT_X): Delete, no longer used.
5980 (DEBUG_FMT_W): Likewise.
5981 (DEBUG_FMT_WX): New debug format for printing options in a
5983 (rs6000_debug_reg_global): If -mdebug=reg, print all of the
5984 options in target_flags and target_flags_explicit. Print the
5985 default options for -mcpu=<xxx>, -mtune=<xxx>, and the default
5986 options. Adjust printing out the builtin options.
5987 (rs6000_option_override_internal): Change printing the builtin
5988 options to use rs6000_print_builtin_options.
5989 (rs6000_function_specific_print): Change to use
5990 rs6000_print_isa_options to print ISA flags.
5991 (rs6000_print_options_internal): New function for expanded
5992 -mdebug=reg option printing to print both the ISA options, and the
5993 builtins that are enabled.
5994 (rs6000_print_isa_options): New function to print the ISA options.
5995 (rs6000_print_builtin_options): New function to print the builtin
5998 2012-10-10 Jakub Jelinek <jakub@redhat.com>
6001 * config/i386/bdver1.md (bdver1-mult): Remove.
6004 * combine.c (count_rtxs): Use RTX_BIN_ARITH resp. RTX_COMM_ARITH
6005 instead of '2' resp. 'c' for GET_RTX_CLASS comparisons.
6008 * simplify-rtx.c (simplify_truncation): Compare UINTVAL instead of
6009 INTVAL of second argument with precision resp. op_precision.
6011 2012-10-10 Dodji Seketeli <dodji@redhat.com>
6013 PR middle-end/54860 - Make sure attributes hash table is created
6014 * attribs.c (register_scoped_attributes): Ensure the attribute
6015 hash table is created.
6017 2012-10-10 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6020 * config/i386/bdver1.md (bdver1_int): Automaton has been
6021 split to reduce state transitions.
6023 2012-10-10 Richard Biener <rguenther@suse.de>
6026 * ipa-prop.c (prune_expression_for_jf_1): New function.
6027 (prune_expression_for_jf): Clear EXPR_LOCATION for all
6028 sub-expressions as well.
6030 2012-10-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6032 * config.gcc: Enable zEC12 for with-arch and with-tune
6034 * common/config/s390/s390-common.c (processor_flags_table): Add
6036 * config/s390/2827.md: New file.
6037 * config/s390/s390-opts.h (enum processor_type): Add
6038 PROCESSOR_2827_ZEC12.
6039 * config/s390/s390.h (enum processor_flags): Add PF_ZEC12.
6040 (TARGET_CPU_ZEC12, TARGET_ZEC12): New macro definitions.
6041 * config/s390/s390.c (zEC12_cost): New definition.
6042 (s390_option_override): Set costs for zEC12.
6043 Set parameter defaults for zEC12.
6044 (legitimate_reload_fp_constant_p): Adjust comment.
6045 (preferred_la_operand_p): Adjust comment.
6046 (s390_expand_insv): Generate insv pattern without CC clobber for zEC12.
6047 (s390_adjust_priority): Add zEC12 check.
6048 (s390_issue_rate): Return 2 for zEC12.
6049 (s390_reorg): Enable code optimizations for zEC12.
6050 (s390_sched_reorder): Reorder insns according to OOO attributes.
6051 (s390_get_sched_attrmask): New function.
6052 (s390_sched_score): New function.
6053 (s390_sched_variable_issue): Update s390_sched_state.
6054 (s390_sched_init): Reset s390_sched_state.
6055 (s390_loop_unroll_adjust): Enable for zEC12.
6056 * config/s390/s390.opt: Add zEC12 processor type value.
6057 * config/s390/s390.md: Enable mnemonic attribute.
6058 (attr cpu, cpu_facility): Add zEC12.
6060 ("*insv<mode>_zEC12", "*insv<mode>_zEC12_noshift")
6061 ("*load_and_trap<mode>"): New insn definition.
6062 ("*cmp_and_trap_unsigned_int<mode>"): Add clt and clgt.
6064 2012-10-09 David S. Miller <davem@davemloft.net>
6066 * config/sparc/sparc.md (type attribute): Add new types 'visl'
6067 (VIS logical operation), 'vismv' (VIS move), and 'pdistn'. Rename
6068 'fgm_pdist' to 'pdist'.
6069 (*movsi_insn): Use vismv and visl.
6070 (*movdi_insn_sp64): Likewise.
6071 (*movsf_insn): Likewise.
6072 (*movdf_insn_sp64): Likewise.
6073 (*mov<VM32:mode>_insn): Likewise, use 'fsrc2s' instead of 'fsrc1s'.
6074 (*mov<VM64:mode>_insn_sp64): Likewise, use 'fsrc2s'
6075 instead of 'fsrc1s'.
6076 (*mov<VM64:mode>_insn_sp32): Likewise, use 'fsrc2s'
6077 instead of 'fsrc1s'.
6078 (VIS logical instructions): Mark as visl.
6079 (pdist_vis): Use 'pdist'.
6080 (pditsn<mode>_vis): Use 'pdistn'.
6081 * config/sparc/ultra1_2.md: Adjust for new VIS attribute types.
6082 * config/sparc/ultra3.md: Likewise.
6083 * config/sparc/niagara.md: Likewise.
6084 * config/sparc/niagara2.md: Likewise.
6085 * config/sparc/niagara4.md: Add cpu units "n4_slot2" and
6086 "n4_load_store" for special store scheduling. Use them in load
6087 and store reservations. Integer divide and multiply can only
6088 issue in slot-1. Represent 1-cycle VIS moves and 3-cycle VIS
6091 2012-10-10 Dehao Chen <dehao@google.com>
6093 * tree-eh.c (lower_try_finally_onedest): Set correct location for
6095 * gimplify.c (gimplify_expr): Set correct location for TRY stmt.
6097 2012-10-10 Oleg Endo <olegendo@gcc.gnu.org>
6100 * config/sh/sh.md (extv, extzv): Check that operands[3] is zero,
6101 regardless of the endianness.
6103 2012-10-09 Lawrence Crowl <crowl@google.com>
6105 * Makefile.in (fold-const.o): Add depencence on hash-table.h.
6108 * fold-const.c (fold_checksum_tree): Change to new
6109 type-safe hash table.
6110 * (print_fold_checksum): Likewise.
6111 * cfg.c (var bb_original): Likewise.
6112 * (var bb_copy): Likewise.
6113 * (var loop_copy): Likewise.
6114 * hash-table.h (template hash_table): Constify parameters for find...
6115 and remove_elt... member functions.
6116 (hash_table::empty) Correct size expression.
6117 (hash_table::clear_slot) Correct deleted entry assignment.
6118 * dse.c (var rtx_group_table): Change to new type-safe hash table.
6120 2012-10-09 Steven Bosscher <steven@gcc.gnu.org>
6122 * basic-block. (profile_record): New struct, moved from passes.c.
6123 * cfghooks.h (struct cfg_hooks) <account_profile_record>: New hook.
6124 (account_profile_record): New prototype.
6125 * cfghooks.c (account_profile_record): New function.
6126 * tree-cfg.c (gimple_account_profile_record): New function
6127 (gimple_cfg_hooks): Add it.
6128 * cfgrtl.c (rtl_account_profile_record): New function
6129 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Add it.
6130 * passes.c (check_profile_consistency): Simplify. Move IR-dependent
6131 code around using cfghooks machinery.
6133 2012-10-09 Oleg Endo <olegendo@gcc.gnu.org>
6136 * doc/extend.texi (Target Builtins): Add SH built-in section.
6137 Document __builtin_thread_pointer and __builtin_set_thread_pointer.
6139 2012-10-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
6142 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
6143 Perform non constant step prefetching in inner loop, only
6144 when it is invariant in the entire loop nest.
6145 * tree-ssa-loop-prefetch.c (dump_mem_details): New function to dump
6146 base, step and delta values of memeory reference analysed for
6148 * tree-ssa-loop-prefetch.c (dump_mem_ref): Call dump_mem_details
6149 to print base, step and delta values of memory reference.
6150 * cfgloop.h (loop_outermost): New function that returns outermost
6151 loop for a given loop in a loop nest.
6153 2012-10-09 Richard Guenther <rguenther@suse.de>
6156 * cfgexpand.c (expand_debug_source_expr): Move checking
6157 code conditional on a found decl_debug_args vector.
6159 2012-10-09 Richard Guenther <rguenther@suse.de>
6161 * tree-streamer.c (streamer_tree_cache_get): Move ...
6162 * tree-streamer.h (streamer_tree_cache_get): ... here as inline.
6164 2012-10-09 Jan Hubicka <jh@suse.cz>
6166 * loop-unroll.c (unroll_loop_constant_iterations): Add
6167 update of loop->nb_iterations_upper_bound I missed in my previous
6168 commit; use TRUNC_DIV_EXPR instead of FLOOR_DIV_EXPR to divide
6170 (decide_unroll_runtime_iterations): Avoid overflow.
6171 (unroll_loop_runtime_iterations): Use TRUNC_DIV_EXPR instead of
6172 FLOOR_DIV_EXPR to update iteration bounds.
6173 (decide_peel_simple): Avoid integer overflow when deciding
6174 on number of peelings.
6175 (decide_unroll_stupid): Likewise.
6177 2012-10-09 Tobias Burnus <burnus@net-b.de>
6179 * lto-cgraph.c (input_node_opt_summary): Remove unused code.
6180 * lto-opts.c (append_to_collect_gcc_options): Fix condition.
6181 * lto-symtab.c (lto_cgraph_replace_node): Don't xstrdup string
6182 which is passed to fprintf.
6184 2012-10-09 Paolo Carlini <paolo.carlini@oracle.com>
6187 * tree.h: Add EXPR_LOC_OR_LOC.
6189 2012-10-09 Nick Clifton <nickc@redhat.com>
6191 PR rtl-optimization/54739
6192 * config/mcore/mcore.md: (anddi3, iordi3, xordi3): Delete patterns.
6195 * config/mcore/mcore.c (mcore_output_movedouble): Fix typo.
6197 2012-10-09 Marc Glisse <marc.glisse@inria.fr>
6200 * fold-const.c (fold_binary_loc): Use build_zero_cst instead of
6201 build_int_cst for a potential vector.
6203 2012-10-08 Uros Bizjak <ubizjak@gmail.com>
6205 * config/i386/atom.md (atom_sse_4): Merge atom_sse_attr attibutes.
6206 (atom_sse_5): Ditto.
6208 2012-10-08 Marc Glisse <marc.glisse@inria.fr>
6211 * config/i386/i386.md (type attribute): Add sseadd1.
6212 (unit attribute): Add support for sseadd1.
6213 (memory attribute): Likewise.
6214 * config/i386/athlon.md: Likewise.
6215 * config/i386/core2.md: Likewise.
6216 * config/i386/atom.md: Likewise.
6217 * config/i386/ppro.md: Likewise.
6218 * config/i386/bdver1.md: Likewise.
6219 * config/i386/sse.md (sse3_h<plusminus_insn>v2df3): Split into...
6220 (sse3_haddv2df3): ... expander.
6221 (*sse3_haddv2df3): ... define_insn. Accept permuted operands.
6222 (sse3_hsubv2df3): ... define_insn.
6223 (*sse3_haddv2df3_low): New define_insn.
6224 (*sse3_hsubv2df3_low): New define_insn.
6226 2012-10-08 Jan Hubicka <jh@suse.cz>
6228 * loop-unswitch.c (unswitch_single_loop): Use
6229 estimated_loop_iterations_int to prevent unswitching when loop
6230 is known to not roll.
6231 * tree-ssa-loop-niter.c (estimated_loop_iterations): Do not segfault
6232 when SCEV is not initialized.
6233 (max_loop_iterations): Likewise.
6234 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Use
6235 estimated_loop_iterations_int to prevent unswithcing when
6236 loop is known to not roll.
6237 * tree-scalar-evolution.c (scev_initialized_p): New function.
6238 * tree-scalar-evolution.h (scev_initialized_p): Likewise.
6239 * loop-unroll.c (decide_peel_once_rolling): Use
6240 max_loop_iterations_int.
6241 (unroll_loop_constant_iterations): Update
6242 nb_iterations_upper_bound and nb_iterations_estimate.
6243 (decide_unroll_runtime_iterations): Use
6244 estimated_loop_iterations or max_loop_iterations;
6245 (unroll_loop_runtime_iterations): fix profile updating.
6246 (decide_peel_simple): Use estimated_loop_iterations
6247 and max_loop_iterations.
6248 (decide_unroll_stupid): Use estimated_loop_iterations
6249 ad max_loop_iterations.
6250 * loop-doloop.c (doloop_modify): Use max_loop_iterations_int.
6251 (doloop_optimize): Likewise.
6252 * loop-iv.c (iv_number_of_iterations): Use record_niter_bound.
6253 (find_simple_exit): Likewise.
6254 * cfgloop.h (struct niter_desc): Remove niter_max.
6256 2012-10-08 Marek Polacek <polacek@redhat.com>
6259 * var-tracking.c (vt_add_function_parameter): Use condition instead
6262 2012-10-08 Dehao Chen <dehao@google.com>
6264 * predict.c (predict_loops): Predict for short-circuit conditions.
6265 (predict_extra_loop_exits): New Function.
6267 2012-10-08 Steven Bosscher <steven@gcc.gnu.org>
6269 * bitmap.h (bitmap_and_into): Update prototype.
6270 * bitmap.c (bitmap_and_into): Return true if the target bitmap
6271 changed, false otherwise.
6273 * df.h (df_dump_insn_problem_function): New function type.
6274 (struct df_problem): Add two functions, to dump just before and
6276 (DF_RD_PRUNE_DEAD_DEFS): New changable flag.
6277 (df_dump_insn_top, df_dump_insn_bottom): New prototypes.
6278 * df-core (df_dump_region): Use dump_bb.
6279 (df_dump_bb_problem_data): New function.
6280 (df_dump_top, df_dump_bottom): Rewrite using df_dump_bb_problem_data.
6281 (df_dump_insn_problem_data): New function.
6282 (df_dump_insn_top, df_dump_insn_bottom): New functions.
6283 * df-scan.c (problem_SCAN): Add NULL fields for new members.
6284 * df-problems.c (df_rd_local_compute): Ignore hard registers if
6285 DF_NO_HARD_REGS is in effect.
6286 (df_rd_transfer_function): If DF_RD_PRUNE_DEAD_DEFS is in effect,
6287 prune reaching defs using the LR problem.
6288 (df_rd_start_dump): Fix dumping of DEFs map.
6289 (df_rd_dump_defs_set): New function.
6290 (df_rd_top_dump, df_rd_bottom_dump): Use it.
6291 (problem_RD): Add NULL fields for new members.
6292 (problem_LR, problem_LIVE): Likewise.
6293 (df_chain_bb_dump): New function.
6294 (df_chain_top_dump): Dump only for artificial DEFs and USEs,
6295 using df_chain_bb_dump.
6296 (df_chain_bottom_dump): Likewise.
6297 (df_chain_insn_top_dump, df_chain_insn_bottom_dump): New functions.
6298 (problem_CHAIN): Add them as new members.
6299 (problem_WORD_LR, problem_NOTE): Add NULL fields for new members.
6300 (problem_MD): Likewise.
6301 * cfgrtl.c (rtl_dump_bb): Use df_dump_insn_top and df_dump_insn_bottom.
6302 (print_rtl_with_bb): Likewise.
6304 * dce.c (init_dce): Use DF_RD_PRUNE_DEAD_DEFS.
6305 * loop-invariant.c (find_defs): Likewise.
6306 * loop-iv.c (iv_analysis_loop_init): Likewise.
6307 * ree.c (find_and_remove_re): Likewise.
6308 * web.c (web_main): Likewise.
6310 2012-10-08 Jason Merrill <jason@redhat.com>
6312 * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
6313 ASM_WEAKEN_DECL with #if RS6000_WEAK.
6315 2012-10-08 Richard Guenther <rguenther@suse.de>
6317 PR tree-optimization/54825
6318 * tree-ssa-sccvn.c (vn_nary_length_from_stmt): Handle BIT_FIELD_REF.
6319 (init_vn_nary_op_from_stmt): Likewise.
6320 * tree-ssa-pre.c (compute_avail): Use vn_nary_op_lookup_stmt.
6321 * tree-ssa-sccvn.h (sizeof_vn_nary_op): Avoid overflow.
6323 2012-10-08 Richard Guenther <rguenther@suse.de>
6325 * tree-ssa-pre.c (postorder_num): New global.
6326 (compute_antic): Initialize all blocks and adjust for
6328 (my_rev_post_order_compute): Remove.
6329 (init_pre): Use inverted_post_order_compute.
6331 2012-10-08 Bernd Schmidt <bernds@codesourcery.com>
6333 * sched-int.h (schedule_block): Adjust declaration.
6334 * sched-rgn.c (bb_state_array, bb_state): New static variables.
6335 (sched_rgn_init): Initialize them.
6336 (sched_rgn_free): Free them.
6337 (schedule_region): Save scheduling state for future blocks, and
6338 pass such state to schedule_block.
6339 * params.def (PARAM_SCHED_STATE_EDGE_PROB_CUTOFF): New.
6340 * doc/invoke.texi (--param): Document it.
6341 * haifa-sched.c (schedule_block): New arg init_state. Use it to
6342 initialize state if nonnull. All callers changed.
6343 Call advance_one_cycle after scheduling.
6345 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
6348 * doc/invoke.texi (AVR Options): Remove -mshort-calls.
6349 * config/avr/avr.opt (-mshort-calls): Remove option.
6350 * config/avr/avr.h (AVR_HAVE_JMP_CALL): Don't depend on
6353 2012-10-08 Oleg Endo <olegendo@gcc.gnu.org>
6356 * config/sh/sh.md (one_cmplsi2): Make insn_and_split. Add manual
6357 combine matching for an insn sequence where a ge:SI pattern
6360 2012-10-08 Dodji Seketeli <dodji@redhat.com>
6362 PR c++/53528 C++11 attribute support
6363 * plugin.h (register_scoped_attributes): Declare new function.
6364 * tree.h (enu attribute_flags::ATTR_FLAG_CXX_11): New flag.
6365 (lookup_scoped_attribute_spec, cxx_11_attribute_p)
6366 (get_attribute_name, get_attribute_namespace): Declare new functions.
6367 (struct attribute_spec): Remove const qualifier from the members.
6368 * tree.c (comp_type_attributes, private_lookup_attribute)
6369 (lookup_ident_attribute, remove_attribute, merge_attribute)
6370 (attribute_hash_list, attribute_list_contained): Use
6372 * attribs.c (decl_attributes): Don't crash on error_mark_node.
6373 Forbid c++11 attributes appertaining to type-specifiers.
6374 (attribute_hash): Remove global variable.
6375 (attributes_table): New global variable.
6376 (find_attribute_namespace, register_scoped_attribute): New static
6378 (register_scoped_attributes, lookup_scoped_attribute_spec)
6379 (cxx11_attribute_p, get_attribute_name, get_attribute_namespace):
6380 New public functions.
6381 (init_attributes): Register all the GNU attributes into the "gnu"
6383 (register_attribute): Use register_scoped_attribute to register
6384 the attribute into the "gnu" namespace.
6385 (lookup_attribute_spec): Use lookup_scoped_attribute_spec to
6386 lookup the attribute in the "gnu" namespace.
6387 (decl_attributes): Use new get_attribute_namespace and
6388 lookup_scoped_attribute_spec to consider attribute namespaces when
6389 looking up attributes. When operating in c++-11 mode, pass flag
6390 ATTR_FLAG_CXX11 to the spec handler.
6392 2012-10-08 Georg-Johann Lay <avr@gjlay.de>
6395 * config/avr/avr.md (*add<mode>3, add<mode>3, addpsi3): Make
6396 constraint alternative "r,0,r" slighly more expensive.
6397 (sub<mode>3, andqi3, andhi3, andpsi3, andsi3): Ditto.
6398 (iorqi3, iorhi3, iorpsi3, iorsi3): Ditto.
6399 (xorhi3, xorpsi3, xorsi3): Ditto.
6401 2012-10-08 Oleg Endo <olegendo@gcc.gnu.org>
6404 * config/sh/sh.md (*mov<mode>_gbr_load, *mov<mode>_gbr_store): New
6405 insns and accompanying unnamed splits.
6406 * config/sh/predicates.md (general_movsrc_operand,
6407 general_movdst_operand): Reject GBR addresses.
6408 * config/sh/sh-protos.h (sh_find_equiv_gbr_addr): New declaration.
6409 * config/sh/sh.c (sh_address_cost, sh_legitimate_address_p,
6410 sh_secondary_reload): Handle GBR addresses.
6411 (base_reg_disp): New class.
6412 (sh_find_base_reg_disp, sh_find_equiv_gbr_addr): New functions.
6414 2012-10-08 Hans-Peter Nilsson <hp@bitrange.com>
6416 * config/mmix/mmix.c (mmix_output_octa): Don't assume
6417 HOST_WIDEST_INT_PRINT_HEX starts with "0x". Instead use
6418 HOST_WIDE_INT_PRINT_HEX_PURE, falling back to
6419 HOST_WIDEST_INT_PRINT_UNSIGNED.
6421 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
6423 * machmode.h (GET_MODE_UNIT_PRECISION): New macro.
6424 * simplify-rtx.c (simplify_truncation): New function,
6425 extracted from simplify_subreg and (in small part) from
6426 simplify_unary_operation_1.
6427 (simplify_unary_operation_1) <TRUNCATE>: Use it. Remove sign bit
6428 test for !TRULY_NOOP_TRUNCATION_MODES_P.
6429 (simplify_subreg): Use simplify_truncate for lowpart subregs
6430 where both the inner and outer modes are scalar integers.
6431 * config/mips/mips.c (mips_truncated_op_cost): New function.
6432 (mips_rtx_costs): Adjust test for BADDU.
6433 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
6435 2012-10-07 Jan Hubicka <jh@suse.cz>
6437 * ipa-inline-analysis.c (do_estimate_edge_time): Return actual
6438 time spent by the inlined sequence.
6439 (do_estimate_edge_growth): Rename to ...
6440 (do_estimate_edge_time): ... this one; return size of inlined sequence.
6441 * ipa-inline.h (do_estimate_edge_size): New.
6442 (do_estimate_edge_growth): Remove.
6443 (estimate_edge_size): New function.
6444 (estimate_edge_growth): Use it.
6446 2012-10-07 Jan Hubicka <jh@suse.cz>
6448 * lto-cgraph.c (lto_symtab_encoder_new): New parameter FOR_INPUT.
6449 (lto_symtab_encoder_delete): Update.
6450 (lto_symtab_encoder_encode): Update.
6451 (compute_ltrans_boundary): Update.
6452 (input_symtab): Update.
6453 * lto-streamer.h (lto_symtab_encoder_new): Update.
6455 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
6457 * config/mips/mips-protos.h (mips_split_type): New enum.
6458 (mips_split_64bit_move_p, mips_split_doubleword_move): Delete.
6459 (mips_split_move_p, mips_split_move, mips_split_move_insn_p)
6460 (mips_split_move_insn): Declare.
6461 * config/mips/mips.c (mips_tuning_info): New variable.
6462 (mips_load_store_insns): Use mips_split_move_insn_p instead of
6463 mips_split_64bit_move_p.
6464 (mips_emit_move_or_split, mips_mult_move_p): New functions.
6465 (mips_split_64bit_move_p): Rename to...
6466 (mips_split_move_p): ...this and take a mips_split_type argument.
6467 Generalize to all moves. Call mips_mult_move_p.
6468 (mips_split_doubleword_move): Rename to...
6469 (mips_split_move): ...this and take a mips_split_type argument.
6470 Assert that mips_split_move_p holds.
6471 (mips_insn_split_type, mips_split_move_insn_p, mips_split_move_insn):
6473 (mips_output_move): Use mips_split_move_p instead of
6474 mips_split_64bit_move_p. Handle MULT $0, $0 moves.
6475 (mips_save_reg): Use mips_emit_move_or_split.
6476 (mips_sim_reset): Assign to curr_state. Call targetm.sched.init
6478 (mips_sim_init): Call targetm.sched.init_dfa_pre_cycle_insn and
6479 targetm.sched.init_dfa_post_cycle_insn, if defined.
6480 (mips_sim_next_cycle): Assign to curr_state. Use advance_state
6481 instead of state_transition.
6482 (mips_sim_issue_insn): Assign to curr_state. Use
6483 targetm.sched.variable_issue to see how many more insns can be issued.
6484 (mips_seq_time, mips_mult_zero_zero_cost)
6485 (mips_set_fast_mult_zero_zero_p, mips_set_tuning_info)
6486 (mips_expand_to_rtl_hook): New functions.
6487 (TARGET_EXPAND_TO_RTL_HOOK): Define.
6488 * config/mips/mips.md (move_type): Add imul.
6489 (type): Map imul move_types to imul.
6490 (*movdi_32bit, *movti): Add imul alternatives.
6491 Use mips_split_move_insn_p and mips_split_move_insn instead of
6492 mips_split_64bit_move_p and mips_split_doubleword_move in move
6495 2012-10-06 Segher Boessenkool <segher@kernel.crashing.org>
6497 * config/rs6000/rs6000.c (print_operand) ['A']: Delete.
6499 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
6502 * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define
6503 __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS.
6504 * ginclude/stdint-gcc.h: In C++11 unconditionally define
6505 limit and constant macros.
6507 2012-10-06 Paolo Carlini <paolo.carlini@oracle.com>
6510 * ginclude/stddef.h: In C++11 mode declare nullptr_t in the global
6513 2012-10-06 Jan Hubicka <jh@suse.cz>
6517 * lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack.
6519 2012-10-06 Dehao Chen <dehao@google.com>
6522 * gimple-low.c (lower_stmt): Set the block for call args.
6524 2012-10-06 Jan Hubicka <jh@suse.cz>
6526 * doc/invoke.texi (-fprofile-report): Document.
6527 * common.opt (-fprofile-report): New option.
6528 * toplev.c (finalize): Call dump_profile_report.
6529 * toplev.h (profile_report): Declare.
6530 * passes.c (profile_record): New static var.
6531 (check_profile_consistency): New function.
6532 (dump_profile_record): New function.
6533 (execute_one_ipa_transform_pass): Call check_profile_consistency.
6534 (execute_one_pass): Likewise.
6536 2012-10-06 Jan Hubicka <jh@suse.cz>
6539 * lto-streamer.h (lto_symtab_register_decl, lto_symtab_get_resolution,
6540 lto_mark_nothrow_fndecl, lto_fixup_nothrow_decls): Remove.
6541 * lto-symtab.c (lto_symtab_register_decl): Remove.
6543 2012-10-06 Andreas Schwab <schwab@linux-m68k.org>
6545 PR rtl-optimization/54739
6546 * config/m68k/m68k.md (anddi3, iordi3, xordi3, one_cmpldi2): Remove.
6548 2012-10-06 Oleg Endo <olegendo@gcc.gnu.org>
6551 * config/sh/sh.md (define_constants): Add UNSPECV_GBR.
6552 (get_thread_pointer, set_thread_pointer): New expanders.
6553 (load_gbr): Rename to store_gbr. Remove GBR_REG use.
6554 (store_gbr): New insn.
6555 * config/sh/sh.c (prepare_move_operands): Use gen_store_gbr instead of
6556 gen_load_gbr in TLS_MODEL_LOCAL_EXEC case.
6557 (sh1_builtin_p): New function.
6558 (signature_args): Add SH_BLTIN_VP.
6559 (bdesc): Add __builtin_thread_pointer and __builtin_set_thread_pointer.
6561 2012-10-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6563 PR rtl-optimization/54739
6564 * config/pa/pa.md: Remove DImode and, not and, ior and xor patterns
6565 for 32-bit targets. Adjust expanders.
6567 * config/pa/pa.md: Adjust unamed HImode add insn pattern.
6569 2012-10-05 Oleg Endo <olegendo@gcc.gnu.org>
6571 * config/sh/sh.c (builtin_description): Add is_enabled member.
6572 (shmedia_builtin_p): New function.
6573 (bdesc): Use shmedia_builtin_p for existing built-ins.
6574 (sh_media_init_builtins, sh_init_builtins): Merge into single function
6575 sh_init_builtins. Add is_enabled checking. Move variable declarations
6576 to where they are actually used.
6577 (sh_media_builtin_decl, sh_builtin_decl): Merge into single function
6578 sh_builtin_decl. Add is_enabled checking.
6579 (sh_expand_builtin): Move variable declarations to where they are
6582 2012-10-05 Jakub Jelinek <jakub@redhat.com>
6584 * tree-inline.c (expand_call_inline): Move VAR_DECLs with
6585 PARM_DECL origins from remapped DECL_INITIAL's BLOCK_VARS
6586 into id->block's BLOCK_VARS.
6589 * ipa-split.c (split_function): Add debug args and debug source
6590 and normal stmts for args_to_skip which are gimple regs.
6591 * tree-inline.c (copy_debug_stmt): When inlining, adjust source
6592 debug bind stmts to debug binds of corresponding DEBUG_EXPR_DECL.
6594 2012-10-05 Georg-Johann Lay <avr@gjlay.de>
6596 * config/avr/avr.md: Fix indentations of insn C snippets.
6598 2012-10-05 Richard Guenther <rguenther@suse.de>
6601 * tree-ssa-live.c (clear_unused_block_pointer_1): Look at
6602 DECL_DEBUG_EXPR again.
6604 2012-10-05 Jan Hubicka <jh@suse.cz>
6605 Jakub Jelinek <jakub@redhat.com>
6607 PR tree-optimization/33763
6608 * tree-inline.c (expand_call_inline): Silently ignore always_inline
6609 attribute for redefined extern inline functions.
6611 2012-10-04 Jan Hubicka <jh@suse.cz>
6613 * tree-vectorizer.h (vect_estimate_min_profitable_iters): Remove.
6614 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Declare here.
6615 (vect_analyze_loop_operations): Use loop count estimate to rule out
6616 unprofitable vectorization.
6617 (vect_estimate_min_profitable_iters): Return
6618 ret_min_profitable_estimate.
6620 2012-10-05 Jakub Jelinek <jakub@redhat.com>
6622 PR tree-optimization/54810
6623 * tree-vrp.c (register_edge_assert_for_2): Handle
6624 NAME = (unsigned) NAME2; if (NAME cmp CST) for
6625 narrowing casts to unsigned integral type like
6626 NAME = NAME2 & CST2; if (NAME cmp CST) where CST2
6627 is the max value of the unsigned integral type.
6629 2012-10-04 Jeff Law <law@redhat.com>
6632 * config/h8300/h8300.c (h8300_rtx_costs): Fix typo in CONST_INT case.
6634 2012-10-04 Jason Merrill <jason@redhat.com>
6636 * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
6637 ASM_WEAKEN_DECL with #if RS6000_WEAK.
6639 2012-10-04 Basile Starynkevitch <basile@starynkevitch.net>
6641 * gengtype.c (walk_type): Emit mark_hook when inside a
6642 struct of a union member.
6644 2012-10-04 Georg-Johann Lay <avr@gjlay.de>
6646 * config/avr/predicates.md (flash_operand): New predicate.
6647 * config/avr/avr.md (reload_in<mode>): Use it in operand 1 instead
6650 2012-10-04 Tobias Burnus <burnus@net-b.de>
6652 * gcc.c (record_temp_file, add_sysrooted_prefix, process_command,
6653 do_self_spec, compare_debug_dump_opt_spec_function): Plug memleaks.
6654 (do_spec_1): Ditto, fix out-of-bound access.
6655 * opts.c (common_handle_option): Plug memleak.
6657 2012-10-04 Jason Merrill <jason@redhat.com>
6659 * config/darwin.c (darwin_assemble_visibility): Treat
6660 VISIBILITY_INTERNAL as hidden.
6662 * config/darwin-c.c (find_subframework_file): Add missing const.
6663 (framework_construct_pathname): Likewise.
6665 2012-10-04 Florian Weimer <fweimer@redhat.com>
6667 * doc/cpp.texi (Pragmas): Document #pragma GCC warning, #pragma
6670 2012-10-04 Richard Guenther <rguenther@suse.de>
6673 * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before
6674 cleaning up the CFG.
6676 2012-10-04 Richard Guenther <rguenther@suse.de>
6679 * tree-streamer-out.c (write_ts_block_tree_pointers): For
6680 inlined functions outer scopes write the ultimate origin
6681 as BLOCK_ABSTRACT_ORIGIN and BLOCK_SOURCE_LOCATION.
6682 Do not stream the fragment chains.
6683 * tree-streamer-in.c (lto_input_ts_block_tree_pointers): Likewise.
6684 * dwarf2out.c (gen_subprogram_die): Handle NULL DECL_INITIAL.
6685 (dwarf2out_decl): Always output DECL_ABSTRACT function decls.
6687 2012-10-04 Arnaud Charlet <charlet@adacore.com>
6689 * dumpfile.h, dumpfile.c: Remove TDI_ada.
6691 2012-10-04 Yuri Rumyantsev <ysrumyan@gmail.com>
6693 * config/i386/i386.c (ix86_dep_by_shift_count_body) : Add
6694 check on reload_completed since it can be invoked before
6695 register allocation phase in pre-reload schedule.
6696 (ia32_multipass_dfa_lookahead) : Do not use dfa_lookahead for
6697 pre-reload schedule to save compile time.
6698 (ix86_sched_reorder) : Do not perform ready list reordering for
6699 pre-reload schedule to save compile time.
6700 (insn_is_function_arg) : New function. Returns true if lhs of insn is
6701 HW function argument register.
6702 (add_parameter_dependencies) : New function. Add output dependencies
6703 for chain of function adjacent arguments if only there is a move to
6704 likely spilled HW registers. Return first argument if at least one
6705 dependence was added or NULL otherwise.
6706 (avoid_func_arg_motion) : New function. Add output or anti dependency
6707 from insn to first_arg to restrict code motion.
6708 (add_dependee_for_func_arg) : New function. Avoid cross block motion of
6709 function argument through adding dependency from the first non-jump
6711 (ix86_dependencies_evaluation_hook) : New function. Hook for
6712 pre-reload schedule: avoid motion of function arguments passed in
6713 likely spilled HW registers.
6714 (ix86_adjust_priority) : New function. Hook for pre-reload schedule:
6715 set priority of moves from likely spilled HW registers to maximum to
6716 schedule them as soon as possible.
6717 (ix86_sched_init_global): Do not perform multipass scheduling for
6718 pre-reload schedule to save compile time.
6720 2012-10-04 Uros Bizjak <ubizjak@gmail.com>
6722 * configure.ac (noexception_flags): Add -fasynchronous-unwind-tables.
6723 * configure: Regenerate.
6725 2012-10-04 Kaz Kojima <kkojima@gcc.gnu.org>
6727 * config/sh/sh.c (sh_can_use_simple_return_p): Return false for
6728 SHmedia and SHcompact using call cookie.
6729 * config/sh/sh.md (epilogue): Emit non-inlined return insns for
6730 SHmedia and SHcompact using call cookie.
6732 2012-10-03 Oleg Endo <olegendo@gcc.gnu.org>
6735 * config/sh/sh.md (*mov_t_msb_neg): New insn and two accompanying
6736 unnamed split patterns.
6738 2012-10-03 Oleg Endo <olegendo@gcc.gnu.org>
6741 * config/sh/sh.c (parse_validate_atomic_model_option): Handle name
6742 strings in sh_atomic_model.
6743 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Move macro implementation
6745 * config/sh/sh-c.c (sh_cpu_cpp_builtins): ... this new function.
6746 Add __SH1__ and __SH2__ defines. Add __SH_ATOMIC_MODEL_*__ define.
6747 * config/sh/sh-protos.h (sh_atomic_model): Add name and cdef_name
6749 (sh_cpu_cpp_builtins): Declare new function.
6751 2012-10-03 Dehao Chen <dehao@google.com>
6754 * tree-cfg.c (move_block_to_fn): Update lexical block for phi_args.
6756 2012-10-03 Vladimir Makarov <vmakarov@redhat.com>
6758 * reginfo.c (max_regno_since_last_resize): New.
6759 (reg_preferred_class, reg_alternate_class): Add assert.
6760 (allocate_reg_info): Initialize allocated reg info.
6761 (resize_reg_info): Make bigger reg_info and initialize new memory.
6762 (reginfo_init): Initialize max_regno_since_last_resize.
6763 (setup_reg_classes): Change assert.
6765 2012-10-03 Andrew W. Nosenko <andrew.w.nosenko@gmail.com>
6767 * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic
6768 in SSE and YMM state support check for -march=native.
6770 2012-10-03 Nick Clifton <nickc@redhat.com>
6772 * config/rx/rx.c (struct decl_chain): New local structure.
6773 (warned_decls): New local variable. Contains a stack of decls for
6774 which warnings have been issued.
6775 (add_warned_decl): Adds a decl to the stack.
6776 (already_warned): Returns true if a given decl is on the stack.
6777 (rx_set_current_function): Issue a warning if multiple fast
6778 interrupt handlers are defined.
6779 * config/rx/rx.opt (mwarn-multiple-fast-interrupts): New option.
6780 * doc/invoke.texi: Document the option.
6782 2012-10-03 Mark Kettenis <kettenis@openbsd.org>
6784 * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
6785 default_use_cxa_atexit to yes.
6787 2012-10-03 Jakub Jelinek <jakub@redhat.com>
6789 PR rtl-optimization/54792
6790 * sched-deps.c (find_modifiable_mems): Scan also TAIL insn.
6792 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
6795 * doc/invoke.texi: Document -mprefer-avx128.
6797 2012-10-02 Andrew Pinski <apinski@cavium.com>
6799 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
6800 Don't optimize a truncate of a mem if it is a vector mode.
6802 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
6805 * Makefile.in (VALTRACK_H): Add hash-table.h.
6806 * valtrack.h: Include hash-table.h.
6807 (struct dead_debug_global_entry): New.
6808 (struct dead_debug_hash_descr): New.
6809 (struct dead_debug_global): New.
6810 (struct dead_debug): Rename to...
6811 (struct dead_debug_local): ... this. Adjust all uses.
6812 (dead_debug_global_init, dead_debug_global_finish): New.
6813 (dead_debug_init): Rename to...
6814 (dead_debug_local_init): ... this. Adjust all callers.
6815 (dead_debug_finish): Rename to...
6816 (dead_debug_local_finish): ... this. Adjust all callers.
6817 * valtrack.c (dead_debug_global_init): New.
6818 (dead_debug_init): Rename to...
6819 (dead_debug_local_init): ... this. Take global parameter.
6820 Save it and initialize used bitmap from it.
6821 (dead_debug_global_find, dead_debug_global_insert): New.
6822 (dead_debug_global_replace_temp): New.
6823 (dead_debug_promote_uses): New.
6824 (dead_debug_finish): Rename to...
6825 (dead_debug_local_finish): ... this. Promote remaining uses.
6826 (dead_debug_global_finish): New.
6827 (dead_debug_add): Try to replace global temps first.
6828 (dead_debug_insert_temp): Support global replacements.
6829 * dce.c (word_dce_process_block, dce_process_block): Add
6830 global_debug parameter. Pass it on.
6831 (fast_dce): Initialize, pass on and finalize global_debug.
6832 * df-problems.c (df_set_unused_notes_for_mw): Adjusted.
6833 (df_create_unused_notes, df_note_bb_compute): Likewise.
6834 (df_note_compute): Justify local-only dead debug analysis.
6836 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
6839 * dwarf2out.c (value_format): Use block4 for dw_val_class_loc
6842 2012-10-02 Alexandre Oliva <aoliva@redhat.com>
6845 * var-tracking.c (vt_add_function_parameter): Bail if
6848 2012-10-02 H.J. Lu <hongjiu.lu@intel.com>
6851 * config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
6852 (XSTATE_FP): Likewise.
6853 (XSTATE_SSE): Likewise.
6854 (XSTATE_YMM): Likewise.
6855 (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
6856 SSE and YMM states aren't supported.
6858 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
6860 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
6861 (*baddu_si): ...this new pattern.
6863 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
6865 * ira-int.h (target_ira_int): Add x_ira_useful_class_mode_regs.
6866 (ira_useful_class_mode_regs): New macro.
6867 * ira.c (clarify_prohibited_class_mode_regs): Set up
6868 ira_useful_class_mode_regs.
6869 * ira-color.c (setup_profitable_hard_regs): Use it to initialise
6870 profitable_hard_regs.
6872 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
6874 * ira.h (target_ira): Add x_ira_class_singleton.
6875 (ira_class_singleton): New macro.
6876 * ira.c (setup_prohibited_class_mode_regs): Set up ira_class_singleton.
6877 * ira-build.c (update_conflict_hard_reg_costs): Use
6878 ira_class_singleton to check for classes with a single
6879 allocatable register.
6880 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Likewise.
6881 (single_reg_class): Likewise. When more than one class is specified,
6882 check whether they have the same singleton register.
6883 (process_single_reg_class_operands): Require single_reg_class
6884 to return NO_REGS or a class with a single allocatable register.
6885 Obtain that register from ira_class_singleton.
6887 2012-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6889 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6890 -mcpu=<xxx> is not specified and the compiler is not configured
6891 using --with-cpu=<xxx>, use the bits from the TARGET_DEFAULT to
6892 set the initial options.
6894 2012-10-02 Sharad Singhai <singhai@google.com>
6897 * tree-vect-stmts.c (vectorizable_operation): Add missing return.
6899 2012-10-02 David Edelsohn <dje.gcc@gmail.com>
6901 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
6902 set TARGET_ALTIVEC_VRSAVE for TARGET_ELF.
6903 (rs6000_stack_info): Only set vrsave_mask if TARGET_ALTIVEC_VRSAVE.
6905 2012-10-02 Jakub Jelinek <jakub@redhat.com>
6907 PR tree-optimization/54713
6908 * expr.c (categorize_ctor_elements_1): Don't assume purpose is
6910 * tree-cfg.c (verify_gimple_assign_single): Add verification of
6911 vector CONSTRUCTORs.
6912 * tree-ssa-sccvn.c (vn_reference_lookup_3): For VECTOR_TYPE
6913 CONSTRUCTORs, don't do anything if element type is VECTOR_TYPE,
6914 and don't check index.
6915 * tree-vect-slp.c (vect_get_constant_vectors): VIEW_CONVERT_EXPR ctor
6916 elements first if their type isn't compatible with vector element type.
6918 2012-10-02 Eric Botcazou <ebotcazou@adacore.com>
6920 * tree.h (DECL_NONLOCAL_FRAME): New macro.
6921 * tree-nested.c (get_frame_type): Set DECL_NONLOCAL_FRAME.
6922 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Stream in
6923 DECL_NONLOCAL_FRAME flag.
6924 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream out
6925 DECL_NONLOCAL_FRAME flag.
6927 2012-10-02 Marc Glisse <marc.glisse@inria.fr>
6929 * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
6930 boolean_type_node for vectors.
6932 2012-10-01 Michael Meissner <meissner@linux.vnet.ibm.com>
6934 * config/rs6000/rs6000.c (toplevel): Include dumpfile.h.
6935 (rs6000_density_test): Rework to accommodate 09-30 change by
6938 * config/rs6000/t-rs6000 (rs6000.o): Add dumpfile.h dependency.
6940 2012-10-01 Dehao Chen <dehao@google.com>
6943 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use
6944 LOCATION_LOCUS to compare with UNKNOWN_LOCATION.
6945 (slpeel_tree_peel_loop_to_edge): Likewise.
6946 * tree-vectorizer.c (vectorize_loops): Likewise.
6948 2012-10-01 Andrew MacLeod <amacleod@redhat.com>
6951 * optabs.c (expand_atomic_fetch_op_no_fallback): New. Factored code
6952 from expand_atomic_fetch_op.
6953 (expand_atomic_fetch_op): Try atomic_{add|sub} operations in terms of
6954 the other one if direct opcode fails.
6956 2012-10-01 Uros Bizjak <ubizjak@gmail.com>
6958 PR rtl-optimization/54457
6959 * simplify-rtx.c (simplify_subreg):
6960 Simplify (subreg:M (op:N ((x:N) (y:N)), 0)
6961 to (op:M (subreg:M (x:N) 0) (subreg:M (x:N) 0)), where
6962 the outer subreg is effectively a truncation to the original mode M.
6964 2012-10-01 Richard Guenther <rguenther@suse.de>
6966 * builtins.def (ATTR_MATHFN_FPROUNDING): Do not use no-vops
6967 with -frounding-math.
6968 * builtin-attrs.def (ATTR_PURE_NOTHROW_NOVOPS_LIST): Remove.
6969 (ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST): Likewise.
6971 2012-10-01 Eric Botcazou <ebotcazou@adacore.com>
6973 * tree.h (copy_mem_ref_info): Delete.
6974 * tree-ssa-address.c (copy_mem_ref_info): Likewise.
6975 (maybe_fold_tmr): Copy flags manually.
6976 * tree-ssa-loop-im.c (simple_mem_ref_in_stmt): Rewrite.
6978 2012-10-01 Marc Glisse <marc.glisse@inria.fr>
6980 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6981 Detect the identity.
6982 <VEC_CONCAT>: Handle VEC_SELECTs from the same vector.
6984 2012-10-01 Oleg Endo <olegendo@gcc.gnu.org>
6987 * config/sh/sh.opt (matomic-model): New option.
6988 (msoft-atomic): Mark as deprecated and alias to
6989 matomic-model=soft-gusa.
6990 (mhard-atomic): Delete.
6991 * config/sh/predicates.md (gbr_displacement): New predicate.
6992 * config/sh/sh-protos.h (sh_atomic_model): New struct.
6993 (selected_atomic_model): New declaration.
6994 (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT, TARGET_ATOMIC_SOFT_GUSA,
6995 TARGET_ATOMIC_HARD_LLCS, TARGET_ATOMIC_SOFT_TCB,
6996 TARGET_ATOMIC_SOFT_TCB_GBR_OFFSET_RTX, TARGET_ATOMIC_SOFT_IMASK):
6998 * config/sh/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Adapt setting to
6999 default atomic model.
7000 * config/sh/sh.c (selected_atomic_model_): New global variable.
7001 (selected_atomic_model, parse_validate_atomic_model_option): New
7003 (sh_option_override): Replace atomic selection checks with call to
7004 parse_validate_atomic_model_option.
7005 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
7006 UNSUPPORTED_HARD_ATOMIC_CPU): Delete.
7007 (DRIVER_SELF_SPECS): Remove atomic checks.
7008 config/sh/sync.md: Update documentation comments.
7009 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
7010 atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
7011 atomic_<fetchop_name>_fetch<mode>, atomic_nand_fetch<mode>): Use
7012 TARGET_ATOMIC_ANY as condition. Add TARGET_ATOMIC_STRICT check for
7013 SH4A case. Handle new TARGET_ATOMIC_SOFT_TCB and
7014 TARGET_ATOMIC_SOFT_IMASK cases.
7015 (atomic_test_and_set): Handle new TARGET_ATOMIC_SOFT_TCB and
7016 TARGET_ATOMIC_SOFT_IMASK cases.
7017 (atomic_compare_and_swapsi_hard, atomic_exchangesi_hard,
7018 atomic_fetch_<fetchop_name>si_hard, atomic_fetch_nandsi_hard,
7019 atomic_<fetchop_name>_fetchsi_hard, atomic_nand_fetchsi_hard):
7020 Add TARGET_ATOMIC_STRICT check.
7021 (atomic_compare_and_swap<mode>_hard, atomic_exchange<mode>_hard,
7022 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nand<mode>_hard,
7023 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetch<mode>_hard,
7024 atomic_test_and_set_hard): Use TARGET_ATOMIC_HARD_LLCS condition.
7025 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
7026 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
7027 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
7028 atomic_test_and_set_soft): Append _gusa to the insn names and use
7029 TARGET_ATOMIC_SOFT_GUSA as condition.
7030 (atomic_compare_and_swap<mode>_soft_tcb,
7031 atomic_exchange<mode>_soft_tcb,
7032 atomic_fetch_<fetchop_name><mode>_soft_tcb,
7033 atomic_fetch_nand<mode>_soft_tcb,
7034 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
7035 atomic_nand_fetch<mode>_soft_tcb, atomic_test_and_set_soft_tcb):
7037 (atomic_compare_and_swap<mode>_soft_imask,
7038 atomic_exchange<mode>_soft_imask,
7039 atomic_fetch_<fetchop_name><mode>_soft_imask,
7040 atomic_fetch_nand<mode>_soft_imask,
7041 atomic_<fetchop_name>_fetch<mode>_soft_imask,
7042 atomic_nand_fetch<mode>_soft_imask, atomic_test_and_set_soft_imask):
7044 * doc/invoke.texi (SH Options): Document new matomic-model option.
7045 Remove msoft-atomic and mhard-atomic options.
7047 2012-10-01 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7050 * config/s390/s390.c (s390_option_override): Add missing break.
7052 2012-09-30 Sharad Singhai <singhai@google.com>
7054 * dumpfile.c: New file with parts moved from tree-dump.c.
7055 (pflags): New variable.
7057 (alt_dump_file): Ditto.
7058 (dump_files): Update to include additional fields.
7059 (struct dump_option_value_info): Add additional entries.
7060 (get_dump_file_name): Use command line filename if available.
7061 (dump_open_alternate_stream): New function.
7063 (dump_gimple_stmt): Ditto.
7064 (dump_gimple_stmt_loc): Ditto.
7065 (dump_generic_expr): Ditto.
7066 (dump_generic_expr_loc): Ditto.
7067 (dump_printf): Ditto.
7068 (dump_printf_loc): Ditto.
7069 (dump_start): Ditto.
7070 (dump_finish): Ditto.
7071 (dump_begin): Ditto.
7072 (dump_enabled_p): Return true if either of the dump types is enabled.
7073 (dump_initialized_p): Return true if either type of dump is
7075 (dump_end): Do not close standard streams.
7076 (dump_enable_all): Handle filenames for regular dumps.
7077 (dump_switch_p_1): Handle command-line dump filenames.
7078 (opt_info_enable_all): New function.
7079 (opt_info_switch_p_1): Ditto.
7080 (opt_info_switch_p): Ditto.
7081 (dump_kind_p): Ditto.
7082 (dump_basic_block): Ditto.
7083 (dump_combine_total_stats): Ditto.
7084 (dump_remap_tree_vectorizer_verbose): Ditto.
7085 * gimple-pretty-print.h: Rename dump_gimple_stmt to
7086 pp_gimple_stmt_1. All callers updated.
7088 2012-09-30 Sharad Singhai <singhai@google.com>
7090 * doc/invoke.texi: Add documentation for the new -fopt-info option.
7091 * tree-dump.c: Move general dump file related functionality into
7092 dumpfile.c. Remove unneeded headers.
7093 * tree-dump.h: Move function declarations into dumpfile.h.
7094 * dumpfile.h: Include "line-map.h". Add defines for MSG flags.
7095 (struct dump_file_info): Move here from tree-dump.c. Rename flags
7096 to pflags, state to pstate, stream to pstream, filename to
7097 pfilename. All callers updated. Add alt_flags, alt_state,
7098 alt_filenmae, alt_stream.
7099 * tree-vectorizer.c: Include "dumpfile.h". Remove vect_dump.
7100 (vect_set_dump_settings): Remove.
7101 (vect_print_dump_info): Ditto.
7102 * tree-vectorizer.h: Remove declaration of vect_dump and
7103 vect_print_dump_info.
7104 * tree-vect-loop.c: Include "dumpfile.h". Use new dump style.
7105 * tree-vect-data-refs.c: Ditto.
7106 * tree-vect-stmts.c: Ditto.
7107 * tree-vect-slp.c: Ditto.
7108 * tree-vect-patterns.c: Ditto.
7109 * tree-vect-loop-manip.c: Ditto.
7110 * opts.c (vect_set_verbosity_level): Remove.
7111 (common_handle_option): Handle -fopt-info flag. Deprecate
7112 -ftree-vectorizer-verbose.
7113 * tree-parloops.c (gather_scalar_reductions): Remove reference to
7115 * flag-types.h: Remove vect_verbosity_levels.
7116 * common.opt: Add -fopt-info. Deprecate -ftree-vectorizer-verbose.
7117 * opts-global.c (dump_remap_tree_vectorizer_verbose): New function.
7118 (handle_common_deferred_options): Handle -fopt-info and
7119 -ftree-vectorizer-verbose.
7120 * Makefile.in: Add dumpfile.o.
7121 (tree-dump.o): Update dependencies.
7122 (tree-vect-loop.o): Ditto.
7123 (tree-vect-loop-manip.o): Ditto.
7124 (tree-vect-slp.o): Ditto.
7125 (tree-vect-stmts.o): Ditto.
7126 (tree-vectorizer.o): Ditto.
7128 * passes.c (finish_optimization_passes): Instead of using
7129 dump_begin/dump_end, use dump_start/dump_finish. Do not use dump_file.
7130 (pass_init_dump_file): Ditto.
7132 2012-09-30 Joern Rennecke <joern.rennecke@embecosm.com>
7134 PR rtl-optimization/38449:
7135 * hooks.c (hook_bool_const_rtx_const_rtx_true): New function.
7136 * hooks.h (hook_bool_const_rtx_const_rtx_true): Declare.
7137 * target.def: Merge in definitions and documentation for
7138 TARGET_CAN_FOLLOW_JUMP.
7139 * doc/tm.texi.in: Add documentation locations for the above.
7140 * doc/tm.texi: Regenerate.
7141 * reorg.c (follow_jumps): New parameters jump and crossing.
7142 Changed all callers.
7144 2012-09-30 Eric Botcazou <ebotcazou@adacore.com>
7146 * reorg.c (relax_delay_slots): Use delay_insn consistently.
7148 * config/sparc/sparc.c (gen_stack_pointer_dec): Delete.
7149 (sparc_expand_epilogue): Use gen_stack_pointer_inc and adjust.
7150 (sparc_flat_expand_epilogue): Likewise.
7151 (emit_and_preserve): Likewise.
7152 (sparc_fold_builtin): Fix thinko in latest change.
7154 2012-09-30 Andreas Schwab <schwab@linux-m68k.org>
7156 * config/m68k/m68k.md: Add names to bitfield insert and extract
7158 (*insv_8_16_reg): Remove constraints and conditions that assume
7159 that operand 0 could be a MEM.
7160 (*extzv_8_16_reg, *extv_8_16_reg): Likewise, for operand 1.
7162 2012-09-30 Jan Hubicka <jh@suse.cz>
7164 * cfgloop.c (scale_loop_profile): Move to...
7165 * cfgloopmanip.c (scale_loop_profile): .. here; use
7166 scale_loop_frequencies.
7167 (loopify): Use RDIV.
7169 2012-09-28 Jan Hubicka <jh@suse.cz>
7171 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Update profile.
7173 2012-09-28 Jan Hubicka <jh@suse.cz>
7175 * function.c (dup_block_and_redirect): Update profile.
7177 2012-09-29 Andreas Tobler <andreast@fgznet.ch>
7179 * config.gcc: Replace 'host' with 'target' when configuring for
7180 powerpc64*-*-freebsd.
7182 2012-09-29 Marc Glisse <marc.glisse@inria.fr>
7184 * tree.c (truth_type_for): New function.
7185 * tree.h (truth_type_for): Declare.
7186 * gimple-fold.c (and_comparisons_1): Call it.
7187 (or_comparisons_1): Likewise.
7188 * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
7189 boolean_type_node for vectors.
7191 2012-09-28 Jan Hubicka <jh@suse.cz>
7193 * basic-block.h (RDIV): Define.
7194 (EDGE_FREQUENCY): Simplify.
7195 (check_probability, combine_probabilities, apply_probability,
7196 inverse_probability): New.
7197 * cfgloop.c (scale_loop_profile): New function.
7198 * cfgloop.h (scale_loop_profile): Declare.
7199 (slpeel_add_loop_guard): Add probability parameter.
7200 (set_prologue_iterations): Add probability parameter.
7201 (slpeel_tree_peel_loop_to_edge): Add bound1 and bound2 parameters;
7202 update probabilities correctly.
7203 (vect_do_peeling_for_alignment, vect_gen_niters_for_prolog_loop): New.
7205 2012-09-20 Bernd Schmidt <bernds@codesourcery.com>
7208 * sched-deps.c (parse_add_or_inc): Remove MINUS handling. Take
7209 STACK_GROWS_DOWNWARD into account.
7211 2012-09-28 Jakub Jelinek <jakub@redhat.com>
7214 * config/i386/predicates.md (nonimmediate_or_const_vector_operand):
7216 * config/i386/i386.c (ix86_expand_vector_logical_operator): New
7218 * config/i386/i386-protos.h (ix86_expand_vector_logical_operator): New
7220 * config/i386/sse.md (<code><mode>3 VI logic): Use it.
7222 PR tree-optimization/54713
7223 * fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR
7224 has vector elements.
7225 (fold_ternary_loc) <case BIT_FIELD_REF>: Likewise.
7226 * tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts
7227 indexes. Use BIT_FIELD_REF if CONSTRUCTOR has vector elements.
7228 (lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes.
7230 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
7232 * config/avr/avr.md (adjust_len): Add lpm.
7233 (reload_in<mode>): Use avr_out_lpm for output. Use "lpm" for
7235 * config/avr/avr-protos.h (avr_out_lpm): New prototype.
7236 * config/avr/avr.c (avr_out_lpm): Make global.
7237 (adjust_insn_length): Handle ADJUST_LEN_LPM.
7239 2012-09-28 Richard Guenther <rguenther@suse.de>
7242 * lto-streamer-out.c (tree_is_indexable): Make PARM_DECLs global.
7243 (lto_output_tree_ref): Handle references to them.
7244 (output_function): Do not output function arguments again.
7245 * lto-streamer-in.c (input_function): Do not input arguments
7246 again, nor overwrite them.
7248 2012-09-28 Richard Guenther <rguenther@suse.de>
7250 * cgraph.h (symtab_node_base): Re-order and pack fields.
7252 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
7254 * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
7256 2012-09-28 Georg-Johann Lay <avr@gjlay.de>
7258 PR rtl-optimization/52543
7259 * config/avr/avr.c (avr_mode_dependent_address_p): Return true for
7260 all non-generic address spaces.
7261 (TARGET_SECONDARY_RELOAD): New hook define to...
7262 (avr_secondary_reload): ...this new static function.
7263 * config/avr/avr.md (reload_in<mode>): New insns.
7265 Undo r185605 (mostly):
7266 * config/avr/avr-protos.h (avr_load_lpm): Remove.
7267 * config/avr/avr.c (avr_load_libgcc_p): Don't restrict to __flash
7269 (avr_out_lpm): Also handle loads > 1 byte.
7270 (avr_load_lpm): Remove.
7271 (avr_find_unused_d_reg): New static function.
7272 (avr_out_lpm_no_lpmx): New static function.
7273 (adjust_insn_length): Remove ADJUST_LEN_LOAD_LPM.
7274 * config/avr/avr.md (unspec): Remove UNSPEC_LPM.
7275 (load_<mode>_libgcc): Use MEM instead of UNSPEC_LPM.
7276 (load_<mode>, load_<mode>_clobber): Remove.
7277 (mov<mode>): For multi-byte move from non-generic
7278 16-bit address spaces: Expand to *mov<mode> again.
7279 (load<mode>_libgcc): New expander.
7280 (split-lpmx): Remove split.
7282 2012-09-27 Dehao Chen <dehao@google.com>
7284 * tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION.
7285 (extern void protected_set_expr_location): Likewise.
7286 (function_args_iter_next): Likewise.
7287 (inlined_function_outer_scope_p): Likewise.
7288 * input.h (IS_UNKNOWN_LOCATION): Likewise.
7289 * fold-const.c (expr_location_or): Likewise.
7290 * lto-cgraph.c (output_node_opt_summary): Likewise.
7291 * dwarf2out.c (add_src_coords_attributes): Likewise.
7292 * tree-eh.c (lower_try_finally_dup_block): Likewise.
7293 * profile.c (branch_prob):
7294 * cfgexpand.c (expand_gimple_cond): Likewise.
7295 (expand_gimple_basic_block): Likewise.
7296 (construct_exit_block): Likewise.
7297 (gimple_expand_cfg): Likewise.
7298 * cfgcleanup.c (try_forward_edges): Likewise.
7299 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
7300 (dump_scope_block): Likewise.
7301 * ipa-prop.c (ipa_write_jump_function): Likewise.
7302 * rtl.h (extern void rtl_check_failed_flag): Likewise.
7303 * gimple.h (gimple_set_location): Likewise.
7304 (gimple_has_location): Likewise.
7305 * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
7306 (force_nonfallthru_and_redirect): Likewise.
7307 (fixup_reorder_chain): Likewise.
7308 (cfg_layout_merge_blocks): Likewise.
7310 2012-09-27 Meador Inge <meadori@codesourcery.com>
7312 * gcc-ar.c (main): Handle the returning of the sub-process error
7315 2012-09-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7317 * lower-subreg.c (enum classify_move_insn): Rename
7318 SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE.
7319 (find_decomposable_subregs): Update.
7320 (decompose_multiword_subregs): Add DECOMPOSE_COPIES parameter.
7321 Only mark pseudo-to-pseudo copies as DECOMPOSABLE_SIMPLE_MOVE
7322 if that parameter is true.
7323 (rest_of_handle_lower_subreg): Call decompose_multiword_subregs
7324 with DECOMPOSE_COPIES false.
7325 (rest_of_handle_lower_subreg2): Call decompose_multiword_subregs
7326 with DECOMPOSE_COPIES true.
7328 2012-09-27 Marek Polacek <polacek@redhat.com>
7330 * doc/gcov.texi (Gcov Data Files): Fix a typo.
7332 2012-09-27 Jakub Jelinek <jakub@redhat.com>
7335 * simplify-rtx.c (simplify_binary_operation_1): Perform
7336 (x - (x & y)) -> (x & ~y) optimization only for integral modes.
7338 2012-09-27 Marc Glisse <marc.glisse@inria.fr>
7342 * doc/extend.texi (Vector Extensions): C++ improvements.
7343 Power of 2 size requirement.
7345 2012-09-27 Richard Guenther <rguenther@suse.de>
7348 * lto-symtab.c (resolution_guessed_p): Remove.
7349 (set_resolution_guessed): Likewise.
7350 (lto_symtab_register_decl): Remove assert.
7351 (lto_symtab_resolve_symbols): Do not alter symbol resolutions
7352 and return the prevailing symbol, checking for multiple prevailing
7354 (lto_symtab_merge_decls_1): Use the result from
7355 lto_symtab_resolve_symbols. Do not alter symbol resolutions.
7357 2012-09-26 Steve Ellcey <sellcey@mips.com>
7360 * doc/install.texi: Fix example.
7362 2012-09-26 Dehao Chen <dehao@google.com>
7364 * tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void)
7365 for function parameter.
7366 (remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL.
7368 2012-09-26 Oleg Endo <olegendo@gcc.gnu.org>
7370 * doc/extend.texi (bswap Builtins): Change signed types to unsigned
7373 2012-09-26 Ian Lance Taylor <iant@google.com>
7375 * diagnostic.c (bt_callback): Cast pc when calling fprintf.
7377 2012-09-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7379 PR tree-optimization/54674
7380 * gimple-ssa-strength-reduction.c (analyze_increments): Don't
7381 introduce a multiplication with a pointer operand.
7383 2012-09-26 Georg-Johann Lay <avr@gjlay.de>
7386 * doc/tm.texi.in (TARGET_MODE_DEPENDENT_ADDRESS_P): Document new
7387 parameter addrspace.
7388 * doc/tm.texi: Regenerate.
7389 * target.def (mode_dependent_address_p): Add addr_space_t parameter.
7390 * targhooks.h (default_mode_dependent_address_p): Ditto.
7391 * targhooks.c (default_mode_dependent_address_p): Ditto.
7392 * expr.c (convert_move): Pass address space to
7393 mode_dependent_address_p.
7394 * combine.c (combine_simplify_rtx): Ditto.
7395 (make_extraction): Ditto.
7396 (simplify_shift_const_1): Ditto.
7397 (gen_lowpart_for_combine): Ditto.
7398 * lower-subreg.c (simple_move_operand): Ditto.
7399 * recog.c (simplify_while_replacing): Ditto.
7400 (offsettable_address_addr_space_p): Ditto.
7401 (mode_dependent_address_p): Ditto.
7402 * simplify-rtx.c (simplify_unary_operation_1): Ditto.
7403 (simplify_subreg): Ditto.
7404 * config/m68k/m68k.md: Ditto.
7405 * config/vax/vax.md: Ditto.
7406 * config/vax/constraints.md (Q): Ditto.
7407 * config/vax/predicates.md (indexed_memory_operand): Ditto.
7408 * config/alpha/alpha.c (alpha_mode_dependent_address_p): Add
7409 unused addr_space_t parameter.
7410 * config/avr/avr.c (avr_mode_dependent_address_p): Ditto.
7411 * config/h8300/h8300.c (h8300_mode_dependent_address_p): Ditto.
7412 * config/m32r/m32r.c (m32r_mode_dependent_address_p): Ditto.
7413 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): Ditto.
7414 * config/rx/rx.c (rx_mode_dependent_address_p): Ditto.
7415 * config/sparc/sparc.c (sparc_mode_dependent_address_p): Ditto.
7416 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
7418 * config/vax/vax.c (vax_mode_dependent_address_p): Ditto.
7419 * config/xtensa/xtensa.c (xtensa_mode_dependent_address_p): Ditto.
7421 2012-09-26 Christophe Lyon <christophe.lyon@linaro.org>
7423 * tree-ssa-math-opts.c (bswap_stats): Add found_16bit field.
7424 (execute_optimize_bswap): Add support for builtin_bswap16.
7426 2012-09-26 Richard Guenther <rguenther@suse.de>
7428 * tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS.
7430 2012-09-26 Ian Lance Taylor <iant@google.com>
7432 * diagnostic.c: Include "demangle.h" and "backtrace.h".
7433 (bt_stop): New static array.
7434 (bt_callback, bt_err_callback): New static functions.
7435 (diagnostic_action_after_output): Call backtrace_full for DK_ICE.
7436 * Makefile.in (BACKTRACE): New variable.
7437 (BACKTRACEINC, LIBBACKTRACE): New variables.
7438 (BACKTRACE_H): New variable.
7439 (LIBDEPS, LIBS): Add $(LIBBACKTRACE).
7440 (INCLUDES): Add $(BACKTRACEINC).
7441 (diagnostic.o): Depend upon $(DEMANGLE_H) and $(BACKTRACE_H).
7443 2012-09-25 Segher Boessenkool <segher@kernel.crashing.org>
7447 * config/rs6000/rs6000.md (ne0si): Remove unnecessary
7448 earlyclobber. Merge with...
7451 (plus_ne0si): Merge with...
7452 (plus_ne0di): ... to...
7453 (plus_ne0_<mode>): New.
7454 (compare_plus_ne0si): Merge with...
7455 (compare_plus_ne0di)... to...
7456 (compare_plus_ne0_<mode>): New.
7457 (compare_plus_ne0_<mode>_1): New.
7458 (plus_ne0si_compare): Merge with...
7459 (plus_ne0di_compare)... to...
7460 (plus_ne0_<mode>_compare): New.
7462 2012-09-25 Oleg Endo <olegendo@gcc.gnu.org>
7465 * config/sh/constraints.md (Jhb): New constraint.
7466 * config/sh/predicates.md (negt_reg_shl31_operand): New predicate.
7467 * config/sh/sh.md (rotrsi3): New expander.
7468 (rotrsi3_1, *rotrsi3_1, *rotlsi3_1): New insns.
7469 (rotlsi3, rotlhi3): Use const_int_operand predicate instead of
7470 immediate_operand and remove CONST_INT_P checks in expansion code.
7471 (*rotcr): Cleanup variable usage. Handle preceding nott insn. Add
7472 split with swapped operands.
7473 (*rotcr_neg_t, *movt_msb, *negt_msb): New insns and splits.
7475 2012-09-25 Aldy Hernandez <aldyh@redhat.com>
7478 * trans-mem.c (expand_call_tm): Handle late built built-ins.
7480 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
7483 * config/avr/avr-log.c (avr_double_int_pop_digit): Rewrite using
7484 double_int::udivmod.
7486 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
7488 * config/avr/avr.c (avr_set_current_function): Check cfun->machine
7491 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
7494 * config/avr/t-avr: Use ALL_COMPILERFLAGS instead of ALL_CFLAGS
7495 for sources compiled with COMPILER.
7497 2012-09-25 Richard Guenther <rguenther@suse.de>
7500 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge
7501 cgraph nodes for builtins.
7503 2012-09-25 Jakub Jelinek <jakub@redhat.com>
7505 PR tree-optimization/54676
7506 * tree-vrp.c (set_and_canonicalize_value_range): Handle
7507 one bit precision properly.
7510 * configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og properly.
7511 * configure: Regenerated.
7513 2012-09-25 Georg-Johann Lay <avr@gjlay.de>
7516 * config/avr/avr.c (avr_map_decompose): Use double_int::from_uhwi
7517 instead of uhwi_to_double_int.
7519 2012-09-25 Richard Guenther <rguenther@suse.de>
7521 * lto-symtab.c (lto_symtab_merge_decls_1): Properly merge
7524 2012-09-25 Richard Guenther <rguenther@suse.de>
7526 PR tree-optimization/53663
7527 * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional
7528 native encode/interpret translation on VN_WALKREWRITE.
7530 2012-09-24 Dehao Chen <dehao@google.com>
7532 * tree-cfg.c (move_stmt_op): Reset the expr block only when necessary.
7533 (move_block_to_fn): Reset the edge's goto block even
7534 when the goto locus is unknown.
7536 2012-09-24 Lawrence Crowl <crowl@google.com>
7538 * double-int.h (double_int::from_pair): New.
7539 (double_int::wide_mul_with_sign): New.
7540 (double_int::sub_with_overflow): New.
7541 (double_int::neg_with_overflow): New.
7542 (double_int::divmod_with_overflow): New.
7543 (shwi_to_double_int): Remove.
7544 (uhwi_to_double_int): Remove.
7545 (double_int_to_shwi): Remove.
7546 (double_int_to_uhwi): Remove.
7547 (double_int_fits_in_uhwi_p): Remove.
7548 (double_int_fits_in_shwi_p): Remove.
7549 (double_int_fits_in_hwi_p): Remove.
7550 (double_int_mul): Remove.
7551 (double_int_mul_with_sign): Remove.
7552 (double_int_add): Remove.
7553 (double_int_sub): Remove.
7554 (double_int_neg): Remove.
7555 (double_int_div): Remove.
7556 (double_int_sdiv): Remove.
7557 (double_int_udiv): Remove.
7558 (double_int_mod): Remove.
7559 (double_int_smod): Remove.
7560 (double_int_umod): Remove.
7561 (double_int_divmod): Remove.
7562 (double_int_sdivmod): Remove.
7563 (double_int_udivmod): Remove.
7564 (double_int_multiple_of): Remove.
7565 (double_int_setbit): Remove.
7566 (double_int_ctz): Remove.
7567 (double_int_not): Remove.
7568 (double_int_ior): Remove.
7569 (double_int_and): Remove.
7570 (double_int_and_not): Remove.
7571 (double_int_xor): Remove.
7572 (double_int_lshift): Remove.
7573 (double_int_rshift): Remove.
7574 (double_int_lrotate): Remove.
7575 (double_int_rrotate): Remove.
7576 (double_int_negative_p): Remove.
7577 (double_int_cmp): Remove.
7578 (double_int_scmp): Remove.
7579 (double_int_ucmp): Remove.
7580 (double_int_max): Remove.
7581 (double_int_smax): Remove.
7582 (double_int_umax): Remove.
7583 (double_int_min): Remove.
7584 (double_int_smin): Remove.
7585 (double_int_umin): Remove.
7586 (double_int_ext): Remove.
7587 (double_int_sext): Remove.
7588 (double_int_zext): Remove.
7589 (double_int_mask): Remove.
7590 (double_int_max_value): Remove.
7591 (double_int_min_value): Remove.
7592 (double_int_zero_p): Remove.
7593 (double_int_one_p): Remove.
7594 (double_int_minus_one_p): Remove.
7595 (double_int_equal_p): Remove.
7596 (double_int_popcount): Remove.
7597 (extern add_double_with_sign): Remove.
7598 (#define add_double): Remove.
7599 (extern neg_double): Remove.
7600 (extern mul_double_with_sign): Remove.
7601 (extern mul_double_wide_with_sign): Remove.
7602 (#define mul_double): Remove.
7603 (extern lshift_double): Remove.
7604 (extern div_and_round_double): Remove.
7605 * double-int.c (add_double_with_sign): Make static.
7606 (#defined add_double): Localized from header.
7607 (neg_double): Make static.
7608 (mul_double_with_sign): Make static.
7609 (mul_double_wide_with_sign): Make static.
7610 (#defined mul_double): Localized from header.
7611 (lshift_double): Make static.
7612 (div_and_round_double): Make static.
7613 (double_int::wide_mul_with_sign): New.
7614 (double_int::sub_with_overflow): New.
7615 (double_int::neg_with_overflow): New.
7616 (double_int::divmod_with_overflow): New.
7617 * emit-rtl.c (init_emit_once): Change to new double_int API.
7618 * explow.c (plus_constant): Likewise.
7619 * expmed.c (choose_multiplier): Likewise.
7620 * fold-const.c (#define OVERFLOW_SUM_SIGN): Remove.
7621 (int_const_binop_1): Change to new double_int API.
7622 (fold_div_compare): Likewise.
7623 (maybe_canonicalize_comparison): Likewise.
7624 (pointer_may_wrap_p): Likewise.
7625 (fold_negate_const): Likewise.
7626 (fold_abs_const): Likewise.
7627 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7628 (simplify_const_binary_operation): Likewise.
7629 * tree-chrec.c (tree_fold_binomial): Likewise.
7630 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
7631 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
7632 * config/avr/avr.c (avr_double_int_push_digit): Likewise.
7633 (avr_map): Likewise.
7634 (avr_map_decompose): Likewise.
7635 (avr_out_insert_bits): Likewise.
7637 2012-09-24 Janis Johnson <janisjo@codesourcery.com>
7639 * doc/sourcebuild.texi (Selectors): Document the use of target
7640 and xfail used together.
7642 2012-09-24 Richard Guenther <rguenther@suse.de>
7645 * tree-ssa-live.c (clear_unused_block_pointer_1): Do not
7646 handle DECL_DEBUG_EXPR_IS_FROM here...
7647 (clear_unused_block_pointer): ... but here when walking all
7650 2012-09-24 Richard Guenther <rguenther@suse.de>
7652 PR tree-optimization/54684
7653 * tree-ssa-ccp.c (optimize_unreachable): Properly update stmts.
7655 2012-09-24 Marc Glisse <marc.glisse@inria.fr>
7657 * tree-ssa-forwprop.c: Include tree-ssa-propagate.h.
7658 (simplify_bitfield_ref): Handle constructors.
7659 * Makefile.in (tree-ssa-forwprop.o): Depend on tree-ssa-propagate.h.
7661 2012-09-24 Richard Guenther <rguenther@suse.de>
7663 * tree-ssa-pre.c (bitmap_find_leader, create_expression_by_pieces,
7664 find_or_generate_expression): Remove dominating stmt argument.
7665 (find_leader_in_sets, phi_translate_1, bitmap_find_leader,
7666 create_component_ref_by_pieces_1, create_component_ref_by_pieces,
7667 do_regular_insertion, do_partial_partial_insertion): Adjust.
7668 (compute_avail): Do not set uids.
7670 2012-09-24 Eric Botcazou <ebotcazou@adacore.com>
7672 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
7673 TYPE_NONALIASED_COMPONENT flag.
7674 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
7675 TYPE_NONALIASED_COMPONENT flag.
7677 2012-09-24 Jia Liu <proljc@gmail.com>
7679 * doc/lto.texi: Separate sections.
7680 * doc/plugins.texi: Likewise.
7682 2012-09-24 Richard Guenther <rguenther@suse.de>
7685 * gimple.c (gimple_copy): Properly mark the copy modified
7686 if SSA operands are present.
7688 2012-09-23 Eric Botcazou <ebotcazou@adacore.com>
7690 PR tree-optimization/54669
7691 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke
7692 maybe_clean_or_replace_eh_stmt on the modified use statements.
7694 2012-09-23 Marc Glisse <marc.glisse@inria.fr>
7696 * expr.c (do_store_flag): Remove duplicated code.
7698 2012-09-22 Segher Boessenkool <segher@kernel.crashing.org>
7700 * config/rs6000/predicates.md (altivec_register_operand,
7701 vsx_register_operand, vfloat_operand, vint_operand,
7702 vlogical_operand, gpc_reg_operand, cc_reg_operand,
7703 cc_reg_not_cr0_operand, cc_reg_not_micro_cr0_operand):
7704 If op is a SUBREG, consider its SUBREG_REG instead.
7706 2012-09-22 Uros Bizjak <ubizjak@gmail.com>
7708 * optabs.c (prepare_cmp_insn): Expand comparison of the result
7709 of memcmp through generic comparison expansion code.
7711 2012-09-21 Anthony Green <green@moxielogic.com>
7713 * config/moxie/moxie.opt: Add -mno-crt0 option.
7714 * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option.
7715 * doc/invoke.texi (Option Summary): Document -mno-crt0 option.
7717 2012-09-21 Jack Howarth <howarth@bromo.med.uc.edu>
7720 * Makefile.in (lto-symtab.o): Remove gt-lto-symtab.h dependency.
7722 2012-09-21 Dehao Chen <dehao@google.com>
7725 * tree-eh.c (lower_try_finally_dup_block): Set the correct block for
7726 stmts in the duplicated EH block.
7728 2012-09-21 Richard Guenther <rguenther@suse.de>
7730 PR tree-optimization/54647
7731 * tree-ssa-pre.c (compute_avail): Do not put COND_EXPR
7732 or VEC_COND_EXPR into EXP_GEN again.
7734 2012-09-21 Jakub Jelinek <jakub@redhat.com>
7736 PR tree-optimization/54629
7737 * tree-loop-distribution.c (classify_partition): Free loop nest only
7738 after freeing ddr. Free ddr and loop nest also if successful.
7740 2012-09-21 Matthias Klose <doko@ubuntu.com>
7742 * config/arm/arm.c (arm_mangle_type): Don't warn anymore that
7743 4.4 has changed the `va_list' mangling.
7745 2012-09-21 Eric Botcazou <ebotcazou@adacore.com>
7747 PR rtl-optimization/54290
7748 PR rtl-optimization/54644
7749 * reload1.c (choose_reload_regs): Fix thinko in previous change.
7751 2012-09-20 Segher Boessenkool <segher@kernel.crashing.org>
7753 * config/rs6000/rs6000.md (define_split for plus_eqsi):
7756 2012-09-20 Eric Botcazou <ebotcazou@adacore.com>
7758 * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair.
7760 2012-09-20 Bernd Schmidt <bernds@codesourcery.com>
7763 * haifa-sched.c (schedule_block): Skip find_modifiable_mems if using
7764 SCHED_PRESSURE_MODEL.
7766 2012-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
7768 * rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling.
7770 2012-09-20 Marek Polacek <polacek@redhat.com>
7772 * tree-ssa-operands.c (get_expr_operands): Merge identical cases.
7774 2012-09-20 Marek Polacek <polacek@redhat.com>
7776 * tree-ssa-threadupdate.c (mark_threaded_blocks): Don't cast XNEWVEC's
7778 (create_edge_and_update_destination_phis): Likewise.
7780 2012-09-20 Martin Jambor <mjambor@suse.cz>
7782 * function.c (push_cfun): Check old current_function_decl matches
7783 old cfun, set new current_function_decl to the decl of the new cfun.
7784 (push_struct_function): Likewise.
7785 (pop_cfun): Likewise.
7786 (allocate_struct_function): Move call to
7787 invoke_set_current_function_hook to the end of the function.
7788 * cfgexpand.c (estimated_stack_frame_size): Do not set and restore
7789 current_function_decl.
7790 * cgraph.c (cgraph_release_function_body): Likewise.
7791 * cgraphunit.c (cgraph_process_new_functions): Likewise.
7792 (cgraph_add_new_function): Likewise.
7793 (cgraph_analyze_function): Likewise.
7794 (assemble_thunk): Set cfun to NULL at the end.
7795 (expand_function): Move call to set_cfun downwards.
7796 * gimple-low.c (record_vars_into): Only check current_function_decl
7797 before possibly doing push_cfun.
7798 * gimplify.c (gimplify_function_tree): Do not set and restore
7799 current_function_decl.
7800 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
7801 (inline_analyze_function): Likewise.
7802 * ipa-prop.c (ipa_analyze_node): Likewise.
7803 * ipa-pure-const.c (analyze_function): Likewise.
7804 * lto-streamer-in.c (lto_input_function_body): Do not set
7805 current_function_decl.
7806 * lto-streamer-out.c (output_function): Do not set and restore
7807 current_function_decl.
7808 * omp-low.c (finalize_task_copyfn): Likewise.
7809 (expand_omp_taskreg): Likewise.
7810 (create_task_copyfn): Likewise, move push_cfun up quite a bit.
7811 * passes.c (dump_passes): Do not set and restore current_function_decl.
7812 (do_per_function): Likewise.
7813 (do_per_function_toporder): Likewise.
7814 * trans-mem.c (ipa_tm_scan_irr_function): Likewise.
7815 (ipa_tm_transform_transaction): Likewise.
7816 (ipa_tm_transform_clone): Likewise.
7817 (ipa_tm_execute): Likewise.
7818 * tree-emutls.c (lower_emutls_function_body): Likewise.
7819 * tree-inline.c (initialize_cfun): Do not call pop_cfun.
7820 (tree_function_versioning): Do not call push_cfun, do not set and
7821 restore current_function_decl. Remove assert checking consistency of
7822 cfun and current_function_decl.
7823 * tree-profile.c (tree_profiling): Do not set and restore
7824 current_function_decl.
7825 * tree-sra.c (convert_callers_for_node): Do not set
7826 current_function_decl.
7827 (convert_callers): Do not restore current_function_decl.
7828 (modify_function): Do not set current_function_decl.
7829 * tree-ssa-structalias.c (ipa_pta_execute): Do not set and restore
7830 current_function_decl.
7832 2012-09-20 Diego Novillo <dnovillo@google.com>
7835 * config/vxworks.c (vxworks_emutls_var_init): Update for new
7836 VEC_quick_push interface.
7838 2012-09-20 Richard Guenther <rguenther@suse.de>
7840 PR tree-optimization/54634
7841 * tree-data-ref.c (get_references_in_stmt): For now give
7842 up for pure functions.
7844 2012-09-20 Chen Wei-Ren <chenwj@iis.sinica.edu.tw>
7846 * doc/lto.texi: Correct typo.
7848 2012-09-19 Dehao Chen <dehao@google.com>
7850 * config/s390/s390.c (s390_chunkify_start): Replacing INSN_LOCATOR.
7851 * config/spu/spu.c (emit_nop_for_insn): Likewise.
7853 (spu_emit_branch_hint): Likewise.
7854 (insert_hbrp_for_ilb_runout): Likewise.
7855 * config/mep/mep.c (mep_make_bundle): Likewise.
7856 (mep_bundle_insns): Likewise.
7857 * config/sh/sh.c (gen_block_redirect): Likewise.
7858 * config/c6x/c6x.c (gen_one_bundle): Likewise.
7859 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Likewise.
7860 * config/picochip/picochip.c (picochip_reorg): Likewise.
7861 * config/arm/arm.c (require_pic_register): Likewise.
7862 * config/mips/mips.c (mips16_gp_pseudo_reg): Likewise.
7863 * config/bfin/bfin.c (gen_one_bundle): Likewise.
7865 2012-09-19 Mark Kettenis <kettenis@openbsd.org>
7867 * config.gcc (hppa*-*-openbsd*): New target.
7868 * config/pa/pa-openbsd.h: New file.
7869 * config/pa/pa32-openbsd.h: New file.
7870 * config/host-openbsd.c: Update copyright year.
7871 (TRY_EXCEPT_VM_SPACE): Define for OpenBSD/hppa.
7873 2012-09-19 Martin Jambor <mjambor@suse.cz>
7875 * ipa-prop.c (prune_expression_for_jf): New function.
7876 (ipa_set_jf_constant): Use it.
7877 (ipa_set_jf_arith_pass_through): Likewise.
7878 (determine_known_aggregate_parts): Likewise.
7880 2012-09-19 Steve Ellcey <sellcey@mips.com>
7882 * config.gcc (mips*-mti-elf*): New target.
7883 * config/mips/mti-elf.h: New file.
7884 * config/mips/t-mti-elf: New file.
7886 2012-09-19 Dehao Chen <dehao@google.com>
7888 * toplev.c (general_init): Init block_locations.
7889 * tree.c (tree_set_block): New.
7890 (tree_block): Change to use LOCATION_BLOCK.
7891 * tree.h (TREE_SET_BLOCK): New.
7892 * final.c (reemit_insn_block_notes): Change to use LOCATION_BLOCK.
7893 (final_start_function): Likewise.
7894 * input.c (expand_location_1): Likewise.
7895 * input.h (LOCATION_LOCUS): New.
7896 (LOCATION_BLOCK): New.
7897 (IS_UNKNOWN_LOCATION): New.
7898 * fold-const.c (expr_location_or): Change to use new location.
7899 * reorg.c (emit_delay_sequence): Likewise.
7900 (try_merge_delay_insns): Likewise.
7901 * modulo-sched.c (dump_insn_location): Likewise.
7902 * lto-streamer-out.c (lto_output_location_bitpack): Likewise.
7903 * lto-cgraph.c (output_node_opt_summary): Likewise.
7904 * jump.c (rtx_renumbered_equal_p): Likewise.
7905 * ifcvt.c (noce_try_move): Likewise.
7906 (noce_try_store_flag): Likewise.
7907 (noce_try_store_flag_constants): Likewise.
7908 (noce_try_addcc): Likewise.
7909 (noce_try_store_flag_mask): Likewise.
7910 (noce_try_cmove): Likewise.
7911 (noce_try_cmove_arith): Likewise.
7912 (noce_try_minmax): Likewise.
7913 (noce_try_abs): Likewise.
7914 (noce_try_sign_mask): Likewise.
7915 (noce_try_bitop): Likewise.
7916 (noce_process_if_block): Likewise.
7917 (cond_move_process_if_block): Likewise.
7918 (find_cond_trap): Likewise.
7919 * ipa-prop.c (ipa_set_jf_constant): Likewise.
7920 (ipa_write_jump_function): Likewise.
7921 * dwarf2out.c (add_src_coords_attributes): Likewise.
7922 * expr.c (expand_expr_real): Likewise.
7923 * tree-parloops.c (create_loop_fn): Likewise.
7924 * recog.c (peep2_attempt): Likewise.
7925 * function.c (free_after_compilation): Likewise.
7926 (expand_function_end): Likewise.
7927 (set_insn_locations): Likewise.
7928 (thread_prologue_and_epilogue_insns): Likewise.
7929 * print-rtl.c (print_rtx): Likewise.
7930 * profile.c (branch_prob): Likewise.
7931 * trans-mem.c (ipa_tm_scan_irr_block): Likewise.
7932 * gimplify.c (gimplify_call_expr): Likewise.
7933 * except.c (duplicate_eh_regions_1): Likewise.
7934 * emit-rtl.c (try_split): Likewise.
7935 (make_insn_raw): Likewise.
7936 (make_debug_insn_raw): Likewise.
7937 (make_jump_insn_raw): Likewise.
7938 (make_call_insn_raw): Likewise.
7939 (emit_pattern_after_setloc): Likewise.
7940 (emit_pattern_after): Likewise.
7941 (emit_debug_insn_after): Likewise.
7942 (emit_pattern_before): Likewise.
7943 (emit_insn_before_setloc): Likewise.
7944 (emit_jump_insn_before): Likewise.
7945 (emit_call_insn_before_setloc): Likewise.
7946 (emit_call_insn_before): Likeise.
7947 (emit_debug_insn_before_setloc): Likewise.
7948 (emit_copy_of_insn_after): Likewise.
7949 (insn_locators_alloc): Remove.
7950 (insn_locators_finalize): Remove.
7951 (insn_locators_free): Remove.
7952 (set_curr_insn_source_location): Remove.
7953 (get_curr_insn_source_location): Remove.
7954 (set_curr_insn_block): Remove.
7955 (get_curr_insn_block): Remove.
7956 (locator_scope): Remove.
7957 (insn_scope): Change to use new location.
7958 (locator_location): Remove.
7959 (insn_line): Change to use new location.
7960 (locator_file): Remove.
7961 (insn_file): Change to use new location.
7962 (locator_eq): Remove.
7963 (insn_locations_init): New.
7964 (insn_locations_finalize): New.
7965 (set_curr_insn_location): New.
7966 (curr_insn_location): New.
7967 * cfgexpand.c (gimple_assign_rhs_to_tree): Change to use new location.
7968 (expand_gimple_cond): Likewise.
7969 (expand_call_stmt): Likewise.
7970 (expand_gimple_stmt_1): Likewise.
7971 (expand_gimple_basic_block): Likewise.
7972 (construct_exit_block): Likewise.
7973 (gimple_expand_cfg): Likewise.
7974 * cfgcleanup.c (try_forward_edges): Likewise.
7975 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
7976 (dump_scope_block): Likewise.
7977 (remove_unused_locals): Likewise.
7978 * rtl.c (rtx_equal_p_cb): Likewise.
7979 (rtx_equal_p): Likewise.
7980 * rtl.h (XUINT): New.
7981 (INSN_LOCATOR): Remove.
7982 (CURR_INSN_LOCATION): Remove.
7983 (INSN_LOCATION): New.
7984 (INSN_HAS_LOCATION): New.
7985 * tree-inline.c (remap_gimple_op_r): Change to use new location.
7986 (copy_tree_body_r): Likewise.
7987 (copy_phis_for_bb): Likewise.
7988 (expand_call_inline): Likewise.
7989 * tree-streamer-in.c (lto_input_ts_exp_tree_pointers): Likewise.
7990 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
7991 * gimple-streamer-out.c (output_gimple_stmt): Likewise.
7992 * combine.c (try_combine): Likewise.
7993 * tree-outof-ssa.c (set_location_for_edge): Likewise.
7994 (insert_partition_copy_on_edge): Likewise.
7995 (insert_value_copy_on_edge): Likewise.
7996 (insert_rtx_to_part_on_edge): Likewise.
7997 (insert_part_to_rtx_on_edge): Likewise.
7998 * basic-block.h (edge_def): Remove field.
7999 * gimple.h (gimple_statement_base): Remove field.
8000 (gimple_bb): Change to use new location.
8001 (gimple_set_block): Likewise.
8002 (gimple_has_location): Likewise.
8003 * tree-cfg.c (make_cond_expr_edges): Likewise.
8004 (make_goto_expr_edges): Likewise.
8005 (gimple_can_merge_blocks_p): Likewise.
8006 (move_stmt_op): Likewise.
8007 (move_block_to_fn): Likewise.
8008 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
8009 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8010 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
8011 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
8012 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8013 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
8014 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8015 * config/score/score.c (score_output_mi_thunk): Likewise.
8016 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
8017 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
8018 * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
8019 (unique_locus_on_edge_between_p): Likewise.
8020 (emit_nop_for_unique_locus_between): Likewise.
8021 (force_nonfallthru_and_redirect): Likewise.
8022 (fixup_reorder_chain): Likewise.
8023 (cfg_layout_merge_blocks): Likewise.
8024 * stmt.c (emit_case_nodes): Likewise.
8026 2012-09-19 Bernd Schmidt <bernds@codesourcery.com>
8028 * dbgcnt.def (sched_breakdep): New counter.
8029 * haifa-sched.c (update_insn_after_change): New static function,
8030 broken out of haifa_change_pattern.
8031 (haifa_change_pattern): Call it.
8032 (dep_t heap vecs): Declare.
8033 (INSN_COST): Define earlier.
8034 (next_cycle_replace_deps, next_cycle_apply): New static variables.
8035 (apply_replacement): New static function.
8036 (recompute_todo_spec): New argument FOR_BACKTRACK. All callers
8037 changed. Handle DEP_REPLACE deps.
8038 (contributes_to_priority_p): False for replaceable deps.
8039 (must_restore_pattern_p, restore_pattern): New static functions.
8040 (schedule_insn): Use them. Apply replacements for broken deps.
8041 (struct haifa_saved_data): Add new fields to keep track of
8043 (save_backtrack_point): Initialize them.
8044 (undo_replacements_for_backtrack): New static function.
8045 (restore_last_backtrack_point, free_topmost_backtrack_point):
8046 Use it and keep track of replacements.
8047 (perform_replacements_new_cycle, undo_all_replacements): New static
8049 (schedule_block): Call these two as necessary. Call
8050 find_modifiable_mems.
8051 (try_ready): Tweak the assert. Check for DEP_POSTPONED.
8052 * sched-deps.c: Include "emit-rtl.h".
8053 (init_dep_1): Initialize DEP_NONREG, DEP_MULTIPLE and DEP_REPLACE.
8054 (dep_spec_p): True for DEP_REPLACE deps.
8055 (mark_as_hard): New static variable.
8056 (update_dep): Update DEP_NONREG and DEP_MULTIPLE.
8057 (add_dependence_list): New argument hard. All callers changed. Set
8058 and clear mark_as_hard around function body.
8059 (add_dependence_list_and_free): Likewise.
8060 (haifa_note_mem_dep): Set DEP_NONREG.
8061 (haifa_note_dep): Likewise if mark_as_hard is true.
8062 (sched_analyze_insn): Switch loop with if statement testing for
8064 (struct mem_inc_info): New.
8065 (attempt_change, parse_add_or_inc, find_inc, find_mem): New static
8067 (find_modifiable_mems): New function.
8068 * sched-int.h (struct dep_replacement): New.
8069 (struct _dep): Add replace, nonreg and multiple fields. Make type and
8071 (UNKNOWN_DEP_COST): Change to match the bitfield.
8072 (DEP_NONREG, DEP_MULTIPLE, DEP_REPLACE): New macros.
8073 (DEP_POSTPONED): New macro.
8074 (DEP_CANCELLED): Renumber.
8075 (find_modifiable_mems): Declare.
8076 (enum SCHED_FLAGS): Add DONT_BREAK_DEPENDENCIES.
8077 * sched-rgn.c (init_ready_list): Set TODO_SPEC here.
8078 (new_ready): Don't set HARD_DEP, use DEP_POSTPONED.
8079 (debug_dependencies): Dump DEP_NONREG and DEP_MULTIPLE.
8080 * Makefile.in (sched-deps.o): Update dependencies.
8081 * config/c6x/c6x.c (in_hwloop): New static variable.
8082 (c6x_set_sched_flags): If it is true, add DONT_BREAK_DEPENDENCIES.
8083 (hwloop_optimize): Set and clear it around preliminary scheduling pass.
8085 2012-09-19 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8087 * config/rs6000/rs6000-builtin.def: Add __builtin_ppc_get_timebase
8088 and __builtin_ppc_mftb.
8089 * config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New function
8090 to expand an expression that calls a built-in without arguments.
8091 (rs6000_expand_builtin): Add __builtin_ppc_get_timebase and
8093 (rs6000_init_builtins): Likewise.
8094 * config/rs6000/rs6000.md (rs6000_get_timebase): New pattern.
8095 (rs6000_get_timebase_ppc32): New pattern.
8096 (rs6000_mftb_<mode>): New pattern.
8098 * doc/extend.texi (PowerPC Built-in Functions): New section.
8099 (PowerPC AltiVec/VSX Built-in Functions): Move some built-ins
8100 unrelated to Altivec/VSX to the new section.
8102 2012-09-19 David Edelsohn <dje.gcc@gmail.com>
8104 * rs6000.md (mac*): Remove extra spaces.
8107 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
8110 * config/sh/predicates.md (arith_reg_or_t_reg_operand): New predicate.
8111 * config/sh/sh.md (*rotcr): Use arith_reg_or_t_reg_operand predicate.
8112 Handle the case where one of the operands is T_REG.
8113 Add new pattern to handle MSB extraction.
8115 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
8118 * config/sh/sh.md (*addc): Add pattern to handle one bit left shifts.
8120 2012-09-19 Oleg Endo <olegendo@gcc.gnu.org>
8122 * config/sh/sh.md (prologue, epilogue): Use braced strings.
8124 2012-09-19 Eric Botcazou <ebotcazou@adacore.com>
8126 PR rtl-optimization/54290
8127 * reload1.c (choose_reload_regs): Also take into account secondary MEMs
8128 to remove address replacements for inherited reloads.
8129 (replaced_subreg): Move around.
8131 2012-09-19 David Edelsohn <dje.gcc@gmail.com>
8133 * config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT,
8134 MASK_PPC_GFXOPT, and MASK_MFCRF.
8136 2012-09-19 Richard Guenther <rguenther@suse.de>
8138 * passes.c (init_optimization_passes): For -Og move
8139 pass_object_sizes inbetween CCP and copyprop.
8141 2012-09-19 Richard Guenther <rguenther@suse.de>
8143 * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify.
8145 2012-09-19 Jan Hubicka <jh@suse.cz>
8147 * symtab.c (insert_to_assembler_name_hash): Do not insert
8149 (unlink_from_assembler_name_hash): NULL out pointers of unlinked var.
8150 (symtab_prevail_in_asm_name_hash): New.
8151 (symtab_initialize_asm_name_hash): Break out from ...
8152 (symtab_node_for_asm): ... here.
8153 (dump_symtab_base): Dump LTO file data.
8154 (verify_symtab_base): Register vars are not in symtab.
8155 * cgraph.h (symtab_initialize_asm_name_hash,
8156 symtab_prevail_in_asm_name_hash): New functions.
8157 (symtab_real_symbol_p): New inline.
8158 * lto-symtab.c: Do not include gt-lto-symtab.h.
8159 (lto_symtab_entry_def): Remove.
8160 (lto_symtab_entry_t): Remove.
8161 (lto_symtab_identifiers): Remove.
8162 (lto_symtab_free): Remove.
8163 (lto_symtab_entry_hash): Remove.
8164 (lto_symtab_entry_eq): Remove.
8165 (lto_symtab_entry_marked_p): Remove.
8166 (lto_symtab_maybe_init_hash_table): Remove.
8167 (resolution_guessed_p, set_resolution_guessed): New functions.
8168 (lto_symtab_register_decl): Only set resolution info.
8169 (lto_symtab_get, lto_symtab_get_resolution): Remove.
8170 (lto_symtab_merge): Reorg to work across symtab; do nothing if decls
8172 (lto_symtab_resolve_replaceable_p): Reorg to work on symtab.
8173 (lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can
8175 (lto_symtab_resolve_symbols): Reorg to work on symtab.
8176 (lto_symtab_merge_decls_2): Likewise.
8177 (lto_symtab_merge_decls_1): Likewise; add debug dumps.
8178 (lto_symtab_merge_decls): Likewise; do not merge at ltrans stage.
8179 (lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab.
8180 (lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans
8182 (lto_symtab_prevailing_decl): Rewrite to lookup into symtab.
8183 * lto-streaer.h (lto_symtab_free): Remove.
8184 * lto-cgraph.c (add_references): Cleanup.
8185 * varpool.c (varpool_assemble_decl): Skip hard regs.
8187 2012-09-19 Richard Guenther <rguenther@suse.de>
8190 * common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add.
8192 2012-09-19 Richard Guenther <rguenther@suse.de>
8195 * common.opt (optimize_debug): New variable.
8196 (Og): New optimization level.
8197 * doc/invoke.texi (Og): Document.
8198 * opts.c (maybe_default_option): Add debug parameter.
8199 (maybe_default_options): Likewise.
8200 (default_options_optimization): Handle -Og.
8201 (common_handle_option): Likewise.
8202 * passes.c (gate_all_optimizations): Do not run with -Og.
8203 (gate_all_optimizations_g): New gate, run with -Og.
8204 (pass_all_optimizations_g): New container pass, run with -Og.
8205 (init_optimization_passes): Schedule pass_all_optimizations_g
8206 alongside pass_all_optimizations.
8208 2012-09-19 Richard Guenther <rguenther@suse.de>
8210 PR tree-optimization/54132
8211 * tree-loop-distribution.c (classify_partition): Properly
8212 check dependences for memmove.
8213 * tree-data-ref.h (compute_affine_dependence): Declare.
8214 * tree-data-ref.c (compute_affine_dependence): Export.
8216 2012-09-19 Zhenqiang Chen <zhenqiang.chen@arm.com>
8219 * bb-reorder.c (connect_better_edge_p): New added.
8220 (find_traces_1_round): When optimizing for size, ignore edge frequency
8221 and probability, and handle all in one round.
8222 (bb_to_key): Use bb->index as key when optimizing for size.
8223 (better_edge_p): The bb with smaller index is better when optimizing
8225 (connect_traces): When optimizing for size, connect block n with
8226 block n + 1; connect trace m with trace m + 1 if falling through.
8227 (gate_handle_reorder_blocks): Enable bbro when optimizing for -Os.
8229 2012-09-19 Bin Cheng <bin.cheng@arm.com>
8231 * fold-const.c (fold_truth_andor): Remove duplicated check on
8234 2012-09-18 Eric Botcazou <ebotcazou@adacore.com>
8237 * expr.c (store_field): Handle a PARALLEL in more cases.
8239 2012-09-18 Segher Boessenkool <segher@kernel.crashing.org>
8241 * config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): Delete.
8242 (abssi2, abs<mode>2_isel, nabs<mode>2_isel, abssi2_nopower,
8243 nabs_nopower): Delete.
8244 (absdi2, absdi2_internal, nabsdi2): Delete.
8245 (smindi3, smaxdi3, umindi3, umaxdi3): Delete.
8247 2012-09-18 Georg-Johann Lay <avr@gjlay.de>
8249 * config/avr/avr.md: Tidy up empty "". Fix C code indentation.
8250 * config/avr/avr-fixed.md: Ditto.
8252 2012-09-18 Maciej W. Rozycki <macro@codesourcery.com>
8254 * config/rs6000/rs6000.c (print_operand) <'c'>: Remove.
8255 * config/rs6000/spe.md: Remove a leftover comment.
8257 2012-09-18 Jakub Jelinek <jakub@redhat.com>
8260 * config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD
8261 AND/IOR/XOR cost calculation to MODE_INT class modes.
8263 2012-09-18 Thomas Quinot <quinot@adacore.com>
8265 * doc/invoke.texi: Document -fada-spec-parent.
8267 2012-09-18 Jakub Jelinek <jakub@redhat.com>
8269 PR tree-optimization/54610
8270 * tree-ssa-forwprop.c: Include optabs.h. Don't include
8272 (simplify_vector_constructor): Don't use vect_gen_perm_mask,
8273 instead create the mask constant here.
8274 * Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H).
8275 Don't depend on $(TREE_VECTORIZER_H).
8277 2012-09-18 Florian Weimer <fweimer@redhat.com>
8279 * Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def.
8281 2012-09-18 Richard Guenther <rguenther@suse.de>
8283 * statistics.h (CXX_MEM_STAT_INFO): New define.
8284 * gimple.h (gimple_build_assign_with_ops_stat,
8285 gimple_build_assign_with_ops, gimple_build_assign_with_ops3):
8286 Turn into an overload of the function gimple_build_assign_with_ops.
8287 * gimple.c (gimple_build_assign_with_ops_stat): Rename to ...
8288 (gimple_build_assign_with_ops): ... this.
8289 * tree-ssa-loop-im.c (move_computations_stmt): Adjust.
8290 * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
8291 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
8292 (vect_permute_load_chain): Likewise.
8293 * tree-vect-generic.c (expand_vector_divmod): Likewise.
8294 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
8295 (vect_recog_divmod_pattern): Likewise.
8296 (vect_recog_mixed_size_cond_pattern): Likewise.
8297 (adjust_bool_pattern): Likewise.
8298 * tree-vect-slp.c (vect_create_mask_and_perm): Likewise.
8299 * tree-vect-stmts.c (vectorizable_operation): Likewise.
8300 (permute_vec_elements): Likewise.
8301 (vectorizable_load): Likewise.
8303 2012-09-17 Paul Koning <ni1d@arrl.net>
8305 * doc/invoke.text (-feliminate-unused-debug-types): Update to
8306 reflect that this is enabled by default.
8308 2012-09-17 Ben Cheng <bccheng@google.com
8310 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the
8311 dynamic linker commands for statically linked programs.
8313 2012-09-17 Ulrich Weigand <ulrich.weigand@linaro.org>
8315 * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set
8317 * config/arm/arm.md ("vec_set<mode>_internal"): Support memory source
8318 operands, implemented via vld1 instruction.
8319 ("vec_extract<mode>"): Support memory destination operands, implemented
8320 via vst1 instruction.
8321 ("neon_vst1_lane<mode>"): Use UNSPEC_VST1_LANE instead of vec_select.
8322 * config/arm/predicates.md ("neon_lane_number"): Remove.
8324 2012-09-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8325 Ulrich Weigand <ulrich.weigand@linaro.org>
8327 * config/arm/arm.c (output_move_neon): Update comment.
8328 Use vld1.64/vst1.64 instead of vldm/vstm where possible.
8329 (neon_vector_mem_operand): Support double-word modes.
8330 * config/arm/neon.md (*neon_mov VD): Call output_move_neon
8331 instead of output_move_vfp. Change constraint from Uv to Un.
8333 2012-09-17 Richard Guenther <rguenther@suse.de>
8336 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
8337 FIXED_VALUE_TYPE instead of struct fixed_value.
8339 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
8341 * config/avr/avr.c (CONST_FIXED_P): Remove define.
8342 * config/avr/avr.md (add<mode>3): Use CONST_FIXED_P.
8344 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
8347 * config.gcc (tm_file,avr): Add avr/avr-arch.h.
8348 * config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to
8349 compile. Don't depend on TM_H. Use CFLAGS_FOR_BUILD.
8350 * config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out
8352 * config/avr/avr-arch.h: ...this new file.
8353 * config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h,
8355 * comparator: Make letters smaller than digits.
8356 * config/avr/avr-devices.c: Don't include headers if used in
8357 gen-avr-mmcu-texi.c.
8358 * doc/avr-mmcu.texi: Regenerate.
8360 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
8362 * rtl.h (CONST_FIXED_P): New predicate macro.
8364 2012-09-17 Eric Botcazou <ebotcazou@adacore.com>
8366 * tree-cfgcleanup. (cleanup_control_expr_graph) <GIMPLE_COND>: Remove
8367 code doing propagation from degenerate PHI nodes.
8368 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function.
8369 (propagate_constants_for_unrolling): Likewise.
8370 (tree_unroll_loops_completely): If the current loop has been unrolled
8371 and its father isn't the entire function, propagate constants within
8372 the new basic blocks by means of propagate_constants_for_unrolling.
8374 2012-09-17 Jakub Jelinek <jakub@redhat.com>
8376 PR tree-optimization/54563
8377 * tree-ssa-math-opts.c (execute_cse_sincos): Call
8378 gimple_purge_dead_eh_edges if last call has been changed.
8380 2012-09-17 Georg-Johann Lay <avr@gjlay.de>
8383 * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode.
8384 (avr_out_plus_1): Remove log comments from assembler output.
8386 2012-09-17 Ruben Buchatskiy <ruben@ispras.ru>
8388 * config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands
8391 2012-09-16 Richard Sandiford <rdsandiford@googlemail.com>
8393 * calls.c (expand_call): Use emit_group_move for PARALLEL->PARALLEL
8396 2012-09-15 Tom de Vries <tom@codesourcery.com>
8398 * tree-vrp.c (extract_range_from_binary_expr_1): Fix bug in handling of
8399 LSHIFT_EXPR with shift range. Handle more LSHIFT_EXPR cases with shift
8402 2012-09-15 Georg-Johann Lay <avr@gjlay.de>
8405 * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S,
8406 ALL124U): New mode iterators.
8407 (<code_stdname><mode>3): New insns for SS_PLUS, SS_MINUS.
8408 (<code_stdname><mode>3): New insns for US_PLUS, US_MINUS.
8409 (usneg<mode>2): New insns.
8410 (<code_stdname><mode>2): New expanders for SS_NEG, SS_ABS.
8411 (*<code_stdname><mode>2): New insns for SS_NEG, SS_ABS.
8412 * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators.
8413 (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead.
8414 (<code_stdname><mode>3): New expanders for SS_PLUS, SS_MINUS.
8415 (<code_stdname><mode>3): New expanders for US_PLUS, US_MINUS.
8416 (<code_stdname><mode>3_insn): New insns.
8417 (<code_stdname><mode>3_const_insn): New insns.
8418 * config/avr/avr.md (cc): Add: plus. Remove: out_plus,
8419 out_plus_noclobber, minus.
8420 (length): Add: plus. Remove: out_plus, out_plus_noclobber,
8421 plus64, minus, minus64.
8422 (abelian): New code_attr.
8423 (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs,
8424 us_plus, us_minus, us_neg.
8425 (*add<mode>3, add<mode>3_clobber, add<mode>3, addpsi3, sub<mode>3):
8426 Use avr_out_plus to output.
8427 * config/avr/avr-protos.h (avr_out_plus): Change prototype.
8428 (avr_out_plus_noclobber, avr_out_minus): Remove.
8429 (avr_out_plus64, avr_out_minus64): Remove.
8430 * config/avr/avr.c (avr_out_plus_1): Add new default arguments
8431 code_sat, sign. Saturate after operation if code_sat != UNKNOWN.
8432 (avr_out_plus_symbol): New static function.
8433 (avr_out_plus): Rewrite.
8434 (adjust_insn_length): Handle: ADJUST_LEN_PLUS. Remove handling
8435 of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS,
8436 ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER.
8437 (notice_update_cc): Handle: CC_PLUS. Remove handling of: CC_MINUS,
8438 CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER
8439 (avr_out_plus_noclobber, avr_out_minus): Remove.
8440 (avr_out_plus64, avr_out_minus64): Remove.
8441 (avr_print_operand): Print raw REGNO if 'r' is used with REG.
8443 2012-09-15 Oleg Endo <olegendo@gcc.gnu.org>
8445 * config/sh/sh.c (sh_rtx_costs): Add handling of MEM, SIGN_EXTEND,
8446 ZERO_EXTEND and PARALLEL cases.
8447 (sh_address_cost): Correct rtx parsing and tweak cost estimations.
8449 2012-09-14 Sandra Loosemore <sandra@codesourcery.com>
8451 * doc/tm.texi.in (Stack Arguments): Update obsolete references
8452 to current_function_outgoing_args_size.
8453 (Function Entry): Likewise for current_function_pops_args,
8454 current_function_pretend_args_size,
8455 current_function_outgoing_args_size, and
8456 current_function_epilogue_delay_list.
8457 (Misc): Fix garbled sentence referencing nonexistent
8458 current_function_leaf_function.
8459 * doc/tm.texi: Regenerated.
8461 2012-09-14 Dehao Chen <dehao@google.com>
8463 * tree-eh.c (goto_queue_node): New field.
8464 (record_in_goto_queue): New parameter.
8465 (record_in_goto_queue_label): New parameter.
8466 (lower_try_finally_dup_block): New parameter.
8467 (maybe_record_in_goto_queue): Update source location.
8468 (lower_try_finally_copy): Likewise.
8469 (honor_protect_cleanup_actions): Likewise.
8470 * gimplify.c (gimplify_expr): Reset the location to unknown.
8472 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
8474 * configure: Regenerated.
8476 2012-09-14 Walter Lee <walt@tilera.com>
8478 * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
8479 option for TILEPro and TILE-Gx.
8480 (TILE-Gx Options): Fix grammar and spellings in documentation for
8483 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
8486 * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE.
8487 (fold_binary_loc): Likewise.
8488 * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE.
8489 (or_comparisons_1): Likewise.
8491 2012-09-14 Richard Earnshaw <rearnsha@arm.com>
8494 PR rtl-optimization/54540
8495 * reload.c (find_dummy_reload): Don't use OUT as a reload reg
8496 for IN if it overlaps a fixed register.
8498 2012-09-14 Eric Botcazou <ebotcazou@adacore.com>
8500 PR rtl-optimization/44194
8501 * calls.c (expand_call): In the PARALLEL case, copy the return value
8502 into pseudos instead of spilling it onto the stack.
8503 * emit-rtl.c (adjust_address_1): Rename ADJUST into ADJUST_ADDRESS and
8504 add new ADJUST_OBJECT parameter.
8505 If ADJUST_OBJECT is set, drop the underlying object if it cannot be
8506 proved that the adjusted memory access is still within its bounds.
8507 (adjust_automodify_address_1): Adjust call to adjust_address_1.
8508 (widen_memory_access): Likewise.
8509 * expmed.c (store_bit_field_1): Call adjust_bitfield_address instead
8510 of adjust_address. Do not drop the underlying object of a MEM.
8511 (store_fixed_bit_field): Likewise.
8512 (extract_bit_field_1): Likewise. Fix oversight in recursion.
8513 (extract_fixed_bit_field): Likewise.
8514 * expr.h (adjust_address_1): Adjust prototype.
8515 (adjust_address): Adjust call to adjust_address_1.
8516 (adjust_address_nv): Likewise.
8517 (adjust_bitfield_address): New macro.
8518 (adjust_bitfield_address_nv): Likewise.
8519 * expr.c (expand_assignment): Handle a PARALLEL in more cases.
8520 (store_expr): Likewise.
8521 (store_field): Likewise.
8523 * dse.c: Fix typos in the head comment.
8525 2012-09-14 Christian Bruel <christian.bruel@st.com>
8528 * config/sh/sh-protos.h (sh_need_epilogue): Delete.
8529 (sh_can_use_simple_return_p): Declare.
8530 * config/sh/sh.c (sh_can_use_simple_return_p): Define.
8531 (sh_need_epilogue, sh_need_epilogue_known): Delete.
8532 (sh_output_function_epilogue): Remove sh_need_epilogue_known.
8533 * config/sh/sh.md (simple_return, return): Define.
8534 (epilogue): Use inline return rtl.
8535 (sh_expand_epilogue): Cleanup parameters boolean type.
8536 * config/sh/iterators.md (any_return): New iterator.
8538 2012-09-14 Christian Bruel <christian.bruel@st.com>
8540 * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG.
8541 * config/sh/sh.c (sequence_insn_p): Check INSNP_P for SEQUENCE.
8543 2012-09-14 Jakub Jelinek <jakub@redhat.com>
8546 * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
8547 instead of (match_dup 0) as second argument to vec_merge.
8548 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
8549 Remove third alternative.
8550 (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise. Negate
8551 operand 2 instead of operand 1, but put it as first argument of fma.
8552 * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
8553 _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
8556 2012-09-14 Richard Guenther <rguenther@suse.de>
8558 PR tree-optimization/54565
8559 * passes.c (init_optimization_passes): Adjust comments.
8560 (execute_function_todo): Do not execute execute_update_addresses_taken
8561 before processing TODO_rebuild_alias.
8562 * tree-ssa-ccp.c (do_ssa_ccp): Schedule TODO_update_address_taken.
8564 2012-09-14 Richard Guenther <rguenther@suse.de>
8566 * tree-vrp.c (register_new_assert_for): Simplify for backward walk.
8567 (find_assert_locations_1): Walk the basic-block backwards, properly
8568 add/prune from live. Use live for asserts derived from stmts.
8570 2012-09-14 Marc Glisse <marc.glisse@inria.fr>
8572 * tree-ssa-forwprop.c (simplify_bitfield_ref): Call
8573 get_prop_source_stmt.
8574 (simplify_permutation): Likewise.
8575 (simplify_vector_constructor): Likewise.
8577 2012-09-14 Richard Guenther <rguenther@suse.de>
8579 * builtin-types.def (BT_FN_CONST_STRING): Add.
8580 * builtins.def (BUILT_IN_FILE, BUILT_IN_FUNCTION,
8581 BUILT_IN_LINE): New builtins.
8582 * gimplify.c (gimplify_call_expr): Expand them.
8583 * doc/extend.texi (__builtin_LINE, __builtin_FUNCTION,
8584 __builtin_FILE): Document.
8586 2012-09-13 Anthony Green <green@moxielogic.com>
8588 * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support.
8589 (MULTILIB_DEFAULTS): Define.
8591 (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support.
8592 (TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and
8593 __MOXIE_BIG_ENDIAN__.
8594 * config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS): Define.
8595 * config/moxie/moxie.opt: New file.
8596 * doc/invoke.texi (Moxie Options): Add section documenting -mel
8599 2012-09-13 Paolo Carlini <paolo.carlini@oracle.com>
8600 Manuel López-Ibáñez <manu@gcc.gnu.org>
8603 * doc/invoke.texi ([Winit-self]): Document as enabled by -Wall in C++.
8605 2012-09-13 Eric Botcazou <ebotcazou@adacore.com>
8607 * config/sparc/predicates.md (input_operand): Do not consider TImode
8608 constants as 1-instruction integer constants.
8609 Use register_or_zero_operand instead of register_operand and tidy up.
8610 * config/sparc/sparc.md (movti): New expander.
8611 (movti_insn_sp64): New instruction.
8612 (movti_insn_sp64_hq): Likewise.
8613 (TImode splitters): New splitters.
8614 * config/sparc/sparc.c (sparc_expand_move) <TImode>: New case.
8615 (sparc_legitimate_address_p): Return 0 for REG+REG in TImode.
8617 * config/sparc/sparc-protos.h (arith_double_4096_operand): Delete.
8618 (arith_4096_operand): Likewise.
8619 (zero_operand): Likewise.
8620 (fp_zero_operand): Likewise.
8621 (reg_or_0_operand): Likewise.
8623 2012-09-13 Jakub Jelinek <jakub@redhat.com>
8625 * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping.
8626 * configure: Regenerated.
8628 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
8630 * config/i386/i386.md (prefetch): Do not assert mode of operand 0.
8631 (*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
8633 (*prefetch_sse): ... this.
8634 (*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
8636 (*prefetch_3dnow): ... this.
8638 2012-09-13 Steven Bosscher <steven@gcc.gnu.org>
8640 * ipa-pure-const.c (state_from_flags, local_pure_const): Use
8641 current_function_name instead of lang_hooks.decl_printable_name.
8643 * function.h (fndecl_name): New prototype.
8644 * function.c (fndecl_name): New function.
8645 * vecir.h (cgraph_node_p): New standard IR VEC type.
8646 * trans-mem.c (cgraph_node_p): No need anymore to define it here.
8647 * ipa-utils.h (ipa_get_nodes_in_cycle): New prototype.
8648 * ipa-utils.c (ipa_get_nodes_in_cycle): New function.
8649 * ipa-reference.c: Don't include langhooks.h, and certainly not twice.
8650 Fix many formatting issues (long lines, short lines, spacing, etc.).
8651 (get_static_name): Use fndecl_name.
8652 (dump_static_vars_set_to_file): New function split out from propagate.
8653 (union_static_var_sets): New function, union two sets and collapse
8654 to all_module_statics as quickly as possible.
8655 (intersect_static_var_sets): New function, similar to above.
8656 (copy_static_var_set): Renamed from copy_global_bitmap and rewritten
8657 to allocate a copy on the same bitmap_obstack as the source set.
8658 (propagate_bits): Simplify, and clarify by using union_static_var_sets.
8659 (generate_summary): Remove bm_temp. Print UID of promotable globals.
8660 (read_write_all_from_decl): Use pass-by-reference, bless C++.
8661 (get_read_write_all_from_node): New function, split out from propagate.
8662 (propagate): Simplify and clarify with helper functions. Use
8663 ipa_get_nodes_in_cycle to walk all nodes in a reduced node.
8664 (ipa_reference_read_optimization_summary): Use fndecl_name instead of
8665 lang_hooks.decl_printable_name.
8667 * rtl.h (print_rtl_single_with_indent): New prototype.
8668 * print-rtl.c (print_rtl_single_with_indent): New function.
8669 * cfghooks.h (empty_block_p, split_block_before_cond_jump): New hooks.
8670 * cfghooks.c (empty_block_p, split_block_before_cond_jump): Implement.
8671 * cfgrtl.c (rtl_block_empty_p, rtl_split_block_before_cond_jump):
8672 Implement RTL specific hooks.
8673 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Register the new hooks.
8674 * tree-cfg.c (gimple_empty_block_p,
8675 gimple_split_block_before_cond_jump): Implement GIMPLE specific hooks.
8676 (gimple_cfg_hooks): Register the new hooks.
8677 * tree-ssa-phiopt.c (empty_block_p): Remove in favor of new hook.
8679 2012-09-13 Richard Guenther <rguenther@suse.de>
8681 * tree-ssa-sccvn.h (enum vn_kind): New.
8682 (vn_get_stmt_kind): Likewise.
8683 * tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust
8685 (visit_use): Use it.
8686 * tree-ssa-pre.c (compute_avail): Likewise, simplify further.
8688 2012-09-13 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8690 * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
8691 for targets bdver1, bdver2, btver1 and btver2.
8693 2012-09-13 Christophe Lyon <christophe.lyon@linaro.org>
8694 Richard Earnshaw <rearnsha@arm.com>
8696 * config/arm/arm.md (arm_rev): Factorize thumb1, thumb2 and arm
8697 variants for rev instruction..
8698 (thumb1_rev): Delete pattern.
8699 (arm_revsh): New pattern to support builtin_bswap16.
8700 (arm_rev16, bswaphi2): Likewise.
8702 2012-09-12 Teresa Johnson <tejohnson@google.com>
8704 PR gcov-profile/54487
8705 * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
8706 test using F_SETLKW with fcntl.
8707 * configure, config.in: Regenerate.
8709 2012-09-12 Jan Hubicka <jh@suse.cz>
8712 * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride.
8713 (set_hint_predicate): New function.
8714 (reset_inline_summary): Reset loop stride.
8715 (remap_predicate_after_duplication): New function.
8716 (remap_hint_predicate_after_duplication): New function.
8717 (inline_node_duplication_hook): Update.
8718 (dump_inline_summary): Dump stride summaries.
8719 (estimate_function_body_sizes): Compute strides.
8720 (remap_hint_predicate): New function.
8721 (inline_merge_summary): Use it.
8722 (inline_read_section): Read stride.
8723 (inline_write_summary): Write stride.
8724 * ipa-inline.c (want_inline_small_function_p): Handle strides.
8725 (edge_badness): Likewise.
8726 * ipa-inline.h (inline_hints_vals): Add stride hint.
8727 (inline_summary): Update stride.
8729 2012-09-12 Uros Bizjak <ubizjak@gmail.com>
8731 * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char.
8732 * config/i386/i386.h (x86_prefetch_sse): Ditto.
8734 2012-09-12 H.J. Lu <hongjiu.lu@intel.com>
8737 * config/i386/predicates.md (x86_64_immediate_operand): Allow
8738 negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF.
8740 2012-09-12 Jan Hubicka <jh@suse.cz>
8742 * common.opt (flto-partition): Add "max".
8743 * invoke.texi (flto-partition): Document "max"
8745 2012-09-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
8747 * config/i386/i386.md : Comments on fma4 instruction selection
8748 reflect requirement on register pressure based cost model.
8750 * config/i386/driver-i386.c (host_detect_local_cpu): fma4
8751 flag is set-reset as informed by the cpuid flag.
8753 * config/i386/i386.c (processor_alias_table): fma4
8754 flag is enabled for bdver2.
8756 2012-09-12 Richard Guenther <rguenther@suse.de>
8758 PR tree-optimization/54489
8759 * tree-ssa-pre.c: Include domwalk.h.
8761 (sccvn_valnum_from_value_id): New function.
8762 (debug_bitmap_sets_for): Simplify.
8763 (get_representative_for): Properly initialize the SCCVN valnum.
8764 (create_expression_by_pieces): Likewise.
8765 (insert_into_preds_of_block): Likewise.
8766 (can_PRE_operation): Remove.
8767 (make_values_for_phi): Simplify.
8768 (compute_avail): Likewise.
8769 (do_SCCVN_insertion): Remove.
8770 (eliminate_avail, eliminate_push_avail, eliminate_insert):
8772 (eliminate): Split and perform a domwalk.
8773 (eliminate_bb): Former eliminate part that is now dom-enter.
8774 (eliminate_leave_block): New function.
8775 (fini_eliminate): Likewise.
8776 (init_pre): Simplify.
8777 (fini_pre): Likewise.
8778 (execute_pre): Fold into do_pre and do_fre.
8779 (do_pre): Consume execute_pre.
8781 * Makefile.in (tree-ssa-pre.o): Add domwalk.h dependency.
8783 2012-09-12 Diego Novillo <dnovillo@google.com>
8785 * vec.h: Remove compatibility notes for previous distinction
8786 between vectors of objects and vectors of pointers.
8788 2012-09-12 Christian Bruel <christian.bruel@st.com>
8790 * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
8792 2012-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8794 * rtl.h (FFS, FLOAT, ABS, PC): Don't undef.
8795 * system.h (FFS, FLOAT, ABS, PC): Undef.
8797 2012-09-12 Richard Guenther <rguenther@suse.de>
8800 * common.opt (finline): Mark with Optimization.
8802 2012-09-12 Jakub Jelinek <jakub@redhat.com>
8804 * config.gcc: Obsolete picochip-*.
8806 2012-09-12 Nathan Froyd <froydnj@gcc.gnu.org>
8807 Hans-Peter Nilsson <hp@bitrange.com>
8809 * config/mmix/mmix.h (MMIX_REG_OK_STRICT): Delete.
8810 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P): Delete.
8811 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
8812 * config/mmix/mmix-protos.h (mmix_intval): Declare.
8813 (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
8814 (mmix_const_double_ok_for_letter_p): Delete.
8815 * config/mmix/constraints.md: New file.
8816 * config/mmix/mmix.md: Include it.
8817 (iordi3): Fix typo; use "I" instead of undefined "H" constraint.
8818 ("*call_real"): Update comment about not using the "p" constraint.
8819 * config/mmix/predicates.md (mmix_reg_or_8bit_operand): Use
8820 satisfies_constraint_I.
8821 (mmix_address_operand): New predicate.
8822 (mmix_symbolic_or_address_operand): Use it instead of address_operand.
8823 * config/mmix/mmix.c: #include tm-constrs.h.
8824 (mmix_intval): Delete declaration. Make non-static.
8825 (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
8826 (mmix_const_double_ok_for_letter_p): Delete.
8827 (mmix_legitimate_address_p): Use satisfies_constraint_I.
8828 (mmix_print_operand_address): Likewise.
8829 (mmix_emit_sp_add): Adjust to use insn_const_int_ok_for_constraint
8830 when matching "L" constraint.
8832 2012-09-11 Steven Bosscher <steven@gcc.gnu.org>
8834 * tree.h (expand_case): Move prototype ...
8835 * expr.h (expand_case): ...here.
8836 (expand_sjlj_dispatch_table): New prototype.
8837 * stmt.c: Include pointer-set.h instead of bitmap.h.
8838 (expand_case): Use a pointer set instead of a bitmap for
8839 already-seen labels. Fold label values here.
8840 (add_case_node): Don't fold label values here.
8841 (expand_sjlj_dispatch_table): New function.
8842 * except.c (sjlj_emit_dispatch_table): Use it.
8844 2012-09-11 Marc Glisse <marc.glisse@inria.fr>
8846 * tree-ssa-forwprop.c (simplify_vector_constructor): New function.
8847 (ssa_forward_propagate_and_combine): Call it.
8849 2012-09-11 Diego Novillo <dnovillo@google.com>
8851 * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes.
8853 2012-09-11 Dominique Dhumieres <dominiq@lps.ens.fr>
8855 * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes.
8856 (darwin_asm_dwarf_section): Likewise.
8858 2012-09-11 Martin Jambor <mjambor@suse.cz>
8860 * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun.
8861 (premark_used_types): New parameter fun, use it instead of cfun.
8862 (gen_subprogram_die): Use DECL_STRUCT_FUNCTION (decl) instead of cfun,
8863 also pass it to premark_used_types.
8865 2012-09-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8867 * doc/sourcebuild.texi (arm_neon_v2_ok): Adjust command line.
8869 2012-09-11 Tobias Burnus <burnus@net-b.de>
8871 * doc/sourcebuild.texi (arm_neon_v2_ok): Fix @anchor.
8873 2012-09-11 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8874 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8876 * config/arm/neon.md (fma<VCVTF:mode>4): New pattern.
8877 (*fmsub<VCVTF:mode>4): Likewise.
8878 * doc/sourcebuild.texi (arm_neon_v2_ok, arm_neon_v2_hw): Document it.
8880 2012-09-11 Aldy Hernandez <aldyh@redhat.com>
8883 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set): Only set
8886 2012-09-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8888 PR tree-optimization/55492
8889 * doc/invoke.texi (max-slsr-cand-scan): New description.
8890 * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Limit
8891 the time spent searching for a basis.
8892 * params.def (PARAM_MAX_SLSR_CANDIDATE_SCAN): New param.
8894 2012-09-11 Richard Guenther <rguenther@suse.de>
8896 * gimple.h (gimple_register_type): Remove.
8897 (print_gimple_types_stats): Adjust prototype.
8898 * lto-streamer.h (print_lto_report): Likewise.
8899 * lto-streamer.c (print_lto_report): Adjust.
8900 * gimple.c (gimple_types, type_hash_cache, enum gtc_mode,
8901 struct type_pair_d, lookup_type_pair, struct sccs,
8902 next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
8903 gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
8904 gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
8905 visit, iterative_hash_name, struct type_hash_pair,
8906 type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
8907 gimple_type_eq, gimple_register_type_1, gimple_register_type):
8909 (print_gimple_types_stats): Adjust.
8910 (free_gimple_type_tables): Likewise.
8912 2012-09-11 Richard Guenther <rguenther@suse.de>
8914 * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes.
8915 (scopdet_basic_block_info): Likewise.
8916 (build_scops_1): Likewise.
8917 (limit_scops): Likewise.
8919 2012-09-11 Richard Guenther <rguenther@suse.de>
8922 * gimple.c (get_base_address): Do not return NULL_TREE apart
8923 from for WITH_SIZE_EXPR.
8924 * gimple-fold.c (canonicalize_constructor_val): Do not call
8925 get_base_address when not necessary.
8927 2012-09-10 Andrew Pinski <apinski@cavium.com>
8930 * trans-mem.c (thread_private_new_memory): Handle COND_EXPR also.
8932 2012-09-10 Maxim Kuvyrkov <maxim@codesourcery.com>
8934 * config/m68k/m68k.c (m68k_sched_dfa_post_advance_cycle): Support
8935 starting scheduling from a pre-existing state.
8937 2012-09-10 Diego Novillo <dnovillo@google.com>
8939 * vec.h (vec_t::quick_push): Remove overload that accepts 'T *'.
8941 (vec_t::safe_push): Likewise.
8942 (vec_t::quick_insert): Likewise.
8943 (vec_t::lower_bound): Likewise.
8944 (vec_t::safe_insert): Likewise.
8945 (vec_t::replace): Change second argument to 'T &'.
8947 2012-09-10 Maciej W. Rozycki <macro@codesourcery.com>
8949 * config/rs6000/rs6000.md: Move a splitter next to its insn.
8951 2012-09-10 Oleg Endo <olegendo@gcc.gnu.org>
8954 * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Set always to 1 if
8955 dynamic shifts are available.
8956 (SHIFT_COUNT_TRUNCATED): Always define to 0. Correct comment.
8957 * config/sh/sh.c (ashl_lshr_seq, ext_ashl_lshr_seq): Add comments.
8958 * config/sh/predicates.md (shift_count_operand): Allow
8959 arith_reg_operand even if TARGET_DYNSHIFT is false.
8960 * config/sh/sh.md (ashlsi3, lshrsi3): Expand library call patterns
8962 (ashlsi3_d_call, lshrsi3_d_call): New insns.
8964 2012-09-10 Richard Sandiford <rdsandiford@googlemail.com>
8966 * ira.c (setup_pressure_classes): Handle synonymous classes.
8968 2012-09-10 Marc Glisse <marc.glisse@inria.fr>
8970 * tree-ssa-forwprop.c (simplify_bitfield_ref): New function.
8971 (ssa_forward_propagate_and_combine): Call it.
8973 2012-09-10 Steve Ellcey <sellcey@mips.com>
8975 * config.gcc: Add mips*-mti-linux* target
8976 Handle with_synci like other options.
8977 * config/mips/gnu-user64.h (LINUX64_DRIVER_SELF_SPECS): New.
8978 (DRIVER_SELF_SPECS): Define in terms of LINUX64_DRIVER_SELF_SPECS.
8979 * config/mips/mips.h (MIPS_ISA_SYNCI_SPEC): New.
8980 * config/mips/mti-linux.h: New file.
8981 * config/mips/t-mti-linux: New file.
8983 2012-09-10 Marc Glisse <marc.glisse@inria.fr>
8985 * tree-ssa-forwprop.c (simplify_permutation): Handle CONSTRUCTOR.
8987 2012-09-10 Martin Jambor <mjambor@suse.cz>
8989 * params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter.
8990 * ipa-prop.c: Include params.h.
8991 (IPA_MAX_AFF_JF_ITEMS): Removed.
8992 (determine_known_aggregate_parts): Use param value of
8993 PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS.
8994 * Makefile.in (ipa-prop.o): Add PARAMS_H dependency.
8996 2012-09-10 Richard Guenther <rguenther@suse.de>
8998 PR tree-optimization/54520
8999 * tree-ssa-threadupdate.c (def_split_header_continue_p):
9000 Properly consider sub-loops.
9002 2012-09-10 Richard Henderson <rth@redhat.com>
9004 * config/alpha/predicates.md (small_symbolic_operand): Disallow
9007 2012-09-10 Georg-Johann Lay <avr@gjlay.de>
9010 * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
9012 2012-09-10 Jan Hubicka <jh@suse.cz>
9014 * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases.
9015 * symtab.c (symtab_make_decl_local): Remove user defined visibility
9016 when making symbol local.
9018 2012-09-09 Mark Kettenis <kettenis@gnu.org>
9020 * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define.
9022 2012-09-09 Jan Hubicka <jh@suse.cz>
9024 * passes.c (ipa_write_summaries_1): Set state;
9025 do not call compute_ltrans_boundary.
9026 (ipa_write_optimization_summaries): Likewise.
9027 (ipa_write_summaries): compute_ltrans_boundary here.
9028 * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
9029 (compute_ltrans_boundary): Update prototype.
9031 2012-09-09 Ulrich Drepper <drepper@gmail.com>
9033 * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for
9034 matching results of level 0 calls to __cpuid to processor
9036 * config/i386/driver-i386.c (vendor_signatures): Removed.
9037 (processor_signatures): Removed.
9038 (host_detect_local_cpu): Replace uses of now-removed SIG_*
9039 constants with the new signature_*_ebx constants.
9041 2012-09-08 Jan Hubicka <jh@suse.cz>
9043 Replace cgraph_node_set and varpool_node_set by symtab_node_encoder
9045 * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove
9046 forward declaration.
9047 (lto_symtab_encoder_d): Forward declare.
9048 (ipa_write_optimization_summaries): Update.
9049 * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize
9050 body, initializer and in_partition.
9051 (lto_symtab_encoder_delete): Update.
9052 (lto_symtab_encoder_encode): Update.
9053 (lto_symtab_encoder_lookup): Move inline.
9054 (lto_symtab_encoder_delete_node): New function.
9055 (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body,
9056 lto_symtab_encoder_encode_initializer_p,
9057 lto_set_symtab_encoder_encode_initializer,
9058 lto_symtab_encoder_in_partition_p,
9059 lto_symtab_encoder_in_partition_p): Update.
9060 (compute_ltrans_boundary): Take encoder as an input.
9061 * passes.c (ipa_write_summaries_1): Update.
9062 (ipa_write_summaries_1): Update.
9063 (ipa_write_summaries): Update.
9064 (ipa_write_optimization_summaries): Update.
9065 * lto-streamer.c (print_lto_report): Report number of cgraph nodes.
9066 * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by
9067 num_output_symtab_nodes.
9068 (lto_encoder_entry): New structure.
9069 (struct lto_symtab_encoder_d): Reorg.
9070 (lto_symtab_encoder_delete_node): Declare.
9071 (lto_symtab_encoder_lookup): Bring inline.
9072 (compute_ltrans_boundary): Update.
9073 (lto_symtab_encoder_size): Update.
9074 (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update.
9075 (lto_symtab_encoder_deref): Update.
9077 2012-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9079 * config/pa/pa.c (hppa_rtx_costs): Update costs for large
9082 2012-09-08 Andi Kleen <ak@linux.intel.com>
9084 * lto/lto.c (do_whole_program_analysis): Fix last broken patch.
9086 2012-09-08 Andi Kleen <ak@linux.intel.com>
9088 * common.opt (-fmem-report-wpa): Add
9089 * doc/invoke.texi (-fmem-report-wpa): Document.
9090 * lto/lto.c (do_whole_program_analysis): Run mem_report
9091 when mem_report_wpa is set.
9093 2012-09-07 Anthony Green <green@moxielogic.com>
9095 * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue
9096 for functions with large static stack requirements.
9097 (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved
9098 values off of the stack.
9100 2012-09-07 Nick Clifton <nickc@redhat.com>
9102 * config/v850/v850.h (DBX_DEBUGGING_INFO): Define.
9103 (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided.
9104 * config/v850/v850.c (compute_register_save_size): Always include
9106 (increment_stack): New function - emits insns to increment or
9107 decrement the stack pointer.
9108 (expand_prologue, expand_epilogue): Use it.
9109 (expand_prologue): Set the function stack size, if requested.
9110 (v850_debug_unwind_info): New function.
9111 (TARGET_DEBUG_UNWIND_INFO): Define.
9113 2012-09-07 Richard Earnshaw <rearnsha@arm.com>
9116 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
9117 Sign-extension of a zero-extended value can be simplified to
9118 just zero-extension.
9120 2012-09-07 Richard Guenther <rguenther@suse.de>
9123 * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
9124 EAF_NOESCAPED arguments. Transitively close non-EAF_DIRECT
9125 arguments separately.
9127 2012-09-07 Steven Bosscher <steven@gcc.gnu.org>
9129 * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
9131 * graphite.c (print_global_statistics): Use EDGE_COUNT instead
9133 (print_graphite_scop_statistics): Likewise.
9134 * graphite-scop-detection.c (get_bb_type): Use single_succ_p.
9135 (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length.
9136 (canonicalize_loop_closed_ssa): Use single_pred_p.
9138 * alias.c (reg_seen): Make this an sbitmap.
9139 (record_set, init_alias_analysis): Update.
9141 * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping.
9143 2012-09-07 Tom de Vries <tom@codesourcery.com>
9145 PR tree-optimization/53986
9146 * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow
9148 (extract_range_from_binary_expr_1): Handle LSHIFT with constant
9149 range as shift amount.
9151 2012-09-07 Segher Boessenkool <segher@kernel.crashing.org>
9153 * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete.
9154 * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete.
9155 * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete.
9156 * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete.
9157 * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete.
9158 * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete.
9159 * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete.
9160 * config/rs6000/rs6000.c (print_operand) ['.']: Delete.
9161 * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete.
9162 * config/rs6000/rs6000.md (tls_gd_aix<TLSmode:tls_abi_suffix>):
9163 Replace %. with nop.
9164 (tls_gd_call_aix<TLSmode:tls_abi_suffix>): Ditto.
9165 (tls_ld_aix<TLSmode:tls_abi_suffix>): Ditto.
9166 (tls_ld_call_aix<TLSmode:tls_abi_suffix>): Ditto.
9167 (call_nonlocal_aix32): Ditto.
9168 (call_nonlocal_aix64): Ditto.
9169 (call_value_nonlocal_aix32): Ditto.
9170 (call_value_nonlocal_aix64): Ditto.
9172 2012-09-06 Andi Kleen <ak@linux.intel.com>
9174 * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar
9175 et.al. should be used.
9177 2012-09-06 Andi Kleen <ak@linux.intel.com>
9179 * lto-streamer.h (res_pair): Add.
9180 (lto_file_decl_data): Replace resolutions with respairs.
9182 * lto/lto.c (lto_resolution_read): Remove max_index. Add rp.
9183 Initialize respairs.
9184 (lto_file_finalize): Set up resolutions vector lazily from respairs.
9186 2012-09-06 Lawrence Crowl <crowl@google.com>
9188 * double-int.h (double_int::operator &=): New.
9189 (double_int::operator ^=): New.
9190 (double_int::operator |=): New.
9191 (double_int::mul_with_sign): Modify overflow parameter to bool*.
9192 (double_int::add_with_sign): New.
9193 (double_int::ule): New.
9194 (double_int::sle): New.
9195 (binary double_int::operator *): Remove parameter name.
9196 (binary double_int::operator +): Likewise.
9197 (binary double_int::operator -): Likewise.
9198 (binary double_int::operator &): Likewise.
9199 (double_int::operator |): Likewise.
9200 (double_int::operator ^): Likewise.
9201 (double_int::and_not): Likewise.
9202 (double_int::from_shwi): Tidy formatting.
9203 (double_int::from_uhwi): Likewise.
9204 (double_int::from_uhwi): Likewise.
9205 * double-int.c (double_int::mul_with_sign): Modify overflow parameter
9207 (double_int::add_with_sign): New.
9208 (double_int::ule): New.
9209 (double_int::sle): New.
9210 * builtins.c: Modify to use the new double_int interface.
9211 * cgraph.c: Likewise.
9212 * combine.c: Likewise.
9213 * dwarf2out.c: Likewise.
9214 * emit-rtl.c: Likewise.
9215 * expmed.c: Likewise.
9217 * fixed-value.c: Likewise.
9218 * fold-const.c: Likewise.
9219 * gimple-fold.c: Likewise.
9220 * gimple-ssa-strength-reduction.c: Likewise.
9221 * gimplify-rtx.c: Likewise.
9222 * ipa-prop.c: Likewise.
9223 * loop-iv.c: Likewise.
9224 * optabs.c: Likewise.
9225 * stor-layout.c: Likewise.
9226 * tree-affine.c: Likewise.
9227 * tree-cfg.c: Likewise.
9228 * tree-dfa.c: Likewise.
9229 * tree-flow-inline.h: Likewise.
9230 * tree-object-size.c: Likewise.
9231 * tree-predcom.c: Likewise.
9232 * tree-pretty-print.c: Likewise.
9233 * tree-sra.c: Likewise.
9234 * tree-ssa-address.c: Likewise.
9235 * tree-ssa-alias.c: Likewise.
9236 * tree-ssa-ccp.c: Likewise.
9237 * tree-ssa-forwprop.c: Likewise.
9238 * tree-ssa-loop-ivopts.c: Likewise.
9239 * tree-ssa-loop-niter.c: Likewise.
9240 * tree-ssa-phiopt.c: Likewise.
9241 * tree-ssa-pre.c: Likewise.
9242 * tree-ssa-sccvn: Likewise.
9243 * tree-ssa-structalias.c: Likewise.
9244 * tree-ssa.c: Likewise.
9245 * tree-switch-conversion.c: Likewise.
9246 * tree-vect-loop-manip.c: Likewise.
9247 * tree-vrp.c: Likewise.
9250 * varasm.c: Likewise.
9252 2012-09-06 Uros Bizjak <ubizjak@gmail.com>
9254 * configure.ac (hle prefixes): Remove .code64 directive.
9255 * configure: Regenerated.
9257 2012-09-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9259 * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P,
9260 LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently.
9261 * config/arm/arm.h: Use REG_P, MEM_P consistently.
9262 * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P
9264 * config/arm/neon.md: Use REG_P consistently.
9265 * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently.
9266 * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently.
9267 * config/arm/vec-common.md: Use REG_P consistently.
9269 2012-09-06 Richard Guenther <rguenther@suse.de>
9271 PR tree-optimization/54498
9272 * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
9273 abort when reaching an already visited region.
9274 * tree-ssa-alias.c (maybe_skip_until): Likewise. And do it.
9275 (get_continuation_for_phi_1): Likewise.
9276 (walk_non_aliased_vuses): When we translated the reference,
9277 abort when we re-visit a region.
9278 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
9280 2012-09-06 David Edelsohn <dje.gcc@gmail.com>
9282 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS
9284 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new
9285 arguments to TARGET_ADDRESS_COST call.
9287 2012-09-06 Richard Guenther <rguenther@suse.de>
9289 * tree.h (MOVE_NONTEMPORAL): Remove.
9290 * tree-pretty-print.c (dump_generic_node): Remove
9291 MOVE_NONTEMPORAL handling.
9292 * expr.c (expand_expr_real_1): Likewise.
9294 2012-09-06 Richard Guenther <rguenther@suse.de>
9296 * passes.c (execute_function_todo): Call compute_may_aliases
9297 only if flag_tree_pta is set.
9299 2012-09-06 Andrew Pinski <apinski@cavium.com>
9302 * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
9304 2012-09-06 Jakub Jelinek <jakub@redhat.com>
9306 PR rtl-optimization/54455
9307 * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
9308 bb ends up with asm goto referencing bb's label.
9310 2012-09-06 Chen Liqin <liqin.gcc@gmail.com>
9312 * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and
9313 score_legitimize_address function, use compiler default code instead.
9315 2012-09-05 Jan Hubicka <jh@suse.cz>
9317 * ipa-inline.c (want_inline_small_function_p): Use
9318 INLINE_HINT_loop_iterations hint.
9320 2012-09-05 Andrew Pinski <apinski@cavium.com>
9322 * optabs.c (emit_conditional_add): Correct comment about the arguments.
9323 Remove code which might swap op2 and op3 since they cannot be swapped.
9324 * doc/md.texi (add@var{mode}cc): Fix document about how the arguments
9327 2012-09-05 Oleg Endo <olegendo@gcc.gnu.org>
9329 * hooks.c (hook_int_rtx_mode_as_bool_0): New function.
9330 * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it.
9331 * output.h (default_address_cost): Add machine_mode and address space
9333 * target.def (address_cost): Likewise.
9334 * rtlanal.c (address_cost): Pass mode and address space to target hook.
9335 (default_address_cost): Add unnamed machine_mode and address space
9337 * doc/tm.texi: Regenerate.
9338 * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use
9339 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
9340 * config/arm/arm.c (arm_address_cost): Add machine_mode and address
9342 * config/avr/avr.c (avr_address_cost): Likewise.
9343 * config/bfin/bfin.c (bfin_address_cost): Likewise.
9344 * config/cr16/cr16.c (cr16_address_cost): Likewise.
9345 * config/cris/cris.c (cris_address_cost): Likewise.
9346 * config/epiphany/epiphany.c (epiphany_address_cost): Likewise.
9347 * config/i386/i386.c (ix86_address_cost): Likewise.
9348 * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use
9349 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
9350 * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and
9351 address space arguments. Pass them on in recursive invocation.
9352 * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use
9353 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
9354 * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address
9356 * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use
9357 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
9358 * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise.
9359 * config/mep/mep.c (mep_address_cost): Add machine_mode and address
9361 * config/microblaze/microblaze.c (microblaze_address_cost): Likewise.
9362 * config/mips/mips.c (mips_address_cost): Likewise.
9363 * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use
9364 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
9365 * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and
9366 address space arguments.
9367 (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to
9368 mn10300_address_cost.
9369 * config/pa/pa.c (hppa_address_cost): Add machine_mode and address
9371 * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise.
9372 (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of
9373 hook_int_rtx_bool_0.
9374 * config/rx/rx.c (rx_address_cost): Add machine_mode and address
9376 * config/s390/s390.c (s390_address_cost): Likewise.
9377 * config/score/score-protos.h (score_address_cost): Likewise.
9378 * config/score/score.c (score_address_cost): Likewise.
9379 * config/sh/sh.c (sh_address_cost): Likewise.
9380 * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use
9381 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
9382 * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise.
9383 * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode
9384 and address space arguments.
9385 * config/v850/v850.c (TARGET_ADDRESS_COST): Use
9386 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
9387 * config/vax/vax.c (vax_address_cost): Add machine_mode and address
9389 * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use
9390 hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
9392 2012-09-05 Diego Novillo <dnovillo@google.com>
9395 * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument.
9397 2012-09-05 Jakub Jelinek <jakub@redhat.com>
9400 * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
9401 build_int_cst with size_type_node instead of size_int.
9403 2012-09-05 Uros Bizjak <ubizjak@gmail.com>
9405 * config/i386/sse.md (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>):
9406 Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}.
9407 Use nonimmediate_operand instead of
9408 nonimm_not_xmm0_operand{,_maybe_avx}.
9409 (<sse4_1_avx2>_pblendvb): Ditto.
9410 (sse4_2_pcmpestr): Ditto.
9411 (*sse4_2_pcmpestr_unaligned): Ditto.
9412 (sse4_2_pcmpistr): Ditto.
9413 (*sse4_2_pcmpistr_unaligned): Ditto.
9414 * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate.
9415 (nonimm_not_xmm0_operand): Ditto.
9416 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9417 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
9418 * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx.
9420 2012-09-05 Eric Botcazou <ebotcazou@adacore.com>
9422 * bb-reorder.c: Clarify a few points in the head comment and fix
9423 long lines in other comments.
9424 (find_traces): Fix long line.
9425 (find_traces_1_round): Likewise.
9426 (better_edge_p): Likewise.
9427 (connect_traces): Likewise.
9428 (duplicate_computed_gotos): Likewise.
9429 (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces.
9430 (fix_up_fall_thru_edges): Fix formatting.
9432 2012-09-05 Richard Guenther <rguenther@suse.de>
9434 PR tree-optimization/46590
9435 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not
9436 update SSA form here.
9437 (canonicalize_induction_variables): Assert we do not need to
9439 (tree_unroll_loops_completely): Update SSA form here.
9440 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
9441 Do not verify loop-closed SSA form if SSA form is not up-to-date.
9443 2012-09-05 Georg-Johann Lay <avr@gjlay.de>
9446 * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
9447 not configured --with-avrlibc=no.
9448 (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured
9450 * config/avr/avrlibc.h: New file.
9451 * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
9452 not configured --with-avrlibc=no.
9453 * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
9455 2012-09-04 Teresa Johnson <tejohnson@google.com>
9457 * gcov-io.c (gcov_write_summary): Write out non-zero histogram
9458 entries to function summary along with an occupancy bit vector.
9459 (gcov_read_summary): Read in the histogram entries.
9460 (gcov_histo_index): New function.
9461 (void gcov_histogram_merge): Ditto.
9462 * gcov-io.h (gcov_type_unsigned): New type.
9463 (struct gcov_bucket_type): Ditto.
9464 (struct gcov_ctr_summary): Include histogram.
9465 (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
9466 (GCOV_HISTOGRAM_SIZE): New macro.
9467 (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
9468 * profile.c (NUM_GCOV_WORKING_SETS): Ditto.
9469 (gcov_working_sets): New global variable.
9470 (compute_working_sets): New function.
9471 (find_working_set): Ditto.
9472 (get_exec_counts): Invoke compute_working_sets.
9473 * coverage.c (read_counts_file): Merge histograms, and
9474 fix bug with accessing summary info for non-summable counters.
9475 * basic-block.h (gcov_type_unsigned): New type.
9476 (struct gcov_working_set_info): Ditto.
9477 (find_working_set): Declare.
9478 * gcov-dump.c (tag_summary): Dump out histogram.
9480 2012-09-04 Diego Novillo <dnovillo@google.com>
9483 * vec.h (vec_t::embedded_init): Move default argument value
9484 to function declaration.
9486 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
9488 * bb-reorder.c (gate_handle_reorder_blocks): Move around.
9489 (rest_of_handle_reorder_blocks): Likewise.
9490 (pass_reorder_blocks): Likewise.
9491 (gate_handle_partition_blocks): Likewise.
9493 2012-09-04 Eric Botcazou <ebotcazou@adacore.com>
9495 PR rtl-optimization/54456
9496 * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
9498 2012-09-04 Diego Novillo <dnovillo@google.com>
9501 * vec.h (vec_t::alloc): Remove explicit type specification
9503 (vec_t::copy): Likewise.
9504 (vec_t::reserve): Likewise.
9505 (vec_t::reserve_exact): Likewise.
9506 (vec_t::safe_splice): Likewise.
9507 (vec_t::safe_push): Likewise.
9508 (vec_t::safe_grow): Likewise.
9509 (vec_t::safe_grow_cleared): Likewise.
9510 (vec_t::safe_insert): Likewise.
9512 2012-09-04 Richard Henderson <rth@redhat.com>
9514 * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
9516 2012-09-04 Richard Guenther <rguenther@suse.de>
9518 * tree-ssa-pre.c (value_expressions): Make it a vector of
9519 bitmaps containing expression IDs.
9520 (add_to_value): Adjust.
9521 (sorted_array_from_bitmap_set): Likewise.
9522 (bitmap_set_replace_value): Likewise.
9523 (print_value_expressions): Likewise.
9524 (get_constant_for_value_id): Likewise.
9525 (get_representative_for): Likewise.
9526 (phi_translate_1): Likewise.
9527 (bitmap_find_leader): Likewise.
9528 (find_or_generate_expression): Likewise.
9529 (do_regular_insertion): Likewise.
9530 (init_pre): Likewise.
9531 (fini_pre): Likewise.
9533 2012-09-04 Diego Novillo <dnovillo@google.com>
9536 * vec.h (vec_t::copy): Add cast in call to reserve_exact.
9538 2012-09-04 Richard Guenther <rguenther@suse.de>
9540 * tree-ssa-pre.c (add_to_exp_gen): Adjust.
9541 (make_values_for_phi): Do not add to PHI_GEN for FRE.
9542 (compute_avail): Stop processing after adding all defs to
9544 (init_pre): Do not allocate not needed bitmap sets for FRE.
9546 2012-09-04 Diego Novillo <dnovillo@google.com>
9548 Rewrite VEC_* functions as member functions of vec_t.
9550 * vec.h: Update documentation.
9551 (ALONE_VEC_CHECK_INFO): Define.
9552 (ALONE_VEC_CHECK_DECL): Define.
9553 (ALONE_VEC_CHECK_PASS): Define.
9554 (struct vec_prefix): Rename field NUM to NUM_.
9555 Rename field ALLOC to ALLOC_.
9557 (struct vec_t): Rename field PREFIX to PREFIX_.
9558 Rename field VEC to VEC_.
9560 (vec_t::length): Rename from VEC_length_1. Update all users.
9561 (vec_t::empty): Rename from VEC_empty_1. Update all users.
9562 (vec_t::address): Rename from VEC_address_1. Update all users.
9564 (vec_t::last): Rename from VEC_last_1. Update all users.
9565 (vec_t::operator[]): Rename from VEC_index_1. Update all users.
9566 (vec_t::iterate): Rename from VEC_iterate_1. Update all users.
9567 (vec_t::embedded_size): Rename from VEC_embedded_size_1.
9569 (vec_t::embedded_init): Rename from VEC_embedded_init_1.
9571 (vec_t::alloc): Rename from VEC_alloc_1. Update all users.
9572 (vec_t::free): Rename from VEC_free_1. Update all users.
9573 (vec_t::copy): Rename from VEC_copy_1. Update all users.
9574 (vec_t::space): Rename from VEC_space_1. Update all users.
9575 (vec_t::reserve): Rename from VEC_reserve_1. Update all users.
9576 (vec_t::reserve_exact): Rename from VEC_reserve_exact_1.
9578 (vec_t::splice): Rename from VEC_splice_1. Update all users.
9579 (vec_t::safe_splice): Rename from VEC_safe_splice_1. Update all users.
9580 (vec_t::quick_push): Rename from VEC_quick_push_1. Update all users.
9581 (vec_t::safe_push): Rename from VEC_safe_push_1. Update all users.
9582 (vec_t::pop): Rename from VEC_pop_1. Update all users.
9583 (vec_t::truncate): Rename from VEC_truncate_1. Update all users.
9584 (vec_t::safe_grow): Rename from VEC_safe_grow_1. Update all users.
9585 (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1.
9587 (vec_t::replace): Rename from VEC_replace_1. Update all users.
9588 (vec_t::quick_insert): Rename from VEC_quick_insert_1.
9590 (vec_t::safe_insert): Rename from VEC_safe_insert_1. Update all users.
9591 (vec_t::ordered_remove): Rename from VEC_ordered_remove_1.
9593 (vec_t::unordered_remove): Rename from VEC_unordered_remove_1.
9595 (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users.
9596 (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users.
9598 2012-09-04 Steven Bosscher <steven@gcc.gnu.org>
9600 * gimple.h (gimple_build_switch): Remove.
9601 (gimple_build_switch_vec): Promote to the new gimple_build_switch.
9602 (gimple_switch_default_label): Assert the default case label is
9603 really a default case label.
9604 (gimple_switch_set_default_label): Likewise.
9605 * gimple.c (gimple_build_switch_nlabels): Make sure a default label
9606 is passed in, and simplify accordingly.
9607 (gimple_build_switch): Removed.
9608 (gimple_build_switch_vec): Rename to gimple_build_switch.
9609 * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use.
9610 * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL
9612 * stmt.c (expand_case): Simplify using the fact that every GIMPLE
9613 switch must have a default case.
9614 * tree-cfg.c (group_case_labels_stmt): Likewise.
9615 (verify_gimple_switch): Use gimple_switch_label in verifier to get
9616 the label at index 0, and verify that it is a valid default case.
9617 * except.c (sjlj_emit_dispatch_table): Rewrite construction of the
9618 switch for dispatching.
9619 * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use.
9620 (lower_eh_dispatch): Likewise.
9621 * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case
9622 label at index 0 before turning it into a default case label.
9623 * omp-low.c (expand_omp_sections): Update gimple_build_switch use.
9624 * tree-switch-conversion.c (emit_case_bit_tests): Get the default case
9625 label using gimple_switch_default_label.
9626 (collect_switch_conv_info): Likewise.
9627 (process_switch): Likewise.
9628 * doc/gimple.texi: Update documentation of gimple_build_switch.
9630 2012-09-04 Georg-Johann Lay <avr@gjlay.de>
9633 * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
9636 2012-09-04 Bin Cheng <bin.cheng@arm.com>
9639 * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
9640 of size less than 4 bytes by using macro ARM_NUM_INTS.
9641 (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
9643 2012-09-04 Richard Guenther <rguenther@suse.de>
9645 PR tree-optimization/54458
9646 * tree-ssa-threadupdate.c (thread_through_loop_header): If we
9647 turn the loop into one with multiple latches mark it so.
9649 2012-09-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
9652 * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
9654 (avr_allocate_stack_slots_for_args): ...this new static function.
9656 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
9658 * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT
9660 (arm_emit_coreregs_64bit_shift): Likewise.
9662 2012-09-04 Christophe Lyon <christophe.lyon@linaro.org>
9664 * config/arm/arm.c (arm_evpc_neon_vext): New function.
9665 (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext.
9667 2012-09-04 Oleg Endo <olegendo@gcc.gnu.org>
9670 * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison
9671 canonicalization code into...
9672 * (sh_canonicalize_comparison): This new function.
9673 * config/sh/sh-protos.h: Declare it.
9674 * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON.
9675 * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and
9676 always invoke expand_cbranchsi4.
9678 2012-09-03 Andi Kleen <ak@linux.intel.com>
9680 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
9683 2012-09-03 Andrew Pinski <apinski@cavium.com>
9686 * tree-if-conv.c (constant_or_ssa_name): New function.
9687 (fold_build_cond_expr): New function.
9688 (predicate_scalar_phi): Use fold_build_cond_expr instead of build3.
9689 (predicate_mem_writes): Likewise.
9691 2012-09-03 Marc Glisse <marc.glisse@inria.fr>
9693 * fold-const.c (fold_ternary_loc): Constant-propagate after
9694 removing dead operands.
9696 2012-09-03 Michael Matz <matz@suse.de>
9698 PR tree-optimization/46590
9699 * tree-cfg.c (gimple_duplicate_sese_region): Don't update
9701 * tree-ssa-loop-ch.c (copy_loop_headers): ... but here.
9703 2012-09-03 Sandra Loosemore <sandra@codesourcery.com>
9705 * doc/invoke.texi: Fix numerous typos and punctuation/grammatical
9706 errors throughout the file. Re-word some awkward sentences and
9709 2012-09-03 Richard Guenther <rguenther@suse.de>
9711 PR tree-optimization/54362
9712 * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR.
9714 2012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9716 * config/s390/s390.c (s390_loadrelative_operand_p): New function.
9717 (s390_check_qrst_address, print_operand_address): Use
9718 s390_loadrelative_operand_p instead of s390_symref_operand_p.
9719 (s390_check_symref_alignment): Accept pointer size alignment for
9721 (legitimize_pic_address): Use load relative on z10 or later.
9723 2012-09-03 Jakub Jelinek <jakub@redhat.com>
9726 * valtrack.c (dead_debug_insert_temp): Drop non-reg uses
9729 2012-09-03 Joseph Myers <joseph@codesourcery.com>
9731 * common.opt (--no-sysroot-suffix): New driver option.
9732 * doc/invoke.texi (--no-sysroot-suffix): Document.
9733 * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not
9734 needing spec processing.
9735 (main): Do not process sysroot suffixes if no_sysroot_suffix.
9737 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
9740 * common/config/sh/sh-common.c: Update copyright years.
9741 (sh_option_init_struct): Delete.
9742 (TARGET_OPTION_INIT_STRUCT): Likewise.
9744 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
9747 * config/sh/sh.md (cmpgeusi_t): Remove N alternative.
9748 Check operands[1] in split condition instead of operands[0].
9751 2012-09-02 Mark Kettenis <kettenis@openbsd.org>
9753 * config.gcc (x86_64-*-openbsd*): New target.
9754 * config.host (*-*-openbsd*): New target.
9755 * config/openbsd.h (TARGET_C99_FUNCTIONS): Define.
9756 * config/i386/openbsdelf.h: Remove some superfluous defines and
9757 group things together in a more logical fashion.
9758 (DBX_REGISTER_NUMBER): Provide a
9759 definition that works on both 32-bit and 64-bit targets.
9760 (WCHAR_TYPE_SIZE): Hardcode as 32.
9761 (NO_DOLLAR_IN_LABEL): Remove undef.
9762 (TARGET_DEFAULT): Remove.
9763 (SET_ASM_OP): Remove.
9764 (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning.
9765 (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h
9766 (DWARF2_UNWIND_INFO): Remove define.
9767 (HAVE_ENABLE_EXECUTE_STACK): Define.
9768 * config/host-openbsd.c: New file.
9769 * config/t-openbsd (USER_H): Add EXTRA_HEADERS.
9770 * config/x-openbsd: New file.
9772 2012-09-02 Oleg Endo <olegendo@gcc.gnu.org>
9774 * config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
9775 mode to sh_legitimate_index_p instead of QImode.
9777 2012-09-02 Eric Botcazou <ebotcazou@adacore.com>
9779 PR rtl-optimization/54369
9780 * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
9781 calling dbr_schedule.
9782 * config/sparc/sparc.c (sparc_reorg): Likewise.
9784 2012-09-01 Jakub Jelinek <jakub@redhat.com>
9787 * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
9788 operands[1] is CONST_INT_P, convert it to QImode before printing.
9790 2012-09-01 Andrew Pinski <apinski@cavium.com>
9792 * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
9793 A truncate of a memory is just loading the low part of the memory.
9795 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
9799 * config/i386/i386.c (ix86_legitimate_combined_insn): New function.
9800 (TARGET_LEGITIMATE_COMBINED_INSN): New macro.
9802 2012-09-01 Uros Bizjak <ubizjak@gmail.com>
9804 * target.def (legitimate_combined_insn): New target hook.
9805 * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook.
9806 * doc/tm.texi: Regenerated.
9807 * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn
9808 to allow targets to reject combined insn.
9809 * hooks.h (hook_bool_rtx_true): New.
9810 * hooks.c (hook_bool_rtx_true): Ditto.
9812 2012-08-31 Martin Jambor <mjambor@suse.cz>
9814 * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate
9815 nonconstant_names after calculate_dominance_info and
9816 loop_optimizer_init.
9818 2012-08-31 Greta Yorsh <Greta.Yorsh@arm.com>
9820 * config/arm/arm.c (arm_expand_epilogue): Remove unused variable
9823 2012-08-31 Martin Jambor <mjambor@suse.cz>
9826 * ipa-inline-analysis.c (remap_predicate): Fix the offset_map
9829 2012-08-31 Martin Jambor <mjambor@suse.cz>
9831 * ipa-inline-analysis.c (phi_result_unknown_predicate): New function.
9832 (predicate_for_phi_result): Likewise.
9833 (estimate_function_body_sizes): Use the above two functions.
9835 2012-08-31 Martin Jambor <mjambor@suse.cz>
9838 * ipa-inline-analysis.c (estimate_function_body_sizes): Compute
9839 dominance info and loops whenever optimizing.
9841 2012-08-29 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9842 Richard Earnshaw <richard.earnshaw@arm.com>
9845 * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
9846 element size. Use elem_type from the formal parameter. New parameter
9848 (neon_expand_args): Adjust call to neon_dereference_pointer.
9850 2012-08-29 Steven Bosscher <steven@gcc.gnu.org>
9852 * cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
9854 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9857 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
9858 mapping style, add ../lib/mips16.
9859 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
9860 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
9862 2012-08-29 Richard Sandiford <rdsandiford@googlemail.com>
9864 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
9867 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
9869 * config/sh/sh.opt (menable-tas): Rename to mtas.
9870 * doc/invoke.texi (SH options): Likewise.
9871 * config/sh/sync.md: Update comments.
9873 2012-08-29 Oleg Endo <olegendo@gcc.gnu.org>
9875 * config/sh/iterators.md: New file.
9876 * config/sh/sync.md (I124, I12, i124suffix): Delete. Replace usage
9877 with new iterators QIHISI, QIHI, bw, bwl respectively throughout
9879 * config/sh/sh.md: Include new file iterators.md.
9880 (zero_extendhisi2, zero_extendqisi2): Fold into zero_extend<mode>si2.
9881 (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into
9882 *zero_extend<mode>si2_compact.
9883 (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into
9884 *zero_extend<mode>si2_disp_mem.
9885 (extendhisi2, extendqisi2): Fold into extend<mode>si2.
9886 (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into
9887 *extend<mode>si2_compact_reg.
9888 (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold
9889 into *extend<mode>si2_compact_mem_disp.
9890 (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into
9891 *extend<mode>si2_compact_snd.
9892 (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename
9893 to *movsi_index_disp_load, *movhi_index_disp_load,
9894 *mov<mode>_index_disp_store.
9895 (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov<mode>_reg_reg.
9896 (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into
9897 *mov<mode>_store_mem_disp04.
9898 (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into
9899 *mov<mode>_store_mem_disp12.
9900 (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into
9901 *mov<mode>_load_mem_disp04 and *mov<mode>_load_mem_disp12.
9903 2012-08-29 Martin Jambor <mjambor@suse.cz>
9905 * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not
9906 do_estimate_edge_time.
9908 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9910 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm
9911 directives, remove #ifndef __mips16 guards.
9912 * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
9913 mapping style, add ../lib/mips16.
9914 (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
9915 (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
9917 2012-08-28 Walter Lee <walt@tilera.com>
9918 * confg/tilegx/tilegx.md: Fix code style.
9919 (*zero_extendsidi_truncdisi): Fix typo.
9920 * config/tilegx/tilegx.c: Fix code style.
9921 (tilegx_function_profiler): Fix typo.
9923 2012-08-28 Walter Lee <walt@tilera.com>
9925 * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large.
9926 * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h.
9927 (CRT_CALL_STATIC_FUNCTION): Define.
9928 * config/tilegx/predicates.md (const_last_symbolic_operand):
9929 Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and
9930 UNSPEC_HW2_LAST_PLT_PCREL.
9931 (const_symbolic_operand): Handle UNSPEC_HW1_PCREL,
9932 UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL.
9933 * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define,
9934 and renumber the constants that follow.
9935 (UNSPEC_HW1_PCREL): Ditto.
9936 (UNSPEC_HW2_LAST_PCREL): Ditto.
9937 (UNSPEC_HW0_PLT_PCREL): Define.
9938 (UNSPEC_HW1_PLT_PCREL): Define.
9939 (UNSPEC_HW1_LAST_PLT_PCREL): Define.
9940 (UNSPEC_HW2_LAST_PLT_PCREL): Define.
9941 (mov_large_pcrel_step1): Define.
9942 (mov_large_pcrel_step2): Define.
9943 (mov_large_pcrel_step3): Define.
9944 (mov_large_pcrel_step4): Define.
9945 (mov_plt_pcrel_step1): Define.
9946 (mov_plt_pcrel_step2): Define.
9947 (mov_plt_pcrel_step3): Define.
9948 (mov_plt_pcrel_step1_32bit): Define.
9949 (mov_plt_pcrel_step2_32bit): Define.
9950 (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC.
9951 (call_value): Ditto.
9952 * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h.
9953 (mcmodel): New option.
9954 (enum cmodel): Define.
9957 * config/tilegx/tilegx-opts.h: New file.
9958 * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address):
9960 (tilegx_compute_pcrel_plt_address): Declare.
9961 * config/tilegx/tilegx.c (tilegx_option_override): Handle
9963 (tilegx_function_ok_for_sibcall): Ditto.
9964 (compute_pcrel_address): Rename to tilegx_compute_pcrel_address,
9965 and don't declare static. Handle tilegx_cmodel.
9966 (tilegx_compute_pcrel_plt_address): Define.
9967 (tilegx_legitimize_pic_address): Rename calls to
9968 compute_pcrel_address.
9969 (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL,
9970 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
9971 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
9972 (load_pic_register): Rename call to compute_pcrel_address.
9973 (tilegx_print_operand): Handle UNSPEC_HW1_PCREL,
9974 UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
9975 UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
9977 2012-08-27 Maxim Kuvyrkov <maxim@codesourcery.com>
9979 * sched-deps.c (add_dependence_list_and_free): Simplify.
9980 (flush_pending_list_and_free): Fix a hack that was fixing a hack. Free
9981 lists when add_dependence_list_and_free doesn't free them.
9983 2012-08-27 Uros Bizjak <ubizjak@gmail.com>
9986 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
9987 true for TARGET_64BIT or !flag_pic.
9988 * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
9989 (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
9990 to cmpxchg8b_pic_memory_operand. Use DWIH mode iterator.
9991 Add insn constraint. Conditionally emit xchg asm insns.
9992 (atomic_compare_and_swap<mode>): Update calls. Check only
9993 cmpxchg8b_pic_memory_operand in memory address fixup.
9995 (CASHMODE): Rename from DCASHMODE.
9996 (doublemodesuffix): Update modes.
9997 (regprefix): New mode attribute.
9999 (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
10000 <UNSPECV_CMPXCHG>: New constant.
10001 (atomic_compare_and_swap<mode>_1): Rename from
10002 atomic_compare_and_swap_single<mode>. Update calls and
10003 unspec_volatile constants.
10004 (atomic_compare_and_swap<mode>_doubleword): Rename from
10005 atomic_compare_and_swap_double<mode>. Update calls and
10006 unspec_volatile constants.
10008 2012-08-27 Walter Lee <walt@tilera.com>
10010 * doc/md.texi (TILE-Gx): Fix typo.
10012 2012-08-27 Walter Lee <walt@tilera.com>
10014 * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
10015 * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
10017 2012-08-27 Walter Lee <walt@tilera.com>
10019 * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
10020 (insn_bfins): Delete.
10022 2012-08-27 Walter Lee <walt@tilera.com>
10024 * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
10025 atomic_exchange_bare<mode>,
10026 atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
10027 * config/tilegx/tilegx-generic.md (X1_remote): New
10029 * config/tilegx/tilegx.md (type): Add X1_remove.
10030 (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
10031 insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
10032 insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
10035 2012-08-27 Andreas Schwab <schwab@linux-m68k.org>
10037 * gdbinit.in: Fix syntax of skip command.
10039 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
10041 * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for
10042 SYMBOL_REF SET_SRCs.
10044 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com>
10046 * config/mips/mips.c (vr4130_align_insns): Don't simulate
10047 ghost instructions. Assert that the required instructions exist.
10049 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
10051 * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for
10053 * config/mips/mips.c (machine_function): Add next_fcc.
10054 (mips_output_move): Remove handling of fcc moves.
10055 (mips_allocate_fcc): New function.
10056 (mips_emit_compare, mips_expand_vcondv2sf): Use it.
10057 (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers.
10058 Remove special case for CCmode reloads.
10059 (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat
10060 the result a fixed operand.
10061 * config/mips/mips.md (move_type): Remove lui_movf.
10062 (type, length): Remove references to it.
10063 (movcc, reload_incc, reload_outcc): Delete.
10065 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
10067 * config/mips/mips.c (mips_has_long_branch_p): New function,
10069 (mips_expand_ghost_gp_insns): ...here. Look inside sequences.
10071 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
10073 * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference.
10075 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
10077 * config/mips/mips.c (mips_rtx_costs): Add costs for CINS.
10079 2012-08-26 Richard Sandiford <rdsandiford@googlemail.com>
10081 * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
10082 to the size cost of multiplication.
10084 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
10086 * doc/install.texi (Specific): Clarify what needs to be added to
10089 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
10091 * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL
10092 and NO_DOT_IN_LABEL from here...
10093 (Label Output): ...to here.
10094 * doc/tm.texi: Regenerate.
10096 2012-08-26 Gerald Pfeifer <gerald@pfeifer.com>
10098 * doc/invoke.texi (C++ Dialect Options): Add missing space.
10100 2012-08-25 Eric Botcazou <ebotcazou@adacore.com>
10102 PR rtl-optimization/54088
10103 * jump.c (delete_related_insns): Robustify latest change.
10105 2012-08-25 Ricardo Catalinas Jiménez <jimenezrick@gmail.com>
10107 * doc/extend.texi (__atomic Builtins): Remove space before comma.
10109 2012-08-25 Richard Sandiford <rdsandiford@googlemail.com>
10110 Andrew Pinski <apinski@cavium.com>
10112 * config/mips/mips.h (CASE_VECTOR_MODE): For not
10113 TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
10114 (CASE_VECTOR_SHORTEN_MODE): Likewise.
10116 2012-08-25 Uros Bizjak <ubizjak@gmail.com>
10118 * config/i386/i386.h (FP_REG_P): Remove macro.
10119 (FP_REGNO_P): Ditto.
10120 (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P.
10121 (HARD_REGNO_NREGS_HAS_PADDING): Ditto.
10122 (ANY_FP_REGNO_P): Ditto.
10123 (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P.
10124 * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P
10125 instead of FP_REGNO_P.
10126 (ix86_hard_regno_mode_ok): Ditto.
10127 * config/i386/predicates.md (fp_register_operand): Ditto.
10128 (register_and_not_fp_reg_operand): Ditto.
10129 * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead
10132 * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P.
10134 2012-08-24 Jason Merrill <jason@redhat.com>
10136 * print-tree.c (print_node): Don't check TREE_LANG_FLAG_*
10137 on TREE_VEC or SSA_NAME.
10139 2012-08-24 Jakub Jelinek <jakub@redhat.com>
10142 * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
10143 if init is a CONSTRUCTOR.
10145 2012-08-24 Steven Bosscher <steven@gcc.gnu.org>
10147 * tree-ssa-live.c (dump_var_map): Do not dump the partition
10148 map of virtual operands.
10150 2012-08-24 Yuri Rumyantsev <ysrumyan@gmail.com>
10152 * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
10153 case for Atom processor.
10155 2012-08-24 Simon Baldwin <simonb@google.com>
10157 * dwarf2out.c (gen_producer_string): Omit command line switch if
10158 CL_NO_DWARF_RECORD flag set.
10159 * opts.h (CL_NO_DWARF_RECORD): New.
10160 * opt-functions.awk (switch_flags): Add NoDWARFRecord.
10161 * doc/options.texi: Document NoDWARFRecord option flag.
10163 2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
10166 * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
10167 frame_pointer_rtx for based_loc_descr.
10169 2012-08-24 Martin Jambor <mjambor@suse.cz>
10171 * predict.c (maybe_hot_frequency_p): New parameter fun. Use its decl
10172 instead of current_function_decl, use profile_status_for_function and
10173 ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
10174 (maybe_hot_count_p): New parameter fun, use
10175 profile_status_for_function instead of its cfun_variant.
10176 (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
10178 (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
10179 maybe_hot_frequency_p.
10180 (probably_never_executed_bb_p): New parameter fun, use its decl
10181 instead of current_function_decl.
10182 (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
10183 (rtl_profile_for_bb): Likewise.
10184 (compute_function_frequency): Pass cfun to maybe_hot_bb_p and
10185 probably_never_executed_bb_p.
10186 * tree-ssa-operands.c (ssa_operands_active): New operator fun. Use it
10188 (update_stmt_operands): Pass cfun as an argument of
10189 ssa_operands_active.
10190 (swap_tree_operands): Likewise.
10191 * gimple-iterator.c (update_modified_stmt): Likewise.
10192 (update_modified_stmts): Likewise.
10193 * tree-flow-inline.h (delink_stmt_imm_use): Likewise.
10194 * tree-ssa.c (delete_tree_ssa): Likewise.
10195 * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
10196 (push_to_next_round_p): Likewise.
10197 (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
10198 * cfg.c: Inlude tree.h.
10199 (check_bb_profile): Use profile_status_for_function,
10200 EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
10201 DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
10203 (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
10204 maybe_hot_bb_p and probably_never_executed_bb_p.
10205 * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
10206 DECL_STRUCT_FUNCTION (current_function_decl) is not NULL. Pass it to
10207 dump_histograms_for_stmt.
10208 (dump_gimple_mem_ops): Pass
10209 DECL_STRUCT_FUNCTION (current_function_decl)
10210 as an argument to dump_gimple_mem_ops.
10211 * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
10212 Do not change cfun. Change and restore current_function_decl.
10213 * Makefile.in (cfg.o): Include TREE_H in dependencies.
10215 2012-08-24 Georg-Johann Lay <avr@gjlay.de>
10218 * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes.
10219 * avr/avr-fixed.md: New file.
10220 * avr/avr.md: Include it.
10222 (adjust_len): Add: minus, minus64, ufract, sfract.
10223 (ALL1, ALL2, ALL4, ORDERED234): New mode iterators.
10224 (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
10225 (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
10226 (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3,
10227 subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi,
10228 cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1.
10229 (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3,
10230 ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3,
10231 *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all
10232 16-bit modes in ALL2.
10233 (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI.
10234 (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const,
10235 ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const,
10236 *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all
10237 32-bit modes in ALL4.
10238 * avr-dimode.md (ALL8): New mode iterator.
10239 (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn,
10240 subdi3_const_insn, cbranchdi4, compare_di2,
10241 compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn,
10242 ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle
10243 all 64-bit modes in ALL8.
10244 * config/avr/avr-protos.h (avr_to_int_mode): New prototype.
10245 (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes.
10246 * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to...
10247 (avr_fixed_point_supported_p): ...this new static function.
10248 (TARGET_BUILD_BUILTIN_VA_LIST): Define to...
10249 (avr_build_builtin_va_list): ...this new static function.
10250 (avr_adjust_type_node): New static function.
10251 (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P.
10252 (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new
10253 pseudo instead of gen_rtx_MINUS.
10254 (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED.
10255 (notice_update_cc): Handle: CC_MINUS.
10256 (output_movqi): Generalize to handle respective fixed-point modes.
10257 (output_movhi, output_movsisf, avr_2word_insn_p): Ditto.
10258 (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes.
10259 (avr_assemble_integer): Ditto.
10260 (output_reload_in_const, output_reload_insisf): Ditto.
10261 (avr_compare_pattern): Skip all modes > 4 bytes.
10262 (avr_2word_insn_p): Skip movuqq_insn, movqq_insn.
10263 (avr_out_fract, avr_out_minus, avr_out_minus64): New functions.
10264 (avr_to_int_mode): New function.
10265 (adjust_insn_length): Handle: ADJUST_LEN_SFRACT,
10266 ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64.
10267 * config/avr/predicates.md (const0_operand): Allow const_fixed.
10268 (const_operand, const_or_immediate_operand): New.
10269 (nonmemory_or_const_operand): New.
10270 * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ):
10272 * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define.
10274 2012-08-23 Kenneth Zadeck <zadeck@naturalbridge.com>
10276 * alias.c (rtx_equal_for_memref_p): Convert constant cases.
10277 * combine.c (find_single_use_1, mark_used_regs_combine): Convert
10279 * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
10280 count_reg_usage): Convert constant cases.
10281 * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY.
10282 (cselib_subst_to_values): Convert constant cases.
10283 * df-scan.c (df_uses_record): Ditto.
10284 * dse.c (const_or_frame_p): Convert case statements to explicit
10285 if-then-else using mode classes.
10286 * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
10287 * explow.c (convert_memory_address_addr_space): Ditto.
10288 * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
10289 * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
10290 * ira.c (equiv_init_varies_p, contains_replace_regs,
10291 memref_referenced_p, rtx_moveable_p): Ditto.
10292 * jump.c (mark_jump_label_1): Remove constant cases.
10293 (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
10294 * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
10295 invariant_expr_equal_p): Convert to CASE_CONST_ANY.
10296 * postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
10297 * reginfo.c (reg_scan_mark_refs): Ditto.
10298 * regrename.c (scan_rtx): Ditto.
10299 * reload1.c (eliminate_regs_1, elimination_effects,
10300 scan_paradoxical_subregs): Ditto.
10301 * reload.c (operands_match_p, subst_reg_equivs): Ditto.
10302 * resource.c (mark_referenced_resources, mark_set_resources): Ditto.
10303 * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
10304 (reg_mentioned_p, modified_between_p, modified_in_p)
10305 (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
10306 inequality_comparisons_p, computed_jump_p_1): Ditto.
10307 * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
10308 * sched-deps.c (sched_analyze_2): Ditto.
10309 * valtrack.c (cleanup_auto_inc_dec): Ditto.
10310 * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
10311 CASE_CONST_ANY): New macros.
10313 2012-08-23 Julian Brown <julian@codesourcery.com>
10314 Sandra Loosemore <sandra@codesourcery.com>
10316 * config/mips/mips.md
10317 (UNSPEC_CASESI_DISPATCH): New.
10318 (MIPS16_T_REGNUM): New constant.
10319 (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
10321 (casesi_internal_mips16_<mode>): New.
10322 * config/mips/mips.c (mips16_split_long_branches): Adjust test
10323 to ignore casesi jump tables.
10324 * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
10326 (CASE_VECTOR_MODE): Use SImode unconditionally.
10327 (CASE_VECTOR_SHORTEN_MODE): Define.
10328 (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
10329 when necessary for MIPS16_SHORT_JUMP_TABLES.
10331 2012-08-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10333 * config/rs6000/rs6000.c (rs6000_density_test): Free loop body.
10335 2012-08-23 H.J. Lu <hongjiu.lu@intel.com>
10338 * doc/invoke.texi: Add -da and remove -dm.
10340 2012-08-23 Richard Guenther <rguenther@suse.de>
10342 * tree-vect-stmts.c (vect_finish_stmt_generation): Update
10345 2012-08-23 Jakub Jelinek <jakub@redhat.com>
10347 * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION.
10349 2012-08-23 Mingjie Xing <mingjie.xing@gmail.com>
10351 * doc/gty.texi: Fix typo.
10353 2012-08-23 Richard Guenther <rguenther@suse.de>
10355 * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands.
10356 (find_uses_to_rename_use): Likewise.
10357 (find_uses_to_rename_bb): Likewise.
10358 (find_uses_to_rename_stmt): Walk over all operands.
10360 2012-08-22 Oleg Endo <olegendo@gcc.gnu.org>
10363 * config/sh/predicates (p27_rshift_count_operand,
10364 not_p27_rshift_count_operand): New predicates.
10365 * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p,
10366 sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special
10367 case when shift amount is 31.
10368 (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m.
10369 * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead
10371 (ashlsi_c): Rename to shll. Adapt calls to gen_ashlsi_c throughout
10373 (lshrsi3): Remove clobber from expander. Use shift_count_operand
10374 instead of nonmemory_operand predicate for second operand. Add
10375 handling of case lshrsi3_n_clobbers_t.
10376 (lshrsi3_k): Use p27_rshift_count_operand for second operand.
10377 (lshrsi3_d): Make insn_and_split. Split dynamic shift to constant
10378 shift sequences if beneficial.
10379 (lshrsi3_n): Make insn_and_split. Split constant shift sequence to
10380 dynamic shift if beneficial.
10381 (lshrsi3_n_clobbers_t): New insn_and_split.
10382 (lshrsi3_m): Delete.
10384 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
10386 * tracer.c (mark_bb_seen): Use SBITMAP_SIZE.
10388 * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale,
10389 or rather a lack thereof.
10390 (init_alias_analysis): Propagate the latest information across
10391 the CFG in topological order to propagate as far as possible in
10392 each iteration. Ignore debug insns.
10394 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
10396 * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
10398 * config/i386/i386.c (flag_opts): Add -mlong-double-64.
10399 (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
10401 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
10402 TARGET_LONG_DOUBLE_64 is true.
10403 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
10404 (WIDEST_HARDWARE_FP_SIZE): Defined to 80.
10406 * config/i386/i386.opt (mlong-double-80): New option.
10407 (mlong-double-64): Likewise.
10409 * config/i386/i386-c.c (ix86_target_macros): Define
10410 __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
10412 2012-08-22 H.J. Lu <hongjiu.lu@intel.com>
10415 * config/i386/i386.c (ix86_split_to_parts): Replace
10416 REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target.
10418 2012-08-22 Richard Guenther <rguenther@suse.de>
10420 * tree-vectorizer.c (vectorize_loops): Do not call
10421 mark_virtual_operands_for_renaming.
10422 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
10423 Do not update SSA form here.
10425 2012-08-22 Dodji Seketeli <dodji@redhat.com>
10427 * tree.h (TREE_NOTHROW): Use the base.nothrow_flag.
10429 2012-08-22 Richard Guenther <rguenther@suse.de>
10431 PR tree-optimization/46590
10432 * tree-ssa-alias.h (get_continuation_for_phi): Add alias query
10433 counter output argument.
10434 (walk_non_aliased_vuses): Add alias query counter argument
10435 to the walker callback.
10436 * tree-ssa-alias.c (maybe_skip_until): Add alias query counter
10437 output argument and count alias queries.
10438 (get_continuation_for_phi_1): Likewise.
10439 (get_continuation_for_phi): Likewise.
10440 (walk_non_aliased_vuses): Add alias query counter argument
10441 to the walker callback and allow it to abort the walk by
10443 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
10444 * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query
10445 counter parmeter, abort walk if that is bigger than
10446 --param sccvn-max-alias-queries-per-access.
10447 * params.def (sccvn-max-alias-queries-per-access): New param.
10448 * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document.
10450 2012-08-22 Richard Guenther <rguenther@suse.de>
10452 * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking.
10453 * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert
10454 instead of gcc_assert.
10455 (mark_block_for_update): Likewise.
10456 (add_new_name_mapping): Likewise.
10457 (mark_def_sites): Likewise.
10458 (insert_phi_nodes_for): Likewise.
10459 (rewrite_debug_stmt_uses): Likewise.
10460 (rewrite_stmt): Likewise.
10461 (maybe_register_def): Likewise.
10462 (rewrite_update_phi_arguments): Likewise.
10463 (rewrite_update_enter_block): Likewise.
10464 (mark_def_interesting): Likewise.
10465 (prepare_def_site_for): Likewise.
10466 (insert_updated_phi_nodes_for): Likewise.
10468 2012-08-22 Jakub Jelinek <jakub@redhat.com>
10470 * tree-vect-loop.c (vect_transform_loop): Initialize
10471 check_profitability to false.
10473 * tree-predcom.c (try_combine_chains): Free the worklist vector
10476 2012-08-22 Marc Glisse <marc.glisse@inria.fr>
10478 PR tree-optimization/54317
10479 * tree-vrp.c (extract_range_from_binary_expr_1): Test for
10480 double_int overflow.
10483 2012-08-22 Jakub Jelinek <jakub@redhat.com>
10485 * tree-vrp.c (find_assert_locations): Skip also edges
10486 from the entry block.
10488 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call
10489 free_stmt_vec_info on orig_cond after gsi_removing it.
10490 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always
10491 free body_cost_vec vector.
10492 (vect_analyze_data_refs): If gather is unsuccessful,
10493 free_data_ref (dr).
10494 * tree-inline.c (tree_function_versioning): Free
10495 old_transforms_to_apply vector.
10497 2012-08-22 Steven Bosscher <steven@gcc.gnu.org>
10499 * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents
10500 of this a VEC and add a bitmap obstack.
10501 (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared
10503 (ssa_conflicts_delete): Free the VEC and release the obstack.
10504 (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one,
10505 ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes.
10506 (truct live_track_d): Add another bitmap obstack here.
10507 (new_live_track): Initialize it and use it for all bitmaps.
10508 (delete_live_track): Don't free the bitmaps one at a time, just
10509 release the obstack.
10510 (create_outofssa_var_map): Fix to conform to GCC code style rules.
10512 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
10514 * config/m32c/constraints.md: New file.
10515 * config/m32c/t-m32c (MD_FILES): Add constraints.
10516 * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete.
10517 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
10518 (m32c_reg_class_from_constraint): Delete.
10519 (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete.
10520 (m32c_matches_constraint_p): Declare.
10521 * config/m32c/m32c.h (CONSTRAINT_LEN): Delete.
10522 (REG_CLASS_FROM_CONSTRAINT): Delete.
10523 (CONST_OK_FOR_CONSTRAINT_P): Delete.
10524 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete.
10525 (EXTRA_CONSTRAINT_STR): Delete.
10526 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete.
10527 * config/m32c/m32c.c: Include tm-constrs.h
10528 (m32c_reg_class_from_constraint): Delete.
10529 (m32c_const_ok_for_constraint_p): Delete.
10530 (m32c_extra_constraint_p2): Rename to...
10531 (m32c_matches_constraint_p): ...this. Make it return bool. Tweak
10533 (m32c_extra_constraint_p): Delete.
10534 (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
10535 (m32c_split_move): Use satisfies_constraint_Ss.
10536 * config/m32c/predicates.md (memsym_operand): Use
10537 satisfies_constraint_Si.
10538 (memimmed_operand): Use satisfies_constraint_Sp.
10539 (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb.
10540 (m32c_1bit16_operand): Use satisfies_constraint_Ilw.
10541 (m32c_1mask8_operand): Use satisfies_constraint_ImB.
10542 (m32c_1mask16_operand): Use satisfies_constraint_Imw.
10544 2012-08-21 Nathan Froyd <froydnj@gcc.gnu.org>
10546 * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete.
10547 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10548 (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete.
10549 * config/mep/mep.c (mep_reg_class_from_constraint): Delete.
10550 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
10551 * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete.
10552 (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
10554 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
10556 * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t,
10557 cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond,
10558 truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a,
10559 ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei,
10560 call_valuei_pcrel, sibcalli_pcrel, sibcall_compact,
10561 sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1,
10562 casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1,
10563 sp_switch_2, stack_protect_set_si, stack_protect_set_si_media,
10564 stack_protect_set_di_media, stack_protect_test_si,
10565 stack_protect_test_si_media, stack_protect_test_di_media): Convert to
10566 multi-line asm output strings.
10567 (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm
10569 (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli,
10570 call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a,
10571 bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10572 bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr):
10573 Use tab char instead of '\\t'.
10574 (iordi3): Use braced string.
10575 (*movsi_pop): Use tab chars instead of spaces.
10577 2012-08-21 Oleg Endo <olegendo@gcc.gnu.org>
10580 * config/sh/sh.md (*movhi_index_disp): Add support for SH2A
10583 2012-08-21 H.J. Lu <hongjiu.lu@intel.com>
10585 PR middle-end/54332
10586 * df-scan.c (df_bb_verify): Restore df_free_collection_rec call
10587 inside the insn traversal loop.
10589 * vec.h (vec_reserve): Remove the stack allocation check.
10591 2012-08-21 Marc Glisse <marc.glisse@inria.fr>
10593 * fold-const.c (fold_ternary_loc): Detect identity permutations.
10594 Canonicalize permutations more.
10595 * tree-ssa-forwprop.c (is_combined_permutation_identity): New function.
10596 (simplify_permutation): Likewise.
10597 (ssa_forward_propagate_and_combine): Call it.
10599 2012-08-21 Richard Guenther <rguenther@suse.de>
10601 * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
10602 the affine expansion cache.
10603 * tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
10605 (free_expr_hash_elt): ... this one.
10606 (record_cond): Properly free a not needed hashtable element.
10607 (lookup_avail_expr): Likewise.
10608 * tree-into-ssa.c (init_ssa_renamer): Specify a free function
10609 for the var_infos hashtable.
10610 (update_ssa): Likewise.
10612 2012-08-21 Richard Guenther <rguenther@suse.de>
10614 * alloc-pool.c (pool_alloc): Fix valgrind annotation.
10615 * tree.h: Fix typo and complete flags documentation.
10617 2012-08-21 Richard Guenther <rguenther@suse.de>
10619 * tree.h (struct tree_base): Add union to make it possible to
10620 re-use the upper 4 bytes for tree codes that do not need as
10621 many flags as others. Move visited and default_def_flag to
10622 common bits section in exchange for saturating_flag and
10623 unsigned_flag. Add SSA name version and tree vec length
10625 (struct tree_vec): Remove length field here.
10626 (struct tree_ssa_name): Remove version field here.
10628 2012-08-20 Jan Hubicka <jh@suse.cz>
10631 * ipa-inline.c (want_inline_small_function_p): Take loop_iterations
10633 (edge_badness): Likewise.
10634 * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations.
10635 (inline_summary): Add loop_iterations.
10636 * ipa-inline-analysis.c: Include tree-scalar-evolution.h.
10637 (dump_inline_hints): Dump loop_iterations.
10638 (reset_inline_summary): Free loop_iterations.
10639 (inline_node_duplication_hook): Update loop_iterations.
10640 (dump_inline_summary): Dump loop_iterations.
10641 (will_be_nonconstant_expr_predicate): New function.
10642 (estimate_function_body_sizes): Analyze loops.
10643 (estimate_node_size_and_time): Set hint loop_iterations.
10644 (inline_merge_summary): Merge loop iterations.
10645 (inline_read_section): Stream in loop_iterations.
10646 (inline_write_summary): Stream out loop_iterations.
10648 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
10651 * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits.
10652 (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split.
10653 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function.
10654 * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it.
10656 2012-08-20 Oleg Endo <olegendo@gcc.gnu.org>
10659 * config/sh/sh.md (*cset_zero): New insns.
10661 2012-08-20 Mark Wielaard <mjw@redhat.com>
10663 * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc.
10664 * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc.
10665 (add_AT_low_high_pc): New function.
10666 (AT_lbl): Handle dw_val_class_high_pc.
10667 (print_die): Likewise.
10668 (attr_checksum): Likewise.
10669 (attr_checksum_ordered): Likewise.
10670 (same_dw_val_p): Likewise.
10671 (size_of_die): Likewise.
10672 (value_format): Likewise.
10673 (output_die): Likewise.
10674 (gen_subprogram_die): Use add_AT_low_high_pc.
10675 (add_high_low_attributes): Likewise.
10676 (dwarf2out_finish): Likewise.
10678 2012-08-20 Jakub Jelinek <jakub@redhat.com>
10680 PR rtl-optimization/54294
10681 * fwprop.c (all_uses_available_at): Ignore debug insns in between
10682 def_insn and target_insn when checking whether the shortcut is
10685 2012-08-20 Eric Botcazou <ebotcazou@adacore.com>
10687 * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define.
10689 2012-08-20 Patrick Marlier <patrick.marlier@gmail.com>
10691 PR middle-end/53992
10692 * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
10694 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
10697 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
10698 declaration and setter.
10700 2012-08-20 Richard Earnshaw <rearnsha@arm.com>
10703 * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
10705 (is_widening_mult_rhs_p): Use it.
10707 2012-08-20 Joseph Myers <joseph@codesourcery.com>
10709 * configure.ac (ffs): Check for declaration.
10710 * configure, config.in: Regenerate.
10712 2012-08-20 Richard Guenther <rguenther@suse.de>
10714 * tree-flow.h (register_new_name_mapping): Remove.
10715 * tree-into-ssa.c (register_new_name_mapping): Likewise.
10716 (add_new_name_mapping): Do not push/pop timevar here.
10717 (create_new_def_for): Instead do it here. Initialize
10718 update-ssa here, handle a NULL def.
10719 * tree-vrp.c (build_assert_expr_for): Use create_new_def_for.
10721 2012-08-20 Richard Guenther <rguenther@suse.de>
10723 PR tree-optimization/54327
10724 * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains
10725 if the use is registered for SSA update.
10727 2012-08-20 Jakub Jelinek <jakub@redhat.com>
10729 PR tree-optimization/54321
10730 * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1
10731 as second argument to tree_low_cst call on val2.
10733 2012-08-20 Richard Guenther <rguenther@suse.de>
10735 * gimple.h (gimple_statement_base): Annotate with GTY chain_next.
10737 2012-08-20 Richard Guenther <rguenther@suse.de>
10740 * genoutput.c (note_constraint): Properly use CONST_CAST.
10742 2012-08-19 Nick Clifton <nickc@redhat.com>
10745 * config/arm/mmintrin.h: Remove spurious #endif.
10747 2012-08-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10749 * config/avr/avr-log.c (avr_log_vadump): Properly use
10750 int-promoted enum values.
10751 * config/avr/avr.h (struct mcu_type_s): Change `arch' from
10752 int to enum avr_arch.
10753 * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer.
10755 2012-08-18 Jan Hubicka <jh@suse.cz>
10758 * ipa-inline.c (want_inline_small_function_p): Bypass
10759 inline limits for hinted functions.
10760 (edge_badness): Dump hints; decrease badness for hinted funcitons.
10761 * ipa-inline.h (enum inline_hints_vals): New enum.
10762 (inline_hints): New type.
10763 (edge_growth_cache_entry): Add hints.
10764 (dump_inline_summary): Update.
10765 (dump_inline_hints): Declare.
10766 (do_estimate_edge_hints): Declare.
10767 (estimate_edge_hints): New inline function.
10768 (reset_edge_growth_cache): Update.
10769 * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges.
10770 * ipa-inline-analysis.c (dump_inline_hints): New function.
10771 (estimate_edge_devirt_benefit): Return true when function should be
10773 (estimate_calls_size_and_time): New hints argument; set it when
10774 devritualization happens.
10775 (estimate_node_size_and_time): New hints argument.
10776 (do_estimate_edge_time): Cache hints.
10777 (do_estimate_edge_growth): Update.
10778 (do_estimate_edge_hints): New function
10780 2012-08-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10782 PR middle-end/53823
10783 * expmed.c (expand_mult): Skip synth_mult for negative coefficients
10784 if the mode is larger than a wide int and it is too costly to multiply
10785 by a positive multiplier and negate the result.
10787 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
10789 * sparseset.c (sparseset_alloc): Use non-clearing allocation. Tell
10790 valgrind not to worry about reading from unitialized memory.
10792 2012-08-18 Steven Bosscher <steven@gcc.gnu.org>
10794 PR middle-end/54313
10795 * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is
10796 freed when its obstack is release.
10798 2012-08-18 Andrew Pinski <pinskia@gmail.com>
10800 * alloc-pool.c (pool_alloc): Add valgrind markers.
10801 (pool_free): Likewise.
10803 2012-08-17 Walter Lee <walt@tilera.com>
10805 * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
10806 (FEEDBACK_ENTER): Define.
10807 (FEEDBACK_REENTER): Define.
10808 (FEEDBACK_ENTRY): Define.
10809 * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
10810 (FEEDBACK_ENTER): Define.
10811 (FEEDBACK_REENTER): Define.
10812 (FEEDBACK_ENTRY): Define.
10814 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
10815 Gary Funck <gary@intrepid.com>
10818 * config/i386/i386.c (ix86_member_type_forces_blk): New function.
10819 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
10821 * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro.
10823 2012-08-17 Marc Glisse <marc.glisse@inria.fr>
10825 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
10828 2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
10830 * stor-layout.c (compute_record_mode): Replace
10831 MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
10832 (layout_type): Likewise.
10834 * system.h: Poison MEMBER_TYPE_FORCES_BLK.
10836 * target.def (member_type_forces_blk): New target hook.
10838 * targhooks.c (default_member_type_forces_blk): New.
10839 * targhooks.h (default_member_type_forces_blk): Likewise.
10841 * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
10842 (TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
10843 * doc/tm.texi: Regenerated.
10845 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
10847 * config/ia64/ia64.c (ia64_member_type_forces_blk): New function.
10848 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
10850 * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
10851 (rs6000_member_type_forces_blk): New function.
10853 * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
10855 * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function.
10856 (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
10858 * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
10860 2012-08-17 Diego Novillo <dnovillo@google.com>
10863 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
10864 * config.in: Regenerate.
10865 * configure: Regenerate.
10866 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
10868 2012-08-17 Richard Guenther <rguenther@suse.de>
10870 * bitmap.h (struct bitmap_element_def): GTY annotate next/prev.
10871 (struct bitmap_head_def): GTY skip current field.
10873 2012-08-17 Steven Bosscher <steven@gcc.gnu.org>
10875 PR middle-end/54146
10876 * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack.
10877 (memref_free): Don't free the bitmaps individually here.
10878 (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack.
10879 (analyze_memory_references): Likewise.
10880 (tree_ssa_lim_initialize): Initialize the new bitmap obstack.
10881 (tree_ssa_lim_finalize): Release it.
10882 * dse.c (dse_bitmap_obstack): New bitmap obstack.
10883 (dse_obstack): New obstack.
10884 (get_group_info): Allocate the bitmaps on the new bitmap obstack.
10885 (dse_step0): Allocate the scratch bitmap on reg_obstack. Initialize
10886 the new bitmap obstack and normal obstack. Use XNEWVEC for bb_table.
10887 (record_store): Allocate regs_set on reg_obstack.
10888 (dse_step1): Allocate regs_live on reg_obstack.
10889 (dse_step2_init): Allocate offset_map_n and offset_map_p on the new
10891 (dse_step3_scan): Allocate bitmaps on the new bitmap obstack.
10892 (dse_step3): Likewise.
10893 (dse_confluence_0): Likewise.
10894 (dse_confluence_n): Likewise.
10895 (dse_transfer_function): Likewise.
10896 (dse_step7): Destroy the new obstacks, and everything allocated on
10897 them, in one big sweep.
10898 (rest_of_handle_dse): Update.
10899 * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack.
10900 (add_stack_var_conflict): Allocate bitmaps on it.
10901 (add_scope_conflicts_1): Likewise.
10902 (add_scope_conflicts): Likewise.
10903 (update_alias_info_with_stack_vars): Likewise.
10904 (init_vars_expansion): Move TREE_USED fiddling expand_used_vars.
10905 Initialize the new bitmap obstack.
10906 (fini_vars_expansion): Release it.
10907 (estimated_stack_frame_size): Use init_vars_expansion to set things up
10908 and always clean up at the end.
10909 (expand_used_vars): Do the TREE_USED trickery here. Always call
10910 fini_vars_expansion.
10911 * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout
10912 arrays of bitmap_head to avoid one indirection per bitmap access.
10913 (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear,
10914 make_live_on_entry): Update.
10915 * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'.
10916 (liveness_bitmap_obstack): New bitmap obstack.
10917 (remove_unused_locals): Use it to allocate all bitmaps on. Update
10918 for livein/liveout changes in tree-ssa-live.h.
10919 (delete_tree_live_info): Release the bitmap obstack.
10920 (loe_visit_block, live_worklist, set_var_live_on_entry,
10921 calculate_live_on_exit, dump_live_info): Update.
10922 (calculate_live_ranges): Initialize the bitmap.
10923 * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack.
10924 (new_temp_expr_table): Allocate bitmap on it.
10925 (make_dependent_on_partition, add_to_partition_kill_list,
10926 add_dependence, process_replaceable): Likewise.
10927 (find_replaceable_exprs): Initialize and release the new obstack here.
10928 * df-problems.c (df_lr_add_problem): Allocate persistent bitmap
10929 for out_of_date_transfer_functions on df_bitmap_obstack.
10930 (df_live_add_problem): Likewise.
10931 (df_chain_add_problem): Likewise.
10932 (df_word_lr_add_problem): Likewise.
10934 2012-08-17 Nick Clifton <nickc@redhat.com>
10936 * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
10937 (branch_true): Likewise.
10938 (branch_false): Likewise.
10940 * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison.
10942 * config/iq2000/iq2000.md (cbranchsi4): Remove mode from
10943 comparison and label.
10944 (branch_zero): Likewise.
10945 (branch_zero_inverted): Likewise.
10946 (branch_equality): Likewise.
10947 (branch_equality_inverted): Likewise.
10948 (extend-and-compare): Disable until reload issues can be resolved.
10949 * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode
10951 (iq2000_function_arg_advance): Remove CONST_CAST2.
10953 * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
10956 2012-08-17 Georg-Johann Lay <avr@gjlay.de>
10958 * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile
10959 gen-avr-mmcu-texi.c.
10961 2012-08-17 Richard Earnshaw <rearnsha@arm.com>
10963 * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction.
10964 * arm.c (thumb2_reorg): Don't convert an ADD instruction that's
10967 2012-08-17 Richard Guenther <rguenther@suse.de>
10969 * hash-table.h (class hash_table): Use a descriptor template
10970 argument instead of decomposed element type and support functions.
10971 (struct pointer_hash): New generic typed pointer-hash.
10972 (struct typed_free_remove, struct typed_noop_remove): Generic
10973 hash_table support pieces.
10974 * coverage.c (struct counts_entry): Add hash_table support members.
10975 * tree-ssa-ccp.c (gimple_htab): Use pointer_hash.
10976 * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic
10977 SSA name by SSA_NAME_VAR hash.
10978 (coalesce_ssa_name): Use it.
10979 * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support.
10980 (expression_to_id): Adjust.
10981 (struct expr_pred_trans_d): Add hash_table support.
10982 (phi_translate_table): Adjust.
10983 (phi_trans_lookup): Likewise.
10984 (phi_trans_add): Likewise.
10985 (do_regular_insertion): Likewise.
10986 * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support.
10987 (same_succ_htab): Adjust.
10988 (find_same_succ_bb): Likewise.
10989 (find_same_succ): Likewise.
10990 (update_worklist): Likewise.
10991 * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table
10993 (redirection_data): Adjust.
10995 2012-08-17 Richard Guenther <rguenther@suse.de>
10997 * params.def (integer-share-limit): Decrease from 256 to 251,
11000 2012-08-17 Richard Guenther <rguenther@suse.de>
11002 * tree-sra.c (modify_function): Free redirect_callers vector.
11003 * ipa-split.c (split_function): Free args_to_pass vector.
11004 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free
11005 body_cost_vec properly.
11006 (vect_enhance_data_refs_alignment): Likewise.
11007 * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
11009 (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
11010 * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
11011 (vect_analyze_slp_instance): Free everything.
11012 (destroy_bb_vec_info): Free the SLP instances.
11014 2012-08-17 Iain Sandoe <iain@codesourcery.com>
11016 * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes
11019 2012-08-17 Jakub Jelinek <jakub@redhat.com>
11021 * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
11023 2012-08-16 Sandra Loosemore <sandra@codesourcery.com>
11025 * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr)
11026 (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph)
11027 (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w)
11028 (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr)
11029 (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute.
11031 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
11034 * config/sh/sh.md (addc): Add commutative modifier.
11035 (*addc, *minus_plus_one, *subc, *negc): New insns and splits.
11037 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
11040 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle
11041 potential T_REG clobber. Convert zero extending split to
11044 2012-08-16 Oleg Endo <olegendo@gcc.gnu.org>
11047 * config/sh/sh.md (ashlsi3_d): Do not split if it would result
11048 in a T_REG clobber. Correct comment.
11049 (ashlsi3_n): Correct comment.
11051 2012-08-16 Hans-Peter Nilsson <hp@axis.com>
11053 PR middle-end/54261
11054 * optabs.c (expand_atomic_fetch_op): Save and restore code when
11055 retrying after failed attempt.
11057 2012-08-16 Yuri Rumyantsev <ysrumyan@gmail.com>
11059 * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add
11060 additional argument.
11061 * config/i386/i386.md (ix86_split_lea_for_addr) : Add
11062 additional argument curr_insn.
11063 * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index
11064 register first, depending on their defintion distances.
11065 (ix86_lea_outperforms): Prefer LEA only if split cost exceeds
11067 (find_nearest_reg-def): New function. Find register with
11068 nearest definition.
11070 2012-08-16 Walter Lee <walt@tilera.com>
11072 * config.gcc (tilegx-*-linux*): Add feedback.h.
11073 (tilepro-*-linux*): Likewise.
11074 * config/tilegx/feedback.h: New file.
11075 * config/tilepro/feedback.h: New file.
11077 2012-08-16 Diego Novillo <dnovillo@google.com>
11082 * double-int.h: Move including of gmp.h ...
11083 * system.h: ... here.
11084 * realmpfr.h: Do not include gmp.h.
11085 * tree-ssa-loop-niter.c: Do not include gmp.h.
11087 2012-08-16 Segher Boessenkool <segher@kernel.crashing.org>
11089 * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
11091 2012-08-16 Richard Guenther <rguenther@suse.de>
11093 PR middle-end/54146
11094 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
11096 * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
11097 * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
11098 * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
11099 * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed.
11100 * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
11101 (tree_ssa_lim_finalize): Free all mem_refs.
11102 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
11103 scc when bailing out.
11104 * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
11105 * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
11106 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
11107 FOR_EACH_LOOP_BREAK.
11109 2012-08-16 Diego Novillo <dnovillo@google.com>
11112 * double-int.h: Move including of gmp.h ...
11113 * system.h: ... here.
11114 * realmpfr.h: Do not include gmp.h.
11115 * tree-ssa-loop-niter.c: Do not include gmp.h.
11117 2012-08-16 Steven Bosscher <steven@gcc.gnu.org>
11119 PR middle-end/54146
11120 * tree-flow.h (compute_global_livein): Remove prototype.
11121 * tree-into-ssa.c (compute_global_livein): Remove function.
11122 * tree-ssa-loop-manip.c: Include gimple-pretty-print.h.
11123 (find_sibling_superloop): New function.
11124 (compute_live_loop_exits): New function.
11125 (add_exit_phis_edge): Rename to add_exit_phi. Do not allow
11126 inserting a PHI in a block that is not a loop exit for VAR.
11127 Add dumping if TDF_DETAILS.
11128 (add_exit_phis_var): Rewrite.
11129 (add_exit_phis): Update.
11130 (get_loops_exits): Rewrite to return an array of per-loop exits
11131 rather than one bitmap with all loop exits.
11132 (find_uses_to_rename_bb): Ignore virtual PHI nodes.
11133 (rewrite_into_loop_closed_ssa): Update.
11135 2012-08-16 Nick Clifton <nickc@redhat.com>
11137 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
11138 before passing it to ASM_OUTPUT_LIMITED_STRING.
11140 * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
11142 * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
11143 * config/avr/avr.c (avr_legitimize_reload_address): Add casts
11144 for reload_type enums.
11145 (DEF_BUILTIN): Cast the icode to enum insn_code.
11147 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11149 * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
11151 * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
11153 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11155 * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
11156 (RS6000_CALL_GLUE): Adjust for single assembler syntax.
11157 * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
11158 * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
11159 * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
11160 * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
11161 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
11162 * config/rs6000/darwin.md (whole file): Adjust to single
11164 * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
11165 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
11166 * config/rs6000/dfp.md: (whole file): Adjust to single
11168 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
11169 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
11170 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
11171 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
11172 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
11173 * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK.
11174 * config/rs6000/rs6000-tables.opt: Regenerate.
11175 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete.
11176 (num_insns_constant_wide): Adjust comments.
11177 (whole file): Adjust to single assembler syntax.
11178 (output_cbranch): Adjust comment.
11179 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete.
11180 * config/rs6000/rs6000.md: (whole file): Adjust to single
11182 * config/rs6000/rs6000.opt (mnew-mnemonics): Delete.
11183 (mold-mnemonics): Delete.
11184 * config/rs6000/spe.md: (whole file): Adjust to single
11186 * config/rs6000/sync.md: (whole file): Adjust to single
11188 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
11189 (ASM_OUTPUT_REG_PUSH): Adjust.
11190 (ASM_OUTPUT_REG_POP): Adjust.
11191 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
11192 * config/rs6000/vsx.md: (whole file): Adjust to single
11194 * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
11195 * doc/invoke.texi: Adjust documentation to reflect the
11196 removal of -mnew-mnemonics and -mold-mnemonics.
11198 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11200 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
11201 Delete handling for -mno-powerpc and -mpowerpc.
11202 * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar.
11203 (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom.
11204 * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto.
11205 * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC.
11206 * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto.
11207 * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto.
11208 * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
11209 * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto.
11210 * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
11211 * config/rs6000/driver-rs6000.c (asm_names): Delete handling
11212 for -mcpu=common and -mpowerpc.
11213 * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC.
11214 * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
11215 * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
11216 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
11217 * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
11218 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING):
11219 Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC.
11220 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
11221 (rs6000_cpu_cpp_builtins): Adjust.
11222 * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC.
11223 (rs6000_builtin_mask_calculate): Adjust.
11224 (rs6000_emit_move): Delete code for ! TARGET_POWERPC.
11225 (rs6000_init_libfuncs): Ditto.
11226 (rs6000_output_function_prologue): Ditto.
11227 (rs6000_opt_masks): Delete MASK_POWERPC.
11228 (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC.
11229 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc.
11230 (RS6000_BTM_POWERPC): Delete.
11231 (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC.
11232 * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for
11233 TARGET_POWERPC always on.
11234 (extendqihi2 patterns): Similar.
11235 (various unnamed subtract patterns): Similar.
11236 (bswaphi2 patterns): Similar.
11237 (divmodsi4): Similar.
11238 (udiv<GPR:mode>3): Similar.
11239 (div<GPR:mode>3 patterns): Similar.
11240 (udivmodsi4): Similar.
11241 (mulhcall): Delete.
11242 (mullcall): Delete.
11243 (divss_call): Delete.
11244 (divus_call): Delete.
11245 (quoss_call): Delete.
11246 (quous_call): Delete.
11247 (insvsi patterns): Adjust.
11248 (addsf3 patterns): Adjust.
11249 (subsf3 patterns): Adjust.
11250 (mulsf3 patterns): Adjust.
11251 (divsf3 patterns): Adjust.
11252 (*fmasf4_fpr): Adjust.
11253 (*fmssf4_fpr): Adjust.
11254 (*nfmasf4_fpr): Adjust.
11255 (*nfmssf4_fpr): Adjust.
11256 (*floatunssidf2_internal): Adjust.
11257 (fix_trunc<SFDF:mode>si2_internal): Adjust.
11258 (fctiwz_<SFDF:mode>): Adjust.
11259 (mulsidi3 patterns): Adjust.
11260 (smulsi3_highpart patterns): Adjust.
11261 (umulsi3_highpart patterns): Adjust.
11262 (fix_trunctfsi2 patterns): Adjust.
11263 (prefetch): Adjust.
11264 * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option.
11265 (mno-powerpc): Delete.
11266 * config/rs6000/sync.md (load_locked<ATOMIC:mode>): Adjust.
11267 (store_conditional<ATOMIC:mode>): Adjust.
11268 (atomic_compare_and_swap<ATOMIC:mode>): Adjust.
11269 (atomic_exchange<ATOMIC:mode>): Adjust.
11270 (atomic_<fetchop_name><ATOMIC:mode>): Adjust.
11271 (atomic_nand<ATOMIC:mode>): Adjust.
11272 (atomic_fetch_<fetchop_name><ATOMIC:mode>): Adjust.
11273 (atomic_fetch_nand<ATOMIC:mode>): Adjust.
11274 (atomic_<fetchop_name>_fetch<ATOMIC:mode>): Adjust.
11275 (atomic_nand_fetch<ATOMIC:mode>): Adjust.
11276 * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC.
11277 * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto.
11278 * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto.
11279 * doc/invoke.texi: Adjust documentation.
11281 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11283 * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
11285 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11287 * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo.
11288 * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto.
11289 * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
11290 * config/rs6000/driver-rs6000.c (asm_names): Ditto.
11292 2012-08-15 Segher Boessenkool <segher@kernel.crashing.org>
11295 * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default)
11297 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto.
11299 2012-08-15 Sandra Loosemore <sandra@codesourcery.com>
11300 Maxim Kuvyrkov <maxim@codesourcery.com>
11301 Julian Brown <julian@codesourcery.com>
11302 MIPS Technologies, Inc.
11304 * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu)
11305 (dspalusat): Add insn types.
11306 * config/mips/mips-dsp.md (add<DSPV:mode>3)
11307 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>)
11308 (sub<DSPV:mode>3, mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc)
11309 (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_<DSPQ:dspfmt2>)
11310 (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w)
11311 (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr)
11312 (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla)
11313 (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr)
11314 (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_<DSPV:dspfmt2>)
11315 (mips_shll_s_<DSPQ:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>, mips_shrl_qb)
11316 (mips_shra_ph, mips_shra_r_<DSPQ:dspfmt2>, mips_bitrev, mips_insv)
11317 (mips_repl_qb, mips_repl_ph)
11318 (mips_cmp<DSPV:dspfmt1_1>_eq_<DSPV:dspfmt2>)
11319 (mips_cmp<DSPV:dspfmt1_1>_lt_<DSPV:dspfmt2>)
11320 (mips_cmp<DSPV:dspfmt1_1>_le_<DSPV:dspfmt2>, mips_cmpgu_eq_qb)
11321 (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_<DSPV:dspfmt2>)
11322 (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu.
11323 (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr)
11324 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph)
11325 (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to
11327 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to
11329 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp):
11330 Set type to accext.
11331 (mips_shilo, mips_mthlip): Set type to accmod.
11332 * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph)
11333 (mips_adduh_r_qb): Set type to dspalusat.
11334 (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign)
11335 (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb)
11336 (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w)
11337 (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph)
11338 (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph)
11339 (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph)
11340 (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu.
11341 (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph)
11342 (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to
11343 dspmac. Set accum_in attribute.
11344 (mips_subu_s_ph): Set type to dspalusat.
11345 (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat.
11346 Set accum_in attribute.
11347 * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype.
11348 * config/mips/mips.c (dspalu_bypass_table): New.
11349 (mips_dspalu_bypass_p): New.
11350 * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat)
11351 (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations.
11352 (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat)
11353 (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses.
11354 * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac)
11355 (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn
11357 (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3)
11358 (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses.
11360 2012-08-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11362 * config/spu/spu.c: Include "cfgloop.h".
11363 (spu_machine_dependent_reorg): Call loop_optimizer_init and
11364 loop_optimizer_finalize. Use bb_loop_depth instead of loop_depth.
11365 Directly compare loop_father values where appropriate.
11366 * config/spu/t-spu-elf (spu.o): Update dependencies.
11368 2012-08-15 H.J. Lu <hongjiu.lu@intel.com>
11370 * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H).
11372 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11374 PR tree-optimization/54245
11375 * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function.
11376 (legal_cast_p): Split out logic to legal_cast_p_1.
11377 (analyze_increments): Avoid introducing multiplies in smaller types.
11379 2012-08-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11381 PR tree-optimization/54240
11382 * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for
11383 existence of conditional move with given mode.
11385 2012-08-15 Richard Guenther <rguenther@suse.de>
11387 * double-int.h (double_int::from_unsigned): Rename to ...
11388 (double_int::from_uhwi): ... this.
11389 (double_int::from_signed): Rename to ...
11390 (double_int::from_shwi): ... this.
11391 (double_int::to_signed): Rename to ...
11392 (double_int::to_shwi): ... this.
11393 (double_int::to_unsigned): Rename to ...
11394 (double_int::to_uhwi): ... this.
11395 (double_int::fits_unsigned): Rename to ...
11396 (double_int::fits_uhwi): ... this.
11397 (double_int::fits_signed): Rename to ...
11398 (double_int::fits_shwi): ... this.
11399 (double_int::fits): Rename to ...
11400 (double_int::fits_hwi): ... this.
11401 * double-int.c: Likewise.
11403 2012-08-15 Steven Bosscher <steven@gcc.gnu.org>
11405 * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE,
11406 TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS,
11407 TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI,
11408 TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove.
11409 (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING,
11410 TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New.
11411 * timevar.c (timevar_print): Make printing width of timevar names
11412 more flexible, but enforce maximum length.
11413 * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING.
11414 (pass_ipa_inline): Use TV_IPA_INLINING.
11415 * ipa-inline-analysis.c (pass_inline_parameters): Use
11416 TV_INLINE_HEURISTICS.
11417 * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass.
11418 (pass_tree_loop_done): Likewise.
11419 * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH.
11420 * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT.
11421 (loop_optimizer_finalize): Push/pop TV_LOOP_FINI.
11423 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11425 * config/arm/neon.md (neon_vaba<mode> VDQIW): Canonicalize operands.
11426 (neon_vabal<mode> VDQIW): Likewise.
11428 2012-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11431 * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
11432 mark as predicable. Adjust asm template.
11433 (vec_setv2di_internal): Likewise.
11434 (vec_extract<mode> VD, VQ): Likewise.
11435 (vec_extractv2di): Likewise.
11436 (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
11437 (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
11438 (neon_vdup_n<mode> VX, V32): Likewise.
11439 (neon_vdup_nv2di): Likewise.
11441 2012-08-14 Maxim Kuvyrkov <maxim@codesourcery.com>
11443 * config/mips/mips.md (define_attr accum_in): New instruction
11444 attribute. Set it for imadd and fmadd patterns.
11445 * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract
11446 accumulator register.
11448 2012-08-14 Diego Novillo <dnovillo@google.com>
11450 Merge from cxx-conversion branch. Configury.
11452 * configure.ac (CXX_FOR_BUILD): Define and substitute.
11453 (BUILD_CXXFLAGS): Define.
11454 Remove all handlers of ENABLE_BUILD_WITH_CXX.
11455 Force all build to be with C++.
11456 * Makefile.in (BUILD_CXXFLAGS): Use it.
11457 Remove all handlers of ENABLE_BUILD_WITH_CXX.
11458 * configure: Regenerate.
11459 * config.in: Regenerate.
11460 * doc/install.texi: Remove documentation for --enable-build-with-cxx
11461 and --enable-build-poststage1-with-cxx.
11463 2012-08-14 Diego Novillo <dnovillo@google.com>
11465 Merge from cxx-conversion branch. Re-implement VEC in C++.
11467 * vec.c (vec_heap_free): Convert into a template function.
11468 (vec_gc_o_reserve_1): Make extern.
11469 (vec_gc_p_reserve): Remove.
11470 (vec_gc_p_reserve_exact): Remove.
11471 (vec_gc_o_reserve): Remove.
11472 (vec_gc_o_reserve_exact): Remove.
11473 (vec_heap_o_reserve_1): Make extern.
11474 (vec_heap_p_reserve): Remove.
11475 (vec_heap_p_reserve_exact): Remove.
11476 (vec_heap_o_reserve): Remove.
11477 (vec_heap_o_reserve_exact): Remove.
11478 (vec_stack_p_reserve): Remove.
11479 (vec_stack_p_reserve_exact): Remove.
11480 * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT,
11481 VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file.
11482 (VEC): Define to vec_t<T>.
11483 (vec_allocation_t): Define.
11484 (struct vec_prefix): Move earlier in the file.
11485 (vec_t<T>): New template.
11486 (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P,
11487 DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O,
11488 DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK,
11489 DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'.
11490 (DEF_VEC_A): Provide template instantiations for
11491 GC/PCH markers that do not traverse the vector.
11492 (vec_stack_p_reserve): Remove.
11493 (vec_stack_p_reserve_exact): Remove.
11494 (vec_stack_p_reserve_exact_1): Remove.
11495 (vec_stack_o_reserve): Remove.
11496 (vec_stack_o_reserve_exact): Remove.
11497 (vec_stack_free): Re-write as a template function.
11498 (vec_reserve): New template function.
11499 (vec_reserve_exact): New template function.
11500 (vec_heap_free): New template function if GATHER_STATISTICS is
11501 defined. Otherwise, macro that expands to free().
11502 (VEC_length_1): New template function.
11503 (VEC_length): Call it.
11504 (VEC_empty_1): New template function.
11505 (VEC_empty): Call it.
11506 (VEC_address_1): New template function.
11507 (VEC_address): Call it.
11508 (VEC_last_1): New template function.
11509 (VEC_last): Call it. Change return type to T&.
11510 Change all users that used VEC_Os.
11511 (VEC_index_1): New template function.
11512 (VEC_index): Call it. Return a T& instead of a T*.
11513 Update all callers that were using VEC_O before.
11514 (VEC_iterate_1): New template function.
11515 (VEC_iterate): Call it.
11516 (VEC_embedded_size_1): New template function.
11517 (VEC_embedded_size): Call it.
11518 (VEC_embedded_init_1): New template function.
11519 (VEC_embedded_init): Call it.
11520 (VEC_alloc_1): New template function.
11521 (VEC_alloc): Call it. If A is 'stack', call XALLOCAVAR to
11523 (VEC_free_1): New template function.
11524 (VEC_free): Call it.
11525 (VEC_copy_1): New template function.
11526 (VEC_copy): Call it.
11527 (VEC_space_1): New template function
11528 (VEC_space): Call it.
11529 (VEC_reserve_1): New template function.
11530 (VEC_reserve): Call it.
11531 (VEC_reserve_exact_1): New template function.
11532 (VEC_reserve_exact): Call it.
11533 (VEC_splice_1): New template function.
11534 (VEC_splice): Call it.
11535 (VEC_safe_splice_1): New template function.
11536 (VEC_safe_splice): Call it.
11537 (VEC_quick_push_1): New template function. Create two overloads, one
11538 accepting T, the other accepting T *. Update all callers
11539 where T and T * are ambiguous.
11540 (VEC_quick_push): Call it.
11541 (VEC_safe_push_1): New template function. Create two overloads, one
11542 accepting T, the other accepting T *. Update all callers
11543 where T and T * are ambiguous.
11544 (VEC_safe_push): Call it.
11545 (VEC_pop_1): New template function.
11546 (VEC_pop): Call it.
11547 (VEC_truncate_1): New template function.
11548 (VEC_truncate): Call it.
11549 (VEC_safe_grow_1): New template function.
11550 (VEC_safe_grow): Call it.
11551 (VEC_safe_grow_cleared_1): New template function.
11552 (VEC_safe_grow_cleared): Call it.
11553 (VEC_replace_1): New template function.
11554 (VEC_replace): Call it. Always accept T instead of T*.
11555 Update all callers that used VEC_Os.
11556 (VEC_quick_insert_1): New template function.
11557 (VEC_quick_insert): Call it.
11558 (VEC_safe_insert_1): New template function.
11559 (VEC_safe_insert): Call it.
11560 (VEC_ordered_remove_1): New template function.
11561 (VEC_ordered_remove): Call it.
11562 (VEC_unordered_remove_1): New template function.
11563 (VEC_unordered_remove): Call it.
11564 (VEC_block_remove_1): New template function.
11565 (VEC_block_remove): Call it.
11566 (VEC_lower_bound_1): New template function.
11567 (VEC_lower_bound): Call it.
11569 (DEF_VEC_FUNC_P): Remove.
11570 (DEF_VEC_ALLOC_FUNC_P): Remove.
11571 (DEF_VEC_NONALLOC_FUNCS_P): Remove.
11572 (DEF_VEC_FUNC_O): Remove.
11573 (DEF_VEC_ALLOC_FUNC_O): Remove.
11574 (DEF_VEC_NONALLOC_FUNCS_O): Remove.
11575 (DEF_VEC_ALLOC_FUNC_I): Remove.
11576 (DEF_VEC_NONALLOC_FUNCS_I): Remove.
11577 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove.
11578 (DEF_VEC_ALLOC_FUNC_O_STACK): Remove.
11579 (DEF_VEC_ALLOC_FUNC_I_STACK): Remove.
11580 (vec_reserve_exact): New template function.
11582 * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove.
11583 * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP].
11584 (typedef_name): Emit vec_t<C1> instead of VEC_C1_C2.
11585 (def_vec_alloc): Remove. Update all callers.
11586 * gengtype.c (filter_type_name): New.
11587 (output_mangled_typename): Call it.
11588 (write_func_for_structure): Likewise.
11589 (write_types): Likewise.
11590 (write_root): Likewise.
11591 (write_typed_alloc_def): Likewise.
11592 (note_def_vec): Emit vec_t<TYPE_NAME> instead of VEC_TYPE_NAME_base.
11593 (note_def_vec_alloc): Remove.
11594 * gengtype.h (note_def_vec_alloc): Remove.
11595 (DEFVEC_ALLOC): Remove token code.
11597 * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec
11598 inside the insn traversal loop.
11599 * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK.
11600 * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP.
11601 * reg-stack.c (stack): Rename to STACK_PTR. Update all users.
11602 * tree-vrp.c (stack): Rename to EQUIV_STACK. Update all users.
11604 * config/bfin/bfin.c (hwloop_optimize): Update some calls to
11605 VEC_* for vectors of non-pointers.
11606 * config/c6x/c6x.c (try_rename_operands): Likewise.
11607 (reshuffle_units): Likewise.
11608 * config/mips/mips.c (mips_multi_start): Likewise.
11609 (mips_multi_add): Likewise.
11610 (mips_multi_copy_insn): Likewise.
11611 (mips_multi_set_operand): Likewise.
11612 * hw-doloop.c (discover_loop): Likewise.
11613 (discover_loops): Likewise.
11614 (reorg_loops): Likewise.
11616 2012-08-14 Diego Novillo <dnovillo@google.com>
11618 Merge from cxx-conversion branch. C++ support in gengtype.
11620 * coretypes.h (gt_pointer_operator): Move from ...
11622 * doc/gty.texi: Document support for C++ templates and
11623 user-provided markers.
11624 * gengtype-lex.l: Update copyright year.
11625 Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I.
11626 * gengtype-parse.c: Update copyright year.
11627 (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I.
11628 (require_template_declaration): New.
11629 (typedef_name): Call it.
11630 (type): Replace IS_UNION with KIND. Replace all users.
11631 (def_vec): Remove. Update all users.
11632 * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT.
11633 (write_state_user_struct_type): New.
11634 (write_state_type): Call it.
11635 (read_state_user_struct_type): New.
11636 (read_state_type): Call it.
11637 * gengtype.c: Update copyright year.
11638 (dump_pair): Move declaration to the top.
11639 (dump_type): Likewise.
11640 (dump_type_list): Likewise.
11641 (dbgprint_count_type_at): Handle TYPE_USER_STRUCT.
11642 (create_user_defined_type): New.
11643 (resolve_typedef): Call it.
11644 (new_structure): Replace argument ISUNION with KIND.
11645 Change users to refer to KIND directly.
11646 Update all callers.
11647 (find_structure): Likewise.
11648 (set_gc_used_type): Handle TYPE_USER_STRUCT.
11649 (create_file): Update HDR to include new copyright year.
11650 (struct walk_type_data): Add field IN_PTR_FIELD.
11651 (output_mangled_typename): Handle TYPE_USER_STRUCT.
11652 (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER.
11653 Clear it afterwards.
11654 Handle TYPE_USER_STRUCT.
11655 (write_types_process_field): Handle TYPE_USER_STRUCT.
11656 (get_type_specifier): Move earlier in the file.
11657 (write_type_decl): New.
11658 (write_marker_function_name): New.
11659 (write_user_func_for_structure_ptr): New.
11660 (write_user_func_for_structure_body): New.
11661 (write_user_marking_functions): New.
11662 (write_func_for_structure): Call write_marker_function_name
11663 and write_type_decl.
11664 Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user
11666 Call write_user_marking_functions on TYPE_USER_STRUCTs.
11667 (write_types_local_user_process_field): New.
11668 (write_pch_user_walking_for_structure_body): New.
11669 (write_pch_user_walking_functions): New.
11670 (write_types_local_process_field): Handle TYPE_USER_STRUCT.
11671 (write_local_func_for_structure): Do not call walk_type for
11672 TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly.
11673 Call write_pch_user_walking_functions for TYPE_USER_STRUCTs.
11674 (write_root): Handle TYPE_USER_STRUCT.
11675 (vec_prefix_type): Remove. Update all users.
11676 (note_def_vec): Remove. Update all users.
11677 (dump_typekind): Handle TYPE_USER_STRUCT.
11678 (dump_type): Initialize SEEN_TYPES, if needed.
11679 Handle TYPE_USER_STRUCT.
11680 (dump_everything): Do not initialize SEEN_TYPES.
11681 * gengtype.h: Update copyright year.
11682 (enum typekind): Add TYPE_USER_STRUCT.
11683 (union_or_struct_p): Rename from UNION_OR_STRUCT_P.
11684 Convert into function.
11685 Add an overload taking const_type_p.
11686 Update all callers.
11687 (new_structure): Change second field to type enum typekind.
11689 (find_structure): Likewise.
11690 (note_def_vec): Remove.
11691 (DEFVEC_OP): Remove.
11692 (DEFVEC_I): Remove.
11693 * ggc-page.c (gt_ggc_mx): Add entry points for marking
11694 'const char *&', 'unsigned char *&' and 'unsigned char&'.
11695 * ggc-zone.c (gt_ggc_mx): Add entry points for marking
11696 'const char *&' and 'unsigned char *&'.
11697 * stringpool.c (gt_pch_nx): Add entry points for marking
11698 'const char *&', 'unsigned char *&' and 'unsigned char&'.
11699 Add an entry point for the overload taking arguments 'unsigned char
11700 *', 'gt_pointer_operator' and 'void *'.
11701 * vec.h (struct vec_prefix): Remove GTY marker.
11702 (struct vec_t): Remove GTY((length)) attribute from field 'vec'.
11703 (gt_ggc_mx (vec_t<T> *)): New template function.
11704 (gt_pch_nx (vec_t<T> *)): New template function.
11705 (gt_pch_nx (vec_t<T *> *, gt_pointer_operator, void *)): New template
11707 (gt_pch_nx (vec_t<T> *, gt_pointer_operator, void *)): New template
11710 * basic-block.h (struct edge_def): Mark GTY((user)).
11711 Remove all GTY markers from fields.
11712 (gt_ggc_mx): Declare.
11713 (gt_pch_nx): Declare.
11714 * tree-cfg.c (gt_ggc_mx): New.
11717 * gengtype-lex.l (USER_GTY): Add pattern for "user".
11718 * gengtype-parse.c (option): Handle USER_GTY.
11721 If the keyword 'user' is used, do not walk the fields
11723 * gengtype.h (USER_GTY): Add.
11724 * doc/gty.texi: Update.
11726 2012-08-14 Lawrence Crowl <crowl@google.com>
11728 Merge cxx-conversion branch. Implement C++ hash table.
11730 * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c.
11731 * hash-table.c: Likewise.
11732 * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h.
11733 (static htab_t same_succ_htab): Change type to hash_table;
11734 move specification of helper functions from create call to declaration.
11735 Change users to invoke member functions.
11736 (same_succ_print_traverse): Make extern ssa_.... Change callers.
11737 Remove void* casting.
11738 (same_succ_hash): Likewise.
11739 (same_succ_equal): Likewise.
11740 (same_succ_delete): Likewise.
11741 * tree-ssa-threadupdate.c: Include hash-table.h.
11742 (struct local_info): Rename to ssa_local_info_t to avoid overloading
11743 the type name local_info with the variable name local_info.
11744 (static htab_t redirection_data): Change type to hash_table.
11745 Move specification of helper functions from create call to declaration.
11746 Change users to invoke member functions.
11747 (redirection_data_hash): Make extern ssa_.... Change callers.
11748 Remove void* casting.
11749 (redirection_data_eq): Likewise.
11750 (fix_duplicate_block_edges): Likewise.
11751 (create_duplicates): Likewise.
11752 (fixup_template_block): Likewise.
11753 (redirect_edges): Likewise.
11754 (lookup_redirection_data): Change types associated with the hash table
11755 from void* to their actual type. Remove unnecessary casts.
11756 * tree-ssa-ccp.c: Include hash-table.h.
11757 (typedef gimple_htab): New. Uses hash_table. Replace specific uses
11758 of htab_t with gimple_htab. Change users to invoke member functions.
11759 Move specification of helper functions from create call to declaration.
11760 * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h.
11761 (hash_ssa_name_by_var): Make extern. Remove void* casting.
11762 (eq_ssa_name_by_var): Likewise.
11763 (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash
11764 to hash_table. Change users to invoke member functions.
11765 Move specification of helper functions from create call to declaration.
11766 * coverage.c: Include hash-table.h instead of hashtab.h.
11767 (static htab_t counts_hash): Change type to hash_table;
11768 move specification of helper functions from create call to declaration.
11769 Change users to invoke member functions.
11770 (htab_counts_entry_hash): Make extern. Rename with coverage_... instead
11771 of htab_... Remove void* casting.
11772 (htab_counts_entry_eq): Likewise.
11773 (htab_counts_entry_del): Likewise.
11774 * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h.
11775 (static htab_t expression_to_id): Change type to hash_table.
11776 Move specification of helper functions from create call to declaration.
11777 Change users to invoke member functions.
11778 (static htab_t phi_translate_table): Likewise.
11779 (pre_expr_eq): Make extern ssa_.... Change callers.
11780 Remove void* casting.
11781 (pre_expr_hash): Likewise.
11782 (expr_pred_trans_hash): Likewise.
11783 (expr_pred_trans_eq): Likewise.
11784 (alloc_expression_id): Change types associated with the hash table
11785 from void* to their actual type. Remove unnecessary casts.
11786 (lookup_expression_id): Likewise.
11787 (phi_trans_lookup): Likewise.
11788 (phi_trans_add): Likewise.
11789 * stringpool.c: Rename uses of libcpp typedef hash_table to
11791 * Makefile.in: Add hash-table.o to OBJS-libcommon-target.
11792 Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H).
11794 2012-08-14 Lawrence Crowl <crowl@google.com>
11796 Merge from cxx-conversion branch. Re-write double_int in C++.
11799 (typedef double_int): Change to struct (POD).
11800 (double_int::make): New overloads for int to double-int conversion.
11801 (double_int::mask): New.
11802 (double_int::max_value): New.
11803 (double_int::min_value): New.
11804 (double_int::operator ++): New.
11805 (double_int::operator --): New.
11806 (double_int::operator *=): New.
11807 (double_int::operator +=): New.
11808 (double_int::operator -=): New.
11809 (double_int::to_signed): New.
11810 (double_int::to_unsigned): New.
11811 (double_int::fits_unsigned): New.
11812 (double_int::fits_signed): New.
11813 (double_int::fits): New.
11814 (double_int::trailing_zeros): New.
11815 (double_int::popcount): New.
11816 (double_int::multiple_of): New.
11817 (double_int::set_bit): New.
11818 (double_int::mul_with_sign): New.
11819 (double_int::operator * (binary)): New.
11820 (double_int::operator + (binary)): New.
11821 (double_int::operator - (binary)): New.
11822 (double_int::operator - (unary)): New.
11823 (double_int::operator ~ (unary)): New.
11824 (double_int::operator & (binary)): New.
11825 (double_int::operator | (binary)): New.
11826 (double_int::operator ^ (binary)): New.
11827 (double_int::and_not): New.
11828 (double_int::lshift): New.
11829 (double_int::rshift): New.
11830 (double_int::alshift): New.
11831 (double_int::arshift): New.
11832 (double_int::llshift): New.
11833 (double_int::lrshift): New.
11834 (double_int::lrotate): New.
11835 (double_int::rrotate): New.
11836 (double_int::div): New.
11837 (double_int::sdiv): New.
11838 (double_int::udiv): New.
11839 (double_int::mod): New.
11840 (double_int::smod): New.
11841 (double_int::umod): New.
11842 (double_int::divmod): New.
11843 (double_int::sdivmod): New.
11844 (double_int::udivmod): New.
11845 (double_int::ext): New.
11846 (double_int::zext): New.
11847 (double_int::sext): New.
11848 (double_int::is_zero): New.
11849 (double_int::is_one): New.
11850 (double_int::is_minus_one): New.
11851 (double_int::is_negative): New.
11852 (double_int::cmp): New.
11853 (double_int::ucmp): New.
11854 (double_int::scmp): New.
11855 (double_int::ult): New.
11856 (double_int::ugt): New.
11857 (double_int::slt): New.
11858 (double_int::sgt): New.
11859 (double_int::max): New.
11860 (double_int::smax): New.
11861 (double_int::umax): New.
11862 (double_int::min): New.
11863 (double_int::smin): New.
11864 (double_int::umin): New.
11865 (double_int::operator ==): New.
11866 (double_int::operator !=): New.
11867 (shwi_to_double_int): Change implementation to use member function.
11868 (double_int_minus_one): Likewise.
11869 (double_int_zero): Likewise.
11870 (double_int_one): Likewise.
11871 (double_int_two): Likewise.
11872 (double_int_ten): Likewise.
11873 (uhwi_to_double_int): Likewise.
11874 (double_int_to_shwi): Likewise.
11875 (double_int_to_uhwi): Likewise.
11876 (double_int_fits_in_uhwi_p): Likewise.
11877 (double_int_fits_in_shwi_p): Likewise.
11878 (double_int_fits_in_hwi_p): Likewise.
11879 (double_int_mul): Likewise.
11880 (double_int_mul_with_sign): Likewise.
11881 (double_int_add): Likewise.
11882 (double_int_sub): Likewise.
11883 (double_int_neg): Likewise.
11884 (double_int_div): Likewise.
11885 (double_int_sdiv): Likewise.
11886 (double_int_udiv): Likewise.
11887 (double_int_mod): Likewise.
11888 (double_int_smod): Likewise.
11889 (double_int_umod): Likewise.
11890 (double_int_divmod): Likewise.
11891 (double_int_sdivmod): Likewise.
11892 (double_int_udivmod): Likewise.
11893 (double_int_multiple_of): Likewise.
11894 (double_int_setbit): Likewise.
11895 (double_int_ctz): Likewise.
11896 (double_int_not): Likewise.
11897 (double_int_ior): Likewise.
11898 (double_int_and): Likewise.
11899 (double_int_and_not): Likewise.
11900 (double_int_xor): Likewise.
11901 (double_int_lshift): Likewise.
11902 (double_int_rshift): Likewise.
11903 (double_int_lrotate): Likewise.
11904 (double_int_rrotate): Likewise.
11905 (double_int_cmp): Likewise.
11906 (double_int_scmp): Likewise.
11907 (double_int_ucmp): Likewise.
11908 (double_int_max): Likewise.
11909 (double_int_smax): Likewise.
11910 (double_int_umax): Likewise.
11911 (double_int_min): Likewise.
11912 (double_int_smin): Likewise.
11913 (double_int_umin): Likewise.
11914 (double_int_ext): Likewise.
11915 (double_int_sext): Likewise.
11916 (double_int_zext): Likewise.
11917 (double_int_mask): Likewise.
11918 (double_int_max_value): Likewise.
11919 (double_int_min_value): Likewise.
11920 (double_int_zero_p): Likewise.
11921 (double_int_one_p): Likewise.
11922 (double_int_minus_one_p): Likewise.
11923 (double_int_equal_p): Likewise.
11924 (double_int_popcount): Likewise.
11926 (double_int_mask): Reuse implementation for double_int::mask.
11927 (double_int_max_value): Likewise.
11928 (double_int_min_value): Likewise.
11929 (double_int_ext): Likewise.
11930 (double_int_zext): Likewise.
11931 (double_int_sext): Likewise.
11932 (double_int_mul_with_sign): Likewise.
11933 (double_int_divmod): Likewise.
11934 (double_int_sdivmod): Likewise.
11935 (double_int_udivmod): Likewise.
11936 (double_int_div): Likewise.
11937 (double_int_sdiv): Likewise.
11938 (double_int_udiv): Likewise.
11939 (double_int_mod): Likewise.
11940 (double_int_smod): Likewise.
11941 (double_int_umod): Likewise.
11942 (double_int_multiple_of): Likewise.
11943 (double_int_lshift): Likewise.
11944 (double_int_rshift): Likewise.
11945 (double_int_lrotate): Likewise.
11946 (double_int_rrotate): Likewise.
11947 (double_int_cmp): Likewise.
11948 (double_int_ucmp): Likewise.
11949 (double_int_scmp): Likewise.
11950 (double_int_max): Likewise.
11951 (double_int_smax): Likewise.
11952 (double_int_umax): Likewise.
11953 (double_int_min): Likewise.
11954 (double_int_smin): Likewise.
11955 (double_int_umin): Likewise.
11956 (double_int_min): Likewise.
11957 (double_int_min): Likewise.
11958 (double_int_min): Likewise.
11959 (double_int_min): Likewise.
11960 (double_int_min): Likewise.
11961 (double_int_min): Likewise.
11962 (double_int::alshift): New.
11963 (double_int::arshift): New.
11964 (double_int::llshift): New.
11965 (double_int::lrshift): New.
11966 (double_int::ult): New.
11967 (double_int::ugt): New.
11968 (double_int::slt): New.
11969 (double_int::sgt): New.
11970 (double_int_setbit): Reuse implementation for double_int::set_bit,
11971 which avoids a name conflict with a macro.
11972 (double_int_double_int_ctz): Reuse implementation for
11973 double_int::trailing_zeros.
11974 (double_int_fits_in_shwi_p): Reuse implementation for
11975 double_int::fits_signed.
11976 (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits.
11977 (double_int_mul): Reuse implementation for binary
11978 double_int::operator *.
11979 (double_int_add): Likewise.
11980 (double_int_sub): Likewise.
11981 (double_int_neg): Reuse implementation for unary
11982 double_int::operator -.
11983 (double_int_max_value): Likewise.
11984 * fixed-value.c: Change to use member functions introduced above.
11986 2012-08-14 Lawrence Crowl <crowl@google.com>
11988 Merge cxx-conversion branch. Support tree macro calling from gdb.
11990 * tree.h (tree_check): New.
11991 (TREE_CHECK): Use inline function above instead of __extension__.
11992 (tree_not_check): New.
11993 (TREE_NOT_CHECK): Use inline function above instead of __extension__.
11994 (tree_check2): New.
11995 (TREE_CHECK2): Use inline function above instead of __extension__.
11996 (tree_not_check2): New.
11997 (TREE_NOT_CHECK2): Use inline function above instead of __extension__.
11998 (tree_check3): New.
11999 (TREE_CHECK3): Use inline function above instead of __extension__.
12000 (tree_not_check3): New.
12001 (TREE_NOT_CHECK3): Use inline function above instead of __extension__.
12002 (tree_check4): New.
12003 (TREE_CHECK4): Use inline function above instead of __extension__.
12004 (tree_not_check4): New.
12005 (TREE_NOT_CHECK4): Use inline function above instead of __extension__.
12006 (tree_check5): New.
12007 (TREE_CHECK5): Use inline function above instead of __extension__.
12008 (tree_not_check5): New.
12009 (TREE_NOT_CHECK5): Use inline function above instead of __extension__.
12010 (contains_struct_check): New.
12011 (CONTAINS_STRUCT_CHECK): Use inline function above instead of
12013 (tree_class_check): New.
12014 (TREE_CLASS_CHECK): Use inline function above instead of __extension__.
12015 (tree_range_check): New.
12016 (TREE_RANGE_CHECK): Use inline function above instead of __extension__.
12017 (omp_clause_subcode_check): New.
12018 (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of
12020 (omp_clause_range_check): New.
12021 (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of
12024 (EXPR_CHECK): Use inline function above instead of __extension__.
12025 (non_type_check): New.
12026 (NON_TYPE_CHECK): Use inline function above instead of __extension__.
12027 (tree_vec_elt_check): New.
12028 (TREE_VEC_ELT_CHECK): Use inline function above instead of
12030 (omp_clause_elt_check): New.
12031 (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of
12033 (tree_operand_check): New.
12034 (TREE_OPERAND_CHECK): Use inline function above instead of
12036 (tree_operand_check_code): New.
12037 (TREE_OPERAND_CHECK_CODE): Use inline function above instead of
12039 (TREE_CHAIN): Simplify implementation.
12040 (TREE_TYPE): Simplify implementation.
12041 (tree_operand_length): Move for compilation dependences.
12042 * gdbinit.in: (macro define __FILE__): New.
12043 (macro define __LINE__): New.
12044 (skip "tree.h"): New.
12046 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
12049 * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0,
12050 *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns.
12051 * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns.
12053 2012-08-14 Oleg Endo <olegendo@gcc.gnu.org>
12056 * config/sh/constraints.md (Sra): New constraint.
12057 * config/sh/predicates.md (simple_mem_operand,
12058 displacement_mem_operand, zero_extend_movu_operand): New predicates.
12059 (zero_extend_operand): Check zero_extend_movu_operand for SH2A.
12060 * config/sh/sh.md (*zero_extendqisi2_disp_mem,
12061 *zero_extendhisi2_disp_mem): Add new insns and two new related
12062 peephole2 patterns.
12064 2012-08-14 Steven Bosscher <steven@gcc.gnu.org>
12066 * graphite-scop-detection.c (create_sese_edges): Compute dominance
12067 info before trying to fix loop structure.
12068 * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries.
12069 * tree-cfgcleanup.c (repair_loop_structures): Likewise.
12070 * cfgloop.c (verify_loop_structure): Verify loop fathers.
12072 * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert.
12073 (dom_convert_dir_to_idx, compute_dom_fast_query,
12074 get_immediate_dominator, set_immediate_dominator, get_dominated_by,
12075 redirect_immediate_dominators, nearest_common_dominator,
12076 (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator,
12077 iterate_fix_dominators, add_to_dominance_info,
12078 delete_from_dominance_info): Likewise.
12080 2012-08-14 Richard Guenther <rguenther@suse.de>
12082 * cfgexpand.c (expand_used_vars): Use virtual_operand_p.
12083 * gimple-pretty-print.c (dump_phi_nodes): Likewise.
12084 * gimple-streamer-out.c (output_bb): Likewise.
12085 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise.
12086 (rewrite_reductions_out_of_ssa): Likewise.
12087 (rewrite_commutative_reductions_out_of_ss): Likewise.
12088 * ipa-split.c (verify_non_ssa_vars): Likewise.
12089 (consider_split): Likewise.
12090 (visit_bb): Likewise.
12091 (split_function): Likewise.
12092 * lto-streamer-out.c (output_ssa_names): Likewise.
12093 * sese.c (rename_uses): Likewise.
12094 * tree-cfg.c (replace_uses_by): Likewise.
12095 (gimple_merge_blocks): Likewise.
12096 (gimple_cfg2dot): Likewise.
12097 (verify_gimple_phi): Likewise.
12098 (replace_ssa_name): Likewise.
12099 (move_block_to_fn): Likewise.
12100 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
12101 * tree-if-conv.c (if_convertible_phi_p): Likewise.
12102 (predicate_scalar_phi): Likewise.
12103 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
12104 (copy_phis_for_bb): Likewise.
12105 * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
12106 (destroy_loop): Likewise.
12107 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
12108 (insert_backedge_copies): Likewise.
12109 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
12110 (gather_scalar_reductions): Likewise.
12111 (try_create_reduction_list): Likewise.
12112 * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph):
12114 (scev_const_prop): Likewise.
12115 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
12116 (get_default_value): Likewise.
12117 (ccp_initialize): Likewise.
12118 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
12119 * tree-ssa-copy.c (may_propagate_copy): Likewise.
12120 (init_copy_prop): Likewise.
12121 * tree-ssa-dce.c (propagate_necessity): Likewise.
12122 (remove_dead_phis): Likewise.
12123 (forward_edge_to_pdom): Likewise.
12124 (eliminate_unnecessary_stmts): Likewise.
12125 * tree-ssa-live.c (partition_view_init): Likewise.
12126 (remove_unused_locals): Likewise.
12127 (register_ssa_partition_check): Likewise.
12128 * tree-ssa-loop-im.c (movement_possibility): Likewise.
12129 (move_computations_stmt): Likewise.
12130 * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise.
12131 (record_invariant): Likewise.
12132 (find_interesting_uses_outside): Likewise.
12133 (determine_set_costs): Likewise.
12134 * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
12135 (find_uses_to_rename_use): Likewise.
12136 (check_loop_closed_ssa_use): Likewise.
12137 (rewrite_phi_with_iv): Likewise.
12138 (canonicalize_loop_ivs): Likewise.
12139 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
12140 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
12141 * tree-ssa-pre.c (make_values_for_phi): Likewise.
12142 (compute_avail): Likewise.
12143 (eliminate): Likewise.
12144 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
12145 * tree-ssa-reassoc.c (phi_rank): Likewise.
12146 * tree-ssa-strlen.c (strlen_enter_block): Likewise.
12147 * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
12148 (ipa_pta_execute): Likewise.
12149 * tree-ssa-tail-merge.c (same_succ_hash): Likewise.
12150 (release_last_vdef): Likewise.
12151 (same_phi_alternatives_1): Likewise.
12152 (bb_has_non_vop_phi): Likewise.
12153 (vop_phi): Likewise.
12154 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
12156 * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise.
12157 (execute_late_warn_uninitialized): Likewise.
12158 * tree-ssa.c (verify_ssa_name): Likewise.
12159 (verify_phi_args): Likewise.
12160 (verify_ssa): Likewise.
12161 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
12162 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
12164 (slpeel_tree_peel_loop_to_edge): Likewise.
12165 (vect_can_advance_ivs_p): Likewise.
12166 (vect_update_ivs_after_vectorizer): Likewise.
12167 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
12168 * tree-vrp.c (remove_range_assertions): Likewise.
12169 * value-prof.c (gimple_divmod_values_to_profile): Likewise.
12171 2012-08-14 Richard Guenther <rguenther@suse.de>
12173 PR tree-optimization/54146
12174 * tree-ssa-pre.c (do_regular_insertion): Use a VEC
12175 indexed by pred edge index for avail.
12176 (do_partial_partial_insertion): Likewise.
12177 (insert_into_preds_of_block): Adjust.
12179 2012-08-14 Richard Guenther <rguenther@suse.de>
12181 * gimplify.c (create_tmp_from_val): Mark temporary with
12182 DECL_GIMPLE_REG_P here ...
12183 (internal_get_tmp_var): ... instead of here. If we go into
12184 SSA create an SSA name instead of a VAR_DECL.
12185 (gimplify_modify_expr): Do not create SSA names here, assert
12186 we already got them.
12187 (force_gimple_operand_1): Create an SSA name if we go into SSA.
12188 * sese.c (rename_uses): Simplify.
12190 2012-08-14 Richard Guenther <rguenther@suse.de>
12192 * tree-into-ssa.c: Include diagnostic-core.h.
12193 * Makefile.in (tree-into-ssa.o): Adjust.
12195 2012-08-14 Richard Guenther <rguenther@suse.de>
12197 * tree-into-ssa.c (update_ssa): Verify we do not rename
12198 symbols that are already partly in SSA form.
12200 2012-08-14 Jakub Jelinek <jakub@redhat.com>
12202 PR middle-end/53411
12203 PR rtl-optimization/53495
12204 * ira.c (ira): Move delete_trivially_dead_insns call before
12205 find_moveable_pseudos call.
12207 2012-08-13 Steven Bosscher <steven@gcc.gnu.org>
12209 * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points
12210 of potentially huge memset overhead.
12211 (do_partial_partial_insertion): Likewise.
12212 * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc.
12213 * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC
12214 for arrays to be filled by pre_and_rev_post_order_compute. Allocate
12215 the right number of slots, not that number plus NUM_FIXED_BLOCKS.
12216 * tree-ssa-reassoc.c (init_reassoc): Likewise.
12217 * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for
12218 array used as stack.
12219 * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for
12220 arrays to be filled by pre_and_rev_post_order_compute.
12221 * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for
12222 array to be filled by dfs_enumerate_from.
12223 (remove_path): Likewise.
12224 (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for
12225 array of loops that is filled on the next lines.
12226 * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for
12227 array of basic blocks to be returned.
12228 (get_loop_body_in_dom_order): Likewise.
12229 (get_loop_body_in_bfs_order): Likewise.
12230 * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack
12231 for all bitmaps used for rewriting into loop-closed SSA form.
12232 (add_exit_phis_var): Allocate the def bitmap on it. Clear the livein
12233 bitmap at the end to release a lot of memory.
12234 (add_exit_phis): Allocate the exits bitmap on the new obstack.
12235 (get_loops_exits): Allocate the exits bitmap on the new obstack.
12236 (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is
12237 seen for the first time.
12238 (find_uses_to_rename): Add "???" for why the whole function must
12239 be re-scanned if changed_bbs is empty.
12240 (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack.
12241 Use XNEWVEC to allocate the use_blocks array. Initialize the new
12242 obstack, and free it at the end. Remove loop over all SSA names.
12243 (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands.
12244 * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of
12245 xcalloc to allocate edge_pred and edge_flag arrays.
12247 2012-08-13 Uros Bizjak <ubizjak@gmail.com>
12249 * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here.
12250 (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers
12251 for different ABIs.
12252 (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS.
12253 (REG_CLASS_NAMES): Update.
12254 (REG_CLASS_CONTENTS): Update. Clear CLOBBERED_REGS members.
12255 * config/i386/i386.c (ix86_conditional_register_usage): Disable
12256 REX registers on 32bit targets. Handle bitmaps from
12257 CALL_USED_REGISTERS initializer. Calculate CLOBBERED_REGS register
12258 set from GENERAL_REGS also for 32bit targets. Do not change call
12259 used register set for TARGET_64BIT_MS_ABI separately.
12261 2012-08-13 Richard Guenther <rguenther@suse.de>
12263 * basic-block.h (struct basic_block): Remove loop_depth
12264 member, move flags and index members next to each other.
12265 * cfgloop.h (bb_loop_depth): New inline function.
12266 * cfghooks.c (split_block): Do not set loop_depth.
12267 (duplicate_block): Likewise.
12268 * cfgloop.c (flow_loop_nodes_find): Likewise.
12269 (flow_loops_find): Likewise.
12270 (add_bb_to_loop): Likewise.
12271 (remove_bb_from_loops): Likewise.
12272 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
12273 * gimple-streamer-in.c (input_bb): Do not stream loop_depth.
12274 * gimple-streamer-out.c (output_bb): Likewise.
12275 * bt-load.c: Include cfgloop.h.
12276 (migrate_btr_defs): Use bb_loop_depth.
12277 * cfg.c (dump_bb_info): Likewise.
12278 * final.c (compute_alignments): Likewise.
12279 * ira.c (update_equiv_regs): Likewise.
12280 * tree-ssa-copy.c (init_copy_prop): Likewise.
12281 * tree-ssa-dom.c (loop_depth_of_name): Likewise.
12282 * tree-ssa-forwprop.c: Include cfgloop.h.
12283 (forward_propagate_addr_expr): Use bb_loop_depth.
12284 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
12285 * tree-ssa-sink.c (select_best_block): Likewise.
12286 * ipa-inline-analysis.c: Include cfgloop.h.
12287 (estimate_function_body_sizes): Use bb_loop_depth.
12288 * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
12289 (ipa-inline-analysis.o): Likewise.
12290 (bt-load.o): Likewise.
12292 2012-08-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
12293 Jakub Jelinek <jakub@redhat.com>
12296 * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
12297 bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
12298 * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
12299 0x80000001 %ecx flags.
12301 2012-08-13 Richard Guenther <rguenther@suse.de>
12303 * tree-cfg.c (print_loop): Avoid ICEing for loops marked for
12304 removal and loops with multiple latches.
12306 2012-08-13 Jakub Jelinek <jakub@redhat.com>
12309 * tree.c (integer_pow2p): Avoid undefined signed overflows.
12310 * simplify-rtx.c (neg_const_int): Likewise.
12311 * expr.c (fixup_args_size_notes): Likewise.
12312 * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
12313 * double-int.c (mul_double_wide_with_sign): Likewise.
12314 (double_int_mask): Likewise.
12315 * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
12317 2012-08-13 Richard Guenther <rguenther@suse.de>
12319 PR tree-optimization/54200
12320 * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
12321 PHI results to another partition if not all PHI arguments
12322 have the same partition.
12324 2012-08-12 Jan Hubicka <jh@suse.cz>
12326 * tree-pass.h (write_summary, write_optimization_summary): Remove
12327 set and vset arguments.
12328 * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
12329 (write_node_summary_p): Likewise; use the encoder.
12330 (ipa_reference_write_optimization_summary): Likewise.
12331 * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
12332 (lto_symtab_encoder_new): Initialize in_partition field.
12333 (lto_symtab_encoder_delete): Destroy in_partition field.
12334 (LCC_NOT_FOUND): Move to lto-streamer.h
12335 (lto_symtab_encoder_deref): Likewise.
12336 (lto_symtab_encoder_in_partition_p,
12337 lto_set_symtab_encoder_in_partition): New functions.
12338 (referenced_from_other_partition_p): Rewrite to use encoder.
12339 (reachable_from_other_partition_p): Likewise.
12340 (referenced_from_this_partition_p): Likewise.
12341 (reachable_from_this_partition_p): Likewise.
12342 (lto_output_node): Likewise.
12343 (lto_output_varpool_node): Likewise.
12344 (output_refs): Likewise.
12345 (compute_ltrans_boundary): Initialize in_partition fileds of
12347 (output_symtab): Likewise.
12348 (input_refs): Match the changes in output_refs.
12349 (output_cgraph_opt_summary_p): Remove set argument.
12350 (output_node_opt_summary): Replace set by encoder.
12351 (output_cgraph_opt_summary): Remove set argument; use
12353 * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
12354 arguments; use the encoder.
12355 * lto-streamer-out.c (lto_output): Remove set and vset argument; use
12357 (produce_symtab): Likewise.
12358 * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
12359 * ipa-inline-analysis.c (inline_write_summary): Likewise.
12360 * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
12362 * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
12363 * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
12364 (ipa_write_summaries_1): Update.
12365 (ipa_write_optimization_summaries_1): Likewise.
12366 (ipa_write_optimization_summaries): Likewise.
12367 * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
12368 (lto_symtab_encoder_iterator): New type.
12369 (lto_symtab_encoder_deref): Make inline.
12370 (output_symtab, referenced_from_other_partition_p,
12371 reachable_from_other_partition_p, referenced_from_this_partition_p,
12372 reachable_from_this_partition_p): Update.
12373 (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node,
12374 lsei_varpool_node): New inline functions.
12375 (LCC_NOT_FOUND): New macro.
12376 (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
12377 lsei_start_in_partition, lsei_next_function_in_partition,
12378 lsei_start_function_in_partition, lsei_next_variable_in_partition,
12379 lsei_start_variable_in_partition): New inline functions.
12381 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
12383 * config/sh/sh.md (prefetch): Simplify expander. Fix condition to
12385 (*prefetch_media): Move insn below expander.
12386 (*prefetch): Fix condition to allow SH3.
12388 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
12391 * config/sh/sh.md: Add splits for inverted compare and branch
12393 (*cmpeqsi_t): New insn.
12394 (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
12395 (cmpgeusi_t): Use satisfies_constraint_Z. Emit sett insn in
12396 replacement insn list and not in the preparation statements.
12397 (clrt, sett): Add mt_group attribute.
12399 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
12401 PR middle-end/54193
12402 * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
12404 2012-08-12 Oleg Endo <olegendo@gcc.gnu.org>
12407 * config/sh/predicates.md (mem_index_disp_operand): Check for
12408 arith_reg_operand instead of REG_P.
12410 2012-08-11 Bernd Schmidt <bernds@codesourcery.com>
12412 * reload1.c (replaced_subreg, gen_reload): Add
12413 SECONDARY_MEMORY_NEEDED ifdefs as necessary.
12415 2012-08-11 Jan Hubicka <jh@suse.cz>
12417 * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
12418 symtab_node sectoin name; it confuses plugin.
12420 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
12422 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
12423 index in the va_list_vars bitmap by num_ssa_names.
12425 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
12427 * config/i386/sse.md (xop integer multiply/add insns): Use
12428 register_operand for operand 3 predicate.
12429 (xop_phadd<u>bq): Fix vec_select selectors.
12431 2012-08-11 Martin Jambor <mjambor@suse.cz>
12434 * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
12435 * ipa-inline-analysis.c (agg_position_info): New type.
12436 (add_condition): New parameter aggpos, also store agg_contents, by_ref
12438 (dump_condition): Also dump aggregate conditions.
12439 (evaluate_conditions_for_known_args): Also handle aggregate
12440 conditions. New parameter known_aggs.
12441 (evaluate_properties_for_edge): Gather known aggregate contents.
12442 (inline_node_duplication_hook): Pass NULL known_aggs to
12443 evaluate_conditions_for_known_args.
12444 (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
12445 (unmodified_parm_or_parm_agg_item): New function.
12446 (set_cond_stmt_execution_predicate): Handle values passed in
12448 (set_switch_stmt_execution_predicate): Likewise.
12449 (will_be_nonconstant_predicate): Likewise.
12450 (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
12451 ipa_get_indirect_edge_target.
12452 (estimate_calls_size_and_time): New parameter known_aggs, pass it
12453 recrsively to itself and to estimate_edge_devirt_benefit.
12454 (estimate_node_size_and_time): New vector known_aggs, pass it o
12455 functions which need it.
12456 (remap_predicate): New parameter offset_map, use it to remap aggregate
12458 (remap_edge_summaries): New parameter offset_map, pass it recursively
12459 to itself and to remap_predicate.
12460 (inline_merge_summary): Also create and populate vector offset_map.
12461 (do_estimate_edge_time): New vector of known aggregate contents,
12462 passed to functions which need it.
12463 (inline_read_section): Stream new fields of condition.
12464 (inline_write_summary): Likewise.
12465 * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
12466 contents. Let all local callers pass NULL for known_aggs.
12468 2012-08-11 Jan Hubicka <jh@suse.cz>
12470 * lto-cgraph.c (output_cgraph): Rename to ...
12471 (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
12472 (input_cgraph): Rename to ...
12473 (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
12474 * lto-streamer-out.c (create_output_block): Do not set
12476 (produce_asm): Likewise.
12477 (lto_output_toplevel_asms): Likewise.
12478 (produce_asm_for_decls): Likewise.
12479 (lto_output): Use output_symtab.
12480 * lto-section-in.c (lto_section_name): Update.
12481 * lto-section-out.c (lto_destroy_simple_output_block): Remove
12483 * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
12484 rename LTO_section_cgraph to LTO_section_symtab_nodes.
12485 (struct lto_header): Remove section_type.
12487 2012-08-11 Jan Hubicka <jh@suse.cz>
12489 * cgraph.h (vector types for symtab_node): Add.
12490 * ipa-reference.c (ipa_reference_write_optimization_summary): Update
12491 for new symtab encoder.
12492 (ipa_reference_read_optimization_summary): Likewise.
12493 * lto-cgraph.c (output_varpool): Remove.
12494 (input_cgraph_opt_summary): Take symtab nodes vector as argument.
12495 (LTO_cgraph_tags): Rename to ...
12496 (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
12497 (lto_cgraph_encoder_new): Rename to ...
12498 (lto_symtab_encoder_new): ... this on.
12499 (lto_cgraph_encoder_encode): Rename to ...
12500 (lto_symtab_encoder_encode): ... this one.
12501 (lto_cgraph_encoder_delete): Rename to ...
12502 (lto_symtab_encoder_delete): ... this one.
12503 (lto_cgraph_encoder_deref): Rename to ...
12504 (lto_symtab_encoder_deref): ... this one.
12505 (lto_cgraph_encoder_encode_body_p): Rename to ...
12506 (lto_symtab_encoder_encode_body_p): ... this one.
12507 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
12508 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
12509 lto_varpool_encoder_deref): Remove.
12510 (lto_varpool_encoder_encode_initializer_p): Rename to ...
12511 (lto_symtab_encoder_encode_initializer_p): ... this one.
12512 (lto_set_varpool_encoder_encode_initializer): Rename to ...
12513 (lto_set_symtab_encoder_encode_initializer): ... this one.
12514 (lto_output_edge): Update.
12515 (lto_output_node): Update.
12516 (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
12517 (lto_output_ref): Drop varpool_encoder; update.
12518 (add_node_to): Update.
12519 (add_references): Update.
12520 (output_outgoing_cgraph_edges): Update.
12521 (output_refs): Update.
12522 (compute_ltrans_boundary): Update.
12523 (output_cgraph): Update; output varpools too.
12524 (input_overwrite_node): Update.
12525 (output_varpool): Remove.
12526 (input_node): Update.
12527 (input_ref): Update.
12528 (input_edge): Update.
12529 (input_cgraph_1): Update; input varpool too; unify fixup code.
12530 (input_varpool_1): Remove.
12531 (input_refs): Update.
12532 (input_cgraph): Update.
12533 (output_node_opt_summary): Update.
12534 (input_cgraph_opt_section): Update.
12535 (input_cgraph_opt_summary): Update.
12536 * ipa-pure-const.c (pure_const_write_summary): Update.
12537 (pure_const_read_summary): Update.
12538 * lto-streamer-out.c (lto_write_tree): Update.
12539 (lto_output): Likewise.
12540 (produce_symtab): Update.
12541 (produce_asm_for_decls): Update.
12542 * ipa-inline-analysis.c (inline_read_section): Update.
12543 (inline_write_summary): Update.
12544 * ipa-prop.c (ipa_write_node_info): Update.
12545 (ipa_prop_read_section): Update.
12546 * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
12547 (lto_symtab_encoder_d): ... this one; add initializer.
12548 (lto_cgraph_encoder_t): Rename to ...
12549 (lto_symtab_encoder_t): ... this one.
12550 (lto_cgraph_encoder_size): Rename to ...
12551 (lto_symtab_encoder_size): ... this one.
12552 (lto_varpool_encoder_d): ... remove.
12553 (lto_varpool_encoder_t): Remove.
12554 (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
12555 add symtab_node_encoder.
12556 (lto_file_decl_data): Likewise.
12557 (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
12558 lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
12559 lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
12560 lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
12561 lto_varpool_encoder_lookup, lto_varpool_encoder_new,
12562 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
12563 lto_varpool_encoder_encode_initializer_p): Remove.
12564 (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
12565 lto_symtab_encoder_t, lto_symtab_encoder_encode,
12566 lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
12567 lto_symtab_encoder_encode_initializer_p): New.
12569 2012-08-11 Uros Bizjak <ubizjak@gmail.com>
12571 * config/i386/i386.md (isa): Add fma and fma4.
12572 (enabled): Handle fma and fma4.
12573 * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
12574 (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
12575 (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
12576 (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
12577 (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
12578 (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
12580 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
12582 * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
12583 *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
12584 *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
12586 2012-08-10 Uros Bizjak <ubizjak@gmail.com>
12588 * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
12589 variants of PLUS and MULT simple LEA patterns. Disable PLUS
12590 patterns for TARGET_OPT_AGU.
12592 2012-08-10 Richard Guenther <rguenther@suse.de>
12594 * Makefile.in (OBJS): Remove matrix-reorg.o.
12595 (matrix-reorg.o): Remove dependence rule.
12596 (GTFILES): Remove matrix-reorg.c.
12597 * matrix-reorg.c: Remove.
12598 * passes.c (init_optimization_passes): Do not schedule
12599 pass_ipa_matrix_reorg.
12600 * tree-pass.h (pass_ipa_matrix_reorg): Remove.
12601 * common.opt (fipa-matrix-reorg): Stub out.
12602 * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
12604 2012-08-10 Richard Guenther <rguenther@suse.de>
12606 PR middle-end/54219
12607 * fold-const.c (fold_ternary_loc): Do not reverse the mask
12608 when canonicalizing it when folding VEC_PERM_EXPR.
12610 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12612 PR middle-end/54211
12613 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
12614 Use cand_type to determine whether pointer arithmetic will be generated.
12616 2012-08-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12618 * doc/sourcebuild.texi: Document long_neq_int effective target.
12620 2012-08-10 Richard Guenther <rguenther@suse.de>
12622 PR tree-optimization/54109
12623 * tree-ssa-forwprop.c
12624 (forward_propagate_addr_into_variable_array_index): Remove.
12625 (forward_propagate_addr_expr_1): Adjust.
12627 2012-08-10 Richard Guenther <rguenther@suse.de>
12629 * tree-cfg.c (dump_function_to_file): Make sure to dump
12630 anonymous SSA names when there are no local decls.
12632 2012-08-10 Steven Bosscher <steven@gcc.gnu.org>
12634 * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
12635 * tree-into-ssa.c (get_ssa_name_ann): Likewise.
12636 (mark_phi_for_rewrite): Likewise.
12637 (compute_global_livein): Use VEC_reserve outside the innermost
12638 loop and VEC_quick_push instead of VEC_safe_push in that loop.
12639 (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
12640 of new_ssa_names and old_ssa_names. Allocate phis_to_rewrite to
12641 the correct initial size.
12643 2012-08-10 Richard Guenther <rguenther@suse.de>
12645 * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
12646 (need_creation): Remove.
12647 (get_representative_for): Use anonymous named SSA names.
12648 (create_expression_by_pieces): Likewise.
12649 (insert_into_preds_of_block): Likewise.
12650 (init_pre): Do not init removed vars.
12651 (fini_pre): Do not free need_creation.
12652 * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
12654 * tree-ssa-loop-manip.c (create_iv): Likewise.
12655 * value-prof.c (gimple_divmod_fixed_value): Likewise.
12656 (gimple_mod_pow2): Likewise.
12657 (gimple_mod_subtract): Likewise.
12658 (gimple_ic): Likewise.
12659 (gimple_stringop_fixed_value): Likewise.
12660 * tree-ssa-phiopt.c (condstoretemp): Remove.
12661 (tree_ssa_phiopt_worker): Use anonymous named SSA names.
12662 (conditional_replacement): Likewise.
12663 (abs_replacement): Likewise.
12664 (cond_store_replacement): Likewise.
12665 (cond_if_else_store_replacement_1): Likewise.
12666 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
12667 (rewrite_bittest): Likewise.
12668 * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
12669 and build anonymous SSA names.
12670 (undistribute_ops_list): Adjust.
12671 (eliminate_redundant_comparison): Use anonymous SSA names.
12672 (rewrite_expr_tree_parallel): Likewise.
12673 (get_reassoc_pow_ssa_name): Remove.
12674 (attempt_builtin_powi): Adjust.
12675 (reassociate_bb): Likewise.
12676 * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
12677 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
12678 (build_arrays): Likewise.
12679 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12680 (create_tailcall_accumulator): Likewise.
12681 * tree-vect-generic.c (expand_vector_divmod): Likewise.
12682 * tree-profile.c (gcov_type_tmp_var): Remove.
12683 (gimple_init_edge_profiler): Do not initialize it and use anonymous
12685 (gimple_gen_ic_profiler): Likewise.
12686 (tree_profiling): Adjust.
12687 * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
12688 * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
12689 (powi_as_mults_1): Likewise.
12690 (powi_as_mults): Likewise.
12691 (build_and_insert_call): Adjust.
12692 (build_and_insert_binop): Likewise.
12693 (build_and_insert_ref): Likewise.
12694 (build_and_insert_cast): Likewise.
12695 (gimple_expand_builtin_pow): Likewise.
12696 (gimple_expand_builtin_cabs): Likewise.
12697 (execute_optimize_bswap): Use anonymous SSA names.
12698 (convert_mult_to_widen): Likewise.
12699 (convert_plusminus_to_widen): Likewise.
12700 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12701 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
12702 * tree-if-conv.c (ifc_temp_var): Likewise.
12703 * tree-loop-distribution.c (generate_memset_builtin): Likewise.
12704 * tree-parloops.c (take_address_of): Likewise.
12705 * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
12706 (vect_permute_load_chain): Likewise.
12707 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
12708 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
12709 (vect_handle_widen_op_by_const): Likewise.
12710 (vect_operation_fits_smaller_type): Likewise.
12711 (vect_recog_over_widening_pattern): Likewise.
12712 * tree-vect-stmts.c (vect_init_vector): Likewise.
12713 * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
12714 (simplify_float_conversion_using_ranges): Likewise.
12716 2012-08-10 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12718 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
12719 target mask of __builtin_ia32_rdseed_di_step builtin.
12721 2012-08-10 Richard Guenther <rguenther@suse.de>
12723 PR tree-optimization/54027
12724 * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
12725 and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
12726 to handle LSHIFT_EXPR with a constant.
12728 2012-08-10 Richard Guenther <rguenther@suse.de>
12730 * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
12731 is recorded as var.
12732 (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
12733 or its SSA_NAME_VAR.
12734 (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
12735 * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
12736 SSA names by passing a type instead of a variable decl.
12737 (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
12738 (copy_ssa_name_fn): Handle anonymous SSA names.
12739 (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
12740 * tree-flow-inline.h (make_temp_ssa_name): New inline function.
12741 * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
12742 dump SSA names without a name as <anon>.
12743 * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
12744 going to expand a decl.
12745 (gimple_expand_cfg): Assign all SSA names of a partition the
12746 decl we created for its leader.
12747 * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
12748 (verify_ssa_name): Handle anonymous SSA names.
12749 (verify_def): Likewise.
12750 * tree-predcom.c (eliminate_temp_copies): Likewise.
12751 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
12752 * tree-ssa-live.c (var_map_base_init): Compute conflicts for
12753 anonymous SSA names with the same type.
12754 (mark_all_vars_used_1): Handle anonymous SSA names.
12755 (verify_live_on_entry): Likewise.
12756 * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
12757 (create_outofssa_var_map): Adjust with respect to conflicts we
12758 compute for anonymous SSA names. Do not restrict abnormal
12760 (coalesce_partitions): Do not restrict abnormal coalescing.
12761 Assert we only ever coalesce variables we computed conflicts for.
12762 * tree-ssa-ter.c (process_replaceable): Do not restrict TER
12763 of anonymous names.
12764 * expr.c (expand_expr_real_1): Handle anonymous SSA names
12765 expanded from IVOPTs by creating a raw REG here.
12766 * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
12767 (dump_function_to_file): Dump anonymous SSA names alongside
12768 with their types in the variable list.
12769 (verify_gimple_return): Guard use of SSA_NAME_VAR.
12770 * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
12771 (rewrite_into_ssa): Make SSA names anonymous.
12772 * tree-ssa-structalias.c (alias_get_name): Rewrite.
12773 * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
12775 (warn_uninitialized_phi): Likewise.
12776 * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
12777 anonymous SSA names to the expander.
12778 (determine_iv_cost): Anonymous SSA names are artificial.
12779 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
12780 Handle anonymous SSA names.
12781 * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
12782 or if NULL, the type of the SSA name.
12783 * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
12784 remap names as anonymous where appropriate.
12785 (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
12786 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
12787 according to what we create conflicts for in out-of-SSA
12789 * tree-parloops.c (separate_decls_in_region_name): Handle
12790 anonymous SSA names.
12791 (add_field_for_name): Likewise.
12792 * tree.c (get_name): Handle SSA names.
12793 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
12795 * tree-vect-loop-manip.c (adjust_debug_stmts): Use
12797 * tree-sra.c (create_access_replacement): Give up generating
12798 a DECL_DEBUG_EXPR for SSA names in the memory reference.
12799 (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
12800 * tree-complex.c (get_component_ssa_name): Handle anonymous
12802 (set_component_ssa_name): Likewise.
12803 * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
12804 * tree-object-size.c (collect_object_sizes_for): Handle
12805 uninitialized SSA names properly.
12806 * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
12808 * ipa-split.c (test_nonssa_use): Likewise.
12809 (consider_split): Likewise.
12810 (mark_nonssa_use): Likewise.
12812 2012-08-09 Jan Hubicka <jh@suse.cz>
12814 PR middle-end/54146
12815 * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
12816 parameter; honnor it.
12817 * ipa-inline.c (recursive_inlining): Update call
12819 (inline_small_functions): Likewise.
12820 (ipa_inline): Likewise.
12821 (inline_always_inline_functions): Likewise.
12822 (early_inline_small_functions): Likewise.
12823 (flatten_function): Do separate update of summary info.
12824 * ipa-inline.h (inline_update_overall_summary): Declare.
12825 (inline_call): Update.
12826 * ipa-inline-analysis.c (inline_merge_summary): Break out
12827 updating code to ...
12828 (inline_update_overall_summary): Likewise.
12830 2012-08-09 Richard Henderson <rth@redhat.com>
12832 * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
12834 * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
12835 performing the compare for the restart loop.
12837 2012-08-09 DJ Delorie <dj@redhat.com>
12839 * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
12840 SET before extracting SET_SRC.
12841 (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
12843 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
12846 * config/sh/sh-protos (shift_insns_rtx): Delete.
12847 (sh_ashlsi_clobbers_t_reg_p): Add.
12848 * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
12849 ext_shift_amounts): Merge arrays of ints to array of structs.
12850 Adapt usage of arrays throughout the file.
12851 (shift_insns_rtx): Delete unused function.
12852 (sh_ashlsi_clobbers_t_reg_p): New function.
12853 * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
12854 final shift sequence will clobber T_REG.
12855 (ashlsi3_n): Split only if the final shift sequence will not
12857 (ashlsi3_n_clobbers_t): New insn_and_split.
12859 2012-08-09 Steven Bosscher <steven@gcc.gnu.org>
12861 * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
12862 instead of looking at sbitmap n_bits member directly.
12863 * gcse.c (hoist_code): Likewise.
12864 * sched-rgn.c (split_edges): Likewise.
12865 * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
12866 update_ssa): Likewise.
12868 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
12870 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
12871 single unit register class for classes that contain registers form
12873 (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
12874 INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
12876 2012-08-09 Martin Jambor <mjambor@suse.cz>
12878 * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
12879 offset, updated all users. New field agg_contents.
12880 * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
12881 (ipa_pass_through_data): New field agg_preserved.
12882 (ipa_ancestor_jf_data): Likewise.
12883 (ipa_member_ptr_cst): Removed.
12884 (ipa_agg_jf_item): New type.
12885 (ipa_agg_jump_function): Likewise.
12886 (ipa_jump_func): New field agg. Removed field member_cst.
12887 (ipa_get_jf_pass_through_agg_preserved): New function.
12888 (ipa_get_jf_ancestor_agg_preserved): Likewise.
12889 (ipa_get_jf_member_ptr_pfn): Removed.
12890 (ipa_find_agg_cst_for_param): Declare.
12891 (ipa_load_from_parm_agg): Likewise.
12892 * ipa-prop.c (param_analysis_info): Fields modified and
12893 visited_statements rename to parm_modified and parm_visited_statements
12894 respectively, added fields ref_modified, ref_visited_statements,
12895 pt_modified and pt_visited_statements.
12896 (ipa_print_node_jump_functions_for_edge): Do not dump const member
12897 functions. Dump agg_preserved flags and aggregate jump functions.
12898 (ipa_set_jf_simple_pass_through): Set also agg_preserved.
12899 (ipa_set_ancestor_jf): Likewise.
12900 (ipa_set_jf_arith_pass_through): Clear agg_preserved.
12901 (ipa_set_jf_member_ptr_cst): Removed.
12902 (is_parm_modified_before_stmt): Logic reversed, renamed to
12903 parm_preserved_before_stmt_p. Cache visited bitmap only for
12904 naked DECL parameters. All callers updated.
12905 (load_from_unmodified_param): Allow NULL parms_ainfo.
12906 (parm_ref_data_preserved_p): New function.
12907 (parm_ref_data_pass_through_p): Likewise.
12908 (ipa_load_from_parm_agg_1): Likewise.
12909 (ipa_load_from_parm_agg): Likewise.
12910 (compute_complex_assign_jump_func): Check if aggregate contents are
12912 (compute_complex_ancestor_jump_func): Likewise.
12913 (compute_scalar_jump_functions): Removed.
12914 (type_like_member_ptr_p): Also check field position are known and sane.
12915 (compute_pass_through_member_ptrs): Removed.
12916 (determine_cst_member_ptr): Likewise.
12917 (ipa_known_agg_contents_list): New type.
12918 (determine_known_aggregate_parts): New function.
12919 (compute_cst_member_ptr_arguments): Removed.
12920 (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
12921 functions (scalar, aggregate and member pointer).
12922 (ipa_get_member_ptr_load_param): Incorporate into
12923 ipa_get_stmt_member_ptr_load_param, also pass back an offset.
12924 (ipa_note_param_call): Clear agg_contents.
12925 (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
12926 from aggregates. In such cases, store offset of the called field.
12927 (ipa_analyze_node): Initialize new fields of param_analysis_info.
12928 (update_jump_functions_after_inlining): Handle aggregate contents.
12929 (ipa_find_agg_cst_for_param): New function.
12930 (try_make_edge_direct_simple_call): Handle called aggregate values.
12931 (update_indirect_edges_after_inlining): Make sure aggregate preserving
12932 jump functions comply with type compatibility requirements.
12933 (ipa_edge_duplication_hook): Copy also aggregate jump functions.
12934 (ipa_write_jump_function): Stream agg_preserved flags and aggregate
12935 jump functions. Do not stream member pointer constant jump functions.
12936 (ipa_read_jump_function): Likewise.
12937 (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
12939 (ipa_read_indirect_edge_info): Likewise.
12941 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
12944 * config/sh/predicates.md (mem_index_disp_operand): New predicate.
12945 * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
12946 mem_index_disp_operand predicate.
12948 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
12951 * config/sh/sh.md: Add negc extu sequence peephole.
12952 (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
12953 (*movrt_negc): New insn.
12954 * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
12956 * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
12957 sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
12959 (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
12961 2012-08-09 Oleg Endo <olegendo@gcc.gnu.org>
12964 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
12965 Use arith_reg_operand predicate instead of register_operand.
12966 * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
12967 only mem, simplify.
12969 2012-08-09 Uros Bizjak <ubizjak@gmail.com>
12971 * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
12972 (alpha_pad_function_end): ... this. Also insert NOP between
12973 sibling call and GP load.
12974 (alpha_reorg): Update call to alpha_pad_function_end. Expand comment.
12976 2012-08-09 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
12978 * config/i386/adxintrin.h: Remove guarding __ADX__ check.
12979 * config/i386/x86intrin.h: Likewise.
12980 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
12981 OPTION_MASK_ISA_ADX from needed options for
12982 __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
12983 (ix86_expand_builtin): Use add<mode>3_carry in expanding of
12984 IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
12986 2012-08-09 Andrey Belevantsev <abel@ispras.ru>
12988 PR rtl-optimization/53701
12989 * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
12990 Process not only expr's vinsns but all old vinsns from expr's
12991 history of changes.
12992 (update_and_record_unavailable_insns): Clarify comment.
12994 2012-08-09 Bernd Schmidt <bernds@codesourcery.com>
12996 * reload.c (find_valid_class_1): New static function.
12997 (push_reload): Use it when reloading a SYMBOL_REG as the inner
12998 of a subreg. Keep better track of needed classes for the
12999 secondary memory case.
13000 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
13002 * reload1.c (replaced_subreg): New static function.
13003 (gen_reload): Use it when deciding whether to use secondary
13006 2012-08-09 Richard Guenther <rguenther@suse.de>
13008 * tree.h (SSA_VAR_P): Simplify.
13009 * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
13010 * fold-const.c (fold_comparison): Check for default def first
13011 before checking for PARM_DECL.
13012 * tree-complex.c (get_component_ssa_name): Likewise.
13013 * tree-inline.c (remap_ssa_name): Likewise.
13014 * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
13015 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
13016 (find_what_p_points_to): Likewise.
13017 * tree-ssa-operands.c (add_stmt_operand): Simplify.
13019 2012-08-08 Joseph Myers <joseph@codesourcery.com>
13021 * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
13022 IOR to a constant if one operand has side effects.
13024 2012-08-08 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13026 * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
13027 value operand as MEM to expand_atomic_compare_and_swap.
13029 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
13030 nonimmediate_operand for old value; generate load and store if
13032 * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
13035 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
13037 PR middle-end/54146
13038 * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
13040 * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
13041 a gimple_reg if checking is enabled.
13042 (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
13043 * tree-into-ssa (compute_global_livein): Change the worklist
13044 type from an array to a VEC.
13046 2012-08-08 Richard Guenther <rguenther@suse.de>
13048 * tree-ssa-operands.h (virtual_operand_p): Declare.
13049 * tree-ssa-operands.c (virtual_operand_p): New predicate.
13050 * gimple.c (is_gimple_reg): Use virtual_operand_p.
13051 * tree-into-ssa.c (prepare_block_for_update): Likewise.
13052 * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
13054 2012-08-08 Richard Guenther <rguenther@suse.de>
13056 * tree-call-cdce.c (check_pow): Simplify.
13057 (gen_conditions_for_pow_int_base): Likewise.
13058 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
13059 virtual operands here.
13060 * tree-ssa-operands.c (get_name_decl): Remove unused function.
13061 * gimplify.c (gimple_regimplify_operands): Remove dead code.
13062 * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
13063 * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
13064 * value-prof.c (gimple_ic): Use duplicate_ssa_name.
13065 (gimple_stringop_fixed_value): Likewise.
13066 * tree.c (needs_to_live_in_memory): Remove SSA name handling.
13067 * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
13068 in the bitmap alongside shifted DECL_UIDs.
13069 (va_list_counter_struct_op): Likewise.
13070 (va_list_ptr_read): Likewise.
13071 (va_list_ptr_write): Likewise.
13072 (check_va_list_escapes): Likewise.
13073 (check_all_va_list_escapes): Likewise.
13074 (execute_optimize_stdarg): Likewise.
13075 * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
13077 2012-08-08 Richard Sandiford <rdsandiford@googlemail.com>
13078 H.J. Lu <hongjiu.lu@intel.com>
13080 PR rtl-optimization/54157
13081 * combine.c (gen_lowpart_for_combine): Don't return identity
13082 for CONST or symbolic reference.
13084 2012-08-08 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13086 * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
13087 (OPTION_MASK_ISA_ADX_UNSET): Likewise.
13088 (ix86_handle_option): Handle madx option.
13089 * config.gcc (i[34567]86-*-*): Add adxintrin.h.
13090 (x86_64-*-*): Likewise.
13091 * config/i386/adxintrin.h: New header.
13092 * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
13094 * config/i386/i386-builtin-types.def
13095 (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
13096 (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
13097 * config/i386/i386-c.c: Define __ADX__ if needed.
13098 * config/i386/i386.c (ix86_target_string): Define -madx option.
13100 (ix86_option_override_internal): Handle new option.
13101 (ix86_valid_target_attribute_inner_p): Add OPT_madx.
13102 (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
13103 IX86_BUILTIN_ADDCARRYX64.
13104 (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
13105 (ix86_expand_builtin): Handle these built-ins.
13106 (ix86_expand_args_builtin): Handle new function types.
13107 * config/i386/i386.h (TARGET_ADX): New.
13108 * config/i386/i386.md (adcx<mode>3): New define_insn.
13109 * config/i386/i386.opt (madx): New.
13110 * config/i386/x86intrin.h: Include adxintrin.h.
13112 2012-08-08 Nick Clifton <nickc@redhat.com>
13114 * config/rl78/rl78.c: Include tree-pass.h.
13116 2012-08-08 Steven Bosscher <steven@gcc.gnu.org>
13118 PR middle-end/54146
13119 * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
13120 (build_insn_chain): Make live_subregs_used a bitmap.
13121 Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
13122 Use sbitmap_free to free the live_subreg sbitmaps.
13124 PR middle-end/54146
13125 * ifcvt.c: Include pointer-set.h.
13126 (cond_move_process_if_block): Change type of then_regs and
13127 else_regs from alloca'd array to pointer_sets.
13128 (check_cond_move_block): Update for this change.
13129 (cond_move_convert_if_block): Likewise.
13130 * Makefile.in: Fix dependencies for ifcvt.o.
13132 2012-08-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13134 * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
13135 (incr_vec): New static var.
13136 (incr_vec_len): Likewise.
13137 (address_arithmetic_p): Likewise.
13138 (stmt_cost): Remove dead assignment.
13139 (dump_incr_vec): New function.
13140 (cand_abs_increment): Likewise.
13141 (lazy_create_slsr_reg): Likewise.
13142 (incr_vec_index): Likewise.
13143 (count_candidates): Likewise.
13144 (record_increment): Likewise.
13145 (record_increments): Likewise.
13146 (unreplaced_cand_in_tree): Likewise.
13147 (optimize_cands_for_speed_p): Likewise.
13148 (lowest_cost_path): Likewise.
13149 (total_savings): Likewise.
13150 (analyze_increments): Likewise.
13151 (ncd_for_two_cands): Likewise.
13152 (nearest_common_dominator_for_cands): Likewise.
13153 (profitable_increment_p): Likewise.
13154 (insert_initializers): Likewise.
13155 (introduce_cast_before_cand): Likewise.
13156 (replace_rhs_if_not_dup): Likewise.
13157 (replace_one_candidate): Likewise.
13158 (replace_profitable_candidates): Likewise.
13159 (analyze_candidates_and_replace): Handle candidates with SSA-name
13162 2012-08-07 Steven Bosscher <steven@gcc.gnu.org>
13164 * cfg.c (debug_bb): Do not set TDF_BLOCKS.
13165 * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
13166 * pretty-print.c (pp_base_flush): Do not add a newline, and do not
13167 clear pp_needs_newline.
13168 * pretty-print.h (pp_newline_and_flush): New macro with the behavior
13169 of pp_base_flush before the above change.
13170 * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
13171 instead of pp_flush.
13172 * diagnostic.c (diagnostic_finish): Likewise.
13173 (diagnostic_report_diagnostic): Likewise.
13174 (verbatim): Likewise.
13175 (error_recursion): Likewise.
13176 * tree-pretty-print.c (print_generic_stmt): Likewise.
13177 (print_generic_stmt_indented): LIkewise.
13178 * gimple-pretty-print.c (print_gimple_stmt): Likewise.
13179 (print_gimple_seq): Likewise.
13180 (gimple_dump_bb_buff): Likewise.
13182 2012-08-07 Uros Bizjak <ubizjak@gmail.com>
13185 * var-tracking.c (var_lowpart): Exit early for matched modes.
13187 2012-08-07 Richard Henderson <rth@redhat.com>
13189 * config/s390/s390.c (s390_emit_compare_and_swap): Update for
13190 atomic_compare_and_swapsi_internal name change.
13191 (s390_expand_insv): Try RISBG last, not requiring operands in
13192 registers but forcing them there. Try a limited form of ICM.
13193 (s390_two_part_insv): New.
13194 (s390_expand_cs_hqi): Use it. Update for atomic optabs.
13195 * config/s390/s390.md (UNSPEC_MOVA): New.
13196 (TDSI): Remove mode iterator.
13197 (DGPR, DINT, TDI): New mode iterators.
13198 (td): New mode attribute.
13199 (mem_signal_fence): New.
13200 (mem_thread_fence): Rename from memory_barrier; update for model arg.
13201 (mem_thread_fence_1): Rename from *memory_barrier.
13202 (atomic_load<DINT>, atomic_store<DINT>): New expanders.
13203 (atomic_loaddi_1, atomic_loadti_1): New.
13204 (atomic_storedi_1, atomic_storeti_1): New.
13205 (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
13206 (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
13207 (atomic_compare_and_swap<DGPR>_internal): New.
13208 (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
13209 (*atomic_compare_and_swap<TDI>_1): New.
13210 (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
13211 (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
13212 (atomic_fetch_<ATOMIC_Z196><GPR>): New.
13213 (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
13214 (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
13215 (sync_new_<ATOMIC><HQI>): Remove.
13216 (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
13217 (atomic_<ATOMIC>_fetch<HQI>): New.
13218 (sync_lock_test_and_set<HQI>): Remove.
13219 (atomic_exchange<HQI>): New.
13221 2012-08-07 Paul Brook <paul@codesourcery.com>
13222 Sandra Loosemore <sandra@codesourcery.com>
13224 * except.c (switch_to_exception_section): Place tables for
13225 DECL_ONE_ONLY functions in comdat groups.
13227 2012-08-07 Richard Guenther <rguenther@suse.de>
13229 * tree-flow.h (copy_ssa_name_fn): New function.
13230 (duplicate_ssa_name_fn): Likewise.
13231 * tree-flow-inline.h (copy_ssa_name): New function.
13232 (duplicate_ssa_name): Likewise.
13233 * tree-ssanames.c (copy_ssa_name_fn): New function.
13234 (duplicate_ssa_name): Rename to ...
13235 (duplicate_ssa_name_fn): ... this and adjust.
13236 * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
13237 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
13239 (slpeel_update_phi_nodes_for_guard2): Likewise.
13240 (slpeel_tree_peel_loop_to_edge): Likewise.
13241 (vect_loop_versioning): Likewise.
13242 * tree-parloops.c (transform_to_exit_first_loop): Likewise.
13243 (create_parallel_loop): Likewise.
13244 * ipa-split.c (split_function): Likewise.
13245 * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
13246 (vect_create_epilog_for_reduction): Likewise.
13247 * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
13248 (vect_setup_realignment): Likewise.
13249 * tree-vect-stmts.c (vectorizable_load): Likewise.
13250 * tree-switch-conversion.c (build_one_array): Likewise.
13251 (gen_def_assigns): Likewise.
13252 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
13253 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
13254 create_zero_dim_array with the SSA name.
13255 (rewrite_phi_out_of_ssa): Likewise.
13256 (rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name.
13258 2012-08-07 Richard Guenther <rguenther@suse.de>
13260 * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
13261 bit of the old name when we clear the slot.
13262 * tree-ssa-live.c (remove_unused_locals): Release any default
13263 def associated with an unused var.
13264 * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
13266 2012-08-07 Richard Guenther <rguenther@suse.de>
13268 * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
13269 we rewrite into SSA form.
13270 (rewrite_enter_block): Adjust.
13271 * gimple-iterator.c (gsi_replace): Also allow replacement with
13272 a stmt without a lhs.
13273 * tree-ssa-live.c (remove_unused_locals): Remove code handling
13274 clobbers of SSA names.
13275 * tree-nested.c (convert_local_reference_stmt): Remove clobbers
13276 for variables we access through the local chain.
13277 * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
13278 clobber full decls only.
13280 2012-08-07 Richard Guenther <rguenther@suse.de>
13282 * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
13283 * tree-phinodes.c (make_phi_node): Allow a NULL var.
13284 * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
13285 * tree-complex.c (update_phi_components): Likewise.
13286 * tree-ssa-loop-manip.c (create_iv): Likewise.
13287 (add_exit_phis_edge): Likewise.
13288 (split_loop_exit_edge): Likewise.
13289 (tree_transform_and_unroll_loop): Likewise.
13290 * value-prof.c (gimple_ic): Likewise.
13291 (gimple_stringop_fixed_value): Likewise.
13292 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
13293 * omp-low.c (expand_parallel_call): Likewise.
13294 (expand_omp_for_static_chunk): Likewise.
13295 (expand_omp_atomic_pipeline): Likewise.
13296 * tree-parloops.c (create_phi_for_local_result): Likewise.
13297 (transform_to_exit_first_loop): Likewise.
13298 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
13299 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
13300 * tree-predcom.c (initialize_root_vars): Likewise.
13301 (initialize_root_vars_lm): Likewise.
13302 * sese.c (sese_add_exit_phis_edge): Likewise.
13303 * gimple-streamer-in.c (input_phi): Likewise.
13304 * tree-inline.c (copy_phis_for_bb): Likewise.
13305 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13306 * tree-cfg.c (gimple_make_forwarder_block): Likewise.
13307 (gimple_duplicate_bb): Likewise.
13309 2012-08-07 Nick Clifton <nickc@redhat.com>
13311 * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
13312 stack usage if requested.
13314 2012-08-06 Cary Coutant <ccoutant@google.com>
13316 * cgraphunit.c (assemble_thunk): Add source line info.
13317 * final.c (final): Check for non-null cfg pointer.
13319 2012-08-06 Sandra Loosemore <sandra@codesourcery.com>
13320 Maxim Kuvyrkov <maxim@codesourcery.com>
13321 Julian Brown <julian@codesourcery.com>
13323 * config/mips/24k.md (r24k_unknown_store): Delete special handling
13325 (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
13326 (r24k_int_cop, r24k_int_multi)
13327 (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
13328 (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
13329 instead of store_data_bypass_p.
13330 * config/mips/74k.md (r74k_int_store): Delete special handling for
13332 (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
13333 Use mips_store_data_bypass_p instead of store_data_bypass_p.
13335 2012-08-06 Marc Glisse <marc.glisse@inria.fr>
13337 PR tree-optimization/51938
13338 PR tree-optimization/52005
13339 * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
13340 inverted conditions.
13341 (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
13342 (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
13343 and !a||b patterns.
13345 2012-08-06 Olivier Hainque <hainque@adacore.com>
13347 * tree-emutls.c (new_emutls_decl): When a var_section is requested by
13348 the target, attach the new decl to that, not to the template section.
13350 2012-08-06 Tom de Vries <tom@codesourcery.com>
13352 * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
13355 2012-08-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13357 * doc/invoke.texi: Document AMD btver2.
13358 * doc/extend.texi: Document AMD btver1 and btver2.
13360 2012-08-04 Sandra Loosemore <sandra@codesourcery.com>
13361 Richard Sandiford <rdsandiford@googlemail.com>
13363 * config/mips/mips.c (mips_option_override): Check -fpic
13364 for compatibility with -mabicalls and ABI.
13366 2012-08-04 Catherine Moore <clm@codesourcery.com>
13367 Sandra Loosemore <sandra@codesourcery.com>
13369 * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
13370 (ir_xlr_alu): Remove clz.
13371 * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
13373 2012-08-04 Richard Earnshaw <rearnsha@arm.com>
13375 * arm.c (arm_gen_constant): Use SImode when preparing operands for
13378 2012-08-04 Uros Bizjak <ubizjak@gmail.com>
13380 * config/i386/i386.h (QI_REGNO_P): New define.
13381 (ANY_QI_REGNO_P): Ditto.
13382 (GENERAL_REGNO_P): Use IN_RANGE macro.
13383 (QI_REG_P): Use QI_REGNO_P.
13384 (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
13385 (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
13386 * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
13387 (x86_extended_QIreg_mentioned_p): Ditto. Also check if
13388 register is a general register.
13390 2012-08-03 Uros Bizjak <ubizjak@gmail.com>
13392 * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
13393 incdec_operand predicate to return INC or DEC insn mnemonic.
13394 Add %K operand modifier.
13395 (atomic_add<mode>): Use incdec_operand predicate to
13396 return INC or DEC insn mnemonic.
13397 (atomic_dec<mode>): Ditto.
13399 2012-08-03 Michael Matz <matz@suse.de>
13401 PR tree-optimization/54146
13402 * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
13403 (add_scope_conflicts): Iterate in RPO order.
13404 (add_stack_protection_conflicts): Iterate over the other triangle.
13405 (fini_vars_expansion): Clear stack_vars_sorted.
13407 2012-08-03 Marc Glisse <marc.glisse@inria.fr>
13409 PR tree-optimization/30318
13410 * double-int.c (mul_double_wide_with_sign): New function.
13411 (mul_double_with_sign): Call the new function.
13412 * double-int.h (mul_double_wide_with_sign): Declare the new function.
13413 * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
13414 Handle integer types that wrap on overflow.
13415 (quad_int_cmp): New helper function.
13416 (quad_int_pair_sort): Likewise.
13418 2012-08-03 Richard Guenther <rguenther@suse.de>
13420 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
13421 is_gimple_reg on the SSA name, not its variable.
13422 (vect_update_ivs_after_vectorizer): Likewise.
13423 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
13424 * tree-if-conv.c (if_convertible_phi_p): Likewise.
13425 (predicate_scalar_phi): Likewise.
13426 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
13427 (vect_analyze_scalar_cycles_1): Likewise.
13428 * tree-ssa-live.c (register_ssa_partition_check): Likewise.
13429 * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
13430 * tree-ssa-reassoc.c (phi_rank): Likewise.
13431 * tree-parloops.c (separate_decls_in_region_name): Use
13432 replace_ssa_name_symbol.
13433 * tree-predcom.c (base_names_in_chain_on): Likewise.
13434 * matrix-reorg.c (update_type_size): Query the type of the SSA name,
13436 * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
13437 (create_mul_imm_cand): Likewise.
13438 (create_add_ssa_cand): Likewise.
13439 (create_add_imm_cand): Likewise.
13440 (slsr_process_add): Likewise.
13441 * tree-inline.c (remap_ssa_name): Do not set the type of the
13443 * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
13444 Check for default def first.
13446 2012-08-04 Steven Bosscher <steven@gcc.gnu.org>
13448 * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
13450 * sched-vis.c (print_pattern): Handle SEQUENCE also.
13452 2012-08-02 Richard Henderson <rth@redhat.com>
13456 * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
13457 * cfgexpand.c (gimple_expand_cfg): Initialise it.
13458 * explow.c (allocate_dynamic_stack_space): Set it. Simplify
13459 alignment requirements given the known alignment of dynamic_offset.
13460 * function.c (instantiate_virtual_regs): Align dtnamic_offset.
13462 2012-08-02 Kenneth Zadeck <zadeck@naturalbridge.com>
13464 * cfgexpand.c (expand_debug_locations): Encapsulate test for
13465 CONST_DOUBLE in macro.
13466 * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
13467 * cprop.c (implicit_set_cond_p): Ditto.
13468 * cselib.c (rtx_equal_for_cselib_1): Ditto.
13469 * expmed.c (expand_mult): Ditto.
13470 * expr.c (convert_modes): Ditto.
13471 * ira-costs.c (record_reg_classes): Ditto.
13472 * ira-lives.c (single_reg_class): Ditto.
13473 * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
13474 * print-rtl.c (print_rtx): Ditto.
13475 * recog.c (simplify_while_replacing, const_double_operand)
13476 (asm_operand_ok, constrain_operands): Ditto.
13477 * reg-stack.c (subst_stack_regs_pat): Ditto.
13478 * reload.c (find_reloads, find_equiv_reg): Ditto.
13479 * rtlanal.c (replace_rtx): Remove test.
13480 * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
13481 test for CONST_DOUBLE in macro.
13482 * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
13483 (simplify_unary_operation_1, simplify_const_unary_operation)
13484 (simplify_binary_operation_1, simplify_const_binary_operation)
13485 (simplify_relational_operation_1)
13486 (simplify_const_relational_operations)
13487 (implify_subreg): Ditto.
13488 * varasm.c (output_constant_pool_2): Ditto.
13489 * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
13490 * rtl.def (CONST_DOUBLE): Updated comments.
13492 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
13495 * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
13496 * config/mips/mips.c (mips_strip_unspec_address): Make extern.
13497 (mips16_rewrite_pool_constant): Make a copy of the pool constant
13498 before adding to a PC-relative table.
13499 (mips16_lay_out_constants): Add a SPLIT_P parameter.
13500 (mips16_load_branch_target, mips16_split_long_branches): New functions.
13501 (mips_reorg): Update call to mips16_lay_out_constants.
13502 Call mips16_split_long_branches.
13503 * config/mips/predicates.md (pc_or_label_operand): Delete.
13504 * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
13505 Move the extended_mips16 handling further down.
13506 (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
13507 with explicit label_ref and pc. Follow the usual operand numbering.
13508 (*branch_equality<mode>_mips16_inverted): New pattern.
13509 (*jump_mips16): Add length attribute.
13510 (indirect_jump_and_restore_<mode>): New pattern.
13511 (consttable_int): Call mips_strip_unspec_address on the operand.
13513 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
13515 * recog.c (split_insn): Copy the original SET_SRC before using
13518 2012-08-02 Richard Sandiford <rdsandiford@googlemail.com>
13520 * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
13522 2012-08-02 Marc Glisse <marc.glisse@inria.fr>
13524 PR tree-optimization/53805
13525 * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
13526 UNORDERED_EXPR even for trapping floating point.
13528 2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
13530 PR middle-end/53321
13531 PR middle-end/53865
13532 * ipa-inline-analysis.c (inline_free_summary): Return if
13533 inline_edge_summary_vec is NULL.
13535 * ipa-split.c (execute_split_functions): Check if a function
13536 is inlinable only if inline_edge_summary_vec != NULL.
13538 * ipa.c (symtab_remove_unreachable_nodes): Restore
13539 cgraph_propagate_frequency call when something was changed.
13540 (free_inline_summary): New function.
13541 (pass_ipa_free_inline_summary): New pass.
13543 * passes.c (init_optimization_passes): Add
13544 pass_ipa_free_inline_summary before pass_ipa_tree_profile.
13546 * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
13548 * tree-pass.h (pass_ipa_free_inline_summary): New.
13550 2012-08-02 Richard Earnshaw <rearnsha@arm.com>
13552 * arm.c (arm_gen_constant): Use UBFX for some AND operations when
13555 2012-08-02 Richard Guenther <rguenther@suse.de>
13557 * tree-into-ssa.c (struct common_info_d): New struct.
13558 (struct var_info_d, struct ssa_name_info): Use it.
13559 (get_ssa_name_ann): Adjust.
13560 (get_phi_state, set_phi_state): Remove.
13561 (get_common_info): New function.
13562 (get_current_def, set_current_def): Adjust.
13563 (get_def_blocks_for): Take a common info as param.
13564 (set_def_block): Call get_common_info once.
13565 (set_livein_block): Likewise.
13566 (find_def_blocks_for): Adjust.
13567 (insert_phi_nodes): Likewise.
13568 (register_new_def): Call get_common_info once.
13569 (get_reaching_def): Likewise.
13570 (rewrite_debug_stmt_uses): Likewise.
13571 (rewrite_leave_block): Likewise.
13572 (dump_currdefs): Likewise.
13573 (debug_var_infos_r): Adjust.
13574 (register_new_update_single): Call get_common_info once.
13575 (maybe_replace_use_in_debug_stmt): Likewise.
13576 (rewrite_update_leave_block): Likewise.
13577 (mark_use_interesting): Adjust.
13578 (create_new_def_for): Likewise.
13579 (update_ssa): Likewise.
13581 2012-08-02 Michael Matz <matz@suse.de>
13583 * tree-ssa-live.c (set_is_used): Return a bool.
13584 (mark_all_vars_used): Don't take data argument.
13585 (mark_all_vars_used_1): Adjust calls to above, merge handling
13586 of local and global vars.
13587 (remove_unused_scope_block_p): Don't take global_unused_vars,
13588 merge handling of local and global vars.
13589 (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
13590 use is_used_p for local and global vars.
13592 2012-08-02 Richard Guenther <rguenther@suse.de>
13594 * tree-flow.h (make_rename_temp): Remove.
13595 * tree-dfa.c (make_rename_temp): Likewise.
13596 * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
13597 instead of make_rename_temp.
13598 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
13599 expand_omp_atomic_pipeline): Likewise.
13600 * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
13601 build_tm_store, expand_call_tm, expand_transaction,
13602 ipa_tm_insert_gettmclone_call): Likewise.
13603 * tree-complex.c (expand_complex_div_wide): Likewise.
13604 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
13606 * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
13608 * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
13609 * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
13610 gimple_mod_subtract): Likewise.
13612 2012-08-02 Richard Guenther <rguenther@suse.de>
13614 * tree-flow.h (set_default_def): Rename to ...
13615 (set_ssa_default_def): ... this. Take a struct function argument.
13616 (gimple_default_def): Rename to ...
13617 (ssa_default_def): ... this.
13618 (get_or_create_ssa_default_def): New function.
13619 * tree-dfa.c: Likewise.
13620 (dump_variable): Adjust.
13621 * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
13622 for used parameters.
13623 * ipa-split.c (consider_split): Adjust, avoid repeated default-def
13625 (split_function): Likewise.
13626 * lto-streamer-in.c (input_ssa_names): Adjust.
13627 * omp-low.c (expand_omp_taskreg): Likewise.
13628 * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
13629 * tree-complex.c (init_parameter_lattice_values): Adjust.
13630 (get_component_ssa_name): Likewise.
13631 (update_parameter_components): Likewise.
13632 * tree-inline.c (remap_ssa_name): Likewise.
13633 (setup_one_parameter): Likewise.
13634 (initialize_inlined_parameters): Likewise.
13635 (declare_return_variable): Likewise.
13636 (expand_call_inline): Likewise.
13637 (tree_function_versioning): Likewise.
13638 * tree-into-ssa.c (get_default_def_for): Remove.
13639 (get_reaching_def): Use get_or_create_ssa_default_def instead.
13640 * tree-predcom.c (replace_ref_with): Adjust.
13641 * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
13642 (is_unused_scalar_param): Likewise.
13643 (ptr_parm_has_direct_uses): Likewise.
13644 (sra_ipa_reset_debug_stmts): Likewise.
13645 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
13646 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
13647 * tree-ssa-live.c (verify_live_on_entry): Likewise.
13648 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
13649 avoid repeated default def lookups.
13650 * tree-ssa-sccvn.c (run_scc_vn): Likewise.
13651 * tree-tailcall.c (arg_needs_copy_p): Adjust.
13652 (tree_optimize_tail_calls_1): Likewise.
13654 2012-08-02 Richard Guenther <rguenther@suse.de>
13656 PR tree-optimization/50672
13658 2012-08-01 Richard Guenther <rguenther@suse.de>
13660 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
13661 (replace_block_by): Adjust.
13663 2012-08-02 Richard Guenther <rguenther@suse.de>
13665 * tree-dfa.c (referenced_var_lookup): Remove.
13666 (find_referenced_vars): Remove.
13667 (pass_referenced_vars): Likewise.
13668 (make_rename_temp): Do not add referenced vars.
13669 (dump_referenced_vars): Remove.
13670 (debug_referenced_vars): Likewise.
13671 (dump_dfa_stats): Do not dump referenced var stats.
13672 (find_vars_r): Remove.
13673 (find_referenced_vars_in): Likewise.
13674 (referenced_var_check_and_insert): Likewise.
13675 (add_referenced_var_1): Likewise.
13676 (remove_referenced_var): Likewise.
13677 * tree-flow.h (referenced_var_lookup): Likewise.
13678 (struct gimple_df): Remove referenced_vars member.
13679 (typedef referenced_var_iterator): Remove.
13680 (FOR_EACH_REFERENCED_VAR): Likewise.
13681 (num_referenced_vars): Likewise.
13682 (debug_referenced_vars, dump_referenced_vars): Likewise.
13683 (add_referenced_var_1, add_referenced_var): Likewise.
13684 (remove_referenced_var): Likewise.
13685 (find_referenced_vars_in): Likewise.
13686 * tree-flow-inline.h (gimple_referenced_vars): Remove.
13687 (first_referenced_var): Likewise.
13688 (end_referenced_vars_p): Likewise.
13689 (next_referenced_var): Likewise.
13690 * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
13691 * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
13693 * tree-into-ssa.c (dump_decl_set): Likewise.
13694 (pass_build_ssa): Do not require PROP_referenced_vars.
13695 * tree-ssa.c (target_for_debug_bind): Virtual operands are
13696 not suitable, but all register type vars are.
13697 (init_tree_ssa): Do not allocate referenced vars.
13698 (delete_tree_ssa): Do not free referenced vars.
13699 * cgraphunit.c (init_lowered_empty_function): Do not set
13700 PROP_referenced_vars.
13701 (assemble_thunk): Do not add referenced vars.
13702 * gimple-fold.c (canonicalize_constructor_val): Likewise.
13703 (gimplify_and_update_call_from_tree): Likewise.
13704 * gimple-streamer-in.c (input_bb): Likewise.
13705 * passes.c (init_optimization_passes): Do not run
13706 pass_referenced_vars.
13707 (dump_properties): Do not dump PROP_referenced_vars.
13708 * tree-inline.c (remap_decl): Do not add referenced vars.
13709 (remap_gimple_op_r): Likewise.
13710 (copy_tree_body_r): Likewise.
13711 (copy_bb): Likewise.
13712 (setup_one_parameter): Likewise.
13713 (declare_return_variable): Likewise.
13714 (copy_decl_for_dup_finish): Likewise.
13715 (copy_arguments_for_versioning): Likewise.
13716 (tree_function_versioning): Likewise.
13717 * tree-pass.h (PROP_referenced_vars): Remove.
13718 (pass_referenced_vars): Likewise.
13719 * tree-profile.c (gimple_gen_edge_profiler): Do not add
13721 (gimple_gen_interval_profiler): Likewise.
13722 (gimple_gen_pow2_profiler): Likewise.
13723 (gimple_gen_one_value_profiler): Likewise.
13724 (gimple_gen_ic_profiler): Likewise.
13725 (gimple_gen_average_profiler): Likewise.
13726 (gimple_gen_ior_profiler): Likewise.
13727 * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
13728 * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
13729 (move_stmt_op): Likewise.
13730 * tree-ssa-operands.c (create_vop_var): Likewise.
13731 * gimple-low.c (record_vars_into): Likewise.
13732 * gimplify.c (gimple_regimplify_operands): Likewise.
13733 (force_gimple_operand_1): Likewise.
13734 * omp-low.c (expand_omp_for_generic): Likewise.
13735 (expand_omp_for_static_chunk): Likewise.
13736 (expand_omp_atomic_pipeline): Likewise.
13737 * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
13738 (translate_clast_assignment): Likewise.
13739 * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
13740 (handle_scalar_deps_crossing_scop_limits): Likewise.
13741 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
13742 * ipa-split.c (split_function): Likewise.
13743 * matrix-reorg.c (transform_access_sites): Likewise.
13744 * trans-mem.c (tm_log_add): Likewise.
13745 (ipa_tm_insert_gettmclone_call): Likewise.
13746 * tree-complex.c (create_one_component_var): Likewise.
13747 * tree-if-conv.c (ifc_temp_var): Likewise.
13748 * tree-parloops.c (take_address_of): Likewise.
13749 (initialize_reductions): Likewise.
13750 (separate_decls_in_region_name): Likewise.
13751 (create_call_for_reduction_1): Likewise.
13752 (separate_decls_in_region): Likewise.
13753 * tree-predcom.c (predcom_tmp_var): Likewise.
13754 (reassociate_to_the_same_stmt): Likewise.
13755 * tree-sra.c (build_ref_for_offset): Likewise.
13756 (create_access_replacement): Likewise.
13757 (get_replaced_param_substitute): Likewise.
13758 (sra_ipa_reset_debug_stmts): Likewise.
13759 * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
13760 (rewrite_bittest): Likewise.
13761 * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
13762 * tree-ssa-loop-manip.c (create_iv): Likewise.
13763 (tree_transform_and_unroll_loop): Likewise.
13764 * tree-ssa-math-opts.c (powi_as_mults): Likewise.
13765 (build_and_insert_call): Likewise.
13766 (gimple_expand_builtin_cabs): Likewise.
13767 (execute_optimize_bswap): Likewise.
13768 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
13769 (abs_replacement): Likewise.
13770 (cond_store_replacement): Likewise.
13771 (cond_if_else_store_replacement_1): Likewise.
13772 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
13773 * tree-ssa-pre.c (get_representative_for): Likewise.
13774 (create_expression_by_pieces): Likewise.
13775 (insert_into_preds_of_block): Likewise.
13776 * tree-ssa-propagate.c (update_call_from_tree): Likewise.
13777 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
13778 (eliminate_redundant_comparison): Likewise.
13779 (rewrite_expr_tree_parallel): Likewise.
13780 (get_reassoc_pow_ssa_name): Likewise.
13781 * tree-ssa-strlen.c (get_string_length): Likewise.
13782 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13783 (build_arrays): Likewise.
13784 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
13785 (create_tailcall_accumulator): Likewise.
13786 * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
13787 (vect_create_addr_base_for_vector_ref): Likewise.
13788 (vect_permute_store_chain): Likewise.
13789 (vect_permute_load_chain): Likewise.
13790 * tree-vect-generic.c (expand_vector_divmod): Likewise.
13791 * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
13792 (vect_build_loop_niters): Likewise.
13793 (vect_generate_tmps_on_preheader): Likewise.
13794 (vect_update_ivs_after_vectorizer): Likewise.
13795 (vect_gen_niters_for_prolog_loop): Likewise.
13796 (vect_do_peeling_for_alignment): Likewise.
13797 (vect_create_cond_for_align_checks): Likewise.
13798 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
13799 (vect_handle_widen_op_by_const): Likewise.
13800 (vect_operation_fits_smaller_type): Likewise.
13801 (vect_recog_over_widening_pattern): Likewise.
13802 * tree-vect-stmts.c (vect_init_vector): Likewise.
13804 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
13807 * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
13809 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
13812 * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
13813 falling back to copy_rtx on non-autoinc machines.
13814 (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
13816 2012-08-01 Alexandre Oliva <aoliva@redhat.com>
13819 * valtrack.h, valtrack.c: New.
13820 * Makefile.in (VALTRACK_H): New.
13821 (OBJS): Add valtrack.o.
13823 (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
13824 * combine.c: Include valtrack.h.
13825 (make_compound_operation): Publish.
13826 (cleanup_auto_inc_dec): Move to valtrack.c.
13827 (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
13828 (propagate_for_debug): Likewise. Add this_basic_block parameter.
13829 Adjust all callers.
13830 * cselib.c: Include valtrack.h.
13832 * df-problems.c: Likewise.
13833 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
13834 (dead_debug_finish, dead_debug_add): Likewise.
13835 (dead_debug_insert_temp): Likewise.
13836 * df.h (struct dead_debug_use): Move to valtrack.h.
13837 (struct dead_debug, enum debug_temp_where): Likewise.
13838 (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
13839 (dead_debug_finish, dead_debug_add): Likewise.
13840 (dead_debug_insert_temp): Likewise.
13841 * rtl.h (make_compound_operation): Declare.
13843 2012-08-01 Catherine Moore <clm@codesourcery.com>
13844 Sandra Loosemore <sandra@codesourcery.com>
13846 * config/mips/mips-cpus.def (34kn): New.
13847 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
13848 (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
13849 * config/mips/mips-tables.opt: Regenerate.
13850 * doc/invoke.texi (MIPS Options): Document -march=34kn.
13852 2012-08-01 Richard Henderson <rth@redhat.com>
13854 * expmed.h (NUM_MODE_PARTIAL_INT): New.
13855 (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
13856 (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
13857 (struct expmed_op_costs): Likewise.
13858 (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
13859 (expmed_mode_index): New.
13860 (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
13861 (convert_cost_ptr): Likewise.
13862 * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
13863 (init_expmed_one_conv): Split out from ...
13864 (init_expmed_one_mode): ... here. Iterate conversions over
13865 partial integer modes too.
13866 (init_expmed): Iterate over partial integer modes too.
13868 2012-08-01 Richard Henderson <rth@redhat.com>
13870 * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
13871 (m32c_init_libfuncs): Remove.
13872 * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
13873 (cstore<QHPSI>4): New expander.
13875 2012-08-01 Richard Guenther <rguenther@suse.de>
13877 * tree-flow-inline.h (referenced_var): Remove.
13878 * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
13880 * tree-sra.c (candidates): New global hashtable.
13881 (candidate): New function.
13882 (sra_initialize): Initialize candidates.
13883 (sra_deinitialize): Free candidates.
13884 (disqualify_candidate): Remove candidate from candidates.
13885 (maybe_add_sra_candidate): New function.
13886 (find_var_candidates): Walk over all local decls and parameters,
13887 add candidates to candidates hashtable.
13888 (find_param_candidates): Add candidates to candidates hashtable.
13889 (analyze_all_variable_accesses): Use candidate instead of
13892 2012-08-01 Tom de Vries <tom@codesourcery.com>
13894 * tree-vrp.c (find_case_label_ranges): New function.
13895 (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
13896 find_case_label_ranges instead of find_case_label_range. Handle second
13899 2012-08-01 Michael Matz <matz@suse.de>
13901 * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
13902 * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
13903 (dump_dfa_stats): Don't dump stats about var anns.
13904 (collect_dfa_stats): Don't collect them.
13905 (add_referenced_var_1): Don't set var annotation pointers.
13906 (remove_referenced_var): Ditto, and only remove it it's in the
13909 * tree-flow-inline.h (var_ann): Remove.
13910 * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
13912 * tree-inline.c (remapped_type): Remove.
13913 (can_be_nonlocal): Most variable will be considered live here,
13914 return false earlier.
13915 (remap_decls): Don't call var_ann, all variables will be considered
13917 (copy_debug_stmt): Ditto, and use is_global_var.
13919 * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
13920 determine if a variable was referred to, not var_ann.
13921 * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
13922 (remove_unused_locals): Ditto.
13923 * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
13924 * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
13925 * tree.c (copy_node_stat): Don't clear var ann pointer.
13926 * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
13928 (DECL_VAR_ANN_PTR): Remove.
13930 2012-08-01 Michael Matz <matz@suse.de>
13932 * tree-flow.h (struct var_ann_d): Rename used member.
13933 (set_is_used): Don't declare.
13934 * tree-flow-inline.h (clear_is_used): Remove.
13935 (set_is_used, is_used_p): Move to ...
13936 * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
13937 on the side bitmap.
13938 (usedvars): New bitmap.
13939 (dump_scope_block): Don't dump unusedness.
13940 (remove_unused_locals): Allocate and free usedvars.
13941 * tree-nrv.c (tree_nrv): Don't clear used flags here.
13943 2012-08-01 Michael Matz <matz@suse.de>
13945 * tree-flow.h (struct var_ann_d): Remove base_var_processed and
13946 base_index members.
13947 * tree-ssa-live.h (struct _var_map): Remove basevars member.
13948 (VAR_ANN_BASE_INDEX): Remove.
13949 * tree-ssa-live.c (var_map_base_init): Use a hash table instead
13950 of var annotation to compress index space. Don't deal with above
13952 (var_map_base_fini): Don't free basevars.
13953 (init_var_map): Don't clear basevars.
13955 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
13957 * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
13958 base_name to base_expr.
13959 (struct cand_chain_d): Likewise.
13960 (base_cand_hash): Likewise.
13961 (base_cand_eq): Likewise.
13962 (record_potential_basis): Likewise.
13963 (alloc_cand_and_find_basis): Likewise.
13964 (create_mul_ssa_cand): Likewise.
13965 (create_mul_imm_cand): Likewise.
13966 (create_add_ssa_cand): Likewise.
13967 (create_add_imm_cand): Likewise.
13968 (slsr_process_cast): Likewise.
13969 (slsr_process_copy): Likewise.
13970 (dump_candidate): Likewise.
13971 (base_cand_dump_callback): Likewise.
13972 (unconditional_cands_with_known_stride_p): Likewise.
13973 (cand_increment): Likewise.
13975 2012-08-01 Bill Schmidt <wschmidt@linux.ibm.com>
13977 PR tree-optimization/46556
13978 * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
13979 (base_cand_map): Change to hash table.
13980 (base_cand_hash): New function.
13981 (base_cand_free): Likewise.
13982 (base_cand_eq): Likewise.
13983 (lookup_cand): Change base_cand_map to hash table.
13984 (find_basis_for_candidate): Likewise.
13985 (base_cand_from_table): Exclude CAND_REF.
13986 (restructure_reference): New function.
13987 (slsr_process_ref): Likewise.
13988 (find_candidates_in_block): Call slsr_process_ref.
13989 (dump_candidate): Handle CAND_REF.
13990 (base_cand_dump_callback): New function.
13991 (dump_cand_chains): Change base_cand_map to hash table.
13992 (replace_ref): New function.
13993 (replace_refs): Likewise.
13994 (analyze_candidates_and_replace): Call replace_refs.
13995 (execute_strength_reduction): Change base_cand_map to hash table.
13997 2012-08-01 Uros Bizjak <ubizjak@gmail.com>
13999 * config/i386/i386.c (ix86_address_subreg_operand): Reject
14001 (ix86_print_operand_address): Assert that parts.base and parts.index
14002 are non-NULL after call to simplify_subreg.
14004 2012-08-01 Richard Guenther <rguenther@suse.de>
14006 * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
14008 2012-08-01 Richard Guenther <rguenther@suse.de>
14010 * graphite-clast-to-gimple.c (translate_clast_user): Rename
14012 * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
14014 * tree-call-cdce.c (tree_call_cdce): Use
14015 mark_virtual_operands_for_renaming.
14016 * tree-eh.c (sink_clobbers): Simplify.
14017 * tree-flow.h (mark_sym_for_renaming): Remove.
14018 (mark_virtual_operands_for_renaming): New function.
14019 * tree-if-conv.c (tree_if_conversion): Use
14020 mark_virtual_operands_for_renaming.
14021 * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
14022 * tree-into-ssa.c (mark_sym_for_renaming): Remove.
14023 (mark_virtual_operands_for_renaming): New function.
14024 * tree-loop-distribution.c (tree_loop_distribution): Use
14025 mark_virtual_operands_for_renaming.
14026 * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
14027 update stmts, use mark_virtual_operands_for_renaming.
14028 * tree-ssa-tail-merge.c (release_last_vdef): Remove.
14029 (replace_block_by): Adjust.
14030 (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
14031 * tree-tailcall.c (tree_optimize_tail_calls_1): Use
14032 mark_virtual_operands_for_renaming.
14033 * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
14034 * tree-vectorizer.c (vectorize_loops): Likewise.
14036 2012-08-01 Richard Guenther <rguenther@suse.de>
14038 * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
14039 add ssa_renaming_needed and rename_vops flags.
14040 (SYMS_TO_RENAME): Remove.
14041 (symbol_marked_for_renaming): Likewise.
14042 (mark_virtual_ops_for_renaming): Likewise.
14043 * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
14045 (mark_for_renaming, marked_for_renaming): New functions.
14046 (symbol_marked_for_renaming): Remove.
14047 (dump_currdefs): Adjust.
14048 (maybe_replace_use): Likewise.
14049 (maybe_replace_use_in_debug_stmt): Likewise.
14050 (maybe_register_def): Likewise.
14051 (rewrite_update_phi_arguments): Likewise.
14052 (rewrite_update_enter_block): Likewise.
14053 (fini_ssa_renamer): Clear update SSA status here ...
14054 (delete_update_ssa): ... not here. Free rename set.
14055 (prepare_block_for_update): Compute which decls need renaming.
14056 (dump_update_ssa): Adjust.
14057 (mark_sym_for_renaming): Adjust update SSA status for virtuals.
14058 (need_ssa_update_p): Adjust.
14059 (insert_updated_phi_nodes_for): Likewise.
14060 (update_ssa): Likewise.
14061 * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
14062 for virtual and real operands.
14063 (finalize_ssa_uses): Likewise.
14064 * tree-ssanames.c (init_ssanames): Adjust.
14065 * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
14066 execute_update_addresses_taken): Add bitmap to keep track of which
14067 candidates are suitable for rewriting and later renaming by SSA update.
14068 * matrix-reorg.c (transform_access_sites): Do not rename all defs.
14069 * tree-dfa.c (make_rename_temp): Do not mark real operands for
14071 * cgraphunit.c (assemble_thunk): Likewise.
14072 * gimplify.c (gimple_regimplify_operands): Likewise.
14073 (force_gimple_operand_1): Likewise.
14074 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
14075 * tree-inline.c (declare_return_variable): Likewise.
14076 * tree-parloops.c (separate_decls_in_region_stmt): Do not call
14077 mark_virtual_ops_for_renaming.
14078 (create_stores_for_reduction): Likewise.
14079 (create_loads_and_stores_for_name): Likewise.
14080 * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
14081 (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
14082 (execute_load_motion): Likewise.
14083 (remove_stmt): Likewise.
14084 (execute_pred_commoning_chain): Likewise.
14085 * tree-sra.c (create_access_replacement): Do not rename real operands.
14086 (get_unrenamed_access_replacement): Unify with ...
14087 (get_access_replacement): ... this.
14088 (get_repl_default_def_ssa_name): Adjust.
14089 * tree-ssa-loop-im.c (move_computations_stmt): Manually update
14091 (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
14092 * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
14094 2012-07-31 DJ Delorie <dj@redhat.com>
14096 * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
14097 extensions for TPF, unless specifically selected.
14099 2012-08-01 Alan Modra <amodra@gmail.com>
14102 * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
14103 of lo_sum offsets. Comment. Assert mode at least word size
14104 rather than bypassing powerpc64 word offset check.
14106 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
14108 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
14109 costs for vec_perm and vec_promote_demote down to more natural values.
14110 (struct _rs6000_cost_data): New data structure.
14111 (rs6000_density_test): New function.
14112 (rs6000_init_cost): Change to use rs6000_cost_data.
14113 (rs6000_add_stmt_cost): Likewise.
14114 (rs6000_finish_cost): Perform density test when vectorizing a loop.
14116 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
14118 * sched-vis.c (print_exp): Handle FMA explicitly. Simplify handling
14119 of RTX_UNARY function-like operations. Print unknown expression
14120 RTX classes as pseudo-functions.
14121 (print_pattern): Simplify return pattern printing.
14122 (dump_insn_slim): Print the value of notes as a pattern for proper
14123 printing of CFA notes.
14125 2012-07-31 Dehao Chen <dehao@google.com>
14127 * predict.c (tree_estimate_probability_driver): Normalize the
14128 loop when initializing the loop optimizer.
14130 2012-07-31 Richard Guenther <rguenther@suse.de>
14132 * tree-flow.h (struct var_ann_d): Remove need_phi_state
14133 and current_def members.
14134 * tree-into-ssa.c (struct def_blocks_d): Remove var member.
14135 (def_blocks): Remove.
14136 (struct var_info_d): New.
14137 (var_infos): New hashtable.
14138 (struct ssa_name_info): Add def_blocks member.
14139 (get_ssa_name_ann): Adjust.
14140 (get_var_info): New function.
14141 (get_phi_state, set_phi_state, get_current_def,
14142 set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
14143 (insert_phi_nodes_compare_def_blocks): Rename to ...
14144 (insert_phi_nodes_compare_var_infos): ... this and adjust.
14145 (insert_phi_nodes): Adjust.
14146 (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
14147 (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
14148 (debug_def_blocks_r): Rename to ...
14149 (debug_var_infos_r): ... this and adjust.
14150 (var_info_hash): New function.
14151 (var_info_eq): Likewise.
14152 (rewrite_blocks): Adjust.
14153 (init_ssa_renamer): Likewise.
14154 (fini_ssa_renamer): Likewise.
14155 (delete_update_ssa): Likewise.
14156 (update_ssa): Likewise.
14157 * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
14159 2012-07-31 Bill Schmidt <wschmidt@linux.ibm.com>
14161 PR tree-optimization/53773
14162 * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
14163 (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
14164 * tree-vect-loop.c (new_loop_vec_info): Initialize
14165 LOOP_VINFO_OPERANDS_SWAPPED field.
14166 (destroy_loop_vec_info): Restore canonical form.
14167 (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
14168 (vect_is_simple_reduction_1): Likewise.
14170 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
14172 * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
14173 start of each new line.
14174 * final.c (final_scan_insn): If the final dump is requested as
14175 slim RTL, dump slim RTL to the assembly file also.
14177 2012-07-31 Andrey Belevantsev <abel@ispras.ru>
14181 * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
14184 2011-08-04 Sergey Grechanik <mouseentity@ispras.ru>
14186 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
14187 only if producer writes to the register given by regno.
14189 2012-07-31 Nick Clifton <nickc@redhat.com>
14191 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
14192 support for reporting stack usage.
14194 * config/frv/frv.c (QUAD): Fix typo.
14195 (frv_expand_prologue): Report stack usage.
14197 2012-07-31 Steven Bosscher <steven@gcc.gnu.org>
14200 * gengtype.c (struct walk_type_data): Add have_this_obj field.
14201 (walk_type): For functions that take a this_obj argument and
14202 that process fields with a GTY((length)) argument, write the
14203 test that write_types_local_process_field will write also at the
14204 head of the loop, effectively unswitching the loop.
14205 (write_func_for_structure, write_local_func_for_structure): Clear
14206 have_this_obj before calling walk_type.
14207 (write_local_func_for_structure): Set have_this_obj before walk_type.
14208 (write_array): Set have_this_obj for output of local pointer walking
14209 functions but not for marker functions.
14210 (write_types_local_process_field): Assert have_this_obj is set.
14212 * rtl.h (simplify_using_condition): Adjust prototype using bitmap
14215 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
14218 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
14219 * targhooks.c (default_mode_dependent_address_p): Delete code
14220 for GO_IF_MODE_DEPENDENT_ADDRESS.
14221 * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
14222 * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
14223 * doc/tm.texi: Regenerate.
14224 * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
14225 * config/alpha.c (alpha_mode_dependent_address_p): ...here. New
14227 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14228 * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
14229 * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
14230 * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
14231 * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
14232 * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
14234 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14236 2012-07-30 Nathan Froyd <froydnj@gcc.gnu.org>
14238 * expmed.h (NUM_MODE_VECTOR_INT): Define.
14239 (struct expmed_op_cheap, struct expmed_op_costs): New structures.
14240 (struct target_expmed): Convert x_mul_highpart_cost and
14241 x_mul_widen_cost fields to be indexed by integer modes.
14242 Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
14243 of type struct expmed_op_cheap. Convert other cost fields to be
14244 of type struct_expmed_op_costs.
14245 (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
14246 indexing of respective fields.
14247 (expmed_op_cheap_ptr): New function.
14248 (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
14249 (expmed_op_cost_ptr): New function.
14250 (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
14251 shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
14252 sdiv_cost_ptr, udiv_cost_ptr): Call it.
14254 2012-07-30 Sandra Loosemore <sandra@codesourcery.com>
14255 Julian Brown <julian@codesourcery.com>
14257 * doc/invoke.texi (MIPS Options): Document -mno-float.
14258 * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
14261 2012-07-30 Joseph Myers <joseph@codesourcery.com>
14263 * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
14265 2012-07-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14267 PR middle-end/53823
14268 * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
14269 for special cases. Don't initialize coeff and is_neg.
14271 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
14272 Richard Earnshaw <rearnsha@arm.com>
14274 * target.def (vector_alignment): New target hook.
14275 * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
14276 * doc/tm.texi: Regenerate.
14277 * targhooks.c (default_vector_alignment): New function.
14278 * targhooks.h (default_vector_alignment): Add prototype.
14279 * stor-layout.c (layout_type): Use targetm.vector_alignment.
14280 * config/arm/arm.c (arm_vector_alignment): New function.
14281 (TARGET_VECTOR_ALIGNMENT): Define.
14283 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
14284 vector type alignment instead of size.
14285 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
14286 element type size directly instead of computing it from alignment.
14287 Fix variable naming and comment.
14289 2012-07-30 Kirill Yukhin <kirill.yukhin@intel.com>
14290 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14292 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
14293 (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
14294 (ix86_handle_option): Handle mrdseed option.
14295 * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
14296 (x86_64-*-*): Likewise.
14297 * config/i386/prfchwintrin.h: New header.
14298 * config/i386/cpuid.h (bit_RDSEED): New.
14299 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14301 * config/i386/i386-c.c: Define __RDSEED__ if needed.
14302 * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
14304 (ix86_option_override_internal): Handle new option.
14305 (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
14306 (ix86_builtins): Add enum entries for RDSEED* builtins.
14307 (ix86_init_mmx_sse_builtins): Define new builtins.
14308 (ix86_expand_builtin): Expand RDSEED* builtins.
14309 * config/i386/i386.h (TARGET_RDSEED): New.
14310 * config/i386/i386.md (rdseed<mode>_1): New.
14311 * config/i386/i386.opt (mrdseed): New.
14312 * config/i386/x86intrin.h: Include rdseedintrin.h.
14314 2012-07-30 Richard Guenther <rguenther@suse.de>
14316 * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
14317 (rewrite_stmt): Likewise.
14318 (rewrite_enter_block): Likewise.
14319 (pass_build_ssa): Do not update virtual SSA form during TODO.
14320 (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
14321 * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
14323 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
14326 * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
14329 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
14332 * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
14333 Use t_reg_operand predicate. Add split for negated case.
14334 (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
14335 * config/sh/sh.c (expand_ashiftrt): Likewise.
14337 2012-07-30 Oleg Endo <olegendo@gcc.gnu.org>
14340 * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
14341 of trying to emit ashlsi3_n.
14343 2012-07-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
14344 Steven Bosscher <steven@gcc.gnu.org>
14346 * gengtype.c (adjust_field_type): Diagnose duplicate "length"
14347 option applications and option being applied to arrays of atomic types.
14348 (walk_type): Allow "atomic" option on strings too.
14349 * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
14350 for the array field.
14351 * vec.h: Describe the atomic object "A" type of the macros in
14352 the header comment.
14353 (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
14354 * emit-rtl.c (locations_locators_vals): use the atomic object vector.
14355 * doc/gty.texi: Clarify that GTY option "length" is only for
14356 arrays of non-atomic objects. Fix typo in the description of the
14359 2012-07-27 Uros Bizjak <ubizjak@gmail.com>
14361 * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
14362 zero-extended addresses. Return false if the address has less
14363 than two components.
14364 (ix86_split_lea_for_addr): Unconditionally convert target and
14365 all address operands to requested mode.
14366 * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
14367 Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
14369 (zero-extended add splitter): New splitter to conditionally split
14370 non-destructive adds.
14371 (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
14373 2012-07-28 Alan Modra <amodra@gmail.com>
14376 * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
14377 multi-gpr reload to cases where predicate passes. Do the same for
14378 64-bit multi-gpr reload.
14380 2012-07-27 Nathan Froyd <froydnj@gcc.gnu.org>
14382 * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
14383 smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
14384 shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
14385 sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
14386 macro definitions and re-purpose as inline functions.
14387 (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
14388 set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
14389 zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
14390 neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
14391 shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
14392 set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
14393 mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
14394 udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
14395 set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
14397 (convert_cost_ptr): New function, split out from...
14398 (set_convert_cost, convert_cost): ...here.
14399 * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
14400 * gimple-ssa-strength-reduction.c: Likewise.
14402 2012-07-20 Ryan Mansfield <rmansfield@qnx.com>
14404 * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
14405 diagnostic_initialize.
14407 2012-07-27 Oleg Endo <olegendo@gcc.gnu.org>
14410 * config/sh/sh.c (shiftcosts): Remove case where first operand
14411 is a const_int. Move COSTS_N_INSNS usage into caller ...
14412 (sh_rtx_costs) ... here. Return false when shiftcosts cannot be
14413 calculated instead of MAX_COST.
14415 2012-07-27 Richard Guenther <rguenther@suse.de>
14417 * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
14418 check whether SSA form is not up-to-date.
14419 * tree-flow.h (name_mappings_registered_p): Remove.
14420 * tree-into-ssa.c (struct repl_map_d): Remove.
14421 (repl_tbl): Likewise.
14422 (struct ssa_name_info): Add repl_set member.
14423 (update_ssa_obstack): New static global.
14424 (get_ssa_name_ann): Initialize repl_set.
14425 (clear_ssa_name_info): Assert age did not wrap.
14426 (repl_map_hash, repl_map_eq, repl_map_free): Remove.
14427 (names_replaced_by): Adjust.
14428 (add_to_repl_tbl): Likewise.
14429 (dump_tree_ssa_stats): Likewise.
14430 (init_update_ssa): Initialize update_ssa_obstack.
14431 (delete_update_ssa): Free update_ssa_obstack.
14432 (name_mappings_registered_p): Remove.
14433 (update_ssa): Adjust.
14435 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
14437 * config/rs6000/constraints.md: Delete "q" constraint.
14438 * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
14439 Delete the "q" alternative.
14440 * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
14441 * config/rs6000/rs6000.c (rs6000_debug_reg_global)
14442 (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
14443 adjust to MQ_REGNO removal.
14444 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
14446 (REG_ALLOC_ORDER): Adjust comment. Remove MQ from alloc order.
14447 (enum reg_class): Adjust comment. Delete MQ_REGS.
14448 (REG_CLASS_CONTENTS): Adjust.
14449 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
14450 * config/rs6000/rs6000.md: Delete MQ_REGNO.
14451 (movsi_internal1, movsi_internal1_single, movhi_internal,
14452 movqi_internal, movcc_internal1, movsf_hardfloat,
14453 movsf_softfloat): Delete the "q" alternative.
14454 (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
14455 ctr<mode>_internal6): Delete "q" constraint.
14457 2012-07-27 Richard Guenther <rguenther@suse.de>
14459 * tree-into-ssa.c (def_blocks_p): New typedef.
14460 (insert_phi_nodes_compare_def_blocks): New function.
14461 (insert_phi_nodes): Do not walk over referenced vars, instead
14462 walk over recorded def_blocks, record relevant ones and sort
14463 them to avoid repeated hashtable lookups.
14465 2012-07-27 Richard Guenther <rguenther@suse.de>
14467 * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
14468 Remove param documentation.
14469 * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
14470 PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
14471 * tree-flow.h (mark_set_for_renaming): Remove.
14472 * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
14473 (add_new_name_mapping): Remove bookkeeping code.
14474 (dump_update_ssa): Remove stats dumping code.
14475 (init_update_ssa): Remove stats allocation code.
14476 (delete_update_ssa): Remove stats freeing code.
14477 (mark_set_for_renaming): Remove.
14478 (switch_virtuals_to_full_rewrite_p): Likewise.
14479 (switch_virtuals_to_full_rewrite): Likewise.
14480 (update_ssa): Do not call switch_virtuals_to_full_rewrite.
14482 2012-07-27 Marek Polacek <polacek@redhat.com>
14484 * cgraphunit.c: Rename varpool_finalize_variable to
14485 varpool_finalize_decl in a comment.
14487 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
14489 * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
14490 Delete code for -mno-power, -mpower, and -mpower2.
14491 * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
14492 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
14494 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
14495 * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
14496 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
14498 (ASM_CPU_SPEC): Delete support for POWER and POWER2.
14499 * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
14500 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
14502 (TARGET_POWER): Delete.
14503 * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
14504 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
14506 (TARGET_POWER): Delete.
14507 * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
14508 (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
14510 (TARGET_POWER): Delete.
14511 * config/rs6000/darwin.h (TARGET_POWER): Delete.
14512 * config/rs6000/driver-rs6000.c (struct asm_names): Delete
14513 support for -mpower, -mpower2, and -mno-power.
14514 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
14516 (rs6000_cpu_cpp_builtins): Likewise.
14517 * config/rs6000/rs6000-cpus.def: Likewise.
14518 * config/rs6000/rs6000-tables.opt: Regenerate.
14519 * config/rs6000/rs6000.c (POWER_MASKS): Delete.
14520 (rs6000_option_override_internal): Adjust.
14521 (rs6000_conditional_register_usage): Adjust.
14522 (rs6000_emit_move): Adjust.
14523 (rs6000_common_init_builtins): Adjust.
14524 (rs6000_init_libfuncs): Adjust.
14525 (rs6000_output_function_prologue): Adjust.
14526 (rs6000_adjust_cost): Adjust.
14527 (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
14528 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
14530 (TARGET_DEFAULT): Adjust.
14531 (PROCESSOR_POWER): Delete.
14532 (SHIFT_COUNT_TRUNCATED): Adjust.
14533 * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
14534 (extendqisi2_power): Delete.
14535 (extendqisi2_no_power): Adjust.
14536 (extendqihi2, extendqihi2_power, extendqihi2_no_power):
14538 (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
14539 (anonymous doz insn patterns): Delete.
14541 (abssi2_power): Delete.
14542 (abssi2_nopower): Adjust.
14543 (nabs_power, nabs_nopower): Likewise.
14544 (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
14545 Likewise. Delete anonymous post-reload splitter.
14546 (mulsi3_no_mq_internal1): rename to...
14547 (mulsi3_internal1): New define_insn.
14548 (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
14550 (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
14551 udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
14552 udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
14553 (mulh_call, mull_call, divss_call, divus_call, quoss_call,
14554 quous_call): Likewise.
14555 (maskir_internal1, maskir_internal2, maskir_internal3,
14556 maskir_internal4, maskir_internal5, maskir_internal6,
14557 maskir_internal7, maskir_internal8): Delete.
14558 (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
14559 (anonymous sl insn patterns): Delete.
14560 (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
14561 (lshrsi3_64): Adjust.
14562 (anonymous sr insn patterns): Delete.
14563 (anonymous rrib insn patterns): Delete.
14564 (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
14565 (anonymous sra insn patterns): Delete.
14566 (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
14567 (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
14568 fctiwz_<mode>): Adjust.
14569 (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
14570 umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
14571 smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
14572 umulsi3_highpart_no_mq): Adjust.
14573 (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
14574 (ashrdi3_no_power, ashldi3, ashldi3_internal1,
14575 lshrdi3_internal1): Adjust.
14576 (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
14577 (movti_power): Delete.
14578 (movti_string): Adjust.
14579 (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
14580 (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
14581 stmsi4_power, stmsi3_power): Delete.
14582 (anonymous movmemsi insn patterns): Adjust.
14583 (lfq_power2, stfq_power2): Delete.
14584 (eq<mode>, eq<mode>_compare): Adjust.
14585 (eqsi_power): Delete.
14587 (anonymous le, lt, ge, gt insn patterns): Delete.
14588 * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
14589 * config/rs6000/sysv4.h (TARGET_POWER): Delete.
14590 * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
14591 MULTILIB_MATCHES): Adjust.
14592 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
14593 -mpower, -mno-power, -mpower2, -mno-power2 documentation.
14594 Delete -mcpu=power and -mcpu=power2 documentation.
14596 2012-07-27 Segher Boessenkool <segher@kernel.crashing.org>
14598 * config/rs6000/601.md: New file.
14599 * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
14601 * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
14602 * config/rs6000/driver-rs6000.c (detect_processor_aix,
14603 struct asm_names): Likewise.
14604 * config/rs6000/rios1.md: Delete file.
14605 * config/rs6000/rios2.md: Delete file.
14606 * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
14608 * config/rs6000/rs6000-opts.h (enum processor_type): Delete
14609 PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
14610 * config/rs6000/rs6000-tables.opt: Regenerated.
14611 * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
14613 (rs6000_option_override_internal): Delete support for RIOS CPUs.
14614 (rs6000_conditional_register_usage): Adjust comment.
14615 (rs6000_issue_rate):Delete support for RIOS CPUs.
14616 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
14618 (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
14619 (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
14620 * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
14622 (include "rios1.md", include "rios2.md"): Delete.
14623 (include "601.md"): New.
14624 * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
14626 * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
14628 * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
14629 rios2.md . Add 601.md .
14631 2012-07-26 Richard Henderson <rth@redhat.com>
14633 * doc/extend.texi (attribute): Document hot/cold for labels.
14634 * predict.c (tree_estimate_probability_bb): Handle hot/cold
14635 attributes on user labels.
14636 * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
14638 2012-07-26 Andrew Jenner <andrew@codesourcery.com>
14639 Sandra Loosemore <sandra@codesourcery.com>
14641 * cse.c (find_comparison_args): Check for cycles of any length.
14643 2012-07-26 Nick Clifton <nickc@redhat.com>
14645 * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
14646 (mn10300_get_live_callee_saved_regs): If requested return a count
14647 of the number of bytes in the mask.
14648 (mn10300_expand_prologue): Add argument to invocation of
14649 mn10300_get_live_callee_regs.
14650 (mn10300_expand_epilogue): Compute reg_save_bytes by calling
14651 mn10300_get_live_callee_saved_regs.
14652 (mn10300_initial_offset): Likewise.
14653 * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
14655 * config/mn10300/mn10300.md (return_ret): Add argument to
14656 invocation of mn10300_get_live_callee_saved_regs.
14658 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
14660 PR regression/54084
14661 * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
14662 pointer difference check.
14664 2012-07-26 Bill Schmidt <wschmidt@linux.ibm.com>
14666 * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
14667 (mbc_entry_eq): Likewise.
14668 (mult_costs): Likewise.
14669 (cost_tables_exist): Likewise.
14670 (initialize_costs): Likewise.
14671 (finalize_costs): Likewise.
14672 (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
14673 (add_regs_cost): Remove.
14674 (multiply_regs_cost): Likewise.
14675 (add_const_cost): Likewise.
14676 (extend_or_trunc_reg_cost): Likewise.
14677 (negate_reg_cost): Likewise.
14678 (struct mbc_entry): Likewise.
14679 (multiply_by_const_cost): Likewise.
14680 (get_address_cost): Change add_regs_cost calls to add_cost lookups;
14681 change multiply_by_const_cost to mult_by_coeff_cost.
14682 (force_expr_to_var_cost): Likewise.
14683 (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
14684 (get_computation_cost_at): Change add_regs_cost calls to add_cost
14685 lookups; change multiply_by_const_cost to mult_by_coeff_cost.
14686 (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
14687 (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
14688 * tree-ssa-address.c (expmed.h): New #include.
14689 (most_expensive_mult_to_index): Change multiply_by_const_cost to
14690 mult_by_coeff_cost.
14691 * gimple-ssa-strength-reduction.c (expmed.h): New #include.
14692 (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
14693 neg_cost, and convert_cost instead of IVOPTS interfaces.
14694 (execute_strength_reduction): Remove calls to initialize_costs and
14696 * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
14697 (init_expmed_one_mode): Initialize convert rtx_def; initialize
14698 x_convert_cost for related modes.
14699 (mult_by_coeff_cost): New function.
14700 * expmed.h (NUM_MODE_INT): New #define.
14701 (struct target_expmed): Add x_convert_cost matrix.
14702 (set_convert_cost): New inline function.
14703 (convert_cost): Likewise.
14704 (mult_by_coeff_cost): New extern decl.
14705 * tree-flow.h (initialize_costs): Remove decl.
14706 (finalize_costs): Likewise.
14707 (multiply_by_const_cost): Likewise.
14708 (add_regs_cost): Likewise.
14709 (multiply_regs_cost): Likewise.
14710 (add_const_cost): Likewise.
14711 (extend_or_trunc_reg_cost): Likewise.
14712 (negate_reg_cost): Likewise.
14713 * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
14714 (tree-ssa-address.o): Update dependencies.
14716 2012-07-26 Steven Bosscher <steven@gcc.gnu.org>
14718 * bitmap.h: Add explanation of sparse set as linked-list bitmap.
14719 * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
14720 (TEST_BIT): Make a static inline function for stronger type checking.
14721 (SET_BIT): Don't handle sbitmaps with popcount.
14722 (RESET_BIT): Likewise.
14723 (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
14724 (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
14725 * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
14726 RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
14727 (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
14728 ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
14729 * sparseset.h: Add explanation of sparse set representation.
14731 2012-07-26 Richard Guenther <rguenther@suse.de>
14733 PR tree-optimization/54098
14734 * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
14735 original range was UNDEFINED.
14737 2012-07-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14739 * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
14740 vld1Q_dupu64 tests.
14742 2012-07-26 Oleg Endo <olegendo@gcc.gnu.org>
14745 * config/sh/sh.opt (mzdcbranch): New option.
14746 * doc/invoke.texi: Document it.
14747 * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
14748 instead of TARGET_HARD_SH4.
14749 * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
14750 for TARGET_HARD_SH4.
14752 2012-07-25 Oleg Endo <olegendo@gcc.gnu.org>
14755 * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
14757 (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
14758 * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
14759 from expander. Do not emit shift insn for not-SHMEDIA case.
14760 (ashlsi3_std): Replace with ...
14761 (ashlsi3_k, ashlsi3_d): ... these new insns.
14762 * config/sh/sh.c (gen_ashift): Make static. Add sanity checks.
14763 Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
14764 (gen_ashift_hi): Make static.
14765 * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
14768 2012-07-25 Bharathi Seshadri <bseshadr@cisco.com>
14769 Jim Wilson <jimwilso@cisco.com>
14771 * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
14772 TARGET_BIG_ENDIAN_DEFAULT.
14774 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
14776 * gimple-low.c (lower_try_catch): New function.
14777 (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
14778 <GIMPLE_CATCH>: Delete.
14779 <GIMPLE_EH_FILTER>: Likewise.
14781 2012-07-25 Eric Botcazou <ebotcazou@adacore.com>
14783 * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
14784 of BIT_FIELD_REF for ignored results.
14785 * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
14786 CONSTRUCTOR has vector type before using vector accessors on it.
14787 * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
14788 #2 of BIT_FIELD_REF.
14789 (gimplify_expr) <BIT_FIELD_REF>: Likewise.
14790 * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
14791 not process operand #1 and #2.
14792 (convert_local_reference_op): Likewise.
14793 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
14795 <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
14796 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
14798 (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
14799 (build6_stat): Delete.
14800 * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
14802 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
14804 PR tree-optimization/30318
14805 * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
14807 [MINUS_EXPR]: Merge with PLUS_EXPR.
14809 2012-07-25 Sandra Loosemore <sandra@codesourcery.com>
14810 Paul Brook <paul@codesourcery.com>
14813 * target.def (warn_func_return): New hook.
14814 * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
14815 * doc/tm.texi: Regenerate.
14816 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14818 * ipa-pure-const.c (warn_function_noreturn): Check
14819 targetm.warn_func_return.
14820 * tree-cfg.c (execute_warn_function_return): Likewise.
14821 * config/spu/spu.c (spu_warn_func_return): New.
14822 (TARGET_WARN_FUNC_RETURN): Define.
14823 * config/rx/rx.c (rx_warn_func_return): New.
14824 (TARGET_WARN_FUNC_RETURN): Define.
14825 * config/avr/avr.c (avr_warn_func_return): New.
14826 (TARGET_WARN_FUNC_RETURN): Define.
14827 * config/arm/arm.c (arm_warn_func_return): New.
14828 (TARGET_WARN_FUNC_RETURN): Define.
14829 * config/mcore/mcore.c (mcore_warn_func_return): New.
14830 (TARGET_WARN_FUNC_RETURN): Define.
14831 (saved_warn_return_type, saved_warn_return_type_count): Remove.
14832 (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
14834 2012-07-25 Siddhesh Poyarekar <siddhesh@redhat.com>
14836 * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
14837 function to implement assembler dialects.
14838 (output_asm_insn): Use do_assembler_dialects.
14839 (asm_fprintf): Likewise.
14841 2012-07-25 Richard Henderson <rth@redhat.com>
14844 * libfuncs.h: Don't include optabs.h.
14845 (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
14846 * optabs.c (hash_libfunc): Don't cast members to int.
14847 * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
14849 2012-07-25 Dodji Seketeli <dodji@redhat.com>
14851 * basic-block.c: Fix typo in comment.
14853 2012-07-25 Kirill Yukhin <kirill.yukhin@intel.com>
14854 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14856 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
14857 (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
14858 (ix86_handle_option): Handle mprfchw option.
14859 * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
14860 (x86_64-*-*): Likewise.
14861 * config/i386/prfchwintrin.h: New header.
14862 * config/i386/cpuid.h (bit_PRFCHW): New.
14863 (bit_BMI): Formatting fix.
14864 (bit_HLE): Likewise.
14865 (bit_RTM): Likewise.
14866 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14868 * config/i386/i386-c.c: Define __PRFCHW__ if needed.
14869 * config/i386/i386.c (ix86_target_string): Define
14870 -mprfchw option. Formatting fixes.
14871 (PTA_HLE): Formatting fix.
14873 (ix86_option_override_internal): Handle new option.
14874 (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
14875 * config/i386/i386.h (TARGET_PRFCHW): New.
14876 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
14877 * config/i386/i386.opt (mprfchw): New.
14878 * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
14879 * config/i386/x86intrin.h: Include prfchwintrin.h.
14881 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
14883 * config/i386/i386.md (stack_protect_set): Disable the pattern
14884 for Android since Android libc (bionic) does not provide random
14885 value for stack protection guard at gs:0x14. Guard value
14886 will be provided from external symbol (default implementation).
14887 (stack_protect_set_<mode>): Likewise.
14888 (stack_protect_test): Likewise.
14889 (stack_protect_test_<mode>): Likewise.
14890 * defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
14891 not have Bionic by default
14892 * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
14893 Macro OPTION_BIONIC is defined in this file and provides Bionic
14894 accessibility status
14896 2012-07-25 Steven Bosscher <steven@gcc.gnu.org>
14898 * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
14900 2012-07-25 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14903 * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
14904 (case ${target}): Add btver2.
14905 * config/i386/driver-i386.c (host_detect_local_cpu): Let
14906 -march=native recognize btver2 processors.
14907 * config/i386/i386-c.c (ix86_target_macros_internal): Add
14908 btver2 def_and_undef
14909 * config/i386/i386.c (struct processor_costs btver2_cost): New
14911 (m_BTVER2): New definition.
14912 (m_AMD_MULTIPLE): Includes m_BTVER2.
14913 (initial_ix86_tune_features): Add btver2 tune.
14914 (processor_target_table): Add btver2 entry.
14915 (static const char *const cpu_names): Add btver2 entry.
14916 (software_prefetching_beneficial_p): Add btver2.
14917 (ix86_option_override_internal): Add btver2 instruction sets.
14918 (ix86_issue_rate): Add btver2.
14919 (ix86_adjust_cost): Add btver2.
14920 * config/i386/i386.h (TARGET_BTVER2): New definition.
14921 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
14922 (enum processor_type): Add PROCESSOR_BTVER2.
14923 * config/i386/i386.md (define_attr "cpu"): Add btver2.
14925 2012-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
14927 * doc/tm.texi: Regenerate.
14928 * targhooks.c (default_init_cost): Add prologue and epilogue costs.
14929 (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
14930 (default_finish_cost): Add prologue and epilogue costs.
14931 * targhooks.h (default_add_stmt_cost): Change parameter list.
14932 (default_finish_cost): Likewise.
14933 * target.def (init_cost): Change documentation string.
14934 (add_stmt_cost): Change documentation string and parameter list.
14935 (finish_cost): Likewise.
14936 * target.h (vect_cost_model_location): New enum.
14937 * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
14938 (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
14940 (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
14941 (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
14942 (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
14943 (struct _vect_peel_extended_info): Rename stmt_cost_vec to
14945 (struct _stmt_vec_info): Remove cost substruct.
14946 (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
14947 (stmt_vinfo_set_outside_of_loop_cost): Remove.
14948 (builtin_vectorization_cost): New function.
14949 (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
14950 (add_stmt_cost): Change parameter list.
14951 (finish_cost): Likewise.
14952 (vect_model_simple_cost): Likewise.
14953 (vect_model_store_cost): Likewise.
14954 (vect_model_load_cost): Likewise.
14955 (record_stmt_cost): Likewise.
14956 (vect_get_load_cost): Likewise.
14957 (vect_get_known_peeling_cost): Likewise.
14958 * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
14959 list; call record_stmt_cost for prologue and epilogue costs.
14960 (vect_estimate_min_profitable_iters): Call add_stmt_cost for
14961 prologue and epilogue costs; remove computation of vec_outside_cost;
14962 return vec_prologue_cost and vec_epilogue_cost from finish_cost.
14963 (vect_model_reduction_cost): Revise call to add_stmt_cost for body
14964 costs; call add_stmt_cost for prologue and epilogue costs.
14965 (vect_model_induction_cost): Revise call to add_stmt_cost for body
14966 costs; call add_stmt_cost for prologue costs.
14967 * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
14968 list for function and arguments for calls to vect_get_load_cost and
14969 vect_get_store_cost.
14970 (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
14971 vect_get_data_access_cost and vect_get_known_peeling_cost; use
14972 temporary vectors prologue_cost_vec and epilogue_cost_vec for the
14973 latter call and discard their results; rename stmt_cost_vec to
14974 body_cost_vec; correct possible storage leak for body_cost_vec.
14975 (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
14977 (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
14978 body_cost_vec; add extra dummy parameter on calls to
14979 vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
14980 argument list on call to add_stmt_cost.
14981 * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
14982 rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
14983 builtin_vectorization_cost; add "where" parameter on call to
14985 (vect_model_simple_cost): Change parameter list; call record_stmt_cost
14986 for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
14987 rename stmt_cost_vec to body_cost_vec.
14988 (vect_model_promotion_demotion_cost): Add vect_body argument to call
14989 to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
14990 to stmt_vinfo_set_outside_of_loop_cost.
14991 (vect_model_store_cost): Change parameter list; call record_stmt_cost
14992 for prologue costs; add vect_body argument to call to record_stmt_cost;
14993 rename stmt_cost_vec to body_cost_vec; remove call to
14994 stmt_vinfo_set_outside_of_loop_cost.
14995 (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
14996 vect_body argument to calls to record_stmt_cost.
14997 (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
14998 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
14999 remove call to stmt_vinfo_set_outside_of_loop_cost.
15000 (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
15001 body_cost_vec; add vect_body argument to calls to record_stmt_cost;
15002 call record_stmt_cost for prologue costs.
15003 (vectorizable_store): Change argument list for call to
15004 vect_model_store_cost.
15005 (vectorizable_load): Change argument list for call to
15006 vect_model_load_cost.
15007 (new_stmt_vec_info): Remove assignment to
15008 STMT_VINFO_OUTSIDE_OF_LOOP_COST.
15009 * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
15010 (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
15011 (spu_finish_cost): Add prologue and epilogue costs.
15012 * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
15013 (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
15014 (i386_finish_cost): Add prologue and epilogue costs.
15015 * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
15017 (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
15018 (rs6000_finish_cost): Add prologue and epilogue costs.
15019 * tree-vect-slp.c (vect_free_slp_instance): Rename
15020 SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
15021 (vect_create_new_slp_node): Remove assignment to
15022 SLP_TREE_OUTSIDE_OF_LOOP_COST.
15023 (vect_get_and_check_slp_defs): Change parameter list; change argument
15024 lists to calls to vect_model_store_cost and vect_model_simple_cost.
15025 (vect_build_slp_tree): Change parameter list; change argument lists
15026 to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
15027 recursive self-calls; remove setting of outside_cost from
15028 SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
15030 (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
15031 rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
15032 remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
15034 (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
15035 body_cost_vec; handle null ci->stmt; add vect_body argument to call
15036 to add_stmt_cost; simplify calls to targetm.vectorize.
15037 builtin_vectorization_cost; return vec_prologue_cost and
15038 vec_epilogue_cost from finish_cost.
15039 (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
15040 body_cost_vec; add vect_body argument to call to add_stmt_cost.
15042 2012-07-24 Richard Henderson <rth@redhat.com>
15044 * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
15045 * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
15046 * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
15047 * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
15048 * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
15050 * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
15051 * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
15052 (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
15053 * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
15054 * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
15055 * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
15056 * doc/tm.texi: Rebuild.
15058 2012-07-24 Richard Henderson <rth@redhat.com>
15060 * optabs.def: New file.
15061 * Makefile.in (OPTABS_H): Add insn-opinit.h.
15062 (MOSTLYCLEANFILES): Likewise.
15063 (insn-opinit.o): Remove reload.h
15064 (simple_rtl_generated_c): Remove insn-opinit.c.
15065 (s-opinit): New rule.
15066 (build/genopinit.o): Add optabs.def.
15067 * genopinit.c (rtx_upname): New.
15068 (optabs): Extract to optabs.def
15069 (enum optab_tag, struct optab_def_d, optabs): New.
15070 (struct pattern_d, patterns): New.
15071 (match_pattern): Split out from ...
15072 (gen_insn): ... here. Push matches on patterns vec.
15073 (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
15074 (header_file_name, source_file_name, handle_arg): New.
15075 (open_outfile): New.
15076 (main): Sort and emit new tables. Generate lookup_handler,
15077 raw_optab_handler, swap_optab_enable.
15078 * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
15079 * optabs.c (code_to_optab_): Remove.
15080 (hash_libfunc): Update for optab name change.
15081 (eq_libfunc): Likewise.
15082 (convert_optab_libfunc): Update computation of optab member;
15083 use the new convlib_def table.
15084 (optab_libfunc): Similarly.
15085 (set_optab_libfunc, set_conv_libfunc): Likewise.
15086 (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
15087 (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
15088 (init_optabs): Don't call them; export the data to optabs.def.
15089 (gen_int_libfunc, gen_fp_libfunc): Export non-static.
15090 (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
15091 (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
15092 (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
15093 (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
15094 (gen_int_signed_fixed_libfunc): Likewise.
15095 (gen_int_unsigned_fixed_libfunc): Likewise.
15096 (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
15097 (gen_ufloat_conv_libfunc): Likewise.
15098 (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
15099 (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
15100 (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
15101 (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
15102 (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
15103 (debug_optab_libfuncs): Update for optab representation change.
15104 * optabs.h: Include insn-opinit.h.
15105 (optab, convert_optab, direct_optab): New typedefs.
15106 (struct optab_handlers, struct widening_optab_handlers): Remove.
15107 (struct optab_libcall_d): Rename from optab_d; remove code_,
15108 handlers, widening members.
15109 (struct convert_optab_libcall_d): Rename from convert_optab_d;
15110 remove code_ and handlers members.
15111 (enum optab_index, enum convert_optab_index): Remove.
15112 (enum direct_optab_index): Remove.
15113 (code_to_optab_): Fix array range.
15114 (optab_to_code): Covert to inline function.
15115 (optab_to_code_, convlib_def, normlib_def): Declare.
15116 (raw_optab_handler, swap_optab_enable): Declare.
15117 (unknown_optab): Remove; export to optabs.def
15118 (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
15119 usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
15120 ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
15121 addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
15122 smul_widen_optab, umul_widen_optab, usmul_widen_optab,
15123 smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
15124 usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
15125 ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
15126 sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
15127 umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
15128 ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
15129 rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
15130 vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
15131 atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
15132 movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
15133 negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
15134 ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
15135 parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
15136 cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
15137 ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
15138 log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
15139 ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
15140 tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
15141 cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
15142 lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
15143 cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
15144 reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
15145 reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
15146 usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
15147 vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
15148 vec_realign_load_optab, vec_widen_umult_hi_optab,
15149 vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
15150 vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
15151 vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
15152 vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
15153 vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
15154 vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
15155 vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
15156 vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
15157 vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
15158 vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
15159 vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
15160 sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
15161 sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
15162 sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
15163 sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
15164 sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
15165 ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
15166 ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
15167 fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
15168 vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
15169 movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
15170 setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
15171 sync_lock_release_optab, sync_add_optab, sync_sub_optab,
15172 sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
15173 atomic_exchange_optab, atomic_compare_and_swap_optab,
15174 atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
15175 atomic_sub_fetch_optab, atomic_and_fetch_optab,
15176 atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
15177 atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
15178 atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
15179 atomic_add_optab, atomic_sub_optab, atomic_and_optab,
15180 atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
15181 atomic_always_lock_free_optab, atomic_is_lock_free_optab,
15182 atomic_thread_fence_optab, atomic_signal_fence_optab,
15183 vec_perm_optab, vec_perm_const_optab): Likewise.
15184 (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
15185 and x_direct_optab_table members; add pat_enable.
15186 (optab_table, convert_optab_table, direct_optab_table): Remove.
15187 (optab_handler): Use raw_optab_handler.
15188 (widening_optab_handler, convert_optab_handler): Likewise.
15189 (set_optab_handler, set_widening_optab_handler): Remove.
15190 (set_convert_optab_handler, set_direct_optab_handler): Remove.
15191 (direct_optab_handler): Defer to optab_handler.
15192 * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
15194 2012-07-24 Jason Merrill <jason@redhat.com>
15196 * bitmap.c (bitmap_descriptor): Adjust order of parameters to
15197 match MEM_STAT_DECL.
15198 * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
15200 2012-07-24 Richard Henderson <rth@redhat.com>
15202 * optabs.h (struct optab_d): Rename code member to code_.
15203 (struct convert_optab_h): Likewise.
15204 (code_to_optab_): Rename from code_to_optab.
15205 (code_to_optab, optab_to_code): New.
15206 * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
15207 * ifcvt.c (noce_emit_move_insn): Likewise.
15208 * optabs.c (simplify_expand_binop): Use optab_to_code.
15209 (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
15210 (avoid_expensive_constant, expand_binop_directly): Likewise.
15211 (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
15212 (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
15213 (have_insn_for, debug_optab_libfuncs): Likewise.
15214 (init_optab, init_optabv, init_convert_optab): Update for optab
15215 member name change.
15217 * libfuncs.h: Include optabs.h.
15218 * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
15219 * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
15220 (lto-streamer-in.o, dwarf2out.o): Update deps.
15222 * optabs.h (unknown_optab): New.
15223 * builtins.c (interclass_mathfn_icode): Use it.
15224 * dojump.c (do_compare_rtx_and_jump): Likewise.
15225 * optabs.c (optab_for_tree_code, expand_binop): Likewise.
15226 * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
15227 (expand_vector_operations_1): Likewise.
15228 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
15229 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
15231 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
15233 * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
15235 2012-07-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15238 * config/arm/arm.c (arm_print_operand_address): Remove superfluous
15240 * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
15242 ("neon_vld3_lane<mode>":VMQ): Likewise.
15243 ("neon_vld3_dup<mode>":VDX): Likewise.
15244 ("neon_vst3_lane<mode>":VD): Likewise.
15245 ("neon_vst3_lane<mode>":VMQ): Likewise.
15247 2012-07-24 Roland McGrath <mcgrathr@google.com>
15249 * arm.c (arm_get_frame_offsets): Don't use fixed regs for
15250 stack alignment padding.
15252 2012-07-24 Uros Bizjak <ubizjak@gmail.com>
15255 * config/i386/i386.c (ix86_legitimate_address_p): Move check for
15256 negative constant address for TARGET_X32 ...
15257 (ix86_decompose_address): ... here. Reject constant addresses
15258 that don't satisfy x86_64_immediate_operand predicate.
15260 2012-07-24 Julian Brown <julian@codesourcery.com>
15262 * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
15264 2012-07-24 Steven Bosscher <steven@gcc.gnu.org>
15266 * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
15267 Move test to check that there is a popcount function for the the number
15268 of bits in SBITMAP_ELT_BITS to sbitmap.c.
15269 * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
15270 MEM_STAT_INFO): Define in terms of their ALONE counterparts.
15272 * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
15273 * configure: Regenerate.
15274 * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
15275 (GCC_MEM_STAT_ARGUMENTS): New define.
15276 (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
15277 (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
15278 (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
15279 FINAL_PASS_MEM_STAT): Define.
15280 * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
15281 * ggc.h (ggc_record_overhead, ggc_free_overhead,
15282 ggc_prune_overhead_list): Remove internal prototypes, they are defined
15283 already in ggc-internal.h.
15284 * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
15286 (add_statistics): Likewise.
15287 (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
15288 * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
15289 wrappers around "survived" and "stats" members.
15290 (alloc_large_page): Always initialize survived.
15291 (ggc_internal_alloc_zone_stat): Likewise.
15292 Remove #ifdef GATHER_STATISTICS wrappers. Record overhead if
15293 GATHER_STATISTICS is non-0.
15294 (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
15295 (sweep_pages): Always increase survived.
15296 (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
15297 (calculate_average_page_survival): Always define.
15298 (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
15299 (ggc_print_statistics): Likewise.
15300 (ggc_pch_read): Likewise.
15301 * ggc-page.c (struct globals): Always define "stats" member.
15302 (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
15303 (ggc_free): Likewise.
15304 (ggc_collec): Likewise.
15305 (ggc_print_statistics): Likewise.
15306 * bitmap.h (struct bitmap_head_def): Always define "desc" member.
15307 (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
15308 * gimple.h (enum gimple_alloc_kind): Always define.
15309 (gimple_alloc_kind): Likewise.
15310 * tree-flow.h (phinodes_print_statistics): Always define.
15311 (ssanames_print_statistics): Likewise.
15312 * vec.h (vec_heap_free): Always define.
15313 (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
15314 * alloc-pool.c (alloc_pool_descriptor): Always define.
15315 (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
15316 (empty_alloc_pool): Likewise.
15317 (pool_alloc): Likewise.
15318 (pool_free): Likewise.
15319 (dump_alloc_pool_statistics): Likewise.
15320 (print_statistics): Always define.
15321 * bitmap.c (struct bitmap_descriptor): Always define.
15322 (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
15323 (register_overhead): Always define.
15324 (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
15325 (bitmap_element_allocate): Likewise.
15326 (bitmap_elt_clear_from): Likewise.
15327 (bitmap_obstack_alloc_stat): Likewise.
15328 (bitmap_gc_alloc_stat): Likewise.
15329 (bitmap_obstack_free): Likewise.
15330 (bitmap_find_bit): Likewise.
15331 (bitmap_ior_and_into): Likewise.
15332 (bitmap_print): Likewise.
15333 (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
15334 * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
15335 (gimple_alloc_kind_names): Likewise.
15336 (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
15337 (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
15338 * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
15339 rtvec_alloc_sizes): Always define.
15340 (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
15341 (rtx_alloc_stat): Likewise.
15342 (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
15343 * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
15344 tree_node_sizes, tree_node_kind_names): Always define.
15345 (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
15347 (type_hash_canon): Likewise.
15348 (dump_tree_statistics): Likewise.
15349 * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
15351 (ssanames_print_statistics): Likewise.
15352 (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
15353 * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
15354 (phinodes_print_statistics): Likewise.
15355 (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
15356 * vec.c (struct vec_descriptor): Always define.
15357 (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
15358 vec_descriptor, rester_overhead, free_overhead): Likewise.
15359 (cmp_statistic): Likewise.
15360 (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
15361 (vec_heap_o_reserve_1): Likewise.
15362 (dump_vec_loc_statistics): Likewise.
15364 2012-07-24 Richard Guenther <rguenther@suse.de>
15366 PR tree-optimization/53616
15367 * tree-loop-distribution.c (ldist_gen): Do not change
15368 partition ordering when merging partitions.
15370 2012-07-24 Alan Modra <amodra@gmail.com>
15374 * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
15375 * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
15376 Adjust all rs6000_legitimate_offset_address_p calls.
15377 * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
15378 (rs6000_secondary_reload_gpr): Declare.
15379 (rs6000_legitimate_offset_address_p): Update prototype.
15380 (rs6000_offsettable_memref_p): Delete.
15381 (rs6000_secondary_reload_ppc64): Delete.
15382 * config/rs6000/rs6000.c (address_offset): New function.
15383 (mem_operand_gpr): Likewise.
15384 (rs6000_legitimate_offset_address_p): Add worst_case param. When
15385 not worst_case assume class of regs with least restrictive offsets.
15387 (legitimate_lo_sum_address_p): Simplify register mode tests.
15388 (rs6000_legitimize_address): Likewise. Assume best case offset
15389 addressing. Combine ELF and MACHO lo_sum code.
15390 (rs6000_mode_dependent_address): Correct offset addressing limits.
15391 (rs6000_offsettable_memref_p): Make static, add reg_mode param.
15392 Use reg_mode to help rs6000_legitimate_offset_address_p.
15393 (rs6000_secondary_reload): Use address_offset. Handle 32-bit multi
15394 gpr load/store when offset too large.
15395 (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
15396 (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
15397 * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
15398 for gpr load/store. Order alternatives as r->Y,Y->r,r->r and
15399 d->m,m->d,d->d. Correct size of gpr load/store.
15400 (movdf_softfloat32): Use 'Y' constraint for gpr load/store. Order
15402 (movti_ppc64): Likewise.
15403 (movdi_internal32): Likewise. Also disparage fprs.
15404 (movdi_mfpgpr, movdi_internal64): Likewise.
15405 (movtf_internal): Use 'm' for fpr load/store. Order alternatives.
15406 (movtf_softfloat): Order alternatives.
15407 (extenddftf2_internal): Use 'm' and 'Y' for store.
15408 (movti_power, movti_string): Use 'Y' for gpr load/store. Order.
15409 (stack_protect_setdi, stack_protect_testdi): Likewise.
15410 (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
15411 (movdf_softfloat64): Likewise.
15412 (reload_<mode>_store): Adjust reload_di_store to provide
15413 reload_si_store as well.
15414 (reload_<mode>_load): Likewise.
15416 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
15419 * config/sh/predicates.md (general_movsrc_operand,
15420 general_movdst_operand): Reject T_REG.
15421 * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
15422 movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
15423 Remove T_REG alternatives.
15424 (*negtstsi): New insn.
15426 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
15429 * config/sh/sh.md (mulsf3_ie): Delete.
15430 (mulsf3_i4): Rename to mulsf3_i.
15431 (mulsf3): Emit mulsf3_i insn.
15433 2012-07-23 Oleg Endo <olegendo@gcc.gnu.org>
15435 * config/sh/sh.md (addc1, subc1): Delete.
15436 (adddi3_compact): Use addc instead of addc1.
15437 (subdi3_compact): Use subc instead of subc1.
15439 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
15441 * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
15442 * config/i386/i386.c (ix86_lea_outperforms): Make static. Make
15443 split_cost argument signed.
15444 (ix86_avoid_lea_for_add): Cleanup.
15445 (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
15446 (ix86_avoid_lea_for_addr): Ditto. Make split_cost signed.
15447 Use gen_lowpart instead of gen_rtx_SUBREG. Cleanup.
15449 2012-07-23 Ulrich Weigand <ulrich.weigand@linaro.org>
15451 * config/arm/arm.c (arm_reorg): Ensure all insns are split.
15453 2012-07-23 Uros Bizjak <ubizjak@gmail.com>
15456 * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
15457 * config/i386/i386.c (ix86_print_operand_address): Ditto.
15458 (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
15459 addresses. Prevent zero extensions of CONST_INT operands.
15461 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
15463 * sbitmap.h (struct int_list): Remove.
15464 (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
15465 Remove prototypes of non-existing function.
15466 (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
15467 sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
15469 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
15470 sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
15471 * basic-block.h: ... here.
15472 * sbitmap.c: Do not include basic-block.h.
15473 (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
15474 sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
15475 * cfganal.c: ... here.
15476 * bt-load.c (compute_out, link_btr_uses): Update for above changes.
15477 * gcse.c (compute_code_hoist_vbeinout): Likewise.
15478 * lcm.c (compute_antinout_edge, compute_available): Likewise.
15479 * Makefile.in: Fix sbitmap.o dependencies.
15481 2012-07-23 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15482 Nick Clifton <nickc@redhat.com>
15484 * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
15485 * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
15486 (unused) parameter to void *.
15488 2012-07-23 Richard Guenther <rguenther@suse.de>
15490 * tree-ssa-alias.c (dump_alias_info): Walk over local decls
15491 instead of referenced vars.
15493 2012-07-23 Steven Bosscher <steven@gcc.gnu.org>
15495 * coverage.c: Refer to "notes file" instead of "graph file"
15496 in all comments. Explain history of bbg prefix.
15497 * gcov-io.h: Likewise.
15498 * gcov.c: Likewise.
15499 (find_source): Likewise in fnotice.
15500 (read_graph_file): Likewise.
15501 (read_count_file): Likewise.
15502 * doc/gcov.texi: Document -fprofile-dir flag. Add "notes file"
15503 and "data file" explicitly in the explanation of the files.
15505 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
15507 PR tree-optimization/53881
15508 * tree-cfg.c (group_case_labels_stmt): Look up the basic block
15509 for each label and compare them instead of labels.
15511 2012-07-22 Steven Bosscher <steven@gcc.gnu.org>
15513 * opts.c (common_handle_option): Do not set
15514 flag_value_profile_transformations for -fprofile-generate.
15515 * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
15516 (BB_TO_GCOV_INDEX): Remove.
15517 (output_location): Don't use it.
15518 (branch_prob): Likewise. Don't fiddle with the index of
15519 ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR. Use clear_aux_for_blocks.
15520 (find_spanning_tree):
15521 * gcov.c (struct function_info): Document that blocks 0 and 1
15522 are the entry resp. exit blocks in gcov, too, like in GCC itself.
15523 (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
15524 blocks identification.
15525 (output_lines): Likewise.
15526 * value-prof.c (gimple_value_profile_transformations): Do not
15527 test flag_value_profile_transformations again.
15528 (gimple_ic_transform): Take a gimple_stmt_iterator like all other
15529 transformation functions.
15530 (gimple_values_to_profile):
15531 Don't test flag_value_profile_transformations
15532 * tree-profile.c (tree_profiling): Assert that the cgraph is in
15533 the CGRAPH_STATE_IPA_SSA state.
15534 Do not set, or look at, after_tree_profile.
15535 * function.h (struct function): Remove after_tree_profile bit.
15536 * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
15537 * tree-inline.c (initialize_cfun): Don't copy it.
15538 * lto-streamer-out.c (output_struct_function_base): Don't stream it.
15539 * lto-streamer-in.c (input_struct_function_base): Likewise.
15541 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
15543 * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
15544 (SH_DYNAMIC_SHIFT_COST): Use it.
15545 * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
15546 (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
15547 Add sanity check for input value. Add function description.
15548 * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
15549 lshrsi3_d): Use TARGET_DYNSHIFT.
15551 2012-07-22 Oleg Endo <olegendo@gcc.gnu.org>
15553 * config/sh/sh.md (negc): Delete expander.
15554 (*negc): Rename insn to negc.
15556 2012-07-22 Uros Bizjak <ubizjak@gmail.com>
15559 * config/i386/i386.md (*lea): New insn pattern.
15561 (*lea<mode>_2): Ditto.
15562 (*lea_{3,4,5,6}_zext): Ditto.
15563 * config/i386/predicates.md (lea_address_operand): Do not reject
15564 zero-extended address operands.
15565 * config/i386/constraints.md (j): Remove address constraint.
15566 * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
15568 (ix86_print_operand_address): Handle SImode subreg of an address.
15569 (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
15571 2012-07-22 Hans-Peter Nilsson <hp@axis.com>
15573 Emit executable-stack note correctly for CRIS targets.
15574 * config/cris/cris.c (cris_file_end): New function.
15575 (TARGET_ASM_FILE_END): Define.
15577 2012-07-22 Chung-Lin Tang <cltang@codesourcery.com>
15578 Maxim Kuvyrkov <maxim@codesourcery.com>
15579 NetLogic Microsystems Inc.
15581 * config/mips/mips.c (mips_issue_rate): Handle XLP.
15582 * config/mips/mips.md: Include xlp.md.
15583 * config/mips/xlp.md: New file.
15585 2012-07-21 Steven Bosscher <steven@gcc.gnu.org>
15587 PR gcov-profile/32543
15588 * profile.c (branch_prob): Update total_num_edges_instrumented and
15589 report the number of edges to instrument.
15591 2012-07-21 Oleg Endo <olegendo@gcc.gnu.org>
15593 * config/sh/sh.md: Correct comment regarding clrt and sett insns.
15595 2012-07-21 Andrew Pinski <apinski@cavium.com>
15597 * config/mips/mips.md (*popcountdi2_trunc): New pattern
15598 to handle popcount of a truncation.
15600 2012-07-21 Andrew Pinski <apinski@cavium.com>
15602 * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
15603 Add a bool argument.
15604 * config/mips/mips.c (mips_block_move_straight): Update call to
15605 mips_expand_ext_as_unaligned_load.
15606 (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
15607 Accept DImode dest when the width is that of SImode.
15608 * config/mips/mips.md (extv): Update call to
15609 mips_expand_ext_as_unaligned_load.
15612 2012-07-21 Andrew Pinski <apinski@cavium.com>
15614 * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
15617 2012-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
15619 * config/mips/mips.md (define_attr sync_*): Move before "type".
15620 (define_attr "type"): New values "atomic" and "syncloop".
15621 * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
15622 Set "type" attribute.
15623 * config/mips/generic.md (generic_atomic, generic_syncloop):
15625 * config/mips/10000.md, config/mips/20kc.md,
15626 * config/mips/24k.md, config/mips/4130.md,
15627 * config/mips/4k.md, config/mips/5400.md,
15628 * config/mips/5500.md, config/mips/5k.md,
15629 * config/mips/7000.md, config/mips/74k.md,
15630 * config/mips/9000.md, config/mips/loongson2ef.md,
15631 * config/mips/loongson3a.md, config/mips/octeon.md,
15632 * config/mips/sb1.md, config/mips/sr71k.md,
15633 * config/mips/xlr.md: Handle "atomic" and "syncloop" types.
15635 2012-07-20 Oleg Endo <olegendo@gcc.gnu.org>
15637 * config/sh/sh.md: Group and sort shift related patterns.
15638 (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
15640 2012-07-20 Hans-Peter Nilsson <hp@axis.com>
15642 * config/cris/cris.c (cris_asm_output_ident): Remove unused
15643 local variables section_asm_op, size, buf.
15645 2012-07-20 Pat Haugen <pthaugen@us.ibm.com>
15646 Steven Bosscher <steven@gcc.gnu.org>
15648 * config/rs6000/power4.md (power4-store-update): Fix reservation.
15649 (power4-three): Likewise.
15651 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
15652 Greta Yorsh <Greta.Yorsh@arm.com>
15654 * config/arm/arm.c (arm_cortex_a15_tune): New tune.
15655 * config/arm/arm-cores.def (cortex-a15): Use it.
15657 2012-07-20 Sameera Deshpande <sameera.deshpande@arm.com>
15658 Greta Yorsh <Greta.Yorsh@arm.com>
15660 * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
15661 * config/arm/arm.c (arm_slowmul_tune): Initialize it.
15662 (arm_fastmul_tune, arm_strongarm_tune): Likewise.
15663 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
15664 (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
15665 (arm_fa726te_tune): Likewise.
15667 2012-07-20 Richard Guenther <rguenther@suse.de>
15669 * tree-dfa.c (collect_dfa_stats): Simplify.
15670 * tree-ssa-structalias.c (compute_may_aliases): Do not dump
15672 * cfgexpand.c (estimated_stack_frame_size): Walk over local
15673 decls instead of referenced vars.
15674 * tree-ssa.c (delete_tree_ssa): Simplify.
15675 * tree-tailcall.c (find_tail_calls): Walk over local decls
15676 instead of referenced vars.
15677 (add_virtual_phis): Remove.
15678 (tree_optimize_tail_calls_1): Instead mark the virtual operand
15681 2012-07-20 Steven Bosscher <steven@gcc.gnu.org>
15683 * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
15684 (brief_dump_cfg): Update prototype to take flags argument.
15685 (check_bb_profile): Remove prototype.
15686 * tracer.c (tracer): Update brief_dump_cfg calls.
15687 * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
15688 Call dump_bb_info before and after the cfghook dump_bb. Terminate
15689 the dump with a newline.
15690 (dump_flow_info): Do not call check_bb_profile.
15691 * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
15692 (check_bb_profile): Make static. Take indent and flags arguments.
15693 (dump_bb_info): Always dump loop depth. With TDF_DETAILS, call
15694 check_bb_profile. Print one edge per line.
15695 (brief_dump_cfg): Take a flags argument, and filter out
15696 TDF_COMMENT and TDF_DETAILS.
15697 * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
15698 * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
15699 dump_bb_info here, it is already called from dump_bb. Idem for
15701 (dump_gimple_bb_footer): Likewise.
15702 (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
15703 avoid broken dumps for statement histograms.
15704 (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK. Do
15705 not call pp_flush here, the buffer should be empty.
15706 * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
15707 * sched-vis.c (debug_bb_slim): Likewise.
15708 * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
15709 (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
15710 (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
15711 (dump_function_to_file): Do not call check_bb_profile on
15712 ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
15713 Use dump_bb instead of gimple_dump_bb.
15714 (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
15715 * passes.c (execute_function_dump): Always call print_rtl_with_bb
15717 * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
15718 CFG. With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
15719 bottom of each basic block.
15721 2012-07-20 Richard Guenther <rguenther@suse.de>
15723 PR tree-optimization/54031
15724 * tree-ssa-ccp.c (get_value_from_alignment): Use
15725 get_pointer_alignment_1.
15727 2012-07-20 Richard Guenther <rguenther@suse.de>
15729 * tree-inline.c (add_local_variables): Remove check_var_ann
15730 parameter and dead code.
15731 (expand_call_inline): Adjust.
15732 (tree_function_versioning): Likewise.
15734 2012-07-20 Jakub Jelinek <jakub@redhat.com>
15737 * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
15738 of just the first one.
15740 2012-07-20 Richard Guenther <rguenther@suse.de>
15742 * builtins.c (get_object_alignment_2): Correct offset handling
15743 when using type alignment of a MEM_REF kind base.
15745 2012-07-20 Kirill Yukhin <kirill.yukhin@intel.com>
15748 * config/i386/lzcntintrin.h (_lzcnt_u32): New.
15749 (_lzcnt_u64): Ditto.
15751 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
15753 * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
15755 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
15757 * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
15758 defining statement is a SSA name that occurs in abnormal PHIs.
15760 2012-07-19 Eric Botcazou <ebotcazou@adacore.com>
15762 * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
15765 2012-07-19 Jakub Jelinek <jakub@redhat.com>
15767 PR rtl-optimization/53942
15768 * function.c (assign_parm_setup_reg): Avoid zero/sign extension
15769 directly from likely spilled non-fixed hard registers, move them
15772 2012-07-19 Steve Ellcey <sellcey@mips.com>
15774 * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
15777 2012-07-19 Jason Merrill <jason@redhat.com>
15780 * dwarf2out.c (get_die_parent): New.
15781 (generate_type_signature): Use it.
15783 2012-07-19 Richard Henderson <rth@redhat.com>
15785 * config/ia64/vect.md (smulv4hi3_highpart): New.
15786 (umulv4hi3_highpart): New.
15787 (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
15788 (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
15789 (udot_prodv8qi, sdot_prodv8qi): Remove.
15790 (sdot_prodv4hi, udot_prodv4hi): Remove.
15791 * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
15792 * config/ia64/ia64-protos.h: Update.
15794 * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
15795 vectors larger than UNITS_PER_WORD.
15797 * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
15798 * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
15799 dummy != CODE_FOR_nothing value.
15801 2012-07-19 Uros Bizjak <ubizjak@gmail.com>
15803 * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
15804 * doc/tm.texi: Regenerate.
15805 * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
15806 * config/sh/sh.h (MODE_AFTER): Update.
15807 * config/epiphany/epiphany.h (MODE_AFTER): Update.
15809 2012-07-19 Jakub Jelinek <jakub@redhat.com>
15811 PR middle-end/54017
15812 * tree-cfgcleanup.c (cleanup_omp_return): Remove.
15813 (cleanup_tree_cfg_bb): Don't call it.
15814 * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
15817 2012-07-19 Christian Bruel <christian.bruel@st.com>
15820 * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
15822 2012-07-19 Richard Guenther <rguenther@suse.de>
15823 Eric Botcazou <ebotcazou@adacore.com>
15825 * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
15826 about transition from invariant to known bits.
15827 (likely_value): Addresses with UNDEFINED components are UNDEFINED.
15829 2012-07-19 Richard Guenther <rguenther@suse.de>
15831 PR tree-optimization/53970
15832 * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
15834 2012-07-19 Tristan Gingold <gingold@adacore.com>
15835 Richard Henderson <rth@redhat.com>
15837 * opts.c (finish_options): Handle UI_SEH.
15838 * expr.c (build_personality_function): Handle UI_SEH.
15839 * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
15840 * coretypes.h (unwind_info_type): Add UI_SEH.
15841 * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
15843 (i386_pe_seh_init_sections): Likewise.
15844 * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
15845 (TARGET_ASM_INIT_SECTIONS): Define.
15846 * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
15847 (i386_except_unwind_info): New function.
15849 2012-07-18 Maciej W. Rozycki <macro@codesourcery.com>
15850 Chao-ying Fu <fu@mips.com>
15852 * config/mips/mips.opt (mmcu): New option.
15853 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
15854 _mips_mcu when TARGET_MCU.
15855 (ASM_SPEC): Pass mcu options to the assembler.
15856 * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
15858 2012-07-18 Ralf Corsépius <ralf.corsepius@rtems.org>
15860 * config.gcc (v850-*-rtems*): New target.
15861 * config/v850/rtems.h: New.
15862 * config/v850/t-rtems: New.
15864 2012-07-18 Bill Schmidt <wschmidt@linux.ibm.com>
15866 * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
15867 of flags controlling optimization; add -ftree-slsr to list of flags
15868 enabled by default at -O; add -fhoist-adjacent-loads to list of flags
15869 enabled by default at -O2; add -fvect-cost-model to list of flags
15870 enabled by default at -O3; document -fhoist-adjacent-loads and
15872 * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
15873 * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
15875 * common.opt: Add -ftree-slsr with flag_tree_slsr.
15877 2012-07-18 Jie Zhang <jzhang918@gmail.com>
15878 Julian Brown <julian@codesourcery.com>
15880 * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
15881 (arm_size_rtx_costs): Likewise.
15882 (neon_valid_immediate): Add a case for double 0.0.
15884 2012-07-18 Andrew Stubbs <ams@codesourcery.com>
15885 Mark Shinwell <shinwell@codesourcery.com>
15886 Julian Brown <julian@codesourcery.com>
15888 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
15889 (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
15890 (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
15891 (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
15893 * config/arm/arm.md (neon_type): Update comment.
15895 2012-07-18 Richard Guenther <rguenther@suse.de>
15897 PR tree-optimization/53970
15898 * tree.h (contains_packed_reference): Remove.
15899 * expr.c (contains_packed_reference): Likewise.
15900 * tree-vect-data-refs.c (not_size_aligned): New function.
15901 (vector_alignment_reachable_p): Use it.
15902 (vect_supportable_dr_alignment): Likewise.
15904 2012-07-18 Richard Guenther <rguenther@suse.de>
15906 * tree.h (get_object_or_type_alignment): Remove.
15907 * builtins.c (get_object_alignment_2): New function copied from
15908 get_object_alignment_1. Take extra argument to indicate whether
15909 we take the address of EXP. Rework to use type alignment information
15910 if not, and return whether the result is an approximation or not.
15911 (get_object_alignment_1): Wrap around get_object_alignment_2.
15912 (get_pointer_alignment_1): Call get_object_alignment_2 indicating
15913 we take the address.
15914 (get_object_or_type_alignment): Remove.
15915 * expr.c (expand_assignment): Call get_object_alignment.
15916 (expand_expr_real_1): Likewise.
15918 2012-07-18 Nick Clifton <nickc@redhat.com>
15920 * doc/invoke.texi (ARM Options): Document -munaligned-access.
15922 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
15924 * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
15925 expander. Use arith_reg_dest predicate.
15926 (rotldi3, rotrdi3): Remove constraints in expander.
15927 (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
15928 ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
15931 2012-07-18 Oleg Endo <olegendo@gcc.gnu.org>
15934 * config/sh/sh.opt (mieee): Use Var instead of Mask. Correct
15936 * config/sh/sh.c (sh_option_override): Do not change
15937 flag_finite_math_only. Set TARGET_IEEE to complement of
15938 flag_finite_math_only.
15939 * doc/invoke.texi (SH options): Add mno-ieee. Correct description
15940 of mieee and mno-ieee behavior.
15942 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
15944 * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
15946 2012-07-18 Steven Bosscher <steven@gcc.gnu.org>
15948 * dumpfile.h (TDF_COMMENT): New define.
15949 * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
15950 EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
15951 EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
15952 EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
15953 Move to new file cfg-flags.h.
15954 (enum cfg_edge_flags): New enum, using cfg-flags.h.
15955 (EDGE_ALL_FLAGS): Compute value automatically.
15956 (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
15957 BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
15958 BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
15959 BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
15960 BB_IN_TRANSACTION): Move to new file cfg-flags.h.
15961 (enum bb_flags): Rename to cfg_bb_flags. Use cfg-flags.h.
15962 (BB_ALL_FLAGS): New, compute value automatically.
15963 (dump_bb_info): Update prototype.
15964 (dump_edge_info): Update prototype.
15965 * cfg-flags.h: New file.
15966 * cfg.c (dump_edge_info): Take flags argument. Be verbose only if
15967 TDF_DETAILS and not TDF_SLIM. Include cfg-flags.h for bitnames.
15968 Check that the edge flags are within the range of EDGE_ALL_FLAGS.
15969 (debug_bb): Update dump_bb call.
15970 (dump_cfg_bb_info): Remove.
15971 (dump_bb_info): New function. Use cfg-flags.h for bitnames.
15972 Adjust verbosity using TDF_* flags. Check that the basic block flags
15973 are within the range of BB_ALL_FLAGS.
15974 (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
15975 * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
15976 first for consistency with other dump functions.
15977 (dump_bb): Update prototype accordingly.
15978 * cfghooks.c: Include dumpfile.h.
15979 (verify_flow_info): Update dump_edge_info calls.
15980 (dump_bb): Take a flags argument and pass it around.
15981 Use dump_bb_info to dump common information about a basic block.
15982 (dump_flow_info): Moved here from cfgrtl.c. Make IL agnostic.
15983 (debug_flow_info): Moved here from cfgrtl.c.
15984 * profile.c (is_edge_inconsistent): Update dump_bb calls.
15985 * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
15986 * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
15987 print_rtl_slim_with_bb): Remove prototypes.
15988 (dump_insn_slim): Adjust prototype to take a const_rtx.
15989 (print_rtl_with_bb): Adjust prototype.
15990 * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
15991 * sched-vis.c (dump_insn_slim): Take a const_rtx.
15992 (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
15993 (print_rtl_slim_with_bb): Remove.
15994 (print_rtl_slim): Rename to debug_rtl_slim. Print only insn info,
15995 not basic block info (print_rtl_with_bb with TDF_SLIM should be used
15996 for that. Prototype here near DEBUG_FUNCTION marker.
15997 (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
15999 (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
16000 * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
16001 (remove_bb): Update dump_bb call.
16002 (gimple_debug_bb): Use dump_bb.
16003 (dump_function_to_file): Update gimple_dump_bb call.
16004 (print_loops_bb): Likewise.
16005 * tree-flow.h (gimple_dump_bb): Update prototype.
16006 * gimple-pretty-print.c (dump_bb_header): Rename to
16007 dump_gimple_bb_header. Write to a stream instead of a pretty
16008 printer. Use dump_bb_info to dump basic block info.
16009 (dump_bb_end): Rename to dump_gimple_bb_footer. Write to a
16010 stream instead of a pretty printer. Use dump_bb_info.
16011 (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
16012 (gimple_dump_bb): Do it here with dump_gimple_bb_header and
16013 dump_gimple_bb_footer.
16014 * cfgrtl.c (rtl_dump_bb): Update prototype. Only dump DF if the
16015 dump flags have TDF_DETAILS. Use dump_insn_slim if TDF_SLIM.
16016 (print_rtl_with_bb): Take a flags argument and pass it around.
16017 Use dump_insn_slim if TDF_SLIM.
16018 (dump_bb_info): Removed and re-incarnated in cfg.c.
16019 (dump_flow_info): Moved to cfghooks.c.
16020 (debug_flow_info): Moved to cfghooks.c.
16021 * passes.c (execute_function_dump): Unconditionally use
16022 print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
16023 * final.c (dump_basic_block_info): Update dump_edge_info calls.
16024 * tree-vrp.c (dump_asserts_for): Likewise.
16025 * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
16026 * tree-if-conv.c (if_convertible_bb_p): Don't look at
16027 EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
16028 * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
16029 for the same reason.
16030 * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
16032 2012-07-17 Richard Guenther <rguenther@suse.de>
16034 * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
16035 vars here, use create_tmp_reg where appropriate.
16036 (vect_create_addr_base_for_vector_ref): Do not add referenced
16037 vars here, use create_tmp_reg where appropriate.
16038 (vect_create_data_ref_ptr): Likewise.
16039 (vect_create_destination_var): Likewise.
16040 (vect_permute_store_chain): Likewise.
16041 (vect_permute_load_chain): Likewise.
16042 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
16044 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
16045 * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
16046 (vect_handle_widen_op_by_const): Likewise.
16047 * tree-vect-stmts.c (vect_init_vector): Likewise.
16048 (vectorizable_load): Likewise.
16050 2012-07-17 Tom de Vries <tom@codesourcery.com>
16052 * hwint.c: Fix loop range.
16054 2012-07-17 Tom de Vries <tom@codesourcery.com>
16056 * double-int.h (double_int_popcount): New inline function.
16057 * hwint.c (popcount_hwi): New function.
16058 * hwint.h (popcount_hwi): Declare function. New inline function.
16060 2012-07-17 Richard Henderson <rth@redhat.com>
16062 * tree-vect-stmts.c (supportable_widening_operation): Remove decl
16064 (vectorizable_conversion): Update supportable_widening_operation call.
16065 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
16066 (vect_recog_widen_shift_pattern): Likewise.
16067 * tree-vectorizer.h: Update decl.
16069 2012-07-17 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16070 Ulrich Weigand <ulrich.weigand@linaro.org>
16072 * common/config/arm/arm-common.c (arm_option_optimization_table):
16073 Enable -fsched-pressure by default while optimizing.
16074 * config/arm/arm.c (arm_option_override): Use the alternate scheduler
16075 pressure algorithm by default.
16077 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
16079 * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
16080 (CONST_OK_FOR_I10): Move macro to ...
16081 * config/sh/sh.c: ... here.
16082 (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
16085 2012-07-16 Oleg Endo <olegendo@gcc.gnu.org>
16087 * config/sh/sh.md: Delete mov related define_peephole patterns.
16089 2012-07-16 Jonathan Wakely <jwakely.gcc@gmail.com>
16092 * doc/install.texi (Installing GCC): Refer to instructions for
16093 released versions. Fix hyphenation.
16095 2012-07-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16097 * config/spu/spu.c (targetm): Move to bottom of file.
16098 (spu_attribute_table): Likewise.
16099 (spu_option_override, spu_init_builtins, spu_builtin_decl,
16100 spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
16101 spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
16102 adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
16103 frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
16104 insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
16105 get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
16106 spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
16107 spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
16108 spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
16109 spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
16110 spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
16111 spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
16112 spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
16113 spu_encode_section_info, spu_legitimize_address,
16114 spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
16115 spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
16116 spu_addr_space_pointer_mode, spu_addr_space_address_mode,
16117 spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
16118 spu_section_type_flags, spu_select_section, spu_unique_section,
16119 spu_trampoline_init, spu_conditional_register_usage,
16120 spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
16121 spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
16122 spu_setup_incoming_varargs): Remove prototypes.
16123 (spu_legitimize_address): Add "static" to definition.
16125 2012-07-16 Jakub Jelinek <jakub@redhat.com>
16127 * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
16129 2012-07-16 Ulrich Weigand <ulrich.weigand@linaro.org>
16131 * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
16132 before calling gsi_stmt.
16134 2012-07-16 Kirill Yukhin <kirill.yukhin@intel.com>
16137 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
16139 * config/i386/i386.md (stack_protect_set): Disable the pattern
16140 for Android since Android libc (bionic) does not provide random
16141 value for stack protection guard at gs:0x14. Guard value
16142 will be provided from external symbol (default implementation).
16143 (stack_protect_set_<mode>): Likewise.
16144 (stack_protect_test): Likewise.
16145 (stack_protect_test_<mode>): Likewise.
16147 2012-07-16 H.J. Lu <hongjiu.lu@intel.com>
16149 PR middle-end/53959
16151 * gimple.c (gimple_types_compatible_p_1): Restore type attribute
16154 2012-07-16 Bill Schmidt <wschmidt@linux.ibm.com>
16156 * opts.c (default_option): Add -fvect-cost-model to default options
16159 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
16161 * graphite-clast-to-gimple.c, graphite-dependences.c,
16162 graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
16163 for pass TODO flags.
16164 * Makefile.in: Fix dependencies.
16166 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
16168 * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
16169 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
16171 * function.c (stack_protect_epilogue): Use expand_call to expand
16172 targetm.stack_protect_fail.
16173 * stmt.c (expand_expr_stmt): Remove now-unused function.
16174 * tree.h (expand_expr_stmt): Remove prototype.
16175 * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
16176 hook must return a CALL_EXPR.
16177 * doc/tm.texi: Regenerate.
16179 * emit-rtl.c (emit_label_before): Do not allow the same label
16180 to be emitted twice.
16181 (emit_label_after): Likewise.
16182 (emit_label): Likewise.
16184 * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
16185 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
16186 * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
16187 TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
16189 2012-07-16 Steven Bosscher <steven@gcc.gnu.org>
16191 * system.h (dump_file): Do not define.
16192 * tree-pass.h: Include dumpfile.h, which is a new file containing...
16193 (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
16194 dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
16195 dump_flag_name, dump_file, dump_flags, dump_file_name,
16196 get_dump_file_info, struct dump_file_info): all of this, moved to...
16197 * dumpfile.h: Here, new file.
16198 * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
16199 (dump_stmt): Remove prototype for C++ specific function.
16200 (dump_enumerated_decls): Move prototype from here...
16201 * tree-flow.h (dump_enumerated_decls): ... to here.
16202 (get_ref_base_and_extent) Move prototype from here ...
16203 * tree.h (get_ref_base_and_extent) ... to here.
16204 * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
16205 gimple-pretty-print.h is enough. Do not include tree-dump.h,
16206 include timevar.h and dumpfile.h instead.
16207 (struct numbered_tree_d, compare_decls_by_uid,
16208 dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
16209 * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
16210 dump_enumerated_decls_push, dump_enumerated_decls):... to here.
16211 Do not include timevar.h.
16212 * tree.c: Do not include timevar.h.
16213 * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
16215 (dump_cfg_stats): Use current_function_name.
16216 (gimple_cfg2vcg): Likewise.
16217 (dump_function_to_file): Likewise.
16218 * df-scan.c: Do not include tree-pass.h and timevar.h.
16219 Include dumpfile.h.
16220 (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
16221 use print_current_pass.
16222 * df-problems.c: Include dumpfile.h.
16223 Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
16224 leads to errors in the code not selected.
16225 (df_note_compute): Do not print_rtl_with_bb here. Fix compilation
16226 bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
16227 * lcm.c: Include dumpfile.h.
16228 Remove obsolete include of insn-attr.h.
16229 * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
16230 missing probability notes.
16231 * stmt.c: Include dumpfile.h.
16232 (emit_case_decision_tree): Re-enable printing expand details only
16234 * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
16235 cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
16236 cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
16237 coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
16238 dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
16239 function.c, fwprop.c, gcse.c, gimple-fold.c,
16240 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
16241 gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
16242 graphite-dependences.c, graphite-interchange.c,
16243 graphite-optimize-isl.c, graphite-poly.c,
16244 graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
16245 ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
16246 ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
16247 ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
16248 jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
16249 loop-unroll.c, loop-unswitch.c, lower-subreg.c,
16250 lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
16251 mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
16252 plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
16253 print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
16254 regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
16255 sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
16256 store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
16257 tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
16258 tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
16259 tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
16260 tree-mudflap.c, tree-nrv.c, tree-object-size.c,
16261 tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
16262 tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
16263 tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
16264 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
16265 tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
16266 tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
16267 tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
16268 tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
16269 tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
16270 tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
16271 tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
16272 tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
16273 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
16274 tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
16275 tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
16276 tree-ssa-uncprop.c, tree-ssa-uninit.c,
16277 tree-switch-conversion.c, tree-tailcall.c,
16278 tree-vect-data-refs.c, tree-vect-loop.c,
16279 tree-vect-loop-manip.c, tree-vectorizer.c,
16280 tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
16281 tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
16282 only if needed. If tree-pass.h is included, do not include timevar.h
16283 and dumpfile.h. If tree-pass.h is not included but dump_file, or
16284 dump_flags, or the TDF_* flags are used, include dumpfile.h.
16285 If gimple-pretty-print.h is included, don't include
16286 tree-pretty-print.h. Remove assorted unnecessary includes.
16288 * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
16289 config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
16290 config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
16291 Include dumpfile.h.
16292 * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
16293 * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
16294 spu/t-spu-elf: Fix dependencies.
16296 2012-07-16 Dehao Chen <dehao@google.com>
16299 2012-07-10 Dehao Chen <dehao@google.com>
16301 * tree.h (phi_arg_d): New field.
16302 * tree-flow-inline.h (gimple_phi_arg_block): New function.
16303 (gimple_phi_arg_block_from_edge): New function.
16304 (gimple_phi_arg_set_block): New function.
16305 (gimple_phi_arg_has_block): New function.
16306 (redirect_edge_var_map_block): New function.
16307 * tree-flow.h (_edge_var_map): New field.
16308 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
16309 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
16310 redirect_edge_var_map_add.
16311 * tree-outof-ssa.c (_elim_graph): New field.
16312 (insert_partition_copy_on_edge): New parameter.
16313 (insert_value_copy_on_edge): New parameter.
16314 (insert_rtx_to_part_on_edge): New parameter.
16315 (insert_part_to_rtx_on_edge): New parameter.
16316 (elim_graph_add_edge): New parameter.
16317 (elim_graph_remove_succ_edge): New parameter.
16318 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
16319 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
16320 (new_elim_graph): Add block debug info.
16321 (clear_elim_graph): Likewise.
16322 (delete_elim_graph): Likewise.
16323 (elim_graph_add_node): Likewise.
16324 (elim_graph_add_edge): Likewise.
16325 (elim_graph_remove_succ_edge): Likewise.
16326 (eliminate_build): Likewise.
16327 (elim_forward): Likewise.
16328 (elim_unvisited_predecessor): Likewise.
16329 (elim_backward): Likewise.
16330 (elim_create): Likewise.
16331 (eliminate_phi): Likewise.
16332 (insert_backedge_copies): Likewise.
16333 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
16335 (rewrite_add_phi_arguments): Likewise.
16336 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
16337 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
16338 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
16339 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
16340 * tree-ssa-loop-manip.c (create_iv): Likewise.
16341 (add_exit_phis_edge): Likewise.
16342 (split_loop_exit_edge): Likewise.
16343 (copy_phi_node_args): Likewise.
16344 (tree_transform_and_unroll_loop): Likewise.
16345 * value-prof.c (gimple_ic): Likewise.
16346 (gimple_stringop_fixed_value): Likewise.
16347 * tree-tailcall.c (add_successor_phi_arg): Likewise.
16348 (eliminate_tail_call): Likewise.
16349 (create_tailcall_accumulator): Likewise.
16350 (tree_optimize_tail_calls_1): Likewise.
16351 * tree-phinodes.c (add_phi_arg): Likewise.
16352 (make_phi_node): Likewise.
16353 (resize_phi_node): Likewise.
16354 (remove_phi_arg_num): Likewise.
16355 * omp-low.c (expand_parallel_call): Likewise.
16356 (expand_omp_for_static_chunk): Likewise.
16357 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
16359 (slpeel_update_phi_nodes_for_guard1): Likewise.
16360 (slpeel_update_phi_nodes_for_guard2): Likewise.
16361 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
16362 (set_prologue_iterations): Likewise.
16363 (slpeel_tree_peel_loop_to_edge): Likewise.
16364 (vect_loop_versioning): Likewise.
16365 * tree-parloops.c (create_phi_for_local_result): Likewise.
16366 (transform_to_exit_first_loop): Likewise.
16367 (create_parallel_loop): Likewise.
16368 * ipa-split.c (split_function): Likewise.
16369 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
16370 (vect_create_epilog_for_reduction): Likewise.
16371 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
16372 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
16373 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
16374 (cond_if_else_store_replacement_1): Likewise.
16375 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
16376 (remove_forwarder_block_with_phi): Likewise.
16377 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
16378 * tree-predcom.c (initialize_root_vars): Likewise.
16379 (initialize_root_vars_lm): Likewise.
16380 * sese.c (sese_add_exit_phis_edge): Likewise.
16381 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
16382 * tree-ssa.c (flush_pending_stmts): Likewise.
16383 (redirect_edge_var_map_add): Likewise.
16384 (ssa_redirect_edge): Likewise.
16385 * gimple-streamer-in.c (input_phi): Likewise.
16386 * tree-vect-stmts.c (vectorizable_load): Likewise.
16387 * tree-inline.c (copy_phis_for_bb): Likewise.
16388 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
16389 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
16390 * tree-cfg.c (reinstall_phi_args): Likewise.
16391 (gimple_make_forwarder_block): Likewise.
16392 (add_phi_args_after_copy_edge): Likewise.
16393 (gimple_duplicate_sese_tail): Likewise.
16395 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
16397 * config/i386/i386.md (stack_protect_set): Disable the pattern
16398 for Android since Android libc (bionic) does not provide random
16399 value for stack protection guard at gs:0x14. Guard value
16400 will be provided from external symbol (default implementation).
16401 (stack_protect_set_<mode>): Likewise.
16402 (stack_protect_test): Likewise.
16403 (stack_protect_test_<mode>): Likewise.
16405 2012-07-16 Hans-Peter Nilsson <hp@axis.com>
16407 * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
16408 * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
16409 CONSTANT_P and cris_legitimate_address_p.
16410 * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
16411 (cris_preferred_reload_class): Don't return GENERAL_REGS as
16412 preferred to MOF_SRP_REGS.
16414 * config/cris/cris.c (cris_init_libfuncs): Handle initialization
16415 of library functions for basic atomic compare-and-swap.
16416 * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
16417 * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
16418 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
16419 ("cris_atomic_fetch_<atomic_op_name><mode>_1")
16420 ("atomic_compare_and_swap<mode>")
16421 ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
16422 TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
16423 * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
16424 * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
16425 (atomic_op_op_pred): Ditto.
16426 (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
16427 reflect the change to include %2 in expansion. All callers changed.
16428 (qm3): New mode_attr.
16429 ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
16430 as predicate for operand 2.
16431 ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME. Use
16432 "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
16433 constraint for operand 2.
16434 ("atomic_compare_and_swap<mode>"): Add FIXME. Change predicate to
16435 nonmemory_operand for operand 3.
16436 ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
16437 exclude memory. Improve emitted sync code for v10 and v32. Use
16438 <qm3> instead of <m> for size designator for cmp.
16439 ("atomic_compare_and_swap<mode>"): Change predicate to
16440 nonmemory_operand for operand 3. Add FIXME.
16441 ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
16442 constraints for operand 3 to exclude memory.
16443 ("atomic_fetch_<atomic_op_name><mode>")
16444 ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
16445 calls on result of call to need_atomic_barrier_p.
16447 2012-07-15 Richard Sandiford <rdsandiford@googlemail.com>
16449 * config/mips/mips.md (move_type): Replace mfhilo and mthilo
16450 with mflo and mtlo.
16451 (type): Split mfhilo into mfhi and mflo. Split mthilo into mthi
16452 and mtlo. Adjust move_type->type mapping.
16453 (may_clobber_hilo): Split mthilo into mthi and mtlo.
16454 (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
16455 (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
16456 (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
16457 instead of mthilo and mfhilo.
16458 (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
16459 (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
16460 * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
16461 (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
16462 Use mflo instead of mfhilo.
16463 * config/mips/10000.md (r10k_arith): Split mthilo.
16464 (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
16465 * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
16466 (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
16467 * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
16469 * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
16470 * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
16472 * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
16473 * config/mips/5400.md (ir_vr54_hilo): Likewise.
16474 * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
16475 * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
16476 * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
16477 * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
16478 * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
16479 * config/mips/generic.md (generic_hilo): Likewise.
16480 * config/mips/loongson2ef.md (ls2_alu): Likewise.
16481 * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
16482 * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
16483 (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
16484 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
16485 * config/mips/xlr.md (xlr_hilo): Likewise.
16487 2012-07-14 Andrew Stubbs <ams@codesourcery.com>
16488 Sandra Loosemore <sandra@codesourcery.com>
16490 * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
16492 2012-07-14 Uros Bizjak <ubizjak@gmail.com>
16494 * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
16497 2012-07-14 Steven Bosscher <steven@gcc.gnu.org>
16499 * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
16501 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
16504 * config/spu/spu.c (spu_init_cost): Mark static.
16505 (spu_add_stmt_cost): Likewise.
16506 (spu_finish_cost): Likewise.
16507 (spu_destroy_cost_data): Likewise.
16508 * config/i386/i386.c (ix86_init_cost): Mark static.
16509 (ix86_add_stmt_cost): Likewise.
16510 (ix86_finish_cost): Likewise.
16511 (ix86_destroy_cost_data): Likewise.
16512 * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
16513 (rs6000_add_stmt_cost): Likewise.
16514 (rs6000_finish_cost): Likewise.
16515 (rs6000_destroy_cost_data): Likewise.
16517 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
16519 * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
16520 ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
16521 ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
16523 * alloc-pool.h (pool_alloc): Likewise.
16525 * final.c (final): Do not loop to find max_uid.
16527 2012-07-13 Steven Bosscher <steven@gcc.gnu.org>
16529 * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
16530 * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
16532 2012-07-13 Richard Guenther <rguenther@suse.de>
16534 PR tree-optimization/53907
16535 * tree-ssa-forwprop.c (associate_pointerplus): New function.
16536 (ssa_forward_propagate_and_combine): Call it.
16538 2012-07-13 Richard Guenther <rguenther@suse.de>
16540 PR tree-optimization/53922
16541 * tree-vrp.c (value_inside_range): Change prototype to take
16542 min/max instead of value-range.
16543 (range_includes_zero_p): Likewise. Return the result from
16544 value_inside_range.
16545 (extract_range_from_binary_expr_1): Adjust to handle dont-know
16546 return value from range_includes_zero_p.
16547 (extract_range_from_unary_expr_1): Likewise.
16548 (compare_range_with_value): Likewise.
16549 (vrp_meet_1): Likewise.
16551 2012-07-13 Bill Schmidt <wschmidt@linux.ibm.com>
16553 * doc/tm.texi: Regenerate.
16554 * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
16555 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
16556 (TARGET_VECTORIZE_FINISH_COST): Likewise.
16557 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
16558 * targhooks.c (default_init_cost): New function.
16559 (default_add_stmt_cost): Likewise.
16560 (default_finish_cost): Likewise.
16561 (default_destroy_cost_data): Likewise.
16562 * targhooks.h (default_init_cost): New decl.
16563 (default_add_stmt_cost): Likewise.
16564 (default_finish_cost): Likewise.
16565 (default_destroy_cost_data): Likewise.
16566 * target.def (init_cost): New DEFHOOK.
16567 (add_stmt_cost): Likewise.
16568 (finish_cost): Likewise.
16569 (destroy_cost_data): Likewise.
16570 * target.h (struct _stmt_vec_info): New extern decl.
16571 (stmt_vectype): Likewise.
16572 (stmt_in_inner_loop_p): Likewise.
16573 * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
16574 (stmt_vector_for_cost): New VEC/typedef.
16575 (add_stmt_info_to_vec): New function.
16576 (struct _slp_tree): Remove cost.inside_of_loop field.
16577 (struct _slp_instance): Remove cost.inside_of_loop field; add
16578 stmt_cost_vec field.
16579 (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
16580 (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
16581 (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
16582 (struct _vect_peel_extended_info): Add stmt_cost_vec field.
16583 (struct _loop_vec_info): Add target_cost_data field.
16584 (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
16585 (struct _bb_vec_info): Add target_cost_data field.
16586 (BB_VINFO_TARGET_COST_DATA): New accessor macro.
16587 (struct _stmt_vec_info): Remove cost.inside_of_loop field.
16588 (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
16589 (stmt_vinfo_set_inside_of_loop_cost): Remove function.
16590 (init_cost): New function.
16591 (add_stmt_cost): Likewise.
16592 (finish_cost): Likewise.
16593 (destroy_cost_data): Likewise.
16594 (vect_model_simple_cost): Change parameter list.
16595 (vect_model_store_cost): Likewise.
16596 (vect_model_load_cost): Likewise.
16597 (record_stmt_cost): New extern decl.
16598 (vect_get_load_cost): Change parameter list.
16599 (vect_get_store_cost): Likewise.
16600 * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
16601 (destroy_loop_vec_info): Call destroy_cost_data.
16602 (vect_estimate_min_profitable_iters): Remove old calculation of
16603 inside costs; call finish_cost instead.
16604 (vect_model_reduction_cost): Call add_stmt_cost instead of old
16605 inside-costs calculation.
16606 (vect_model_induction_cost): Likewise.
16607 * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
16608 return a stmt_vector_for_cost; modify calls to vect_get_load_cost
16609 and vect_get_store_cost to obtain the value to return.
16610 (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
16611 vect_get_data_access_cost and store it in the minimum peeling
16613 (vect_peeling_hash_choose_best_peeling): Change the parameter list
16614 to add a (stmt_vector_for_cost *) output parameter, and set its value.
16615 (vect_enhance_data_refs_alignment): Ignore the new return value from
16616 calls to vect_get_data_access_cost; obtain stmt_cost_vec from
16617 vect_peeling_hash_choose_best_peeling and pass its contents to the
16619 * tree-vect-stmts.c (stmt_vectype): New function.
16620 (stmt_in_inner_loop_p): Likewise.
16621 (record_stmt_cost): Likewise.
16622 (vect_model_simple_cost): Add stmt_cost_vec parameter; call
16623 record_stmt_cost instead of old calculation; don't call
16624 stmt_vinfo_set_inside_of_loop_cost.
16625 (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
16626 old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
16627 (vect_model_store_cost): Add stmt_cost_vec parameter; call
16628 record_stmt_cost instead of old calculation; add stmt_cost_vec
16629 parameter to vect_get_store_cost call; don't call
16630 stmt_vinfo_set_inside_of_loop_cost.
16631 (vect_get_store_cost): Add stmt_cost_vec parameter; call
16632 record_stmt_cost instead of old calculation.
16633 (vect_model_load_cost): Add stmt_cost_vec parameter; call
16634 record_stmt_cost instead of old calculation; add stmt_cost_vec
16635 parameter to vect_get_load_cost call; don't call
16636 stmt_vinfo_set_inside_of_loop_cost.
16637 (vect_get_load_cost): Add stmt_cost_vec parameter; call
16638 record_stmt_cost instead of old calculation.
16639 (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
16640 (vectorizable_conversion): Likewise.
16641 (vectorizable_assignment): Likewise.
16642 (vectorizable_shift): Likewise.
16643 (vectorizable_operation): Likewise.
16644 (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
16645 (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
16646 (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
16647 * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
16648 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
16649 (TARGET_VECTORIZE_FINISH_COST): Likewise.
16650 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
16651 (spu_init_cost): New function.
16652 (spu_add_stmt_cost): Likewise.
16653 (spu_finish_cost): Likewise.
16654 (spu_destroy_cost_data): Likewise.
16655 * config/i386/i386.c (ix86_init_cost): New function.
16656 (ix86_add_stmt_cost): Likewise.
16657 (ix86_finish_cost): Likewise.
16658 (ix86_destroy_cost_data): Likewise.
16659 (TARGET_VECTORIZE_INIT_COST): New macro def.
16660 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
16661 (TARGET_VECTORIZE_FINISH_COST): Likewise.
16662 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
16663 * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
16664 (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
16665 (TARGET_VECTORIZE_FINISH_COST): Likewise.
16666 (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
16667 (rs6000_init_cost): New function.
16668 (rs6000_add_stmt_cost): Likewise.
16669 (rs6000_finish_cost): Likewise.
16670 (rs6000_destroy_cost_data): Likewise.
16671 * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
16672 (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
16673 (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
16674 stmt_cost_vec parameter to vect_model_store_cost and
16675 vect_model_simple_cost calls.
16676 (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
16677 parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
16678 vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
16679 calculating cost more than once for loads; remove inside_cost
16680 parameter from recursive vect_build_slp_tree calls; call
16681 record_stmt_cost instead of old calculation.
16682 (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
16683 the instance; free it on premature exit; remove inside_cost parameter
16684 from vect_build_slp_tree call; add stmt_cost_vec parameter to
16685 vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
16686 (new_bb_vec_info): Call init_cost.
16687 (destroy_bb_vec_info): Call destroy_cost_data.
16688 (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
16689 statement recorded with an SLP instance; call finish_cost instead of
16690 the old calculation.
16691 (vect_update_slp_costs_according_to_vf): Record statement costs from
16692 SLP instances, multiplying by the appropriate number of copies; don't
16693 update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
16695 2012-07-13 Richard Guenther <rguenther@suse.de>
16697 PR middle-end/53937
16698 * builtins.c (get_pointer_alignment_1): Handle constant
16701 2012-07-13 Richard Sandiford <rdsandiford@googlemail.com>
16702 Steven Bosscher <steven@gcc.gnu.org>
16703 Bernd Schmidt <bernds@codesourcery.com>
16705 PR rtl-optimization/53908
16706 * df-problems.c (can_move_insns_across): When doing
16707 memory-reference book-keeping, handle call insns.
16709 2012-07-13 Richard Guenther <rguenther@suse.de>
16711 * gimple.c (gimple_types_compatible_p_1): Remove redundant
16712 type attribute comparisons.
16713 (gimple_canonical_types_compatible_p): Likewise.
16715 2012-07-12 Hans-Peter Nilsson <hp@axis.com>
16717 PR rtl-optimization/53176
16718 * rtlanal.c (rtx_cost): Adjust default cost for X with a
16719 UNITS_PER_WORD factor for all X according to the size of
16720 its mode, not just for SUBREGs with untieable modes.
16721 Handle SET. Use factor * factor for MULT, DIV, UDIV,
16724 2012-07-12 Uros Bizjak <ubizjak@gmail.com>
16726 * config/i386/i386.md (QImode and HImode cmove splitters): Merge
16727 QImode and HImode splitters. Use ix86_comparison_operator.
16728 Explicitly match FLAGS_REG.
16729 (DFmode cmove splitter): Explicitly match FLAGS_REG.
16731 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
16733 * expr.h (can_move_by_pieces): Move prototype from here ...
16734 * tree.h (can_move_by_pieces): ... to here.
16735 * optabs.h (set_widening_optab_handler): Use XCNEW.
16736 * gimplify.c: Do not include expr.h.
16738 * toplev.c: Do not include dwarf2out.h.
16739 * config/ia64/ia64.c: Likewise.
16740 * config/sparc/sparc.c: Likewise.
16741 * config/sparc/t-sparc (sparc.o): Fix dependencies.
16743 * Makefile.in (toplev.o): Fix dependencies
16744 (c-family/c-gimplify.o): Likewise.
16745 (c-family/c-common.o): Likewise.
16747 2012-07-11 Steven Bosscher <steven@gcc.gnu.org>
16749 * basic-block.h (struct edge_def): Use basic_block instead of
16751 * cfgloop.h (struct loop_exit, struct loop): Likewise.
16752 * gengenrtl.c (type_from_format): Likewise. Also for 'tree'
16753 instead of union tree_node *.
16754 * rtl.h (union rtunion_def, emit_insn_before_noloc,
16755 emit_insn_after_noloc, add_insn_before, add_insn_after,
16756 debug_bb_slim): Likewise.
16757 * tree-inline.h (struct copy_body_data): Likewise.
16758 * sched-rgn.c (dump_region_dot): Likewise.
16759 * gimple.h (struct gimple_statement_base, gimple_set_bb,
16760 gsi_move_to_bb_end): Likewise.
16761 * sched-vis.c (debug_bb_slim): Likewise.
16762 (debug_bb_n_slim): Likewise.
16763 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
16764 (mn10300_block_contains_call):
16766 2012-07-11 Greta Yorsh <Greta.Yorsh@arm.com>
16769 * config/arm/arm.c (arm_early_load_addr_dep): Handle new
16772 2012-07-11 Jonathan Wakely <jwakely.gcc@gmail.com>
16774 * doc/extend.texi (Namespace Association): Alter cautionary text.
16776 2012-07-10 Oleg Endo <olegendo@gcc.gnu.org>
16779 * config/sh/sh.md: Remove displacement addresssing related splits.
16781 2012-07-10 Xinliang David Li <davidxl@google.com>
16783 * doc/invoke.texi: New option documented.
16784 * flag-types.h: New enum type.
16785 * gimplify.c (gimplify_bind_expr): Control
16786 clobber generation with new option.
16787 (gimplify_target_expr): Ditto.
16788 * common.opt: New option.
16790 2012-07-10 Julian Brown <julian@codesourcery.com>
16792 * config/arm/arm.md (movsi): Don't split symbol refs here.
16793 (define_split): New.
16795 2012-07-10 Andreas Schwab <schwab@linux-m68k.org>
16798 * config/m68k/m68k.c (m68k_epilogue_uses): New.
16799 * config/m68k/m68k.h (EPILOGUE_USES): Use it.
16800 * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
16802 2012-07-10 Richard Henderson <rth@redhat.com>
16804 * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
16805 * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
16806 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
16807 * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
16808 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
16809 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
16810 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
16811 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
16812 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
16813 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
16814 (bdesc_args): Remove entries to match.
16815 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
16816 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
16817 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
16818 * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
16819 (rs6000_builtin_mul_widen_odd): Remove.
16820 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
16821 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
16822 * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
16823 (spu_builtin_mul_widen_odd): Remove.
16824 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
16825 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
16826 * doc/tm.texi.in: Don't document the removed hooks.
16828 * tree-vect-stmts.c (supportable_widening_operation): Expand
16829 WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
16831 * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
16832 (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
16833 * optabs.c (can_mult_highpart_p): New.
16834 (expand_mult_highpart): New.
16835 * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
16836 * tree-vect-generic.c (expand_vector_operations_1): Don't expand
16837 by pieces if can_mult_highpart_p.
16838 (expand_vector_divmod): Use can_mult_highpart_p and always
16839 generate MULT_HIGHPART_EXPR.
16840 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
16841 * tree-vect-stmts.c (vectorizable_operation): Likewise.
16843 * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
16844 (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
16845 * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
16846 (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
16847 (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
16848 (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
16849 * config/spu/spu-builtins.def: Update pattern names to match.
16851 * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
16852 from altivec_vmuleub.
16853 (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
16854 (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
16855 (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
16856 (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
16857 (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
16858 (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
16859 (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
16860 * config/rs6000/rs6000-builtin.def: Update pattern names to match.
16862 * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
16863 avx2_umulv4siv4di3.
16864 (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
16865 (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
16866 (mulv4si3): Remove XOP test shadowed by SSE4 test.
16867 * config/i386/i386.c (bdesc_args): Update pattern names.
16868 (ix86_expand_sse2_mulvxdi3): Likewise.
16869 (ix86_expand_mul_widen_evenodd): Likewise. Remove XOP test
16870 shadowed by SSE4 test.
16872 * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
16873 * cfgexpand.c (expand_debug_expr): Handle them.
16874 * expr.c (expand_expr_real_2): Likewise.
16875 * fold-const.c (fold_binary_loc): Likewise.
16876 * gimple-pretty-print.c (dump_binary_rhs): Likewise.
16877 * optabs.c (optab_for_tree_code): Likewise.
16878 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
16879 * tree-inline.c (estimate_operator_cost): Likewise.
16880 * tree-pretty-print.c (dump_generic_node): Likewise.
16881 * tree.c (commutative_tree_code): Likewise.
16882 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
16883 Handle type change before looking up optab.
16884 * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
16885 (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
16886 (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
16887 (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
16888 * genopinit.c (optabs): Initialize them.
16889 * doc/md.texi: Document them.
16891 2012-07-10 Dehao Chen <dehao@google.com>
16893 * tree.h (phi_arg_d): New field.
16894 * tree-flow-inline.h (gimple_phi_arg_block): New function.
16895 (gimple_phi_arg_block_from_edge): New function.
16896 (gimple_phi_arg_set_block): New function.
16897 (gimple_phi_arg_has_block): New function.
16898 (redirect_edge_var_map_block): New function.
16899 * tree-flow.h (_edge_var_map): New field.
16900 * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
16901 * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
16902 redirect_edge_var_map_add.
16903 * tree-outof-ssa.c (_elim_graph): New field.
16904 (insert_partition_copy_on_edge): New parameter.
16905 (insert_value_copy_on_edge): New parameter.
16906 (insert_rtx_to_part_on_edge): New parameter.
16907 (insert_part_to_rtx_on_edge): New parameter.
16908 (elim_graph_add_edge): New parameter.
16909 (elim_graph_remove_succ_edge): New parameter.
16910 (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
16911 (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
16912 (new_elim_graph): Add block debug info.
16913 (clear_elim_graph): Likewise.
16914 (delete_elim_graph): Likewise.
16915 (elim_graph_add_node): Likewise.
16916 (elim_graph_add_edge): Likewise.
16917 (elim_graph_remove_succ_edge): Likewise.
16918 (eliminate_build): Likewise.
16919 (elim_forward): Likewise.
16920 (elim_unvisited_predecessor): Likewise.
16921 (elim_backward): Likewise.
16922 (elim_create): Likewise.
16923 (eliminate_phi): Likewise.
16924 (insert_backedge_copies): Likewise.
16925 * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
16927 (rewrite_add_phi_arguments): Likewise.
16928 * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
16929 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
16930 * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
16931 * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
16932 * tree-ssa-loop-manip.c (create_iv): Likewise.
16933 (add_exit_phis_edge): Likewise.
16934 (split_loop_exit_edge): Likewise.
16935 (copy_phi_node_args): Likewise.
16936 (tree_transform_and_unroll_loop): Likewise.
16937 * value-prof.c (gimple_ic): Likewise.
16938 (gimple_stringop_fixed_value): Likewise.
16939 * tree-tailcall.c (add_successor_phi_arg): Likewise.
16940 (eliminate_tail_call): Likewise.
16941 (create_tailcall_accumulator): Likewise.
16942 (tree_optimize_tail_calls_1): Likewise.
16943 * tree-phinodes.c (add_phi_arg): Likewise.
16944 (make_phi_node): Likewise.
16945 (resize_phi_node): Likewise.
16946 (remove_phi_arg_num): Likewise.
16947 * omp-low.c (expand_parallel_call): Likewise.
16948 (expand_omp_for_static_chunk): Likewise.
16949 * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
16951 (slpeel_update_phi_nodes_for_guard1): Likewise.
16952 (slpeel_update_phi_nodes_for_guard2): Likewise.
16953 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
16954 (set_prologue_iterations): Likewise.
16955 (slpeel_tree_peel_loop_to_edge): Likewise.
16956 (vect_loop_versioning): Likewise.
16957 * tree-parloops.c (create_phi_for_local_result): Likewise.
16958 (transform_to_exit_first_loop): Likewise.
16959 (create_parallel_loop): Likewise.
16960 * ipa-split.c (split_function): Likewise.
16961 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
16962 (vect_create_epilog_for_reduction): Likewise.
16963 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
16964 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
16965 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
16966 (cond_if_else_store_replacement_1): Likewise.
16967 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
16968 (remove_forwarder_block_with_phi): Likewise.
16969 * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
16970 * tree-predcom.c (initialize_root_vars): Likewise.
16971 (initialize_root_vars_lm): Likewise.
16972 * sese.c (sese_add_exit_phis_edge): Likewise.
16973 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
16974 * tree-ssa.c (flush_pending_stmts): Likewise.
16975 (redirect_edge_var_map_add): Likewise.
16976 (ssa_redirect_edge): Likewise.
16977 * gimple-streamer-in.c (input_phi): Likewise.
16978 * tree-vect-stmts.c (vectorizable_load): Likewise.
16979 * tree-inline.c (copy_phis_for_bb): Likewise.
16980 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
16981 * tree-switch-conversion.c (fix_phi_nodes): Likewise.
16982 * tree-cfg.c (reinstall_phi_args): Likewise.
16983 (gimple_make_forwarder_block): Likewise.
16984 (add_phi_args_after_copy_edge): Likewise.
16985 (gimple_duplicate_sese_tail): Likewise.
16987 2012-07-09 Oleg Endo <olegendo@gcc.gnu.org>
16990 * config/sh/sh.c (sequence_insn_p): New function.
16991 (find_barrier, sh_insn_length_adjustment): Use it.
16993 2012-07-09 Iain Sandoe <iain@codesourcery.com>
16996 * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
16998 * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
16999 SUBTARGET_FOLD_BUILTIN.
17000 * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
17001 SUBTARGET_FOLD_BUILTIN.
17003 2012-07-09 Iain Sandoe <iain@codesourcery.com>
17005 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
17006 runtime exceptions model setting from here ...
17007 * config/darwin.c (darwin_override_options): ... to here.
17009 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
17011 PR tree-optimization/53887
17012 * tree-cfg.c (group_case_labels_stmt): Make non-static.
17013 * tree-flow.h (group_case_labels_stmt): Add prototype.
17014 * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
17015 to pre-process every switch.
17017 2012-07-09 Jason Merrill <jason@redhat.com>
17020 * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
17021 (type_hash_eq): Likewise.
17023 2012-07-09 Tom de Vries <tom@codesourcery.com>
17024 Richard Guenther <rguenther@suse.de>
17026 * tree-ssa-ccp.c (optimize_unreachable): New function.
17027 (execute_fold_all_builtins): Use optimize_unreachable to optimize
17028 BUILT_IN_UNREACHABLE. Don't optimize after BUILT_IN_UNREACHABLE.
17030 2012-07-09 Richard Guenther <rguenther@suse.de>
17033 * graphite-optimize-isl.c: Make sure CU is not empty.
17035 2012-07-09 Steven Bosscher <steven@gcc.gnu.org>
17037 * gensupport.c (init_rtx_reader_args_cb): Start counting code
17038 generating patterns from 1 to free up 0 for CODE_FOR_nothing.
17039 * gencodes.c (main): Give CODE_FOR_nothing the value 0. Add
17040 the LAST_INSN_CODE marker at the end.
17041 * genoutput.c (nothing): New static struct data.
17042 (idata): Initialize to ¬hing.
17043 (idata_end): Initialize to ¬hing.next.
17044 (init_insn_for_nothing): New function to create dummy 'nothing' insn.
17046 * genpeep.c (insn_code_number): Remove global variable.
17047 (gen_peephole): Take it as an argument instead.
17048 (main): Take insn_code_number from read_md_rtx.
17049 * optabs.h: Revert r161809:
17050 (optab_handlers): Change type of insn_code back to insn_code.
17051 (optab_handler, widening_optab_handler, set_optab_handler,
17052 set_widening_optab_handler, convert_optab_handler,
17053 set_convert_optab_handler, direct_optab_handler,
17054 set_direct_optab_handler): Remove int casts.
17055 Revert to treating the insn_code field as "insn_code".
17057 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
17059 * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
17060 * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
17061 * config/sh/sh-protos.h: Declare it.
17063 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
17065 * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
17066 (dump_fixup_graph): Use current_function_name.
17067 (adjust_cfg_counts): Likewise.
17068 * ira-conflicts.c: Do not include tree.h.
17069 (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
17071 2012-07-08 Oleg Endo <olegendo@gcc.gnu.org>
17074 * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
17076 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
17078 * basic-block.h: Re-group most prototypes per file.
17079 (struct edge_list): Remove num_blocks field.
17080 (dump_bb_info): Adjust prototypes.
17081 (dump_reg_info): Move prototype to regs.h.
17082 * function.h: Do not include tree.h.
17083 Include vec.h, vecir.h, input.h and machmode.h to compensate.
17084 (function_name): New prototype.
17085 * gimple.h: Include tree.h to compensate for basic-block.h change.
17086 * langhooks.h: Note that tree.h is only necessary for enum tree_code.
17087 * regs.h (dump_reg_info): Prototype here.
17088 * regset.h: Adjust file reference in comment.
17089 (debug_regset): Remove prototype.
17090 * rtl.h: Include flags.h for flag_var_tracking_assignments.
17091 (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
17092 instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
17093 (dump_reg_info, dump_flow_info): Remove prototypes.
17094 * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
17095 to here, the only user. Make static.
17096 (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
17097 * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
17098 flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
17099 tree-pass.h, cfgloop.h, and tree-flow.h.
17100 Include basic-block.h, the first header I'd expect to be included.
17101 (reg_obstack): Move to df-core.c.
17102 (free_edge): Remove bogus ATTRIBUTE_UNUSED.
17103 (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
17104 (redirect_edge_succ_nodup): Move to cfghooks.c.
17105 (dump_regset, debug_regset): Move to df-core.c.
17106 (dump_bb_info): Move to cfgrtl.c.
17107 (dump_reg_info): Move to regstat.c.
17108 (dump_flow_info): Move to cfgrtl.c.
17109 (debug_flow_info): Likewise.
17110 (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
17111 * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
17112 insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
17113 (flow_active_insn_p, forwarder_block_p, can_fallthru,
17114 could_fall_through): Move to cfgrtl.c.
17115 (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
17116 (create_edge_list): Do not set edge_list's removed num_blocks.
17117 (print_edge_list): Look at n_basic_blocks instead of num_blocks.
17118 (flow_nodes_print): Remove.
17119 (flow_edge_list_print): Remove.
17120 (inverted_post_order_compute): Use FOR_ALL_BB.
17121 * cfgrtl.c (dump_flow_info): Moved from cfg.c.
17122 Do not call dump_reg_info.
17123 (debug_flow_info): Moved from cfg.c
17124 (dump_bb_info): Moved from cfg.c. Take 'verbose' argument
17125 to avoid looking at TDF_* flags from tree-pass.h.
17126 (flow_active_insn_p, forwarder_block_p, can_fallthru,
17127 could_fall_through): Moved from cfganal.c.
17128 (print_rtl_with_bb): Adjust dump_bb_info calls.
17129 * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
17130 (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
17131 (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
17132 * cselib.c: Include tree.h with a FIXME.
17133 * df-core.c (reg_obstack): Moved from cfg.c.
17134 (dump_regset): Likewise.
17135 (debug_regset): Likewise. Make a DEBUG_FUNCTION.
17136 * final.c (compute_alignments): Call dump_reg_info before
17138 * function.c (function_name): New function.
17139 (current_function_name): Use it.
17140 * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
17142 * ira-conflicts.c: Include tree.h with a note.
17143 * regstat.c (dump_reg_info): Moved here from cfg.c.
17144 * loop-init.c: Include regs.h instead of hard-reg-set.h.
17145 (rtl_loop_init): Call dump_reg_info before dump_flow_info.
17146 (rtl_loop_done): Likewise.
17147 * mcf.c: Include tree.h before langhooks.h.
17148 * predict.c (maybe_hot_count_p): Assert we have cfun.
17149 (probably_never_executed_bb_p): Likewise.
17150 * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
17151 instead of dump_flow_info.
17152 * sched-deps.c: Include tree.h with a FIXME.
17153 (call_may_noreturn_p): Add FIXME note why this function has to
17154 look at function decls instead of function decl flags.
17155 * sched-vis.c: Include tree.h with a FIXME.
17156 (print_rtl_slim): Adjust dump_bb_info uses.
17157 * statistics.c (statistics_fini_pass_2): Use current_function_name
17158 to avoid including tree.h.
17159 (statistics_counter_event): Use function_name for the same reason.
17160 (statistics_histogram_event): Likewise.
17161 * tracer.c (tracer): Remove bogus gcc_assert. Use brief_dump_cfg
17162 instead of dump_flow_info.
17163 * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
17164 before dump_flow_info.
17165 * doc/cfg.texi: Update CFG documentation.
17166 * Makefile.in (RTL_H): Depend on FLAGS_H.
17167 (GIMPLE_H): Depend on TREE_H.
17168 (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
17169 but no longer on TREE_H.
17170 (C_COMMON_H): Depend on TREE_H.
17171 (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
17172 sched-deps.o, sched-vis.o): Fixup dependencies.
17174 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
17176 * alias.h: Do not include coretypes.h in header files.
17177 * cppbuiltin.h: Likewise.
17178 * double-int.h: Likewise.
17179 * gimple-fold.h: Likewise.
17180 * flags.h: Likewise.
17181 * tree-ssa-alias.h: Likewise.
17182 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
17183 OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
17184 * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
17185 (TREE_H): Likewise.
17186 (ALIAS_H): Do not depend on coretypes.h.
17187 (FLAGS_H): Likewise.
17188 (realmpfr.o): Depend on coretypes.h.
17190 2012-07-08 Steven Bosscher <steven@gcc.gnu.org>
17192 * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
17193 gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
17195 2012-07-07 Richard Earnshaw <rearnsha@arm.com>
17197 * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
17198 (TARGET_FPA): Delete definition.
17199 (TARGET_MAVERICK): Likewise.
17200 (TARGET_FPA_EMU2): Likewise.
17201 (arm_fp_model): Remove FPA and Maverick models.
17202 (arm_arch_cirrus): Delete declaration.
17203 (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
17204 (FIXED_REGISTERS): Remove FPA and Maverick support. Reorganize.
17205 (CALL_USED_REGISTERS): Likewise.
17206 (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
17207 (FIRST_VFP_REGNUM): Renumbered.
17208 (D7_VFP_REGNUM): Chain definition.
17209 (LAST_LO_VFP_REGNUM): Likewise.
17210 (FIRST_HI_VFP_REGNUM): Likewise.
17211 (LAST_HI_VFP_REGNUM): Likewise.
17212 (FIRST_IWMMXT_GR_REGNUM): Likewise.
17213 (LAST_IWMMXT_GR_REGNUM): Likewise.
17214 (FIRST_IWMMXT_REGNUM): Likewise.
17215 (LAST_IWMMXT_REGNUM): Likewise.
17216 (FRAME_POINTER_REGNUM): Renumbered.
17217 (ARG_POINTER_REGNUM): Renumbered.
17218 (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
17219 (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
17220 (HARD_REGNO_REGNUM): Remove FPA support.
17221 (REG_ALLOC_ORDER): Remove FPA and Maverick registers. Reorganize.
17222 (reg_class): Likewise.
17223 (REG_CLASS_NAMES): Likewise.
17224 (REG_CLASS_CONTENTS): Likewise.
17225 (CANNOT_CHANGE_MODE_CLASS): Never true. Update comment.
17226 (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
17227 (CLASS_MAX_NREGS): Remove FPA and Maverick support.
17228 * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
17229 Reorganize. Use AAPCS preferred names.
17230 (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick. Update
17232 (OVERLAPPING_REGISTER_NAMES): Update register numbering.
17233 * arm.c (FL_CIRRUS): Delete definition.
17234 (arm_arch_cirrus): Delete variable.
17235 (arm_float_words_big_endian): Delete function.
17236 (cirrus_memory_offset): Delete function.
17237 (output_mov_long_double_fpa_from_arm): Delete function.
17238 (output_mov_long_double_arm_from_fpa): Delete function.
17239 (output_mov_double_fpa_from_arm): Delete function.
17240 (output_mov_double_arm_from_fpa): Delete function.
17241 (emit_sfm): Delete function.
17242 (maybe_get_arm_condition_code): Update comment.
17243 (arm_file_start): Always use softvfp for softfloat systems.
17244 (thumb_core_reg_alloc_order): Adjust for updated register allocation.
17245 (arm_option_override): Remove FPA and Maverick support. Always
17246 default to vfp as the fallback FPU format.
17247 (use_return_insn): Remove FPA support.
17248 (arm_get_frame_offsets): Likewise.
17249 (arm_save_coproc_regs): Likewise.
17250 (arm_canonicalize_comparison): Remove Maverick support.
17251 (arm_select_cc_mode): Likewise.
17252 (arm_gen_compare_reg): Likewise.
17253 (arm_print_operand): Likewise.
17254 (arm_libcall_value_1): Remove FPA and Maverick support.
17255 (arm_function_value_regno_p): Likewise.
17256 (arm_apply_result_size): Likewise.
17257 (arm_legitimate_index_p): Likewise.
17258 (thumb2_legitimate_index_p): Likewise.
17259 (legitimize_reload_address): Likewise.
17260 (arm_register_move_cost): Likewise.
17261 (arm_hard_regno_mode_ok): Likewise.
17262 (arm_regno_class): Likewise.
17263 (arm_dbx_register_number): Likewise.
17264 (arm_emit_unwind_sequence): Likewise.
17265 (arm_conditional_register_usage): Likewise.
17266 * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
17267 (cirrus_memory_offset): Likewise.
17268 (output_move_long_double_fpa_from_arm): Likewise.
17269 (output_move_long_double_arm_from_fpa): Likewise.
17270 (output_move_double_fpa_from_arm): Likewise.
17271 (output_move_double_arm_from_fpa): Likewise.
17272 (arm_float_words_big_endian): Likewise.
17273 * arm.md (CC_REGNUM): Renumbered.
17274 (VFPCC_REGNUM): Moved here. Renumbered.
17275 (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
17276 (attr fpu): Remove FPA and Maverick support.
17277 * vfp.md (VFPCC_REGNUM): Delete. Moved to arm.md.
17278 * arm-cores.def (ep9312): Remove Maverick support.
17279 * arm-arches.def (ep9312): Delete architecture.
17280 * arm-tables.opt: Regenerated.
17282 * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
17284 2012-07-07 Steven Bosscher <steven@gcc.gnu.org>
17286 PR tree-optimization/53881
17287 * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
17288 comparing labels to establish uniqueness of a switch case target,
17289 use the CFG instead.
17291 2012-07-07 Ulrich Weigand <ulrich.weigand@linaro.org>
17293 * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
17294 due to negative shift amount.
17296 2012-07-07 Hans-Peter Nilsson <hp@axis.com>
17298 Fix configure test for "stack protector support in target C library".
17299 * configure.ac (test_prefix, test_exec_prefix): Move setting from
17300 inside sysroot handling to before and outside it.
17301 * configure: Regenerate.
17303 2012-07-06 Kai Tietz <ktietz@redhat.com>
17306 * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
17307 as "/mingw/include".
17309 2012-07-06 Alexandre Oliva <aoliva@redhat.com>
17312 * var-tracking.c (vt_add_function_parameter): Convert
17313 internal_arg_pointer into arg_pointer-based address even
17316 2012-07-06 Alexandre Oilva <aoliva@redhat.com>
17318 PR rtl-optimization/53827
17321 * alias.c (memrefs_conflict_p): Adjust offset and size by the
17322 same amount for alignment ANDs.
17324 2012-07-06 Tom de Vries <tom@codesourcery.com>
17326 PR tree-optimization/51879
17327 * tree-ssa-sccvn.c (copy_reference_ops_from_call)
17328 (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
17329 (visit_use): Also call visit_reference_op_call for calls with a vdef.
17331 2012-07-06 Tom de Vries <tom@codesourcery.com>
17333 PR tree-optimization/52009
17334 * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
17335 value numbers of gimple_vdef.
17336 * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
17338 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
17339 (vn_reference_insert): Add and handle vdef parameter.
17340 (visit_reference_op_load): Add argument to vn_reference_insert call.
17341 (visit_reference_op_store): Find value number of vdef of store. Insert
17342 value number of vdef of store.
17344 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
17346 * config/i386/i386.md (simple lea to add peephole): Also transform
17347 RTXes where second PLUS operand matches output.
17349 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
17351 * config/i386/i386.c (construct_plt_address): Make static.
17352 * config/i386/i386-protos.h (construct_plt_address): Remove.
17354 2012-07-06 Nick Clifton <nickc@redhat.com>
17356 * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
17357 default_encode_section_info.
17359 2012-07-06 Uros Bizjak <ubizjak@gmail.com>
17362 * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
17363 emit PIC sequence for fnaddr symbol reference in advance.
17365 2012-07-06 Eric Botcazou <ebotcazou@adacore.com>
17368 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
17370 * dwarf2out.c (function_possibly_abstracted_p): New static function.
17371 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
17372 cgraph_function_possibly_inlined_p.
17373 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
17374 (process_scope_var): Do not emit concrete instances of abstracted
17375 nested functions from here.
17376 (gen_decl_die): Emit the abstract instance if the function is possibly
17377 abstracted and not only possibly inlined.
17378 (dwarf2out_finish): Find the first non-abstract parent instance and
17379 attach concrete instances on the limbo list to it.
17381 2012-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
17382 Julian Brown <julian@codesourcery.com>
17386 * config/arm/neon-gen.ml (return_by_ptr): Delete.
17387 (print_function): Handle empty strings.
17388 (return): Delete use of return_by_ptr.
17389 (mask_shape_for_shuffle): New function.
17390 (mask_elems): Likewise.
17391 (shuffle_fn): Likewise.
17392 (params): Simplify and remove use of return_by_ptr.
17393 (get_shuffle): New function.
17394 (print_variant): Update.
17395 * config/arm/neon.ml (rev_elems): New function.
17396 (permute_range): Likewise.
17397 (zip_range): Likewise.
17398 (uzip_range): Likewise.
17399 (trn_range): Likewise.
17400 (zip_elems): Likewise.
17401 (uzip_elems): Likewise.
17402 (trn_elems): Likewise.
17403 (features): New enumeration Use_shuffle. Delete ReturnPtr.
17406 (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
17407 * config/arm/arm_neon.h: Regenerate.
17409 2012-07-05 Richard Guenther <rguenther@suse.de>
17411 * tree-pretty-print.c (dump_generic_node): Properly test
17412 the result of exact_log2.
17414 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17416 * config/s390/s390-protos.h (s390_expand_movmem)
17417 (s390_expand_cmpmem): Add return value.
17418 * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
17419 Return FALSE to use the library function in some cases.
17420 * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
17423 2012-07-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17425 * config.gcc: Enable ifunc attribute by default on s390 and s390x.
17427 2012-07-05 Steven Bosscher <steven@gcc.gnu.org>
17429 * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
17430 * stmt.c (dump_case_nodes): New.
17431 (expand_case): Split out code generation parts into new functions.
17432 (expand_switch_as_decision_tree_p): Split out from expand_case.
17433 (emit_case_decision_tree): Likewise.
17434 (emit_case_dispatch_table): Likewise.
17436 2012-07-05 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
17438 * config/arm/iterators.md (SDF): New mode iterator.
17439 (V_if_elem): Add support for SF and DF modes.
17441 (F_constraint): New mode iterator attribute.
17442 (F_fma_type): Likewise.
17443 config/arm/vfp.md (fma<SDF:mode>4): New pattern.
17444 (*fmsub<SDF:mode>4): Likewise.
17445 (*fmnsub<SDF:mode>4): Likewise.
17446 (*fmnadd<SDF:mode>4): Likewise.
17448 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
17450 * expmed.c (expand_mult): Initialize coeff and is_neg.
17452 2012-07-04 Oleg Endo <olegendo@gcc.gnu.org>
17454 * config/sh/predicates.md (zero_extend_operand): New predicate.
17455 * config/sh/sh.md (zero_extendhisi2): Simplify by using new
17456 zero_extend_operand predicate.
17457 (zero_extendqisi2): Likewise.
17459 2012-07-04 Uros Bizjak <ubizjak@gmail.com>
17461 PR middle-end/53321
17462 * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
17463 to not call cgraph_propagate_frequency if something was changed.
17465 2012-07-04 Richard Guenther <rguenther@suse.de>
17467 PR middle-end/53433
17468 * gimple-fold.c (get_base_constructor): Do not return an
17469 error_mark_node DECL_INITIAL.
17471 2012-07-04 Richard Guenther <rguenther@suse.de>
17473 PR tree-optimization/53844
17474 * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
17475 the loop virtual PHI.
17477 2012-07-04 Richard Guenther <rguenther@suse.de>
17479 PR tree-optimization/53849
17480 * tree-cfg.c (move_stmt_op): Only call add_referenced_var
17481 for duplicated locals. Use add_referenced_var_1 to avoid
17482 pushing/popping cfun.
17484 2012-07-04 Kai Tietz <ktietz@redhat.com>
17486 * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
17487 * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
17489 * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
17490 as i386_pe_reloc_rw_mask.
17492 2012-07-04 Richard Guenther <rguenther@suse.de>
17494 * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
17495 as in free_lang_data_in_type.
17497 2012-07-04 Tobias Grosser <tobias@grosser.es>
17498 Michael Matz <matz@suse.de>
17500 * Makefile.in (OBJS): Add graphite-optimize-isl.o.
17501 (graphite-optimize-isl.o): Add dependencies.
17502 * common.opt (floop-nest-optimize): New flag.
17503 * doc/invoke.texi (floop-nest-optimize): Document.
17504 * graphite-dependences.c (compute_deps): Export.
17505 * graphite-poly.h (compute_deps): Declare.
17506 * graphite-optimize-isl.c: New file.
17507 * graphite-poly.c (apply_poly_transforms): Run the loop
17509 * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
17510 if -floop-nest-optimize is enabled.
17512 2012-07-03 Oleg Endo <olegendo@gcc.gnu.org>
17514 * config/sh/predicates.md (logical_and_operand): New predicate.
17515 * config/sh/constraints.md (Jmb, Jmw): New constraints.
17516 * config/sh/sh.md (andsi3): Move expander above insns. Add handling
17517 of 0xFFFF constant. Use logical_and_operand predicate and
17518 satisfies_constraint_Jmb, satisfies_constraint_Jmw.
17519 (*andsi3_compact): Make it an insn_and_split. Use
17520 logical_and_operand predicate. Add Jmb,Jmw alternatives.
17522 2012-07-03 Jason Merrill <jason@redhat.com>
17525 * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
17527 2012-07-03 Nick Clifton <nickc@redhat.com>
17529 * config/mep/mep.c (mep_reorg_regmove): Use
17530 next_nonnote_non_debug_insn to advance to the next insn. Do not
17531 expect delete_insn to return an rtx.
17533 2012-07-03 Richard Guenther <rguenther@suse.de>
17535 * doc/install.texi (CLooG): Clarify how CLooG needs to be
17536 configured and that it needs to be built against ISL 0.10.
17538 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17540 * config/i386/i386.c (ix86_option_override_internal): Fix wrong
17541 code model string in the error message.
17543 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17546 * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
17547 sibcall_insn_operand. Move it to a temporary register if not.
17549 2012-07-03 Andreas Schwab <schwab@linux-m68k.org>
17552 * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
17555 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
17557 * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
17559 2012-07-03 Roland McGrath <mcgrathr@google.com>
17561 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
17562 assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
17563 * configure: Regenerated.
17564 * config/i386/i386.md (simple_return_internal_long): Use %;
17565 (ctz<mode>2): Likewise.
17566 (*pause): Likewise.
17568 2012-07-02 Oleg Endo <olegendo@gcc.gnu.org>
17571 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
17573 * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
17574 * config/sh/sh.c (get_t_reg_rtx): New function. Use it when invoking
17575 gen_branch_true and gen_branch_false.
17576 * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
17578 (branch_true, branch_false): Use t_reg_operand predicate.
17579 (*branch_true, *branch_false): Delete.
17580 (movt): Use t_reg_operand predicate.
17581 (*negnegt): Use negt_reg_operand predicate and fold little and big
17583 (*movtt): Use t_reg_operand and fold little and big endian variants.
17584 (*movt_qi): Delete.
17586 2012-07-02 Steven Bosscher <steven@gcc.gnu.org>
17588 * stmt.c (emit_case_bit_tests): Remove.
17589 (expand_case): Remove expand_switch_using_bit_tests_p code.
17590 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
17591 (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
17592 (lshift_cheap_p): Likewise.
17593 (expand_switch_using_bit_tests_p): Likewise.
17594 (struct case_bit_test): Likewise.
17595 (case_bit_test_cmp): Likewise.
17596 (emit_case_bit_tests): New implementation for GIMPLE.
17597 (gen_inbound_check): Do not release post-dominator info here.
17598 (process_switch): Reorder code. Expand as bit tests if it
17600 (do_switchconv): Release post-dominator info here if something changed.
17601 (struct gimple_opt_pass): Verify more.
17602 * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
17604 2012-07-02 Martin Jambor <mjambor@suse.cz>
17606 PR middle-end/38474
17607 * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
17608 dynamic type change check.
17610 2012-07-02 Richard Guenther <rguenther@suse.de>
17611 Michael Matz <matz@suse.de>
17612 Tobias Grosser <tobias@grosser.es>
17613 Sebastian Pop <sebpop@gmail.com>
17615 * Makefile.in: Remove PPL flags in favor of ISL ones.
17616 (BACKENDLIBS): Remove PPL libs.
17617 (INCLUDES): Remove PPL includes in favor of ISL ones.
17618 (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
17619 graphite-cloog-compat.h dependencies.
17620 (graphite-dependences.o): Likewise.
17621 (graphite-poly.o): Likewise.
17622 * configure.ac: Declare ISL vars instead of PPL ones.
17623 * configure: Regenerated.
17624 * doc/install.texi: Replace PPL requirement documentation with ISL one.
17625 * graphite-blocking.c: Remove PPL code, add ISL equivalent.
17626 * graphite-clast-to-gimple.c: Likewise.
17627 * graphite-dependences.c: Likewise.
17628 * graphite-interchange.c: Likewise.
17629 * graphite-poly.h: Likewise.
17630 * graphite-poly.c: Likewise.
17631 * graphite-sese-to-poly.c: Likewise.
17632 * graphite.c: Likewise.
17633 * graphite-scop-detection.c: Re-arrange includes.
17634 * graphite-cloog-util.c: Remove.
17635 * graphite-cloog-util.h: Likewise.
17636 * graphite-ppl.h: Likewise.
17637 * graphite-ppl.c: Likewise.
17638 * graphite-dependences.h: Likewise.
17640 2012-07-02 Richard Guenther <rguenther@suse.de>
17642 Merge from graphite branch
17643 2011-07-21 Tobias Grosser <tobias@grosser.es>
17645 * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
17646 Remove graphite-cloog-util.h.
17647 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
17648 build_iv_mapping, translate_clast_user, translate_clast,
17649 free_scattering, initialize_cloog_names, build_cloog_prog,
17650 create_params_index): Do not use old compatibility functions.
17651 (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
17652 * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
17653 compatibility functions.
17654 (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
17656 * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
17657 * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
17659 * graphite-cloog-compat.h: Remove.
17661 2011-08-09 Tobias Grosser <tobias@grosser.es>
17663 * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
17664 of the string, no just a reference.
17665 (clast_name_index): Add a new field, that specifies if we need to free
17667 (free_clast_name_index): If necessary, free the name string.
17668 (clast_name_index_elt_info): Calculate the hash based on the string
17669 content, not the memory location it is stored in.
17670 (clast_name_to_level): Specify that we do not need to free the name.
17671 (clast_name_to_index): Dito.
17672 (clast_name_to_lb_ub): Dito.
17673 (eq_clast_name_indexes): Compare the strings, not their base pointers.
17674 (free_scattering): Removed.
17675 (initialize_cloog_names): Renamed to add_names_to_union_domain().
17676 (add_names_to_union_domain): Changed to work on a union_domain,
17677 instead of a CloogNames structure.
17678 (build_cloog_prog): Removed.
17679 (build_cloog_union_domain): New.
17680 (generate_cloog_input): New.
17681 (scop_to_clast): Use CloogInput instead of CloogProgram.
17682 (print_generated_program): Adapt to new scop_to_clast() and do not
17683 print the CloogProgram any more.
17684 (create_params_index): Removed, functionality integrated in
17685 add_names_to_union_domain().
17686 (gloog): Adapt to new scop_to_clast().
17687 * graphite-clast-to-gimple.h (scop_to_clast): Remove.
17689 2012-01-11 Tobias Grosser <tobias@grosser.es>
17691 * graphite-clast-to-gimple.c (clast_name_to_index,
17692 clast_name_to_lb_ub, clast_name_to_gcc): Change types.
17693 (clast_to_gcc_expression): Add clast_expr_name as a new
17694 case. Do not assume a clast_expr_term points always to a
17696 (type_for_clast_term): Do not assume a clast_expr_term points always to
17698 (type_for_clast_name): New.
17699 (type_for_clast_expr): Add clast_expr_name as a new case.
17701 2011-08-03 Sebastian Pop <sebpop@gmail.com>
17703 * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
17704 new_Cloog_Scattering_from_ppl_Polyhedron,
17705 new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
17707 2012-07-02 Jakub Jelinek <jakub@redhat.com>
17709 PR tree-optimization/53645
17710 * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
17711 instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
17713 2012-07-01 Wei Guozhi <carrot@google.com>
17716 * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
17717 * config/arm/arm.c (const_ok_for_dimode_op): New function.
17718 * config/arm/constraints.md (Dd): New constraint.
17719 * config/arm/predicates.md (arm_adddi_operand): New predicate.
17720 * config/arm/arm.md (adddi3): Extend it to handle constants.
17721 (arm_adddi3): Likewise.
17722 (addsi3_carryin_<optab>): Extend it to handle sbc case.
17723 (addsi3_carryin_alt2_<optab>): Likewise.
17724 * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
17726 2012-06-30 Nathan Sidwell <nathan@acm.org>
17728 * coverage.c (bbg_file_stamp): New.
17729 (read_counts_file): Merge incoming stamp with bbg_file_stamp.
17730 (build_info): Write bbg_file_stamp.
17731 (coverage_init): Initialize bbg_file_stamp. Read counts file
17732 before writing graph header.
17733 (coverage_finish): Don't unlink the data file if we can generate a
17735 * tree.h (crc32_unsigned): Declare.
17736 * tree.c (crc32_unsigned_bits): New, broken out of ...
17737 (crc32_byte): ... here. Use it.
17738 (crc32_unsigned): New.
17740 2012-06-29 Cary Coutant <ccoutant@google.com>
17742 * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
17743 (gen_subprogram_die): Don't add pubname if want_pubnames is false.
17744 (gen_variable_die): Likewise.
17745 (gen_namespace_die): Likewise.
17747 2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
17749 * tree-eh.c (lower_try_finally_switch): Really put the location of the
17750 last statement of the finally block onto the switch.
17752 2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
17755 * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
17758 2012-06-29 Sterling Augustine <saugustine@google.com>
17760 * dwarf2out.c (add_pubname): Add comment.
17761 (add_pubtype): Fix indentation.
17762 (gen_enumeration_type_die): Likewise.
17764 2012-06-29 Jakub Jelinek <jakub@redhat.com>
17766 * tree-vect-generic.c (expand_vector_divmod): For even/odd
17767 widening multiply, put even always as first argument to VEC_PERM_EXPR.
17769 2012-06-29 Richard Henderson <rth@redhat.com>
17771 * tree-vect-generic.c: Include target.h.
17772 (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
17773 * Makefile.in (tree-vect-generic.o): Update.
17775 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
17777 * configure.ac: Remove special gtfiles case for C.
17778 * configure: Regenerate.
17779 * Makefile.in: Remove C front-end hooks and build hooks that
17780 will be picked up from c/Make-lang.in now.
17781 Add tree-mudflap to C_COMMON_OBJS.
17782 * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
17783 * config/vms/vms.c: Look for c-tree.h in c/.
17784 * doc/gty.texi: Remove reference to c-config-lang.in.
17785 * doc/sourcebuild.texi: Document the c/ subdirectory.
17787 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
17789 * system.h (CASE_USE_BIT_TESTS): Poison.
17790 * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
17791 (expand_switch_using_bit_tests_p): ...here.
17792 * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
17793 * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
17795 2012-06-29 Steven Bosscher <steven@gcc.gnu.org>
17797 * system.h (IFCVT_EXTRA_FIELDS): Poison.
17798 (IFCVT_INIT_EXTRA_FIELDS): Poison.
17799 * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
17800 * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
17801 IFCVT_INIT_EXTRA_FIELDS.
17802 * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
17803 * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
17804 IFCVT_MACHDEP_INIT.
17805 * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
17806 frv_ifcvt_machdep_init.
17807 * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
17808 Remove documentation.
17809 (IFCVT_MACHDEP_INIT): Document.
17810 * doc/tm.texi: Regenerate.
17812 2012-06-29 Nick Clifton <nickc@redhat.com>
17814 * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
17816 2012-06-29 Jakub Jelinek <jakub@redhat.com>
17818 * tree-vect-stmts.c (vectorizable_operation): Check both
17819 VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
17820 Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
17822 2012-06-28 Richard Henderson <rth@redhat.com>
17824 * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
17826 2012-06-28 Jakub Jelinek <jakub@redhat.com>
17828 PR tree-optimization/51581
17829 * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
17830 (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
17831 also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
17832 VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
17833 * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
17834 MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
17836 PR tree-optimization/53645
17837 * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
17838 instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
17841 2012-06-28 Georg-Johann Lay <avr@gjlay.de>
17844 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
17845 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
17846 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
17847 avr_hard_regno_call_part_clobbered.
17849 2012-06-28 Richard Guenther <rguenther@suse.de>
17851 PR middle-end/53790
17852 * expr.c (expand_expr_real_1): Verify if the type is complete
17853 before inspecting its size.
17855 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
17857 * doc/include/gpl.texi: Remove.
17858 * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
17860 2012-06-28 Jakub Jelinek <jakub@redhat.com>
17862 PR tree-optimization/53645
17863 * tree-vect-generic.c (add_rshift): New function.
17864 (expand_vector_divmod): New function.
17865 (expand_vector_operation): Use it for vector integer
17866 TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
17867 * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
17868 unused lguup variable with dummy_int.
17870 2012-06-28 OLivier Hainque <hainque@adacore.com>
17872 * expr.c (convert_move): Latch mem integer inputs into a
17873 register before expanding a multi-instructions sequence.
17875 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
17876 Uros Bizjak <ubizjak@gmail.com>
17877 Jakub Jelinek <jakub@redhat.com>
17881 * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
17882 (vt_finalize): ... here instead, if needed.
17884 2012-06-28 Alexandre Oliva <aoliva@redhat.com>
17889 * dce.c (word_dce_process_block): Check whether inserting debug
17890 temps are needed even for needed insns.
17891 (dce_process_block): Likewise.
17892 * df-problems.c (dead_debug_add): Add comment about multi-regs.
17893 (dead_debug_insert_temp): Likewise. Don't subreg when we're
17894 setting fewer regs than a multi-reg requires.
17896 2012-06-27 Richard Henderson <rth@redhat.com>
17898 * config/alpha/alpha.c (alpha_dimode_u): New.
17899 (alpha_init_builtins): Initialize it, and use it.
17900 (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
17901 (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
17902 (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
17903 (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
17904 (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
17905 (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
17906 (alpha_fold_builtin_ctpop): Likewise.
17907 (alpha_fold_builtin_umulh): Remove.
17908 (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
17909 typo in MAX_ARGS check.
17911 2012-06-27 Richard Henderson <rth@redhat.com>
17913 * tree.def (MULT_HIGHPART_EXPR): New.
17914 * cfgexpand.c (expand_debug_expr): Ignore it.
17915 * expr.c (expand_expr_real_2): Handle it.
17916 * fold-const.c (int_const_binop_1): Likewise.
17917 * optabs.c (optab_for_tree_code): Likewise.
17918 * tree-cfg.c (verify_gimple_assign_binary): Likewise.
17919 * tree-inline.c (estimate_operator_cost): Likewise.
17920 * tree-pretty-print.c (dump_generic_node): Likewise.
17921 (op_code_prio, op_symbol_code): Likewise.
17922 * tree.c (commutative_tree_code): Likewise. Also handle
17923 WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
17925 2012-06-27 Richard Henderson <rth@redhat.com>
17928 * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
17929 in 2012-06-23 change. Adjust two other DImode tests as well.
17931 2012-06-27 Nick Clifton <nickc@redhat.com>
17933 * config/rx/rx.md (comparesi3_extend): Remove = modifier from
17936 2012-06-27 Richard Guenther <rguenther@suse.de>
17938 PR middle-end/53676
17939 * tree-chrec.c (chrec_convert_1): Represent truncation to
17940 a type with undefined overflow as truncation to an unsigned
17941 type converted to the type with undefined overflow.
17942 * tree-scalar-evolution.c (interpret_rhs_expr): For computing
17943 the scalar evolution of a truncated widened operation avoid
17944 looking at the non-existing evolution of the widened operation
17947 2012-06-27 Richard Guenther <rguenther@suse.de>
17949 PR tree-optimization/53774
17950 * tree-ssa-reassoc.c (get_rank): All default defs have
17952 (init_reassoc): Precompute rank for all SSA default defs.
17954 2012-06-27 Nick Clifton <nickc@redhat.com>
17956 * config/rx/rx.md (simple_return): Use the simple_return rtx.
17958 2012-06-26 Richard Henderson <rth@redhat.com>
17960 * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
17961 and don't fall thru from standard_80387_constant_p to the memory
17964 2012-06-26 Richard Henderson <rth@redhat.com>
17966 * config/i386/i386.c (bdesc_args): Update. Change
17967 IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
17968 (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
17969 (ix86_builtin_mul_widen_even): Use it.
17970 (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
17971 (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
17972 * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
17974 (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
17975 (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise. Relax from V124_AVX2.
17976 (vec_widen_smult_even_v4si): New.
17978 2012-06-26 Richard Henderson <rth@redhat.com>
17980 * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
17981 to expander; move guts to ...
17982 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here. Add
17983 highparts before shifting up.
17984 * config/i386/i386-protos.h: Update.
17986 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
17988 * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
17989 * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
17990 * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
17992 2012-06-26 Alexandre Oliva <aoliva@redhat.com>
17994 * var-tracking.c (vt_add_function_parameter): Use a preserved
17995 VALUE for the MEM address of an incoming parameter.
17997 2012-06-26 Sterling Augustine <saugustine@google.com>
17999 * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
18000 (prune_unused_types): Likewise.
18002 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
18004 * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
18005 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
18006 * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
18007 UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
18008 VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
18009 VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
18010 * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
18011 UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
18012 * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
18014 * doc/tm.texi: Regenerate.
18015 * doc/cpp.texi: Make example for #error generic.
18016 * config/frv/frv.h: Fix example text to match tm.texi.
18018 2012-06-26 Bill Schmidt <wschmidt@linux.ibm.com>
18020 * tree-pass.h (pass_strength_reduction): New decl.
18021 * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
18022 (finalize_costs): Likewise.
18023 * timevar.def (TV_TREE_SLSR): New timevar.
18024 * gimple-ssa-strength-reduction.c: New.
18025 * tree-flow.h (initialize_costs): New decl.
18026 (finalize_costs): Likewise.
18027 * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
18028 * passes.c (init_optimization_passes): Add pass_strength_reduction.
18030 2012-06-26 Matt Turner <mattst88@gmail.com>
18032 * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
18033 (__builtin_arm_tinsrh): Likewise.
18034 (__builtin_arm_tinsrw): Likewise.
18035 (__builtin_arm_wsadb): Add missing v2si parameter.
18036 (__builtin_arm_wsadh): Likewise.
18037 (__builtin_arm_getwcx): Delete.
18038 (__builtin_arm_setwcx): Delete.
18039 (__builtin_arm_getwcgr0): Add.
18040 (__builtin_arm_getwcgr1): Add.
18041 (__builtin_arm_getwcgr2): Add.
18042 (__builtin_arm_getwcgr3): Add.
18043 (__builtin_arm_setwcgr0): Add.
18044 (__builtin_arm_setwcgr1): Add.
18045 (__builtin_arm_setwcgr2): Add.
18046 (__builtin_arm_setwcgr3): Add.
18048 2012-06-26 Richard Guenther <rguenther@suse.de>
18051 2012-06-21 Richard Guenther <rguenther@suse.de>
18053 * tree-inline.c (estimate_num_insns): Estimate call cost for
18054 tailcalls properly.
18056 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
18059 * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
18060 * doc/tm.texi: Regenerate.
18062 2012-06-26 Steven Bosscher <steven@gcc.gnu.org>
18065 * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
18066 * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
18067 * doc/tm.texi.in: Remove documentation for unused target macros
18068 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
18069 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
18070 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
18071 TARGET_NARROW_VOLATILE_BITFIELDS.
18072 Document that MD_HANDLE_UNWABI is a macro in libgcc.
18073 * doc/tm.texi: Regenerate.
18074 * system.h: Poison target macros
18075 ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
18076 DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
18077 REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
18078 TARGET_NARROW_VOLATILE_BITFIELDS
18080 2012-06-26 Jan Hubicka <jh@suse.cz>
18083 * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
18086 2012-06-26 Dehao Chen <dehao@google.com>
18088 * tree-inline.c: (expand_call_inline): Ensure that lexical block's
18089 source location is consistant with the call stmt.
18091 2012-06-26 Ulrich Weigand <ulrich.weigand@linaro.org>
18093 PR tree-optimization/53729
18094 PR tree-optimization/53636
18095 * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
18096 vect_verify_datarefs_alignment until after statements have
18097 been marked as relevant/irrelevant.
18098 * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
18099 Skip irrelevant statements.
18100 (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
18101 instead of STMT_VINFO_RELEVANT.
18102 (vect_get_data_access_cost): Do not check for supportable
18103 alignment before calling vect_get_load_cost/vect_get_store_cost.
18104 * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
18105 handling unsupported alignment.
18106 (vect_get_load_cost): Likewise.
18108 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
18110 * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
18111 Do not define JMP_BUF_SIZE.
18113 2012-06-26 Jakub Jelinek <jakub@redhat.com>
18115 PR tree-optimization/53748
18116 * tree-ssa-phiopt.c (conditional_replacement): Only optimize
18117 if arg0/arg1 have integral or pointer types.
18119 2012-06-25 Richard Henderson <rth@redhat.com>
18121 * config/i386/sse.md (sse2_sse4_1): Remove code attr.
18122 (<s>dot_prodv4si, <s>dot_prodv8si): Remove
18123 (sdot_prodv4si): New; handle only XOP.
18125 2012-06-25 Richard Henderson <rth@redhat.com>
18127 * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
18128 (V2UDI_FUNC_V4USI_V4USI): New.
18129 (V4UDI_FUNC_V8USI_V8USI): New.
18130 * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
18131 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
18132 (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
18133 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
18134 (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
18135 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
18136 (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
18137 (bdesc_args): Add them.
18138 (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
18139 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
18140 (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
18141 (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
18142 * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
18144 2012-06-25 Richard Henderson <rth@redhat.com>
18146 * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
18148 2012-06-25 Richard Henderson <rth@redhat.com>
18150 * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
18152 (ix86_expand_vec_interleave): New.
18153 (ix86_expand_mul_widen_evenodd): New.
18154 (ix86_expand_mul_widen_hilo): New.
18155 (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
18156 * config/i386/i386.md (u_bool) New code attr.
18157 * config/i386/predicates.md
18158 (nonimmediate_or_const_vector_operand): Remove.
18159 * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
18160 both AVX and SSE4_1.
18161 (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
18162 (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
18163 (vec_widen<s>mult_hi_v8si): Remove.
18164 (vec_widen<s>mult_lo_v8si): Remove.
18165 (vec_widen_smult_hi_v4si): Remove.
18166 (vec_widen_smult_lo_v4si): Remove.
18167 (vec_widen_umult_hi_v4si): Remove.
18168 (vec_widen_umult_lo_v4si): Remove.
18169 (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
18170 (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
18171 * config/i386/i386-protos.h: Update.
18173 2012-06-25 Christophe Lyon <christophe.lyon@st.com>
18175 * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
18176 (neon_vld1_dup): Restrict to VQ operands.
18177 (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
18179 2012-06-25 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
18180 James Greenhalgh <james.greenhalgh@arm.com>
18182 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
18183 (TARGET_FMA): New macro.
18184 (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
18185 (TARGET_ARM_ARCH): Likewise.
18186 (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
18187 (TARGET_V6M, TARGET_V7M): Likewise.
18188 (TARGET_ARM_ARCH_PROFILE): Likewise.
18189 (TARGET_ARM_FEATURE_LDREX): Likewise.
18190 (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
18191 (ARM_MIN_ENUM_SIZE): Likewise.
18192 * config/arm/arm.c (arm_file_start): Refactor appropriately.
18193 (base_architecture): New enumeration.
18194 (arm_base_arch): New global variable.
18195 (processors): Add field base_arch.
18196 (ARM_ARCH, ARM_CORE): Adjust accordingly.
18197 (arm_option_override): Add initialization of arm_base_arch.
18198 * doc/cpp.texi (system-specific predefined macros.): Change.
18200 2012-06-25 Jakub Jelinek <jakub@redhat.com>
18203 * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
18204 of x x x in the vmovlps load alternative.
18206 2012-06-25 Richard Sandiford <rdsandiford@googlemail.com>
18209 * df.h (dead_debug_add): Remove third argument.
18210 * df-problems.c (dead_debug_add): Likewise. Use the REGNO of the
18211 REG that we want to replace instead.
18212 (dead_debug_insert_temp): Use the REGNO of the reg that we want
18213 to replace instead of DF_REF_REGNO. Require there to always be
18214 at least one such use. Check for cases where the same location
18215 has more than df_ref associated with it.
18216 (df_note_bb_compute): Remove third dead_debug_add argument.
18217 * dce.c (word_dce_process_block): Likewise.
18219 2012-06-25 Steven Bosscher <steven@gcc.gnu.org>
18221 * config/v850/v850.c: Remove redundant extern declarations for
18222 last_assemble_variable_decl and size_directive_output.
18224 * doc/tm.texi.in: Document JMP_BUF_SIZE.
18225 * doc/tm.texi: Regenerate.
18226 * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
18227 * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
18228 * config/stormy16/stormy16.h: Likewise.
18230 * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
18232 * doc/sourcebuild.texi: Add missing subdirectories.
18234 2012-06-25 Tristan Gingold <gingold@adacore.com>
18236 * config/i386/i386.h: Fix typo.
18238 2012-06-25 Tristan Gingold <gingold@adacore.com>
18240 * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
18241 (seh_cfa_adjust_cfa): ... that function.
18242 (seh_emit_stackalloc): Do not emit out of range values.
18243 * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
18244 UNSPEC_DEF_CFA constants.
18245 * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
18246 * config/i386/i386.c (ix86_frame_pointer_required): Required
18247 for very large frames on SEH target.
18248 (ix86_compute_frame_layout): Save area is before frame pointer
18249 on SEH target. Handle very large frames.
18250 (ix86_expand_prologue): Likewise.
18252 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
18254 * output.h: (current_function_is_leaf,
18255 current_function_sp_is_unchanging,
18256 current_function_uses_only_leaf_regs): Remove.
18257 * function.c (current_function_is_leaf,
18258 current_function_sp_is_unchanging,
18259 current_function_uses_only_leaf_regs): Remove.
18260 (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
18261 instead of current_function_uses_only_leaf_regs.
18262 * function.h (struct rtl_data): New fields sp_is_unchanging,
18263 is_leaf, uses_only_leaf_regs.
18264 * resource.c (init_resource_info): Replace current_function_is_leaf,
18265 current_function_sp_is_unchanging, and
18266 current_function_uses_only_leaf_regs with new crtl fields.
18267 * sdbout.c (sdbout_symbol): Likewise.
18268 * df-core.c (rest_of_handle_df_initialize): Likewise.
18269 * ira.c (ira): Likewise.
18270 * final.c (final_start_function): Likewise.
18271 * reorg.c (fill_simple_delay_slots): Likewise.
18272 * regrename.c (check_new_reg_p): Likewise.
18273 * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
18274 (notice_stack_pointer_modification): Likewise.
18275 * dbxout.c (dbxout_symbol): Likewise.
18276 (dbxout_parms): Likewise.
18277 * sel-sched.c (init_regs_for_mode): Likewise.
18278 * dwarf2out.c (dbx_reg_number): Likewise.
18279 (multiple_reg_loc_descriptor): Likewise.
18280 * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
18281 (gen_pop): Likewise.
18282 (ix86_select_alt_pic_regnum): Likewise.
18283 (ix86_compute_frame_layout): Likewise.
18284 (ix86_finalize_stack_realign_flags): Likewise.
18285 (ix86_expand_epilogue): Likewise.
18286 * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
18287 * config/h8300/h8300.c (byte_reg): Likewise.
18288 * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
18289 (c6x_save_reg): Likewise.
18290 (c6x_compute_frame_layout): Likewise.
18291 * config/pa/pa.c (pa_compute_frame_size): Likewise.
18292 (pa_output_function_prologue): Likewise.
18293 * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
18294 * config/sparc/sparc.md (attr "leaf_function"): Likewise.
18295 * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
18296 (sparc_expand_prologue): Likewise.
18297 (sparc_flat_expand_prologue): Likewise.
18298 (sparc_asm_function_prologue): Likewise.
18299 (sparc_output_mi_thunk): Likewise.
18300 (sparc_frame_pointer_required): Likewise.
18301 * config/epiphany/epiphany.c (epiphany_compute_function_type):
18303 (epiphany_compute_frame_size): Likewise.
18304 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
18305 * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
18306 (cris_frame_pointer_required): Likewise.
18307 * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
18308 (tilepro_current_function_is_leaf): Likewise.
18309 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
18310 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
18311 * config/ia64/ia64.c (find_gr_spill): Likewise.
18312 (ia64_compute_frame_size): Likewise.
18313 (ia64_can_eliminate): Likewise.
18314 (ia64_initial_elimination_offset): Likewise.
18315 * config/m68k/m68k.c (m68k_save_reg): Likewise.
18316 (m68k_expand_epilogue): Likewise.
18317 * config/rx/rx.c (rx_get_stack_layout): Likewise.
18318 * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
18319 * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
18321 (picochip_output_frame_debug): Likewise.
18322 * config/sh/sh.c (sh_media_register_for_return): Likewise.
18323 (sh_allocate_initial_value): Likewise.
18324 (sh_output_mi_thunk): Likewise.
18325 * config/microblaze/microblaze.c (microblaze_must_save_register):
18327 (compute_frame_size): Likewise.
18328 (microblaze_initial_elimination_offset): Likewise.
18329 (microblaze_expand_prologue): Likewise.
18330 (microblaze_expand_epilogue): Likewise.
18331 * config/frv/frv.c (frv_expand_epilogue): Likewise.
18332 (frv_frame_pointer_required): Likewise.
18333 * config/spu/spu.c (get_pic_reg): Likewise.
18334 (direct_return): Likewise.
18335 (spu_expand_prologue): Likewise.
18336 (spu_expand_epilogue): Likewise.
18337 (spu_initial_elimination_offset): Likewise.
18338 * config/mips/mips.c (mips_global_pointer): Likewise.
18339 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
18340 (mips_compute_frame_info): Likewise.
18341 * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
18342 (mep_reload_pointer): Likewise.
18343 * config/rl78/rl78.c (need_to_save): Likewise.
18344 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
18345 * config/score/score.c (score_compute_frame_size): Likewise.
18346 (score_function_prologue): Likewise.
18347 * config/bfin/bfin.c (must_save_p): Likewise.
18348 (expand_prologue_reg_save): Likewise.
18349 (expand_epilogue_reg_restore): Likewise.
18350 (bfin_frame_pointer_required): Likewise.
18351 (n_regs_saved_by_prologue): Likewise.
18352 (add_to_reg): Likewise.
18353 (expand_interrupt_handler_prologue): Likewise.
18354 (expand_interrupt_handler_epilogue): Likewise.
18355 (bfin_expand_prologue): Likewise.
18356 * config/avr/avr.c (avr_regs_to_save): Likewise.
18357 (avr_prologue_setup_frame): Likewise.
18358 (expand_epilogue): Likewise.
18359 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
18360 (s390_register_info): Likewise.
18361 (s390_frame_info): Likewise.
18362 (s390_init_frame_layout): Likewise.
18363 (s390_emit_prologue): Likewise.
18366 2012-06-24 Steven Bosscher <steven@gcc.gnu.org>
18368 * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
18369 * vmsdbgout: Do not undefine it if defined.
18370 Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
18371 * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
18372 * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
18374 2012-06-24 Richard Sandiford <rdsandiford@googlemail.com>
18376 * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
18378 2012-06-23 Richard Henderson <rth@redhat.com>
18381 * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
18382 V*QImode shifts and multiply.
18383 (ix86_expand_vecop_qihi): Support shifts.
18384 * config/i386/i386.md (any_shift): New code iterator.
18385 * config/i386/sse.md (ashlv16qi3): Merge ...
18386 (<any_shiftrt>v16qi3): ... into ...
18387 (<any_shift><VI1_AVX2>3): ... here. Use ix86_expand_vecop_qihi
18388 to support SSE and AVX.
18390 * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
18391 parameter into src and dest.
18392 * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
18393 (vec_unpacks_hi_<V124_AVX2>): Likewise.
18394 (vec_unpacku_lo_<V124_AVX2>): Likewise.
18395 (vec_unpacks_lo_<V124_AVX2>): Likewise.
18396 * config/i386/i386-protos.h: Update.
18398 * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
18399 pure expander; move expansion code ...
18400 * config/i386/i386.c (ix86_expand_vecop_qihi): ... here. New function.
18401 * config/i386/i386-protos.h: Update.
18403 2012-06-22 Edmar Wienskoski <edmar@freescale.com>
18405 * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
18406 (popcntb<mode>2): Add attribute type popcnt.
18407 (popcntd<mode>2): Ditto.
18408 * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
18409 * config/rs6000/power5.md (define_insn_reservation): Ditto.
18410 * config/rs6000/power7.md (define_insn_reservation): Ditto.
18411 * config/rs6000/476.md (define_insn_reservation): Ditto.
18412 * config/rs6000/power6.md (define_insn_reservation): New
18413 reservation for popcnt instructions.
18415 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
18417 * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
18419 2012-06-22 H.J. Lu <hongjiu.lu@intel.com>
18422 * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
18424 * config/i386/i386.c (ix86_option_override_internal): Allow
18425 -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
18427 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
18428 if SSE is disabled.
18430 2012-06-22 Bill Schmidt <wschmidt@linux.ibm.com>
18432 * double-int.c (double_int_multiple_of): New function.
18433 * double-int.h (double_int_multiple_of): New decl.
18434 * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
18435 (mbc_entry_hash): New forward decl.
18436 (mbc_entry_eq): Likewise.
18437 (zero_cost): Change to no_cost.
18438 (mult_costs): New static var.
18439 (cost_tables_exist): Likewise.
18440 (initialize_costs): New function.
18441 (finalize_costs): Likewise.
18442 (tree_ssa_iv_optimize_init): Call initialize_costs.
18443 (add_cost): Change to add_regs_cost; distinguish costs by speed.
18444 (multiply_regs_cost): New function.
18445 (add_const_cost): Likewise.
18446 (extend_or_trunc_reg_cost): Likewise.
18447 (negate_reg_cost): Likewise.
18448 (multiply_by_cost): Change to multiply_by_const_cost; distinguish
18450 (get_address_cost): Change add_cost to add_regs_cost; change
18451 multiply_by_cost to multiply_by_const_cost.
18452 (force_expr_to_var_cost): Change zero_cost to no_cost; change
18453 add_cost to add_regs_cost; change multiply_by_cost to
18454 multiply_by_const_cost.
18455 (split_cost): Change zero_cost to no_cost.
18456 (ptr_difference_cost): Likewise.
18457 (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
18458 to multiply_by_const_cost.
18459 (get_computation_cost_at): Change add_cost to add_regs_cost; change
18460 multiply_by_cost to multiply_by_const_cost.
18461 (determine_use_iv_cost_generic): Change zero_cost to no_cost.
18462 (determine_iv_cost): Change add_cost to add_regs_cost.
18463 (iv_ca_new): Change zero_cost to no_cost.
18464 (tree_ssa_iv_optimize_finalize): Call finalize_costs.
18465 * tree-ssa-address.c (most_expensive_mult_to_index): Change
18466 multiply_by_cost to multiply_by_const_cost.
18467 * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
18468 (add_regs_cost): New decl.
18469 (multiply_regs_cost): Likewise.
18470 (add_const_cost): Likewise.
18471 (extend_or_trunc_reg_cost): Likewise.
18472 (negate_reg_cost): Likewise.
18474 2012-06-22 Richard Guenther <rguenther@suse.de>
18476 Merge from graphite branch
18477 2011-08-10 Sebastian Pop <sebpop@gmail.com>
18479 * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
18481 2012-01-13 Tobias Grosser <tobias@grosser.es>
18483 * tree-flow.h (parallelized_function_p): Declare.
18484 * tree-parloops.c (parallelized_function_p): Export.
18485 * graphite.c (graphite_transform_loops): Do not run graphite on
18486 already parallel functions.
18488 2012-06-22 Alan Modra <amodra@gmail.com>
18490 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
18491 return mem. Convert to indirect addressing if not indirect or
18492 indexed. Adjust all callers.
18494 2012-06-22 Richard Guenther <rguenther@suse.de>
18496 * gcov-iov.c: Include bconfig.h and system.h.
18498 2012-06-22 Andreas Schwab <schwab@linux-m68k.org>
18500 * doc/include/texinfo.tex: Update to version 2012-06-05.14.
18502 2012-06-22 Richard Guenther <rguenther@suse.de>
18504 PR gcov-profile/53744
18505 * gcov-iov.c (main): Treat "" and "prerelease" the same.
18507 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
18510 * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
18511 for GNU Fortran if in strict DWARF2 mode.
18513 2012-06-22 Eric Botcazou <ebotcazou@adacore.com>
18515 * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
18516 DECL_IGNORED_P non-reg vars even if they are used.
18518 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18522 * var-tracking.c (vt_get_canonicalize_base): New.
18523 (vt_canonicalize_addr, vt_stack_offset_p): New.
18524 (vt_canon_true_dep): New.
18525 (drop_overlapping_mem_locs): Use vt_canon_true_dep.
18526 (clobber_overlaping_mems): Use vt_canonicalize_addr.
18528 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18532 * var-tracking.c (vt_initialize): Record initial offset between
18533 arg pointer and stack pointer.
18535 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18539 * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
18542 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18546 * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
18548 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18550 * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
18552 2012-06-21 Alexandre Oliva <aoliva@redhat.com>
18555 * cselib.c (promote_debug_loc): Don't crash on NULL argument.
18557 2012-06-21 Meador Inge <meadori@codesourcery.com>
18560 * c-decl.c (c_push_function_context): Restore the behavior to reuse
18561 the language function allocated for -Wunused-local-typedefs.
18562 (c_pop_function_context): If necessary, clear the language function
18563 created in c_push_function_context. Always clear out the
18564 x_cur_stmt_list field of the restored language function.
18566 2012-06-21 Sterling Augustine <saugustine@google.com>
18567 Cary Coutant <ccoutant@google.com>
18569 * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
18570 add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
18571 (comdat_type_struct): New field 'skeleton_die'.
18572 (breakout_comdat_types): Update it.
18573 (add_pubname): Rework logic. Call is_class_die, is_cu_die and
18574 is_namespace_die. Fix minor style violation. Call want_pubnames.
18575 (add_pubname_string): Call want_pubnames.
18576 (add_pubtype): Rework logic for calculating type name. Call
18577 is_namespace_die. Call want_pubnames.
18578 (output_pubnames): Move conditional logic deciding when to produce the
18579 section from dwarf2out_finish. Use new skeleton_die field.
18580 (base_type_die): Call add_pubtype.
18581 (gen_enumeration_type_die): Unconditionally call add_pubtype.
18582 (gen_subprogram_die): Adjust calls to add_pubname.
18583 (gen_namespace_die): Call add_pubname_string.
18584 (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
18585 produce pubnames and pubtypes sections to output_pubnames.
18586 * common.opt (-gpubnames): New option.
18587 * doc/invoke.texi: Document it.
18589 2012-06-21 Steven Bosscher <steven@gcc.gnu.org>
18591 * config/m32c/m32c-pragma.c: Remove unnecessary includes.
18593 2012-06-21 Michael Matz <matz@suse.de>
18595 PR middle-end/53688
18596 * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
18599 2012-06-21 Richard Guenther <rguenther@suse.de>
18601 * tree-inline.c (estimate_num_insns): Estimate call cost for
18602 tailcalls properly.
18604 2012-06-20 Rüdiger Sonderfeld <ruediger@c-plusplus.de>
18606 * tree.h (DECL_SOURCE_COLUMN): New accessor.
18608 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
18610 * config/i386/i386.md (SINCOS): New int iterator.
18611 (sincos): New int attribute.
18612 (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
18613 SINCOS int iterator.
18614 (*<sincos>_extend<mode>xf2_i387): Macroize insn from
18615 *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
18617 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
18619 * config/i386/i386.md (RDFSGSBASE): New int iterator.
18620 (WRFSGSBASE): Ditto.
18621 (fsgs): New int attribute.
18622 (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
18623 RDFSGSBASE int iterator.
18624 (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
18625 WRFSGSBASE int iterator.
18627 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
18629 * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
18630 from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
18631 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
18632 from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
18635 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
18637 * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
18639 2012-06-20 Richard Guenther <rguenther@suse.de>
18641 PR tree-optimization/30318
18642 * tree-vrp.c (range_int_cst_p): Do not reject overflowed
18644 (range_int_cst_singleton_p): But explicitely here.
18645 (zero_nonzero_bits_from_vr): And here.
18646 (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
18647 to cover all cases we can perform arbitrary precision
18648 arithmetic with double-ints.
18649 (intersect_ranges): Handle adjacent anti-ranges.
18651 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
18653 * config/i386/i386.md (rounding_insn): New int attribute.
18654 (<rounding_insn>xf2): Macroize insn from
18655 {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
18656 (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
18658 2012-06-20 Uros Bizjak <ubizjak@gmail.com>
18660 * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
18661 (ieee_maxmin): New int attribute.
18662 (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
18663 *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
18665 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
18667 * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
18668 * config/arm/arm.c: Do not include c-pragma.h.
18669 (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
18670 (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
18671 to arm_emit_eabi_attribute.
18672 * arm-c.c: Do not include output.h.
18673 (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
18674 call to arm_emit_eabi_attribute.
18675 * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
18677 2012-06-20 Richard Guenther <rguenther@suse.de>
18679 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
18680 Allow adjusting alignment of user-aligned decls again.
18682 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
18684 * config/rl78/rl78-c.c: Remove unnecessary includes.
18686 2012-06-20 Steven Bosscher <steven@gcc.gnu.org>
18688 * config/cris/cris.c: Include cgraph.h.
18689 (cris_option_override): Do not set non-existing flag_no_gcc_ident.
18691 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18693 * emit-rtl.c (need_atomic_barrier_p): New function.
18694 * emit-rtl.h (need_atomic_barrier_p): Declare it.
18695 * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
18696 * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
18697 * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
18698 * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
18699 (mips_process_sync_loop): Use generic version instead.
18701 2012-06-19 Maxim Kuvyrkov <maxim@codesourcery.com>
18703 * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
18706 2012-06-19 Tom de Vries <vries@codesourcery.com>
18707 Maxim Kuvyrkov <maxim@codesourcery.com>
18709 * config/mips/constraints.md (ZR): New constraint.
18710 * config/mips/predicates.md (mem_noofs_operand): New predicate.
18711 * config/mips/mips.c (mips_print_operand): Handle new print modifier.
18712 * config/mips/mips.h (TARGET_XLP): Define.
18713 (TARGET_SYNC_AFTER_SC): Update.
18714 (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
18715 * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
18716 XLP-specific swap and ldadd patterns.
18717 (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
18719 2012-06-19 Tom de Vries <vries@codesourcery.com>
18720 Maxim Kuvyrkov <maxim@codesourcery.com>
18722 * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
18723 (mips_emit_post_atomic_barrier_p): New static functions.
18724 (mips_process_sync_loop): Use them. Emit sync memory barriers in
18725 accordance with memory model semantics. Add return of CMP result for
18727 * config/mips/mips.md: Update comment.
18728 (sync_cmp): New attribute.
18729 (sync_memmodel): New attribute replacing sync_release_barrier.
18730 * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
18731 (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
18732 (sync_lock_test_and_set, test_and_set_12): Update.
18733 (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
18734 (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
18736 2012-06-19 Joseph Myers <joseph@codesourcery.com>
18738 * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
18739 mov_si<mode>_e500_subreg0.
18740 (*mov_si<mode>_e500_subreg0_elf_low)
18741 (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
18743 2012-06-19 Richard Henderson <rth@redhat.com>
18745 * config/alpha/alpha.c: Include params.h.
18746 (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
18747 PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
18749 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
18751 * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
18752 TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
18753 (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
18755 * doc/tm.texi: Regenerate.
18756 * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
18757 .objc_class_name_*.
18758 * config/darwin-c.c: Include target.h.
18759 (darwin_objc_declare_unresolved_class_reference): New function.
18760 (darwin_objc_declare_class_definition): New function.
18761 (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
18762 (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
18764 2012-06-19 Steven Bosscher <steven@gcc.gnu.org>
18766 * target.def (output_ident): New hook.
18767 * targhooks.h (default_asm_output_ident_directive): Add prototype.
18768 * varasm.c (assemble_asm): Only prefix a tab if the string does not
18769 already start with one.
18770 (default_asm_output_ident_directive): New function to emit
18771 .ident as a top-level asm node while parsing, or directly to
18772 asm_out_file after parsing.
18773 * toplev.c (compile_file): Print a GCC .ident with
18774 targetm.asm_out.output_ident.
18775 * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
18776 (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
18777 * doc/tm.texi: Update.
18779 * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
18780 (TARGET_ASM_OUTPUT_IDENT): Define.
18781 * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
18782 * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
18783 * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
18784 * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
18785 (TARGET_ASM_OUTPUT_IDENT): Define.
18786 * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
18787 (TARGET_ASM_OUTPUT_IDENT): Define.
18789 * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
18790 * config/cris/cris.c (cris_asm_output_ident): New function.
18791 * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
18793 * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
18795 * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
18796 (microblaze_asm_output_ident): Rewrite to work similar to
18797 default_asm_output_ident_directive for front-end .idents.
18798 * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
18799 (TARGET_ASM_OUTPUT_IDENT): Define.
18801 * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
18802 * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
18804 * config/rx/rx.c: Include cgraph.h for add_asm_node.
18805 (rx_asm_output_ident): New function, similar to
18806 default_asm_output_ident_directive, but handle AS100 syntax also, so
18807 that #ident also works for rx in AS100 syntax.
18808 (TARGET_ASM_OUTPUT_IDENT): Define.
18809 * config/rx/rx.h (IDENT_ASM_OP): Remove.
18811 * Makefile.in: Fix dependencies for c-family/c-lex.o.
18813 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
18815 * config/i386/i386.md (FIST_ROUNDING): New int iterator.
18816 (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
18818 (*fist<mode>2_<rounding>_1): Macroize insn from
18819 *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
18820 (fistdi2_<rounding>): Macroize insn from
18821 fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
18822 (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
18823 corresponding splitters from fistdi2_{floor,ceil} and corresponding
18824 splitters using FIST_ROUNDING int iterator.
18825 (fist<mode>2_<rounding>): Macroize insn from
18826 fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
18827 (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
18828 corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
18829 splitters using FIST_ROUNDING int iterator.
18830 (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
18831 using FIST_ROUNDING int iterator.
18833 2012-06-19 Richard Henderson <rth@redhat.com>
18835 * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
18836 * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
18837 * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
18838 * config/i386/sse.md (sse2_mulv4si3): Delete.
18839 (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
18840 nonimmediate_or_const_vector_operand.
18842 2012-06-19 Richard Henderson <rth@redhat.com>
18844 * expmed.c (struct init_expmed_rtl): Split ...
18845 (init_expmed_one_mode): ... out of ...
18846 (init_expmed): ... here. Initialize integer vector modes also.
18847 (synth_mult): Handle integer vector modes.
18848 (choose_mult_variant): Likewise.
18849 (expand_mult_const): Likewise.
18850 (expand_mult): Likewise.
18851 * machmode.h (GET_MODE_UNIT_BITSIZE): New.
18853 2012-06-19 Richard Henderson <rth@redhat.com>
18855 * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
18856 integral vector modes.
18858 2012-06-19 Uros Bizjak <ubizjak@gmail.com>
18860 * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
18861 (rounding): New int attribute.
18863 (frndintxf2_<rounding>): Macroize insn from
18864 frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
18865 (frndintxf2_<rounding>_i387): Macroize insn from
18866 frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
18868 2012-06-19 Richard Guenther <rguenther@suse.de>
18870 * tree-vrp.c (union_ranges): New function.
18871 (vrp_meet_1): Use union_ranges.
18872 (vrp_meet): Dump what we union and call vrp_meet_1.
18874 2012-06-19 Richard Earnshaw <rearnsha@arm.com>
18876 * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
18877 (attr type): Remove fmul, ffmul, farith, ffarith, float_em
18878 f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
18879 (attr write_conflict, attr core_cycles): Update.
18880 * arm-generic.md (r_mem_f_wbuf): Delete reservation.
18882 2012-06-19 Richard Guenther <rguenther@suse.de>
18884 * tree-vrp.c (intersect_ranges): Handle more cases.
18885 (vrp_intersect_ranges): Dump what we intersect and call ...
18886 (vrp_intersect_ranges_1): ... this.
18888 2012-06-19 Richard Guenther <rguenther@suse.de>
18890 PR tree-optimization/53708
18891 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
18892 user-supplied alignment and alignment of decls with the used
18895 2012-06-18 Lawrence Crowl <crowl@google.com>
18897 * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
18898 (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
18899 (TV_PHASE_STREAM_IN): New.
18900 (TV_PHASE_STREAM_OUT): New.
18901 * timevar.c (validate_phases): New.
18902 (timevar_print): Call validate_phases.
18903 * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
18904 to TV_PHASE_OPT_GEN.
18905 * langhooks.c (write_global_declarations): Rename use of
18906 TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN. Use TV_PHASE_DBGINFO instead of
18907 TV_PHASE_CHECK_DBGINFO.
18908 * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
18909 TV_PHASE_LATE_ASM. Move start of TV_PHASE_LATE_ASM to after call to
18910 lang_hooks.decls.final_write_globals.
18912 2012-06-18 David Edelshn <dje.gcc@gmail.com>
18914 * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
18916 2012-06-18 Uros Bizjak <ubizjak@gmail.com>
18919 * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
18920 (*sse4_2_pcmpistr_unaligned): New.
18922 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18923 Sameera Deshpande <sameera.deshpande@arm.com>
18924 Greta Yorsh <greta.yorsh@arm.com>
18926 * config/arm/arm-protos.h (arm_output_epilogue): Remove.
18927 * config/arm/arm.c (print_multi_reg): Remove.
18928 (vfp_output_fldmd): Likewise.
18929 (arm_output_epilogue): Likewise.
18930 * config/arm/arm.md (epilogue_insns): Update condition and code.
18932 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18933 Sameera Deshpande <sameera.deshpande@arm.com>
18934 Greta Yorsh <greta.yorsh@arm.com>
18936 * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
18937 * config/arm/arm.c (thumb2_expand_return): New function.
18938 * config/arm/arm.md (return): Update condition and code.
18940 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18941 Sameera Deshpande <sameera.deshpande@arm.com>
18942 Greta Yorsh <greta.yorsh@arm.com>
18944 * config/arm/arm-protos.h (output_return_instruction): New parameter
18945 and int to bool change of parameter types.
18946 * config/arm/arm.c (output_return_instruction): Likewise.
18947 * config/arm/arm.md (arm_simple_return): New pattern.
18948 (arm_return, cond_return, cond_return_inverted): Add new arguments.
18949 * config/arm/thumb2.md (thumb2_return): Update condition and code.
18951 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18952 Sameera Deshpande <sameera.deshpande@arm.com>
18953 Greta Yorsh <greta.yorsh@arm.com>
18955 * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
18956 * config/arm/arm.c (arm_expand_epilogue): New function.
18957 * config/arm/arm.md (epilogue): Update condition and code.
18958 (sibcall_epilogue): Likewise.
18960 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18961 Sameera Deshpande <sameera.deshpande@arm.com>
18962 Greta Yorsh <greta.yorsh@arm.com>
18964 * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
18965 * config/arm/arm.md (arm_addsi3) Add an alternative.
18967 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18968 Sameera Deshpande <sameera.deshpande@arm.com>
18969 Greta Yorsh <greta.yorsh@arm.com>
18971 * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
18972 * config/arm/predicates.md (pop_multiple_fp) New special predicate.
18973 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
18975 2012-06-18 Ian Bolton <ian.bolton@arm.com>
18976 Sameera Deshpande <sameera.deshpande@arm.com>
18977 Greta Yorsh <greta.yorsh@arm.com>
18979 * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
18980 (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
18981 (pop_multiple_with_return, ldr_with_return) Likewise.
18982 * config/arm/predicates.md (pop_multiple_return) New special predicate.
18983 * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
18984 * config/arm/arm.c (arm_output_multireg_pop) New function.
18985 (arm_emit_multi_reg_pop): New function.
18987 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
18989 * config/arm/arm.c (ldm_stm_operation_p): Require SP
18990 as base register for loads if SP is in the register list.
18992 2012-06-18 Richard Guenther <rguenther@suse.de>
18994 PR tree-optimization/53693
18995 * tree-vect-patterns.c (vect_operation_fits_smaller_type):
18996 Reject operands with more than one use.
18998 2012-06-18 Bill Schmidt <wschmidt@linux.ibm.com>
19000 PR tree-optimization/53703
19001 * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
19002 correctly set bb_for_def[12].
19004 2012-06-18 Steven Bosscher <steven@gcc.gnu.org>
19006 * config/vax/vax.h (VMS_TARGET): Remove.
19008 2012-06-18 Richard Guenther <rguenther@suse.de>
19010 * tree-vrp.c (extract_range_from_assert): Split out range
19012 (intersect_ranges): New function.
19013 (vrp_intersect_ranges): Likewise.
19015 2012-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19017 * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
19020 2012-06-18 Tejas Belagod <tejas.belagod@arm.com>
19022 * doc/md.texi: Document int iterators.
19023 * read-rtl.c (ints): New iterator group.
19024 (find_int): Int iterator group callback.
19025 (apply_int_iterator): Likewise.
19026 (apply_iterators): Traverse int iterator table and add all the used
19028 (initialize_iterators): Initialize data structures and callbacks for
19030 (read_rtx): Parse and read mappings for int iterators.
19031 (read_rtx_code): Record int iterator usage.
19033 2012-06-18 Richard Sandiford <rdsandiford@googlemail.com>
19035 PR middle-end/53698
19036 * expr.c (expand_expr_addr_expr_1): Convert to tmode before
19037 performing an addition.
19039 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
19041 * output.h (split_double): Move prototype to rtl.h.
19042 (constructor_static_from_elts_p): Move prototype to tree.c.
19043 * rtl.h (split_double): Moved here from output.h.
19044 * tree.h (constructor_static_from_elts_p): Moved here from output.h.
19045 * final.c (split_double): Move from here ...
19046 * rtlanal.c (split_double): ... to here.
19047 * expr.c: Do not include output.h.
19049 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
19051 * cfglayout.h: Remove.
19052 * cfglayout.c: Remove.
19053 * function.h (struct function): Remove x_last_location field.
19054 * function.c: Do not include cfglayout.h.
19055 (expand_function_start): Do not call no-op force_next_line_note.
19056 (expand_function_end): Likewise.
19057 * cfgrtl.c: Do not include cfglayout.h. Include gt-cfgrtl.h.
19058 (unlink_insn_chain): Moved here from cfglayout.c.
19059 (skip_insns_after_block, label_for_bb, record_effective_endpoints,
19060 into_cfg_layout_mode, outof_cfg_layout_mode,
19061 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
19062 relink_block_chain, fixup_reorder_chain, verify_insn_chain,
19063 fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
19064 cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
19065 cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
19066 cfg_layout_finalize): Likewise.
19067 (rtl_can_remove_branch_p): Likewise.
19068 * rtl.h (insn_scope): Move prototype from cfglayout.h here.
19069 (duplicate_insn_chain): Likewise.
19070 (force_next_line_note): Remove prototype.
19071 * emit-rtl.c: Do not include tree-flow.h, egad. Include vecprim.h.
19072 (last_location): Remove #define to emit.x_last_location.
19073 (force_next_line_note): Remove no-op function.
19074 (init_emit): Don't set x_last_location.
19075 (block_locators_locs, block_locators_blocks, locations_locators_locs,
19076 locations_locators_vals, prologue_locator, epilogue_locator,
19077 curr_location, last_location, curr_block, last_block, curr_rtl_loc):
19078 Move POD to here from cfglayout.c.
19079 (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
19080 set_curr_insn_source_location, get_curr_insn_source_location,
19081 set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
19082 locator_scope, insn_scope, locator_location, locator_line, insn_line,
19083 locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
19084 * cfghooks.h: Remove double-include protection.
19085 (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
19086 * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
19087 * final.c: Do not include cfglayout.h.
19088 (choose_inner_scope, change_scope): Move to here from cfglayout.c.
19089 (reemit_insn_block_notes): Likewise. Make static.
19090 * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
19091 operation_could_trap_p, tree_could_throw_p): Move from here...
19092 * tree.h: ... to here.
19093 * gengtype.c (open_base_files): Remove cfglayout.h from the list.
19094 * profile.c: Do not include cfghooks.h.
19095 * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
19096 * modulo-sched.c: Likewise.
19097 * loop-unswitch.c: Do not include cfglayout.h.
19098 * sched-ebb.c: Likewise.
19099 * tracer.c: Likewise.
19101 * tree-vect-loop-manip.c: Likewise.
19102 * loop-init.c: Likewise.
19103 * dwarf2out.c: Likewise.
19104 * hw-doloop.c: Likewise.
19105 * loop-unroll.c: Likewise.
19106 * cfgcleanup.c: Likewise.
19107 * bb-reorder.c: Likewise.
19108 * sched-rgn.c: Likewise.
19109 * tree-cfg.c: Likewise.
19110 * config/alpha/alpha.c: Likewise.
19111 * config/spu/spu.c: Likewise.
19112 * config/sparc/sparc.c: Likewise.
19113 * config/sh/sh.c: Likewise.
19114 * config/c6x/c6x.c: Likewise.
19115 * config/ia64/ia64.c: Likewise.
19116 * config/rs6000/rs6000.c: Likewise.
19117 * config/score/score.c: Likewise.
19118 * config/mips/mips.c: Likewise.
19119 * config/bfin/bfin.c: Likewise.
19120 * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
19121 * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
19122 * config/spu/t-spu-elf (spu.o: $): Likewise.
19123 * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
19125 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
19127 * cfgloop.h: Do not include rtl.h.
19128 (enum iv_extend_code): New.
19129 (struct rtx_iv): Use iv_extend_code instead of rtx_code.
19130 * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
19131 * loop-iv.c (iv_extend_to_rtx_code): New function to translate
19132 an IV_EXTEND_CODE to an RTX_CODE.
19133 (dump_iv_info): Update for rtx_iv field type change.
19134 (iv_constant): Likewise.
19135 (iv_subreg): Likewise.
19136 (iv_extend): Likewise.
19137 (iv_neg): Likewise.
19138 (iv_add): Likewise.
19139 (iv_mult): Likewise.
19140 (iv_shift): Likewise.
19141 (get_biv_step_1): Likewise.
19142 (get_biv_step): Likewise.
19143 (iv_analyze_biv): Likewise.
19144 (get_iv_value): Likewise.
19145 (shorten_into_mode): Likewise.
19146 (canonicalize_iv_subregs): Likewise.
19147 * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
19148 of MAY_HAVE_DEBUG_INSNS.
19149 * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
19150 * tree-ssa-loop-prefetch.c: Likewise.
19152 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
19154 * expmed.c (ceil_log2): Move from here...
19155 * hwint.c: ... to here for older GCCs...
19156 * hwint.h: ... and here for newer GCCs.
19157 * rtl.h (ceil_log2): Remove prototype.
19159 * tree-phinodes.c: Do not include rtl.h.
19160 * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
19162 2012-06-17 Steven Bosscher <steven@gcc.gnu.org>
19164 * config/cris/cris.h (TARGET_ELF): Remove.
19165 (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
19166 (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
19167 (LOCAL_LABEL_PREFIX): Likewise.
19168 * config/cris/cris.c (cris_target_asm_named_section): Remove.
19169 (cris_option_override): Simpify using TARGET_ELF==1.
19170 (cris_file_start): Likewise.
19171 * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
19173 2012-06-17 Uros Bizjak <ubizjak@gmail.com>
19175 * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
19177 2012-06-16 Eric Botcazou <ebotcazou@adacore.com>
19179 PR middle-end/53590
19180 * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
19182 2012-06-15 Easwaran Raman <eraman@google.com>
19184 * passes.c (init_optimization_passes): Remove pass_call_cdce
19185 from its current position and insert after pass_dce.
19187 2012-06-15 Walter Lee <walt@tilera.com>
19189 * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
19191 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
19193 * arm.c (note_invalid_constants): Don't return a result.
19194 (arm_memory_load_p): Delete function.
19195 (arm_const_double_rtx): Delete iterator variable i;
19196 (fp_immediate_constant): Likewise.
19197 (fp_const_from_val): Likewise.
19199 * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
19201 2012-06-15 Marc Glisse <marc.glisse@inria.fr>
19204 * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
19205 * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
19207 2012-06-15 Georg-Johann Lay <avr@gjlay.de>
19209 * config/avr/avr.c (avr_default_expand_builtin): New function.
19210 (avr_expand_builtin): Use it.
19211 (avr_expand_unop_builtin): Remove.
19212 (avr_expand_binop_builtin): Remove.
19213 (avr_expand_triop_builtin): Remove.
19215 2012-06-15 Michael Matz <matz@suse.de>
19217 PR middle-end/38474
19218 * cfgexpand.c (add_alias_set_conflicts): Remove.
19219 (expand_used_vars): Don't call it.
19220 (aggregate_contains_union_type): Remove.
19221 * function.c (n_temp_slots_in_use): New static data.
19222 (make_slot_available, assign_stack_temp_for_type): Update it.
19223 (init_temp_slots): Zero it.
19224 (remove_unused_temp_slot_addresses): Use it for quicker removal.
19225 (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
19227 2012-06-15 Michael Matz <matz@suse.de>
19229 * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
19230 argument, don't emit assign statement if value is directly usable.
19231 (gimplify_expr): Adjust.
19233 2012-06-15 Michael Matz <matz@suse.de>
19235 * gimplify.c (gimplify_modify_expr): Fold generated statements.
19236 * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
19238 2012-06-15 Richard Guenther <rguenther@suse.de>
19240 * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
19241 predicates to set VR_UNDEFINED and VR_VARYING. Drop a case
19242 we assert for in set_value_range to VR_VARYING.
19244 2012-06-15 Richard Earnshaw <rearnsha@arm.com>
19246 * arm.md (addsf3, adddf3): Use s_register_operand.
19247 (subsf3, subdf3): Likewise.
19248 (mulsf3, muldf3): Likewise.
19249 (difsf3, divdf3): Likewise.
19250 (movsfcc, movdfcc): Likewise.
19251 * predicates.md (f_register_operand): Delete.
19252 (arm_float_rhs_operand): Delete.
19253 (arm_float_add_operand): Delete.
19254 (arm_float_compare_operand): Use s_register_operand when
19256 (cirrus_register_operand): Delete.
19257 (cirrus_fp_register): Delete.
19258 (cirrus_shift_const): Delete.
19259 (cmpdi_operand): Remove Maverick support.
19260 * constraints.md (f, v, H): Delete constraints.
19261 (G): Update documentation.
19262 * arm.c (fp_consts_inited): Convert to bool.
19263 (strings_fp): Delete.
19264 (values_fp): Delete.
19265 (value_fp0): New variable.
19266 (init_fp_table): Simplify logic.
19267 (arm_const_double_rtx): Likewise.
19268 (fp_immediate_constant): Likewise.
19269 (fp_const_from_val): Likewise.
19270 (neg_const_double_rtx_ok_for_fpa): Delete.
19271 * doc/md.texi (ARM constraints): Update documentation.
19273 2012-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
19275 PR tree-optimization/53636
19276 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
19277 stride when doing basic-block vectorization.
19279 2012-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
19281 * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
19282 into VEC_PERM_EXPR.
19284 2012-06-15 Jakub Jelinek <jakub@redhat.com>
19286 * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
19287 allocate and free bbs array for the SLP case.
19289 PR tree-optimization/51581
19290 * expr.h (choose_multiplier): New prototype.
19291 * expmed.c (choose_multiplier): No longer static.
19292 Change multiplier_ptr from rtx * to UHWI *.
19293 (expand_divmod): Adjust callers.
19294 * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
19295 (vect_recog_divmod_pattern): ... this. Pass bb_vinfo as last
19296 argument to new_stmt_vec_info. Attempt to optimize also divisions
19297 by non-pow2 constants if integer vector division isn't supported.
19298 * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
19299 don't look at pattern stmts and sequences.
19301 2012-06-15 Eric Botcazou <ebotcazou@adacore.com>
19303 PR middle-end/53590
19304 * common.opt (-fdelete-dead-exceptions): New switch.
19305 * doc/invoke.texi (Code Gen Options): Document it.
19306 * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
19307 insn_could_throw_p predicate. Do not skip an insn that could throw
19308 if dead exceptions can be deleted.
19309 (insn_live_p): Likewise, do not return true in that case.
19310 * dce.c (can_alter_cfg): New flag.
19311 (deletable_insn_p): Do not return false for an insn that can throw if
19312 the CFG can be altered and dead exceptions can be deleted.
19313 (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
19314 * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
19315 predicate. Do not preserve an insn that could throw if dead exceptions
19317 * function.h (struct function): Add can_delete_dead_exceptions flag.
19318 * function.c (allocate_struct_function): Set it.
19319 * lto-streamer-in.c (input_struct_function_base): Stream it.
19320 * lto-streamer-out.c (input_struct_function_base): Likewise.
19321 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
19322 statement that could throw as necessary if dead exceptions can be
19325 2012-06-14 Maxim Kuvyrkov <maxim@codesourcery.com>
19327 * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
19329 2012-06-14 Oleg Endo <olegendo@gcc.gnu.org>
19332 * config/sh/sh.md: Add peephole for swapbsi2.
19333 (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
19335 2012-06-14 Uros Bizjak <ubizjak@gmail.com>
19337 * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
19338 (*zero_extendsidi2_rex64): Ditto. Remove isa attribute.
19340 2012-06-14 Jakub Jelinek <jakub@redhat.com>
19343 * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
19345 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
19347 * arm.c (arm_cirrus_insn_p): Delete.
19348 (cirrus_reorg): Delete.
19349 (arm_reorg): Don't call cirrus_reorg.
19350 (arm_final_prescan_insn_p): Don't check for cirrus insns.
19351 * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
19352 (adddi3, subdi3): Remove Maverick support.
19353 (arm_adddi3): Likewise.
19354 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
19355 (addsf3, adddf3): Likewise.
19356 (subsf3, subdf3): Likewise.
19357 (mulsf3, muldf3): Likewise.
19358 (ashldi3, ashrdi3, lshrdi3): Likewise.
19359 (floatsisf2, floatsidf2): Likewise.
19360 (fix_truncsfsi2, fix_truncdfsi2): Likewise.
19361 (arm_movdi, thumb1_movdi_insn): Likewise.
19362 (arm_cmpdi_insn): Likewise.
19363 (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
19364 (cirrus.md): Don't include.
19365 * cirrus.md: Delete file.
19366 * t-arm (MD_INCLUDES): Remove cirrus.md.
19368 2012-06-14 Eric Botcazou <ebotcazou@adacore.com>
19370 * dwarf2out.c (function_possibly_abstracted_p): New static function.
19371 (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
19372 cgraph_function_possibly_inlined_p.
19373 (gen_inlined_subroutine_die): Return if the origin is to be ignored.
19374 (process_scope_var): Do not emit concrete instances of abstracted
19375 nested functions from here.
19376 (gen_decl_die): Emit the abstract instance if the function is possibly
19377 abstracted and not only possibly inlined.
19378 (dwarf2out_finish): Find the first non-abstract parent instance and
19379 attach concrete instances on the limbo list to it.
19381 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
19383 * arm.md (divsf3, divdf3): Remove FPA support.
19384 (negsf2, negdf2): Likewise.
19385 (sqrtsf2, sqrtdf2): Likewise.
19386 (movdfcc): Likewise.
19387 (modsf3, moddf3, movxf): Delete.
19388 (push_fp_multi): Delete.
19389 (fpa.md): Don't include it.
19390 * fpa.md: Delete file.
19391 * t-arm (MD_INCLUDES): Remove fpa.md.
19393 2012-06-14 Bill Schmidt <wschmidt@linux.ibm.com>
19395 * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
19396 (cost_for_stmt): Remove decl.
19397 (vect_get_single_scalar_iteration_cost): Correct typo in name.
19398 * tree-vect-loop.c (vect_get_cost): Remove.
19399 (vect_get_single_scalar_iteration_cost): Correct typo in name; use
19400 vect_get_stmt_cost rather than vect_get_cost.
19401 (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
19403 (vect_estimate_min_profitable_iters): Correct typo in call to
19404 vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
19405 than vect_get_cost.
19406 (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
19408 (vect_model_induction_cost): Likewise.
19409 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
19410 typo in call to vect_get_single_scalar_iteration_cost.
19411 * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
19412 (cost_for_stmt): Remove unnecessary function.
19413 * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
19415 2012-06-14 Richard Earnshaw <rearnsha@arm.com>
19417 * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
19418 * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
19419 * arm-tables.opt: Regenerated.
19420 * doc/invoke.texi: Remove references to deleted options.
19422 2012-06-14 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
19424 * config/h8300/genmova.sh: Modified to add offset bits of
19425 mova/Sz assembly instruction for memory access.
19426 * config/h8300/h8300.c: Likewise.
19427 * config/h8300/mova.md: Likewise.
19429 2012-06-12 Christian Bruel <christian.bruel@st.com>
19432 * config/sh/sh.c (sh_option_override): Don't force
19433 flag_omit_frame_pointer and maccumulate_outgoing_args.
19434 * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
19436 2012-06-14 Richard Guenther <rguenther@suse.de>
19438 * tree-vrp.c (VR_INITIALIZER): New define.
19439 (ranges_from_anti_range): New function.
19440 (extract_range_from_binary_expr_1): Decompose operations on
19441 VR_ANTI_RANGEs to operations on VR_RANGE.
19442 (extract_range_from_unary_expr_1): Likewise.
19443 (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
19444 extract_range_from_unary_expr_1, extract_range_from_unary_expr,
19445 extract_range_from_cond_expr, adjust_range_with_scev,
19446 vrp_visit_assignment_or_call, vrp_visit_phi_node,
19447 simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
19449 2012-06-13 Richard Henderson <rth@redhat.com>
19451 * hwint.h (HOST_WIDEST_INT_C): New.
19452 (HOST_WIDE_INT_C): New.
19453 (HOST_WIDE_INT_1): Use it.
19454 * config/alpha/alpha.c (alpha_trampoline_init): Use it.
19456 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
19459 * var-tracking.c: Include alias.h.
19460 (overlapping_mems): New struct.
19461 (drop_overlapping_mem_locs): New.
19462 (clobber_overlapping_mems): New.
19463 (var_mem_delete_and_set, var_mem_delete): Call it.
19464 (val_bind): Likewise, but only if modified.
19465 (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
19466 * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
19468 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
19471 * var-tracking.c (loc_exp_dep_pool): New.
19472 (vt_emit_notes): Create and release the pool.
19473 (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
19474 (emit_notes_in_bb): Likewise.
19475 (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
19476 (notify_dependents_of_changed_value): Likewise.
19477 (notify_dependents_of_resolved_value): Check that NOT_ONEPART
19478 variables don't have a VAR_LOC_DEP_LST.
19479 (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
19480 VALUEs or MEMs of VALUEs.
19482 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
19486 * dce.c (word_dce_process_block): Insert debug temps only if the
19487 insn is not marked.
19488 (dce_process_block): Likewise, and if debug.used is not empty,
19489 and only after iterating over all DEFs that might mark the insn.
19491 2012-06-13 Alexandre Oliva <aoliva@redhat.com>
19493 * common.opt (ftree-coalesce-inlined-vars): New.
19494 (ftree-coalesce-vars): New.
19495 * doc/invoke.texi: Document them.
19496 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19499 2012-06-13 Richard Sandiford <rdsandiford@googlemail.com>
19501 * read-rtl.c (mapping): Remove index field. Add current_value field.
19502 Define heap vectors.
19503 (iterator_group): Fix long line. Remove num_builtins field and
19504 uses_iterator fields. Make apply_iterator take a void * parameter.
19505 (iterator_use, atttribute_use): New structures.
19506 (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
19507 (current_iterators, iterator_uses, attribute_uses): New variables.
19508 (uses_mode_iterator_p, uses_code_iterator_p): Delete.
19509 (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
19510 (map_attr_string, apply_iterator_to_string): Remove iterator
19511 and value parameters. Look through all current iterator values
19512 for a matching attribute.
19513 (mode_attr_index, apply_mode_maps): Delete.
19514 (apply_iterator_to_rtx): Replace with...
19515 (copy_rtx_for_iterators): ...this new function.
19516 (uses_iterator_p, apply_iterator_traverse): Delete.
19517 (apply_attribute_uses, add_current_iterators, apply_iterators): New
19519 (add_mapping): Remove index field. Set current_value field.
19520 (initialize_iterators): Don't set num_builtins and uses_iterator_p
19522 (find_iterator): Delete.
19523 (record_iterator_use, record_attribute_use): New functions.
19524 (record_potential_iterator_use): New function.
19525 (check_code_iterator): Remove handling of bellwether codes.
19526 (read_rtx): Remove mode maps. Truncate iterator and attribute uses.
19527 (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
19528 parameter. Use the first code iterator value instead of the
19529 bellwether_codes array. Use record_potential_iterator_use for modes.
19531 2012-06-13 Oleg Endo <olegendo@gcc.gnu.org>
19534 * config/sh/sh.md (bswapsi2): New expander.
19535 (swapbsi2): New insn.
19537 2012-06-13 H.J. Lu <hongjiu.lu@intel.com>
19540 * config/i386/i386.c (ix86_tune_cost): New variable.
19541 (ix86_option_override_internal): Set ix86_tune_cost. Use
19542 ix86_tune_cost for simultaneous_prefetches, prefetch_block,
19543 l1_cache_size and l2_cache_size.
19545 2012-06-13 Richard Guenther <rguenther@suse.de>
19547 * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
19548 Handle meeting two VR_RANGE to an VR_ANTI_RANGE. Implement
19549 all possible meetings of VR_RANGE with VR_ANTI_RANGE and
19550 VR_ANTI_RANGE with VR_ANTI_RANGE.
19552 2012-06-13 Richard Earnshaw <rearnsha@arm.com>
19554 * config.gcc (unsupported): Move obsoleted FPA-based configurations
19556 (obsolete): ... here.
19557 (arm*-*-freebsd*): Remove.
19558 (arm*-*-linux*): Only accept EABI variants. Simplify logic.
19559 (arm*-*-uclinux*): Likewise.
19560 (arm*-*-ecos-elf): Remove.
19561 (arm*-*-rtems*): Remove.
19562 (arm*-*-elf): Remove.
19563 (arm*-wince-pe*): Remove.
19564 (arm, --with-fpu): Remove support for fpa and Maverick variants.
19565 * arm/ecos-elf.h: Delete.
19566 * arm/t-strongarm-elf: Delete.
19567 * arm/rtems-elf.h: Delete.
19568 * arm/wince-pe.h: Delete.
19569 * arm/pe.c: Delete.
19570 * arm/pe.h: Delete.
19571 * arm/t-wince-pe: Delete.
19573 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
19575 PR tree-optimization/53647
19576 * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
19577 targets with no defined cache line size.
19579 2012-06-13 Bill Schmidt <wschmidt@linux.ibm.com>
19581 * targhooks.c (default_builtin_vectorized_conversion): Handle
19582 vec_construct, using vectype to base cost on subparts.
19583 * target.h (enum vect_cost_for_stmt): Add vec_construct.
19584 * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
19585 instead of scalar_to-vec.
19586 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
19587 vec_construct in same way as default for now.
19588 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
19589 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
19590 Handle vec_construct, including special case for 32-bit loads.
19592 2012-06-13 Xinyu Qi <xyqi@marvell.com>
19594 * config/arm/arm.c (FL_IWMMXT2): New define.
19595 (arm_arch_iwmmxt2): New variable.
19596 (arm_option_override): Enable use of iWMMXt with VFP.
19597 Disable use of iWMMXt with NEON. Disable use of iWMMXt under
19598 Thumb mode. Set arm_arch_iwmmxt2.
19599 (arm_expand_binop_builtin): Accept VOIDmode op.
19600 (enum arm_builtins): Revise built-in fcode.
19601 (IWMMXT2_BUILTIN): New define.
19602 (IWMMXT2_BUILTIN2): Likewise.
19603 (iwmmx2_mbuiltin): Likewise.
19604 (builtin_description bdesc_2arg): Revise built in declaration.
19605 (builtin_description bdesc_1arg): Likewise.
19606 (arm_init_iwmmxt_builtins): Revise built in initialization.
19607 (arm_expand_builtin): Revise built in expansion.
19608 (arm_output_iwmmxt_shift_immediate): New function.
19609 (arm_output_iwmmxt_tinsr): Likewise.
19610 * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
19611 (arm_output_iwmmxt_tinsr): Likewise.
19612 * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
19613 (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
19614 (rorv4hi3, rorv2si3, rordi3): Likewise.
19615 (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
19616 (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
19617 (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
19618 (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
19619 (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
19620 (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
19621 (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
19622 (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
19623 (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
19624 (ror<mode>3, ror<mode>3_di): Likewise.
19625 (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
19626 (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
19627 (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
19628 (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
19629 (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
19630 (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
19631 (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
19632 (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
19633 (All instruction patterns): Add wtype attribute.
19634 (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
19635 (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
19636 (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
19637 (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
19638 (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
19639 (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
19640 (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
19641 (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
19642 (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
19643 (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
19644 (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
19645 (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
19646 (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
19647 (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
19648 (iwmmxt2.md): Include.
19649 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
19650 (TARGET_IWMMXT2): New define.
19651 (TARGET_REALLY_IWMMXT2): Likewise.
19652 (arm_arch_iwmmxt2): Declare.
19653 * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
19654 Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
19655 Use C name-mangling for intrinsics.
19656 (__v8qi): Redefine.
19657 (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
19658 (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
19659 (_m_from_int): Likewise.
19660 (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
19661 (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
19662 (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
19663 (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
19664 (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
19665 (_mm_tbcst_pi32): Likewise.
19666 (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
19667 (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
19668 (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
19669 (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
19670 (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
19671 (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
19672 (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
19673 (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
19674 (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
19675 (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
19676 (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
19677 (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
19678 (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
19679 (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
19680 (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
19681 (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
19682 (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
19683 (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
19684 (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
19685 (_m_to_int): New define.
19686 * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
19687 * config/arm/arm-arches.def (iwmmxt2): Likewise.
19688 * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
19690 * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
19691 (arch): Add "iwmmxt2".
19692 (arch_enabled): Handle "iwmmxt2".
19693 (wtype): New attribute.
19694 (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
19695 (UNSPEC_WALIGNI): New unspec.
19696 * config/arm/predicates.md (imm_or_reg_operand): New predicate.
19697 * config/arm/iterators.md (VMMX2): New mode_iterator.
19698 * config/arm/marvell-f-iwmmxt.md: New file.
19699 * config/arm/iwmmxt2.md: New file.
19701 2012-06-12 Jakub Jelinek <jakub@redhat.com>
19706 * c-decl.c (build_compound_literal): Call c_incomplete_type_error
19707 if type isn't complete.
19709 2012-06-12 Uros Bizjak <ubizjak@gmail.com>
19711 * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
19713 2012-06-12 Richard Henderson <rth@redhat.com>
19715 * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
19716 iterator instead of INT.
19718 2012-06-12 Bill Schmidt <wschmidt@linux.ibm.com>
19720 * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
19721 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
19723 (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
19724 (tree_ssa_phiopt): Call gate_hoist_loads.
19725 (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
19726 (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
19727 hoist_adjacent_loads.
19728 (local_mem_dependence): New function.
19729 (hoist_adjacent_loads): Likewise.
19730 (gate_hoist_loads): Likewise.
19731 * common.opt (fhoist-adjacent-loads): New switch.
19732 * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
19734 2012-06-12 Michael Matz <matz@suse.de>
19736 * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
19737 (nonoverlapping_memrefs_p): Don't call it here ...
19738 (true_dependence_1): ... but here.
19740 2012-06-12 Richard Guenther <rguenther@suse.de>
19742 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
19743 * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
19744 and MEM_SIZE only refines it. Reflect that and be less conservative
19745 if either of the latter is not known.
19747 2012-06-12 Jakub Jelinek <jakub@redhat.com>
19749 PR rtl-optimization/53589
19750 * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
19751 discovery even when e->dest != target. If any LABEL_REF points
19752 to e->dest label, redirect it to target's label.
19754 2012-06-12 Chung-Lin Tang <cltang@codesourcery.com>
19756 * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
19757 condition for generating REG_FRAME_RELATED_EXPR note.
19758 (pop): Add code for generating REG_CFA_RESTORE,
19759 REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
19760 (sh_expand_epilogue): Use frame_insn() for FP to SP move.
19761 Set 'frame_p' of calls to output_stack_adjust() to 'true'.
19763 2012-06-11 Richard Henderson <rth@redhat.com>
19765 * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
19766 * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
19768 * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
19770 2012-06-12 Hans-Peter Nilsson <hp@axis.com>
19772 * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
19773 Mention that this hook needs to be defined for native TLS.
19774 * doc/tm.texi: Regenerate.
19776 2012-06-11 Mike Stump <mikestump@comcast.net>
19778 * emit-rtl.c (init_emit_once): Iterate through the
19779 MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
19780 MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
19781 all the MIN_MODE_PARTIAL_INT modes anymore.
19783 2012-06-12 Maxim Kuvyrkov <maxim@codesourcery.com>
19785 * config/mips/mips-tables.opt (xlp): Fix merge typo.
19787 2012-06-11 Roland McGrath <mcgrathr@google.com>
19789 * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
19790 SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
19791 not a VAR_DECL. Also don't limit it to UNSPECs with exactly one
19794 2012-06-11 Oleg Endo <olegendo@gcc.gnu.org>
19797 * config/sh/sh.md (fmasf4): New expander.
19798 (*macsf3): Rename to fmasf4_i. Adapt to fma pattern.
19799 (mac_media): Rename to fmasf4_media. Adapt to fma pattern.
19800 * config/sh/sh.opt (mfused-madd): Remove.
19801 * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
19802 (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
19803 * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
19805 * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
19808 2012-06-11 Richard Henderson <rth@redhat.com>
19810 * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
19812 2012-06-11 Richard Guenther <rguenther@suse.de>
19814 PR middle-end/53470
19815 * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
19816 replace it with the first non-BLOCK context.
19818 2012-06-11 Richard Guenther <rguenther@suse.de>
19820 * alias.c (aliases_everything_p): Remove.
19821 (DIFFERENT_ALIAS_SETS_P): Likewise.
19822 (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
19823 Do not use aliases_everything_p or special-case ANDs. Do not
19824 special-case BLKmode moves.
19825 (may_alias_p): Likewise. Handle BLKmode similar like everywhere
19828 2012-06-09 Hans-Peter Nilsson <hp@axis.com>
19830 Fix CRIS build errors with --enable-build-with-cxx.
19831 * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
19832 variable "and" to "andop".
19833 * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
19834 temporary variable for memory model, passing C++-type-correct
19835 parameter type to expand_mem_thread_fence.
19836 ("atomic_compare_and_swap<mode>"): Ditto.
19838 2012-06-09 Richard Henderson <rth@redhat.com>
19841 * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
19842 (pass_jump): Rename from pass_jump2.
19843 (execute_jump2, pass_jump2): New.
19844 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
19845 perform cfg cleanup here. Move the test of PUSH_ROUNDING
19846 and ACCUMULATE_OUTGOING_ARGS test...
19847 (gate_handle_stack_adjustments): ... here.
19848 * passes.c (init_optimization_passes): Update for pass_jump2 rename.
19849 Place new pass_jump2 after pass_stack_adjustments.
19850 * tree-pass.h (pass_jump): Declare.
19852 2012-06-09 Kenneth Zadeck <zadeck@naturalbridge.com>
19854 * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
19857 2012-06-08 Richard Henderson <rth@redhat.com>
19860 * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
19861 note to a clobber insn when no other insn is available.
19863 2012-06-08 Georg-Johann Lay <avr@gjlay.de>
19865 * config/avr/avr.c (avr_case_values_threshold): Return 7.
19867 2012-06-07 Andreas Schwab <schwab@linux-m68k.org>
19869 * genhooks.c (main): Set progname.
19870 (emit_documentation): Remove variable found_start, always bail out
19871 when a place is missing.
19872 * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
19874 2012-06-07 Jakub Jelinek <jakub@redhat.com>
19876 PR middle-end/53580
19877 * omp-low.c (scan_omp): Change first argument to gimple_seq *,
19878 call walk_gimple_seq_mod instead of walk_gimple_seq.
19879 (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
19880 scan_omp_for, scan_omp_sections, scan_omp_single,
19881 execute_lower_omp): Adjust callers.
19882 (scan_omp_1_stmt): Likewise. If check_omp_nesting_restrictions
19883 returns false, replace stmt with GIMPLE_NOP.
19884 (check_omp_nesting_restrictions): Instead of issuing warnings,
19885 issue errors and return false if any errors were reported.
19887 2012-06-06 Steven Bosscher <steven@gcc.gnu.org>
19889 * doc/invoke.texi (fconserve-space): Remove documentation.
19891 2012-06-06 Edmar Wienskoski <edmar@freescale.com>
19893 * config/rs6000/rs6000-tables.opt: Regenerated.
19895 2012-06-06 Richard Guenther <rguenther@suse.de>
19897 PR tree-optimization/53081
19898 * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
19899 (adjacent_dr_p): ... this and make it work for reads, too.
19900 * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
19901 (struct partition_s): Change main_stmt to main_dr, add
19902 secondary_dr member.
19903 (build_size_arg_loc): Change to date data-reference and not
19905 (build_addr_arg_loc): New function split out from ...
19906 (generate_memset_builtin): ... here. Use it and simplify.
19907 (generate_memcpy_builtin): New function.
19908 (generate_code_for_partition): Adjust.
19909 (classify_partition): Streamline pattern detection. Detect memcpy.
19910 (ldist_gen): Adjust.
19911 (tree_loop_distribution): Adjust seed statements for memcpy
19914 2012-06-06 Matt Turner <mattst88@gmail.com>
19916 * config/arm/mmintrin.h (_mm_empty): New.
19919 2012-06-06 Richard Sandiford <r.sandiford@uk.ibm.com>
19921 * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
19922 * common.opt (fsched-pressure-algorithm=): Remove.
19923 * flag-types.h (sched_pressure_algorithm): Move to...
19924 * sched-int.h (sched_pressure_algorithm): ...here.
19925 * params.def (sched-pressure-algorithm): New param.
19926 * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
19927 * common/config/s390/s390-common.c (s390_option_optimization_table):
19928 Remove OPT_fsched_pressure_algorithm_ entry.
19929 * config/s390/s390.c (s390_option_override): Set a default value for
19930 PARAM_SCHED_PRESSURE_ALGORITHM.
19932 2012-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
19935 * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
19936 doing an unsigned compare, make sure the second argument is not a
19938 (rs6000_emit_cmove): Don't allow floating point comparisons when
19939 generating ISEL moves.
19941 2012-06-05 Edmar Wienskoski <edmar@freescale.com>
19943 * config/rs6000/e5500.md: New file.
19944 * config/rs6000/e6500.md: New file.
19945 * config/rs6000/rs6000.c (processor_costs): Add new costs for
19947 (rs6000_option_override_internal): Altivec and Spe options not
19948 allowed with e5500. Spe options not allowed with e6500. Increase
19949 move inline limit for e5500 and e6500. Disable string instructions
19950 for e5500 and e6500. Enable branch targets alignment for e5500 and
19951 e6500. Initialize rs6000_cost for e5500 and e6500.
19952 (rs6000_adjust_cost): Add extra scheduling cycles between compare
19953 and brnach for e5500 and e6500.
19954 (rs6000_issue_rate): Set issue rate for e5500 and e6500.
19955 * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
19957 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
19958 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
19960 Include e5500.md and e6500.md.
19961 * config/rs6000/rs6000-opt.h (processor_type): Add
19962 PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
19963 * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
19964 (powerpc*-*-*): Add new cores e5500, e6500.
19965 * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
19967 2012-06-05 Richard Guenther <rguenther@suse.de>
19969 * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
19971 2012-06-05 H.J. Lu <hongjiu.lu@intel.com>
19974 * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
19975 is used for x86_64-*-*.
19977 2012-06-05 Richard Guenther <rguenther@suse.de>
19979 PR tree-optimization/30442
19980 * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
19981 vectorization stop analysis at the first stmt we cannot compute
19982 a data-reference for instead of giving up completely.
19984 2012-06-05 Richard Guenther <rguenther@suse.de>
19986 * tree-loop-distribution.c (struct partition_s): Add has_writes member.
19987 (partition_alloc): Initialize it.
19988 (partition_has_writes): New function.
19989 (rdg_flag_uses): Adjust.
19990 (rdg_flag_vertex): Likewise.
19991 (rdg_flag_vertex_and_dependent): Likewise.
19992 (rdg_flag_loop_exits): Likewise.
19993 (build_rdg_partition_for_component): Likewise.
19994 (rdg_build_partitions): Likewise.
19996 2012-06-05 Richard Guenther <rguenther@suse.de>
19998 PR tree-optimization/53081
19999 * tree-loop-distribution.c (generate_memset_builtin): Handle all
20000 kinds of byte-sized stores.
20001 (classify_partition): Likewise.
20002 (tree_loop_distribution): Adjust seed statements used for
20003 !flag_tree_loop_distribution.
20005 2012-06-05 Alan Modra <amodra@gmail.com>
20007 * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
20008 (rs6000_emit_prologue): Ensure register used for inline saves
20009 of vector regs is not the static chain register. Revise comment.
20011 2012-06-04 Oleg Endo <olegendo@gcc.gnu.org>
20013 * doc/md.texi (Standard Pattern Names For Generation): Document
20016 2012-06-04 H.J. Lu <hongjiu.lu@intel.com>
20019 * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
20021 2012-06-04 Jason Merrill <jason@redhat.com>
20023 * dwarf2out.c (is_unit_die): New.
20024 (copy_declaration_context, copy_ancestor_tree): Use it.
20025 (copy_decls_walk): Likewise.
20027 2012-06-04 Paolo Carlini <paolo.carlini@oracle.com>
20030 * doc/invoke.texi (Wenum-compare): Update documentation.
20032 2012-06-04 Dodji Seketeli <dodji@redhat.com>
20034 PR preprocessor/53463
20035 * parser.c (cp_parser_assignment_expression): Use the location
20036 for the '=' as the default location for the expression.
20038 2012-06-04 Edmar Wienskoski <edmar@freescale.com>
20041 * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
20043 (altivec_stvlxl): Ditto.
20044 (altivec_stvrx): Ditto.
20045 (altivec_stvrxl): Ditto.
20047 2012-06-04 Vladimir Makarov <vmakarov@redhat.com>
20049 * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
20050 (ira_uniform_class_p): New macro.
20052 * ira.c (setup_uniform_class_p): New function.
20053 (setup_allocno_and_important_classes): Call the function.
20054 (print_unform_and_important_classes): New function.
20055 (print_classes): Rename to print_translated_classes.
20056 (ira_debug_allocno_classes): Add call of
20057 print_unform_and_important_classes.
20059 * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
20060 classes instead of pressure classes.
20062 2012-06-04 Aldy Hernandez <aldyh@redhat.com>
20064 PR middle-end/47530
20065 * trans-mem.c (expand_block_edges): Do not skip the first
20066 statement when resetting the BB.
20068 2012-06-04 Richard Guenther <rguenther@suse.de>
20070 * tree-data-ref.c (stores_from_loop): Remove.
20071 (stmt_with_adjacent_zero_store_dr_p): Likewise.
20072 (stores_zero_from_loop): Likewise.
20073 * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
20074 stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
20075 (adjacent_store_dr_p): New function.
20076 * tree-loop-distribution.c (generate_memset_builtin): Pass
20077 the RDG, use the already available data-reference.
20078 (generate_code_for_partition): Pass down RDG.
20079 (classify_partition): Inline parts of the former
20080 stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
20081 (ldist_gen): Remember if there was any detected builtin and
20082 do less work if not and flag_tree_loop_distribution is not set.
20083 (tree_loop_distribution): Inline and fuse stores_from_loop
20084 and stores_zero_from_loop here.
20086 2012-06-04 Richard Guenther <rguenther@suse.de>
20088 PR middle-end/53471
20089 * dwarf2out.c (dwarf2out_finish): If generating LTO do not
20090 create new assembler names.
20092 2012-06-04 Richard Guenther <rguenther@suse.de>
20094 * tree-data-ref.c (struct rdg_vertex_info): Remove.
20095 (rdg_vertex_for_stmt): Simplify using gimple_uid.
20096 (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
20097 hashtable. Record stmt data-references.
20098 (hash_stmt_vertex_info): Remove.
20099 (eq_stmt_vertex_info): Likewise.
20100 (hash_stmt_vertex_del): Likewise.
20101 (build_empty_rdg): Simplify.
20102 (build_rdg): Adjust.
20103 (free_rdg): Likewise.
20104 (ref_base_address): Remove.
20105 (have_similar_memory_accesses): Likewise.
20106 * tree-data-ref.h (create_rdg_vertices): Remove.
20107 (struct rdg_vertex): Add datarefs member.
20108 (RDGV_DATAREFS): New define.
20109 (RDG_DATAREFS): Likewise.
20110 (have_similar_memory_accesses): Remove.
20111 (rdg_has_similar_memory_accesses): Likewise.
20112 * tree-loop-distribution.c (ref_base_address): Re-implement here.
20113 (similar_memory_accesses): Re-implement using existing data-references.
20114 (tree_loop_distribution): Initialize stmt uids for the stmt to
20116 * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
20117 access stmt vinfo for stmts in loop.
20119 2012-06-04 Andreas Schwab <schwab@linux-m68k.org>
20122 * config/m68k/m68k.md ("tablejump"): Fix check for
20123 CASE_VECTOR_PC_RELATIVE.
20125 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
20127 * output.h (merge_weak, assemble_alias,
20128 initializer_constant_valid_p,
20129 initializer_constant_valid_for_bitfield_p): Move protos from here...
20130 * tree.h: ... to here.
20131 * cgraphclones.c: Do not include output.h.
20132 * gimplify.c: Likewise.
20133 * reload.c: Likewise.
20134 * recog.c: Likewise.
20135 * tree-ssa-loop-ivopts.c: Likewise.
20136 * tree-switch-conversion.c: Likewise.
20137 * c-parser.c: Likewise.
20138 * c-typeck.c: Likewise.
20139 * Makefile.in: Fix dependencies.
20141 2012-06-04 Georg-Johann Lay <avr@gjlay.de>
20144 * config/avr/avr-stdint.h: New file.
20145 * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
20148 2012-06-04 Jakub Jelinek <jakub@redhat.com>
20150 PR tree-optimization/53550
20151 * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
20152 is POINTER_TYPE_P, use sizetype as step type instead of type.
20154 2012-06-04 Richard Guenther <rguenther@suse.de>
20156 * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
20157 (ref_base_address_1): Likewise.
20158 (remove_similar_memory_refs): Likewise.
20159 * tree-data-ref.h (remove_similar_memory_refs): Remove.
20160 * tree-loop-distribution.c (classify_partition): Do not classify
20161 as builtin if -ftree-loop-distribute-patterns is not enabled.
20162 (fuse_partitions_with_similar_memory_accesses): Inline ...
20163 (ldist_gen): ... here. Fuse all non-builtin partitions if
20164 -ftree-loop-distribution is not enabled. Properly return
20165 the number of created partitions. Do not update SSA form here but ...
20166 (tree_loop_distribution): ... once here for the whole function.
20167 Only walk innermost loops, constrain loops we consider here
20168 further. Do not call remove_similar_memory_refs.
20169 (distribute_loop): Do not check number of loop nodes here.
20171 2012-06-04 Steven Bosscher <steven@gcc.gnu.org>
20173 * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
20175 2012-06-03 Martin Jambor <mjambor@suse.cz>
20177 * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
20178 (ipa_get_jf_known_type_base_type): Likewise.
20179 (ipa_get_jf_known_type_component_type): Likewise.
20180 (ipa_get_jf_constant): Likewise.
20181 (ipa_get_jf_pass_through_formal_id): Likewise.
20182 (ipa_get_jf_pass_through_operation): Likewise.
20183 (ipa_get_jf_ancestor_offset): Likewise.
20184 (ipa_get_jf_ancestor_type): Likewise.
20185 (ipa_get_jf_ancestor_formal_id): Likewise.
20186 (ipa_get_jf_member_ptr_pfn): Likewise.
20187 * ipa-prop.c (ipa_set_jf_known_type): New function.
20188 (ipa_set_jf_constant): Likewise.
20189 (ipa_set_jf_simple_pass_through): Likewise.
20190 (ipa_set_jf_arith_pass_through): Likewise.
20191 (ipa_set_ancestor_jf): Likewise.
20192 (fill_member_ptr_cst_jump_function): Moved up and renamed to
20193 ipa_set_jf_member_ptr_cst.
20194 (detect_type_change_1): Use the new jump function creation functions.
20195 (compute_complex_assign_jump_func): Likewise.
20196 (compute_complex_ancestor_jump_func): Likewise.
20197 (compute_known_type_jump_func): Likewise.
20198 (compute_scalar_jump_functions): Likewise.
20199 (compute_pass_through_member_ptrs): Likewise.
20200 (determine_cst_member_ptr): Likewise.
20201 (combine_known_type_and_ancestor_jfs): Likewise.
20202 (try_make_edge_direct_simple_call): Likewise.
20203 (try_make_edge_direct_virtual_call): Likewise.
20204 (update_indirect_edges_after_inlining): Likewise.
20205 * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
20206 access functions. Incorporat NOP_EXPR and BINFO handling from its
20208 (ipa_get_jf_ancestor_result): Likewise. Incorporate handling BINFOs
20209 which was in its callers.
20210 (ipa_value_from_jfunc): Use jump function access functions. Some
20211 functionality moved to functions above.
20212 (propagate_vals_accross_ancestor): Likewise.
20213 (propagate_vals_accross_pass_through): Use jump function access
20215 (propagate_accross_jump_function): Likewise.
20216 * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
20218 (inline_merge_summary): Likewise.
20220 2012-06-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20222 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
20223 * config/pa/pa.c (pa_attr_length_millicode_call): Use
20224 MAX_PCREL17F_OFFSET instead of fixed offset.
20225 (pa_attr_length_call): Likewise.
20226 (pa_attr_length_indirect_call): Likewise.
20228 2012-06-03 Oleg Endo <olegendo@gcc.gnu.org>
20231 * config/sh/sh.opt (mfsca, mfsrra): New options.
20232 * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
20234 (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
20235 (sinssf2, cossf2): Fold expanders to ...
20236 (sincossf3): ... this new expander. Use TARGET_FPU_ANY and
20237 TARGET_FSCA condition.
20238 * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
20240 * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
20241 -mno-fsca, -mfsrra, -mno-fsrra.
20243 2012-06-03 Matt Turner <mattst88@gmail.com>
20245 * config/mips/4600.md (r4700_imul_si): New.
20246 (r4700_imul_di): New.
20247 (r4700_fmul_single): New.
20248 (r4700_fmul_double): New.
20249 * config/mips/mips-cpus.def: Add r4700.
20250 * config/mips/mips.c: Likewise.
20251 * config/mips/mips.md: Likewise.
20252 * config/mips/mips-tables.opt: Regenerate.
20254 2012-06-02 Steven Bosscher <steven@gcc.gnu.org>
20256 * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
20257 new function sparc_initial_elimination_offset.
20258 * config/sparc/sparc.c (sparc_initial_elimination_offset): New
20260 * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
20263 2012-06-02 Kenneth Zadeck <zadeck@naturalbridge.com>
20265 * expmed.c (expand_mult, choose_multiplier): Change
20266 "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
20267 * expr.c (convert_modes): Likewise.
20268 * explow.c (plus_constant): Likewise.
20269 * fixed-value.c (fixed_saturate1, fixed_saturate2)
20270 (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
20271 (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
20272 (do_fixed_divide, do_fixed_divide, do_fixed_divide)
20273 (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
20274 (do_fixed_shift, fixed_convert, fixed_convert)
20275 (fixed_convert_from_int, fixed_convert_from_int)
20276 (fixed_convert_from_real): Likewise.
20277 * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
20278 (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
20279 * varasm.c (output_constructor_bitfield): Likewise.
20280 * tree-vrp.c (register_edge_assert_for_2): Likewise.
20281 * double-int.c (rshift_double, lshift_double): Likewise.
20282 * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
20284 * simplify-rtx.c (mode_signbit_p)
20285 (simplify_const_unary_operation, simplify_binary_operation_1)
20286 (simplify_immed_subreg): Likewise.
20287 * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
20288 * tree-vect-generic.c (build_replicated_const): Likewise.
20289 * dbxout.c (stabstr_O): Likewise.
20290 * emit-rtl.c (immed_double_int_const, immed_double_const)
20291 (gen_lowpart_common, init_emit_once): Likewise.
20292 * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
20293 (widest_int_cst_value, upper_bound_in_type): Likewise.
20294 * stor-layout.c (initialize_sizetypes, fixup_signed_type)
20295 (fixup_unsigned_type): Likewise.
20296 * real.c (real_to_integer2, real_from_integer): Likewise.
20297 * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
20298 (clz_loc_descriptor, mem_loc_descriptor): Likewise.
20300 2012-06-01 Eric Botcazou <ebotcazou@adacore.com>
20302 PR middle-end/53501
20303 * fold-const.c (fold_binary_loc): Refine previous change.
20305 2012-06-01 Olivier Hainque <hainque@adacore.com>
20307 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
20308 the "do {" part of the do-while(0) loop.
20310 2012-06-01 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
20312 * config/i386/i386.c (x86_sched_reorder): New function.
20313 Added new function x86_sched_reorder.
20315 2012-06-01 Richard Guenther <rguenther@suse.de>
20317 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
20319 (classify_partition): Likewise.
20321 2012-06-01 Richard Guenther <rguenther@suse.de>
20323 * tree-loop-distribution.c (enum partition_kind): New enum.
20324 (struct partition_s): Add kind and main_stmt members.
20325 (partition_alloc): Initialize kind to PKIND_NORMAL.
20326 (partition_builtin_p): New function.
20327 (copy_loop_before): Remove failure path and assert instead.
20328 (generate_loops_for_partition): Likewise.
20329 (generate_memset_zero): Fold into ...
20330 (generate_memset_builtin): ... this.
20331 (classify_partition): New function with code from
20332 can_generate_builtin and generate_builtin.
20333 (generate_builtin): Remove.
20334 (can_generate_builtin): Likewise.
20335 (fuse_partitions_with_similar_memory_accesses): Call
20336 partition_builtin_p instead of can_generate_builtin.
20337 (rdg_build_partitions): Do not call
20338 fuse_partitions_with_similar_memory_accesses here...
20339 (ldist_gen): ... but here after classifying all partitions.
20340 Remove failure path of generate_code_for_partition.
20341 (generate_code_for_partition): Generate code according
20342 to partition classification.
20344 2012-06-01 Manuel López-Ibáñez <manu@gcc.gnu.org>
20345 Jonathan Wakely <jwakely.gcc@gmail.com>
20348 * doc/invoke.texi (Warning Options): Explain purpose and differences
20349 between -Wmissing-prototypes and -Wmissing-declarations.
20351 2012-06-01 Christian Bruel <christian.bruel@st.com>
20353 * gcc.c (save_switch): Add user_p parameter.
20354 (read_specs): Likewise.
20355 (set_specs): Likewise.
20356 (validate_switches): Likewise.
20357 (validate_switches_from_spec): Likewise.
20358 (validate_all_switches): Pass on user_p parameter.
20359 (struct spec_list): Add user_p field.
20360 (struct switchstr): Add known field.
20361 (save_switch): Add known parameter.
20362 (INIT_STATIC_SPEC): Initialize user_p;
20363 (driver_unknown_option_callbac): call save_switch if
20364 OPT_SPECIAL_unknown.
20365 (driver_handle_option): Propagate OPT_specs.
20366 (do_spec_1): Set validated only if known.
20367 (check_live_switch): Likewise.
20368 (validate_switches): Set validated if known or user_spec.
20370 2012-06-01 Hans-Peter Nilsson <hp@axis.com>
20372 Add CRIS atomic patterns for 1, 2, and 4 bytes.
20373 * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
20374 * config/cris/cris-protos.h: Declare it.
20375 * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
20376 (TARGET_DEFAULT): Add alignment by 32.
20377 [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
20378 case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
20379 TARGET_CPU_DEFAULT == 32.
20380 (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
20381 * config/cris/cris.md: Include sync.md. Avoid allocating specific
20382 numbers by replacing the define_constants for all UNSPECs with the
20383 equivalent define_c_enum construct.
20384 * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
20385 * config/cris/sync.md: New file.
20387 2012-05-31 Matt Turner <mattst88@gmail.com>
20389 * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
20390 (r4600_imul_di): New.
20391 (r4600_idiv_si): Rename from r4600_idiv.
20392 (r4600_idiv_di): New.
20394 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
20396 * output.h (__gcc_host_wide_int__): Move to hwint.h.
20397 (decl_default_tls_model): Move to tree.h
20398 (dump_file): Move to system.h.
20399 (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
20400 dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
20401 dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
20402 dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
20403 dbxout_stab_value_zero, dbxout_stab_value_label_diff,
20404 dbxout_stab_value_internal_label,
20405 dbxout_stab_value_internal_label_diff): Move from here ...
20406 * dbxout.h: ... to here.
20407 * system.h (dump_file): Moved here from output.h.
20408 * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
20409 * tree.h (decl_default_tls_model): Moved here from output.h.
20410 * varasm.c (default_stabs_asm_out_destructor,
20411 default_stabs_asm_out_constructor): Move from here ...
20412 * dbxout.c: ... to here.
20414 * gcov-dump.c (dump_file): Rename to dump_gcov_file. Update callers.
20416 * collect2.h (dump_file): Rename to dump_ld_file.
20417 * collect2.c: Likewise.
20418 * tlink.c: Likewise.
20420 * alias.c: Do not include output.h.
20421 * auto-inc-dec.c: Likewise.
20422 * bt-load.c: Likewise.
20423 * caller-save.c: Likewise.
20425 * cfgbuild.c: Likewise.
20426 * cfgcleanup.c: Likewise.
20427 * cfglayout.c: Likewise.
20428 * cfgloop.c: Likewise.
20429 * cfgloopanal.c: Likewise.
20430 * cfgloopmanip.c: Likewise.
20431 * cfgrtl.c: Likewise.
20432 * cgraph.c: Likewise.
20433 * cgraphclones.c: Likewise.
20434 * combine-stack-adj.c: Likewise.
20435 * combine.c: Likewise.
20436 * cprop.c: Likewise.
20438 * cselib.c: Likewise.
20439 * dbgcnt.c: Likewise.
20440 * df-problems.c: Likewise.
20441 * df-scan.c: Likewise.
20442 * dojump.c: Likewise.
20443 * fwprop.c: Likewise.
20444 * gcse.c: Likewise.
20445 * graph.c: Likewise.
20446 * haifa-sched.c: Likewise.
20447 * hw-doloop.c: Likewise.
20448 * ipa-inline-transform.c: Likewise.
20449 * ipa-pure-const.c: Likewise.
20450 * ipa-reference.c: Likewise.
20451 * ipa-utils.c: Likewise.
20452 * ira-build.c: Likewise.
20453 * ira-emit.c: Likewise.
20455 * loop-doloop.c: Likewise.
20456 * loop-invariant.c: Likewise.
20457 * loop-iv.c: Likewise.
20458 * loop-unroll.c: Likewise.
20459 * loop-unswitch.c: Likewise.
20460 * lto-cgraph.c: Likewise.
20461 * lto-section-in.c: Likewise.
20462 * lto-streamer-in.c: Likewise.
20464 * mode-switching.c: Likewise.
20465 * postreload-gcse.c: Likewise.
20466 * postreload.c: Likewise.
20467 * predict.c: Likewise.
20468 * profile.c: Likewise.
20470 * reg-stack.c: Likewise.
20471 * regcprop.c: Likewise.
20472 * regmove.c: Likewise.
20473 * regstat.c: Likewise.
20474 * reload1.c: Likewise.
20475 * sched-ebb.c: Likewise.
20476 * sel-sched-dump.c: Likewise.
20477 * simplify-rtx.c: Likewise.
20478 * stor-layout.c: Likewise.
20479 * store-motion.c: Likewise.
20480 * tracer.c: Likewise.
20481 * tree-affine.c: Likewise.
20482 * tree-cfg.c: Likewise.
20483 * tree-cfgcleanup.c: Likewise.
20484 * tree-dfa.c: Likewise.
20485 * tree-into-ssa.c: Likewise.
20486 * tree-nomudflap.c: Likewise.
20487 * tree-optimize.c: Likewise.
20488 * tree-pretty-print.c: Likewise.
20489 * tree-profile.c: Likewise.
20490 * tree-ssa-address.c: Likewise.
20491 * tree-ssa-ccp.c: Likewise.
20492 * tree-ssa-copy.c: Likewise.
20493 * tree-ssa-dom.c: Likewise.
20494 * tree-ssa-loop-ch.c: Likewise.
20495 * tree-ssa-loop-im.c: Likewise.
20496 * tree-ssa-loop-manip.c: Likewise.
20497 * tree-ssa-loop-niter.c: Likewise.
20498 * tree-ssa-loop-prefetch.c: Likewise.
20499 * tree-ssa-loop-unswitch.c: Likewise.
20500 * tree-ssa-loop.c: Likewise.
20501 * tree-ssa-propagate.c: Likewise.
20502 * tree-ssa-structalias.c: Likewise.
20503 * tree-ssa-tail-merge.c: Likewise.
20504 * tree-ssa-threadedge.c: Likewise.
20505 * tree-ssa-threadupdate.c: Likewise.
20506 * tree-ssa-uncprop.c: Likewise.
20507 * tree-ssa-uninit.c: Likewise.
20508 * tree-ssa.c: Likewise.
20509 * value-prof.c: Likewise.
20510 * var-tracking.c: Likewise.
20513 * config/m32r/m32r.c: Include dbxout.h.
20514 * config/pa/pa.c: Likewise.
20515 * config/rs6000/rs6000.c: Likewise.
20517 * Makefile.in: Fix dependencies.
20518 * config/rs6000/t-rs5000: Likewise.
20520 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
20522 * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
20523 * gimple.h (block_in_transaction): Check for flag_tm.
20525 2012-05-31 Aldy Hernandez <aldyh@redhat.com>
20527 PR tree-optimization/52558
20528 * cfg.c (alloc_aux_for_edge): Fix comment.
20529 (alloc_aux_for_edge): Remove static.
20530 * basic-block.h (alloc_aux_for_edge): Protoize.
20531 * tree-ssa-loop-im.c (execute_sm_if_changed): New.
20532 (execute_sm_if_changed_flag): New.
20533 (execute_sm_if_changed_flag_set): New.
20534 (execute_sm): Do not generate data races unless requested.
20535 (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
20536 (tree_ssa_lim_finalize): Call free_aux_for_edges.
20537 * gimple.h (block_in_transaction): New.
20538 (gimple_in_transaction): Use block_in_transaction.
20540 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
20543 * config/avr/avr.opt (-msp8): Document it.
20544 * doc/invoke.texi (AVR Options): Ditto. And document related
20547 2012-05-31 Diego Novillo <dnovillo@google.com>
20549 * configure.ac (CXX_FOR_BUILD): Define and substitute.
20550 (BUILD_CXXFLAGS): Define and substitute.
20551 * Makefile.in (BUILD_CXXFLAGS): Define.
20552 (CXX_FOR_BUILD): Define.
20553 (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
20554 (LINKER_FOR_BUILD): Likewise.
20555 (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
20556 (BUILD_LINKERFLAGS): Likewise.
20557 * configure: Regenerate.
20559 2012-05-31 Steven Bosscher <steven@gcc.gnu.org>
20561 * Makefile.in: Fix many dependencies.
20562 * tree-profile.c: Don't include regs.h.
20563 * tree-vectorizer.c: Don't include cfglayout.h.
20564 * tree-vect-stmts.c: Likewise.
20565 * tree-vect-slp.c: Likewise.
20566 * tree-vect-loop.c: Likewise.
20567 * reg-stack.c: Likewise.
20568 * tree-ssa-loop-manip.c: Likewise.
20569 * toplev.c: Likewise.
20570 * varasm.c: Don't include cfglayout.h, basic-block.h,
20571 and tree-iterator.h.
20572 * tree-cfgcleanup.c: Don't include cfglayout.h.
20573 * passes.c: Don't include cfglayout.h, dwarf2asm.h,
20574 dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
20575 * cgraphclones.c: Don't include plugin.h.
20577 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
20579 * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
20580 (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
20581 * doc/avr-mmcu.texi (svn:eol-style): Set to native.
20583 2012-05-31 Richard Guenther <rguenther@suse.de>
20585 * tree-loop-distribution.c (struct partition_s): New struct,
20586 typedef and vector type.
20587 (partition_alloc, partition_free): New functions.
20588 (generate_loops_for_partition, generate_builtin,
20589 generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
20590 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
20591 build_rdg_partition_for_component, can_generate_builtin,
20592 similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
20593 rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
20594 number_of_rw_in_partition, partition_contains_all_rw,
20595 ldist_gen): Use partition_t instead of bitmap.
20597 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
20599 * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
20600 * doc/avr-mmcu.texi: Regenerate.
20602 2012-05-31 Richard Guenther <rguenther@suse.de>
20604 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
20605 Use FOR_EACH_SSA_DEF_OPERAND.
20606 (generate_builtin): Adjust.
20607 (stmt_generated_in_another_partition): Remove.
20608 (add_scalar_computations_to_partition): Likewise.
20609 (rdg_build_partitions): Do not call
20610 add_scalar_computations_to_partition.
20612 2012-05-31 Eric Botcazou <ebotcazou@adacore.com>
20614 * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
20615 double ints throughout.
20616 * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
20617 Check that the position of the field is representable as an integer.
20619 2012-05-31 Richard Guenther <rguenther@suse.de>
20621 * tree-data-ref.c (dr_analyze_innermost): Properly convert
20622 the MEM_REF offset to sizetype.
20624 2012-05-31 Georg-Johann Lay <avr@gjlay.de>
20626 * doc/invoke.texi (AVR Options): Fix typos.
20628 2012-05-31 Hans-Peter Nilsson <hp@axis.com>
20630 * config/cris/cris.h (CC1_SPEC): Pass through all -march=
20631 and -mcpu= options.
20632 (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
20633 non-v32 into --march=v0_v10.
20635 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20637 * ira-int.h (target_ira_int): Rename x_move_cost to
20638 x_ira_register_move_cost, x_may_move_in_cost to
20639 x_ira_may_move_in_cost and x_may_move_out_cost to
20640 x_ira_may_move_out_cost. Delete the old fields with
20641 those names and also x_ira_max_register_move_cost,
20642 x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
20643 (move_cost, may_move_in_cost, may_move_out_cost)
20644 (ira_max_register_move_cost, ira_max_may_move_in_cost)
20645 (ira_max_may_move_out_cost): Delete.
20646 * ira.c (init_move_cost): Rename to...
20647 (ira_init_register_move_cost): ...this, deleting the old
20648 function with that name. Apply above variable renamings.
20649 Retain asserts for null fields.
20650 (ira_init_once): Don't initialize register move costs here.
20651 (free_register_move_costs): Apply above variable renamings.
20652 Remove code for deleted fields.
20654 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20656 * ira.c (init_move_cost): Adjust choice of subclasses to match
20657 the current ira_init_register_move_cost choice. Use
20658 ira_class_subset_p instead of reg_class_subset_p.
20659 (ira_init_register_move_cost): Assert that move_cost,
20660 may_move_in_cost and may_move_out_cost already hold the desired
20661 values for their ira_* equivalents. For the latter two,
20662 ignore classes that can't store a register of the given mode.
20664 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20666 * ira.c (setup_allocno_and_important_classes): Use
20667 ira_class_hard_regs_num to check whether a class has any
20668 allocatable registers.
20669 (ira_init_register_move_cost): Likewise.
20671 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20673 * ira.c (init_move_cost): Adjust local variable names to match
20674 file conventions. Use ira_assert instead of gcc_assert.
20676 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20678 * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
20679 Move these definitions and associated target_globals fields to...
20680 * ira-int.h: ...here.
20681 * rtl.h (init_move_cost): Delete.
20682 * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
20683 * ira.c: ...here, making the latter static.
20685 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20687 * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
20688 and ira_register_move_cost instead of init_move_cost and move_cost.
20690 2012-05-31 Richard Sandiford <rdsandiford@googlemail.com>
20692 * ira.h (target_ira): Delete x_ira_available_class_regs.
20693 (ira_available_class_regs): Delete.
20694 * ira.c (setup_available_class_regs): Delete.
20695 (setup_alloc_classes): Don't call it.
20696 (setup_pressure_classes): Use ira_class_hard_regs_num instead of
20697 ira_available_class_regs.
20698 * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
20699 (model_spill_cost): Likewise.
20700 * ira-build.c (low_pressure_loop_node_p): Likewise.
20701 * ira-color.c (color_pass): Likewise.
20702 * ira-emit.c (change_loop): Likewise.
20703 * ira-lives.c (inc_register_pressure, dec_register_pressure)
20704 (single_reg_class, ira_implicitly_set_insn_hard_regs)
20705 (process_bb_node_lives): Likewise.
20706 * loop-invariant.c (gain_for_invariant): Likewise.
20708 2012-05-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20711 * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
20712 (pa_section_type_flags): New.
20713 (pa_legitimate_constant_p): Revert previous change.
20715 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
20717 * ira.c (allocate_initial_values): Make static.
20719 2012-05-30 Uros Bizjak <ubizjak@gmail.com>
20721 * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
20722 Generate tls_initial_exec_64_sun only when !TARGET_X32.
20724 2012-05-30 Richard Guenther <rguenther@suse.de>
20726 PR middle-end/53501
20727 * fold-const.c (fold_binary_loc): Make sure to call
20728 fold_plusminus_mult_expr with the original sign of operands.
20730 2012-05-30 Steven Bosscher <steven@gcc.gnu.org>
20732 * Makefile.in: Fix many dependencies.
20733 (DWARF2_H): Depend on dwarf2.def.
20734 (RTL_ERROR_H): Depend on rtl-error.h.
20735 (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New. Replace
20736 all gimple-pretty-print.h and tree-pretty-print.h references.
20738 2012-05-30 Marc Glisse <marc.glisse@inria.fr>
20740 * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
20743 2012-05-30 Richard Guenther <rguenther@suse.de>
20745 PR middle-end/53522
20746 * tree-emutls.c (gen_emutls_addr): Do not add globals to
20749 2012-05-30 Eric Botcazou <ebotcazou@adacore.com>
20751 * explow.c (probe_stack_range): Restore simple control flow and stop
20752 again when the probe cannot be generated if HAVE_check_stack.
20754 2012-05-30 Jakub Jelinek <jakub@redhat.com>
20756 PR rtl-optimization/53519
20757 * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
20758 instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
20760 2012-05-30 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20762 * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
20764 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
20767 * doc/tm.texi: Update.
20768 * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
20769 * target.def (force_at_comp_dir): New hook.
20770 * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
20771 * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
20773 2012-05-29 Jack Howarth <howarth@bromo.med.uc.edu>
20775 * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
20777 (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
20778 (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
20780 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
20783 * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
20784 flag_unsafe_math_optimizations is set.
20785 * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
20786 Update description of -mfused-madd.
20788 2012-05-29 Oleg Endo <olegendo@gcc.gnu.org>
20791 * config/sh/predicates.md (atomic_arith_operand,
20792 atomic_logical_operand): New predicates.
20793 * config/sh/sh.c (sh_option_override): Check atomic options.
20794 * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
20795 UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
20796 (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
20797 UNSUPPORTED_HARD_ATOMIC_CPU.
20798 * config/sh/sync.md: Update description comments.
20799 (I12): New mode iterator.
20800 (fetchop_predicate, fetchop_constraint): New code attributes.
20801 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
20802 atomic_exchangesi_hard, atomic_exchange<mode>_hard,
20803 atomic_fetch_<fetchop_name>si_hard,
20804 atomic_fetch_<fetchop_name><mode>_hard,
20805 atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
20806 atomic_<fetchop_name>_fetchsi_hard,
20807 atomic_<fetchop_name>_fetch<mode>_hard,
20808 atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
20809 atomic_test_and_set_hard): New insns.
20810 (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
20811 atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
20812 atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
20813 atomic_test_and_set_soft): Use same formatting for the first line of
20814 the asm block as in new insns above.
20815 (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
20816 atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
20817 atomic_test_and_set): Integrate new *_hard insns into expanders.
20818 * config/sh/sh.opt (mhard-atomic): New option.
20819 * doc/invoke.texi (SH Options): Document it.
20821 2012-05-29 Meador Inge <meadori@codesourcery.com>
20823 * c-decl.c (c_push_function_context): Always create a new language
20825 (c_pop_function_context): Clear the language function created in
20826 c_push_function_context.
20828 2012-05-29 Matt Turner <mattst88@gmail.com>
20830 * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
20831 (define_bypass "ev6_fcmov"): New.
20833 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
20835 * integrate.c: Remove.
20836 * integrate.h: Remove.
20837 * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
20838 * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
20839 * config/rs6000/t-rs6000: Likewise
20840 * config/spu/t-spu-elf: Likewise.
20841 * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
20842 get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
20843 from integrate.h to here.
20844 (initial_value_entry): New prototype.
20845 * reload.h (allocate_initial_values): Remove prototype.
20846 * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
20847 * cse.c (fixed_base_plus_p): Don't handle virtual registers for
20849 * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
20850 set_decl_abstract_flags, set_block_abstract_flags): Move from
20851 integrate.c to here, the only user.
20852 * expmed.c (extract_fixed_bit_field): Remove outdated comment
20854 * function.c: Don't include integrate.h.
20855 (struct initial_value_pair, struct initial_value_struct,
20856 get_hard_reg_initial_val, has_hard_reg_initial_val,
20857 get_hard_reg_initial_reg, emit_initial_value_sets): Move from
20858 integrate.c to here.
20859 (initial_value_entry): New function.
20860 * genemit.c (main): Don't print integrate.h include line.
20861 * ira.c: Don't include integrate.h.
20862 (allocate_initial_values): Move from integrate.c to here.
20863 (ira): Update allocate_initial_values call.
20864 * tree-inline.c: Don't include integrate.h.
20865 (function_attribute_inlinable_p): Moved from integrate.c to here.
20866 * cfgexpand.c: Don't include integrate.h.
20867 * except.c: Likewise.
20868 * langhooks.c: Likewise.
20869 * passes.c: Likewise.
20870 * toplev.c: Likewise.
20871 * config/frv/frv.c: Likewise.
20872 * config/pa/pa.c: Likewise.
20873 * config/spu/spu.c: Likewise.
20874 * config/epiphany/epiphany.c: Likewise.
20875 * config/mep/mep.c: Likewise.
20876 * config/score/score.c: Likewise.
20877 * config/picochip/picochip.c: Likewise.
20878 * config/sh/sh.c: Likewise.
20879 * config/alpha/alpha.c: Likewise.
20880 * config/microblaze/microblaze.c: Likewise.
20881 * config/mips/mips.c: Likewise.
20882 * config/v850/v850.c: Likewise.
20883 * config/mmix/mmix.c: Likewise.
20884 * config/bfin/bfin.c: Likewise.
20885 * config/arm/arm.c: Likewise.
20886 * config/s390/s390.c: Likewise.
20887 * config/m32r/m32r.c: Likewise.
20888 * config/rs6000/rs6000.c: Likewise.
20889 * config/c6x/c6x.c: Include function.h instead of integrate.h.
20890 * config/tilegx/tilegx.c: Likewise.
20891 * config/tilepro/tilepro.c: Likewise.
20893 2012-05-29 Georg-Johann Lay <avr@gjlay.de>
20895 * config/avr/t-avr (s-avr-mmcu-texi): Call
20896 gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
20898 2012-05-29 Michael Matz <matz@suse.de>
20900 * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
20901 assign_temp): Remove 'keep' argument.
20902 (mark_temp_addr_taken): Remove prototype.
20903 * tree.h (expand_decl): Remove prototype.
20904 * function.c (struct temp_slot): Remove addr_taken and keep member.
20905 (assign_stack_temp_for_type) Don't initialize above, remove
20907 (assign_stack_temp, assign_temp): Remove keep argument.
20908 (mark_temp_addr_taken): Remove.
20909 (preserve_temp_slots): Remove handling of addr_taken and keep members.
20910 (free_temp_slots): Ditto.
20911 * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
20913 * stmt.c (expand_asm_operands): Remove dead code.
20914 (expand_decl): Remove.
20915 * c-decl.c (finish_struct): Don't call expand_decl.
20916 * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
20917 and assign_stack_temp.
20918 * calls.c (save_fixed_argument_area, initialize_argument_information,
20919 expand_call, emit_library_call_value_1, store_one_arg): Ditto.
20920 * expmed.c (extract_bit_field_1): Ditto.
20921 * expr.c (emit_group_load_1, emit_group_store,
20922 copy_blkmode_from_reg, emit_push_insn, expand_assignment,
20923 store_field, expand_constructor, expand_cond_expr_using_cmove,
20924 expand_expr_real_2, expand_expr_real_1): Ditto.
20925 * stmt.c (expand_asm_operands, expand_return): Ditto.
20927 * function.c (pop_temp_slots): Call free_temp_slots.
20928 * calls.c (store_one_arg): Don't call preserve_temp_slots or
20930 * expr.c (expand_assignment): Don't call free_temp_slots.
20932 * config/arm/arm.c (neon_expand_vector_init): Ditto.
20933 * config/i386/i386.c (ix86_expand_vector_set): Ditto.
20934 (ix86_expand_vector_extract): Ditto.
20935 * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
20936 ia64_expand_movxf_movrf): Ditto.
20937 * config/mips/mips.c (mips_expand_vi_general): Ditto.
20938 * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
20939 extendsfdf2): Ditto.
20940 * config/rs6000/rs6000.c (rs6000_expand_vector_init,
20941 rs6000_expand_vector_set, rs6000_expand_vector_extract,
20942 rs6000_allocate_stack_temp): Ditto.
20943 * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
20944 * config/sparc/sparc.c (emit_soft_tfmode_libcall,
20945 sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
20946 sparc_expand_vector_init): Ditto.
20948 2012-05-29 Michael Matz <matz@suse.de>
20950 * c-tree.h (c_expand_decl): Remove prototype.
20952 * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
20954 (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
20955 * gimple-fold.c (canonicalize_constructor_val): Canonicalize
20956 COMPOUND_LITERAL_EXPR.
20957 * function.c (expand_function_start): Don't call expand_decl,
20958 instead assert that we have RTL assigned.
20959 * tree-ssa-live.c (remove_unused_locals): Clear
20960 nonlocal_goto_save_area if its backing variable is removed.
20961 * stmt.c (expand_asm_operands): Remove handling of non-lvalues
20963 (expand_decl): Assert that this does nothing.
20964 * calls.c (expand_call): Don't call mark_temp_addr_taken.
20966 2012-05-29 Richard Guenther <rguenther@suse.de>
20968 PR tree-optimization/53516
20969 * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
20971 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
20973 2012-05-29 Joseph Myers <joseph@codesourcery.com>
20975 * LANGUAGES: Fix typos.
20976 * Makefile.in: Fix typos.
20977 * alias.c: Fix typos.
20978 * auto-inc-dec.c: Fix typos.
20979 * bb-reorder.c: Fix typos.
20980 * cfgcleanup.c: Fix typos.
20981 * cgraph.c: Fix typos.
20982 * cgraph.h: Fix typos.
20983 * cgraphunit.c: Fix typos.
20984 * collect2-aix.h: Fix typos.
20985 * collect2.c: Fix typos.
20986 * compare-elim.c: Fix typos.
20987 * config/alpha/vms.h: Fix typos.
20988 * config/arm/README-interworking: Fix typos.
20989 * config/arm/arm.c: Fix typos.
20990 * config/arm/iterators.md: Fix typos.
20991 * config/arm/vxworks.h: Fix typos.
20992 * config/avr/avr.c: Fix typos.
20993 * config/avr/avr.h: Fix typos.
20994 * config/avr/avr.md: Fix typos.
20995 * config/avr/builtins.def: Fix typos.
20996 * config/c6x/c6x.c: Fix typos.
20997 * config/cr16/cr16.c: Fix typos.
20998 * config/cr16/cr16.md: Fix typos.
20999 * config/cris/cris.md: Fix typos.
21000 * config/darwin.c: Fix typos.
21001 * config/darwin.opt: Fix typos.
21002 * config/i386/i386-c.c: Fix typos.
21003 * config/i386/i386.c: Fix typos.
21004 * config/ia64/ia64.c: Fix typos.
21005 * config/m68k/cf.md: Fix typos.
21006 * config/mep/mep.c: Fix typos.
21007 * config/microblaze/microblaze.c: Fix typos.
21008 * config/microblaze/microblaze.h: Fix typos.
21009 * config/mn10300/mn10300.c: Fix typos.
21010 * config/mn10300/mn10300.md: Fix typos.
21011 * config/pa/pa.c: Fix typos.
21012 * config/picochip/picochip.h: Fix typos.
21013 * config/rs6000/a2.md: Fix typos.
21014 * config/rs6000/rs6000.c: Fix typos.
21015 * config/rs6000/vector.md: Fix typos.
21016 * config/rx/rx.md: Fix typos.
21017 * config/rx/rx.opt: Fix typos.
21018 * config/s390/2097.md: Fix typos.
21019 * config/s390/s390.c: Fix typos.
21020 * config/s390/s390.h: Fix typos.
21021 * config/sh/sh.c: Fix typos.
21022 * config/sh/sh.md: Fix typos.
21023 * config/sparc/sync.md: Fix typos.
21024 * config/spu/spu.c: Fix typos.
21025 * config/spu/spu.md: Fix typos.
21026 * config/vms/vms.c: Fix typos.
21027 * config/vxworks-dummy.h: Fix typos.
21028 * config/vxworks.h: Fix typos.
21029 * cselib.c: Fix typos.
21030 * df-scan.c: Fix typos.
21032 * doc/extend.texi: Fix typos.
21033 * doc/install.texi: Fix typos.
21034 * doc/invoke.texi: Fix typos.
21035 * doc/md.texi: Fix typos.
21036 * doc/plugins.texi: Fix typos.
21037 * doc/rtl.texi: Fix typos.
21038 * dse.c: Fix typos.
21039 * dwarf2asm.c: Fix typos.
21040 * dwarf2out.c: Fix typos.
21041 * except.h: Fix typos.
21042 * expr.c: Fix typos.
21043 * fold-const.c: Fix typos.
21044 * gcc.c: Fix typos.
21045 * gcse.c: Fix typos.
21046 * genautomata.c: Fix typos.
21047 * gengtype-state.c: Fix typos.
21048 * gengtype.c: Fix typos.
21049 * genhooks.c: Fix typos.
21050 * gimple-fold.c: Fix typos.
21051 * gimple-pretty-print.c: Fix typos.
21052 * gimple.c: Fix typos.
21053 * gimple.h: Fix typos.
21054 * gimplify.c: Fix typos.
21055 * graphite-interchange.c: Fix typos.
21056 * graphite-sese-to-poly.c: Fix typos.
21057 * ifcvt.c: Fix typos.
21058 * input.c: Fix typos.
21059 * ipa-cp.c: Fix typos.
21060 * ipa-inline-analysis.c: Fix typos.
21061 * ipa-inline-transform.c: Fix typos.
21062 * ipa-inline.c: Fix typos.
21063 * ipa-pure-const.c: Fix typos.
21064 * ipa-ref.h: Fix typos.
21065 * ipa-reference.c: Fix typos.
21066 * ipa-utils.c: Fix typos.
21067 * ipa.c: Fix typos.
21068 * ira-emit.c: Fix typos.
21069 * ira-lives.c: Fix typos.
21070 * lto-streamer.c: Fix typos.
21071 * lto-streamer.h: Fix typos.
21072 * lto-wrapper.c: Fix typos.
21073 * mcf.c: Fix typos.
21074 * mode-switching.c: Fix typos.
21075 * modulo-sched.c: Fix typos.
21076 * plugin.c: Fix typos.
21077 * postreload.c: Fix typos.
21078 * sched-deps.c: Fix typos.
21079 * sel-sched-ir.c: Fix typos.
21080 * sel-sched-ir.h: Fix typos.
21081 * sel-sched.c: Fix typos.
21082 * sese.c: Fix typos.
21083 * stor-layout.c: Fix typos.
21084 * target-hooks-macros.h: Fix typos.
21085 * target.def: Fix typos.
21086 * trans-mem.c: Fix typos.
21087 * tree-eh.c: Fix typos.
21088 * tree-predcom.c: Fix typos.
21089 * tree-sra.c: Fix typos.
21090 * tree-ssa-address.c: Fix typos.
21091 * tree-ssa-loop-ivopts.c: Fix typos.
21092 * tree-ssa-loop-niter.c: Fix typos.
21093 * tree-ssa-math-opts.c: Fix typos.
21094 * tree-ssa-pre.c: Fix typos.
21095 * tree-ssa-propagate.c: Fix typos.
21096 * tree-ssa-reassoc.c: Fix typos.
21097 * tree-ssa-sccvn.c: Fix typos.
21098 * tree-ssa-ter.c: Fix typos.
21099 * tree-ssa-uninit.c: Fix typos.
21100 * tree-ssanames.c: Fix typos.
21101 * tree-vect-generic.c: Fix typos.
21102 * tree-vect-slp.c: Fix typos.
21103 * tree.c: Fix typos.
21104 * tree.h: Fix typos.
21105 * varasm.c: Fix typos.
21106 * varpool.c: Fix typos.
21108 2012-05-29 Joseph Myers <joseph@codesourcery.com>
21110 * doc/include/texinfo.tex: Update to version 2012-05-16.16.
21112 2012-05-29 Richard Guenther <rguenther@suse.de>
21114 * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
21116 (add_referenced_var_1): Re-organize. Assert we are not
21117 called for globals.
21118 (remove_referenced_var): Likewise.
21119 * varpool.c (add_new_static_var): Use create_tmp_var_raw.
21120 * tree-mudflap.c (execute_mudflap_function_ops): Do not
21121 call add_referenced_var on globals.
21122 * matrix-reorg.c (transform_access_sites): Likewise.
21124 2012-05-29 Steven Bosscher <steven@gcc.gnu.org>
21126 * alias.c (reg_known_value): Make this a VEC.
21127 (reg_known_equiv_p): Make this an sbitmap.
21128 (reg_known_value_size): Remove.
21129 (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
21130 set_reg_known_equiv_p): Update for reg_known_value and
21131 reg_known_value_size data structure change.
21132 (init_alias_analysis, end_alias_analysis): Likewise.
21134 2012-05-29 Jakub Jelinek <jakub@redhat.com>
21136 PR middle-end/53510
21137 * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
21138 to avoid leaking memory. No need to handle memory allocation
21139 failure. Double string_len on each reallocation instead of adding 2.
21140 * gcov.c (read_line): Likewise.
21142 2012-05-29 Hans-Peter Nilsson <hp@axis.com>
21144 * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
21146 * config/cris/cris.md ("trap"): Define, enabled for
21147 TARGET_TRAP_USING_BREAK8.
21148 * config/cris/cris.opt (mtrap-using-break8): New option.
21150 2012-05-28 Paolo Carlini <paolo.carlini@oracle.com>
21153 * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
21156 2012-05-28 Hans-Peter Nilsson <hp@axis.com>
21158 * doc/md.texi (stack_protect_test): Remove negation of branch to label.
21159 (Standard Names): Fix typos in documentation of atomic patterns.
21161 2012-05-27 Nathan Sidwell <nathan@acm.org>
21163 * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
21165 2012-05-26 Jason Merrill <jason@redhat.com>
21168 * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
21169 about array compound literals.
21171 2012-05-26 Eric Botcazou <ebotcazou@adacore.com>
21173 * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
21174 if CLEANUP_NO_INSN_DEL.
21175 * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
21176 from cfg_layout_merge_blocks.
21177 (emit_nop_for_unique_locus_between): New function.
21178 (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
21179 (cfg_layout_merge_blocks): Likewise.
21181 2012-05-26 Dimitrios Apostolou <jimis@gmx.net>
21182 Paolo Bonzini <bonzini@gnu.org>
21184 * df-scan.c (df_def_record_1): Assert a parallel must contain an
21185 EXPR_LIST at this point. Receive the LOC and move its extraction...
21186 (df_defs_record): ... here. Change if-else to a switch statement.
21187 (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
21188 (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
21189 and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
21190 DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
21191 regs_invalidated_by_call.
21192 (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
21193 df_get_call_refs().
21195 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
21198 * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
21199 * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
21201 2012-05-25 Michael Meissner <meissner@linux.vnet.ibm.com>
21203 * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
21204 software floating point emulation. No longer build the multilibs
21205 with -mstrict-align.
21207 2012-05-25 Aldy Hernandez <aldyh@redhat.com>
21209 PR middle-end/53008
21210 * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
21211 accessed indirectly.
21212 (ipa_tm_create_version): Same.
21214 2012-05-25 Uros Bizjak <ubizjak@gmail.com>
21217 * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
21218 <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
21220 2012-05-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
21223 * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
21224 (ix86_expand_vec_perm): Use int mode instead of float.
21225 (expand_vec_perm_pshufb): Remove handling of useseless type
21228 2012-05-25 Eric Botcazou <ebotcazou@adacore.com>
21231 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
21232 gnu_ld variables to yes.
21233 * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
21234 (HAVE_GNU_AS): Likewise.
21235 * config.in: Regenerate.
21236 * configure: Likewise.
21238 2012-05-25 Tristan Gingold <gingold@adacore.com>
21240 * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
21241 (ix86_compute_frame_layout): Fix type of stack_alignment_needed
21242 and preferred_alignment.
21244 2012-05-25 Tristan Gingold <gingold@adacore.com>
21246 * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
21248 2012-05-25 Thomas Schwinge <thomas@codesourcery.com>
21250 * fold-const.c (optimize_bit_field_compare): Abort early in the strict
21251 volatile bitfields case.
21253 2012-05-24 Pat Haugen <pthaugen@us.ibm.com>
21255 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
21256 rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
21257 (adjacent_mem_locations): Move some code to and call...
21258 (get_memref_parts): ...new function.
21259 (mem_locations_overlap): New function.
21260 (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
21261 (is_mem_ref): Rename to...
21262 (find_mem_ref): ...this. Return MEM rtx.
21263 (get_store_dest): Remove function.
21264 (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
21265 new parameter and adjust calls.
21266 (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
21267 mem refs overlap for true_store_to_load_dep_costly.
21268 (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
21269 passed to adjacent_mem_locations.
21270 (is_costly_group): Walk resolved dependency list.
21271 (force_new_group): Emit group ending nop for Power6/Power7.
21272 * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
21273 (group_ending_nop): New define_insn.
21275 2012-05-24 Dodji Seketeli <dodji@redhat.com>
21277 Make unwound macro expansion trace less redundant
21278 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
21279 context of macro definition in the trace, when it's redundant.
21282 2012-05-24 Richard Guenther <rguenther@suse.de>
21284 PR middle-end/53460
21285 * tree-profile.c (tree_profiling): Cleanup the CFG if
21286 execute_fixup_cfg requests it.
21288 2012-05-24 Richard Guenther <rguenther@suse.de>
21290 * tree-flow.h (create_var_ann): Remove.
21291 * tree-dfa.c (create_var_ann): Remove and inline into its
21293 (add_referenced_var_1): ... here.
21294 * varpool.c (add_new_static_var): Do not call add_referenced_var
21296 * gimple-fold.c (canonicalize_constructor_val): Likewise.
21297 * tree-switch-conversion.c (build_one_array): Likewise.
21298 * tree-profile.c (gimple_gen_ic_profiler): Likewise.
21299 * tree-flow-inline.h (gimple_referenced_vars): Guard against
21301 * tree-inline.c (remap_gimple_op_r): Likewise. Check
21302 gimple_referenced_vars instead of gimple_in_ssa_p.
21303 (copy_tree_body_r): Likewise.
21304 (setup_one_parameter): Likewise.
21305 (declare_return_variable): Likewise.
21306 (tree_function_versioning): Likewise.
21308 2012-05-24 Jakub Jelinek <jakub@redhat.com>
21310 PR tree-optimization/53465
21311 * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
21312 vr0 into *vr, then vrp_meet that.
21313 (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
21314 have any equivalences.
21315 (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
21318 2012-05-24 Jim MacArthur <jim.macarthur@arm.com>
21320 * recog.c (reg_fits_class_p): Check both regno and regno + offset are
21322 * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
21323 check end_regno - 1 is a hard register.
21325 2012-05-24 Richard Guenther <rguenther@suse.de>
21327 * varpool.c (add_new_static_var): Remove call to create_var_ann.
21328 * tree-ssa-operands.c (create_vop_var): Likewise.
21330 2012-05-24 Richard Guenther <rguenther@suse.de>
21333 * tree-ssa-live.c (remove_unused_scope_block_p): Properly
21335 (remove_unused_locals): Pass global_unused_vars to
21336 remove_unused_scope_block_p. Restore code walking all
21337 referenced vars and pruning them.
21339 2012-05-23 Jan Hubicka <jh@suse.cz>
21341 * tree.h (alias_diag_flags): Remove.
21342 (alias_pair): Remove emitted_diags.
21343 (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
21344 symbol_alias_set_t, symbol_alias_set_destroy,
21345 symbol_alias_set_contains, propagate_aliases_backward): Remove.
21346 * toplev.c (compile_file): Do not call finish_aliases_2
21347 * cgraphunit.c (cgraph_process_new_functions): Do not call
21349 (handle_alias_pairs): Output diagnostics about aliases to externals.
21350 (assemble_thunks_and_aliases): Use do_assemble_alias.
21351 (output_weakrefs): Likewise.
21352 (finalize_compilation_unit): Do not call finish_aliases_1.
21353 * ipa.c (symtab_remove_unreachable_nodes): De not call
21354 remove_unreachable_alias_pairs.
21355 * varasm.c (do_assemble_alias): Export.
21356 (symbol_alias_set_create, symbol_alias_set_destroy,
21357 symbol_alias_set_contains, symbol_alias_set_insert,
21358 propagate_aliases_forward, propagate_aliases_backward,
21359 propagate_aliases_backward, trivially_visible_alias,
21360 trivially_defined_alias, remove_unreachable_alias_pairs,
21361 finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
21362 * output.h (do_assemble_alias): Declare.
21363 * varpool.c (varpool_remove_unreferenced_decls): Do not call
21366 2012-05-23 Martin Jambor <mjambor@suse.cz>
21368 * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
21370 2012-05-23 Eric Botcazou <ebotcazou@adacore.com>
21372 * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
21374 (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
21375 (iterative_hash_gimple_type): Adjust comment.
21376 (iterative_hash_canonical_type): Likewise. Hash the bounds of the
21377 domain for an array type instead of the domain type itself.
21379 2012-05-23 Richard Guenther <rguenther@suse.de>
21381 PR tree-optimization/53438
21382 * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
21384 2012-05-23 Georg-Johann Lay <avr@gjlay.de>
21387 * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
21388 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
21391 2012-05-23 Richard Guenther <rguenther@suse.de>
21393 * tree-dfa.c (add_referenced_var_1): Do not add global vars.
21394 * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
21395 via the global_unused_vars bitmap.
21396 (remove_unused_locals): Handle global vars in local-decls via
21397 a global_unused_vars bitmap instead of the used flag in the
21398 var annotation. Simplify global variable handling and removal.
21400 2012-05-22 Jan Hubicka <jh@suse.cz>
21402 PR middle-end/53426
21403 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
21404 from other partitions.
21406 2012-05-22 Jan Hubicka <jh@suse.cz>
21408 PR middle-end/53161
21409 * symtab.c (symtab_register_node): Fix ordering issue.
21411 2012-05-22 Steven Drake <sbd@NetBSD.org>
21413 * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
21415 2012-05-22 David Edelsohn <dje.gcc@gmail.com>
21417 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
21418 Use strip_name_encoding target hook.
21420 2012-05-22 Richard Guenther <rguenther@suse.de>
21422 * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
21423 (init_function_for_compilation): Remove.
21424 * tree-dfa.c (find_vars_r): Take struct function argument.
21425 (find_referenced_vars_in): Adjust.
21426 * tree-ssa-operands.c (clobber_stats): Remove.
21427 (create_vop_var): Take struct function argument. Mark
21428 virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
21429 (init_ssa_operands): Take struct function argument.
21430 (fini_ssa_operands): Do not dump dead stats.
21431 * tree-ssa-operands.h (init_ssa_operands): Take struct function
21433 * cgraphunit.c (init_lowered_empty_function): Adjust.
21434 * lto-streamer-in.c (input_cfg): Likewise.
21435 * tree-inline.c (initialize_cfun): Likewise.
21436 * tree-into-ssa.c (rewrite_into_ssa): Likewise.
21437 * omp-low.c (expand_omp_taskreg): Likewise. Avoid switching cfun.
21438 * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
21439 virtual operands are not registers.
21441 2012-05-22 Richard Guenther <rguenther@suse.de>
21443 * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
21445 2012-05-22 Richard Guenther <rguenther@suse.de>
21447 PR middle-end/53437
21448 * tree-inline.c (setup_one_parameter): Create a dummy init
21449 statement for unused parameters when not optimizing.
21451 2012-05-22 Richard Guenther <rguenther@suse.de>
21453 * tree-flow.h (add_referenced_var_1): Declare.
21454 (add_referenced_var): Define.
21455 * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
21456 (add_referenced_var): Rename to ...
21457 (add_referenced_var_1): ... this. Take struct function argument.
21459 2012-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21462 * config/arm/arm-protos.h (arm_validize_comparison): Declare.
21463 * config/arm/arm.c (arm_validize_comparison): Define.
21464 * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
21465 arm_validize_comparison.
21466 ("cbranchdi4"): Likewise.
21467 ("cstoredi4"): Likewise.
21468 ("movsicc"): Likewise.
21469 ("movsfcc"): Likewise.
21470 ("movdfcc"): Likewise.
21472 2012-05-22 Dimitrios Apostolou <jimis@gmx.net>
21474 * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
21475 the mw_reg_pool size.
21477 2012-05-22 Paolo Bonzini <bonzini@gnu.org>
21479 PR tree-optimization/53336
21480 * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
21481 non-integer integral types to offset type and vice versa.
21483 2012-05-22 Alan Modra <amodra@gmail.com>
21485 * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
21486 * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
21487 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
21488 V_SAVE_INLINE): Delete.
21489 * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
21490 (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
21491 For ELF targets, use out-of-line restores for -Os and any number
21492 of regs if the restore exits, and out-of-line gp save for two or
21493 more regs. Use save_reg_p to test for holes in reg restore set.
21494 Replace "#if" with "if".
21496 2012-05-22 Alan Modra <amodra@gmail.com>
21498 * config/rs6000/rs6000.c (save_reg_p): New function.
21499 (first_reg_to_save, first_fp_reg_to_save): Use it here.
21500 (first_altivec_reg_to_save, restore_saved_cr): Likewise.
21501 (emit_frame_save): Use gen_frame_store.
21502 (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
21503 (rs6000_emit_prologue): Use save_reg_p. Use gen_frame_store for
21505 (rs6000_emit_epilogue): Use save_reg_p. Use gen_frame_load for
21506 vrsave, toc, gp and fp restores.
21508 2012-05-22 Alan Modra <amodra@gmail.com>
21510 * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
21511 Move those with ATTRIBUTE_UNUSED to immediately before definitions.
21512 Move function pointer variables after forward declarations.
21513 (rs6000_builtin_support_vector_misalignment): Make static.
21514 (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
21515 (rs6000_function_value, rs6000_can_eliminate): Likewise.
21517 2012-05-21 Bernd Schmidt <bernds@codesourcery.com>
21519 PR rtl-optimization/53373
21520 * caller-save.c (save_call_clobbered_regs): Look into a possible
21521 PARALLEL manually rather than using single_set on a call insn.
21523 2012-05-21 Jakub Jelinek <jakub@redhat.com>
21525 PR tree-optimization/53436
21526 * omp-low.c (omp_build_component_ref): New function.
21527 (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
21529 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
21531 * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
21533 (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
21534 Do not print '.' here. Output operand lossage error for unhandled
21539 <case 'z'>: Hardcode "code" argument into error strings.
21541 <case 'D'>: Merge AVX and non-AVX codes.
21542 <case 'C', case 'c', case 'F', case 'f'>: Merge. Fix error string.
21543 Update call to put_condition_code.
21545 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
21547 * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2. Call
21549 (clzsi2): New expander.
21550 (*clzsi2_68k): New insn.
21551 * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
21553 2012-05-21 Aldy Hernandez <aldyh@redhat.com>
21555 * gimple.h (gimple_set_in_transaction): Remove.
21556 (gimple_in_transaction): Look in BB instead.
21557 (gimple_statement_base): Remove in_transaction field.
21558 * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
21559 * trans-mem.c (compute_transaction_bits): Place transaction bit
21560 information into basic blocks.
21562 2012-05-21 Andreas Schwab <schwab@linux-m68k.org>
21564 * expr.c (get_def_for_expr_class): Define only if
21565 HAVE_conditional_move.
21566 (convert_tree_comp_to_rtx): Likewise.
21568 2012-05-21 Uros Bizjak <ubizjak@gmail.com>
21571 * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
21573 (ffssi2_no_cmove): Ditto.
21574 (*ffs<mode>_1): Remove insn pattern.
21575 (*tzcnt<mode>_1): New insn pattern.
21576 (*bsf<mode>1): Ditto.
21578 2012-05-21 Richard Guenther <rguenther@suse.de>
21580 * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
21581 more referenced vars.
21582 * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
21583 flag on variables that have a var-annotation.
21585 2012-05-21 Joseph Myers <joseph@codesourcery.com>
21588 * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
21589 from folded operands before wrapping another around the
21590 conditional expression.
21592 2012-05-21 Jakub Jelinek <jakub@redhat.com>
21594 PR tree-optimization/53366
21595 * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
21596 tests if complex_numbers == 2, but there are non-complex number loads
21599 PR tree-optimization/53409
21600 * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
21601 vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
21603 PR tree-optimization/53410
21604 * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
21605 instead of build_int_cst (type, 0) where vector types might be
21606 involved. Instead of build_int_cst (type, 1) convert the original
21607 integer_onep argument to the desired type.
21609 2012-05-21 Michael Matz <matz@suse.de>
21611 * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
21612 (simplify_test_exp): Handle one more case of distributive law,
21613 decrease cost threshold.
21614 (tests_attr_p, get_attr_order): New functions.
21615 (optimize_attrs): Use topological order, inline only cheap values.
21616 (write_attr_set): Reset our_known_true after some time.
21618 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
21621 * config/i386/i386.c (type_natural_mode): Warn passing SSE
21622 vector argument without SSE enabled changes the ABI.
21624 2012-05-21 Richard Guenther <rguenther@suse.de>
21626 PR tree-optimization/53408
21627 * tree-vect-loop.c (vectorizable_induction): Properly check
21628 the restriction that we cannot handle induction results from
21629 the inner loop outside of the outer loop.
21631 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
21634 * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
21635 (UNSPECV_RDRAND): This.
21636 (rdrand<mode>_1): Updated.
21638 2012-05-21 Richard Guenther <rguenther@suse.de>
21640 * tree-loop-distribution.c (can_generate_builtin): Reject
21643 2012-05-21 Chung-Lin Tang <cltang@codesourcery.com>
21645 * Makefile.in (options.c): Add options.h to included header
21646 files, before tm.h.
21648 2012-05-21 Razya Ladelsky <razya@il.ibm.com>
21650 * tree-parloops.c : Add myself to contributors, update
21651 TODO list, add link to wiki.
21653 2012-05-21 Alan Modra <amodra@gmail.com>
21655 * config/rs6000/predicates.md (input_operand): Don't match
21656 constant pool addresses. Remove label_ref, high and plus from
21657 match_code list. Remove redundant CONSTANT_P test.
21658 (splat_input_operand): Similarly update match_code list.
21659 (small_toc_ref): New predicate.
21660 * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
21661 * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
21662 (legitimate_constant_pool_address_p): Move TARGET_TOC test and
21663 register checks to..
21664 (toc_relative_expr_p): ..here. Add "strict" param. Match new rtl
21665 generated by create_TOC_reference.
21666 (rs6000_legitimize_address): Update cerate_TOC_reference call.
21667 (rs6000_delegitimize_address): Handle new rtl for toc refs.
21668 (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
21669 (use_toc_relative_ref): New function, split out from..
21670 (rs6000_emit_move): ..here. Remove redundant tests. Update
21671 create_TOC_reference calls.
21672 (rs6000_legitimize_reload_address): Formatting. Handle splitting
21673 of medium/large model toc addresses. Use use_toc_relative_ref.
21674 (print_operand): Formatting, style. Adjust for toc changes.
21675 (print_operand_address): Likewise.
21676 (rs6000_output_addr_const_extra): Likewise.
21677 (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
21678 than a PLUS. Use this formulation for both high and low part
21679 of -mcmodel=medium/large toc reference too. Before reload,
21680 always use the small model formulation.
21681 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
21682 a PLUS in high part of addresses here.
21683 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
21684 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
21685 (largetoc_high, largetoc_low): Move earlier. Cope when no
21686 base reg available.
21687 (largetoc_high_plus): New insn.
21688 (movsi_internal1, movsi_internal1_single, movsf_softfloat,
21689 movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
21690 (tocref): ..instead do so here, new insn and split.
21692 2012-05-20 H.J. Lu <hongjiu.lu@intel.com>
21694 * config/i386/driver-i386.c (host_detect_local_cpu): Support
21695 RDRND, F16C and FSGSBASE.
21697 2012-05-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21699 PR rtl-optimzation/53373
21700 * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
21701 call pattern. Update split patterns.
21702 (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
21703 call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
21705 2012-05-20 Razya Ladelsky <razya@il.ibm.com>
21707 * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
21710 2012-05-18 Jan Hubicka <jh@suse.cz>
21712 * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
21713 (cgraph_process_new_functions): Process also aliases.
21714 * lto-streamer-out.c (struct sets): Remove.
21715 (trivally_defined_alias): Remove.
21716 (output_alias_pair_p): Remove.
21717 (output_unreferenced_globals): Remove.
21718 (produce_symtab); Do not handle alias pairs.
21719 (produce_asm_for_decls): Likewise.
21720 * lto-streamer-in.c (input_alias_pairs): Remove.
21721 (lto_read_body): Do not input alias pairs.
21722 (lto_input_constructors_and_inits): Remove.
21724 2012-05-18 Jan Hubicka <jh@suse.cz>
21726 * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
21729 2012-05-18 Jan Hubicka <jh@suse.cz>
21731 * cgraphbuild.c (record_reference): Update.
21732 * lto-cgraph.c (lto_output_varpool_node): External vars
21733 are not in other partition even if they are not output
21734 in current partition.
21735 * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
21737 (canonicalize_constructor_val): Take FROM_DECL argument.
21738 (fold_ctor_reference, fold_string_cst_ctor_reference,
21739 fold_array_ctor_reference, fold_nonarray_ctor_reference,
21740 fold_ctor_reference): Likewise.
21741 (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
21742 * gimple.h (gimple_fold_builtin): Likewise.
21744 2012-05-18 Olivier Hainque <hainque@adacore.com>
21746 * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
21747 $(libsubdir) as libexecsubdir.
21749 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21751 * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
21752 relied on signed overflow behavior.
21754 2012-05-18 Richard Guenther <rguenther@suse.de>
21756 PR tree-optimization/53346
21757 * tree-loop-distribution.c (ldist_gen): Make sure to apply
21758 builtin transform even when only a single partition with
21759 all reads/writes exists.
21761 2012-05-18 Richard Guenther <rguenther@suse.de>
21763 PR tree-optimization/53390
21764 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
21767 2012-05-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21769 * tree-ssa-reassoc.c (bip_map): Remove decl.
21770 (completely_remove_stmt): Remove function.
21771 (remove_def_if_absorbed_call): Remove function.
21772 (remove_visited_stmt_chain): Remove __builtin_powi handling.
21773 (possibly_move_powi): Remove function.
21774 (rewrite_expr_tree): Remove calls to possibly_move_powi.
21775 (rewrite_expr_tree_parallel): Likewise.
21776 (attempt_builtin_powi): Build multiplies explicitly rather than
21777 relying on the ops vector and rank system.
21778 (transform_stmt_to_copy): New function.
21779 (transform_stmt_to_multiply): Likewise.
21780 (reassociate_bb): Handle leftover operations after __builtin_powi
21781 optimization; build a final multiply if necessary.
21783 2012-05-18 Jan Hubicka <jh@suse.cz>
21785 * cgraphunit.c (varpool_finalize_decl): Allow external decls.
21786 (mark_functions_to_output): Fix sanity check.
21787 * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
21789 2012-05-18 Richard Guenther <rguenther@suse.de>
21791 * tree-flow.h (mark_symbols_for_renaming): Remove.
21792 * tree-dfa.c (mark_symbols_for_renaming): Likewise.
21793 * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
21794 (copy_debug_stmt): Likewise.
21795 (expand_call_inline): Likewise.
21796 (declare_return_variable): Mark the return variable for renaming
21799 2012-05-18 Andrew Stubbs <ams@codesourcery.com>
21801 * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
21803 * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
21804 * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
21805 (ashrdi3,lshrdi3): Likewise.
21806 (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
21808 2012-05-18 Meador Inge <meadori@codesourcery.com>
21810 PR rtl-optimization/53352
21811 * cse.c (equiv_constant): Ignore paradoxical subregs.
21813 2012-05-17 Steven Bosscher <steven@gcc.gnu.org>
21815 PR rtl-optimization/53125
21816 * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
21817 argument. Simplify calculation of REG_LIVE_LENGTH for regnos that
21818 die in the basic block. Correctly top off REG_FREQ and
21819 REG_FREQ_CALLS_CROSSED.
21821 (regstat_compute_ri): Allocate and free local_live_last_luid.
21823 (regstat_bb_compute_calls_crossed): Correctly top off
21824 REG_FREQ_CALLS_CROSSED.
21826 2012-05-17 Jan Hubicka <jh@suse.cz>
21828 * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
21829 constructor over decl without.
21830 * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
21831 * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
21832 * cgraphunit.c (process_function_and_variable_attributes): Finalize
21834 (mark_functions_to_output): Also accept bodies for functions with
21836 (output_in_order): Skip external vars.
21837 * lto-cgraph.c (lto_output_node): External functions are never in other
21839 (lto_output_varpool_node): Likewise.
21840 * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
21841 forgotten initializers.
21842 * ipa.c (process_references): Handle external vars.
21843 (symtab_remove_unreachable_nodes): Update to handle external vars.
21844 (varpool_externally_visible_p): External vars are externally visible.
21845 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
21846 * varpool.c (varpool_remove_node): Remove constructor.
21847 (decide_is_variable_needed): Handle externals.
21848 (varpool_remove_unreferenced_decls): Likewise.
21850 2012-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
21852 * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
21853 (enable_warning_as_error): Do not special case Wuninitialized.
21854 * optc-gen.awk: Add sanity checks.
21856 2012-05-17 Jan Hubicka <jh@suse.cz>
21858 * ipa-reference.c (is_proper_for_analysis): Do not check flags
21859 that might change as result of global optimization.
21860 (analyze_function): Do not check analyzed and externally_visible
21861 flags; be happy about address dereferences.
21862 (propagate): Prune all_module_statics so it really contains just
21863 statics; prune all the local summaries.
21864 (ipa_reference_write_optimization_summary): Simplify.
21866 2012-05-17 Kwok Cheung Yeung <kcy@codesourcery.com>
21868 * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
21869 * config/m68k/m68k-tables.opt: Regenerated.
21870 * doc/invoke.texi (M680x0 Options): Document.
21872 2012-05-16 Dave Boutcher <daveboutcher@gmail.com>
21873 Patrick Marlier <patrick.marlier@gmail.com>
21875 * trans-mem.c (ipa_tm_transform_clone): Transform functions with
21878 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
21880 * configure: Regenerated.
21882 2012-05-16 Andrew Pinski <apinski@cavium.com>
21884 * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
21887 2012-05-16 David S. Miller <davem@davemloft.net>
21889 * jump.c (delete_related_insns): If we remove a CALL, make sure
21890 we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
21892 2012-05-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21894 PR tree-optimization/53217
21895 * tree-ssa-reassoc.c (bip_map): New static variable.
21896 (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
21897 (attempt_builtin_powi): Save feeding multiplies on a stack.
21898 (reassociate_bb): Create and destroy bip_map.
21900 2012-05-16 Olivier Hainque <hainque@adacore.com>
21902 * Makefile.in (install-no-fixedincludes): New target, former toplevel
21903 gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
21904 Add comments and improve stamp preservation across the whole sequence.
21905 (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
21907 2012-05-16 Richard Guenther <rguenther@suse.de>
21909 * tree-inline.c (insert_init_stmt): Do not call
21910 mark_symbols_for_renaming.
21911 (setup_one_parameter): Avoid initializing unused parameters.
21912 (declare_return_variable): Properly handle DECL_BY_REFERENCE
21913 return vars in SSA form.
21915 2012-05-16 Richard Guenther <rguenther@suse.de>
21917 * tree-flow.h (get_virtual_var): Remove.
21918 * tree-dfa.c (get_virtual_var): Likewise.
21920 2012-05-16 Richard Guenther <rguenther@suse.de>
21922 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
21923 Remove set-only bitmap of new names.
21924 (slpeel_tree_peel_loop_to_edge): Likewise. Do not set
21926 * tree-flow.h (ssa_names_to_replace): Remove.
21927 * tree-into-ssa.c (ssa_names_to_replace): Likewise.
21929 2012-05-16 Richard Guenther <rguenther@suse.de>
21931 PR tree-optimization/53364
21932 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
21933 detect a view-conversion of the decl.
21935 2012-05-16 Dodji Seketeli <dodji@redhat.com>
21937 PR preprocessor/7263
21938 * c-tree.h (enum c_declspec_word): Declare new enum.
21939 (struct c_declspecs::locations): New member.
21940 (declspecs_add_qual, declspecs_add_scspec)
21941 (declspecs_add_addrspace, declspecs_add_alignas): Take a new
21942 location parameter.
21943 * c-decl.c (build_null_declspecs): Initialize the new struct
21944 c_declspecs::locations member.
21945 (declspecs_add_addrspace): Take a location parameter for the
21946 address space. Store it onto declaration specifiers.
21947 (declspecs_add_qual): Likewise, take a location parameter for the
21949 (declspecs_add_type): Likewise, take a location parameter for the
21951 (declspecs_add_scspec): Likewise, take a location parameter for
21952 the storage class specifier.
21953 (declspecs_add_attrs): Likewise, take a location parameter for the
21955 (declspecs_add_alignas): Likewise, take a location parameter for
21957 (finish_declspecs): For diagnostics, use the location of the
21958 relevant declspec, instead of the global input_location.
21959 * c-parser.c (c_parser_parameter_declaration): Pass the precise
21960 virtual location of the declspec to the declspecs-setters.
21961 (c_parser_declspecs): Likewise. Avoid calling c_parser_peek_token
21964 2012-05-16 Igor Zamyatin <igor.zamyatin@intel.com>
21966 * configure.ac: Stack protector enabling for Android targets.
21967 * configure: Regenerate.
21969 2012-05-16 Richard Sandiford <r.sandiford@uk.ibm.com>
21971 * ira.c (pseudo_move_insn): Delete.
21972 (find_moveable_pseudos): Don't set it.
21973 (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
21974 the definitions of the original pseudo. Delete all of them.
21976 2012-05-16 Olivier Hainque <hainque@adacore.com>
21978 * config/rs6000/rs6000-opts.h (enum processor_type): Add
21980 * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
21981 * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
21982 * config/rs6000/8540.md: indicate that the units/patterns apply to
21985 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
21986 default_cpu into implicit_cpu, conveying what --with-cpu was passed at
21987 configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
21988 related flags, check that what is queried is supported by the selected
21989 configuration. Rework the single/double_float and MASK_STRING resets to
21990 hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
21991 costs for PROCESSOR_PPC8548 as well.
21992 (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
21993 (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
21994 statement instead of a sequence of ifs.
21996 * config/rs6000/rs6000.h (TARGET_E500): Remove.
21997 (TARGET_NO_LWSYNC): Adjust accordingly.
21998 * config/rs6000/e500.h (TARGET_E500): Remove.
21999 (CHECK_E500_OPTIONS): Adjust accordingly.
22000 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
22001 (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
22002 * config/rs6000/linuxspe.h: Likewise.
22003 * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
22004 superfluous comments.
22005 * config/rs6000/e500-double.h: Remove.
22007 * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
22008 default to with_cpu=8548 if --enable-e500-double, and to 8540
22010 (set misc flags section): For powerpc*|rs6000*, remove inclusion
22011 of e500-double.h for --enable-e500-double.
22013 2012-05-16 Olivier Hainque <hainque@adacore.com>
22015 * Makefile.in (s-header-vars): Resort to -n instead of trailing
22016 -e d in sed invocation.
22018 2012-05-16 Hans-Peter Nilsson <hp@axis.com>
22020 * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
22022 * doc/tm.texi: Regenerate.
22024 2012-05-15 Paolo Carlini <paolo.carlini@oracle.com>
22026 * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
22028 2012-05-15 Jakub Jelinek <jakub@redhat.com>
22031 * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
22032 that operands[2] is either immediate, or q_regs_operand.
22034 2012-05-15 Richard Guenther <rguenther@suse.de>
22036 * cgraphunit.c (thunk_adjust): Use make_rename_temp.
22037 (assemble_thunk): Likewise. Manually rename and register
22038 function arguments.
22040 2012-05-15 Richard Guenther <rguenther@suse.de>
22042 PR tree-optimization/53355
22043 * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
22046 2012-05-15 Tristan Gingold <gingold@adacore.com>
22048 * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
22050 2012-05-15 Richard Guenther <rguenther@suse.de>
22052 * gimple.c (gimple_set_modified): Move ...
22053 * gimple.h (gimple_set_modified): ... here.
22055 2012-05-15 Tristan Gingold <gingold@adacore.com>
22057 * ira-color.c (move_spill_restore): Add a guard.
22059 2012-05-15 Tristan Gingold <gingold@adacore.com>
22061 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
22064 2012-05-15 Eric Botcazou <ebotcazou@adacore.com>
22066 * gimplify.c (gimplify_init_constructor): Do a block move for very
22067 small objects as well.
22069 2012-05-15 Bernd Schmidt <bernds@codesourcery.com>
22071 * ira.c (find_moveable_pseudos): Skip registers whose
22072 DF_REG_EQ_USE_COUNT is nonzero.
22074 2012-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
22076 * doc/md.texi (fma): Define to only be applicable for single rounding.
22078 2012-05-14 Uros Bizjak <ubizjak@gmail.com>
22081 * config/i386/i386.c (ix86_expand_special_args_builtin): Always
22082 generate target register for "load" class builtins.
22085 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
22088 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
22089 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
22090 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
22091 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
22092 (<sse>_movu<ssemodesuffix>): New expander.
22093 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
22094 (avx_movdqu<avxmodesuffix>): New expander.
22095 (*sse2_movdqu): Rename from sse2_movdqu.
22096 (sse2_movdqu): New expander.
22098 2012-05-14 Marc Glisse <marc.glisse@inria.fr>
22101 * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
22102 (canonicalize_perm): ... new function.
22103 (expand_vec_perm_2vperm2f128_vshuf): New function.
22104 (ix86_expand_vec_perm_const_1): Call it.
22106 2012-05-14 Andrew Pinski <apinski@cavium.com>
22107 H.J. Lu <hongjiu.lu@intel.com>
22108 Jakub Jelinek <jakub@redhat.com>
22111 * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
22114 2012-05-14 Jakub Jelinek <jakub@redhat.com>
22116 * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
22117 lineno 1 the same as lineno 0 before first start file directive.
22118 (optimize_macinfo_range): Likewise.
22120 * dwarf2out.c (have_macinfo): Define.
22121 (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
22122 attribute, don't force empty compilation unit and don't emit any
22123 .debug_macinfo/.debug_macro section if macinfo_table is empty.
22125 2012-05-14 Georg-Johann Lay <avr@gjlay.de>
22128 * config/avr/avr.c (avr_const_address_lo16): Remove.
22129 (avr_assemble_integer): Print ".byte lo8(x)",
22130 ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
22131 .warning if 3-byte address is assembled.
22132 * doc/extend.texi (AVR Named Address Spaces): Document that
22133 binutils 2.23 is needed to assemble 3-byte addresses.
22135 2012-05-14 Richard Guenther <rguenther@suse.de>
22137 * tree-vect-data-refs.c (vect_setup_realignment): Remove
22138 call to mark_symbols_for_renaming.
22139 (vect_permute_load_chain): Likewise.
22140 * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
22141 instead of calling mark_symbols_for_renaming.
22142 * tree-vect-stmts.c (read_vector_array): Remove call to
22143 mark_symbols_for_renaming.
22144 (write_vector_array): Likewise.
22145 (vectorizable_call): Likewise.
22146 (vectorizable_store): Likewise.
22147 (vectorizable_load): Likewise.
22148 * matrix-reorg.c (transform_allocation_sites): Likewise.
22149 * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
22150 (create_expression_by_pieces): Likewise.
22152 2012-05-14 Richard Guenther <rguenther@suse.de>
22154 * gimplify.c (gimple_regimplify_operands): Only mark the LHS
22155 of statements for renaming.
22156 (force_gimple_operand_1): Likewise, consistently for both
22157 calls to force_gimple_operand and force_gimple_operand_gsi.
22159 2012-05-14 Richard Guenther <rguenther@suse.de>
22161 * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
22162 * omp-low.c (expand_omp_taskreg): Properly conditionalize call
22164 (expand_omp_for): Likewise.
22165 (expand_omp_for_generic): Adjust conditional add to referenced vars.
22166 Use make_rename_temp for temporaries that should be rewritten into
22168 (expand_omp_for_static_nochunk): Likewise.
22169 (expand_omp_atomic_pipeline): Likewise.
22171 2012-05-14 Richard Guenther <rguenther@suse.de>
22173 PR tree-optimization/53331
22174 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
22176 * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
22178 2012-05-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
22181 * doc/options.texi: (LangEnabledBy): Document it.
22182 * optc-gen.awk: Handle LangEnabledBy.
22183 * opth-gen.awk: Generate declaration for lang-specific functions.
22184 * opt-read.awk: Record lang numbers.
22185 * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
22186 (lang_sanitized_name): New.
22188 2012-05-14 Bernd Schmidt <bernds@codesourcery.com>
22190 * attribs.c (decl_attributes): Avoid emitting a warning if
22191 ATTR_FLAG_BUILT_IN.
22192 * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
22193 codes. Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
22194 * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define. Use it to
22195 define a string "1".
22196 (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
22197 * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
22198 BUILT_IN_STRCPY): Use it for these functions.
22199 * postreload.c (reload_combine): Deal with SETs inside
22200 CALL_INSN_FUNCTION_USAGE.
22201 * caller-save.c (setup_save_areas, save_call_clobbered_regs):
22202 Look for REG_RETURNED notes and use a cheap restore if possible.
22203 * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
22204 (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
22205 * ira-build.c (ira_create_allocno, create_cap_allocno,
22206 propagate_allocno_info, propagate_some_info_from_allocno,
22207 copy_info_to_removed_store_destination, ira_flattening): Handle it.
22208 * ira-lives.c (pseudo_regno_single_word_and_live_p,
22209 find_call_crossed_cheap_reg): New static functions.
22210 (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
22211 and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible. Also make
22212 a REG_RETURNED note in that case.
22213 * ira.c (setup_reg_renumber): Change assert to allow cases where
22214 allocnos only cross calls for which they are cheap to restore.
22215 * ira-costs.c (ira_tune_allocno_costs): Compare
22216 ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
22218 * reg-notes.def (REG_RETURNED): New note.
22219 * cse.c (cse_insn): Likewise.
22220 * sched-deps.c (sched_analyze_insn): Likewise.
22221 * expr.c (init_block_move_fn): Set a "fn spec" attribute.
22222 * calls.c (decl_return_flags): New static function.
22223 (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
22224 functions that return one of their arguments.
22225 * regcprop.c (struct kill_set_value_data): New.
22226 (kill_set_value): Interpret data as a pointer to such a struct.
22227 Do nothing if the caller wants the register to be ignored.
22228 (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
22230 2012-05-14 Richard Guenther <rguenther@suse.de>
22232 PR tree-optimization/53340
22233 * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
22235 2012-05-14 Richard Guenther <rguenther@suse.de>
22237 * gimplify.c (gimplify_expr): Remove odd code.
22239 2012-05-14 Eric Botcazou <ebotcazou@adacore.com>
22241 * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
22242 into a PLUS_EXPR byte offset.
22244 * tree-ssa-pre.c (can_value_number_call): Delete.
22245 (compute_avail): Skip all statements with side effects.
22246 <GIMPLE_CALL>: Skip calls to internal functions.
22248 2012-05-13 Steven Bosscher <steven@gcc.gnu.org>
22250 * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
22252 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
22254 * common.opt (Wtype-limits): Use EnabledBy.
22256 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
22258 * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
22259 (pushtf splitter): Ditto.
22261 (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
22262 (<code>tf2): Enable for TARGET_SSE.
22263 (*absnegtf2_sse): Ditto.
22264 (copysign<mode>3): Enable TFmode for TARGET_SSE.
22265 (copysign<mode>3_const): Ditto.
22266 (copysign<mode>3_var): Ditto.
22267 * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
22268 (*andnottf3): Ditto. Use V4SFmode for !TARGET_SSE2.
22269 (*<code>tf3): Ditto.
22270 * config/i386/i386.c (struct builtin_description bdesc_args)
22271 <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
22272 <IX86_BUILTIN_COPYSIGNQ>: Ditto.
22273 (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
22274 Emit a normal call if SSE isn't available.
22276 2012-05-13 Uros Bizjak <ubizjak@gmail.com>
22278 * config/i386/sse.md (<sse>_andnot<mode>3): Handle
22279 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
22280 (<code><mode>3): Ditto.
22281 (*andnot<mode>3): Ditto.
22282 (*andnottf3): Ditto.
22283 (*<code><mode>3): Ditto.
22284 (<code>tf3): Ditto.
22286 2012-05-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
22288 * optc-gen.awk: Error instead of warning for conflicting help.
22290 2012-05-12 Jason Merrill <jason@redhat.com>
22293 * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
22296 2012-05-12 Eric Botcazou <ebotcazou@adacore.com>
22298 * function.c (requires_stack_frame_p): If the function can throw
22299 non-call exceptions, return true if the insn can throw internally.
22301 2012-05-12 Paolo Carlini <paolo.carlini@oracle.com>
22303 * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
22305 2012-05-12 Uros Bizjak <ubizjak@gmail.com>
22307 * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
22308 ORDERED and UNORDERED conditions.
22310 2012-05-11 Richard Guenther <rguenther@suse.de>
22312 * tree-flow.h (referenced_var_check_and_insert): Remove.
22313 (find_new_referenced_vars): Likewise.
22314 * tree-dfa.c (referenced_var_check_and_insert): Make static.
22315 (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
22316 * tree-inline.c (copy_bb): Use find_referenced_vars_in
22317 instead of find_new_referenced_vars.
22318 * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
22320 2012-05-11 Richard Guenther <rguenther@suse.de>
22322 * tree-pass.h (pass_rest_of_compilation,
22323 pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
22325 * passes.c (pass_all_optimizations, pass_postreload,
22326 pass_all_early_optimizations): Make static.
22327 (pass_rest_of_compilation): Likewise. Make it an RTL_PASS.
22328 * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
22329 * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
22330 (delete_tree_ssa): Do not call fini_phinodes.
22331 * tree-flow.h (init_phinodes, fini_phinodes): Remove.
22333 2012-05-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
22336 * doc/options.texi (EnabledBy): Document
22337 * opts.c: Include opts.h and options.h before tm.h.
22338 (finish_options): Do not handle some sub-options here...
22339 (common_handle_option): ... instead call common_handle_option_auto
22341 * optc-gen.awk: Handle EnabledBy.
22342 * opth-gen.awk: Declare common_handle_option_auto.
22343 * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
22344 (Wmaybe-uninitialized): Likewise.
22345 (Wunused-but-set-variable): Likewise.
22346 (Wunused-function): Likewise.
22347 (Wunused-label): Likewise.
22348 (Wunused-value): Likewise.
22349 (Wunused-variable): Likewise.
22350 * opt-read.awk: Create opt_numbers array.
22352 2012-05-11 Richard Guenther <rguenther@suse.de>
22354 PR tree-optimization/53295
22355 * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
22357 * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
22358 strides when analyzing data-references in a loop context.
22359 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
22360 non-constant strides for now.
22361 (vect_enhance_data_refs_alignment): Ignore data references
22362 that are strided loads.
22363 (vect_analyze_data_ref_access): Handle non-constant strides.
22364 (vect_check_strided_load): Verify the data-reference is a load.
22365 (vect_analyze_data_refs): Restructure to make strided load
22366 support not dependent on gather support.
22367 * tree-vect-stmts.c (vectorizable_load): Avoid useless work
22368 when doing strided or gather loads.
22369 * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
22370 integer_zerop to compare stride with zero.
22372 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
22374 * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
22376 2012-05-11 Jan Hubicka <jh@suse.cz>
22379 * varpool.c (varpool_assemble_decl): Also output constat pool entries
22380 that output_constant_pool missed.
22382 2012-05-11 Mingjie Xing <mingjie.xing@gmail.com>
22384 * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
22385 MULTILIB_EXTRA_OPTS.
22387 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
22390 * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
22392 2012-05-11 Uros Bizjak <ubizjak@gmail.com>
22394 * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
22395 optimization for TARGET_AVX.
22396 (*movti_internal_sse): Ditto.
22397 (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
22398 (*movdi_internal): Ditto.
22399 (*movsi_internal): Ditto.
22400 (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
22401 (*movdf_internal_rex64): Ditto.
22402 (*movfd_internal): Ditto.
22403 (*movsf_internal): Ditto.
22404 * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
22406 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
22408 * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
22409 reference as size attribute.
22411 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
22412 Tristan Gingold <gingold@adacore.com>
22414 * doc/md.texi (Standard Names): Document probe_stack_address.
22415 * explow.c (emit_stack_probe): Handle probe_stack_address.
22416 * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
22417 (UNSPECV_PROBE_STACK_RANGE): Likewise.
22418 (probe_stack_address): New insn.
22419 (probe_stack_range): Likewise.
22420 * config/ia64/ia64.c: Include common/common-target.h.
22421 (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
22422 checking is enabled.
22423 (ia64_emit_probe_stack_range): New function.
22424 (output_probe_stack_range): Likewise.
22425 (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
22426 builtin stack checking is enabled.
22427 (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
22428 and UNSPECV_PROBE_STACK_ADDRESS.
22429 (unknown_for_bundling_p): New predicate.
22430 (group_barrier_needed): Use important_for_bundling_p.
22431 (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
22432 (issue_nops_and_insn): Likewise.
22433 (bundling): Likewise.
22434 (final_emit_insn_group_barriers): Likewise.
22435 * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
22436 * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
22437 (STACK_CHECK_PROTECT): Likewise.
22438 * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
22440 2012-05-10 Jan Hubicka <jh@suse.cz>
22442 * ipa-inline.c (update_all_callee_keys): Remove.
22443 (inline_small_functions): Simplify priority updating.
22445 2012-05-10 Jan Hubicka <jh@suse.cz>
22447 * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
22449 2012-05-10 Jan Hubicka <jh@suse.cz>
22451 * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
22452 (symtab_remove_unreachable_nodes): ... this one.
22453 * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
22454 * cgraphunit.c (ipa_passes): Update.
22455 * cgraphclones.c (cgraph_materialize_all_clones): Update.
22456 * cgraph.c (cgraph_release_function_body): Only turn initial
22457 into error mark when initial was previously set.
22458 * ipa-inline.c (ipa_inline): Update.
22459 * ipa.c: Include ipa-inline.h
22460 (enqueue_cgraph_node, enqueue_varpool_node): Remove.
22461 (enqueue_node): New function.
22462 (process_references): Update.
22463 (symtab_remove_unreachable_nodes): Cleanup.
22464 * passes.c (execute_todo, execute_one_pass): Update.
22466 2012-05-10 Vladimir Makarov <vmakarov@redhat.com>
22468 PR rtl-optimization/53125
22469 * ira.c (ira): Call find_moveable_pseudos and
22470 move_unallocated_pseudos if only ira_conflicts_p is true.
22472 2012-05-10 Uros Bizjak <ubizjak@gmail.com>
22474 * config/i386/i386.md (*movoi_internal_avx): Handle
22475 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
22476 (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
22477 (*movti_internal_sse): Ditto.
22478 (*movtf_internal): Ditto.
22479 * config/i386/sse.md (ssePSmode): New mode attribute.
22480 (*move<mode>_internal): Use ssePSmode.
22481 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
22482 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
22483 * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
22484 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
22486 2012-05-10 Eric Botcazou <ebotcazou@adacore.com>
22488 * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
22489 DECL_ORIGINAL_TYPE if it is present.
22491 2012-05-10 Nick Clifton <nickc@redhat.com>
22494 * config/m32c/bitops.md (bset_qi): Change operand 2 from having
22495 a "0" constraint to being a (match_dup 0).
22497 2012-05-10 Richard Guenther <rguenther@suse.de>
22499 * stor-layout.c (byte_from_pos): Amend comment.
22501 2012-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22503 * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
22504 Document requirement to call in constructors.
22506 * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
22508 2012-05-10 Richard Guenther <rguenther@suse.de>
22510 * tree.h (TYPE_IS_SIZETYPE): Remove.
22511 * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
22512 (extract_muldiv_1): Likewise.
22513 * gimple.c (gtc_visit): Likewise.
22514 (gimple_types_compatible_p): Likewise.
22515 (iterative_hash_canonical_type): Likewise.
22516 (gimple_canonical_types_compatible_p): Likewise.
22517 * gimplify.c (gimplify_one_sizepos): Likewise.
22518 * print-tree.c (print_node): Likewise.
22519 * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
22521 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
22524 * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
22525 xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
22526 (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
22527 instead of xop_mulv2div2di3_low.
22528 (xop_p<macs>dql): Fix vec_select selector.
22529 (xop_p<macs>dqh): Ditto.
22530 (xop_mulv2div2di3_low): Remove insn_and_split pattern.
22531 (xop_mulv2div2di3_high): Ditto.
22533 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
22536 * diagnostic.h (diagnostic_context): Add last_location.
22537 * diagnostic.c (diagnostic_initialize): Initialize it.
22538 (diagnostic_show_locus): Use it.
22540 2012-05-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
22542 * doc/extend.texi (Function Attributes): Point xref to section
22545 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
22547 * config/i386/i386.c (*movdf_internal_rex64): Remove
22548 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
22549 Calculate "mode" attribute according to
22550 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
22551 (*movdf_internal): Ditto.
22553 2012-05-09 Uros Bizjak <ubizjak@gmail.com>
22556 * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
22557 128 bit vectors specially for TARGET_AVX. Emit sse2_movupd and
22558 sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
22559 or when optimizing for size.
22560 * config/i386/sse.md (*mov<mode>_internal): Remove
22561 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
22562 Calculate "mode" attribute according to optimize_function_for_size_p
22563 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
22564 (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
22565 depending on the mode of the instruction. Calculate "mode" attribute
22566 according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
22567 and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
22568 (*<sse2>_movdqu<avxsizesuffix>): Ditto.
22570 2012-05-09 Georg-Johann Lay <avr@gjlay.de>
22573 * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
22574 * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
22575 * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
22576 * config/avr/avr.c (avr_asm_declare_function_name): Remove.
22577 (expand_prologue): Move initialization of cfun->machine->is_naked,
22578 is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
22579 (avr_set_current_function): ...this new static function.
22580 (TARGET_SET_CURRENT_FUNCTION): New define.
22581 (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
22582 checking attributes of current_function_decl.
22583 (avr_regs_to_save): Ditto.
22584 (signal_function_p): Rename to avr_signal_function_p.
22585 (interrupt_function_p): Rename to avr_interrupt_function_p.
22587 * doc/extend.texi (Function Attributes): Better explanation of
22588 'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
22589 alphabetical order.
22591 2012-05-09 Michael Matz <matz@suse.de>
22593 PR tree-optimization/53185
22594 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
22595 peeling when we see strided loads.
22597 2012-05-09 Matthias Klose <doko@ubuntu.com>
22599 * gcc-ar.c (main): Don't check for execute bits for the plugin.
22601 2012-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
22603 * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
22604 Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
22605 USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
22606 * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
22607 (USE_LOAD_POST_INCREMENT): Define.
22608 (USE_LOAD_PRE_INCREMENT): Define.
22609 (USE_LOAD_POST_DECREMENT): Define.
22610 (USE_LOAD_PRE_DECREMENT): Define.
22611 (USE_STORE_PRE_DECREMENT): Define.
22612 (USE_STORE_PRE_INCREMENT): Define.
22613 (USE_STORE_POST_DECREMENT): Define.
22614 (USE_STORE_POST_INCREMENT): Define.
22615 (arm_auto_incmodes): Add enumeration.
22616 * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
22617 * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
22619 2012-05-09 Jakub Jelinek <jakub@redhat.com>
22621 PR tree-optimization/53226
22622 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
22623 prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
22624 before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
22625 doesn't need to be revisited, look for earliest stmt with
22626 !gimple_plf (stmt, GF_PLF_1) if something changed.
22628 2012-05-09 Terry Guo <terry.guo@arm.com>
22630 * genmultilib: Update copyright dates.
22631 * doc/fragments.texi: Ditto.
22633 2012-05-09 Terry Guo <terry.guo@arm.com>
22635 * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
22636 * genmultilib (MULTILIB_REQUIRED): New.
22637 * doc/fragments.texi: Document the MULTILIB_REQUIRED.
22639 2012-05-09 Richard Guenther <rguenther@suse.de>
22641 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22642 (vect_do_peeling_for_loop_bound): Likewise.
22643 (vect_do_peeling_for_alignment): Likewise.
22644 * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
22645 (vect_do_peeling_for_loop_bound): Get check_profitability and
22646 threshold as parameters.
22647 (vect_do_peeling_for_alignment): Likewise.
22648 (vect_loop_versioning): Likewise.
22649 * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
22650 and threshold here. Control where to put the check here.
22652 2012-05-09 Richard Sandiford <rdsandiford@googlemail.com>
22654 PR middle-end/53249
22655 * dwarf2out.h (get_address_mode): Move declaration to...
22657 * dwarf2out.c (get_address_mode): Move definition to...
22658 * rtlanal.c: ...here.
22659 * var-tracking.c (get_address_mode): Delete.
22660 * combine.c (find_split_point): Use get_address_mode instead of
22661 targetm.addr_space.address_mode.
22662 * cselib.c (cselib_record_sets): Likewise.
22663 * dse.c (canon_address, record_store): Likewise.
22664 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
22665 * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
22666 (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
22667 (expand_expr_real_1): Likewise.
22668 * ifcvt.c (noce_try_cmove_arith): Likewise.
22669 * optabs.c (maybe_legitimize_operand_same_code): Likewise.
22670 * reload.c (find_reloads): Likewise.
22671 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
22672 * sel-sched-dump.c (debug_mem_addr_value): Likewise.
22674 2012-05-09 Maciej W. Rozycki <macro@codesourcery.com>
22676 * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
22677 information from the instruction produced.
22679 2012-05-09 Richard Guenther <rguenther@suse.de>
22681 * stor-layout.c (bit_from_pos): Document.
22682 (byte_from_pos): Likewise. Optimize.
22683 (pos_from_bit): Likewise.
22684 (normalize_offset): Use pos_from_bit instead of replicating it.
22686 2012-05-09 Alan Modra <amodra@gmail.com>
22689 * config/rs6000/rs6000.c (gen_frame_set): New function.
22690 (gen_frame_load, gen_frame_store): New functions.
22691 (rs6000_savres_rtx): Use the above.
22692 (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
22693 Correct mode used for CR2 in save/restore_world patterns.
22694 Don't emit instructions for eh_return frame unwind reg info.
22696 2012-05-08 Jan Hubicka <jh@suse.cz>
22698 * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
22700 * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
22702 * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
22704 (compile_file): Do not output variables.
22705 * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
22707 * langhooks.c: Include timevar.h
22708 (write_global_declarations): Finalize compilation unit after wrapup;
22709 set timevars correctly.
22710 * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
22711 not to be added to varpool.
22712 * varpool.c (varpool_assemble_decl): Sanity check that we are called
22713 only on cases where it makes sense; skip constant pool and value expr
22716 2012-05-08 David S. Miller <davem@davemloft.net>
22718 * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
22719 * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
22720 * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
22722 2012-05-08 Richard Sandiford <rdsandiford@googlemail.com>
22724 PR rtl-optimization/53278
22725 * lower-subreg.c (decompose_multiword_subregs): Remove left-over
22726 speed_p code from earlier patch.
22728 2012-05-08 Oleg Endo <olegendo@gcc.gnu.org>
22731 * config/sh/sh.md (*branch_true, *branch_false): New insns.
22733 2012-05-08 Teresa Johnson <tejohnson@google.com>
22735 * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
22736 * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
22738 2012-05-08 Jan Hubicka <jh@suse.cz>
22740 * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
22741 (cgraph_create_node_1): Rename to ...
22742 (cgraph_create_empty_node): ... this one; export.
22743 (cgraph_create_node): Update.
22744 (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
22745 (cgraph_create_edge_including_clones): Likewise.
22746 (cgraph_find_replacement_node): Likewise.
22747 (cgraph_clone_edge): Likewise.
22748 (cgraph_clone_node): Likewise.
22749 (clone_function_name): Likewise.
22750 (cgraph_create_virtual_clone): Likewise.
22751 (cgraph_remove_node_and_inline_clones): Likewise.
22752 (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
22753 * cgraph.h: Reorder declarations so they match file of origin.
22754 (cgraph_create_empty_node): Declare.
22755 * cgraphunit.c (update_call_expr): Move to cgraphclones.c
22756 (cgraph_copy_node_for_versioning): Likewise.
22757 (cgraph_function_versioning): Likewise.
22758 (cgraph_materialize_clone): Likewise.
22759 (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
22760 (cgraph_materialize_all_clones): Likewise.
22761 * cgraphclones.c: New file.
22762 * Makefile.in: Update for cgraphclones.
22764 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
22767 * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
22768 (ix86_rtx_costs): Handle SET.
22770 2012-05-08 Michael Matz <matz@suse.de>
22772 * basic-block.h (struct rtl_bb_info): Remove visited member and
22773 move head_ member to ...
22774 (struct basic_block_def.basic_block_il_dependent): ... the new
22775 member x, replacing but containing old member rtl.
22776 (enum bb_flags): New BB_VISITED flag.
22777 (BB_HEADER, BB_FOOTER): New macros.
22779 * jump.c (mark_all_labels): Adjust.
22780 * cfgcleanup.c (try_optimize_cfg): Adjust.
22781 * cfglayout.c (record_effective_endpoints): Adjust.
22782 (relink_block_chain): Ditto (and don't fiddle with visited).
22783 (fixup_reorder_chain): Adjust.
22784 (fixup_fallthru_exit_predecessor): Ditto.
22785 (cfg_layout_duplicate_bb): Ditto.
22786 * combine.c (update_cfg_for_uncondjump): Adjust.
22787 * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
22788 (bb_visited_trace): New accessor.
22789 (mark_bb_visited): Move in front.
22790 (rotate_loop): Use bb_visited_trace.
22791 (find_traces_1_round): Ditto.
22792 (emit_barrier_after): Ditto.
22793 (copy_bb): Ditto, and initialize visited on resize.
22794 (reorder_basic_blocks): Initize visited member.
22795 (duplicate_computed_gotos): Clear bb flags at start, use
22798 * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
22799 (rtl_verify_flow_info_1): Ditto.
22800 (cfg_layout_split_block): Ditto.
22801 (cfg_layout_delete_block): Ditto.
22802 (cfg_layout_merge_blocks): Ditto.
22803 (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
22805 2012-05-08 Hans-Peter Nilsson <hp@axis.com>
22808 * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
22809 when a constant source operand matches an "I" constraint, the "no
22810 CC0 change" applies to a register-destination only, not a
22811 strict_low_part-destination.
22813 2012-05-08 Richard Guenther <rguenther@suse.de>
22815 * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
22816 to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
22818 2012-05-08 Georg-Johann Lay <avr@gjlay.de>
22820 * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
22822 * doc/avr-mmcu.texi: New auto-generated file.
22823 * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
22824 to document all valid -mmcu= arguments.
22826 * config/avr/avr.h (arch_info_s): New struct definition.
22827 * config/avr/avr-devices.c (avr_texinfo): New variable.
22828 * config/avr/gen-avr-mmcu-texi.c: New file.
22829 * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
22831 2012-05-08 Dehao Chen <dehao@google.com>
22833 * predict.c (find_qualified_ssa_name): New.
22834 (find_ssa_name_in_expr): New.
22835 (find_ssa_name_in_assign_stmt): New.
22836 (is_comparison_with_loop_invariant_p): New.
22837 (is_bound_expr_similar): New.
22838 (predict_iv_comparison): New.
22839 (predict_loops): Add heuristic for loop-nested branches that compare an
22840 induction variable to a loop bound variable.
22841 * predict.def (PRED_LOOP_IV_COMPARE): New macro.
22843 2012-05-08 Uros Bizjak <ubizjak@gmail.com>
22845 * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
22846 TARGET_BDVER2 defines where appropriate.
22848 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
22850 * configure.ac (PLUGIN_LD): Rename into...
22851 (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
22852 * config.in: Regenerate.
22853 * configure: Likewise.
22854 * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
22856 2012-05-07 Eric Botcazou <ebotcazou@adacore.com>
22858 * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
22859 computation using the precision of the index type.
22860 * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
22861 (fold_array_ctor_reference): Do index computations in the index type.
22863 2012-05-07 Georg-Johann Lay <avr@gjlay.de>
22865 * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
22866 down to plus_constant.
22867 (expand_epilogue): Ditto.
22869 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
22871 * postreload.c (reload_cse_regs): Make static.
22872 * reload.h (reload_cse_regs): Remove prototype.
22874 2012-05-07 Richard Henderson <rth@redhat.com>
22876 * config/alpha/alpha.md (clear_cache): New pattern.
22878 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
22880 PR middle-end/53245
22881 * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
22882 is folded to a type boundary value, verify that the resulting case
22883 label is still a care range.
22885 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
22887 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
22888 only for TARGET_GENERIC, when not optimizing for size.
22889 (*ffs<mode>_1): Ditto.
22891 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
22893 * tree-cfg.c (verify_gimple_switch): Tighten checks.
22895 2012-05-07 Jakub Jelinek <jakub@redhat.com>
22897 PR tree-optimization/53239
22898 * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
22899 of DECL_BY_REFERENCE RESULT_DECL to nonnull.
22901 2012-05-07 Richard Guenther <rguenther@suse.de>
22903 PR tree-optimization/53195
22904 * tree-inline.c (setup_one_parameter): Properly add referenced
22905 vars from the parameters new known value.
22907 2012-05-07 Steven Bosscher <steven@gcc.gnu.org>
22909 * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
22910 (sched_branch_type): Remove.
22911 (m68k_sched_md_init_global): Don't allocate it.
22912 (m68k_sched_md_finish_global): Don't free it.
22913 * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
22914 * config/m68k/m68k.md: Set the type of insns using
22915 m68k_sched_branch_type to bcc directly.
22917 2012-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22919 * config/sol2.c (solaris_override_options): New function.
22920 * config/sol2-protos.h (solaris_override_options): Declare.
22921 * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
22923 2012-05-07 Richard Guenther <rguenther@suse.de>
22925 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
22926 whether we failed to compute data dependences.
22927 (loop_prefetch_arrays): Fail if we failed.
22929 2012-05-07 Uros Bizjak <ubizjak@gmail.com>
22930 Paolo Bonzini <bonzini@gnu.org>
22932 * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
22933 Emit bsf when optimizing for size.
22934 (*ffs<mode>_1): Ditto.
22936 2012-05-07 Oleg Endo <olegendo@gcc.gnu.org>
22939 * config/sh/sh.c (sh_rtx_costs): Handle SET.
22941 2012-05-06 Uros Bizjak <ubizjak@gmail.com>
22944 * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
22945 (bswapdi2): Split from bswap<mode>2. Use nonnimediate_operand
22946 predicate for operand 1. Force operand 1 to register for TARGET_BSWAP.
22948 (*bswapdi2_doubleword): New insn pattern.
22949 (*bswap<mode>2): Rename from *bswap<mode>2_1.
22951 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
22953 * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
22954 (mips_set_reg_reg_cost): Likewise.
22955 (mips_rtx_costs): Handle SET.
22957 2012-05-06 Richard Sandiford <rdsandiford@googlemail.com>
22959 * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
22960 (compute_costs): Likewise for the zero extension. Use set_rtx_cost
22961 to compute the cost of moves. Set the mode of the target register.
22963 2012-05-05 Richard Sandiford <rdsandiford@googlemail.com>
22965 * rtl.h (plus_constant, plus_constant_mode): Merge into a single
22966 plus_constant function.
22967 * explow.c (plus_constant, plus_constant_mode): Likewise. Assert
22968 that the mode is sensible.
22969 (use_anchored_address, round_push, allocate_dynamic_stack_space)
22970 (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
22973 * alias.c (canon_rtx): Likewise.
22974 (init_alias_analysis): Likewise.
22975 * builtins.c (expand_builtin_return_addr)
22976 (expand_builtin_setjmp_setup, expand_builtin_longjmp)
22977 (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
22978 (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
22979 (expand_builtin_stpcpy): Likewise.
22980 * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
22981 (compute_argument_addresses, internal_arg_pointer_based_exp)
22982 (expand_call, emit_library_call_value_1): Likewise.
22983 * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
22984 * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
22985 * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
22986 * cse.c (insert_const_anchor, find_reg_offset_for_const)
22987 (use_related_value, fold_rtx): Likewise.
22988 * cselib.c (cselib_subst_to_values): Likewise.
22989 * dse.c (record_store, check_mem_read_rtx): Likewise.
22990 * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
22991 * emit-rtl.c (adjust_address_1): Likewise.
22992 * except.c (sjlj_emit_function_enter)
22993 (expand_builtin_extract_return_addr)
22994 (expand_builtin_frob_return_addr): Likewise.
22995 * expmed.c (expand_divmod): Likewise.
22996 * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
22997 (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
22998 (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
22999 * function.c (assign_stack_local_1)
23000 (instantiate_virtual_regs_in_rtx): Likewise.
23001 * optabs.c (prepare_cmp_insn): Likewise.
23002 * recog.c (offsettable_address_addr_space_p): Likewise.
23003 * reload.c (find_reloads_address, form_sum)
23004 (find_reloads_subreg_address): Likewise.
23005 * reload1.c (init_reload, eliminate_regs_1)
23006 (eliminate_regs_in_insn): Likewise.
23007 * simplify-rtx.c (simplify_unary_operation_1)
23008 (simplify_binary_operation_1, simplify_plus_minus): Likewise.
23009 * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
23010 (vt_add_function_parameter): Likewise.
23012 * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
23013 * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
23014 * config/alpha/alpha.c (alpha_legitimize_address_1)
23015 (get_unaligned_address, alpha_expand_unaligned_load)
23016 (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
23017 (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
23018 (alpha_expand_builtin_establish_vms_condition_handler)
23019 (alpha_setup_incoming_varargs, emit_frame_store_1)
23020 (alpha_expand_prologue, alpha_expand_epilogue)
23021 (alpha_use_linkage): Likewise.
23022 * config/alpha/alpha.md: Likewise.
23024 * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
23025 (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
23026 (thumb_legitimize_address, arm_gen_load_multiple_1)
23027 (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
23028 (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
23029 (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
23030 (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
23031 (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
23032 (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
23033 (thumb_expand_movmemqi, arm_set_return_address)
23034 (thumb_set_return_address): Likewise.
23035 * config/arm/arm.md: Likewise.
23037 * config/avr/avr.c (avr_incoming_return_addr_rtx)
23038 (avr_prologue_setup_frame, expand_epilogue)
23039 (avr_const_address_lo16): Likewise.
23041 * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
23042 * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
23043 (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
23044 (bfin_output_mi_thunk): Likewise.
23046 * config/c6x/c6x.c (c6x_initialize_trampoline)
23047 (c6x_output_mi_thunk): Likewise.
23049 * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
23050 * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
23052 * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
23053 (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
23054 (cris_emit_movem_store, cris_trampoline_init): Likewise.
23055 * config/cris/cris.md: Likewise.
23057 * config/darwin.c (machopic_indirect_data_reference)
23058 (machopic_legitimize_pic_address): Likewise.
23060 * config/epiphany/epiphany.c (epiphany_emit_save_restore)
23061 (epiphany_expand_prologue, epiphany_expand_epilogue)
23062 (epiphany_trampoline_init): Likewise.
23063 * config/epiphany/epiphany.md: Likewise.
23065 * config/fr30/fr30.c (fr30_move_double): Likewise.
23067 * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
23068 (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
23069 (frv_index_memory, unspec_got_name, frv_find_base_term)
23070 (frv_output_dwarf_dtprel): Likewise.
23072 * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
23073 (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
23075 * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
23076 * config/i386/i386.c (setup_incoming_varargs_64)
23077 (setup_incoming_varargs_ms_64, choose_baseaddr)
23078 (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
23079 (ix86_emit_probe_stack_range, ix86_expand_prologue)
23080 (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
23081 (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
23082 (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
23083 (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
23084 (x86_output_mi_thunk): Likewise.
23085 * config/i386/i386.md: Likewise.
23087 * config/ia64/ia64.c (ia64_expand_load_address)
23088 (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
23089 (do_spill, ia64_trampoline_init): Likewise.
23091 * config/iq2000/iq2000.c (iq2000_va_start)
23092 (iq2000_emit_frame_related_store, iq2000_expand_prologue)
23093 (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
23094 (iq2000_print_operand, iq2000_legitimize_address): Likewise.
23096 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
23098 * config/m32c/m32c.c (m32c_return_addr_rtx)
23099 (m32c_expand_insv): Likewise.
23101 * config/m32r/m32r.c (m32r_setup_incoming_varargs)
23102 (m32r_legitimize_pic_address, m32r_print_operand)
23103 (m32r_print_operand_address): Likewise.
23105 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
23106 * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
23107 (EH_RETURN_HANDLER_RTX): Likewise.
23108 * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
23109 (m68k_expand_epilogue, legitimize_pic_address)
23110 (m68k_output_mi_thunk): Likewise.
23111 * config/m68k/m68k.md: Likewise.
23113 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
23114 (mcore_expand_epilog): Likewise.
23115 * config/mcore/mcore.md: Likewise.
23117 * config/mep/mep.c (mep_allocate_initial_value)
23118 (mep_expand_prologue, mep_expand_epilogue): Likewise.
23120 * config/microblaze/microblaze.c (double_memory_operand)
23121 (microblaze_block_move_loop): Likewise.
23123 * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
23124 (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
23125 (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
23126 (mips_expand_prologue, mips_epilogue_set_cfa)
23127 (mips_expand_epilogue): Likewise.
23128 * config/mips/mips.md: Likewise.
23130 * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
23131 (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
23133 * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
23134 (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
23136 * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
23137 (EH_RETURN_HANDLER_RTX): Likewise.
23138 * config/moxie/moxie.c (moxie_static_chain): Likewise.
23140 * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
23141 (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
23142 (pa_return_addr_rtx, hppa_builtin_saveregs)
23143 (pa_trampoline_init): Likewise.
23144 * config/pa/pa.md: Likewise.
23146 * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
23148 * config/picochip/picochip.c (picochip_static_chain): Likewise.
23150 * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
23151 * config/rs6000/rs6000.c (rs6000_legitimize_address)
23152 (setup_incoming_varargs, print_operand, rs6000_return_addr)
23153 (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
23154 (rs6000_emit_epilogue)
23155 (rs6000_machopic_legitimize_pic_address): Likewise.
23157 * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
23159 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
23160 (DYNAMIC_CHAIN_ADDRESS): Likewise.
23161 * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
23162 (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
23163 (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
23164 (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
23165 (s390_emit_epilogue, s390_function_profiler): Likewise.
23166 * config/s390/s390.md: Likewise.
23168 * config/score/score.c (score_add_offset, score_prologue): Likewise.
23170 * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
23171 (sh_output_mi_thunk): Likewise.
23172 * config/sh/sh.md: Likewise.
23174 * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
23175 (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
23176 * config/sparc/sparc.c (sparc_legitimize_pic_address)
23177 (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
23178 (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
23179 (emit_and_preserve): Likewise.
23180 * config/sparc/sparc.md: Likewise.
23182 * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
23183 * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
23184 (spu_setup_incoming_varargs, ea_load_store_inline)
23185 (spu_expand_load): Likewise.
23187 * config/stormy16/stormy16.c (xstormy16_expand_prologue)
23188 (combine_bnp): Likewise.
23190 * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
23191 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
23192 (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
23194 * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
23195 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
23196 (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
23198 * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
23199 * config/v850/v850.md: Likewise.
23201 * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
23202 (EH_RETURN_HANDLER_RTX): Likewise.
23203 * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
23204 * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
23205 (print_operand_address, vax_trampoline_init): Likewise.
23207 * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
23208 (xtensa_function_value_regno_p): Likewise.
23210 2012-05-04 Andrew Pinski <apinski@cavium.com>
23212 * expr.c (get_def_for_expr_class): New function.
23213 (convert_tree_comp_to_rtx): New function.
23214 (expand_cond_expr_using_cmove): New function.
23215 (expand_expr_real_2 <case COND_EXPR>): Call
23216 expand_cond_expr_using_cmove first and return if it succeeds.
23217 Remove the check for HAVE_conditional_move since we should have
23218 already converted it to a conditional move.
23219 * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
23220 modes of DImode for 32bits and TImode.
23222 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
23225 * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
23226 (print_md_ptr_loc, print_c_condition): Use them.
23227 * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
23228 * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
23229 attr_file, dfa_file, latency_file): New global variables.
23230 (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
23231 write_upcase, write_indent, write_length_unit_log, write_test_expr,
23232 write_attr_get, write_insn_cases, write_eligible_delay,
23233 write_const_num_delay_slots): Accept FILE pointer and toss it around.
23234 Update all callers.
23235 (write_header, open_outfile, handle_arg): New funcions.
23236 (make_automaton_attrs): Write prototypes as extern to the output
23238 (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
23239 names from the command line. Open the output files and write out
23240 internal functions for DFA functions to dfa_file_name, insn latency
23241 functions to latency_file_name, and everything else to attr_file.
23242 * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
23243 (BACKEND): Build libbackend first.
23244 (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
23245 (.PRECIOUS): Likewise.
23246 (insn-dfatab.o): New rule.
23247 (insn-latencytab.o): New rule.
23248 (simple_rtl_generated_c): Do not include insn-attrtab.c.
23249 (s-attrtab): New rule.
23251 2012-05-04 Steven Bosscher <steven@gcc.gnu.org>
23253 * rtl.def (ATTR_FLAG): Remove probability indicating flags.
23254 * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
23255 ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
23256 * reorg.c (get_jump_flags): Do not set the removed flags.
23258 * doc/md.texi (attr_flag): Update for abovementioned changes.
23260 2012-05-04 Uros Bizjak <ubizjak@gmail.com>
23263 * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
23264 (TARGET_CMOV): Rename from TARGET_CMOVE.
23265 (TARGET_CMOVE): New define.
23266 * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
23267 Do not set TARGET_CMOVE here.
23269 2012-05-04 Dodji Seketeli <dodji@redhat.com>
23271 Enable -Wunused-local-typedefs when -Wall or -Wunused is on
23272 * opts.c (finish_options): Activate -Wunused-local-typedefs if
23273 -Wunused is activated.
23274 * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
23276 2012-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23278 * config/s390/s390.md (*movmem_short, *clrmem_short)
23279 (*cmpmem_short): Move the mode check from the insn condition to
23282 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
23284 PR tree-optimization/52633
23285 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
23286 vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
23287 (vect_recog_over_widening_pattern): Remove handling of code that was
23288 already detected as over-widening pattern. Remove special handling
23289 of "unsigned" cases. Instead, support general case of conversion
23290 of the shift result to another type.
23292 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
23294 * tree-vect-patterns.c (vect_single_imm_use): New function.
23295 (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
23296 (vect_recog_over_widening_pattern): Likewise.
23297 (vect_recog_widen_shift_pattern): Likewise.
23299 2012-05-04 Ulrich Weigand <ulrich.weigand@linaro.org>
23301 * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
23302 (vect_handle_widen_op_by_const): Use it instead of open-coding test.
23303 (vect_recog_widen_mult_pattern): Likewise.
23304 (vect_operation_fits_smaller_type): Likewise.
23305 (vect_recog_over_widening_pattern): Likewise.
23306 (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
23308 2012-05-04 Richard Guenther <rguenther@suse.de>
23311 * lto-wrapper.c (merge_and_complain): Complain about mismatches
23312 of -freg-struct-return and -fpcc-struct-return.
23313 (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
23314 from the input file options and ignore those from the link
23317 2012-05-04 Richard Guenther <rguenther@suse.de>
23319 PR tree-optimization/53168
23320 * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
23321 memory reads when the result is a constant we can pun.
23323 2012-05-04 Richard Guenther <rguenther@suse.de>
23325 * common.opt (flto-report): Do not mark as Optimization.
23327 2012-05-04 Eric Botcazou <ebotcazou@adacore.com>
23330 * recog.c (constrain_operands): If extra constraints are present, also
23331 accept pseudo-registers with equivalent memory locations during reload.
23333 2012-05-04 Olivier Hainque <hainque@adacore.com>
23335 * collect2.c (may_unlink_output_file): New global.
23336 (maybe_unlink): Honor it.
23337 * collect2.h: Add extern for it.
23338 * tlink.c (do_tlink): Set it to true if the link succeeded.
23340 2012-05-04 Olivier Hainque <hainque@adacore.com>
23342 * gcc.c (eval_spec_function): Finalize/restore the current string
23343 obstack state as part of the context push/pop operations.
23345 2012-05-04 Bin Cheng <bin.cheng@arm.com>
23347 PR rtl-optimization/52804
23348 * reload1.c (reload_reg_reaches_end_p): Check whether successor
23349 reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
23350 of current one with type RELOAD_FOR_INPADDR_ADDRESS.
23351 Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
23352 RELOAD_FOR_OUTADDR_ADDRESS.
23354 2012-05-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
23357 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
23358 for macro expansion.
23360 2012-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
23362 * flags.h (flag_permissive): Do not declare.
23363 * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
23365 * toplev.c (flag_permissive): Do not define.
23366 * c-tree.h (system_header_p): Delete unused.
23368 2012-05-03 David S. Miller <davem@davemloft.net>
23371 * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
23372 MEM directly into a libcall, mark it's MEM_EXPR as addressable.
23373 (sparc_emit_float_lib_cmp): Likewise.
23375 2012-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
23378 * config/rs6000/rs6000.md (bswapdi splitters): If
23379 -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
23380 default) is used, generate an alternate sequence that does not
23381 depend on using indexed addressing.
23383 2012-05-03 Jason Merrill <jason@redhat.com>
23385 * gengtype.c (write_types): Fix warning message.
23386 (write_local): Likewise.
23388 2012-05-02 Jason Merrill <jason@redhat.com>
23390 * dwarf2out.c (struct external_ref, build_local_stub): New.
23391 (hash_external_ref, external_ref_eq, lookup_external_ref): New.
23392 (optimize_external_refs, optimize_external_refs_1): New.
23393 (change_AT_die_ref): New.
23394 (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
23395 (build_abbrev_table): Take the external refs hashtable.
23396 (output_comp_unit): Get it from optimize_external_refs and pass it in.
23398 2012-05-03 Jan Hubicka <jh@suse.cz>
23400 PR middle-end/53093
23401 * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
23403 2012-05-03 Jan Hubicka <jh@suse.cz>
23405 PR middle-end/53106
23406 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
23408 2012-05-03 Jason Merrill <jason@redhat.com>
23410 * dwarf2out.c (die_struct): Add comdat_type_p flag. Use it instead of
23411 use_debug_types to discriminate the die_id union.
23412 (print_die, assign_symbol_names, copy_decls_walk): Likewise.
23413 (build_abbrev_table, output_die): Likewise.
23414 (prune_unused_types_walk_attribs): Likewise.
23415 (generate_type_signature, copy_declaration_context): Set it.
23416 (remove_child_or_replace_with_skeleton): Set it.
23417 (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
23418 check use_debug_types.
23419 (dwarf2out_finish): Do break_out_includes after .debug_types.
23421 2012-05-03 Jason Merrill <jason@redhat.com>
23423 * dwarf2out.c (modified_type_die): Use scope_die_for.
23424 (gen_type_die_with_usage, dwarf2out_finish): Likewise.
23425 (uses_local_type_r, uses_local_type): New.
23426 (scope_die_for): Keep a type that uses a local type in local scope.
23427 Use get_context_die for namespace and type scope.
23429 2012-05-03 Jason Merrill <jason@redhat.com>
23431 * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
23433 * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
23434 (dwarf2out_finish): Likewise.
23436 2012-05-03 Martin Jambor <mjambor@suse.cz>
23438 * builtins.c (get_object_alignment_1): Return whether we can determine
23439 the alignment or conservatively assume byte alignment. Return the
23440 alignment by reference. Use get_pointer_alignment_1 for dereference
23442 (get_pointer_alignment_1): Return whether we can determine the
23443 alignment or conservatively assume byte alignment. Return the
23444 alignment by reference. Use get_ptr_info_alignment to get SSA name
23446 (get_object_alignment): Update call to get_object_alignment_1.
23447 (get_object_or_type_alignment): Likewise, fall back to type alignment
23448 only when it returned false.
23449 (get_pointer_alignment): Update call to get_pointer_alignment_1.
23450 * fold-const.c (get_pointer_modulus_and_residue): Update call to
23451 get_object_alignment_1.
23452 * ipa-prop.c (ipa_modify_call_arguments): Update call to
23453 get_pointer_alignment_1.
23454 * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
23455 of MEM_REF or TARGET_MEM_REF only when it returns false.
23456 * tree-ssa-ccp.c (get_value_from_alignment): Update call to
23457 get_object_alignment_1.
23458 (ccp_finalize): Use set_ptr_info_alignment.
23459 * tree.h (get_object_alignment_1): Update declaration.
23460 (get_pointer_alignment_1): Likewise.
23461 * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
23462 (dump_gimple_stmt): Likewise.
23463 * tree-flow.h (ptr_info_def): Updated comments of fields align and
23465 (get_ptr_info_alignment): Declared.
23466 (mark_ptr_info_alignment_unknown): Likewise.
23467 (set_ptr_info_alignment): Likewise.
23468 (adjust_ptr_info_misalignment): Likewise.
23469 * tree-ssa-address.c (copy_ref_info): Use new access functions to get
23470 and set alignment of SSA names.
23471 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
23472 mark_ptr_info_alignment_unknown.
23473 * tree-ssanames.c (get_ptr_info_alignment): New function.
23474 (mark_ptr_info_alignment_unknown): Likewise.
23475 (set_ptr_info_alignment): Likewise.
23476 (adjust_ptr_info_misalignment): Likewise.
23477 (get_ptr_info): Call mark_ptr_info_alignment_unknown.
23478 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
23480 (bump_vector_ptr): Likewise.
23481 * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
23482 (vectorizable_store): Likewise.
23483 (vectorizable_load): Likewise.
23485 2012-05-03 Michael Matz <matz@suse.de>
23487 * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
23488 in front of basic_block_def.
23489 (struct basic_block_def): Make il.gimple the full struct, not a
23491 (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
23493 * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
23494 * gimple-iterator.c (gimple_stmt_iterator): Don't special case
23495 NULL il.gimple, which can't happen anymore.
23496 * gimple.h (bb_seq): il.gimple can't be NULL.
23497 (bb_seq_add): Ditto.
23498 (set_bb_seq): Adjust.
23499 (gsi_start_bb, gsi_last_bb): Tidy.
23500 * lto-streamer-in.c (make_new_block): Don't zero members that
23501 are zeroed already, don't allocate a gimple_bb_info.
23502 * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
23503 (remove_bb): Clear all il.gimple members.
23504 (gimple_verify_flow_info): Adjust for flat il.gimple.
23505 * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
23507 * coretypes.h (const_gimple_seq): Remove typedef.
23508 * gimple.h (gimple_seq_first): Take gimple_seq.
23509 (gimple_seq_first_stmt): Ditto.
23510 (gimple_seq_last): Ditto.
23511 (gimple_seq_last_stmt): Ditto.
23512 (gimple_seq_empty_p): Ditto.
23514 2012-05-03 Richard Guenther <rguenther@suse.de>
23516 * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
23518 (prune_clobbered_mems): Do it here. Do not uselessly sort expressions.
23519 (compute_avail): Do not add possibly trapping operations to
23520 EXP_GEN if they might not be executed in the block.
23522 2012-05-03 Uros Bizjak <ubizjak@gmail.com>
23524 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
23526 2012-05-03 Steven Bosscher <steven@gcc.gnu.org>
23528 * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
23529 information as early as possible. Update dominance info instead of
23532 2012-05-03 Richard Guenther <rguenther@suse.de>
23534 * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
23535 (union_contains_value): Remove.
23536 (vro_valid_in_sets): Likewise.
23537 (op_valid_in_sets): New function.
23538 (valid_in_sets): Use op_valid_in_sets.
23539 (insert_into_preds_of_block): Move dumping ...
23540 (do_regular_insertion): ... here.
23541 (do_partial_partial_insertion): ... and here. Dump that
23542 we've found a partial partial redundancy.
23543 (insert): Dump the current insert iteration.
23545 2012-05-03 Jakub Jelinek <jakub@redhat.com>
23548 * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
23549 append program name to it and pass that as first argument
23550 to make_relative_prefix. Always pass standard_libexec_prefix
23551 as last argument to make_relative_prefix. If
23552 make_relative_prefix returns NULL, fall back to
23553 standard_libexec_prefix.
23556 * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
23560 * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
23561 mode, return that mode.
23564 * config/i386/i386-c.c (ix86_target_macros_internal): Don't
23565 define __ATOMIC_HLE_* macros here.
23566 (ix86_target_macros): But here, using cpp_define_formatted.
23568 2012-05-03 Richard Guenther <rguenther@suse.de>
23570 PR tree-optimization/53144
23571 * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
23573 (vn_reference_lookup_or_insert_for_pieces): ... this. Properly deal
23574 with SSA name values.
23575 (vn_reference_lookup_3): Adjust callers.
23577 2012-05-03 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
23579 * config/i386/driver-i386.c (host_detect_local_cpu): Reset
23580 has_fma4 for AMD processors with both fma3 and fma4 support.
23582 2012-05-03 Kirill Yukhin <kirill.yukhin@intel.com>
23585 * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
23588 2012-05-03 Michael Matz <matz@suse.de>
23591 * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
23592 (dse_enter_block): Properly iterate the whole sequence even
23593 if the last statement was removed.
23595 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
23597 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
23598 unset flag_jump_tables.
23599 * stmt.c (expand_case): Remove special flag_pic case conditional
23600 on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
23602 2012-05-02 Ulrich Weigand <ulrich.weigand@linaro.org>
23604 * common/config/s390/s390-common.c (s390_option_optimization_table):
23605 Enable -fsched-pressure using -fsched-pressure-algorithm=model by
23606 default when optimizing.
23608 2012-05-02 Martin Jambor <mjambor@suse.cz>
23611 * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
23612 of a variable when the contect is a function.
23614 2012-05-02 Michael Matz <matz@suse.de>
23616 * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
23617 * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
23618 (const_gimple_seq_node): Remove.
23619 (gimple_seq_node): Typedef as gimple.
23620 (struct gimple_statement_base): Add next and prev members,
23621 adjust all WORD markers in using structs.
23622 (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
23623 (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
23624 gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
23625 gimple are the same.
23626 (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
23627 gimple_seq, adjust.
23628 (gimple_init_singleton): New function.
23629 (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
23630 (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
23631 (gsi_stmt): Adjust.
23632 (gsi_stmt_ptr): Remove.
23633 (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
23635 * gimple-iterator.c (update_bb_for_stmts): Take last parameter
23636 again, adjust for above changes.
23637 (update_call_edge_frequencies): Adjust for above changes.
23638 (gsi_insert_seq_nodes_before): Rewrite for new data structure.
23639 (gsi_insert_seq_nodes_after): Ditto.
23640 (gsi_split_seq_after): Ditto.
23641 (gsi_set_stmt): Ditto.
23642 (gsi_split_seq_before): Ditto.
23643 (gsi_remove): Ditto.
23644 (gsi_insert_seq_before_without_update): Don't free sequence.
23645 (gsi_insert_seq_after_without_update): Ditto.
23646 (gsi_replace): Assert some more invariants.
23647 (gsi_insert_before_without_update, gsi_insert_after_without_update):
23649 (gsi_for_stmt): Don't search for stmt.
23650 (gsi_insert_on_edge_immediate): Tidy.
23652 * gimple.c (gimple_alloc_k): Remove "sequences".
23653 (gimple_seq_cache): Remove.
23654 (gimple_alloc_stat): Make stmt a singleton sequence.
23655 (gimple_seq_alloc, gimple_seq_free): Remove.
23656 (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
23657 (gimple_copy): Ditto.
23658 * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
23659 create iterator from correct sequence.
23660 * tree-phinodes.c (make_phi_node): Make stmt a singleton.
23662 2012-05-02 Michael Matz <matz@suse.de>
23664 * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
23666 (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
23667 sequence, lazily allocate it.
23668 (bb_seq_addr): New function.
23669 (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
23670 (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
23671 (gsi_none): New function.
23672 (gsi_start_bb): Adjust.
23673 (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
23674 (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
23675 (gsi_last_bb): Adjust.
23677 * tree-flow-inline.h (phi_nodes_ptr): New function.
23679 * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
23680 datastructure and interface change.
23681 (gsi_insert_seq_before_without_update): Ditto.
23682 (gsi_insert_seq_nodes_after): Ditto.
23683 (gsi_insert_seq_after_without_update): Ditto.
23684 (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
23685 (gsi_split_seq_before): Ditto.
23686 (gsi_start_phis): Adjust.
23687 * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
23688 (vect_transform_loop): Ditto.
23689 * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
23690 gimple_seq_copy): Don't use gimple_seq_alloc.
23691 * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
23692 (gimplify_seq_add_seq): Ditto.
23693 * lto-streamer-in.c (make_new_block): Ditto.
23694 * tree-cfg.c (create_bb): Ditto.
23695 * tree-sra.c (initialize_parameter_reductions): Ditto.
23697 2012-05-02 Michael Matz <matz@suse.de>
23699 * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
23700 gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
23701 gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
23702 set_bb_seq): Move down to after gimple_statement_d definition.
23704 2012-05-02 Michael Matz <matz@suse.de>
23706 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
23707 gsi_replace_with_seq, instead of inserting itself.
23708 * gimple-iterator.c (gsi_replace_with_seq): New function.
23709 * tree-ssa-forwprop.c (forward_propagate_comparison): Take
23710 iterator instead of statement, advance it.
23711 (ssa_forward_propagate_and_combine): Adjust call to above.
23713 2012-05-02 Michael Matz <matz@suse.de>
23715 * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
23717 * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
23718 * tree-nested.c (walk_gimple_omp_for): Ditto.
23719 * trans-mem.c (lower_transaction): Ditto.
23720 * tree-eh.c (do_return_redirection): Ditto.
23721 (do_goto_redirection): Ditto.
23722 (lower_try_finally_switch): Ditto.
23723 * gimplify.c (gimplify_stmt): Ditto.
23724 (gimplify_scan_omp_clauses): Ditto.
23725 (gimplify_omp_for): Ditto.
23726 (gimplify_function_tree): Ditto.
23727 * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
23728 * tree-mudflap.c (mf_decl_cache_locals): Ditto.
23729 (mf_build_check_statement_for): Ditto.
23730 (mx_register_decls): Ditto.
23731 * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
23732 and don't use itertors to append.
23733 (insert_stmts): Ditto.
23734 (insert_out_of_ssa_copy): Ditto.
23735 (insert_out_of_ssa_copy_on_edge): Ditto.
23737 2012-05-02 Michael Matz <matz@suse.de>
23739 * gimple.h (gimple_bind_body_ptr): New function.
23740 (gimple_bind_body): Use it.
23741 (gimple_catch_handler): Use gimple_catch_handler_ptr.
23742 (gimple_eh_filter_failure_ptr): New function.
23743 (gimple_eh_filter_failure): Use it.
23744 (gimple_eh_else_n_body_ptr): New function.
23745 (gimple_eh_else_n_body): Use it.
23746 (gimple_eh_else_e_body_ptr): New function.
23747 (gimple_eh_else_e_body): Use it.
23748 (gimple_try_eval_ptr): New function.
23749 (gimple_try_eval): Use it.
23750 (gimple_try_cleanup_ptr): New function.
23751 (gimple_try_cleanup): Use it.
23752 (gimple_wce_cleanup_ptr): New function.
23753 (gimple_wce_cleanup): Use it.
23754 (gimple_omp_body_ptr): New function.
23755 (gimple_omp_body): Use it.
23756 (gimple_omp_for_pre_body_ptr): New function.
23757 (gimple_omp_for_pre_body): Use it.
23758 (gimple_transaction_body_ptr): New function.
23759 (gimple_transaction_body): Use it.
23760 (gsi_split_seq_before): Adjust to return nothing and take pointer
23762 (gsi_set_stmt): Declare.
23763 (gsi_replace_with_seq): Declare.
23764 (walk_gimple_seq_mod): Declare.
23765 * function.h (struct function <gimple_body>): Use typedef gimple_seq.
23767 * gimple-iterator.c (gsi_set_stmt): New function.
23768 (gsi_split_seq_before): Return new sequence via pointer argument.
23769 (gsi_replace): Use gsi_set_stmt.
23771 * tree-ssa-loop-im.c (move_computations_stmt): First remove
23773 * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
23774 * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
23776 (reserve_phi_args_for_new_edge): Change call to above,
23779 * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
23780 (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
23781 iterators. Adjust call to lower_omp.
23782 (lower_lastprivate_clauses): Adjust call to lower_omp.
23783 (lower_reduction_clauses): Ditto.
23784 (expand_omp_taskreg): Nullify non-cfg body of child_fn.
23785 (lower_omp_sections): Don't explicitely count sequence length,
23786 nullify lowered bodies earlier, ensure stmts are part of only
23787 one sequence, adjust call to lower_omp.
23788 (lower_omp_single): Ensure stmts are part of only one sequence,
23789 adjust call to lower_omp.
23790 (lower_omp_master): Ditto.
23791 (lower_omp_ordered): Ditto.
23792 (lower_omp_critical): Ditto.
23793 (lower_omp_for): Ditto.
23794 (lower_omp_taskreg): Ditto, tidy.
23795 (lower_omp_1): Adjust calls to lower_omp.
23796 (execute_lower_omp): Ditto.
23797 (lower_omp): Adjust to take pointer to sequence.
23798 (diagnose_sb_2): Use walk_gimple_seq_mod.
23799 (diagnose_omp_structured_block_errors): Ditto and set possibly
23800 changed function body.
23801 * gimple-low.c (lower_function_body): Set function body after
23803 (lower_sequence): Adjust to take pointer to sequence.
23804 (lower_omp_directive): Ensure stmt isn't put twice into the
23805 sequence, adjust call to lower_sequence.
23806 (lower_stmt): Adjust calls to lower_sequence.
23807 (lower_gimple_bind): Ditto.
23808 (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
23809 * tree-nested.c (walk_body): Take pointer to sequence, use
23810 walk_gimple_seq_mod.
23811 (walk_function): Adjust call to walk_body, set possibly changed body.
23812 (walk_gimple_omp_for): Adjust calls to walk_body.
23813 (convert_nonlocal_omp_clauses): Ditto.
23814 (convert_nonlocal_reference_stmt): Ditto.
23815 (convert_local_omp_clauses): Ditto.
23816 (convert_local_reference_stmt): Ditto.
23817 (convert_tramp_reference_stmt): Ditto.
23818 (convert_gimple_call): Ditto.
23819 (convert_nl_goto_reference): Use local iterator copy.
23820 * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
23821 but taking pointer to sequence, ensure gsi_start is called with
23823 (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
23824 asserting that the sequence head didn't change.
23825 (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
23826 walk_gimple_seq_mod.
23827 * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
23828 (execute_lower_tm): Ditto, and set possibly changed body.
23829 * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
23830 call gsi_start with that lvalue.
23831 (replace_goto_queue_stmt_list): Ditto.
23832 (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
23833 (replace_goto_queue): Ditto.
23834 (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
23835 (lower_try_finally_onedest): Ditto.
23836 (lower_try_finally_copy): Ditto.
23837 (lower_try_finally_switch): Ditto.
23838 (lower_try_finally): Ditto.
23839 (lower_eh_filter): Ditto.
23840 (lower_eh_must_not_throw): Ditto.
23841 (lower_cleanup): Ditto.
23842 (lower_eh_constructs_2): Ditto.
23843 (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
23844 (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
23845 set possibly changed body.
23846 (optimize_double_finally): Call gsi_start with lvalue.
23848 * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
23849 (gimple_split_block): Ditto.
23850 (gimple_merge_blocks): Use gsi_start_phis.
23851 (move_stmt_r): Use walk_gimple_seq_mod.
23852 * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
23853 * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
23854 (rebuild_cgraph_edges): Ditto.
23855 (cgraph_rebuild_references): Ditto.
23856 * ipa-prop.c (ipa_analyze_params_uses): Ditto.
23857 * tree-inline.c (copy_phis_for_bb): Ditto.
23858 * tree-ssa-dce.c: Ditto.
23860 * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
23862 2012-05-02 Kirill Yukhin <kirill.yukhin@intel.com>
23863 Andi Kleen <ak@linux.intel.com>
23865 * coretypes.h (MEMMODEL_MASK): New.
23866 * builtins.c (get_memmodel): Add val. Call target.memmodel_check
23867 and return new variable.
23868 (expand_builtin_atomic_exchange): Mask memmodel values.
23869 (expand_builtin_atomic_compare_exchange): Ditto.
23870 (expand_builtin_atomic_load): Ditto.
23871 (expand_builtin_atomic_store): Ditto.
23872 (expand_builtin_atomic_clear): Ditto.
23873 * doc/extend.texi: Mention port-dependent memory model flags.
23874 * config/i386/cpuid.h (bit_HLE): New.
23875 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
23877 * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
23878 * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
23879 (ix86_target_string)<-mhle>: New.
23880 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
23881 * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
23882 (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
23883 (ix86_option_override_internal) <PTA_HLE>: New switch, set it
23884 enabled for generic, generic64 and core-avx2.
23885 (ix86_print_operand): Generate HLE lock prefixes.
23886 (ix86_memmodel_check): New.
23887 (TARGET_MEMMODEL_CHECK): Ditto.
23888 * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
23889 (IX86_HLE_ACQUIRE): Ditto.
23890 (IX86_HLE_RELEASE): Ditto.
23891 * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
23892 * config/i386/i386.opt (mhle): Ditto.
23893 * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
23894 success model to instruction emitter.
23895 (atomic_fetch_add<mode>): Ditto.
23896 (atomic_exchange<mode>): Ditto.
23897 (atomic_add<mode>): Ditto.
23898 (atomic_sub<mode>): Ditto.
23899 (atomic_<code><mode>): Ditto.
23900 (*atomic_compare_and_swap_doubledi_pic): Ditto.
23901 (atomic_compare_and_swap_single<mode>): Define and use argument
23903 (atomic_compare_and_swap_double<mode>): Ditto.
23904 * configure.ac: Check if assembler support HLE prefixes.
23905 * configure: Regenerate.
23906 * config.in: Ditto.
23908 2012-05-02 Steven Bosscher <steven@gcc.gnu.org>
23910 PR middle-end/53153
23911 * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
23913 (gimplify_switch_expr): ... here.
23914 * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
23915 * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
23916 to clean up case labels with values outside the index type range.
23917 (simplify_gimple_switch): Call it if something changed.
23918 Remove strange and unnecessary assert.
23920 2012-05-02 Richard Guenther <rguenther@suse.de>
23922 * fold-const.c (div_if_zero_remainder): sizetypes no longer
23924 (int_const_binop_1): New worker for int_const_binop with
23925 overflowable parameter. Pass it through to force_fit_type_double.
23926 (int_const_binop): Wrap around int_const_binop_1 with overflowable
23928 (size_binop_loc): Call int_const_binop_1 with overflowable equal
23929 to minus one, forcing overflow detection for even unsigned types.
23930 (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
23931 (fold_binary_loc): Call try_move_mult_to_index with signed offset.
23932 * stor-layout.c (initialize_sizetypes): sizetypes no longer
23934 (layout_type): For zero-sized arrays ignore overflow on the
23936 * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
23937 (bit_value_binop_1): Likewise.
23938 * tree.c (double_int_to_tree): Likewise.
23939 (double_int_fits_to_tree_p): Likewise.
23940 (force_fit_type_double): Likewise.
23941 (host_integerp): Likewise.
23942 (int_fits_type_p): Likewise.
23943 * varasm.c (output_constructor_regular_field): Sign-extend the
23944 field-offset to cater for negative offsets produced by the Ada
23946 * omp-low.c (extract_omp_for_data): Convert the loop step to
23947 signed for pointer adjustments.
23949 2012-05-02 Richard Guenther <rguenther@suse.de>
23951 * tree.c (valid_constant_size_p): New function.
23952 * tree.h (valid_constant_size_p): Declare.
23953 * cfgexpand.c (expand_one_var): Adjust check for too large
23954 variables by using valid_constant_size_p.
23955 * varasm.c (assemble_variable): Likewise.
23957 * c-decl.c (grokdeclarator): Properly check for sizes that
23958 cover more than half of the address-space.
23960 2012-05-02 Jakub Jelinek <jakub@redhat.com>
23962 PR tree-optimization/53163
23963 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
23964 return value from compute_all_dependences.
23966 PR rtl-optimization/53160
23967 * ree.c (combine_reaching_defs): Handle the case where cand->insn
23968 has been modified by ree pass already.
23970 2012-05-01 Ian Lance Taylor <iant@google.com>
23973 * c-decl.c (build_compound_literal): Make the decl readonly if it
23974 an array of a readonly type.
23975 * gimplify.c (gimplify_compound_literal_expr): Add fallback
23976 parameter. Change all callers. If the decl is not addressable
23977 and is not an l-value, make it readonly.
23979 2012-05-01 Bernd Schmidt <bernds@codesourcery.com>
23981 * ira.c (allocated_reg_info_size): New static variable.
23982 (expand_reg_info): Manage it. Call
23983 setup_preferred_alternate_classes_for_new_pseudos.
23984 (ira): Don't do it here. Remove local allocated_reg_info_size,
23985 set the global before calling find_moveable_pseudos.
23986 (find_moveable_pseudos): Call expand_reg_info rather than
23989 2012-05-01 Richard Henderson <rth@redhat.com>
23991 * common.opt (fsync-libcalls): New.
23992 * doc/invoke.texi: Document it.
23993 * optabs.c (init_sync_libfuncs): Honor it.
23995 2012-05-01 Kenneth Zadeck <zadeck@naturalbridge.com>
23996 Richard Sandiford <r.sandiford@uk.ibm.com>
23998 PR rtl-optimization/52543
23999 * Makefile.in (lower-subreg.o, target-globals.o): Depend on
24001 * lower-subreg.h: New file.
24002 * target-globals.h (this_target_lower_subreg): Declare.
24003 (target_globals): Add lower_subreg;
24004 (restore_target_globals): Restore this_target_lower_subreg.
24005 * target-globals.c: Include it.
24006 (default_target_globals): Add default_target_lower_subreg.
24007 (save_target_globals): Initialize target_lower_subreg.
24008 * rtl.h (init_lower_subreg): Added declaration.
24009 * toplev.c (backend_init_target): Call initializer for lower-subreg
24011 * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
24012 (default_target_lower_subreg): New variable.
24013 (this_target_lower_subreg): Likewise.
24014 (twice_word_mode, choices): New macros.
24015 (shift_cost, compute_splitting_shift, compute_costs)
24016 (init_lower_subreg): New functions.
24017 (resolve_simple_move): Add speed_p argument. Check choices.
24018 (find_pseudo_copy): Don't check the mode size here.
24019 (resolve_simple_move): Assert the mode size.
24020 (find_decomposable_shift_zext): Add speed_p argument and return
24021 a bool. Check choices.
24022 (resolve_shift_zext): Add comment.
24023 (dump_shift_choices, dump_choices): New functions.
24024 (decompose_multiword_subregs): Dump list of profitable
24025 transformations. Add code to skip non profitable transformations.
24026 Update calls to simple_move and find_decomposable_shift_zext.
24028 2012-05-01 Ian Bolton <ian.bolton@arm.com>
24029 Sameera Deshpande <sameera.deshpande@arm.com>
24030 Greta Yorsh <greta.yorsh@arm.com>
24032 * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
24033 (thumb1_unexpanded_epilogue): ...this.
24034 * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
24035 (thumb1_unexpanded_epilogue): ...this.
24036 * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
24037 (thumb1_unexpanded_epilogue): ...this.
24039 2012-05-01 Richard Earnshaw <rearnsha@arm.com>
24041 * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
24042 comparing enumeration values. Update comments.
24044 2012-05-01 Alan Modra <amodra@gmail.com>
24047 * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
24048 load_cr_save, add_crlr_cfa_restore): New functions.
24049 (rs6000_restore_saved_cr): Rename to..
24050 (restore_saved_cr): ..this. Add cfa_restore notes for cr.
24051 (rs6000_emit_epilogue): Use new functions. Adjust condition
24052 for emitting lr and cr cfa_restore. Emit cfa_restores for fp
24053 regs when using out-of-line restore only when shrink wrapping.
24055 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
24057 PR middle-end/53136
24058 * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
24059 calls to cgraph_node_name in xstrdup.
24060 (ipa_make_edge_direct_to_target): Ditto.
24061 * cgraph.c (dump_cgraph_node): Ditto.
24062 * tree-sra.c (convert_callers_for_node): Ditto.
24063 * lto-symtab.c (lto_cgraph_replace_node): Ditto.
24064 * ipa-cp.c (perhaps_add_new_callers): Ditto.
24065 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
24066 (cgraph_materialize_all_clones): Ditto.
24067 * ipa-inline.c (report_inline_failed_reason): Ditto.
24068 (want_early_inline_function_p): Ditto.
24069 (edge_badness): Ditto.
24070 (update_edge_key): Ditto.
24071 (flatten_function): Ditto.
24072 (ipa_inline): Ditto.
24073 (inline_always_inline_functions): Ditto.
24074 (early_inline_small_functions): Ditto.
24076 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
24079 * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
24080 constraints 0 and 1.
24082 012-04-30 Jan Hubicka <jh@suse.cz>
24084 * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
24085 (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
24086 (cgraph_add_to_same_comdat_group): Remove.
24087 (cgraph_add_asm_node): Move to cgraphunit.c.
24088 (cgraph_make_decl_local): Move to symtab.c
24089 (cgraph_make_node_local_1): Update.
24090 (cgraph_can_remove_if_no_direct_calls_and): Update.
24091 (used_from_object_file_p): Update.
24092 (resolution_used_from_other_file_p): Move to symtab.c
24093 (cgraph_used_from_object_file_p): move to symtab.c
24094 (verify_cgraph_node): Verify same comdat groups.
24095 * cgraph.h (cgraph_asm_node): Rename to ...
24096 (asm_node): ... this one.
24097 (cgraph_asm_nodes): Rename to ...
24098 (asm_nodes): ... this one.
24099 (symtab_add_to_same_comdat_group): New function.
24100 (symtab_dissolve_same_comdat_group_list): New function.
24101 (symtab_used_from_object_file_p): Declare.
24102 (symtab_make_decl_local): Declare.
24103 (cgraph_add_to_same_comdat_group): Remove.
24104 (cgraph_add_asm_node): Remove.
24105 (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
24107 (cgraph_finalize_compilation_unit): Rename to ...
24108 (finalize_compilation_unit): ... this one.
24109 (cgraph_optimize): Rename to ....
24110 (compile): ... this one.
24111 (add_asm_node): Declare.
24112 (fixup_same_cpp_alias_visibility): Declare.
24113 (cgraph_make_decl_local): Remove.
24114 (varpool_assemble_pending_decls): Rename to ...
24115 (varpool_output_variables): ... this one.
24116 (varpool_remove_unreferenced_decls): Remove.
24117 * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
24118 (preserve_function_body_p): Make static.
24119 * toplev.c (compile_file): Update comments; update.
24120 * cgraphunit.c: Update comments.
24121 (cgraph_expand_all_functions): Rename to ...
24122 (expand_all_functions): ... this one; update.
24123 (cgraph_mark_functions_to_output): Rename to ...
24124 (mark_functions_to_output): ... this one; cleanup.
24125 (cgraph_output_pending_asms): Remove prototype.
24126 (asm_nodes, asm_last_node): New static vars.
24127 (cgraph_process_new_functions): Update.
24128 (cgraph_reset_node): Cleanup; add comment.
24129 (cgraph_add_new_function): Update.
24130 (cgraph_output_pending_asms): Rename to ...
24131 (output_asm_statements): ... this one.
24132 (add_asm_node): New function.
24133 (fixup_same_cpp_alias_visibility): New function based on code
24134 in cgraph_analyze_function.
24135 (cgraph_analyze_function): Use it.
24136 (cgraph_order_sort): Update.
24137 (cgraph_output_in_order): Update.
24138 (cgraph_function_versioning): Update.
24139 (cgraph_optimize): Rename to ...
24140 (compile): ... this one; initialize streamer hooks here.
24141 (cgraph_finalize_compilation_unit): Rename to ...
24142 (finalize_compilation_unit): ... this one; do not initialize streamer
24144 * lto-streamer-out.c (lto_output_toplevel_asms): Update.
24145 * dwarf2out.c: Update ocmment.
24146 * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
24147 * method.c (use_thunk): Likewise.
24148 * semantics.c (maybe_add_lambda_conv_op): Likewise.
24149 * decl2.c (maybe_emit_vtables): Likewise.
24150 (cp_write_global_declarations): Use finalize_compilation_unit.
24151 * parser.c (cp_parser_asm_definition): Use add_asm_node.
24152 * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
24153 * c-decl.c (c_write_global_declarations): Use
24154 finalize_compilation_unit.
24155 * langhooks.c (write_global_declarations): Update.
24156 * ipa.c (cgraph_externally_visible_p): Update.
24157 (dissolve_same_comdat_group_list): Remove.
24158 (function_and_variable_visibility): Update.
24159 * symtab.c: Inlcude lto-streamer.h and rtl.h
24160 (ld_plugin_symbol_resolution_names): New.
24161 (symtab_add_to_same_comdat_group): New.
24162 (symtab_dissolve_same_comdat_group_list): New.
24163 (resolution_used_from_other_file_p): Move here from cgraph.c
24164 (symtab_used_from_object_file_p): New.
24165 (symtab_make_decl_local): New.
24166 * passes.c (register_pass): Update comments.
24167 * c-parser.c (c_parser_asm_definition): Update.
24168 * varpool.c (varpool_analyze_node): Use
24169 fixup_same_cpp_alias_visibility.
24170 (varpool_remove_unreferenced_decls): Make static.
24171 (varpool_assemble_pending_decls): Rename to ...
24172 (varpool_output_variables): ... this one; call
24173 varpool_remove_unreferenced_decls.
24174 (varpool_used_from_object_file_p): Remove.
24176 2012-04-30 Marc Glisse <marc.glisse@inria.fr>
24179 * c-typeck.c (build_array_ref): Call
24180 convert_vector_to_pointer_for_subscript.
24181 * doc/extend.texi (Vector Extensions): Subscripting not just for C.
24183 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
24185 * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
24186 to compile-time "mode == <MODE>mode" checks.
24187 (and splitter): Ditto.
24189 2012-04-30 Richard Henderson <rth@redhat.com>
24191 * config/arm/arm.md (UNSPEC_LL): New.
24192 * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
24193 (arm_load_exclusivedi): Use %H0.
24195 2012-04-30 Jason Merrill <jason@redhat.com>
24197 * dwarf2out.c (comdat_symbol_id): Add const.
24198 (union die_symbol_or_type_node): Add const to die_symbol.
24199 (output_die_symbol, output_die, output_comp_unit): Adjust.
24201 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
24203 * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
24204 * config/arm/neon.md (negdi2_neon): New insn.
24205 Also add splitters for core and NEON registers.
24207 2012-04-30 Andrew Stubbs <ams@codesourcery.com>
24209 * config/arm/arm.c (neon_valid_immediate): Allow const_int.
24210 (arm_print_operand): Add 'x' format.
24211 * config/arm/constraints.md (Dn): Allow const_int.
24212 * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
24213 Use 'x' format to print constants.
24214 * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
24215 * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
24217 (movdi_vfp_cortexa8): Likewise.
24219 2012-04-30 Ian Bolton <ian.bolton@arm.com>
24220 Sameera Deshpande <sameera.deshpande@arm.com>
24221 Greta Yorsh <greta.yorsh@arm.com>
24223 * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
24224 * config/arm/arm.c (ldm_stm_operation_p): New function.
24225 * config/arm/predicates.md (load_multiple_operation): Update predicate.
24226 (store_multiple_operation): Likewise.
24228 * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
24229 * config/arm/arm.c (ldm_stm_operation_p): New parameters.
24230 * config/arm/predicates.md (load_multiple_operation): Add arguments.
24231 (store_multiple_operation): Likewise.
24233 2012-04-30 Uros Bizjak <ubizjak@gmail.com>
24235 * config/i386/i386.md (and<mode>3): Expand masking operations with
24236 0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
24237 (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
24239 2012-04-30 Dodji Seketeli <dodji@redhat.com>
24241 Add -Wvarargs option
24242 * builtins.c (fold_builtin_next_arg): Use OPT_Wvarargs as an
24243 argument for the various warning_at calls.
24244 * docs/invoke.texi: Update the documentation.
24246 2012-04-30 Dodji Seketeli <dodji@redhat.com>
24248 Switch -ftrack-macro-expansion=2 on by default.
24249 * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
24252 Fix va_start related location
24253 * builtins.c (fold_builtin_next_arg): Unwinds to the first
24254 location in real source code.
24256 Make conversion warnings work on NULL with -ftrack-macro-expansion
24257 * input.h (expansion_point_location_if_in_system_header): Declare
24259 * input.c (expansion_point_location_if_in_system_header): Define it.
24261 Fix -Wuninitialized for -ftrack-macro-expansion
24262 * tree-ssa.c (warn_uninit): Use the spelling location of the variable
24263 declaration. Use linemap_location_before_p for source locations.
24265 Strip "<built-in>" loc from displayed expansion context
24266 * input.c (expand_location_1): When expanding to spelling location
24267 in a context of a macro expansion, skip reserved system header
24268 locations. Update comments. * tree-diagnostic.c
24269 (maybe_unwind_expanded_macro_loc): Likewise.
24271 Make expand_location resolve to locus in main source file
24272 * input.c (expand_location_1): New. Takes a parameter to choose
24273 whether to resolve the location to spelling or expansion point.
24274 Was factorized from ...
24275 (expand_location): ... here.
24276 (expand_location_to_spelling_point): New. Implemented in terms of
24278 * diagnostic.c (diagnostic_build_prefix): Use the new
24279 expand_location_to_spelling_point instead of expand_location.
24281 Fix PCH crash on GTYed pointer-to-scalar field of a struct
24282 * gengtype.c (write_types_process_field): Force second argument of
24283 the call to the PCH object hierarchy walker to be 'x'.
24285 2012-04-30 Eric Botcazou <ebotcazou@adacore.com>
24287 * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
24288 predicate to discriminate types.
24290 2012-04-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
24292 * doc/invoke.texi (Wmissing-format-attribute): Document as an
24293 alias of Wsuggest-attribute=format.
24294 * c-typeck.c (convert_for_assignment): Replace
24295 Wmissing-format-attribute with Wsuggest-attribute=format.
24296 (digest_init): Likewise.
24298 2012-04-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
24300 * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
24301 * common.opt (Wmissing-noreturn): Alias of
24302 -Wsuggest-attribute=noreturn.
24304 2012-04-29 Hans-Peter Nilsson <hp@axis.com>
24307 * config/cris/cris.md (andqu): New peephole2.
24308 (andu): Tweak head comment.
24310 2012-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
24311 Steven Bosscher <steven@gcc.gnu.org>
24312 Maxim Kuvyrkov <maxim@codesourcery.com>
24314 PR tree-optimization/38785
24315 * common.opt (ftree-partial-pre): New option.
24316 * doc/invoke.texi: Document it.
24317 * opts.c (default_options_table): Initialize flag_tree_partial_pre.
24318 * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
24319 benefit speed path.
24320 (execute_pre): Use flag_tree_partial_pre.
24322 2012-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24325 * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
24328 2012-04-27 Ollie Wild <aaw@google.com>
24330 * doc/invoke.texi (Wliteral-suffix): Document new option.
24332 2012-04-27 Tom Tromey <tromey@redhat.com>
24334 * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
24335 (dwarf_tag_name): Use get_DW_TAG_name.
24336 (dwarf_attr_name): Use get_DW_AT_name.
24337 (dwarf_form_name): Use get_DW_FORM_name.
24338 * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
24340 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
24342 * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
24343 arguments are -1 and 0, by negating the result of the conditional.
24345 2012-04-27 Paolo Bonzini <bonzini@gnu.org>
24348 * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
24350 2012-04-27 Richard Guenther <rguenther@suse.de>
24352 * tree-flow.h (is_hidden_global_store): Remove.
24353 * tree-ssa-sink.c (is_hidden_global_store): Likewise.
24354 * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
24355 (stmt_may_clobber_global_p): Likewise.
24356 * tree-ssa-alias.c (ref_may_alias_global_p): New function.
24357 (stmt_may_clobber_global_p): Likewise.
24358 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
24359 stmt_may_clobber_global_p.
24360 * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
24362 2012-04-27 Steven Bosscher <steven@gcc.gnu.org>
24364 * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
24367 * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
24368 reorganize some fields and update comments. Rename bit_test_uniq
24369 and bit_test_count to uniq resp. count. Remove bit_test_bb.
24370 (collect_switch_conv_info): New function, collects info about a
24371 GIMPLE_SWITCH into a struct switch_conv_info.
24372 (check_range): Simplify to use pre-recorded info. Fix think-o in
24373 range-branch ratio check.
24374 (check_process_case): Remove function.
24375 (check_all_empty_except_final): New function, verifies that all
24376 non-final basic blocks are empty.
24377 (process_switch): Simplify to use pre-recorded info. Call
24378 collect_switch_conv_info to do that. Assert that degenerate switch
24379 statements have been cleaned up.
24381 2012-04-27 Marc Glisse <marc.glisse@inria.fr>
24383 PR middle-end/27139
24384 * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
24386 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
24389 * c-typeck.c (pop_init_level): Use %qD instead of %qT.
24391 2012-04-27 Tom de Vries <tom@codesourcery.com>
24393 PR tree-optimization/51879
24394 * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
24395 * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
24397 (defs_to_varying): ... here. Don't set use_processed.
24398 (visit_reference_op_call): Handle gimple_vdef.
24399 Handle case that lhs is NULL_TREE.
24400 (visit_use): Use mark_use_processed. Handle calls with side-effect
24401 using visit_reference_op_call.
24403 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
24405 * sched-deps.c (fixup_sched_groups): Rename to...
24406 (chain_to_prev_insn): ...this.
24407 (chain_to_prev_insn_p): New function.
24408 (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
24410 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
24412 * sched-int.h (_haifa_insn_data): Move priority_status.
24414 (INSN_MODEL_INDEX): New macro.
24415 * haifa-sched.c (insn_delay): New function.
24416 (sched_regno_pressure_class): Update commentary.
24417 (mark_regno_birth_or_death): Pass the liveness bitmap and
24418 pressure array as arguments, instead of using curr_reg_live and
24419 curr_reg_pressure. Only update the pressure if the bit in the
24420 liveness set has changed.
24421 (initiate_reg_pressure_info): Always trust the live-in set for
24422 SCHED_PRESSURE_MODEL.
24423 (initiate_bb_reg_pressure_info): Update call to
24424 mark_regno_birth_or_death.
24425 (dep_list_size): Take the list as argument.
24426 (calculate_reg_deaths): New function, extracted from...
24427 (setup_insn_reg_pressure_info): ...here.
24428 (MODEL_BAR): New macro.
24429 (model_pressure_data, model_insn_info, model_pressure_limit)
24430 (model_pressure_group): New structures.
24431 (model_schedule, model_worklist, model_insns, model_num_insns)
24432 (model_curr_point, model_before_pressure, model_next_priority):
24434 (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
24435 (MODEL_INSN_INFO, MODEL_INSN): New macros.
24436 (model_index, model_update_limit_points_in_group): New functions.
24437 (model_update_limit_points, model_last_use_except): Likewise.
24438 (model_start_update_pressure, model_update_pressure): Likewise.
24439 (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
24440 (model_excess_cost, model_dump_pressure_points): Likewise.
24441 (model_set_excess_costs): Likewise.
24442 (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
24443 SCHED_PRIORITY_MODEL. Use insn_delay. Use the order in the model
24444 schedule as an alternative tie-breaker. Update the call to
24446 (ready_sort): Call model_set_excess_costs.
24447 (update_register_pressure): Update call to mark_regno_birth_or_death.
24448 Rely on that function to check liveness rather than doing it here.
24449 (model_classify_pressure, model_order_p, model_add_to_worklist_at)
24450 (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
24451 (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
24452 (model_record_pressure, model_record_pressures): New functions.
24453 (model_record_final_pressures, model_add_successors_to_worklist)
24454 (model_promote_predecessors, model_choose_insn): Likewise.
24455 (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
24456 (model_start_schedule, model_finalize_pressure_group): Likewise.
24457 (model_end_schedule): Likewise.
24458 (schedule_insn): Say when we're scheduling the next instruction
24459 in the model schedule.
24460 (schedule_insn): Handle SCHED_PRESSURE_MODEL.
24461 (queue_to_ready): Do not add instructions that are
24462 MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
24463 Always allow the next instruction in the model schedule to be added.
24464 (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
24465 and delay for SCHED_PRESSURE_MODEL too.
24466 (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
24467 SCHED_PRIORITY_MODEL, but also take the DFA into account.
24468 (schedule_block): Call model_start_schedule and model_end_schedule.
24469 Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
24470 (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
24471 to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
24473 (sched_finish): Update accordingly.
24474 (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
24475 to SCHED_PRESSURE_MODEL.
24476 (add_jump_dependencies): Update call to dep_list_size.
24477 (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
24478 (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
24479 to SCHED_PRESSURE_MODEL.
24480 * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
24481 allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
24482 (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
24483 handling to SCHED_PRESSURE_MODEL.
24485 2012-04-26 Richard Sandiford <richard.sandiford@linaro.org>
24487 * common.opt (fsched-pressure-algorithm=): New option.
24488 * flag-types.h (sched_pressure_algorithm): New enum.
24489 * sched-int.h (sched_pressure_p): Replace with...
24490 (sched_pressure): ...this new variable.
24491 * haifa-sched.c (sched_pressure_p): Replace with...
24492 (sched_pressure): ...this new variable.
24493 (sched_regno_pressure_class, rank_for_schedule, ready_sort)
24494 (update_reg_and_insn_max_reg_pressure, schedule_insn)
24495 (debug_ready_list, prune_ready_list, schedule_block, sched_init)
24496 (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
24497 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
24498 (sched_analyze_insn): Likewise.
24499 * sched-rgn.c (schedule_region): Likewise.
24500 * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
24502 2012-04-26 Bernd Schmidt <bernds@codesourcery.com>
24504 PR middle-end/52997
24505 * ira.c (find_moveable_pseudos): Call resize_reg_info.
24507 PR middle-end/52940
24508 * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
24509 * expr.c (convert_move): Honor unsignedp when extending partial int
24511 * genmodes.c (complete_mode): Don't clear component field of partial
24513 (emit_mode_inner): Don't emit it however.
24514 (calc_wider_mode): Partial int modes widen to their component.
24516 2012-04-26 David S. Miller <davem@davemloft.net>
24518 * config/sparc/niagara4.md: New file.
24519 * config/sparc/sparc.md: Include it.
24520 * config/sparc/sparc.c (niagara4_costs): New processor costs.
24521 (sparc_option_override): Use it.
24522 (sparc_use_sched_lookahead): Return 2 for niagara4.
24523 (sparc_issue_rate): Likewise.
24525 * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
24526 (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
24527 (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
24528 fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
24529 (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
24530 alignaddrldi_vis): Set type to gsr.
24531 (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
24532 (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
24533 cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
24534 v<vis3_shift_patname><mode>3, fmean16_vis,
24535 fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
24536 fucmp<code>8<P:mode>_vis): Set type to fga.
24537 * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
24538 * config/sparc/niagara.md: Likewise.
24539 * config/sparc/niagara2.md: Likewise.
24540 * config/sparc/ultra3.md: Likewise, and fix type matching for
24541 us3_ialuX reservation.
24543 2012-04-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24545 * reload.c (find_reloads): Change the loop nesting when trying an
24546 alternative with swapped operands.
24548 2012-04-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
24550 * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
24551 comment. Delete unused parameter first_exp_point_map.
24552 (virt_loc_aware_diagnostic_finalizer): Update call.
24554 2012-04-26 Michael Hope <michael.hope@linaro.org>
24555 Richard Earnshaw <rearnsha@arm.com>
24557 * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
24558 (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
24559 (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
24560 (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
24562 2012-04-25 Sriraman Tallam <tmsriram@google.com>
24564 * doc/extend.texi: Document avx2 support.
24565 * config/i386/i386.c (fold_builtin_cpu): Add avx2.
24567 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
24570 * config/cris/cris.md ("*andhi_lowpart_v32")
24571 ("*andqi_lowpart_v32"): Change first input-only operand from
24572 a (match_operand ...) to (match_dup 0). Drop alternatives with
24573 const_int-matching constraints for redundancy.
24574 ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto. Drop
24575 three-operand alternative.
24577 2012-04-25 Jakub Jelinek <jakub@redhat.com>
24580 * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
24581 instead expand it as zero extension.
24583 2012-04-25 H.J. Lu <hongjiu.lu@intel.com>
24586 * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
24588 2012-04-25 Jakub Jelinek <jakub@redhat.com>
24590 * common.opt (flag_debug_types_section): Default to 0.
24591 (dwarf_version): Default to 4.
24592 (dwarf_record_gcc_switches): Default to 1.
24593 (dwarf_strict): Default to 0.
24594 * toplev.c (process_options): Don't handle dwarf_strict
24595 or dwarf_version here.
24596 * config/vxworks.c (vxworks_override_options): Don't
24597 test whether dwarf_strict or dwarf_version are negative,
24598 instead test !global_options_set.x_dwarf_*.
24599 * config/darwin.c (darwin_override_options): Default to
24601 * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
24602 and -fno-debug-types-section are now the default.
24604 2012-04-25 Jan Hubicka <jh@suse.cz>
24606 * cgraphunit.c: Update toplevel comment.
24607 (tree_rest_of_compilation): Merge into cgraph_expand_function.
24608 (cgraph_analyze_function): Make static.
24609 (cgraph_decide_is_function_needed): Make static.
24610 (cgraph_add_new_function): Use expand_function instead of
24611 rest_of_compilation.
24612 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
24613 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
24615 (cgraph_inline_p): Remove.
24616 (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
24617 (init_cgraph): Add comment.
24618 * cgraphbuild.c (record_reference, mark_address, mark_load,
24619 mark_store): Do not call analyze_expr hook.
24620 * cgraph.c: Update toplevel comment.
24621 (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
24622 verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
24623 Move fere from cgraphunit.c
24624 (cgraph_mark_force_output_node): Move to cgraph.h
24625 * cgraph.h: Reorder so the comments match the function placement.
24626 (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
24627 (cgraph_mark_force_output_node): Move here from cgraph.c
24628 * tree.c (free_lang_data): Do not clear analyze_expr hook.
24629 * ipa-inline-transform.c (preserve_function_body_p): New function.
24630 (inline_transform): Update.
24631 * langhooks.c (lhd_callgraph_analyze_expr): Remove.
24632 * langhooks.h (lang_hooks_for_callgraph): Remove.
24633 (lang_hooks): Remove callgraph.
24634 * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
24635 * varpool.c: Remove out of date comment.
24636 * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
24637 (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
24639 2012-04-25 Jan Hubicka <jh@suse.cz>
24641 PR middle-end/53089
24642 * cgraphunit.c (referred_to_p): Move ahead in file to avoid
24643 forward declaration.
24644 (cgraph_finalize_function): Finalize them here.
24645 * symtab.c (dump_symtab): Dump ctors and dtors.
24647 2012-04-25 Jakub Jelinek <jakub@redhat.com>
24649 PR middle-end/52979
24650 * stor-layout.c (get_best_mode): Don't return mode with bitsize
24651 larger than maxbits. Don't compute maxbits modulo align.
24652 Also check that unit bytes long store at bitpos / unit * unit
24653 doesn't affect bits beyond bitregion_end.
24654 * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
24655 would not fit into bitregion_start ... bitregion_end + 1 bit region.
24656 (store_split_bit_field): Decrease unit close to end of bitregion_end
24657 if access is restricted in order to avoid mutual recursion.
24659 PR tree-optimization/53058
24660 * double-int.h (double_int_max_value, double_int_min_value): New
24662 * double-int.c (double_int_max_value, double_int_min_value): New
24664 * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
24665 or GT_EXPR with double_int_max_value instead of double_int_mask.
24667 2012-04-25 Richard Guenther <rguenther@suse.de>
24669 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
24670 * tree-vect-loop.c (vect_transform_loop): Adjust.
24671 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
24672 the maximum number of iterations for the epilogue loop.
24673 (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
24675 2012-04-25 Jakub Jelinek <jakub@redhat.com>
24678 * c-typeck.c (set_nonincremental_init,
24679 set_nonincremental_init_from_string): Pass true instead of false
24680 as IMPLICIT to add_pending_init.
24682 2012-04-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
24684 * c-typeck.c (pop_init_level): Improve diagnostics.
24686 2012-04-25 Uros Bizjak <ubizjak@gmail.com>
24688 * compare-elim.c (try_eliminate_compare): Also handle operands with
24689 implicit extensions.
24691 2012-04-25 Alan Modra <amodra@gmail.com>
24693 * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
24694 V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
24695 SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
24696 (no_global_regs_above): Delete.
24697 (no_global_regs): New function.
24698 (rs6000_savres_strategy): Handle vector regs. Use proper lr_save_p
24699 value for load multiple test.
24700 (savres_routine_syms): Increase size.
24701 (rs6000_savres_routine_name, rs6000_savres_routine_sym,
24702 ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
24703 rather than a number of boolean flags. Update all callers.
24704 (rs6000_savres_routine_name): Generate vector save/restore names.
24705 (rs6000_savres_routine_sym): Handle vector regs. Delete forward decl.
24706 (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
24707 (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
24708 and using_store_multiple. Expand uses. Don't always use r11 as
24709 frame reg when needed for out-of-line saves. Set up initial offset
24710 for out-of-line vector saves when buying stack frame. Handle pointer
24711 reg setup for out-of-line fp save. Emit call to out-of-line vector
24712 save function. Choose r11 or r12 for vrsave reg when available for
24714 (rs6000_output_function_prologue): Don't emit .extern for ELF.
24715 (rs6000_emit_epilogue): Choose a better frame reg when restoring
24716 from back-chain to suit out-of-line vector restore functions. Emit
24717 call to out-of-line vector restore function. Adjust register used
24718 for cr restore. Tweak pointer register setup for gpr restore.
24719 * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
24721 * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
24722 (V_SAVE_INLINE): Define.
24723 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
24725 2012-04-25 Alan Modra <amodra@gmail.com>
24727 * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
24728 out-of-line save/restore for large frames. Don't disable
24729 out-of-line saves on ABI_AIX when using static chain reg.
24730 (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
24731 clobber static chain reg, and tweak for out-of-line gpr saves
24734 2012-04-25 Alan Modra <amodra@gmail.com>
24736 * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
24737 (rs6000_emit_prologue): Use the above to catch register overlap.
24739 2012-04-25 Alan Modra <amodra@gmail.com>
24741 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
24742 decl. Move logic selecting update reg to callers. Update all callers.
24743 (rs6000_emit_allocate_stack): Add copy_off param.
24744 (emit_frame_save): Don't handle reg+reg addressing.
24745 (ptr_regno_for_savres): New function, extracted from..
24746 (rs6000_emit_savres_rtx): ..here. Add lr_offset param.
24747 (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
24748 Set frame_reg_rtx to r11 whenever r11 is needed, and merge
24749 frame offset adjustment for out-of-line save with copy from sp.
24750 Simplify condition controlling whether cr is saved early or
24751 late. Use ptr_regno_for_savres to verify correct reg is set
24752 up for out-of-line saves. Pass the actual pointer reg used to
24753 rs6000_emit_savres_rtx so rtl matches insns in out-of-line
24754 function. Rearrange spe vars so code is similar to that
24755 elsewhere in this function. Don't update frame_off when spe
24756 save code will restore r11. Use emit_frame_save for spe and
24757 gpr saves. Consolidate darwin out-of-line gpr setup with that
24758 for other abis. Don't assume frame_offset is zero and frame
24759 reg is sp when setting up altivec reg saves, and calculate
24760 exact offset requirement.
24761 (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off. Tidy
24762 spe restore code. Consolidate darwin out-of-line gpr setup
24763 with that for other abis.
24765 2012-04-25 Alan Modra <amodra@gmail.com>
24767 * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
24768 REG_FRAME_RELATED_EXPR note when the instruction exactly matches
24770 (emit_frame_save): Delete frame_ptr param. Rename total_size to
24772 (rs6000_emit_prologue): Add sp_off. Update rs6000_frame_related
24773 and emit_frame_save calls. Cope with possibly missing note.
24775 2012-04-24 Sriraman Tallam <tmsriram@google.com>
24777 * config/i386/i386.c (build_processor_model_struct): New function.
24778 (make_var_decl): New function.
24779 (fold_builtin_cpu): New function.
24780 (ix86_fold_builtin): New function.
24781 (make_cpu_type_builtin): New function.
24782 (ix86_init_platform_type_builtins): New function.
24783 (ix86_expand_builtin): Expand new builtins by folding them.
24784 (ix86_init_builtins): Make new builtins to detect CPU type.
24785 (TARGET_FOLD_BUILTIN): New macro.
24786 (IX86_BUILTIN_CPU_INIT): New enum value.
24787 (IX86_BUILTIN_CPU_IS): New enum value.
24788 (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
24789 * config/i386/i386-builtin-types.def: New function type.
24790 * doc/extend.texi: Document builtins.
24792 2012-04-24 Olivier Hainque <hainque@adacore.com>
24794 * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
24795 * toplev.c (process_options): Default to dwarf_version 2.
24796 * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
24797 and dwarf_version 2.
24799 2012-04-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
24801 * tree-pretty-print.h (default_tree_printer): Do not declare.
24802 * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
24804 (default_tree_diagnostic_starter): Make static.
24805 (default_tree_printer): Move to here. Make static.
24806 (tree_diagnostics_defaults): New.
24807 * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
24808 * tree.c (free_lang_data): Use tree_diagnostics_defaults.
24809 * toplev.c: Do not include tree-pass.h.
24810 (default_tree_printer): Move from here.
24811 (general_init): Use tree_diagnostics_defaults.
24813 2012-04-24 Chao-ying Fu <fu@mips.com>
24815 * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
24816 (mips*-*-linux*): Append mips/linux-common.h to tm_file.
24817 * config/mips/gnu-user.h
24818 (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
24819 (GNU_USER_TARGET_LINK_SPEC): New define.
24820 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
24821 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
24822 (GNU_USER_TARGET_MATHFILE_SPEC): New define.
24823 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
24824 GNU_USER_TARGET_ENDFILE_SPEC.
24825 * config/mips/gnu-user64.h (LIB_SPEC): Remove.
24826 (GNU_USER_TARGET_LINK_SPEC): New define.
24827 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
24828 * config/mips/linux-common.h: New file.
24830 2012-04-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24833 * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
24834 (altivec_build_resolved_builtin): Call fully_fold_convert.
24836 2012-04-24 Georg-Johann Lay <avr@gjlay.de>
24839 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
24841 2012-04-24 Richard Guenther <rguenther@suse.de>
24843 PR tree-optimization/53085
24844 * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
24847 2012-04-24 Richard Guenther <rguenther@suse.de>
24849 * tree-if-conv.c (main_tree_if_conversion): Move bb under
24852 2012-04-24 Jim Meyering <meyering@redhat.com>
24854 * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
24855 absence of an define_enum call.
24857 2012-04-24 Richard Guenther <rguenther@suse.de>
24859 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
24860 the epilogue loop is not re-used as unvectorized version
24861 record the its maximum number of iterations.
24863 2012-04-24 Andrew Pinski <apinski@cavium.com>
24865 * tree-ssa-forwprop.c (simplify_bitwise_binary):
24866 Don't directly use def1/def2.
24868 2012-04-24 Richard Guenther <rguenther@suse.de>
24870 PR tree-optimization/53098
24871 * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
24874 2012-04-24 Andrew Pinski <apinski@cavium.com>
24877 * tree-ssa-forwprop.c (defcodefor_name): New function.
24878 (simplify_bitwise_binary): Use defcodefor_name instead of manually
24879 Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
24880 Simplify "(~X | Y) & X" to "X & Y" and
24881 "(~X & Y) | X" to "X | Y".
24883 2012-04-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24885 * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
24886 validate_change to add clobbers if IN_GROUP is nonzero.
24887 (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
24888 * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
24890 * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
24892 * config/s390/s390.c (insn_invalid_p): Likewise.
24894 2012-04-24 Jakub Jelinek <jakub@redhat.com>
24896 PR middle-end/53084
24897 * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
24898 (output_addressed_constants): Likewise.
24900 PR middle-end/52999
24901 * varasm.c (get_section): Don't ICE for section conflicts with
24902 built-in section kinds.
24904 2012-04-23 DJ Delorie <dj@redhat.com>
24906 * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
24907 (LIBSTDCXX): Change to CPP2.
24909 2012-04-23 H.J. Lu <hongjiu.lu@intel.com>
24912 * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
24915 2012-04-23 Uros Bizjak <ubizjak@gmail.com>
24917 * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
24918 (*addsi_2_zext): Ditto.
24919 (*add<mode>_3): Ditto.
24920 (*addsi_3_zext): Ditto.
24921 (*add<mode>_5): Ditto.
24923 2012-04-23 Andrew Pinski <apinski@cavium.com>
24925 * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
24926 (C & B) to (A OP0) & B.
24928 2012-04-23 Martin Jambor <mjambor@suse.cz>
24930 * expr.c (expand_expr_real_1): Remove setting parent's alias set for
24931 temporaries created for a bitfield (reverting revision 122014).
24933 2012-04-23 Richard Guenther <rguenther@suse.de>
24935 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
24936 the condition using is_gimple_condexpr and avoid the not necessary
24938 (set_prologue_iterations): Likewise.
24939 (vect_loop_versioning): Likewise.
24941 2012-04-23 Richard Guenther <rguenther@suse.de>
24943 PR tree-optimization/53070
24944 * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
24945 (main_tree_if_conversion): Verify we succeeded in that.
24947 2012-04-23 Jan Hubicka <jh@suse.cz>
24949 * lto-symtab.c (lto_cgraph_replace_node): Do not call
24950 mark_reahcable_node.
24951 * cgraph.c (cgraph_remove_node): Do not clear reachable.
24952 (cgraph_mark_reachable_node): Remove.
24953 (cgraph_mark_force_output_node): Do not set reachable.
24954 (dump_cgraph_node): Do not dump reachable.
24955 (cgraph_create_virtual_clone): Do not set reachable.
24956 * cgraph.h (cgraph_node): Remove reachable flag.
24957 (varpool_node): Remove reachable flag.
24958 (cgraph_mark_if_needed): Remove.
24959 (cgraph_mark_reachable_node): Remove.
24960 * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
24961 * cgraphunit.c (cgraph_finalize_function): Do not mark node as
24963 (cgraph_add_new_function): Likewise.
24964 (cgraph_mark_if_needed): Remove.
24965 (cgraph_analyze_function): Do not set target as reachable.
24966 (process_function_and_variable_attributes): Do not care about
24968 (cgraph_analyze_functions): Do not set reachable flags.
24969 (cgraph_mark_functions_to_output): Do not check reachability.
24970 (cgraph_copy_node_for_versioning): Do not set reachable flag.
24971 (dbxout_expand_expr): Update.
24972 * c-decl.c (merge_decls): Do not track changed externs.
24973 * ipa.c: Include pointer-set.h
24974 (enqueue_cgraph_node): Use reachable pointer set.
24975 (process_references): Likewise.
24976 (cgraph_remove_unreachable_nodes): Likewise.
24977 (whole_program_function_and_variable_visibility): Do not recompute
24979 * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
24981 2012-04-23 Georg-Johann Lay <avr@gjlay.de>
24983 * doc/extend.texi (AVR Named Address Spaces): Fix typos.
24985 2012-04-23 Richard Guenther <rguenther@suse.de>
24988 * c-typeck.c (build_binary_op): Fix typo.
24990 2012-04-23 Jakub Jelinek <jakub@redhat.com>
24992 PR tree-optimizations/52891
24993 * tree-vect-patterns.c (adjust_bool_pattern): Use
24994 build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
24995 but with non-standard precision.
24997 2012-04-22 Jan Hubicka <jh@suse.cz>
24999 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
25002 2012-04-22 Jan Hubicka <jh@suse.cz>
25004 * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
25005 * cgraphbuild.c (record_reference, record_type_list, mark_address,
25006 mark_load, mark_store): Do not mark varpool nodes as needed.
25007 * cgraph.c (cgraph_new_nodes): Remove.
25008 (cgraph_create_function_alias): Do not mark nodes as reachable.
25009 (cgraph_add_thunk): Likewise.
25010 (cgraph_mark_reachable_node): Do not manage the queue.
25011 * cgraph.h (cgraph_node): Remove next_needed.
25012 (varpool_nodes_queue): Remove next_needed and prev_needed.
25013 (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
25014 (cgraph_new_nodes): Declare.
25015 (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
25016 (varpool_analyze_pending_decls): Remove.
25017 (varpool_analyze_node): New.
25018 (varpool_mark_needed_node): Remove.
25019 (varpool_first_variable, varpool_next_variable): New inlines.
25020 (varpool_first_static_initializer, varpool_next_static_initializer):
25022 (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
25023 (varpool_first_defined_variable): New inline.
25024 (varpool_next_defined_variable): New inline
25025 (FOR_EACH_VARIABLE): Reimplement.
25026 (FOR_EACH_DEFINED_VARIABLE): Reimplement.
25027 * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
25029 * cgraphunit.c (cgraph_new_nodes): Declare here.
25030 (enqueue_node): New function.
25031 (cgraph_process_new_functions): update for new
25032 node set; when constructing cgraph enqueue node for processing.
25033 (cgraph_add_new_function): Use new node set.
25034 (process_function_and_variable_attributes): Do not set varpool needed
25036 (referred_to_p): New function.
25037 (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
25038 when varpool is in construction.
25039 (cgraph_analyze_functions): Rewrite.
25040 (cgraph_expand_all_functions): Update.
25041 (cgraph_output_in_order): Do not analyze pending decls; do not set
25043 (cgraph_optimize): Do not analyze pending decls.
25044 * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
25045 in other partition; do not mark node as needed.
25046 * dwarf2out.c (reference_to_unused): Use analyzed flag.
25047 (premark_types_used_by_global_vars_helper): Likewise.
25048 * ipa.c (process_references): Do not call varpool_mark_needed_node.
25049 (cgraph_remove_unreachable_nodes): Do not rely on varpool and
25051 (function_and_variable_visibility): Do not mark node as needed.
25052 (whole_program_function_and_variable_visibility): Likewise.
25053 * Makefile.in (gt-varpool.h): No longer needed.
25054 * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
25055 (ipa_write_summaries): Do not use needed flag.
25056 * varpool.c: Do not include gt-varpool.h
25057 (x_varpool_nodes_queue, x_varpool_last_needed_node,
25058 x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
25059 x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
25061 (varpool_remove_node): Do not update the lists.
25062 (dump_varpool_node): Do not dump needed flag.
25063 (varpool_enqueue_needed_node): Remove.
25064 (varpool_mark_needed_node): Remove.
25065 (varpool_reset_queue): Remove.
25066 (varpool_finalize_decl): Move to cgraphunit.c
25067 (varpool_analyze_node): New functions based on former
25068 varpool_analyze_pending_decls.
25069 (varpool_analyze_pending_decls): Remove.
25070 (varpool_assemble_decl): Do not update the lists.
25071 (enqueue_node): New function.
25072 (varpool_remove_unreferenced_decls): Rewrite.
25073 (varpool_empty_needed_queue): Remove.
25074 (add_new_static_var): Do not mark node as needed.
25075 (varpool_create_variable_alias): Handle expansion state
25077 * except.c (output_ttype): Do not mark node as needed.
25078 * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
25079 * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
25081 * tree-switch-conversion.c (build_one_array): Likewise.
25083 2012-04-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
25086 * doc/invoke.texi (pedantic): Rename to Wpedantic.
25087 * common.opt (Wpedantic): New.
25088 (pedantic): Alias Wpedantic.
25089 * diagnostic.c (warning_at): Likewise.
25090 * c-decl.c (diagnose_mismatched_decls): Likewise.
25091 (build_array_declarator): Likewise.
25092 (mark_forward_parm_decls):
25093 (check_bitfield_type_and_width): Likewise.
25094 (grokdeclarator): Likewise.
25095 (grokfield): Likewise.
25096 (finish_struct): Likewise.
25097 (build_enumerator): Likewise.
25098 (store_parm_decls_oldstyle): Likewise.
25099 (declspecs_add_qual): Likewise.
25100 (declspecs_add_type): Likewise.
25101 (finish_declspecs): Likewise.
25102 * c-typeck.c (composite_type): Likewise.
25103 (comp_target_types): Likewise.
25104 (build_array_ref): Likewise.
25105 (pointer_diff): Likewise.
25106 (build_unary_op): Likewise.
25107 (build_conditional_expr): Likewise.
25108 (build_c_cast): Likewise.
25109 (convert_for_assignment): Likewise.
25110 (maybe_warn_string_init): Likewise.
25111 (digest_init): Likewise.
25112 (pop_init_level): Likewise.
25113 (set_init_index): Likewise.
25114 (c_finish_goto_label): Likewise.
25115 (c_finish_return): Likewise.
25116 (do_case): Likewise.
25117 (build_binary_op): Likewise.
25118 * c-parser.c (static): Likewise.
25119 (c_parser_external_declaration): Likewise.
25120 (c_parser_declaration_or_fndef): Likewise.
25121 (c_parser_static_assert_declaration_no_se): Likewise.
25122 (c_parser_enum_specifier): Likewise.
25123 (c_parser_struct_or_union_specifier): Likewise.
25124 (c_parser_struct_declaration): Likewise.
25125 (c_parser_alignas_specifier): Likewise.
25126 (c_parser_braced_init): Likewise.
25127 (c_parser_initelt): Likewise.
25128 (c_parser_compound_statement_nostart): Likewise.
25129 (c_parser_conditional_expression): Likewise.
25130 (c_parser_alignof_expression): Likewise.
25131 (c_parser_postfix_expression): Likewise.
25132 (c_parser_postfix_expression_after_paren_): Likewise.
25133 (c_parser_objc_class_instance_variables): Likewise.
25134 (c_parser_objc_method_definition): Likewise.
25135 (c_parser_objc_methodprotolist): Likewise.
25137 2012-04-22 Ian Lance Taylor <iant@google.com>
25139 * godump.c (go_output_typedef): Dump size of structs.
25141 2012-04-22 Razya Ladelsky <razya@il.ibm.com>
25143 Correcting transform_to_exit_first_loop + fix to PR46886
25144 * tree-parloops.c (transform_to_exit_first_loop): Remove
25145 setting of number of iterations according to the loop pattern.
25146 Duplicate from entry to exit->src instead of loop->latch.
25147 (pallelize_loops): Remove the condition preventing do-while loops.
25148 * tree-cfg.c (bool bb_in_region_p): New.
25149 (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
25150 Adjust redirection of the duplicated iteration.
25152 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
25155 * rtl.def (ADDRESS): Use "i" rather than "w".
25156 * rtl.h (find_base_term): Delete.
25157 (may_be_sp_based_p): Declare.
25158 * rtl.c (rtx_code_size): Remove ADDRESS special case.
25159 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
25160 (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
25161 * alias.c: ...here.
25162 (find_base_term): Make static.
25163 (may_be_sp_based_p): New function.
25164 * dse.c (record_store): Use it.
25165 * store-motion.c (store_killed_in_insn): Likewise.
25167 2012-04-21 Richard Sandiford <rdsandiford@googlemail.com>
25169 * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
25171 2012-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
25174 * c-typeck.c (inform_declaration): New.
25175 (build_function_call_vec): Do not pretty-print
25176 expressions when caret is enabled.
25177 (convert_arguments): Use inform_declaration.
25179 2012-04-20 Jim Meyering <meyering@redhat.com>
25181 * genmodes.c (make_complex_modes): Don't truncate a mode name of
25182 length 7 or more when prepending a "C". Suggested by Richard Guenther.
25184 2012-04-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25186 PR rtl-optimization/44214
25187 * fold-const.c (exact_inverse): New function.
25188 (fold_binary_loc): Fold vector and complex division by constant into
25189 multiply by recripocal with flag_reciprocal_math; fold vector division
25190 by constant into multiply by reciprocal with exact inverse.
25192 2012-04-20 Jan Hubicka <jh@suse.cz>
25194 * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
25196 * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
25197 (cgraph_remove_node): Update.
25198 (cgraph_mark_needed_node): Remove.
25199 (cgraph_mark_force_output_node): New.
25200 (dump_cgraph_node): Do not dump needed flag.
25201 (cgraph_node_cannot_be_local_p_1): Update.
25202 (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
25203 * cgraph.h (symtab_node_base): Add force_output flag.
25204 (cgraph_node): Remove needed flag.
25205 (varpool_node): Remove force_output flag.
25206 (cgraph_mark_needed_node): Remove.
25207 (cgraph_mark_force_output_node): New.
25208 (cgraph_only_called_directly_or_aliased_p,
25209 varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
25210 * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
25211 * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
25212 (cgraph_add_new_function): Update.
25213 (cgraph_mark_if_needed): Update.
25214 (verify_cgraph_node): Update.
25215 (cgraph_analyze_function): Alias target is reachable.
25216 (process_function_and_variable_attributes): Update: externally_visible
25217 flag makes function reachable.
25218 (cgraph_analyze_functions): Update dumping.
25219 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
25220 input_overwrite_node, input_varpool_node): Update streaming.
25221 * lto-streamer-out.c (produce_symtab): Use force_output.
25222 * ipa.c (process_references): Weakrefs must be processed.
25223 (cgraph_remove_unreachable_nodes): Likewise; update for new
25225 (varpool_externally_visible_p): Weakrefs are externally visible
25226 even if they are not.
25227 (function_and_variable_visibility): Update; when processing alias
25228 pair force the targets to be output.
25229 (whole_program_function_and_variable_visility): Use
25230 mark_reachable_node.
25231 * trans-mem.c (ipa_tm_mark_needed_node): Remove
25232 (ipa_tm_mark_force_output_node): New function.
25233 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
25234 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
25236 * varasm.c (mark_decl_referenced): Update.
25237 (find_decl_and_mark_needed): Remove.
25238 (find_decl): New function.
25239 (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
25240 alias targets as needed.
25241 (dump_tm_clone_pairs): Update.
25242 * tree-inline.c (copy_bb): Update check.
25243 * symtab.c (dump_symtab_base): Dump force_output.
25244 * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
25245 * passes.c (execute_todo): Fix dumping.
25246 * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
25247 (varpool_analyze_pending_decls): Alias target is reachable.
25248 (varpool_create_variable_alias): Finalize weakrefs.
25250 2012-04-20 Jakub Jelinek <jakub@redhat.com>
25253 * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
25254 UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
25255 * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
25256 macros instead of constants.
25257 * dse.c (record_store): Check for SP ADDRESS by comparing
25258 XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
25259 XEXP to be stack_pointer_rtx.
25261 2012-04-20 Richard Guenther <rguenther@suse.de>
25263 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
25264 update_call_from_tree when propagating into a call.
25266 2012-04-20 Alan Modra <amodra@gmail.com>
25268 * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
25269 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise. Rename
25270 sp_offset to frame_off. Move world save code earlier.
25272 2012-04-20 Richard Guenther <rguenther@suse.de>
25274 PR tree-optimization/53050
25275 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
25276 Do only one transform on COND_EXPRs at the same time.
25278 2012-04-19 Jan Hubicka <jh@suse.cz>
25280 * symtab.c (dump_symtab_base): Revert accidental checkin.
25282 2012-04-20 Alan Modra <amodra@gmail.com>
25285 * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
25286 static chain, set REST_INLINE_FPRS too.
25288 2012-04-20 Thomas Schwinge <thomas@codesourcery.com>
25290 * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
25293 2012-04-20 Richard Guenther <rguenther@suse.de>
25295 * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
25296 loops that can never run more often than the vectorization factor.
25298 2012-04-19 Jan Hubicka <jh@suse.cz>
25300 * symtab.c (dump_symtab_base): Fix dumping of asm lists.
25302 2012-04-19 David Edelsohn <dje.gcc@gmail.com>
25304 * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
25306 2012-04-19 Jim Meyering <meyering@redhat.com>
25308 * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
25309 We verified above that the string(including trailing NUL) fits in buf,
25310 so just use memcpy.
25312 2012-04-19 Richard Guenther <rguenther@suse.de>
25314 * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
25315 for dumping DECL_SECTION_NAME.
25317 2012-04-19 Michael Matz <matz@suse.de>
25319 PR middle-end/52977
25320 * tree.h (VECTOR_CST_NELTS): Use part number of types again.
25321 (struct tree_vector): Adjust GTY length.
25322 * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
25324 * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
25326 (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
25327 caller emitted the length calulation already.
25328 (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
25329 before handling any of the fields for structs.
25331 2012-04-19 Richard Guenther <rguenther@suse.de>
25333 PR tree-optimization/53031
25334 * tree-vrp.c (adjust_range_with_scev): Revert back to
25335 using max_loop_iterations.
25337 2012-04-19 Michael Matz <matz@suse.de>
25339 * diagnostic.c (emit_diagnostic): Move va_end call after user
25341 (warning, warning_at, pedwarn, permerror): Ditto.
25343 2012-04-19 Richard Guenther <rguenther@suse.de>
25345 * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
25348 2012-04-19 Georg-Johann Lay <avr@gjlay.de>
25351 * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
25352 the case *(X+const).
25354 2012-04-19 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
25356 * config/arm/sync.md (sync_optab): Change ior attribute to "or".
25358 2012-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
25361 * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
25362 * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
25364 2012-04-19 Richard Guenther <rguenther@suse.de>
25366 PR rtl-optimization/44688
25367 * loop-iv.c (determine_max_iter): Only return max_iter.
25368 (iv_number_of_iterations): Also use the recorded loop bound
25369 on the maximum number of iterations.
25370 * loop-unroll.c (decide_unroll_runtime_iterations): Use
25371 max_iter to avoid unrolling loops that do not roll.
25372 (decide_unroll_stupid): Likewise.
25374 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
25376 * targhooks.c (default_case_values_threshold): Fix code style nit.
25378 * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
25379 case range and type folding from here...
25380 * gimplify.c (gimplify_switch_expr): ... to here. Expect NULL_TREE
25381 type, as documented in tree.def.
25383 2012-04-18 Jan Hubicka <jh@suse.cz>
25385 * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
25387 * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
25388 cgraph hash and same comdat groups.
25389 (cgraph_optimize): Verify symbol table.
25390 * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
25391 (dissolve_same_comdat_group_list): Work on symtab nodes.
25392 (function_and_variable_visibility): Dissolve variable same comdat group
25394 * symtab.c: Include timevar.h
25395 (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
25397 2012-04-18 Steven Bosscher <steven@gcc.gnu.org>
25399 * tree-switch-conversion.c (info): Remove global pass info.
25400 (check_range, check_process_case, check_final_bb, create_temp_arrays,
25401 free_temp_arrays, gather_default_values, build_constructors,
25402 array_value_type, build_one_array, build_arrays, gen_def_assigns,
25403 fix_phi_nodes, gen_inbound_check): Pass info around from ...
25404 (process_switch): ... here. Unify message format. Return a const
25405 char pointer to the failure reason message.
25406 (do_switchconv): Unify message format. Update process_switch usage.
25408 * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
25409 * tree-cfg.c (edge_to_cases): Fix documentation.
25411 2012-04-18 Uros Bizjak <ubizjak@gmail.com>
25413 * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
25415 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25417 PR tree-optimization/52976
25418 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
25419 (possibly_move_powi): New function.
25420 (rewrite_expr_tree): Call possibly_move_powi.
25421 (rewrite_expr_tree_parallel): Likewise.
25422 (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
25423 call add_to_ops_vec instead.
25425 2012-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25427 PR tree-optimization/52976
25428 * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
25429 (decrement_power): Likewise.
25430 (propagate_op_to_single_use): Likewise.
25431 (zero_one_operation): Handle __builtin_pow* calls in linearized
25432 expression trees; factor logic into propagate_op_to_single_use.
25433 (undistribute_ops_list): Allow operands with repeat counts > 1.
25435 2012-04-18 Richard Guenther <rguenther@suse.de>
25437 PR tree-optimization/44688
25438 * cfgloop.h (record_niter_bound): Declare.
25439 * tree-ssa-loop-niter.c (record_niter_bound): Export.
25440 Update the estimation with the upper bound here...
25441 (estimate_numbers_of_iterations_loop): ... instead of here.
25442 Do not forcefully reset a recorded upper bound.
25443 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
25444 Record the maximum number of loop iterations of the prologue loop.
25446 2012-04-18 Jan Hubicka <jh@suse.cz>
25448 * lto-symtab.c (lto_cgraph_replace_node): Update.
25449 * cgraphbuild.c (record_reference, record_type_list,
25450 record_eh_tables, mark_address, mark_load, mark_store): Update.
25451 * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
25452 cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
25454 * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
25455 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
25456 * reload.c: Fix typo in comment.
25457 * rtlanal.c: Likewise.
25458 * tree-emultls.c (gen_emutls_addr): Update.
25459 * ipa-reference.c (analyze_function): Update.
25460 * cgraphunit.c (cgraph_analyze_function,
25461 cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
25463 * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
25464 (ipa_remove_reference): Likewise.
25465 (ipa_remove_all_refering): Rename to ...
25466 (ipa_remove_all_referring): ... this one; update.
25467 (ipa_dump_references): Update.
25468 (ipa_dump_referring): Update.
25469 (ipa_clone_references): Update.
25470 (ipa_clone_refering): Rename to ...
25471 (ipa_clone_referring): ... this one; update.
25472 (ipa_ref_cannot_lead_to_return): Update.
25473 (ipa_ref_has_aliases_p): Update.
25474 * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
25476 (ipa_ref_type): Remove.
25477 (ipa_ref_ptr_u): Remove.
25478 (ipa_ref): Remove referencing, refered, refered_index, refering_type
25479 and refered_type; add referring, referred and referred_index.
25480 (ipa_ref_list): Rename refering to referring.
25481 (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
25482 ipa_clone_references, ipa_clone_referring): Update prototypes.
25483 * lto-cgraph.c (referenced_from_other_partition_p): Update.
25484 (lto_output_ref): Update.
25485 (add_references): Update.
25486 (input_varpool_node): Update.
25487 (input_refs): Update.
25488 * ipa-ref-inline.h (ipa_ref_node): Update.
25489 (ipa_ref_varpool_node): Update.
25490 (ipa_ref_referring_node): Update.
25491 (ipa_ref_referring_varpool_node): Update.
25492 (ipa_ref_referring_ref_list): Update.
25493 (ipa_ref_referred_ref_list): Update.
25494 (ipa_ref_list_first_referring): Update.
25495 (ipa_empty_ref_list): Update.
25496 (ipa_ref_list_refering_iterate): Rename to ...
25497 (ipa_ref_list_referring_iterate): ... this one.
25498 * cse.c: Update comment.
25499 * ipa-utils.c (ipa_reverse_postorder): Update.
25500 * tree-ssa-alias.c: Update.
25501 * ipa-inline.c (reset_edge_caches): Update.
25502 (update_caller_keys): Update.
25503 * ipa-inline.h: Update comments.
25504 * jump.c: Update comment.
25505 * alias.c: Likewise.
25506 * ipa.c (process_references): Update.
25507 (cgraph_remove_unreachable_nodes): Likewise.
25508 (ipa_discover_readonly_nonaddressable_var): Likewise.
25509 (cgraph_address_taken_from_non_vtable_p): Likewise.
25510 * trans-mem.c (ipa_tm_execute): Update.
25511 * simplify-rtx.c: Fix comment.
25512 * rtl.c: Fix comment.
25513 * symtab.c (symtab_unregister_node): Update.
25514 * varpool.c (dump_varpool_node): Update.
25515 (varpool_analyze_pending_decls): Update.
25516 (assemble_aliases): Update.
25517 (varpool_for_node_and_aliases): Update.
25519 2012-04-18 Richard Guenther <rguenther@suse.de>
25521 * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
25522 use_undefined_p parameter.
25523 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
25524 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
25526 (estimate_numbers_of_iterations): Likewise.
25527 (estimated_loop_iterations): Adjust.
25528 (max_loop_iterations): Likewise.
25529 (scev_probably_wraps_p): Likewise.
25530 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
25531 * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
25532 not max_loop_iterations.
25533 (execute_vrp): Remove explicit number of iterations estimation.
25535 2012-04-18 Enkovich Ilya <ilya.enkovich@intel.com>
25537 * config/i386/linux-common.h: New.
25539 * config.gcc: Add i386/linux-common.h before
25540 all i386/linux.h and i386/linux64.h usages.
25542 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
25543 (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
25544 * config/i386/gnu-user64.h: Likewise.
25546 * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
25547 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
25548 (GNU_USER_TARGET_MATHFILE_SPEC): New.
25549 (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
25551 2012-04-18 Jan Hubicka <jh@suse.cz>
25553 * cgraph.c (cgraph_node_name): Remove.
25554 (dump_cgraph_node): Use dump_symtab_base; reformat.
25555 * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
25556 debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
25558 (cgraph_node_name, varpool_node_name): Remove.
25559 (cgraph_node_asm_name, varpool_node_asm_name,
25560 cgraph_node_name, varpool_node_name): New.
25561 * tree-pass.h (TODO_dump_cgraph): Rename to ...
25562 (TODO_dump_symtab): ... this one.
25563 * ipa-cp (pass_ipa_cp): Update.
25564 * ia-reference.c (generate_summary, read_write_all_from_decl,
25565 propagate, ipa_reference_read_optimization_summary): Update.
25566 * cgraphunit.c (cgraph_analyze_functions): Update.
25567 (cgraph_optimize): Update.
25568 * ipa-ref.c (ipa_dump_references): Update.
25569 (ipa_dump_refering): Update.
25570 * ipa-inline.c (pass_ipa_inline): Update.
25571 * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
25572 * ipa.c (pass_ipa_function_visibility,
25573 pass_ipa_whole_program_visibility): Update.
25574 * tree-sra.c (pass_early_ipa_sra): Update.
25575 * symtab.c: Include langhooks.h
25576 (symtab_node_asm_name): New.
25577 (symtab_node_name): New.
25578 (symtab_type_names): New static var.
25579 (dump_symtab_base): New.
25580 (dump_symtab_node, dump_symtab): New.
25581 (debug_symtab_node, debug_symtab): New.
25582 * tree-ssa-structalias.c: Dump symbol table.
25583 * pases.c (execute_todo): Handle TODO_dump_symtab instead
25584 of TODO_dump_cgraph.
25585 * varpoo.c (varpool_node_name): Remove.
25586 (dump_varpool_node): Use dump_symtab_base; reformat.
25588 2012-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
25590 * doc/invoke.texi (Language Independent Options): @item should be
25593 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
25596 * rtl.c (rtx_code_size): Handle ADDRESS.
25598 2012-04-17 Tom de Vries <tom@codesourcery.com>
25600 * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
25601 is not a STMT_LIST.
25603 2012-04-17 Uros Bizjak <ubizjak@gmail.com>
25606 * config/i386/sync.md (atomic_<code><mode>): Rename to
25607 atomic_<logic><mode>.
25609 2012-04-17 Richard Sandiford <rdsandiford@googlemail.com>
25611 * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
25612 * alias.c (reg_base_value): Expand and update comment.
25613 (arg_base_value): New variable.
25614 (unique_id): Move up file.
25615 (unique_base_value, unique_base_value_p, known_base_value_p): New.
25616 (find_base_value): Use arg_base_value and known_base_value_p.
25617 (record_set): Document REG_NOALIAS handling. Use unique_base_value.
25618 (find_base_term): Use known_base_value_p.
25619 (base_alias_check): Use unique_base_value_p.
25620 (init_alias_target): Initialize arg_base_value. Use unique_base_value.
25621 (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
25623 2012-04-17 Pat Haugen <pthaugen@us.ibm.com>
25625 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
25627 2012-04-17 Michael Matz <matz@suse.de>
25629 PR tree-optimization/18437
25630 * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
25631 (STMT_VINFO_STRIDE_LOAD_P): New accessor.
25632 (vect_check_strided_load): Declare.
25633 * tree-vect-data-refs.c (vect_check_strided_load): New function.
25634 (vect_analyze_data_refs): Use it to accept strided loads.
25635 * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
25637 2012-04-17 Richard Guenther <rguenther@suse.de>
25639 PR middle-end/53011
25640 * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
25641 loops when redirecting an entry or latch edge.
25643 2012-04-17 Bernd Schmidt <bernds@codesourcery.com>
25645 * sel-sched.c (sel_global_init): Revert previous change.
25647 2012-04-17 Richard Guenther <rguenther@suse.de>
25649 * tree-flow.h (array_at_struct_end_p): Move declaration ...
25650 * tree.h (array_at_struct_end_p): ... here.
25651 * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
25652 * expr.c (array_at_struct_end_p): ... here. Rewrite.
25654 2012-04-17 Steven Bosscher <steven@gcc.gnu.org>
25656 * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
25657 COST_TABLE): Remove.
25658 (estimate_case_costs): Remove.
25659 (expand_case): Do not call estimate_case_costs
25660 to set use_cost_table.
25661 (balance_case_nodes): Do not use use_cost_table.
25663 2012-04-16 Jan Hubicka <jh@suse.cz>
25665 * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
25666 (hash_node, eq_node): Remove.
25667 (cgraph_create_node): Do not handle hashtable.
25668 (cgraph_get_node): Remove.
25669 (cgraph_insert_node_to_hashtable): Remove.
25670 (hash_node_by_assembler_name): Remove.
25671 (eq_assembler_name): Remove.
25672 (cgraph_node_for_asm): Rewrite.
25673 (cgraph_find_replacement_node): Break out from ...
25674 (cgraph_remove_node): ... here; do not maintain hashtables.
25675 (change_decl_assembler_name): Remove.
25676 (cgraph_clone_node): Do not maintain hashtables.
25677 * cgraph.h (const_symtab_node): New typedef.
25678 (cgraph_insert_node_to_hashtable): Remove.
25679 (symtab_get_node, symtab_node_for_asm,
25680 symtab_insert_node_to_hashtable): Declare.
25681 (cgraph_find_replacement_node): Declare.
25682 (cgraph_get_node, varpool_get_node): Turn into inlines.
25683 (cgraph, varpool): Work sanely on NULL pointers.
25684 (FOR_EACH_SYMBOL): New walker.
25685 * ipa-inline-transform.c (save_inline_function_body): Use
25686 symtab_insert_node_to_hashtable.
25687 * symtab.c: Include ggc.h and diagnostics.h
25688 (symtab_hash, assembler_name_hash): New static vars;
25689 (hash_node, eq_node, hash_node_by_assembler_name,
25690 eq_assembler_name, insert_to_assembler_name_hash,
25691 unlink_from_assembler_name_hash): New.
25692 (symtab_register_node): Update hashtables.
25693 (symtab_insert_node_to_hashtable): New.
25694 (symtab_unregister_node): Update hashtables.
25695 (symtab_get_node): New.
25696 (symtab_node_for_asm): New.
25697 (change_decl_assembler_name): New.
25698 * Makefile.in (symtab.o): Needs GTY.
25699 * varpool.c (varpool_hash): Remove.
25700 (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
25701 (varpool_node): Rewrite using varpool_get_node.
25702 (varpool_remove_node): DO not maintain hashtables.
25703 (varpool_node_for_asm): Rewrite.
25705 2012-04-16 Sandra Loosemore <sandra@codesourcery.com>
25707 * doc/invoke.texi: Copy-edit to put verbs in the present tense
25708 when describing the current behavior of GCC.
25710 2012-04-16 Richard Sandiford <rdsandiford@googlemail.com>
25712 * genemit.c (gen_exp): Remove ADDRESS handling.
25713 * genoutput.c (scan_operands): Likewise.
25714 * genpeep.c (match_rtx): Likewise.
25715 * genrecog.c (add_to_sequence): Likewise.
25717 2012-04-16 David Edelsohn <dje.gcc@gmail.com>
25719 * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
25721 2012-04-16 Martin Jambor <mjambor@suse.cz>
25723 * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
25726 2012-04-16 Ulrich Weigand <ulrich.weigand@linaro.org>
25729 * config/arm/arm.c (arm_print_operand): Fix invalid alignment
25730 hints for 'A' operand types.
25732 2012-04-16 Jan Hubicka <jh@suse.cz>
25734 * cgraph.h (symtab_node_base): Add next and previous pointers.
25735 (cgraph_node): Remove next and preivous pointers.
25736 (varpool_node): Likewise; remove next/previous GTY marker;
25737 it is not type safe.
25738 (symtab_node_def): Update GTY marker
25739 (x_cgraph_nodes, cgraph_nodes): Remove.
25740 (symtab_nodes): New function.
25741 (cgraph_order): Rename to ...
25742 (symtab_order): ... this one.
25743 (symtab_register_node, symtab_unregister_node, symtab_remove_node):
25745 (x_varpool_nodes, varpool_nodes): Remove.
25746 (FOR_EACH_STATIC_VARIABLE): Update.
25747 (symtab_function_p, symtab_variable_p): New function.
25748 (FOR_EACH_VARIABLE): Update.
25749 (varpool_first_variable, varpool_next_variable): New functions.
25750 (FOR_EACH_VARIABLE): Update.
25751 (cgraph_first_defined_function): Update.
25752 (cgraph_next_defined_function, cgraph_next_defined_function): Update.
25753 (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
25754 (cgraph_first_function, cgraph_next_function): New.
25755 (FOR_EACH_FUNCTION): Update.
25756 (cgraph_first_function_with_gimple_body,
25757 cgraph_next_function_with_gimple_body): Update.
25758 * symtab.c: New file.
25759 * cgraph.c: Update copyright dates.
25760 (x_cgraph_nodes, cgraph_order): Remove.
25761 (NEXT_FREE_NODE): Update.
25762 (SET_NEXT_FREE_NODE): New.
25763 (cgraph_create_node_1): Remove common code.
25764 (cgraph_create_node): Remove common code; call symtab_register_node.
25765 (cgraph_remove_node): Remove common code; call symtab_unregister-node.
25766 (cgraph_add_asm_node): Update.
25767 (cgraph_clone_node): Register new node.
25768 * cgraphunit.c (process_function_and_variable_attributes): Update.
25769 (cgraph_analyze_functions): Update.
25770 (cgraph_analyze_functions): Update.
25771 (cgraph_output_in_order): Update.
25772 * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
25774 * ipa-inline.c (recursive_inlining): Update.
25775 * lto-streamer-in.c (lto_input_toplevel_asms): Update.
25776 * ipa.c (cgraph_remove_unreachable_nodes): Update.
25777 * Makefile.in: Add symtab.o
25778 * varpool.c (x_varpool_nodes): Remove
25779 (varpool_node): Remove common code; call symtab_register_node.
25780 (varpool_remove_node): Remove common code; call symtab_unregister_node.
25782 2012-04-16 Richard Guenther <rguenther@suse.de>
25784 PR middle-end/52977
25785 * tree.h (VECTOR_CST_NELTS): Adjust.
25786 (struct tree_vector): Add explicit length field.
25787 (make_vector_stat): Declare.
25788 (make_vector): Define.
25789 * tree.c (make_vector_stat): New function.
25790 (build_vector_stat): Use it.
25791 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
25793 2012-04-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25795 PR tree-optimization/52976
25796 * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
25797 (undistribute_ops_list): Ops with repeat counts aren't eligible for
25799 (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
25801 2012-04-16 Jan Hubicka <jh@suse.cz>
25803 * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
25805 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
25806 walkers to walk cgraph and varpool.
25807 * cgraph.c (cgraph_node_for_asm): Likewise.
25808 (dump_cgraph): Likewise.
25809 * value-prof.c (init_node_map): Likewise.
25810 * tree.c (free_lang_data_in_cgraph): Likewise.
25811 * tree-emutls.c: (ipa_lower_emutls): Likewise.
25812 * ipa-reference.c (generate_summary, propagate): Likewise.
25813 * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
25814 cgraph_mark_functions_to_output, cgraph_output_in_order,
25815 output_weakrefs, cgraph_materialize_all_clones,
25816 cgraph_optimize): Likewise.
25817 * lto-cgraph.c (merge_profile_summaries): Likewise.
25818 (input_cgraph): Likewise.
25819 * ipa-pure-const.c (generate_summary): Likewise.
25820 (propagate): Likwise.
25821 * ipa-utils.c (ipa_reduced_postorder): Likewise.
25822 (ipa_free_postorder_info): Likewise.
25823 (ipa_reverse_postorder): Likewise.
25824 * ipa-inline.c (ipa_inline): Likewise.
25825 * matrix-reorg.c (find_matrices_decl): Likewise.
25826 (matrix_reorg): Likewise.
25827 * tree-vectorizer.c (increase_alignment): Likewise.
25828 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
25829 (function_and_variable_visibility): Likewise.
25830 (whole_program_function_and_variable_visibility): Likewise.
25831 (ipa_cdtor_merge): Likewise.
25832 * trans-mem.c (ipa_tm_execute): Likewise.
25833 * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
25834 * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
25835 (ipa_print_all_params): Likewise.
25836 (ipa_update_after_lto_read): Likewise.
25837 * tree-profie.c (tree_profiling): Likewise.
25838 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
25839 * passes.c (dump_passes): Likewise.
25840 (do_per_function): Likewise.
25841 (ipa_write_summaries): Likewise.
25842 * varpool.c (dump_varpool): Likewise.
25843 (varpool_node_for_asm): Likewise.
25844 (varpool_assemble_pending_decls): Likewise.
25846 2012-04-16 Richard Guenther <rguenther@suse.de>
25848 PR tree-optimization/52975
25849 * tree-if-conv.c (predicate_bbs): Do not simplify inverted
25850 condition but always mark it with TRUTH_NOT_EXPR.
25852 2012-04-16 Richard Guenther <rguenther@suse.de>
25854 PR tree-optimization/52975
25855 * tree-ssa-forwprop.c (combine_cond_exprs): New function.
25856 (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
25857 and VEC_COND_EXPRs. Also combine into VEC_COND_EXPRs condition.
25858 * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
25860 2012-04-14 Uros Bizjak <ubizjak@gmail.com>
25862 * config/i386/sse.md (ssse3_plusminus): New code iterator.
25863 (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
25864 avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
25865 (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
25866 ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
25867 (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
25868 ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
25870 (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
25871 avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
25872 (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
25873 ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
25874 (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
25875 ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
25877 (xop_plus): New code iterator.
25878 (macs): New code attribute.
25880 (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
25881 xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
25883 (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
25884 xop_plus code iterator.
25885 (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
25886 xop_plus code iterator.
25887 (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
25888 xop_plus code iterator.
25889 (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
25890 xop_plus code iterator.
25892 (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
25893 any_extend code iterator.
25894 (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
25895 any_extend code iterator.
25896 (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
25897 any_extend code iterator.
25898 (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
25899 any_extend code iterator.
25900 (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
25901 any_extend code iterator.
25902 (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
25903 any_extend code iterator.
25905 2012-04-14 Tom de Vries <tom@codesourcery.com>
25907 * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
25908 call to delete_insn. Remove code to reorder BASIC_BLOCK note and
25909 DELETED_LABEL note, and move it to ...
25910 * cfgrtl.c (delete_insn): ... here. Change return type to void.
25911 (delete_insn_and_edges): Likewise.
25912 (delete_insn_chain): Handle new return type of delete_insn. Delete
25913 chain backwards rather than forwards.
25914 * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
25916 * cfglayout.c (fixup_reorder_chain): Delete unused label.
25918 2012-04-14 Jan Hubicka <jh@suse.cz>
25920 * cgraph.h: Update copyrights;
25921 (symtab_node): Turn to union typedef.
25922 (symtab_node_base): New structure.
25923 (symtab_type): Add SYMTAB_SYMBOL tag.
25924 (cgraph_node): Annotate some pinters with nested_ptr.
25925 (varpool_node): Likewise.
25926 (cgraph_local_info): Remove lto_file_data
25927 and externally_visible.
25928 (cgraph_node): Remove decl; same_comdat_group list;
25929 aux; ref_list; order; address_taken; reachable_from_other_parittion,
25930 in_other_partition; resolution.
25931 (varpool_node): Remove decl; same_comdat_group;
25932 ref_list; lto_file_data; aux; order; resolution; externally_visible;
25933 used_from_other_partition; in_other_partition.
25934 (symtab_node_def): New union.
25935 (cgraph, varpool): Update.
25936 (varpool_first_static_initializer, varpool_next_static_initializer,
25937 cgraph_only_called_directly_or_aliased_p,
25938 varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
25939 varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
25940 varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
25942 * cgraph.c: Likewise.
25943 (cgraph_hash, assembler_name_hash): Turn into symtab_node.
25944 * cgraphbuild.c: Likewise.
25945 * lto-symtab.c: Likewise.
25946 * c-gimplify.c: Likewise.
25947 * value-prof.c: Likewise.
25948 * tree.c: Likewise.
25949 * ipa-cp.c: Likewise.
25950 * tree-emutls.c: Likewise.
25951 * ipa-inline-transform.c: Likwise.
25952 * ipa-reference.c: Likewise.
25953 * cgraphunit.c: Likewise.
25954 * ipa-ref.c: Likewise.
25955 * lto-cgraph.c: Likewise.
25956 * ipa-ref-inline.h: Likewise.
25957 * ipa-pure-const.c: Likewise.
25958 * lto-streamer-out.c: Likewise.
25959 * ipa-utils.c: Likewise.
25960 * ipa-inline.c: Likewise.
25961 * matrix-reorg.c: Likewise.
25962 * tree-eh.c: Likewise.
25963 * tree-vectorizer.c: Likewise.
25964 * ipa-split.c: Likewise.
25966 * trans-mem.c: Likewise.
25967 * ipa-inline-analysis.c: Likewise.
25968 * gimplify.c: Likewise.
25969 * cfgexpand.c: Likewise.
25970 * tree-sra.c: Likewise.
25971 * ipa-prop.c: Likewise.
25972 * varasm.c: Likewise.
25973 * tree-nested.c: Likewise.
25974 * tree-inline.c: Likewise.
25975 * tree-profile.c: Likewise.
25976 * tree-ssa-structalias.c: Likewise.
25977 * passes.c: Likewise.
25978 * varpool.c: Likewise.
25980 2012-04-14 Tom de Vries <tom@codesourcery.com>
25982 * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
25983 same_succ_hash, with local_def inlined. Use SINGLE_SSA_DEF_OPERAND.
25984 Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT. Remove use
25986 (gsi_advance_fw_nondebug_nonlocal): New function.
25987 (local_def): Removed function.
25988 (same_succ_hash): Use stmt_local_def.
25989 (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
25990 (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
25992 2012-04-13 H.J. Lu <hongjiu.lu@intel.com>
25994 * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
25995 and __ILP32__ for x32.
25997 2012-04-13 Martin Jambor <mjambor@suse.cz>
25999 PR middle-end/52939
26000 * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
26001 fold_ctor_reference returns a zero constant.
26003 2012-04-13 Enkovich Ilya <ilya.enkovich@intel.com>
26005 * config.gcc: Add i386/gnu-user-common.h before all
26006 i386/gnu-user.h and i386/gnu-user64.h usages.
26008 * config/i386/gnu-user-common.h: New.
26010 * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
26011 (CC1_SPEC): Likewise.
26012 (ENDFILE_SPEC): Likewise.
26013 (DEFAULT_PCC_STRUCT_RETURN): Likewise.
26014 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
26015 (TARGET_OS_CPP_BUILTINS): Likewise.
26016 (LIBGCC2_HAS_TF_MODE): Likewise.
26017 (LIBGCC2_TF_CEXT): Likewise.
26018 (TF_SIZE): Likewise.
26019 (TARGET_ASM_FILE_END): Likewise.
26020 (STACK_CHECK_MOVING_SP): Likewise.
26021 (STACK_CHECK_STATIC_BUILTIN): Likewise.
26022 * config/i386/gnu-user64.h: Likewise.
26024 2012-04-13 Martin Jambor <mjambor@suse.cz>
26026 * expr.c (expand_expr_real_1): Pass type, not the expression, to
26027 set_mem_attributes for a memory temporary. Do not call the function
26028 for the memory temporary created for a bitfield.
26030 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
26033 * df.h (enum debug_temp_where): New.
26034 (dead_debug_init, dead_debug_finish) Declare.
26035 (dead_debug_add, dead_debug_insert_temp): Declare.
26036 (struct dead_debug_use, struct dead_debug): Moved from...
26037 * df-problems.c: ... here.
26038 (df_set_unused_notes_for_mw): Bind debug uses of unused regno
26040 (df_create_unused_note): Likewise.
26041 (df_set_dead_notes_for_mw): Move comment where it belongs.
26042 (dead_debug_init): Export.
26043 (dead_debug_reset_uses): New, factored out of...
26044 (dead_debug_finish): ...this. Export.
26045 (dead_debug_reset): Remove.
26046 (dead_debug_add): Export.
26047 (dead_debug_insert_before): Rename to...
26048 (dead_debug_insert_temp): ... this. Add where argument. Export.
26049 Locate stored value for BEFORE_WITH_VALUE. Avoid repeat inserts.
26050 Return insertion count.
26051 (df_note_bb_compute): Adjust.
26052 * dce.c (word_dce_process_block): Adjust dead debug uses.
26053 (dce_process_block): Likewise.
26055 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
26057 * df-problems.c (df_note_bb_compute): Do not take note of
26058 debug uses for whose REGs we won't emit DEAD or UNUSED notes.
26060 2012-04-13 Alexandre Oliva <aoliva@redhat.com>
26063 * var-tracking.c (expand_depth): New type.
26064 (onepart_aux, expand_loc_callback_data): Change depth type to it.
26065 (loc_exp_dep_alloc): Adjust initializer.
26066 (update_depth): Use new type. Add entryvals.
26067 (vt_expand_var_loc_chain): Take note of expansions with
26068 ENTRY_VALUEs, but don't accept them right away. Run an optional
26069 second pass accepting the minimum ENTRY_VALUE count found in the
26071 (vt_expand_loc_callback, INIT_ELCD): Adjust.
26073 2012-04-13 Tom de Vries <tom@codesourcery.com>
26075 * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
26076 parameters vuse and vuse_escaped.
26077 (find_duplicate): Init vuse1, vuse2 and vuse_escaped. Pass to
26078 gsi_advance_bw_nondebug_nonlocal. Return if vuse_escaped and
26081 2012-04-13 Richard Guenther <rguenther@suse.de>
26083 PR tree-optimization/52969
26084 * tree-if-conv.c (predicate_mem_writes): Properly gimplify
26085 the condition for the COND_EXPR and handle predicate negation
26086 by swapping the COND_EXPR arms.
26088 2012-04-13 Nick Clifton <nickc@redhat.com>
26090 * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
26091 TODO_dump_func flag.
26093 2012-04-13 Andrey Belevantsev <abel@ispras.ru>
26095 PR rtl-optimization/52203
26096 PR rtl-optimization/52715
26098 Revert the 2012-03-07 fix for PR 52203.
26099 * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
26100 the insn does not modify DFA right before issuing, adjust
26101 issue_rate accordingly.
26103 2012-04-13 Richard Guenther <rguenther@suse.de>
26106 * c-typeck.c (pointer_diff): Remove bogus assert.
26108 2012-04-13 Richard Guenther <rguenther@suse.de>
26111 * convert.c (convert_to_pointer): Remove special-casing of zero.
26113 2012-04-13 Joey Ye <joey.ye@arm.com>
26115 * config/arm/constraints.md (Pe): New constraint.
26116 * config/arm/arm.md: New split for imm 256-510.
26118 2012-04-13 Terry Guo <terry.guo@arm.com>
26120 * config/arm/arm-cores.def: Added core cortex-m0plus.
26121 * config/arm/arm-tune.md: Regenerated.
26122 * config/arm/arm-tables.opt: Regenerated.
26123 * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
26125 2012-04-13 Alan Modra <amodra@gmail.com>
26128 * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
26129 tie regs on destination of sets. Delete forward declaration.
26130 (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
26131 (rs6000_emit_prologue): Likewise.
26132 (rs6000_emit_epilogue): Likewise. Use in place of gen_frame_tie
26134 (is_mem_ref): Use tie_operand to recognise stack ties.
26135 * config/rs6000/predicates.md (tie_operand): New.
26136 * config/rs6000/rs6000.md (restore_stack_block): Generate new
26138 (restore_stack_nonlocal): Likewise.
26139 (stack_tie): Update.
26140 (frame_tie): Delete.
26142 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26144 * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
26145 HOST_WIDE_INT_PRINT_DEC in format strings.
26147 2012-04-12 Uros Bizjak <ubizjak@gmail.com>
26150 * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
26151 argument type to __m256i. Update call to __builtin_ia32_permvarsf256.
26152 * config/i386/sse.md (UNSPEC_VPERMVAR): New.
26153 (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
26154 (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
26155 (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
26156 avx2_permvarv8si using VI4F_256 mode iterator.
26157 * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
26158 Update builtin type to V8SF_FTYPE_V8SF_V8SI.
26159 (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
26160 gen_avx2_permvarv8sf.
26161 (expand_vec_perm_pshufb): Ditto.
26163 2012-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26166 * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
26167 the list of options to enable the FCFID instruction.
26168 (TARGET_EXTRA_BUILTINS): Adjust comment.
26170 2012-04-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26172 PR tree-optimization/18589
26173 * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
26174 (operand_entry): Add count field.
26175 (add_repeat_to_ops_vec): New function.
26176 (completely_remove_stmt): Likewise.
26177 (remove_def_if_absorbed_call): Likewise.
26178 (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
26179 (acceptable_pow_call): New function.
26180 (linearize_expr_tree): Look for builtin pow/powi calls and add operand
26181 entries with repeat counts when found.
26182 (repeat_factor_d): New struct and associated typedefs.
26183 (repeat_factor_vec): New static vector variable.
26184 (compare_repeat_factors): New function.
26185 (get_reassoc_pow_ssa_name): Likewise.
26186 (attempt_builtin_powi): Likewise.
26187 (reassociate_bb): Call attempt_builtin_powi.
26188 (fini_reassoc): Two new calls to statistics_counter_event.
26190 2012-04-12 Richard Guenther <rguenther@suse.de>
26192 * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
26193 * cgraph.h (tree_rest_of_compilation): Remove.
26194 * cgraph.c (cgraph_add_new_function): Move ...
26195 * cgraphunit.c (cgraph_add_new_function): ... here.
26196 (tree_rest_of_compilation): Make static.
26197 (cgraph_expand_function): Do not set cgraph_function_flags_ready.
26198 * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
26199 gate_all_early_local_passes, execute_all_early_local_passes,
26200 pass_early_local_passes, gate_all_early_optimizations,
26201 pass_all_early_optimizations): Move ...
26202 * passes.c (gate_all_optimizations, pass_all_optimizations,
26203 gate_all_early_local_passes, execute_all_early_local_passes,
26204 pass_early_local_passes, gate_all_early_optimizations,
26205 pass_all_early_optimizations): ... here.
26206 * tree-optimize.c (execute_free_datastructures): Remove.
26207 * tree-flow.h (execute_free_datastructures): Remove.
26208 * tree-optimize.c (execute_init_datastructures,
26209 pass_init_datastructures): Move ...
26210 * tree-ssa.c (execute_init_datastructures,
26211 pass_init_datastructures): ... here.
26212 * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
26213 execute_free_datastructures.
26215 2012-04-12 Bernd Schmidt <bernds@codesourcery.com>
26217 * dbgcnt.def (ira_move): New counter.
26218 * ira-int.h (ira_create_new_reg): Declare function.
26219 (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
26220 * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
26221 no longer static. All callers changed.
26222 * ira.c: Include "dbgcnt.h".
26223 (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
26224 move_unallocated_pseudos): New static functions.
26225 (first_moveable_pseudo, last_moveable_pseudo): New global variables.
26226 (pseudo_replaced_reg, pseudo_move_insn): New static variables.
26227 (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
26228 * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
26229 to the pseudos generated in find_moveable_pseudos.
26230 * Makefile.in (ira.o): Add $(DBGCNT_H).
26232 2012-04-12 Richard Guenther <rguenther@suse.de>
26234 PR tree-optimization/52943
26235 * tree-chrec.h (chrec_is_positive): Remove.
26236 * tree-scalar-evolution.c (chrec_is_positive): Move ...
26237 * tree-data-ref.c (chrec_is_positive): ... here. Make static.
26238 Return false for a constant zero instead of negative.
26239 (analyze_siv_subscript_cst_affine): Handle zero difference
26240 in the initial condition explicitely.
26242 2012-04-12 Richard Guenther <rguenther@suse.de>
26244 * tree-parloops.c (parallelize_loops): Also consult the upper
26245 bound for the number of iterations.
26246 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
26247 (loop_prefetch_arrays): Likewise.
26249 2012-04-12 Richard Guenther <rguenther@suse.de>
26251 * cfgloop.h (estimated_loop_iterations_int): Ditch
26252 'conservative' parameter.
26253 (max_stmt_executions_int): Likewise.
26254 (estimated_loop_iterations): Likewise.
26255 (max_stmt_executions): Likewise.
26256 (max_loop_iterations): Declare.
26257 (max_loop_iterations_int): Likewise.
26258 (estimated_stmt_executions): Likewise.
26259 (estimated_stmt_executions_int): Likewise.
26260 * tree-ssa-loop-niter.c (estimated_loop_iterations):
26262 (max_loop_iterations): ... this.
26263 (estimated_loop_iterations_int): Split parts to ...
26264 (max_loop_iterations_int): ... this.
26265 (max_stmt_executions_int): Split parts to ...
26266 (estimated_stmt_executions_int): ... this.
26267 (max_stmt_executions): Split parts to ...
26268 (estimated_stmt_executions): ... this.
26269 * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
26270 * predict.c (predict_loops): Likewise.
26271 * tree-data-ref.c (max_stmt_executions_tree): Likewise.
26272 (analyze_siv_subscript_cst_affine): Likewise.
26273 (compute_overlap_steps_for_affine_1_2): Likewise.
26274 (analyze_subscript_affine_affine): Likewise.
26275 (init_omega_for_ddr_1): Likewise.
26276 * tree-parloops.c (parallelize_loops): Likewise.
26277 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
26278 (may_eliminate_iv): Likewise.
26279 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
26280 (loop_prefetch_arrays): Likewise.
26281 * tree-vrp.c (adjust_range_with_scev): Likewise.
26283 2012-04-12 Oleg Endo <olegendo@gcc.gnu.org>
26285 * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
26286 * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
26288 (dump_table): Use bool type for need_align and have_df variables.
26289 (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
26290 (regs_used): Remove register modifier.
26291 (barrier_align): Move variables slot, credit, jump_to_next
26292 into if block above for loop. Use bool type for jump_to_next.
26293 (sh_function_arg): Use NULL_RTX instead of 0.
26295 2012-04-11 Andreas Schwab <schwab@linux-m68k.org>
26297 * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
26298 (bswapsi2): New expander.
26300 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
26302 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
26303 0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
26305 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
26307 PR rtl-optimization/52876
26308 * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
26309 Don't call mark_reg_pointer for incompatible pointer sign extension.
26311 * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
26314 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
26316 * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
26317 comparisons against TYPE_PRECISION.
26318 * tree-ssa-forwprop.c (combine_conversions): Likewise.
26320 2012-04-11 Xinliang David Li <davidxl@google.com>
26322 * tree-passes.h: Remove TODO_dump_func.
26323 * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
26324 * trans-mem.c: Remove TODO_dump_func.
26325 * ira.c: Remove TODO_dump_func.
26327 2012-04-11 H.J. Lu <hongjiu.lu@intel.com>
26329 * config/i386/i386.c (ix86_option_override_internal): Check
26330 SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
26331 after TARGET_64BIT is updated.
26333 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
26335 * config/sh/sh.h: Remove old secondary reload code.
26337 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
26339 * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
26340 (ready_reorder): ... this function.
26342 2012-04-11 Bernd Schmidt <bernds@codesourcery.com>
26344 * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
26347 * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
26348 insns so that no other insn is queued for a time before them.
26350 * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
26353 2012-04-11 Richard Guenther <rguenther@suse.de>
26355 PR middle-end/52621
26356 * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
26357 consider loop nesting.
26358 (evolution_function_is_univariate_p): Properly check the remainder
26361 2012-04-11 Richard Guenther <rguenther@suse.de>
26363 PR middle-end/52918
26364 * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
26366 2012-04-11 Nick Clifton <nickc@redhat.com>
26368 * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
26369 information, if requested.
26371 * config/rx/rx.c (rx_expand_prologue): Likewise.
26373 2012-04-11 Peter Bergner <bergner@vnet.ibm.com>
26374 Michael Matz <matz@suse.de>
26377 * rtlanal.c (unsigned_reg_p): New function.
26378 Update copyright notice dates.
26379 * rtl.h (unsigned_reg_p): Prototype it.
26380 Update copyright notice dates.
26381 * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
26383 * expr.c (expand_expr_real_1): Set register attributes.
26384 * stmt.c (expand_case): Likewise.
26386 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
26389 * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
26390 consider_sh2a and allow_zero.
26391 * config/sh/sh.c (sh_legitimate_index_p): Likewise.
26392 (disp_addr_displacement): New function.
26393 (sh_address_cost): Use disp_addr_displacement function instead
26394 of DISP_ADDR_OFFSET.
26395 (sh_legitimate_address_p): Adapt to changed
26396 sh_legitimate_index_p declaration.
26397 (sh_find_mov_disp_adjust): Remove HImode check.
26398 (sh_secondary_reload): Add HImode case. Use satisfies_constraint_Sdd,
26399 disp_addr_displacement and max_mov_insn_displacement.
26400 (max_mov_insn_displacement): Remove HImode check.
26401 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
26402 DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
26403 * config/sh/constraints.md (K05, K13): New constraints.
26404 (K12): Correct comment.
26405 (Sdd): Do not use DISP_ADDR_P macro.
26406 (Snd, Sbw): Use satisfies_constraint_Sdd.
26407 * config/sh/sh.md (extendhisi2): Remove constraints from expander.
26408 (*extendhisi2_compact, movhi_i): Remove.
26409 (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
26410 *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
26411 *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
26412 *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
26413 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
26414 *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
26415 *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
26417 Add new peepholes for HImode displacement addressing.
26419 2012-04-11 Oleg Endo <olegendo@gcc.gnu.org>
26421 * config/sh/sh.h (SIDI_OFF): Remove.
26422 * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
26423 DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
26424 or operand_subword.
26426 2012-04-11 Eric Botcazou <ebotcazou@adacore.com>
26429 * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
26430 (PowerPC AltiVec/VSX Built-in Functions): Remove it.
26431 * doc/md.texi (Standard Names): Add bswap.
26432 * builtin-types.def (BT_UINT16): New primitive type.
26433 (BT_FN_UINT16_UINT16): New function type.
26434 * builtins.def (BUILT_IN_BSWAP16): New.
26435 * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
26436 (expand_builtin) <BUILT_IN_BSWAP16>: New case. Pass TARGET_MODE to
26437 expand_builtin_bswap.
26438 (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
26439 (fold_builtin_1): Likewise.
26440 (is_inexpensive_builtin): Likewise.
26441 * optabs.c (expand_unop): Deal with bswap in HImode specially. Add
26442 missing bits for bswap to libcall code.
26443 * tree.c (build_common_tree_nodes): Build uint16_type_node.
26444 * tree.h (enum tree_index): Add TI_UINT16_TYPE.
26445 (uint16_type_node): New define.
26446 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
26447 * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
26449 (rs6000_init_builtins): Likewise.
26450 * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
26452 2012-04-11 Tristan Gingold <gingold@adacore.com>
26454 * doc/extend.texi (Type Attributes): Move paragraph.
26456 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
26459 * diagnostic.h (show_caret): Declare.
26460 (caret_max_width): Declare.
26461 (diagnostic_show_locus): Declare.
26462 * diagnostic.c (diagnostic_initialize): Initialize to false.
26463 (diagnostic_show_locus): New.
26464 (diagnostic_report_diagnostic): Call it.
26465 (getenv_columns): New.
26466 (adjust_line): New.
26467 (diagnostic_set_caret_max_width): New.
26468 * input.c (read_line): New.
26469 (location_get_source_line): New.
26470 * input.h (location_get_source_line): Declare.
26471 * toplev.c (general_init): Initialize show_caret from options.
26472 * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
26473 * opts.c (common_handle_option): Likewise.
26474 * pretty-print.h (pp_get_prefix): New.
26475 (pp_base_get_prefix): New.
26476 * common.opt (fdiagnostics-show-caret): New option.
26477 * doc/invoke.texi (fdiagnostics-show-caret): Document it.
26479 2012-04-11 Richard Guenther <rguenther@suse.de>
26481 PR rtl-optimization/52881
26482 * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
26484 2012-04-11 Richard Guenther <rguenther@suse.de>
26486 PR tree-optimization/52912
26487 * tree-ssa-threadupdate.c (thread_block): Tell the cfg
26488 manipulation code we are threading through a loop header
26489 to an exit destination.
26491 2012-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org>
26493 * tree.h (warn_if_unused_value): Move declaration from here.
26494 * stmt.c (warn_if_unused_value): Move definition from here.
26496 2012-04-10 Michael Matz <matz@suse.de>
26498 * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
26500 (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
26501 (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
26502 (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
26503 (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
26504 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
26505 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
26506 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
26507 (vect_record_strided_load_vectors): Rename to
26508 vect_record_grouped_load_vectors.
26509 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
26510 Rename use of above macros.
26511 (vect_verify_datarefs_alignment): Ditto.
26512 (vector_alignment_reachable_p): Ditto.
26513 (vect_peeling_hash_get_lowest_cost): Ditto.
26514 (vect_enhance_data_refs_alignment): Ditto.
26515 (vect_analyze_group_access): Ditto and rename stride to groupsize.
26516 (vect_analyze_data_ref_access): Rename "strided" to "grouped".
26517 (vect_strided_store_supported): Rename to vect_grouped_store_supported.
26518 (vect_strided_load_supported): Rename to vect_grouped_load_supported.
26519 (vect_transform_strided_load): Rename to vect_transform_grouped_load.
26520 (vect_record_strided_load_vectors): Rename to
26521 vect_record_grouped_load_vectors.
26522 * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
26523 (destroy_loop_vec_info): Ditto.
26524 (vect_transform_loop): Ditto and rename strided_store to grouped_store.
26525 * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
26526 (vect_analyze_slp): Ditto.
26527 (new_bb_vec_info): Ditto.
26528 (destroy_bb_vec_info): Ditto.
26529 (vect_schedule_slp_instance): Ditto and rename strided_store to
26531 * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
26532 vect_cost_group_size.
26533 (vect_model_store_cost): Rename use of above macros and call
26534 to vect_cost_strided_group_size.
26535 (vect_model_load_cost): Ditto.
26536 (vectorizable_store): Ditto, rename strided_store to grouped_store
26537 and calls to renamed tree-vectorizer.h functions.
26538 (vectorizable_load): Ditto.
26539 (vect_transform_stmt): Rename use of above macros and strided_store
26542 2012-04-10 Jan Hubicka <jh@suse.cz>
26544 * cgraph.h: Remove misledaing comment on ipa-ref.h.
26545 (symtab_type): New enum.
26546 (symtab_node): New structure.
26547 (cgraph_node, varpool_node): Add symbol base type.
26548 (cgraph, varpool): New accestor functions.
26549 * cgraph.c (cgraph_create_node_1): Set symbol type.
26550 * varpool.c (varpool_node): Set symbol type.
26552 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
26553 Richard Sandiford <rdsandiford@googlemail.com>
26555 * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
26557 2012-04-10 Richard Guenther <rguenther@suse.de>
26559 PR middle-end/52888
26560 * gimple-low.c (gimple_check_call_args): Properly account for
26561 compatible aggregate types.
26563 2012-04-10 Richard Guenther <rguenther@suse.de>
26565 * toplev.h (tree_rest_of_compilation): Remove.
26566 * tree-optimize.c (tree_rest_of_compilation): Likewise.
26567 * cgraph.h (tree_rest_of_compilation): Declare.
26568 * tree-optimize.c (tree_rest_of_compilation): Move ...
26569 * cgraphunit.c (tree_rest_of_compilation): ... here.
26570 * cgraph.c (cgraph_add_new_function): Adjust.
26571 * Makefile.in (tree-optimize.o): Adjust.
26572 (cgraphunit.o): Likewise.
26574 2012-04-10 Ulrich Weigand <ulrich.weigand@linaro.org>
26576 PR tree-optimization/52870
26577 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
26578 presumed pattern statement is within the same loop or basic block.
26580 2012-04-10 Tristan Gingold <gingold@adacore.com>
26582 * gengtype.c (main): Make uintptr_t a known type.
26584 2012-04-10 Richard Guenther <rguenther@suse.de>
26586 * tree-pass.h (tree_lowering_passes): Remove.
26587 * tree-optimize.c (tree_lowering_passes): Remove.
26588 * cgraph.c (cgraph_add_new_function): Inline relevant parts
26589 of tree_lowering_passes, avoid redundant call of early local passes.
26590 * cgraphunit.c (cgraph_lower_function): Fold into ...
26591 (cgraph_analyze_function): ... its single caller. Inline
26592 relevant parts of tree_lowering_passes.
26594 2012-04-09 H.J. Lu <hongjiu.lu@intel.com>
26597 * config/pa/pa.opt: Remove SIO and GNU_LD.
26599 2012-04-09 Jan Hubicka <jh@suse.cz>
26604 * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
26605 boundary, add its target too.
26606 * lto.c (add_references_to_partition): Add also aliased nodes.
26607 (add_cgraph_node_to_partition,
26608 add_varpool_node_to_partition): Work on nodes, not functions/variables;
26609 when adding alias, add also the aliased object.
26611 2012-04-09 Uros Bizjak <ubizjak@gmail.com>
26614 * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
26615 VOIDmode immediate operands.
26616 * config/i386/constraints.md (Wz): New constraint.
26617 * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
26619 2012-04-09 Eric Botcazou <ebotcazou@adacore.com>
26622 * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
26623 the DECL generated for the special GOT helper.
26625 2012-04-09 Oleg Endo <olegendo@gcc.gnu.org>
26627 * config/sh/constraints.md: Update list of constraints in
26629 (Sr0): Remove unused memory constraint.
26631 2012-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
26633 * tree-pretty-print.h: Update comment.
26635 2012-04-08 Oleg Endo <olegendo@gcc.gnu.org>
26637 * config/sh/sh.md: Use braced string notation where applicable.
26638 (*prefetch_i4, prefetch_m2a): Merge into ...
26639 (*prefetch): ... this new insn.
26641 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
26643 * config/sh/sh.h (high_life_started): Remove
26644 * config/sh/predicates.md (general_movdst_operand): Use
26645 'reload_in_progress' instead of 'high_life_started'.
26646 * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
26647 divsi_inv_fp): Likewise.
26649 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
26651 * config/sh/sh-protos.h (prepare_move_operands): Return void
26653 * config/sh/sh.c (prepare_move_operands): Likewise.
26654 * config/sh/sh.md: Remove return value checks of prepare_move_operands.
26656 2012-04-07 Oleg Endo <olegendo@gcc.gnu.org>
26658 * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
26659 general_movsrc_operand, general_movdst_operand, arith_reg_operand,
26660 fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
26661 logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
26662 commutative_float_operator, noncommutative_float_operator,
26663 sh_handle_pragma): Remove.
26665 2012-04-06 Sandra Loosemore <sandra@codesourcery.com>
26667 * doc/invoke.texi: Clean up Texinfo markup throughout the file.
26668 Use @option markup on command-line options. Use @samp markup on
26669 literal keywords to options. Use @code markup on code fragments.
26670 Use other markup in preference to quotation marks in the text.
26671 Add markup to some passages without any.
26673 2012-04-06 Mike Stump <mikestump@comcast.net>
26675 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
26677 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
26679 * config/sh/sh.c (hi_const): Remove.
26680 (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
26683 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
26685 * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
26687 * config/sh/sh.c (sh_expand_t_scc): Likewise.
26688 * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
26689 calling sh_expand_t_scc.
26691 2012-04-06 Oleg Endo <olegendo@gcc.gnu.org>
26693 * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
26694 nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
26695 sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
26696 reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
26697 sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
26698 sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
26699 check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
26700 sh2a_is_function_vector_call): Use bool as return type.
26701 (sh_pass_in_reg_p): Remove.
26702 * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
26703 flow_dependent_p, sh2a_function_vector_p, expand_block_move,
26704 expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
26705 sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
26706 sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
26707 sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
26708 fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
26709 sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
26710 sh_loads_bankedreg_p): Use bool as return type.
26711 (nonpic_symbol_mentioned_p): Use bool as return type. Remove
26712 'register' modifier.
26714 2012-04-06 Matt Turner <mattst88@gmail.com>
26716 * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
26718 2012-04-06 Eric Botcazou <ebotcazou@adacore.com>
26720 * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
26721 of the destination isn't also a FP_REGS register.
26723 2012-04-05 Teresa Johnson <tejohnson@google.com>
26724 H.J. Lu <hongjiu.lu@intel.com>
26726 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
26727 * config/i386/i386.md (move immediate to memory peephole2):
26728 Add cases for HImode move when LCP stall avoidance is needed.
26729 * config/i386/i386.c (initial_ix86_tune_features): Initialize
26730 X86_TUNE_LCP_STALL entry.
26732 2012-04-05 Uros Bizjak <ubizjak@gmail.com>
26735 * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
26736 CONST_INT operands, zero-extended with AND.
26738 2012-04-05 Oleg Endo <olegendo@gcc.gnu.org>
26741 * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
26742 first argument instead of mode size. Move displacement calculations
26744 (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
26745 ... these new functions.
26746 (disp_adjust): Remove max_mov_disp field.
26747 (sh_legitimate_index_p): Use max_mov_insn_displacement and
26748 mov_insn_alignment_mask.
26749 (sh_address_cost): Use max_mov_insn_displacement.
26751 2012-04-05 Andrew Stubbs <ams@codesourcery.com>
26753 * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
26754 (arch_enabled): Handle new arch types.
26755 (one_cmpldi2): Add NEON support.
26757 2012-04-05 Richard Guenther <rguenther@suse.de>
26759 * gimple.c (walk_gimple_op): Compute val_only for the LHS
26760 of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
26761 (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
26762 * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
26763 ... here and make static.
26764 * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
26767 2012-04-05 Richard Guenther <rguenther@suse.de>
26769 * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
26770 basic-block before removing it.
26772 2012-04-05 Richard Guenther <rguenther@suse.de>
26774 * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
26775 version namespace as we release the freelist.
26777 2012-04-05 Richard Guenther <rguenther@suse.de>
26779 * tree-nrv.c (tree_nrv): Release VDEFs.
26780 * tree-sra.c (sra_modify_constructor_assign): Likewise.
26781 (sra_modify_assign): Likewise.
26782 * tree-vect-stmts.c (vect_remove_stores): Likewise.
26783 * tree-vect-loop.c (vect_transform_loop): Likewise.
26784 * tree-ssa-dom.c (optimize_stmt): Likewise.
26785 * tree-vect-slp.c (vect_schedule_slp): Likewise.
26786 * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
26788 2012-04-05 Richard Guenther <rguenther@suse.de>
26790 * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
26792 * gimple.h (gsi_remove): Adjust.
26793 * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
26794 * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
26795 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
26796 * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
26797 * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
26798 * tree-ssa-pre.c (eliminate): Likewise.
26800 2012-04-04 Mike Stump <mikestump@comcast.net>
26802 * doc/rtl.texi (const_double): Document as sign-extending.
26803 * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
26804 * emit-rtl.c (immed_double_int_const): Refine to state the
26806 * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
26807 CONST_DOUBLE integers.
26808 (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
26809 negative values are converted. Fix conversions bigger than
26810 HOST_BITS_PER_WIDE_INT.
26811 (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
26812 (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
26813 * explow.c (plus_constant_mode): Add.
26814 (plus_constant): Implement with plus_constant_mode.
26815 * rtl.h (plus_constant_mode): Add.
26817 2012-04-04 Richard Guenther <rguenther@suse.de>
26819 PR tree-optimization/52808
26820 * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
26821 * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
26823 2012-04-04 Tristan Gingold <gingold@adacore.com>
26825 * expr.c (expand_expr_real_2): Handle larger sizetype in
26828 2012-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
26830 * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
26831 to m2a-single instead of m2e.
26833 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
26835 * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
26836 Change type of BITOFFSET to signed. Make sure the lower bound of
26837 the computed range is non-negative by adjusting OFFSET and BITPOS.
26838 (expand_assignment): Adjust call to get_bit_range.
26840 2012-04-03 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
26842 * h8300/h8300.c (h8300_current_function_monitor_function_p):
26843 New function. Added to check monitor functions.
26844 (h8300_option_override): Modified to generate error/warning
26845 messages for invalid combinations of different command line
26847 * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
26848 save EXR on stack for monitor function in case of H8S target
26849 when "-mno-exr" is passed.
26850 * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
26852 * doc/invoke.texi: Document H8S options.
26854 2012-04-03 Tristan Gingold <gingold@adacore.com>
26856 * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
26857 of gcc_AC_FUNC_MMAP_BLACKLIST.
26858 * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
26859 * Makefile.in (aclocal_deps): Add mmap.m4.
26860 * configure: Regenerate.
26861 * aclocal.m4: Regenerate.
26863 2012-04-03 Richard Guenther <rguenther@suse.de>
26865 PR tree-optimization/52808
26866 * tracer.c (tail_duplicate): Return whether we have duplicated
26868 (tracer): If we have duplicated any block, cleanup the CFG.
26869 * cfghooks.c (duplicate_block): If we duplicated a loop
26870 header but not its loop, destroy the loop because it now has
26872 * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
26873 the cfg manipulation routines we are not creating a multiple
26876 2012-04-03 Tristan Gingold <gingold@adacore.com>
26878 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
26880 (vms_c_common_override_options): Allow parameterless variadic
26883 2012-04-03 Jakub Jelinek <jakub@redhat.com>
26885 PR tree-optimization/52835
26886 * tree-data-ref.c (build_rdg): Return NULL if
26887 compute_data_dependences_for_loop failed.
26889 2012-04-03 Eric Botcazou <ebotcazou@adacore.com>
26891 * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
26892 for REAL_CST as well.
26893 (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
26894 In the bitfield case, if the value is a REAL_CST, convert it first to
26897 2012-04-02 H.J. Lu <hongjiu.lu@intel.com>
26899 * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
26900 for --with-abi={x32|mx32} or --with-multilib-list=mx32.
26901 (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
26903 * config/i386/biarchx32.h: New.
26905 2012-04-02 Anatoly Sokolov <aesok@post.ru>
26907 * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
26908 * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
26909 (arm_preferred_reload_class): New function.
26911 2012-04-02 Richard Guenther <rguenther@suse.de>
26913 PR tree-optimization/52756
26914 * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
26915 (thread_through_loop_header): After threading through the loop latch
26916 remove the split part from the loop and clear further threading
26917 opportunities that would create a multiple entry loop.
26919 2012-04-02 Richard Guenther <rguenther@suse.de>
26921 PR rtl-optimization/52800
26922 * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
26923 CLEANUP_CFG_CHANGED.
26925 2012-04-02 Richard Guenther <rguenther@suse.de>
26927 PR middle-end/52803
26928 * loop-init.c (gate_handle_loop2): Destroy loops here if
26929 we don't enter RTL loop optimizers.
26931 2012-04-02 Uros Bizjak <ubizjak@gmail.com>
26934 2012-03-29 Richard Guenther <rguenther@suse.de>
26936 * rtl.h (extended_count): Remove.
26937 * combine.c (extended_count): Remove.
26939 2012-04-02 Dodji Seketeli <dodji@redhat.com>
26942 * pt.c (more_specialized_fn): Don't apply decay conversion to
26943 types of function parameters.
26945 2012-04-02 Tristan Gingold <gingold@adacore.com>
26947 * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
26948 (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
26949 (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
26950 (ggc_pch_this_base): Use uintptr_t instead of size_t.
26952 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
26955 * config/i386/i386.c (ix86_option_override_internal): Don't
26956 check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
26958 2012-03-31 Eric Botcazou <ebotcazou@adacore.com>
26960 * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
26961 (stmt_can_make_abnormal_goto): Use it.
26962 (is_ctrl_altering_stmt): Likewise.
26964 2012-03-30 Naveen H.S <naveen.S@kpitcummins.com>
26965 Kaz Kojima <kkojima@gcc.gnu.org>
26967 * config/sh/sh.c (push_regs): Skip banked registers when
26968 resbank attribute is specified.
26969 (sh_expand_epilogue): Likewise.
26971 2012-03-30 Richard Henderson <rth@redhat.com>
26974 * combine-stack-adj.c (prev_active_insn_bb): New.
26975 (next_active_insn_bb): New.
26976 (force_move_args_size_note): New.
26977 (combine_stack_adjustments_for_block): Use it.
26979 2012-03-30 Richard Henderson <rth@redhat.com>
26981 * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
26982 (ix86_expand_vector_init_duplicate): Initialize it.
26983 (expand_vec_perm_palignr): Likewise.
26984 (ix86_expand_vec_perm_const): Likewise.
26985 (ix86_vectorize_vec_perm_const_ok): Likewise.
26986 (expand_vec_perm_blend): Use it.
26987 (expand_vec_perm_vpermil): Likewise.
26988 (expand_vec_perm_pshufb): Likewise.
26989 (expand_vec_perm_1): Likewise.
26990 (expand_vec_perm_pshuflw_pshufhw): Likewise.
26991 (expand_vec_perm_interleave2): Likewise.
26992 (expand_vec_perm_vpermq_perm_1): Likewise.
26993 (expand_vec_perm_vperm2f128): Likewise.
26994 (expand_vec_perm_interleave3): Likewise.
26995 (expand_vec_perm_vperm2f128_vblend): Likewise.
26996 (expand_vec_perm_vpshufb2_vpermq): Likewise.
26997 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
26998 (expand_vec_perm_broadcast): Likewise.
26999 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
27001 2012-03-30 Richard Henderson <rth@redhat.com>
27003 * dwarf2out.c (gen_variable_die): Initialize off.
27005 2012-03-30 Tristan Gingold <gingold@adacore.com>
27007 * config/vms/vms-f.c: New file.
27008 * config/vms/t-vms (vms-f.o): New rule.
27009 * config.gcc (*-*-*vms*): Define fortran_target_objs.
27011 2012-03-30 Richard Guenther <rguenther@suse.de>
27013 PR tree-optimization/52754
27014 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
27015 propagate arbitrary addresses into really plain dereferences.
27017 2012-03-30 Richard Guenther <rguenther@suse.de>
27019 PR middle-end/52772
27020 * except.c (emit_to_new_bb_before): Move loop updating ...
27021 (dw2_build_landing_pads): ... here. Use a proper block for
27022 querying the loop father.
27024 2012-03-30 Tristan Gingold <gingold@adacore.com>
27026 * config/ia64/ia64.c (ia64_section_type_flags): Remove
27027 common_object attribute handling.
27028 (SECTION_VMS_OVERLAY): Remove
27029 (ia64_vms_common_object_attribute): Replace abort with an assert.
27030 Do not set DECL_SECTION_NAME.
27031 (ia64_vms_output_aligned_decl_common): Handle common_object
27033 (ia64_vms_elf_asm_named_section): Remove.
27034 * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
27036 2012-03-30 Richard Guenther <rguenther@suse.de>
27038 PR middle-end/52786
27039 * double-int.c (rshift_double): Remove not needed cast.
27041 2012-03-30 Richard Guenther <rguenther@suse.de>
27043 * tree-affine.h (print_aff): Remove.
27044 * tree-affine.c (print_aff): Make static.
27045 * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
27046 (get_references_in_stmt): Likewise.
27047 (print_direction_vector): Likewise.
27048 (print_dir_vectors): Likewise.
27049 (print_dist_vectors): Likewise.
27050 (dump_subscript): Likewise.
27051 (dump_ddrs): Likewise.
27052 (dump_dist_dir_vectors): Likewise.
27053 (dump_data_references): Likewise.
27054 (dump_data_dependence_relation): Likewise.
27055 (dump_data_dependence_direction): Likewise.
27056 (dump_rdg_vertex): Likewise.
27057 (dump_rdg_component): Likewise.
27058 (debug_ddrs): Declare.
27059 (struct data_ref_loc_d): Move ...
27060 * tree-data-ref.c (struct data_ref_loc_d): ... here.
27061 (get_references_in_stmt): Make static.
27062 (dump_data_references): Likewise.
27063 (dump_subscript): Likewise.
27064 (print_direction_vector): Likewise.
27065 (print_dir_vectors): Likewise.
27066 (print_dist_vectors): Likewise.
27067 (dump_data_dependence_relation): Likewise.
27068 (dump_dist_dir_vectors): Likewise.
27069 (dump_ddrs): Likewise.
27070 (dump_rdg_vertex): Likewise.
27071 (dump_rdg_component): Likewise.
27072 (debug_ddrs): New function.
27073 (access_matrix_get_index_for_parameter): Remove.
27075 2012-03-30 Tristan Gingold <gingold@adacore.com>
27077 * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
27078 (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
27079 (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
27080 (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
27081 (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
27082 (vms_patch_builtins): Handle new flags
27083 * config/vms/vms-crtlmap.map: Completed using nm on
27084 c and math system libraries.
27085 * config/vms/make-crtlmap.awk: Handle any number of flags.
27087 2012-03-30 Martin Jambor <mjambor@suse.cz>
27089 * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
27090 is a builtin_stack_save in a dominating BB.
27092 2012-03-29 Uros Bizjak <ubizjak@gmail.com>
27094 * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
27095 crossing 128bit lane boundary.
27097 2012-03-29 Vladimir Makarov <vmakarov@redhat.com>
27099 * ira-color.c (setup_left_conflict_sizes_p): Process all
27100 conflicting objects.
27102 2012-03-29 Jakub Jelinek <jakub@redhat.com>
27104 PR tree-optimization/52760
27105 * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
27106 shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
27108 2012-03-29 Richard Guenther <rguenther@suse.de>
27110 * cgraph.h (cgraph_materialize_all_clones): Remove.
27111 (reset_inline_failed): Likewise.
27112 * cgraphunit.c (cgraph_materialize_all_clones): Make static.
27113 * cgraphbuild.c (reset_inline_failed): Remove.
27114 * rtl.h (cse_main): Remove.
27115 (extended_count): Likewise.
27116 * cse.c (dump_class): Mark as DEBUG_FUNCTION.
27117 (cse_main): Make static.
27118 * combine.c (extended_count): Remove.
27119 (dump_combine_stats): Mark as DEBUG_FUNCTION.
27120 * basic-block.h (reorder_basic_blocks): Remove.
27121 * bb-reorder.c (reorder_basic_blocks): Make static.
27122 * Makefile.in (dse.o): Remove dse.h dependency.
27124 * dse.c (gate_dse): Remove.
27125 (clear_alias_mode_eq): Likewise.
27126 (clear_alias_mode_hash): Likewise.
27127 (dse_record_singleton_alias_set): Likewise.
27128 (dse_invalidate_singleton_alias_set): Likewise.
27130 2012-03-29 H.J. Lu <hongjiu.lu@intel.com>
27132 * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
27133 crtbegin_so%O%s for -shared.
27134 (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
27136 2012-03-29 Richard Guenther <rguenther@suse.de>
27138 * tree-flow.h (struct pre_expr_d): Remove forward declaration.
27139 (add_to_value): Remove.
27140 (print_value_expressions): Likewise.
27141 * tree-ssa-pre.c (add_to_value): Make static.
27142 (print_value_expressions): Likewise.
27143 * gimple.h (gimple_adjust_this_by_delta): Remove.
27144 * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
27146 2012-03-29 Richard Guenther <rguenther@suse.de>
27148 PR middle-end/50708
27149 * double-int.h (rshift_double): Remove.
27150 * double-int.c (lshift_double): Use absu_hwi to make count positive.
27151 (rshift_double): Make static, take unsigned count argument,
27152 remove handling of negative count argument.
27153 (double_int_rshift): Dispatch to lshift_double.
27155 2012-03-28 H.J. Lu <hongjiu.lu@intel.com>
27157 * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
27158 OPTION_MASK_ABI_64.
27160 * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
27161 (SPEC_X32): Likewise.
27162 (MULTILIB_DEFAULTS): Likewise.
27164 * config/i386/i386.c (isa_opts): Remove -m64.
27165 (ix86_target_string): Properly handle -m32/-m64/-mx32.
27166 (ix86_option_override_internal): Properly
27167 set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
27168 handle -m32, -m64 and -mx32.
27170 * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
27171 with OPTION_ABI_X32. Moved after TARGET_LP64.
27172 (TARGET_LP64): Changed to OPTION_ABI_64.
27174 * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
27175 (mx32): Replace ISA_X32 with ABI_X32.
27177 2012-03-28 Eric Botcazou <ebotcazou@adacore.com>
27179 * tree.c (tree_size) <VECTOR_CST>: New case.
27181 2012-03-28 Uros Bizjak <ubizjak@gmail.com>
27183 * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
27184 (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
27186 2012-03-28 Jakub Jelinek <jakub@redhat.com>
27188 PR middle-end/52691
27189 * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
27190 __builtin_va_start to __builtin_next_arg if the latter is
27191 builtin_decl_explicit_p rather than when it is not.
27193 PR middle-end/52750
27194 * tree-vect-generic.c (vector_element): Perform multiplication
27195 for pos in bitsizetype type instead of idx type.
27197 2012-03-28 Richard Guenther <rguenther@suse.de>
27199 * loop-init.c (loop_optimizer_init): If loops are preserved
27200 perform incremental initialization of required loop features.
27201 (loop_optimizer_finalize): If loops are to be preserved only
27202 clean up optional loop features.
27203 (rtl_loop_done): Forcefully free loops here.
27204 * cgraph.c (cgraph_release_function_body): Forcefully free loops.
27205 * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
27207 (construct_init_block): Likewise.
27208 (construct_exit_block): Likewise.
27209 (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state. Cleanup
27210 the CFG after expanding.
27211 * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
27212 If we needed to calculate them, free them afterwards.
27213 * tree-pass.h (PROP_loops): New define.
27214 * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
27215 * basic-block.h (CLEANUP_CFG_CHANGED): New.
27216 * cfgcleanup.c (merge_blocks_move): Protect loop latches.
27217 (cleanup_cfg): If we did something and have loops around, fix them up.
27218 * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
27219 with CLEANUP_CFG_CHANGED.
27220 * cfghooks.c (merge_blocks): If we merge a loop header into
27221 its predecessor, update the loop structure.
27222 (duplicate_block): If we copy a loop latch, adjust loop state
27223 to note we may have multiple latches.
27224 (delete_basic_block): Mark loops for fixup if we remove a loop.
27225 * cfganal.c (forwarder_block_p): Protect loop latches, headers
27227 * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
27228 (cfg_layout_can_merge_blocks_p): Likewise.
27229 * cprop.c (bypass_block): If we create a loop with multiple
27230 entries, mark it for removal.
27231 * except.c (emit_to_new_bb_before): Add the new basic-block
27233 * tree-eh.c (lower_resx): Likewise.
27234 * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
27235 (expand_omp_taskreg): Likewise.
27236 * tree-inline.c (initialize_cfun): Likewise.
27237 * tree-mudflap.c (add_bb_to_loop): Prototype.
27238 (mf_build_check_statement_for): Properly add new basic-blocks
27240 * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
27241 if we remove a loop.
27242 (thread_through_loop_header): Likewise.
27243 * trans-mem.c (tm_log_emit_save_or_restores): Properly add
27244 new basic-blocks to existing loops.
27245 (expand_transaction): Likewise.
27246 * Makefile.in (except.o): Add $(CFGLOOP_H).
27247 (expr.o): Likewise.
27248 (cgraph.o): Likewise.
27249 (cprop.o): Likewise.
27250 (cfgexpand.o): Likewise.
27251 (cfganal.o): Likewise.
27252 (trans-mem.o): Likewise.
27253 (tree-eh.o): Likewise.
27255 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
27258 * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
27259 (avr_builtin_decl): New static function.
27260 (struct avr_builtin_description, avr_bdesc): Move up.
27261 Add GTY marker. Add field fndecl. Remove redundant field id.
27262 (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
27263 (avr_expand_builtin): Code cleanup because .id is removed.
27265 2012-03-28 Georg-Johann Lay <avr@gjlay.de>
27268 * config.gcc (tm_file): Remove avr/multilib.h.
27270 * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
27272 * config/avr/genmultilib.awk: Remove code to generate multilib.h.
27273 (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
27274 * config/avr/t-avr: Remove generation of multilib.h.
27275 * config/avr/t-multilib: Regenerate.
27276 * config/avr/multilib.h: Remove.
27277 * config/avr/avr.opt (-msp8): New option.
27278 (avr_sp8): New variable.
27279 * config/avr/driver-avr.c (avr_device_to_sp8): New function.
27280 * config/avr/avr.h (AVR_HAVE_SPH): New define.
27281 (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
27282 (avr_device_to_sp8): New prototype.
27283 (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
27284 (DRIVER_SELF_SPECS): New define.
27285 * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
27286 __AVR_SP8__, __AVR_HAVE_SPH__.
27287 * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
27288 AVR_HAVE_8BIT_SP to decide if SP_H is present.
27289 (avr_file_start): Ditto.
27291 2012-03-28 Jakub Jelinek <jakub@redhat.com>
27294 * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
27295 instead of 8 in adjust_address.
27297 2012-03-27 Aurelien Buhrig <aurelien.buhrig.gcc@gmail.com>
27299 PR middle-end/51893
27300 * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
27303 2012-03-27 Oleg Endo <olegendo@gcc.gnu.org>
27306 * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
27307 Rearrange conditional logic. Move displacement address calculations
27309 (sh_find_mov_disp_adjust): ... this new function.
27311 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
27313 * config/arm/arm.opt (mapcs): Remove MaskExists.
27314 * config/cris/linux.opt (mno-gotplt): Likewise.
27315 * config/i386/i386.opt (mhard-float): Likewise.
27317 (mno-sse4): Likewise.
27318 * config/m68k/m68k.opt (mhard-float): Likewise.
27319 * config/mep/mep.op (mcop32): Likewise.
27320 * config/pa/pa-hpux.opt (msio): Likewise.
27321 * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
27322 * config/picochip/picochip.opt (mlittle): Likewise.
27323 * config/sh/sh.opt (mrenesas): Likewise.
27324 * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
27325 * config/sparc/sparc.opt (mhard-float): Likewise.
27326 * config/v850/v850.opt (mv850es): Likewise.
27327 * config/vax/vax.opt (mg-float): Likewise.
27329 2012-03-27 Martin Jambor <mjambor@suse.cz>
27331 PR middle-end/52693
27332 * tree-sra.c (sra_modify_assign): Do not call
27333 load_assign_lhs_subreplacements when working with an unscalarizable
27336 2012-03-27 Uros Bizjak <ubizjak@gmail.com>
27339 * config/i386/i386-protos.h (ix86_legitimize_reload_address):
27341 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
27342 * config/i386/i386.c: Include reload.h.
27343 (ix86_legitimize_reload_address): New function.
27345 2012-03-27 H.J. Lu <hongjiu.lu@intel.com>
27347 * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
27348 hasn't been allocated. Define a target macro for Mask and
27349 InverseMask if it hasn't been defined. Remove MaskExists handling.
27351 * doc/options.texi: Remove MaskExists.
27353 2012-03-27 Chung-Lin Tang <cltang@codesourcery.com>
27356 * config/sh/sh.c (find_barrier): Add equality check of last_got
27357 to avoid going above orig insn. Update comments.
27359 2012-03-27 Richard Guenther <rguenther@suse.de>
27361 PR middle-end/52720
27362 * fold-const.c (try_move_mult_to_index): Handle &x.array more
27365 2012-03-27 Eric Botcazou <ebotcazou@adacore.com>
27367 * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
27368 of a unit before computing the offset in units.
27369 * expr.c (get_bit_range): Return the null range if the enclosing record
27370 is part of a larger bit field.
27372 2012-03-27 Tristan Gingold <gingold@adacore.com>
27374 * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
27375 * config/ia64/ia64.md: Remove mode in template.
27376 Sign extend operand in expand_simple_binop.
27377 * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
27378 CASE_VECTOR_MODE instead of TARGET_ILP32.
27379 (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
27381 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
27383 * varasm.c (assemble_external): #if 0 out the new assert from the
27384 previous commit, it breaks the Java and Go front ends.
27386 2012-03-26 Steven Bosscher <steven@gcc.gnu.org>
27388 * toplev.c (check_global_declaration_1): Do not call assemble_external.
27389 * expr.c (emit_block_move_libcall_fn): Likewise.
27390 (clear_storage_libcall_fn): Likewise.
27391 (expand_expr_addr_expr_1): Likewise.
27392 (expand_expr_real_1): Likewise.
27393 * calls.c (rtx_for_function_call): Likewise.
27395 * varasm.c (assemble_external): Assert this function is only called
27396 during or after expanding to RTL.
27398 2012-03-26 Martin Jambor <mjambor@suse.cz>
27400 PR tree-optimization/50052
27401 * tree-sra.c (tree_non_aligned_mem_p): Removed.
27402 (tree_non_aligned_mem_for_access_p): Likewise.
27403 (build_accesses_from_assign): Removed strict alignment requirements
27405 (access_precludes_ipa_sra_p): Likewise.
27407 2012-03-26 Richard Guenther <rguenther@suse.de>
27409 PR tree-optimization/52701
27410 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
27411 compute and set the evolution part of PHI nodes.
27413 2012-03-26 Richard Guenther <rguenther@suse.de>
27415 PR tree-optimization/52721
27416 * tree-vect-stmts.c (vect_init_vector): Handle scalars.
27418 2012-03-26 Ulrich Weigand <ulrich.weigand@linaro.org>
27420 PR tree-optimization/52686
27421 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
27424 2012-03-26 Tristan Gingold <gingold@adacore.com>
27426 * config/alpha/vms.h (LINK_SPEC): Simplify.
27427 (STARTFILE_SPEC): Remove -mvms-return-codes handling.
27428 (NAME__MAIN, SYMBOL__MAIN): Remove.
27429 (VMS_DEBUG_MAIN_POINTER): Remove.
27430 * config/ia64/vms.h: Likewise.
27431 * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
27432 code to vms.c. Call vms_start_function.
27433 * config/ia64/ia64.c (ia64_start_function): Likewise.
27434 * config/vms/vms-protos.h (vms_start_function): Declare.
27435 * config/vms/vms.c (vms_start_function): New function.
27436 * config/vms/vms.h (MATH_LIBRARY): Define.
27437 (VMS_DEBUG_MAIN_POINTER): Define.
27439 2012-03-26 Eric Botcazou <ebotcazou@adacore.com>
27441 PR rtl-optimization/52629
27442 * reload1.c (count_pseudo): Short-circuit common case.
27443 (count_spilled_pseudo): Return early for pseudos without hard regs.
27444 Assert that the pseudo has got a hard reg before manipulating it.
27446 2012-03-24 Jan Hubicka <jh@suse.cz>
27449 * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
27450 (decide_is_variable_needed): Do not handle toplevel reorder here.
27451 * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
27452 * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
27455 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
27457 * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
27458 and str_bitsize instead of more convoluted expressions.
27460 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
27463 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
27465 2012-03-24 Eric Botcazou <ebotcazou@adacore.com>
27468 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
27470 2012-03-23 Martin Jambor <mjambor@suse.cz>
27472 * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
27474 2012-03-23 Richard Guenther <rguenther@suse.de>
27476 PR tree-optimization/52678
27477 * tree-vectorizer.h (struct _stmt_vec_info): Add
27478 loop_phi_evolution_part member.
27479 (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
27480 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
27481 STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
27482 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
27483 Use the cached evolution part and the PHI nodes value from
27484 the loop preheader edge instead of re-analyzing the evolution.
27486 2012-03-22 Maxim Kuvyrkov <maxim@codesourcery.com>
27488 * config/mips/mips-tables.opt: Update.
27489 * config/mips/mips.md (processor): Add xlp.
27490 * config/mips/mips-cpus.def: Add xlp.
27491 * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
27493 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
27494 * doc/invoke.texi: Mention XLP.
27496 2012-03-22 Jakub Jelinek <jakub@redhat.com>
27498 PR middle-end/52547
27499 * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
27500 on any new_local_var_chain vars declared during recursing on
27501 GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
27503 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
27505 * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
27506 (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
27507 (ASM_OUTPUT_LOCAL): Ditto.
27508 (ASM_OUTPUT_COMMON): Remove.
27509 * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
27510 * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
27512 2012-03-22 Jan Hubicka <jh@suse.cz>
27514 PR middle-end/51737
27515 * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
27517 * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
27518 * ipa-inline-transform.c (save_inline_function_body): Remove
27519 copied clone if needed.
27520 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
27522 2012-03-22 Richard Guenther <rguenther@suse.de>
27524 PR middle-end/52666
27525 * fold-const.c (fold_ternary_loc): Fix typo.
27527 2012-03-22 Georg-Johann Lay <avr@gjlay.de>
27530 * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
27531 (unspecv): Add UNSPECV_MEMORY_BARRIER.
27532 (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
27533 (delay_cycles_1, delay_cycles_2): Ditto.
27534 (delay_cycles_3, delay_cycles_4): Ditto.
27535 (nopv, *nopv): Ditto.
27536 (sleep, *sleep): Ditto.
27537 (wdr, *wdr): Ditto.
27539 2012-03-22 Richard Guenther <rguenther@suse.de>
27541 PR tree-optimization/52548
27542 * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
27543 because of clobbers.
27544 (prune_clobbered_mems): New function.
27545 (compute_antic_aux): Use it to prune ANTIC_OUT.
27546 (compute_partial_antic_aux): Use it to prune PA_IN.
27547 (compute_avail): Only insert expressions into EXP_GEN that are not
27548 invalidated when translated up to the beginning of the block.
27550 2012-03-22 Richard Guenther <rguenther@suse.de>
27552 PR tree-optimization/52638
27553 * tree-vect-stmts.c (vect_init_vector_1): New function, split
27555 (vect_init_vector): ... here. Handle scalar vector inits.
27556 (vect_get_vec_def_for_operand): Adjust.
27557 (vectorizable_load): Likewise.
27559 2012-03-22 Uros Bizjak <ubizjak@gmail.com>
27561 * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
27562 (alpha*-*-freebsd*): Ditto.
27563 (alpha*-*-netbsd*): Ditto.
27564 (alpha*-*-openbsd*): Ditto.
27565 * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
27566 (DWARF2_DEBUGGING_INFO): Remove.
27567 (PREFERRED_DEBUGGING_TYPE): Remove.
27568 (ASM_FINAL_SPEC): Remove.
27569 (IDENT_ASM_OP): Remove.
27570 (ASM_OUTPUT_IDENT): Remove.
27571 (SKIP_ASM_OP): Remove.
27572 (ASM_OUTPUT_SKIP): Remove.
27573 (ALIGN_ASM_OP): Remove.
27574 (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
27575 (ASM_OUTPUT_CASE_LABEL): Remove.
27576 (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
27577 (COMMON_ASM_OP): Remove.
27578 (ASM_OUTPUT_ALIGNED_COMMON): Remove.
27579 (ASCII_DATA_ASM_OP): Remove.
27580 (READONLY_DATA_SECTION_ASM_OP): Remove.
27581 (INIT_SECTION_ASM_OP): Remove.
27582 (FINI_SECTION_ASM_OP): Remove.
27583 (ASM_SECTION_START_OP): Remove.
27584 (ASM_OUTPUT_SECTION_START_FILE): Remove.
27585 (TARGET_ASM_NAMED_SECTION): Remove.
27586 (TARGET_ASM_SELECT_SECTION): Remove.
27587 (MAKE_DECL_ONE_ONLY): Remove.
27588 (TYPE_ASM_OP): Remove.
27589 (SIZE_ASM_OP): Remove.
27590 (ASM_WEAKEN_LABEL): Remove.
27591 (TYPE_OPERAND_FMT): Remove.
27592 (ASM_DECLARE_RESULT): Remove.
27593 (ASM_DECLARE_OBJECT_NAME): Remove.
27594 (ASM_FINISH_DECLARE_OBJECT): Remove.
27595 (ELF_ASCII_ESCAPES): Remove.
27596 (ELF_STRING_LIMIT): Remove.
27597 (STRING_ASM_OP): Remove.
27598 (ASM_OUTPUT_EXTERNAL): Remove.
27599 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
27600 * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
27602 (ASM_DECLARE_FUNCTION_NAME): Ditto.
27603 (ASM_DECLARE_FUNCTION_SIZE): Ditto.
27604 (ASM_GENERATE_INTERNAL_LABEL): Ditto.
27605 (ASM_OUTPUT_SKIP): Ditto.
27606 (READONLY_DATA_SECTION_ASM_OP): Remove.
27607 (USER_LABEL_PREFIX): Remove.
27608 (ASM_OUTPUT_ASCII): Remove.
27609 (ASM_OUTPUT_CASE_LABEL): Remove.
27610 (NO_DOLLAR_IN_LABEL): Undefine.
27612 2012-03-22 Richard Guenther <rguenther@suse.de>
27614 PR tree-optimization/52459
27615 * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
27616 PHI insertion for calls.
27618 2012-03-21 Steven Bosscher <steven@gcc.gnu.org>
27620 * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
27621 find_sets_in_insn, canonicalize_insn): Split out from ...
27622 (cse_insn): ... here.
27623 (invalidate_from_clobbers): Take an insn instead of the pattern.
27625 2012-03-21 Oleg Endo <olegendo@gcc.gnu.org>
27628 * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
27629 * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
27630 * config/sh/sh.md (sindf2, cosdf2): Remove.
27632 2012-03-21 Kaz Kojima <kkojima@gcc.gnu.org>
27635 * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
27636 prologue for unwinder and profiler.
27638 2012-03-21 Andreas Tobler <andreast@fgznet.ch>
27640 * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
27641 Introduce emul_name to select the right linker emulation for
27642 powerpc64-*-freebsd*.
27643 * configure: Regenerate.
27644 * config.gcc: Add bits to support powerpc64-*-freebsd*.
27645 * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
27646 * config/rs6000/freebsd64.h: New file.
27647 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
27649 (rs6000_savres_strategy): Likewise.
27650 (rs6000_savres_routine_name): Likewise.
27651 (rs6000_elf_file_end): Likewise.
27652 * config/rs6000/t-freebsd64: New file.
27653 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
27654 rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
27656 * config/rs6000/freebsd64.h: Remove duplicated entries from last
27658 * config/rs6000/t-freebsd64: Likewise.
27660 2012-03-21 Georg-Johann Lay <avr@gjlay.de>
27662 PR rtl-optimization/52543
27664 * config/avr/avr-protos.h (avr_load_lpm): New prototype.
27665 * config/avr/avr.c (avr_mode_dependent_address_p): New function.
27666 (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
27667 (avr_load_libgcc_p): Restrict to __flash loads.
27668 (avr_out_lpm): Only handle 1-byte loads from __flash.
27669 (avr_load_lpm): New function.
27670 (avr_find_unused_d_reg): Remove.
27671 (avr_out_lpm_no_lpmx): Remove.
27672 (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
27673 * config/avr/avr.md (unspec): Add UNSPEC_LPM.
27674 (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
27675 (load_<mode>, load_<mode>_clobber): New insns.
27676 (mov<mode>): For multi-byte move from non-generic
27677 16-bit address spaces: Expand to load_<mode> resp.
27678 load_<mode>_clobber.
27679 (load<mode>_libgcc): Remove expander.
27680 (split-lpmx): Remove split.
27682 2012-03-21 Richard Earnshaw <rearnsha@arm.com>
27684 * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
27685 * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
27686 All callers changed.
27687 (Fixed_core_reg): New feature.
27688 (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg. Allow fmrrd in
27690 * neon-testgen.ml: Handle Fixed_core_reg.
27692 2012-03-21 Andrew Stubbs <ams@codesourcery.com>
27694 * config/arm/arm.c (thumb2_reorg): Add complete support
27695 for 16-bit instructions.
27696 * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
27698 2012-03-21 Richard Guenther <rguenther@suse.de>
27700 PR tree-optimizer/52636
27701 * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
27702 to the appropriate type.
27704 2012-03-21 Richard Guenther <rguenther@suse.de>
27706 * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
27708 * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
27709 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
27710 * passes.c (init_optimization_passes): Remove pass_init_function,
27711 pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
27712 * tree-pass.h (pass_init_function): Remove.
27713 (pass_jump): Remove.
27714 (pass_initial_value_sets): Remove.
27715 (pass_unshare_all_rtl): Remove.
27716 * integrate.c (pass_initial_value_sets): Remove.
27717 * emit-rtl.c (pass_unshare_all_rtl): Remove.
27718 * tree.h (init_function_for_compilation): Remove.
27719 * function.c (init_function_for_compilation): Remove.
27720 (pass_init_function): Remove.
27721 * cfgcleanup.c (rest_of_handle_jump): Remove.
27722 (pass_jump): Remove.
27724 2012-03-20 Jason Merrill <jason@redhat.com>
27726 * tree-streamer-in.c (streamer_alloc_tree): Call
27727 ggc_alloc_zone_cleared_tree_node instead of
27728 ggc_alloc_zone_cleared_tree_node_stat.
27730 2012-03-20 Jonathan Wakely <jwakely.gcc@gmail.com>
27732 * doc/extend.texi (Template Instantiation): Remove anachronisms.
27734 2012-03-20 Jakub Jelinek <jakub@redhat.com>
27737 * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
27738 (ix86_expand_vec_perm_const_1): Call it.
27740 * config/i386/i386.c (vselect_insn): New variable.
27741 (init_vselect_insn): New function.
27742 (expand_vselect, expand_vselect_insn): Add testing_p argument.
27743 Call init_vselect_insn if vselect_insn is NULL. Adjust
27744 PATTERN (vselect_insn), instead of creating a new insn each time,
27745 only emit a copy of it if not testing and recog has been successful.
27746 (expand_vec_perm_pshufb, expand_vec_perm_1,
27747 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
27751 * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
27752 ("enabled" attribute): Handle avx2 and noavx2 isas.
27753 * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
27755 (vec_dup<mode>): Add avx2 =x,x alternative.
27756 (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
27757 (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
27758 For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
27759 * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
27761 (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
27762 if possible, handle also V8SFmode.
27764 2012-03-20 Richard Earnshaw <rearnsha@arm.com>
27766 * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
27767 * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
27768 reg_or_zero_operand predicate.
27769 (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
27771 2012-03-20 Jakub Jelinek <jakub@redhat.com>
27773 * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
27774 If operand isn't UNSPEC, return 0.
27776 2012-03-20 Richard Guenther <rguenther@suse.de>
27778 * tree-pass.h (pass_rtl_eh): Remove.
27779 * except.c (gate_handle_eh): Likewise.
27780 (rest_of_handle_eh): Likewise.
27781 (pass_rtl_eh): Likewise.
27782 (finish_eh_generation): Export.
27783 * except.h (finish_eh_generation): Declare.
27784 * passes.c (init_optimization_passes): Remove pass_rtl_eh.
27785 * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
27786 after expanding stack alignment. Instead of compacting blocks
27789 2012-03-20 Richard Guenther <rguenther@suse.de>
27791 * stor-layout.c (finish_bitfield_representative): Fallback
27792 to conservative maximum size if the padding up to the next
27793 field cannot be computed as a constant.
27794 (finish_bitfield_layout): If we cannot compute the distance
27795 between the start of the bitfield representative and the
27796 bitfield member start a new representative.
27797 * expr.c (get_bit_range): The distance between the start of
27798 the bitfield representative and the bitfield member is zero
27799 if the field offsets are not constants.
27801 2012-03-20 Tristan Gingold <gingold@adacore.com>
27803 * tree.h (enum size_type_kind): Add stk_ prefix to constants,
27804 convert in lowercase.
27805 (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
27806 (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
27807 * stor-layout.c (sizetype_tab): Adjust.
27808 (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
27809 * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
27810 instead of type_kind_last.
27811 * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
27812 instead of size_int_kind.
27813 * doc/tm.texi.in (Type Layout): Document SIZETYPE.
27814 * doc/tm.texi: Regenerate.
27815 * defaults.h (SIZETYPE): Provide a default value.
27816 * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
27817 (SIZETYPE): Define.
27819 2012-03-20 Oleg Endo <olegendo@gcc.gnu.org>
27821 * config/sh/sh.md: Use braced string notation where applicable.
27823 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
27825 * config/i386/i386.md (allocate_stack): Simplify.
27827 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
27829 * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
27830 copy_to_mode_reg (Pmode, ...).
27831 (expand_builtin_frame_address): Ditto.
27832 * expr.c (emit_block_move_via_libcall): Ditto.
27833 (set_storage_via_libcall): Ditto.
27835 * config/i386/i386.c (ix86_expand_movmem): Ditto.
27836 (ix86_expand_setmem): Ditto.
27837 (ix86_trampoline_init): DItto.
27838 * config/i386/i386.md (cmpstrnsi): Ditto.
27840 2012-03-19 Sandra Loosemore <sandra@codesourcery.com>
27842 * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
27843 * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
27844 * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
27845 (SH Options): Likewise.
27847 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
27849 * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
27850 Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
27851 (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
27852 DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
27853 (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
27856 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
27858 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
27859 * config/i386/i386.c (ix86_decompose_address): Use
27860 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
27861 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
27862 thread pointer to a register.
27865 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
27867 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
27868 if Pmode != word_mode.
27869 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
27870 Pmode == SImode for TARGET_X32.
27872 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
27873 (tls_initial_exec_x32): Likewise.
27875 2012-03-19 Oleg Endo <olegendo@gcc.gnu.org>
27878 * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
27879 DISP_ADDR_OFFSET): New macros.
27880 * config/sh/sh.c (sh_address_cost): Add SH2A special case.
27881 (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
27882 (sh_legitimize_address): Add QImode displacement handling.
27883 (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
27885 (sh_secondary_reload): Add QImode displacement handling.
27886 * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
27887 * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
27888 * config/sh/sh.md (extendqisi2): Remove constraints from expander.
27889 (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
27890 to register operands only.
27891 (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
27892 (extendqihi2): Change insn to expander.
27893 (*extendqihi2_compact_reg): New insn.
27894 (movqi_i, movqi): Replace with ...
27895 (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
27896 *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
27897 Add new peepholes for QImode displacement addressing.
27899 2012-03-19 Paolo Carlini <paolo.carlini@oracle.com>
27902 * doc/invoke.texi: Document -Wuseless-cast.
27904 2012-03-19 Eric Botcazou <ebotcazou@adacore.com>
27906 * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
27907 * tree.h (handled_component_p): Reorder cases.
27908 * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
27909 not initialize unsignedp.
27910 (loc_list_from_tree): Likewise.
27911 (fortran_common): Likewise.
27912 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
27914 2012-03-19 Uros Bizjak <ubizjak@gmail.com>
27916 * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
27917 mode consistently. Use ix86_gen_add3. Assert that Pmode == DImode.
27918 (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
27919 (ix86_split_long_move): Ditto.
27920 (legitimize_tls_address): Use ix86_gen_sub3.
27921 (construct_plt_address): Assert that Pmode == DImode.
27923 2012-03-18 Uros Bizjak <ubizjak@gmail.com>
27925 * config/i386/i386.md: Remove empty predicates and/or constraints.
27926 * config/i386/sync.md: Ditto.
27927 * config/i386/sse.md: Ditto.
27928 * config/i386/mmx.md: Ditto.
27929 * config/i386/pentium.md: Ditto.
27930 * config/i386/athlon.md: Ditto.
27932 2012-03-16 Richard Guenther <rguenther@suse.de>
27934 PR tree-optimization/52603
27935 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
27939 2012-03-14 Richard Guenther <rguenther@suse.de>
27941 PR tree-optimization/52571
27942 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
27943 flag_section_anchors check ...
27944 (vect_can_force_dr_alignment_p): ... here.
27946 2012-03-16 Martin Jambor <mjambor@suse.cz>
27948 * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
27949 memory through MEM_REFs by calling extract_bit_field.
27951 2012-03-16 Richard Guenther <rguenther@suse.de>
27953 * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
27954 and REFERENCE_TYPE interpretations.
27955 (can_native_interpret_type_p): New function.
27956 (fold_ternary_loc): Use native encode/interpret to fold
27957 BIT_FIELD_REFs of constants.
27959 2012-03-16 Richard Guenther <rguenther@suse.de>
27961 PR middle-end/52584
27962 * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
27963 of vector constants and constructors.
27965 2012-03-16 Richard Guenther <rguenther@suse.de>
27967 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
27968 VIEW_CONVERT_EXPR to convert constants.
27969 (vect_is_simple_use): Treat all constants as vec_constant_def.
27971 2012-03-16 Richard Guenther <rguenther@suse.de>
27972 Kai Tietz <ktietz@redhat.com>
27974 PR middle-end/48814
27975 * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
27976 side-effects completely in the pre-queue and use a temporary
27979 2012-03-16 Richard Guenther <rguenther@suse.de>
27981 * stor-layout.c (finish_bitfield_representative): Fall back
27982 to the conservative maximum size if we cannot compute the
27983 size of the tail padding.
27985 2012-03-16 Tristan Gingold <gingold@adacore.com>
27987 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
27988 __CRTL_VER and __VMS_VER.
27989 * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
27990 and vms_c_get_vms_ver.
27991 * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
27993 * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
27994 (VMS_DEFAULT_VMS_VER): Define.
27995 * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
27996 (VMS_DEFAULT_VMS_VER): Define.
27998 2012-03-16 Richard Guenther <rguenther@suse.de>
28000 * tree-vect-loop.c (get_initial_def_for_induction): Use
28001 build_constructor directly.
28002 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
28003 build_vector_from_val.
28004 * tree.c (build_vector_from_val): Avoid creating a constructor
28005 first when we want a constant vector.
28007 2012-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28009 * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
28011 2012-03-16 Richard Guenther <rguenther@suse.de>
28013 * tree.h (TREE_VECTOR_CST_ELTS): Remove.
28014 (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
28015 (struct tree_vector): Remove elements member, add variable size
28017 (build_vector_stat): Declare.
28018 (build_vector): Define in terms of build_vector_stat.
28019 * tree.c (build_vector): Rename to ...
28020 (build_vector_stat): ... this. Take array of trees as parameter.
28021 (build_vector_from_ctor): Adjust.
28022 (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
28023 initializer_zerop): Adjust.
28024 * cfgexpand.c (expand_debug_expr): Likewise.
28025 * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
28026 const_vector_from_tree): Likewise.
28027 * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
28028 native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
28029 fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
28030 * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
28031 (lto_input_ts_vector_tree_pointers): Adjust.
28032 * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
28033 (write_ts_vector_tree_pointers): Adjust.
28034 * varasm.c (const_hash_1, compare_constant, copy_constant,
28035 output_constant): Adjust.
28036 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
28037 * print-tree.c (print_node): Adjust.
28038 * tree-pretty-print.c (dump_generic_node): Adjust.
28039 * tree-vect-generic.c (uniform_vector_p, vector_element,
28040 lower_vec_perm): Adjust.
28041 * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
28042 * tree-vect-slp.c (vect_get_constant_vectors,
28043 vect_transform_slp_perm_load): Adjust.
28044 * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
28045 * expmed.c (make_tree): Adjust.
28046 * config/i386/i386.c (ix86_expand_builtin): Adjust.
28047 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
28048 and implementation.
28049 (sparc_fold_builtin): Adjust.
28051 2012-03-16 Tristan Gingold <gingold@adacore.com>
28053 * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
28054 * config/vms/vms-stdint.h: New file.
28056 2012-03-16 Tristan Gingold <gingold@adacore.com>
28058 * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
28059 (ia64-hp-*vms*): Replaced by ...
28060 (*-*-*vms*): ... This new entry.
28062 2012-03-15 Jakub Jelinek <jakub@redhat.com>
28065 * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
28066 (ix86_expand_vec_perm_const_1): Use it.
28069 * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
28070 (avx2_permv4df): Remove.
28071 (avx2_permv4di): Macroize into...
28072 (avx2_perm<mode>): ... this using VI8F_256 iterator.
28073 (avx2_permv4di_1): Macroize into...
28074 (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
28076 2012-03-15 Ulrich Weigand <ulrich.weigand@linaro.org>
28078 * combine.c (apply_distributive_law): Do not distribute SUBREG.
28080 2012-03-15 Ira Rosen <irar@il.ibm.com>
28081 Ulrich Weigand <ulrich.weigand@linaro.org>
28083 * tree-vect-patterns.c (widened_name_p): Rename to ...
28084 (type_conversion_p): ... this. Add new argument to determine
28085 if it's a promotion or demotion operation. Check for
28086 CONVERT_EXPR_CODE_P instead of NOP_EXPR.
28087 (vect_recog_dot_prod_pattern): Call type_conversion_p instead
28089 (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
28090 vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
28092 (vect_recog_mixed_size_cond_pattern): Likewise and allow
28093 non-constant then and else clauses.
28095 2012-03-15 Ira Rosen <irar@il.ibm.com>
28096 Ulrich Weigand <ulrich.weigand@linaro.org>
28098 * tree-vectorizer.h (vect_pattern_recog): Add new argument.
28099 * tree-vect-loop.c (vect_analyze_loop_2): Update call to
28100 vect_pattern_recog.
28101 * tree-vect-patterns.c (widened_name_p): Pass basic block
28102 info to vect_is_simple_use.
28103 (vect_recog_dot_prod_pattern): Fail for basic blocks.
28104 (vect_recog_widen_sum_pattern): Likewise.
28105 (vect_handle_widen_op_by_const): Support basic blocks.
28106 (vect_operation_fits_smaller_type,
28107 vect_recog_over_widening_pattern): Likewise.
28108 (vect_recog_vector_vector_shift_pattern): Support basic blocks.
28109 Update call to vect_is_simple_use.
28110 (vect_recog_mixed_size_cond_pattern): Support basic blocks.
28112 (check_bool_pattern): Add an argument, update call to
28113 vect_is_simple_use and the recursive calls.
28114 (vect_recog_bool_pattern): Update relevant function calls.
28116 (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
28117 (vect_pattern_recog_1): Check for reduction only in loops.
28118 (vect_pattern_recog): Add new argument. Support basic blocks.
28119 * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
28120 info to vect_is_simple_use_1.
28121 * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
28122 (vect_slp_analyze_bb_1): Call vect_pattern_recog.
28124 2012-03-15 Jakub Jelinek <jakub@redhat.com>
28125 Andrew Pinski <apinski@cavium.com>
28127 PR middle-end/52592
28128 * builtins.c (expand_builtin_int_roundingfn_2): If expanding
28129 BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
28130 calls instead of __builtin_ir{int,ound}*.
28132 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28134 * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
28137 2012-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
28139 * config.gcc (target_type_format_char): New. Document it. Set it for
28141 * configure.ac (gnu_unique_option): Use target_type_format_char
28142 in test. Comment rationale.
28143 * configure: Regenerate .
28145 2012-03-15 Jakub Jelinek <jakub@redhat.com>
28147 PR tree-optimization/52267
28148 * tree-vrp.c (masked_increment): New function.
28149 (register_edge_assert_for_2): Derive ASSERT_EXPRs
28150 from (X & CST1) cmp CST2 tests.
28152 2012-03-15 Richard Guenther <rguenther@suse.de>
28154 PR middle-end/52580
28155 * tree-data-ref.c (subscript_dependence_tester_1): Check
28156 all dimensions for non-conflicting access functions.
28158 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
28161 * doc/invoke.texi [C++ Language Options]: Document
28162 -ftemplate-backtrace-limit.
28164 2012-03-15 Tristan Gingold <gingold@adacore.com>
28166 * c-parser.c (c_parser_parameter_declaration): Handle #pragma
28167 before a parameter.
28169 2012-03-15 Tristan Gingold <gingold@adacore.com>
28171 * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
28172 use DW_OP_call_frame_cfa.
28174 2012-03-14 H.J. Lu <hongjiu.lu@intel.com>
28177 * config/i386/i386-opts.h (pmode): New.
28179 * config/i386/i386.c (ix86_option_override_internal): Properly
28180 check and set ix86_pmode.
28182 * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
28184 * config/i386/i386.opt (maddress-mode=): New.
28186 * doc/invoke.texi: Document -maddress-mode=short|long for x86.
28188 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28190 * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
28191 (dwarf2out_do_cfi_asm): Likewise.
28192 * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
28194 (add_data_member_location_attribute): Likewise.
28195 (gen_array_type_die): Likewise.
28196 (gen_subprogram_die): Likewise.
28197 (gen_producer_string): Likewise.
28198 * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
28199 Remove MIPS_DEBUGGING_INFO handling.
28200 (sdb_debug_hooks): Likewise.
28201 (sdbout_begin_block): Likewise.
28202 (sdbout_end_block): Likewise.
28203 (sdbout_begin_prologue): Likewise.
28204 (sdbout_start_source_file): Likewise.
28205 (sdbout_end_source_file): Likewise.
28206 (sdbout_init): Likewise.
28207 * system.h (MIPS_DEBUGGING_INFO): Poison.
28209 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28211 * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
28212 (alpha_file_start) [MS_STAMP]: Remove.
28214 * config/alpha/elf.h (TARGET_GAS): Remove.
28215 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
28216 * config/alpha/linux.h (TARGET_DEFAULT): Remove.
28217 * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
28218 * config/alpha/vms.h (TARGET_DEFAULT): Remove.
28219 * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
28220 (alpha*-*-freebsd*): Likewise.
28221 (alpha*-*-netbsd*): Likewise.
28222 (alpha*-*-openbsd*): Likewise.
28223 (alpha*-*-*): Remove target_cpu_default2.
28224 * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
28226 * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
28227 (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
28228 * config/alpha/alpha.c (print_operand): Always assume
28229 TARGET_AS_SLASH_BEFORE_SUFFIX.
28230 * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
28231 Remove TARGET_AS_CAN_SUBTRACT_LABELS.
28232 ("*builtin_setjmp_receiver_er_1"): Remove.
28233 * config/alpha/alpha.opt (malpha-as): Remove.
28235 * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
28237 Remove DEC Unix reference.
28239 * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
28240 (EXTENDED_COFF): Remove.
28241 * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
28242 (EXTENDED_COFF): Don't undef.
28243 * config/alpha/alpha.c (alpha_file_start): Always assume
28245 Don't set targetm.asm_file_start_file_directive.
28246 [!OBJECT_FORMAT_ELF]: Remove.
28247 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
28249 * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
28250 (DBX_DEBUGGING_INFO): Remove.
28251 (MIPS_DEBUGGING_INFO): Remove.
28252 (PREFERRED_DEBUGGING_TYPE): Remove.
28253 (DBX_OUTPUT_SOURCE_LINE): Remove.
28254 (SDB_OUTPUT_SOURCE_LINE): Remove.
28255 (DBX_CONTIN_LENGTH): Remove.
28256 (NO_DBX_FUNCTION_END): Remove.
28257 (ASM_STABS_OP): Remove.
28258 (ASM_STABN_OP): Remove.
28259 (ASM_STABD_OP): Remove.
28260 (SDB_ALLOW_FORWARD_REFERENCES): Remove.
28261 (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
28262 (PUT_SDB_DEF): Remove.
28263 (PUT_SDB_PLAIN_DEF): Remove.
28264 (PUT_SDB_TYPE): Remove.
28265 (sdb_label_count): Remove.
28266 (PUT_SDB_BLOCK_START): Remove.
28267 (PUT_SDB_BLOCK_END): Remove.
28268 (PUT_SDB_FUNCTION_START): Remove.
28269 (PUT_SDB_FUNCTION_END): Remove.
28270 (PUT_SDB_EPILOGUE_END): Remove.
28271 * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
28272 (MIPS_DEBUGGING_INFO): Don't undef.
28273 (DBX_DEBUGGING_INFO): Don't undef.
28274 * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
28275 (MIPS_DEBUGGING_INFO): Don't undef.
28276 (DBX_DEBUGGING_INFO): Don't undef.
28277 * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
28278 * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
28280 (alpha_start_function): Likewise.
28281 (sdb_label_count): Remove.
28282 (alpha_output_filename): Remove DBX_DEBUG handling.
28283 (alpha_file_start): Likewise.
28285 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28287 * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
28288 (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
28289 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
28291 * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
28292 (ld_tls_support): Remove Solaris 8 references.
28293 (lwp_dir, lwp_spec): Remove support for alternate thread library.
28294 * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
28295 * configure: Regenerate.
28296 * config.in: Regenerate.
28298 * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
28299 * config/i386/sol2.h: Remove Solaris 8 references.
28301 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
28302 (i?86-*-solaris2.9): ... this.
28303 Remove Solaris 8 references.
28304 (Specific, *-*-solaris2*): Document Solaris 8 removal.
28305 Remove Solaris 8 references.
28307 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28309 * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
28310 (mips-sgi-irix6.5*): Remove.
28311 * config.host (mips-sgi-irix*): Remove.
28312 * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
28313 (set_have_as_tls): Remove *-*-irix6*.
28314 (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
28315 * configure: Regenerate.
28317 * config/mips/iris6.h: Remove.
28318 * config/mips/iris6.opt: Remove.
28319 * config/mips/t-irix6: Remove.
28321 * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
28322 (TARGET_IRIX6): Remove.
28323 (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
28324 Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
28325 * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
28327 (mips_file_start): Likewise.
28328 * config/mips/mips-protos.h (irix_asm_output_align): Remove.
28330 * config/mips/driver-native.c [__sgi__]: Remove.
28331 (host_detect_local_cpu) [__sgi__]: Remove.
28333 * config/mips/gnu-user.h: Remove iris5.h reference.
28335 * config/mips/mips-modes.def: Remove IRIX 6 reference.
28336 * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
28337 * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
28340 * gcc.c (main): Move asm_debug initialization ...
28341 (asm_debug): ... here.
28343 * ginclude/stddef.h (__STDDEF_H__): Don't define.
28345 * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
28346 * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
28347 * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
28348 (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
28349 [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
28350 * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
28352 * doc/tm.texi: Regenerate.
28354 * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
28356 (MIPS Options, -march): Remove IRIX reference.
28357 * doc/install.texi (Binaries, SGI IRIX): Remove.
28358 (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
28360 * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
28362 2012-03-14 Martin Jambor <mjambor@suse.cz>
28364 * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
28365 when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
28366 (expand_expr_real_1): Do not handle misalignment if modifier is
28369 2012-03-14 Richard Guenther <rguenther@suse.de>
28371 PR middle-end/52584
28372 * tree-vect-generic.c (type_for_widest_vector_mode): Take
28373 element type instead of mode, use build_vector_type_for_mode
28374 instead of the langhook, build a vector of proper signedness.
28375 (expand_vector_operations_1): Adjust.
28377 2012-03-14 Richard Guenther <rguenther@suse.de>
28379 PR middle-end/52582
28380 * gimple-fold.c (canonicalize_constructor_val): Make sure we have
28381 a cgraph node for a FUNCTION_DECL that comes from a constructor.
28382 (gimple_get_virt_method_for_binfo): Likewise.
28384 2012-03-14 Richard Guenther <rguenther@suse.de>
28386 PR tree-optimization/52571
28387 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
28388 flag_section_anchors check ...
28389 (vect_can_force_dr_alignment_p): ... here. Do not re-align
28390 DECL_COMMON variables.
28392 2012-03-14 Richard Guenther <rguenther@suse.de>
28394 * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
28395 * stor-layout.c (start_bitfield_representative): New function.
28396 (finish_bitfield_representative): Likewise.
28397 (finish_bitfield_layout): Likewise.
28398 (finish_record_layout): Call finish_bitfield_layout.
28399 * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
28400 for QUAL_UNION_TYPE fields.
28401 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
28402 Stream DECL_BIT_FIELD_REPRESENTATIVE.
28403 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
28405 PR middle-end/52080
28406 PR middle-end/52097
28407 PR middle-end/48124
28408 * expr.c (get_bit_range): Unconditionally extract bitrange
28409 from DECL_BIT_FIELD_REPRESENTATIVE.
28410 (expand_assignment): Adjust call to get_bit_range.
28412 2012-03-14 Richard Guenther <rguenther@suse.de>
28414 PR middle-end/52578
28415 * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
28416 the outermost conversion is a sign-change only.
28417 (fold_binary_loc): Disregard widening and sign-changing
28418 conversions when we determine if two variables are equal
28420 * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
28421 (T1)x if the outermost conversion is a sign-change only.
28423 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
28426 2012-03-14 Uros Bizjak <ubizjak@gmail.com>
28428 * config/i386/predicates.md (constant_call_address_operand): Declare
28429 as special predicate. Update all uses.
28431 2012-03-13 Jakub Jelinek <jakub@redhat.com>
28434 * c-parser.c (c_parser_postfix_expression)
28435 <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
28437 * config/i386/smmintrin.h: Avoid /* within a comment.
28438 * config/i386/nmmintrin.h: Likewise.
28440 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28442 * config/i386/i386.md (xbegin): Remove constraint from expander.
28444 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28446 * config/i386/predicates.md (constant_call_address_operand): Declare
28447 as special predicate. Update all uses.
28448 * config/i386/i386.md: Remove mode from constant_call_address_operand
28450 * config/i386/i386.c (ix86_output_call_insn): Call
28451 constant_call_address_operand with VOIDmode.
28453 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28455 * config/i386/i386.c (ix86_decompose_address): Handle subregs of
28456 AND zero extended address correctly.
28458 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28460 * config/i386/predicates.md (tls_symbolic_operand): Declare as
28462 (tls_modbase_operand): Ditto.
28463 * config/i386/i386.md: Remove mode from tls_symbolic_operand and
28464 tls_modbase_operand predicates.
28466 2012-03-13 Martin Jambor <mjambor@suse.cz>
28468 * expr.c (expand_assignment): Handle misaligned scalar writes to
28469 memory through top-level MEM_REFs by calling store_bit_field.
28471 2012-03-13 Richard Guenther <rguenther@suse.de>
28473 PR middle-end/52134
28474 * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
28475 if Y is a constant multiple of 1 << CST.
28477 2012-03-13 Georg-Johann Lay <avr@gjlay.de>
28480 * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
28481 offset (size) to a value the insns can deal with.
28482 (expand_epilogue): Ditto.
28484 2012-03-13 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
28486 * config/arm/neon.ml (ops): Fixup expected instructions for
28487 unsigned vector compares.
28489 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28491 * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
28492 addresses only when %reg is not in word mode.
28494 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28496 * config/microblaze/microblaze.md: Fix typo.
28497 * tree-if-conv.c: Likewise.
28498 * tree-vect-patterns.c: Likewise.
28500 2012-03-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28502 * config.gcc (extra_passes): Remove.
28503 * configure.ac (extra_passes): Don't substitute.
28504 * configure: Regenerate.
28505 * Makefile.in (EXTRA_PASSES): Remove.
28506 (GCC_PASSES): Remove $(EXTRA_PASSES).
28507 (MOSTLYCLEANFILES): Likewise.
28508 (native): Likewise.
28509 (install-common): Likewise.
28511 2012-03-13 Uros Bizjak <ubizjak@gmail.com>
28513 * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
28514 * config/i386/i386.c (ix86_decompose_address): Use
28515 TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
28516 (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
28517 thread pointer to a register.
28519 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
28521 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
28522 on tls_symbolic_operand.
28523 (tls_global_dynamic_64_<mode>): Likewise.
28525 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
28528 * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
28529 SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
28531 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
28534 * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
28535 type from reg_class_t to enum reg_class.
28536 * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
28538 2012-03-12 Andrew Pinski <apinski@cavium.com>
28540 * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
28541 (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
28542 (value_replacement): Likewise.
28543 (empty_block_p): Check also if the PHIs for the block are empty.
28545 2012-03-12 Georg-Johann Lay <avr@gjlay.de>
28548 * config/avr/avr.c (avr_out_movmem): Fix typo in output template
28549 for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
28550 r184615 from 2012-02-28.
28552 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
28554 * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
28555 (ix86_gen_tls_local_dynamic_base_64): Likewise.
28556 (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
28557 and ix86_gen_tls_local_dynamic_base_64.
28558 (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
28559 ix86_gen_tls_local_dynamic_base_64.
28561 * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
28562 (*tls_global_dynamic_64_<mode>): This.
28563 (tls_global_dynamic_64): Renamed to ...
28564 (tls_global_dynamic_64_<mode>): This.
28565 (*tls_local_dynamic_base_64): Renamed to ...
28566 (*tls_local_dynamic_base_64_<mode>): This.
28567 (tls_local_dynamic_base_64): Renamed to ...
28568 (tls_local_dynamic_base_64_<mode>): This.
28570 2012-03-12 H.J. Lu <hongjiu.lu@intel.com>
28572 * config/i386/i386.c (ix86_option_override_internal): Properly
28573 set ix86_gen_leave and ix86_gen_monitor. Check Pmode == DImode,
28574 instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
28575 ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
28576 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
28578 * config/i386/sse.md (sse3_monitor64): Renamed to ...
28579 (sse3_monitor64_<mode>): This.
28581 2012-03-12 Tristan Gingold <gingold@adacore.com>
28583 * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
28584 (ia64_function_arg_advance): Ditto.
28586 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28588 * config.gcc (mips*-*-openbsd*): Remove.
28589 * config/mips/openbsd.h: Remove.
28590 * config/mips/sdb.h: Remove.
28592 * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
28593 * config/mips/mips.c (sdb_label_count): Remove.
28594 (mips_debugger_offset): Remove #if 0 code.
28595 (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
28596 * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
28598 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28600 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
28601 binutils reference.
28602 (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
28603 Update binutils references.
28604 (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
28605 Update binutils reference.
28606 Update Sun as/GNU ld caveat.
28607 Document binutils largefile requirement for LTO plugin.
28608 Remove reference to alternate libpthread.
28610 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28612 * config.gcc (alpha*-dec-osf5.1*): Remove.
28613 * config.host (alpha*-dec-osf*): Remove.
28614 * configure.ac (*-*-osf*): Remove.
28615 (alpha*-dec-osf*): Remove.
28616 * configure: Regenerate.
28618 * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
28619 config/alpha/va_list.h, config/alpha/x-osf: Remove.
28621 * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
28622 * config/alpha/alpha.c (struct machine_function): Update comment.
28623 (alpha_start_function): Remove Tru64 UNIX as handling for
28625 * config/alpha/alpha.md ("exception_receiver"): Remove
28626 TARGET_LD_BUGGY_LDGP.
28627 ("*exception_receiver_2"): Likewise.
28628 * except.c (finish_eh_generation): Remove Tru64 reference.
28629 * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
28630 * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
28631 * target.def (handle_pragma_extern_prefix): Remove.
28633 * Makefile.in (mips-tfile.o-warn): Remove.
28634 (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
28635 (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
28636 * mips-tdump.c, mips-tfile.c: Remove.
28638 * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
28640 * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
28641 (Specific, alpha*-dec-osf5.1): Note removal.
28642 * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
28644 * doc/tm.texi: Regenerate.
28645 * doc/trouble.texi (Cross-Compiler Problems): Remove.
28647 2012-03-12 Richard Guenther <rguenther@suse.de>
28649 * config/arm/arm.c (neon_dereference_pointer): Do not call
28650 covert during RTL expansion.
28652 2012-03-12 Tristan Gingold <gingold@adacore.com>
28654 * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
28655 Options. Mention -mpointer-size.
28657 2012-03-12 Richard Guenther <rguenther@suse.de>
28659 * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
28660 build_nonstandard_integer_type.
28662 2012-03-12 Richard Guenther <rguenther@suse.de>
28664 * tree.c (signed_or_unsigned_type_for): Use
28665 build_nonstandard_integer_type.
28666 (signed_type_for): Adjust documentation.
28667 (unsigned_type_for): Likewise.
28668 * tree-pretty-print.c (dump_generic_node): Use standard names
28669 for non-standard integer types if available.
28671 2012-03-12 Tristan Gingold <gingold@adacore.com>
28673 * config/vms/vms.opt: Add vms-opts.h header.
28674 (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
28676 (-mvms-return-codes): Document.
28677 (-mpointer-size): New option.
28678 (vms_pointer_size): Add enumeration.
28679 * config/vms/vms-opts.h: New file.
28680 * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
28681 __INITIAL_POINTER_SIZE.
28682 (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
28683 (C_COMMON_OVERRIDE_OPTIONS): Define.
28684 (DWARF2_ADDR_SIZE): Define.
28685 * config/vms/vms.c (vms_patch_builtins): Adjust condition.
28686 * config/vms/vms-protos.h (vms_c_common_override_options):
28688 * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
28689 if -mno-pointer-size.
28690 (vms_c_common_override_options): New function.
28691 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
28692 * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
28693 (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
28694 and flag_vms_pointer_size.
28695 (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
28696 * config.gcc (*-*-*vms*): Define xm_file.
28697 (alpha*-dec-*vms*): Do not define xm_file.
28698 (alpha64-dec-*vms*): Remove.
28699 (ia64-hp-*vms*): Do not define xm_file. Simplify tm_file
28702 2012-03-12 Jakub Jelinek <jakub@redhat.com>
28704 PR tree-optimization/51721
28705 * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
28706 if (int) unsvar cmp CST.
28708 2012-03-12 Richard Guenther <rguenther@suse.de>
28710 * tree-sra.c (create_access_replacement): Only rename the replacement
28711 if we can rewrite it into SSA form. Properly mark register typed
28712 replacements that we cannot rewrite with TREE_ADDRESSABLE.
28713 * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
28714 for aggregate or BLKmode results.
28716 2012-03-12 Jakub Jelinek <jakub@redhat.com>
28718 PR tree-optimization/52533
28719 * tree-vrp.c (register_edge_assert_for_2): Use double_int
28720 type for mask, only handle shifts by non-zero in-range
28721 shift count, for LE_EXPR and GT_EXPR if new_val is
28722 maximum, don't add the assertion.
28724 2012-02-12 Kirill Yukhin <kirill.yukhin@intel.com>
28726 * doc/invoke.texi: Document -mrtm option.
28727 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
28728 (OPTION_MASK_ISA_RTM_UNSET): Ditto.
28729 (ix86_handle_option): Handle OPT_mrtm.
28730 * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
28732 (x86_64-*-*): Ditto.
28733 * i386-builtin-types.def (INT_FTYPE_VOID): New.
28734 * config/i386/i386-c.c (ix86_target_macros_internal): Define
28736 (ix86_target_string): Define -mrtm option.
28738 (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
28740 (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
28741 (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
28742 IX86_BUILTIN_XTEST.
28743 (bdesc_special_args): Ditto.
28744 (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
28745 (ix86_expand_special_args_builtin): Handle new built-in type.
28746 (ix86_expand_builtin): Handle XABORT instruction.
28747 * config/i386/i386.h (TARGET_RTM): New.
28748 * config/i386/i386.md (UNSPECV_XBEGIN): New.
28749 (UNSPECV_XEND): Ditto.
28750 (UNSPECV_XABORT): Ditto.
28751 (UNSPECV_XTEST): Ditto.
28758 * config/i386/i386.opt (mrtm): New.
28759 * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
28760 * config/i386/rtmintrin.h: New header.
28761 * config/i386/xtestintrin.h: Ditto.
28763 2012-03-12 Tristan Gingold <gingold@adacore.com>
28765 * ginclude/stddef.h: Adjust previous patch.
28766 Use __VMS__ instead of VMS.
28768 2012-03-12 Uros Bizjak <ubizjak@gmail.com>
28770 * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
28771 Also convert sequences with CC setting arithmetic instruction.
28773 2012-03-11 Sandra Loosemore <sandra@codesourcery.com>
28775 * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
28776 from C Language Options to Preprocessor Options.
28777 (C Dialect Options): Move -no-integrated-cpp documentation
28779 (Preprocessor Options): ...to here. Rewrite the description
28780 so it makes more sense, and remove discussion of merging front ends.
28782 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
28784 * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
28786 (ix86_expand_setmem): Likewise.
28788 2012-03-11 Uros Bizjak <ubizjak@gmail.com>
28790 * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
28793 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
28795 * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
28796 ptr_mode == SImode. Replace DImode with Pmode or ptr_mode.
28798 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
28800 * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
28802 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
28804 * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
28807 2012-03-11 H.J. Lu <hongjiu.lu@intel.com>
28808 Uros Bizjak <ubizjak@gmail.com>
28810 * config/i386/predicates.md (call_insn_operand): Allow
28811 constant_call_address_operand in Pmode only.
28812 (sibcall_insn_operand): Ditto.
28813 * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
28814 (*call_vzeroupper): Ditto.
28816 (*sibcall_vzeroupper): Ditto.
28817 (*call_value): Ditto.
28818 (*call_value_vzeroupper): Ditto.
28819 (*sibcall_value): Ditto.
28820 (*sibcall_value_vzeroupper): Ditto.
28821 (*indirect_jump): Ditto.
28822 (*tablejump_1): Ditto.
28823 (indirect_jump): Convert memory address to word mode for TARGET_X32.
28824 (tablejump): Ditto.
28825 * config/i386/i386.c (ix86_expand_call): Convert indirect operands
28828 2012-03-11 Oleg Endo <olegendo@gcc.gnu.org>
28831 * config/sh/sh.md (movnegt): Expand into respective insns immediately.
28832 Use movrt_negc instead of negc pattern for non-SH2A.
28833 (*movnegt): Remove.
28834 (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
28836 2012-03-10 H.J. Lu <hongjiu.lu@intel.com>
28838 * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
28839 if Pmode != word_mode.
28840 (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
28841 Pmode == SImode for TARGET_X32.
28843 * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
28844 (tls_initial_exec_x32): Likewise.
28846 2012-03-10 Chung-Lin Tang <cltang@codesourcery.com>
28848 PR rtl-optimization/52528
28849 * combine.c (can_combine_p): Add setting of subst_low_luid
28850 before call to expand_field_assignment().
28852 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
28854 * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
28855 and related program names.
28857 2012-03-09 Sandra Loosemore <sandra@codesourcery.com>
28859 * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
28861 2012-03-09 Uros Bizjak <ubizjak@gmail.com>
28864 * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
28865 (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
28866 to set code to 'q'.
28867 * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
28868 (*movdi_internal_rex64): Use %E operand modifier for lea.
28869 (*movsi_internal): Ditto.
28871 (*lea<mode>_2): Ditto.
28872 (*lea_{3,4,5,6}_zext): Ditto.
28873 (*tls_global_dynamic_32_gnu): Ditto.
28874 (*tls_global_dynamic_64): Ditto.
28875 (*tls_dynamic_gnu2_lea_32): Ditto.
28876 (*tls_dynamic_gnu2_lea_64): Ditto.
28877 (pro_epilogue_adjust_stack_<mode>_add): Ditto.
28879 2012-03-09 Michael Meissner <meissner@linux.vnet.ibm.com>
28881 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
28882 redefine to be NULL if the current bit-size is different from the
28883 configured bit-size.
28885 * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
28886 cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
28887 set the default tuning. Add asserts to make sure the cpu and tune
28888 indexes are defined. Fix tests for cpu/tune index to use >= 0 to
28889 test whether the index is set, instead of > 0.
28890 (rs6000_file_start): Do not reset the default cpu if the current
28891 bit-size is different from the configured bit-size.
28893 2012-03-09 Tristan Gingold <gingold@adacore.com>
28895 * config/vms/vms-crtlmap.map: Add comments.
28896 Add entries needed to build Ada RTS.
28898 2012-03-09 Tristan Gingold <gingold@adacore.com>
28900 * ginclude/stddef.h: Do not define __size_t on VMS.
28902 2012-03-09 Tristan Gingold <gingold@adacore.com>
28904 * c-tree.h (c_default_pointer_mode): New variable.
28905 * c-decl.c (c_default_pointer_mode): New variable.
28906 (c_build_pointer_type): New function.
28907 (grokdeclarator): Call c_build_pointer_type instead
28908 of build_pointer_type.
28910 * config/vms/vms-c.c: Include c-tree.h
28911 (saved_pointer_mode): New variable.
28912 (handle_pragma_pointer_size): New function.
28913 (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
28914 (vms_c_register_pragma): Register __pointer_size and
28915 __required_pointer_size pragmas.
28917 2012-03-09 Tristan Gingold <gingold@adacore.com>
28919 * config/vms/vms-c.c (vms_construct_include_filename): New function.
28920 (vms_c_register_includes): Reference it.
28922 2012-03-09 Andrew Pinski <apinski@cavium.com>
28924 PR middle-end/51988
28925 * tree-ssa-phiopt.c: Include tree-pretty-print.h for
28926 print_generic_expr.
28927 (tree_ssa_phiopt_worker): Go through all the PHIs for
28928 value_replacement instead of just the singleton one.
28929 (value_replacement): Change return type to int. Return 0 instead of
28931 Allow the middle basic block to contain more than just the defining
28933 Handle non empty middle basic blocks.
28934 * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
28936 2012-03-09 Jiangning Liu <jiangning.liu@arm.com>
28938 * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
28939 array reference and component reference.
28940 (analyze_scalar_evolution_for_address_of): New.
28942 2012-03-08 Jie Zhang <jzhang918@gmail.com>
28945 * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
28946 (hwloop_pattern_reg): Fix set but not used warning.
28947 (bfin_reorg_loops): Remove unused parameter.
28948 (bfin_reorg): Update use of bfin_reorg_loops.
28950 2012-03-08 H.J. Lu <hongjiu.lu@intel.com>
28952 * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
28953 with integer parameters in registers.
28954 (gen_push): Push register in word_mode instead of Pmode.
28955 (ix86_emit_save_regs): Likewise.
28956 (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
28957 (gen_pop): Pop register in word_mode instead of Pmode.
28958 (ix86_emit_restore_regs_using_pop): Likewise.
28959 (ix86_expand_prologue): Replace Pmode with word_mode for push
28960 immediate. Use ix86_gen_pro_epilogue_adjust_stack. Save and
28961 restore RAX and R10 in word_mode.
28962 (ix86_emit_restore_regs_using_mov): Restore integer registers
28964 (ix86_expand_split_stack_prologue): Save R10_REG and restore in
28966 (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
28967 (ix86_split_long_move): Likewise.
28969 * config/i386/i386.md (W): New.
28970 (*push<mode>2_prologue): Replace :P with :W.
28971 (*pop<mode>1): Likewise.
28972 (*pop<mode>1_epilogue): Likewise.
28973 (push/pop peephole2): Use word_mode scratch registers.
28975 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
28977 * config/i386/predicates.md (indirect_branch_operand): Simplify.
28979 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
28981 * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
28982 for constants in [-63,63].
28984 2012-03-08 Uros Bizjak <ubizjak@gmail.com>
28988 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
28990 * config/i386/i386.c (ix86_print_operand_address): Only handle
28991 zero-extended DImode addresses.
28993 2012-03-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28995 * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
28996 * configure: Regenerate.
28998 2012-03-08 Georg-Johann Lay <avr@gjlay.de>
29001 * config/avr/avr.c (avr_mem_clobber): New static function.
29002 (avr_expand_delay_cycles): Add memory clobber operand to
29003 delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
29004 * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
29005 (enable_interrupt, disable_interrupt): New expander.
29006 (nopv, sleep, wdr): New expanders.
29007 (delay_cycles_1): Add memory clobber.
29008 (delay_cycles_2): Add memory clobber.
29009 (delay_cycles_3): Add memory clobber.
29010 (delay_cycles_4): Add memory clobber.
29011 (cli_sei): New insn from former "enable_interrupt",
29012 "disable_interrupt" with memory clobber.
29013 (*wdt): New insn from former "wdt" with memory clobber.
29014 (*nopv): Similar, but for "nopv".
29015 (*sleep): Similar, but for "sleep".
29017 2012-03-07 Oleg Endo <olegendo@gcc.gnu.org>
29018 Kaz Kojima <kkojima@gcc.gnu.org>
29021 * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
29022 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
29023 (SUBTARGET_OVERRIDE_OPTIONS): Define.
29025 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
29027 * config/i386/predicates.md (x86_64_zext_general_operand): New.
29028 * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
29029 predicate to x86_64_zext_general_operand. Accept "Z" constraint.
29031 2012-03-07 Walter Lee <walt@tilera.com>
29033 * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
29034 REG_CFA_* notes for the stack pointer.
29035 (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
29036 EH_RETURN_STACKADJ_RTX.
29037 * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
29038 generate REG_CFA_* notes for the stack pointer.
29039 (tilepro_expand_epilogue): Restore stack pointer by adjusting it
29040 by EH_RETURN_STACKADJ_RTX.
29042 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
29044 * doc/invoke.texi (AVR Built-in Macros): Correct condition for
29045 when __AVR_3_BYTE_PC__ is defined.
29047 2012-03-07 Uros Bizjak <ubizjak@gmail.com>
29049 * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
29050 (ix86_print_operand): Handle '^'.
29051 * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
29052 using P mode iterator. Add %^ to asm template to conditionally emit
29054 (*rep_movdi_rex64): Ditto.
29055 (*strsetdi_rex_1): Ditto.
29056 (*rep_stosdi_rex64): Ditto.
29057 (*strmov{si,hi,qi}_1): Add %^ to asm template to
29058 conditionally emit addr32 prefix.
29059 (*rep_mov{si,qi}): Ditto.
29060 (*strset{si,hi,qi}): Ditto.
29061 (*rep_stos{si,qi}): Ditto.
29062 (*cmpstrnqi_nz_1): Ditto.
29063 (*cmpstrnqi_1): Ditto.
29064 (*strlenqi_1): Ditto.
29066 2012-03-07 H.J. Lu <hongjiu.lu@intel.com>
29068 * config/i386/i386.c (function_value_64): Return pointers in
29069 word_mode instead of Pmode.
29070 (ix86_promote_function_mode): Likewise.
29072 2012-03-07 Richard Guenther <rguenther@suse.de>
29074 * coverage.c (get_gcov_type): Use type_for_mode.
29075 (get_gcov_unsigned_t): Likewise.
29076 * expr.c (store_constructor): Use type_for_mode.
29077 (try_casesi): Likewise.
29078 * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
29079 (add_standard_iv_candidates): Use standard type trees.
29080 * dojump.c (do_jump): Remove dead code.
29082 2012-03-07 Richard Guenther <rguenther@suse.de>
29084 * c-typeck.c (pointer_diff): Use c_common_type_for_size.
29086 2012-03-07 Richard Guenther <rguenther@suse.de>
29088 * convert.c (strip_float_extensions): Move ...
29089 * tree.c (strip_float_extensions): ... here.
29091 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
29094 * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
29096 2012-03-07 Richard Guenther <rguenther@suse.de>
29098 * omp-low.c (extract_omp_for_data): Use signed_type_for.
29099 (expand_omp_for_generic): Likewise.
29100 (expand_omp_for_static_nochunk): Likewise.
29101 (expand_omp_for_static_chunk): Likewise.
29102 * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
29103 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
29104 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
29105 Use unsigned_type_for.
29106 (vect_create_cond_for_align_checks): Use signed_type_for.
29108 2012-03-07 Andrey Belevantsev <abel@ispras.ru>
29110 PR rtl-optimization/52203
29111 * sel-sched.c (estimate_insn_cost): New parameter pempty. Adjust
29112 all callers to pass NULL except ...
29113 (reset_sched_cycles_in_current_ebb): ... here, save the value
29114 in new variable 'empty'. Increase issue_rate only for
29117 2012-03-07 Ralf Corsépius <ralf.corsepius@rtems.org>
29120 * Makefile.in: Let install-gcc-ar depend on installdirs,
29121 gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
29122 Don't double canonicalize if cross-compiling.
29124 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
29127 * config/avr/avr.c (expand_epilogue): Fix order of restoration
29128 to: RAMPZ, RAMPY, RAMPX, RAMPD.
29129 (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
29131 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
29134 * config/avr/avr.c (avr_out_xload): Don't read unintentionally
29136 * config/avr/avr.md (xload_8): Adjust insn length.
29138 2012-03-07 Georg-Johann Lay <avr@gjlay.de>
29141 * config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
29142 if RAMPZ affects reading from RAM.
29144 2012-03-07 Richard Guenther <rguenther@suse.de>
29148 * doc/invoke.texi (Precompiled Headers): Remove sentence that
29149 suggests you can include PCHs from inside another header.
29151 2012-03-07 Richard Sandiford <rdsandiford@googlemail.com>
29153 PR middle-end/52515
29154 * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
29156 2012-03-07 Kai Tietz <ktietz@redhat.com>
29158 * doc/invoke.texi (fwritable-relocated-rdata): Document
29159 new Cygwin/MinGW target option.
29160 * config/i386/winnt.c (i386_pe_unique_section): Ignore
29161 reloc if flag -fwritable-relocated-rdata is not set.
29162 (i386_pe_section_type_flags): Likewise.
29163 * config/i386/cygming.opt (fwritable-relocated-rdata):
29164 Add new flag variable flag_writable_rel_rdata.
29166 2012-03-07 Richard Guenther <rguenther@suse.de>
29168 * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
29169 precision against gimple constraints.
29171 2012-03-06 Richard Sandiford <rdsandiford@googlemail.com>
29173 PR middle-end/52372
29174 * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
29176 (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
29177 * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
29179 (init_emit_regs): Move associated initialization to...
29180 (init_emit_once): ...here.
29182 2012-03-06 Richard Henderson <rth@redhat.com>
29184 * config/m68k/m68k.h (ISA_HAS_TAS): New.
29185 * config/m68k/sync.md (atomic_test_and_set): Use it.
29186 (atomic_test_and_set_1): Likewise.
29188 2012-03-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29191 * config/rs6000/vector.md (vector_uneq<mode>): Add support for
29192 UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
29193 (vector_ltgt<mode>): Likewise.
29194 (vector_ordered<mode>): Likewise.
29195 (vector_unordered<mode>): Likewise.
29196 * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
29198 2012-03-06 Aldy Hernandez <aldyh@redhat.com>
29200 * trans-mem.c: New typedef for tm_region_p.
29201 Define vector types for tm_region_p.
29202 (tm_region_init): Replace region_worklist to a vector called
29205 2012-03-06 Richard Guenther <rguenther@suse.de>
29207 * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
29208 MEM_REF with constant pointer operand.
29210 2012-03-06 Richard Guenther <rguenther@suse.de>
29212 PR middle-end/52493
29213 * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
29215 2012-03-06 Tristan Gingold <gingold@adacore.com>
29217 * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
29218 (external_model_kind): Improve documentation.
29219 (vms_pragma_extern_model): Handle relaxed_redef.
29220 (vms_c_register_pragma): Allow expansion for nomember_alignment.
29222 2012-03-06 Georg-Johann Lay <avr@gjlay.de>
29224 * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
29225 Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
29226 Some more notes on EIND usage and reorder EIND subsection.
29228 2012-03-06 Tristan Gingold <gingold@adacore.com>
29230 * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
29231 * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
29233 2012-03-06 Tristan Gingold <gingold@adacore.com>
29235 * config/vms/t-vmsnative (version): Define.
29236 * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
29238 2012-03-06 Andrey Belevantsev <abel@ispras.ru>
29240 PR rtl-optimization/52250
29241 * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
29242 to put note list into. Unconditionally call move_bb_info.
29243 (move_bb_info): Do not assert the blocks being in the same region,
29244 just drop the note list if they are not.
29246 2012-03-06 Oleg Endo <olegendo@gcc.gnu.org>
29249 * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
29250 and use unified expansion logic.
29251 * config/sh/sh.md (xorsi3_movrt): Rename to movrt. Move
29252 closer to the existing movt insn.
29253 (negc): Rename insn to *negc. Add new expander.
29254 (movnegt): Use xor pattern for T bit negation. Reserve helper
29255 constant for negc pattern.
29256 (*movnegt): New insn and splitter.
29258 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
29260 * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
29263 2012-03-05 Richard Henderson <rth@redhat.com>
29265 * genemit.c (main): Include "target.h" in insn-emit.c.
29266 * Makefile.in (insn-emit.o): Depend on TARGET_H.
29267 * config/sh/sync.md (atomic_test_and_set): Reference
29268 targetm.atomic_test_and_set_trueval instead of
29269 TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
29271 2012-03-05 Joern Rennecke <joern.rennecke@embecosm.com>
29273 * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
29276 2012-03-05 Steven Bosscher <steven@gcc.gnu.org>
29278 * langhooks.c (add_builtin_type): New function.
29279 * langhooks.h (add_builtin_type): Export it.
29280 * config/mep/mep.c (mep_init_builtins): Use it.
29281 * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
29283 2012-03-05 Jakub Jelinek <jakub@redhat.com>
29286 * tree.h (BLOCK_SAME_RANGE): Define.
29287 * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
29288 if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
29289 Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
29290 isn't equal to supercontext fragment's fragment chain.
29291 Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
29293 (blocks_nreverse_all): Likewise.
29294 (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits. Set
29295 BLOCK_SUPERCONTEXT to supercontext fragment instead of
29296 supercontext fragment's fragment origin.
29297 * dwarf2out.c (add_high_low_attributes): If stmt has the same
29298 range as its parent (or parents thereof etc.), use the parent's
29299 DW_AT_ranges value instead of creating a new .debug_ranges range.
29301 2012-03-05 Richard Henderson <rth@redhat.com>
29304 Revert: 2011-11-26 Richard Henderson <rth@redhat.com>
29305 * omp-low.c (expand_omp_atomic): Assume anything aligned to
29306 BIGGEST_ALIGNMENT is aligned.
29308 2012-03-05 Richard Henderson <rth@redhat.com>
29310 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
29311 * config/sh/sh.c: ... here.
29313 2012-03-05 Richard Henderson <rth@redhat.com>
29316 * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
29317 instead of calling negqi2 directly.
29319 2012-03-05 Aldy Hernandez <aldyh@redhat.com>
29321 PR middle-end/52463
29322 * trans-mem.c (tm_region_init): Use last_basic_block.
29324 2012-03-05 Oleg Endo <olegendo@gcc.gnu.org>
29326 * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
29327 * config/sh/sync.md (atomic_test_and_set): New expander.
29328 (tasb, atomic_test_and_set_soft): New insns.
29329 * config/sh/sh.opt (menable-tas): New option.
29330 * doc/invoke.texi (SH Options): Document it.
29332 2012-03-05 Richard Guenther <rguenther@suse.de>
29334 * cfgloop.c (verify_loop_structure): Verify dominators before
29336 * graphite-clast-to-gimple.c (graphite_verify): Do not verify
29337 dominators from here.
29338 * graphite-scop-detection.c (create_sese_edges): Likewise.
29339 * loop-doloop.c (doloop_optimize_loops): Likewise.
29340 * loop-init.c (loop_optimizer_init): Likewise.
29341 * loop-unroll.c (unroll_and_peel_loops): Likewise.
29342 * loop-unswitch.c (unswitch_loops): Likewise.
29343 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
29344 * tree-parloops.c (parallelize_loops): Likewise. Verify
29345 only when checking is enabled.
29346 * tree-loop-distribution.c (tree_loop_distribution): Likewise.
29348 2012-03-05 Bernd Schmidt <bernds@codesourcery.com>
29350 * genautomata.c (parse_automata_opt): New static function.
29351 (initiate_automaton_gen): Remove all option handling code. Remove
29352 argc argument. All callers changed.
29353 (main): Call init_rtx_reader_args_cb with the new function as argument.
29355 2012-03-05 Richard Guenther <rguenther@suse.de>
29357 * cfgexpand.c (gimple_expand_cfg): Free dominator info.
29358 * tree-if-conv.c (combine_blocks): Free post-dominator info
29360 * tree-parloops.c (create_parallel_loop): Free and re-compute
29361 dominator info after breaking it.
29363 2012-03-05 Richard Guenther <rguenther@suse.de>
29365 PR middle-end/52353
29366 * optabs.h (trapv_unoptab_p): New function.
29367 (trapv_binoptab_p): Likewise.
29368 * optabs.c (expand_binop): Use emit_libcall_block_1 with
29369 a proper equiv_may_trap argument.
29370 (expand_unop): Likewise.
29371 (emit_libcall_block_1): Take extra argument whether the
29372 instruction may trap. Renamed from ...
29373 (emit_libcall_block): ... this. New wrapper.
29375 2012-03-05 Jakub Jelinek <jakub@redhat.com>
29377 PR tree-optimization/51721
29378 * tree-vrp.c (register_edge_assert_for_2): If comparing
29379 lhs of right shift by constant with an integer constant,
29380 add ASSERT_EXPRs for the rhs1 of the right shift.
29382 * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
29384 2012-03-05 Richard Guenther <rguenther@suse.de>
29386 * tree.c (integer_zerop): Handle VECTOR_CSTs.
29387 (integer_onep): Likewise.
29388 (integer_all_onesp): Likewise.
29390 2012-03-05 Georg-Johann Lay <avr@gjlay.de>
29392 * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
29394 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
29396 * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
29397 instead of TARGET_64BIT.
29399 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
29401 * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
29404 2012-03-04 H.J. Lu <hongjiu.lu@intel.com>
29406 * config/i386/i386.c (ix86_print_operand_address): Only handle
29407 zero-extended DImode addresses.
29409 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
29411 * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
29412 taken and cputaken as bool.
29414 2012-03-04 Uros Bizjak <ubizjak@gmail.com>
29416 * config/i386/constraints.md (Ya): New internal constraint.
29417 * config/i386/i386.md (zero_extendsidi2): Remove expansion.
29418 (*zero_extendsidi2_rex64): Add x,x alternative.
29419 (*zero_extendsidi2): Ditto. Add o,0 alternative.
29420 Remove flags reg clobber. Adjust corresponding splits.
29421 (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
29422 zero_extendqisi2 expanders using SWI12 mode iterator.
29423 (zero_extend<mode>si2_and): Macroize insn from
29424 zero_extendhisi2_and and zero_extendqisi2_and. Merge corresponding
29426 (*zero_extend<mode>si2): Macroize insn from
29427 *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
29428 (*zero_extend*2_movzbl_and): Remove insn patterns.
29429 (zero_extendqihi2_and): Merge corresponding splitter.
29430 (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
29431 (*zero_extend*2_movzbl_and): Remove insn patterns.
29432 (*anddi_1): Split TYPE_IMOVX instructions.
29433 (*andsi_1): Use Ya for alternative 2. Split TYPE_IMOVX instructions.
29435 (and->zext splitter): Add splitter pattern.
29436 (zero extend with andsi3 splitter): Adjust zero_extend pattern.
29438 2012-03-04 Sandra Loosemore <sandra@codesourcery.com>
29440 * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
29442 (Debugging Options): Likewise.
29443 (Optimize Options): Likewise.
29444 (i386 and x86-64 Options): Discuss -march before -mtune, consistently
29445 with other architectures. Use official processor names with correct
29446 spelling/capitalization. Fix formatting and grammar issues.
29447 (i386 and x86-64 Windows Options): Similar cleanup here.
29449 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29451 * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
29453 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29455 * config/sh/sh.c (sh_dwarf_register_span): Don't apply
29456 DBX_REGISTER_NUMBER.
29458 2012-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
29460 * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
29461 operand is CONST_INT. Take COSTS_N_INSNS into account.
29462 (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
29465 2012-03-02 Richard Henderson <rth@redhat.com>
29467 * optabs.c (expand_atomic_test_and_set): Honor
29468 atomic_test_and_set_trueval even when atomic_test_and_set
29469 optab is not in use.
29471 2012-03-02 Kaz Kojima <kkojima@gcc.gnu.org>
29475 * config/sh/sh.c (sh_register_move_cost): Increase cost between
29476 GENERAL_REGS and FP_REGS for SImode.
29478 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
29481 * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
29482 (absdi2): New expander.
29483 (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
29485 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
29487 * config/sh/sync.md (atomic_exchange<mode>): New expander.
29488 (atomic_exchange<mode>_soft): New insn.
29490 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
29492 * config/sh/sync.md: Update copyright notice dates.
29493 (atomic_compare_and_swap<mode>): Use SImode for return value instead
29495 (atomic_compare_and_swap<mode>_soft): Likewise.
29497 2012-03-02 Oleg Endo <olegendo@gcc.gnu.org>
29500 * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
29501 * config/sh/sh.c: Update copyright notice dates.
29502 (sh_loop_align): Add logic from LOOP_ALIGN. Don't disable loop
29503 alignment for TARGET_HARD_SH4.
29504 (sh_option_override): Reduce default function alignment. Set
29505 loop alignment to 4 bytes when not optimizing for size.
29507 2012-03-02 Maxim Kuvyrkov <maxim@codesourcery.com>
29509 PR middle-end/50335
29510 * doc/invoke.texi (floop-flatten): Remove.
29511 * toplev.c (process_options): Remove references to flag_loop_flatten.
29512 * tree-ssa-loop.c (gate_graphite_transform): Same.
29513 * common.opt (floop-flatten): Obsolete.
29514 * graphite-poly.c (apply_poly_transforms): Remove reference to
29516 * Makefile.in (graphite-flattening.o): Remove.
29517 * graphite-flattening.c: Remove.
29519 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
29521 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
29522 having mode compatible with the mode of previous compare. Substitute
29523 compare mode of previous compare with the mode, compatible
29524 with eliminated and previous compare.
29526 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
29528 * config/rs6000/dfp.md (floatdidd2): New define_insn.
29530 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
29532 * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
29533 compatible with CCGOCmode and CCGCmode.
29535 2012-03-02 Peter Bergner <bergner@vnet.ibm.com>
29537 * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
29539 2012-03-02 Ulrich Weigand <ulrich.weigand@linaro.org>
29541 * config/arm/arm.c (arm_sat_operator_match): New function.
29542 * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
29543 * config/arm/arm.md ("insn" attribute): Add "sat" value.
29544 ("SAT", "SATrev"): New code iterators.
29545 ("SATlo", "SAThi"): New code iterator attributes.
29546 ("*satsi_<SAT:code>"): New pattern.
29547 ("*satsi_<SAT:code>_shift"): Likewise.
29548 * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
29549 and "shift" attributes.
29550 ("arm_usatsihi"): Add "insn" attribute.
29551 * config/arm/predicates.md (sat_shift_operator): Allow multiplication
29552 by powers of two. Do not allow shift by 32.
29554 2012-03-02 Uros Bizjak <ubizjak@gmail.com>
29557 * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
29558 to pass the argument in the register of "natural" mode.
29560 2012-03-02 Richard Guenther <rguenther@suse.de>
29562 PR tree-optimization/52406
29563 * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
29564 (struct indices): Add unconstrained_base member.
29565 (struct dr_alias): Remove unused vops member.
29566 (DR_UNCONSTRAINED_BASE): New define.
29567 * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
29568 add indices to allow their disambiguation. Make DR_BASE_OBJECT
29569 be an artificial access that covers the whole indexed object,
29570 or mark it with DR_UNCONSTRAINED_BASE if we cannot do so. Canonicalize
29571 plain decl base-objects to their MEM_REF variant.
29572 (dr_may_alias_p): When the base-object of either data reference
29573 has unknown size use only points-to information.
29574 (compute_affine_dependence): Make dumps easier to read and
29576 * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
29577 DR_REF when looking for packed references.
29578 (vect_supportable_dr_alignment): Likewise.
29580 2012-03-02 Greta Yorsh <Greta.Yorsh@arm.com>
29582 * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
29583 Improve conditions for peepholes of loads followed by commutative
29585 * config/arm/ldmstm.md: Regenerated.
29587 2012-03-02 Richard Guenther <rguenther@suse.de>
29589 * BASE-VER: Set to 4.8.0.
29591 2012-03-01 Richard Earnshaw <rearnsha@arm.com>
29593 * config.gcc (obsolete): Add all ARM targets using the FPA.
29594 (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
29595 * doc/install.texi: Avoid references to obsolete ARM ports.
29597 2012-03-01 Joern Rennecke <joern.rennecke@embecosm.com>
29599 * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
29601 2012-03-01 Jeremy Bennett <jeremy.bennett@embecosm.com>
29602 Joern Rennecke <joern.rennecke@embecosm.com>
29604 * doc/extend.texi: Expand and update information on interrupt
29605 attribute for Epiphany.
29607 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
29609 * config/sh/sh-protos.h: Update copyright notice dates.
29610 * config/sh/sh.h: Likewise.
29611 * config/sh/sh.md: Likewise.
29612 * config/sh/constraints.md: Likewise.
29613 * config/sh/predicates.md: Likewise.
29615 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
29617 * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
29618 * config/sh/sh.c (tertiary_reload_operand): Likewise.
29620 2012-03-01 Oleg Endo <olegendo@gcc.gnu.org>
29622 * config/sh/constraints.md: Fix comment typo.
29624 2012-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29627 * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
29628 unsigned HOST_WIDE_INT.
29629 (zvdep_imm64): Likewise.
29630 (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
29631 (vdepi_and): Likewise.
29632 Likewise for unamed 64-bit patterns.
29633 * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
29635 2012-03-01 Alexandre Oliva <aoliva@redhat.com>
29638 PR rtl-optimization/52417
29639 * cselib.c (cselib_any_perm_equivs): New variable.
29640 (cselib_reset_table): Check that it's not set when not
29641 preserving constants.
29642 (cselib_add_permanent_equiv): Set it.
29643 (cselib_have_permanent_equivalences): New.
29644 (cselib_init, cselib_finish): Reset it.
29645 * cselib.h (cselib_have_permanent_equivalences): Declare.
29646 * alias.c (get_addr): Restore earlier behavior when there
29647 aren't permanent equivalences.
29649 2012-03-01 Steven Bosscher <steven@gcc.gnu.org>
29651 * config/mn10300/mn10300-modes.def: Fix copyright notice.
29652 * config/v850/v850-modes.def: Fix copyright notice.
29654 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
29656 * doc/extend.texi (AVR Built-in Functions): Document
29657 __builtin_avr_flash_segment.
29659 * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
29660 * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
29661 (*split.flash_segment): New insn-and-split.
29662 * config/avr/avr.c (avr_init_builtins): Add local variables:
29663 const_memx_void_node, const_memx_ptr_type_node,
29664 char_ftype_const_memx_ptr.
29666 2012-03-01 Jakub Jelinek <jakub@redhat.com>
29668 PR tree-optimization/52445
29669 * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
29670 add ssa_name_ver, offset and size fields and change store field
29672 (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
29673 (add_or_mark_expr): Likewise. Only consider previous stores
29674 with the same size and offset.
29675 (nt_init_block): Only look at gimple_assign_single_p stmts,
29676 doesn't look at rhs2.
29678 2012-03-01 Richard Guenther <rguenther@suse.de>
29680 PR middle-end/52443
29681 * tree-cfg.c (verify_gimple_assign_unary): Allow any
29682 conversions from integral types to pointer types.
29684 2012-03-01 Georg-Johann Lay <avr@gjlay.de>
29686 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
29687 defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
29688 unintentionally removed in r184616.
29690 2012-03-01 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29692 * doc/invoke.texi: Document AMD bdver2 and remove mentioning
29695 2012-02-29 Jakub Jelinek <jakub@redhat.com>
29696 Uros Bizjak <ubizjak@gmail.com>
29699 * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
29700 alternatives, add "e" constraint to the new last alternative
29701 and ! to last 3 alternatives.
29703 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
29705 * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
29706 DW_AT_artificial attributes at the end of the processing.
29707 (gen_array_type_die): Likewise.
29708 (gen_enumeration_type_die): Likewise.
29709 (gen_struct_or_union_type_die): Likewise.
29710 (add_gnat_descriptive_type_attribute): Do not suppress debug info for
29713 2012-02-29 Jakub Jelinek <jakub@redhat.com>
29715 PR middle-end/52419
29716 * expr.c (expand_assignment): If doing misaligned store that doesn't
29717 cover all mode bits, perform a RMW cycle.
29719 PR tree-optimization/52429
29720 * tree-parloops.c (separate_decls_in_region_debug): Return early
29721 if var is LABEL_DECL.
29723 2012-02-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29725 PR tree-optimization/52424
29726 * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
29727 calling dom_thread_across_edge.
29729 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
29731 * config/avr/avr.c: Move definition of TARGET macros to end of file.
29733 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
29735 * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
29736 * config/avr/avr.c (avr_output_bld): Remove unused function.
29737 (avr_out_sbxx_branch): Use "%T" to print bit position.
29739 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
29741 * config/avr/avr.md: Untabify.
29743 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
29745 * config/avr/avr.md (eqne): New code iterator.
29746 (*dec-and-branchsi): Use it in text peephole's condition.
29747 (*dec-and-branchhi): Ditto.
29748 (*dec-and-branchqi): Ditto.
29750 2012-02-29 Georg-Johann Lay <avr@gjlay.de>
29753 * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
29754 the device does not have the skip-bug.
29756 2012-02-29 Oleg Endo <olegendo@gcc.gnu.org>
29758 * doc/invoke.texi (-msoft-atomic): Add more detailed description.
29759 (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
29760 -mpretend-cmove): New.
29762 2012-02-29 Jakub Jelinek <jakub@redhat.com>
29765 * df.h (struct df_d): Adjust comment that hard_regs_live_count
29766 doesn't count DEBUG_INSN refs.
29767 * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
29768 for DEBUG_INSN refs.
29770 2012-02-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
29774 2012-02-20 Richard Guenther <rguenther@suse.de>
29775 PR tree-optimization/52298
29776 * tree-vect-stmts.c (vectorizable_load): Properly use
29777 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
29779 2012-02-28 Aldy Hernandez <aldyh@redhat.com>
29781 PR middle-end/51752
29782 * gimple.h (gimple_in_transaction): New.
29783 (gimple_set_in_transaction): New.
29784 (struct gimple_statement_base): Add in_transaction field.
29785 * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
29787 (tree_ssa_lim_initialize): Compute transaction bits.
29788 * tree.h (compute_transaction_bits): Protoize.
29789 * trans-mem.c (tm_region_init): Use the heap to store BB
29791 (compute_transaction_bits): New.
29793 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29795 * gcc.c (display_help): Document --help=common and sort entries
29798 2012-02-28 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29800 * doc/install.texi: Document check-$LANG specific shortcuts
29802 2012-02-28 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
29805 * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
29807 * config/arm/arm_neon.h: Regenerate.
29808 * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
29809 (neon_vcgeu): New insn.
29810 (neon_vcgtu): Likewise.
29811 * config/arm/neon.ml (s_8_32, u_8_32): New lists.
29812 (ops): Unsigned comparison intrinsics call a different builtin.
29814 2012-02-28 Richard Guenther <rguenther@suse.de>
29817 * config/i386/i386.c (ix86_expand_vector_set): Fix element
29818 ordering for the VEC_CONCAT for two element vectors for
29819 V2SFmode, V2SImode and V2DImode.
29821 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
29824 * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
29825 detecting big-endian triplets.
29827 2012-02-28 Richard Earnshaw <rearnsha@arm.com>
29829 * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
29830 mode if there is no type information available.
29832 2012-02-28 Thomas Koenig <tkoenig@gcc.gnu.org>
29834 PR tree-optimization/53207
29835 * doc/invoke.texi: Document as experimental and relying on graphite.
29837 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
29839 * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
29840 of initializer to changes from r184614.
29842 2012-02-28 Richard Guenther <rguenther@suse.de>
29844 PR tree-optimization/52395
29845 * tree-sra.c (build_ref_for_offset): Also look at the base
29846 TYPE_ALIGN when figuring out the alignment of the replacement.
29848 2012-02-28 Richard Guenther <rguenther@suse.de>
29850 PR tree-optimization/52402
29851 * ipa-prop.c (ipa_modify_call_arguments): Properly use
29852 mis-aligned types when creating the accesses at the call site.
29854 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
29856 * config/avr/builtins.def: New file.
29857 * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
29858 * config/avr/avr.c (enum avr_builtin_id): Use it.
29859 (avr_init_builtins): Use it. And use avr_bdesc.
29860 (bdesc_1arg): Remove.
29861 (bdesc_2arg): Remove.
29862 (bdesc_3arg): Remove.
29863 (struct avr_builtin_description): Add field n_args.
29864 (avr_bdesc): New static variable using builtins.def.
29865 (avr_expand_builtin): Use it.
29866 Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
29867 (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
29868 Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
29870 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
29873 * config/avr/avr.md (movmem_<mode>): Replace match_operand that
29874 match only one single hard register with respective hard reg rtx.
29875 (movmemx_<mode>): Ditto.
29876 * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
29877 insn anatomy of movmem[x]_<mode>.
29878 (avr_out_movmem): Same for printing assembler and operand usage.
29880 2012-02-28 Georg-Johann Lay <avr@gjlay.de>
29884 * doc/extend.texi (AVR Named Address Spaces): No more try to fix
29885 address spaces located outside of device flash.
29887 * config/avr/avr.h (base_arch_s): Remove field n_segments.
29888 (mcu_type_s): Add field n_flash.
29889 * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
29890 Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
29891 (AVR_MCU): Add N_FLASH argument.
29892 * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
29893 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
29894 macro __FLASH<n> if that address space makes sense for the device.
29895 * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
29896 outside of target flash.
29897 (avr_asm_named_section): Ditto.
29898 (avr_asm_select_section): Ditto.
29899 (avr_addr_space_convert): Ditto.
29900 (avr_emit_movmemhi): Ditto.
29901 (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
29902 address space is outside of device flash.
29903 (avr_insert_attributes): Ditto.
29904 (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
29905 avr_current_arch->n_segments.
29907 2012-02-27 H.J. Lu <hongjiu.lu@intel.com>
29910 * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
29911 (*movabs<mode>_2): Likewise.
29913 2012-02-27 Jakub Jelinek <jakub@redhat.com>
29916 * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
29917 s_register_operand in the test instead of REG_P. Don't call
29918 gen_reg_rtx if it won't be used.
29920 PR tree-optimization/52376
29921 * ipa-split.c (split_function): Ignore CLOBBER stmts.
29923 2012-02-27 Stuart Henderson <shenders@gcc.gnu.org>
29925 * ifcvt.c (noce_get_condition): Check condition variable is not
29926 small_register_classes_for_mode_p before accepting.
29928 2012-02-27 Uros Bizjak <ubizjak@gmail.com>
29930 * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
29932 2012-02-27 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
29935 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
29936 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
29938 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
29940 2012-02-27 Oleg Endo <olegendo@gcc.gnu.org>
29942 * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
29944 2012-02-26 Oleg Endo <olegendo@gcc.gnu.org>
29946 * config/sh/predicates.md: Remove blank lines.
29947 * config/sh/sh.c: Fix typos in comments.
29948 * config/sh/constraints.md: Likewise.
29949 * config/sh/sh.md: Remove blank lines.
29950 Fix typos in comments. Use ;; as comment characters.
29952 2012-02-26 Walter Lee <walt@tilera.com>
29954 * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
29955 (replace_mov_pcrel_step2): Ditto.
29957 2012-02-25 Alexandre Oliva <aoliva@redhat.com>
29960 * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
29961 (get_addr): Walk canonical value's locs. Avoid returning VALUEs
29962 and locs that reference values newer than the non-canonical value
29963 at hand. Return the canonical value as a worst case.
29964 (memrefs_conflict_p): Walk canonical value's locs.
29967 * cselib.c (preserve_only_constants): Rename to...
29968 (preserve_constants_and_equivs): ... this. Split out...
29969 (invariant_or_equiv_p): ... this. Preserve plus expressions
29970 of other preserved expressions too.
29971 (cselib_reset_table): Adjust.
29972 * var-tracking.c (reverse_op): Use canonical value to build
29975 2012-02-23 Kai Tietz <ktietz@redhat.com>
29977 * config/i386/i386.c (ix86_delegitimize_address): Handle
29978 UNSPEC_PCREL plus displacement.
29980 2012-02-24 Georg-Johann Lay <avr@gjlay.de>
29983 * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
29984 to test for unusedness in st X addressing.
29986 2012-02-24 Richard Guenther <rguenther@suse.de>
29988 PR middle-end/52361
29989 * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
29990 (is_gimple_reg_type): Move inline ...
29991 * gimple.h (is_gimple_reg_type): ... here.
29993 2012-02-24 Richard Guenther <rguenther@suse.de>
29995 PR middle-end/52361
29996 * passes.c (execute_function_todo): When verifying SSA form
29997 verify gimple form first.
29998 * tree-ssa.c (verify_ssa): Do not verify gimple form here.
30000 2012-02-24 Richard Guenther <rguenther@suse.de>
30002 PR middle-end/52355
30003 * fold-const.c (fold_addr_of_array_ref_difference): New function.
30004 (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
30006 2012-02-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30008 * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
30010 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30012 * tree-phinodes.c (make_phi_node): Mark static.
30013 * tree-flow.h (make_phi_node): Remove extern decl.
30014 * doc/gimple.texi (make_phi_node): Remove documentation.
30016 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30018 * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
30019 * tree-ssa-sccvn.c (print_scc): Ditto.
30021 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30023 * doc/passes.texi (Full redundancy elimination): Fix typo.
30025 2012-02-23 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30027 * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
30029 2012-02-23 Eric Botcazou <ebotcazou@adacore.com>
30032 * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
30034 2012-02-23 Uros Bizjak <ubizjak@gmail.com>
30037 * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
30039 2012-02-23 Georg-Johann Lay <avr@gjlay.de>
30041 * config/avr/avr.md (code_stdname): Add ior, xor.
30042 (xior): New code iterator.
30043 (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
30044 (*<code_stdname><mode>qi.byte1-3): Ditto.
30046 2012-02-23 Jakub Jelinek <jakub@redhat.com>
30048 PR tree-optimization/52019
30049 * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
30052 2012-02-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30054 * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
30055 HAVE_INITFINI_ARRAY to work around namespace pollution in
30056 certain versions of newlib system headers.
30057 * config.in: Regenerate.
30058 * configure: Regenerate.
30059 * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
30060 instead of HAVE_INITFINI_ARRAY.
30062 2012-02-22 Uros Bizjak <ubizjak@gmail.com>
30065 * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
30066 is not offsettable memory reference.
30068 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
30071 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
30072 setting avr_need_clear_bss_p for __gnu_lto* symbols.
30074 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
30076 * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
30077 * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
30079 2012-02-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30081 * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
30082 library on Solaris 8 even without TLS support.
30083 * configure: Regenerate.
30085 2012-02-22 Richard Guenther <rguenther@suse.de>
30087 PR middle-end/52329
30088 * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
30089 for GIMPLE_DEBUG stmts.
30091 2012-02-22 Martin Jambor <mjambor@suse.cz>
30093 PR middle-end/51782
30094 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
30095 according to the base object.
30097 2012-02-22 Georg-Johann Lay <avr@gjlay.de>
30099 PR rtl-optimization/50063
30100 * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
30101 and 2 (8-bit SP) in operand 2.
30102 * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
30103 setup to use movhi_sp_r instead of vanilla move to write SP.
30104 Adjust REG_CFA notes to superseed unspec.
30105 (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
30107 As function body might contain CLI or SEI: Use irq_state 0 (IRQ
30108 known to be off) only with TARGET_NO_INTERRUPTS. Never use
30109 irq_state 1 (IRQ known to be on) here.
30111 2012-02-21 Bernd Schmidt <bernds@codesourcery.com>
30113 * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
30115 * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
30116 assign_hard_reg): Likewise.
30118 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
30120 * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
30122 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
30124 * config/avr/avr.md
30125 (*dec-and-branchhi!=-1.d.clobber): New text peephole.
30126 (*dec-and-branchhi!=-1.l.clobber): New text peephole.
30128 2012-02-21 Georg-Johann Lay <avr@gjlay.de>
30130 * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
30131 prototype from here to...
30132 * config/avr/avr.h: ...here.
30134 2012-02-21 Richard Earnshaw <rearnsha@arm.com>
30137 * thumb2.md (thumb2_shiftsi3_short): Split register and
30138 immediate shifts. For register shifts tie operands 0 and 1.
30139 (peephole2 for above): Check that register-controlled shifts
30140 have suitably tied operands.
30142 2012-02-21 Quentin Neill <quentin.neill@amd.com>
30145 * config/i386/bdver1.md (bdver1_call, bdver1_push,
30146 bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
30147 bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
30148 bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
30149 bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
30150 bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
30151 bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
30152 bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
30153 bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
30154 bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
30155 bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
30156 bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
30157 bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
30158 bdver1_ssevector_avx256_unaligned_load,
30159 bdver1_ssevector_sse128_unaligned_load,
30160 bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
30161 bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
30162 bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
30163 bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
30164 bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
30165 bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
30166 bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
30167 bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
30168 bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
30169 bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
30170 bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
30171 bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
30172 bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
30173 bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
30174 bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
30175 bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
30176 bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
30177 bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
30178 bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
30179 bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
30180 bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
30181 bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
30182 bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
30183 bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
30184 bdver1_ssediv_double_load, bdver1_ssediv_double,
30185 bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
30186 Add "bdver2" attribute.
30188 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30190 * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
30191 default if possible and not specified otherwise.
30193 2012-02-21 Richard Guenther <rguenther@suse.de>
30195 PR middle-end/52314
30196 * gimplify.c (create_tmp_from_val): Use the main variant type
30197 for the type of the temporary we create.
30199 2012-02-21 Richard Guenther <rguenther@suse.de>
30201 PR tree-optimization/52324
30202 * gimplify.c (gimplify_expr): When re-gimplifying expressions
30203 do not gimplify a MEM_REF address operand if it is already
30206 2012-02-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30208 * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
30209 TARGET_HARD_FLOAT with TARGET_HARD_DFP.
30211 2012-02-21 Richard Guenther <rguenther@suse.de>
30213 * tree-vect-stmts.c (vectorizable_load): Use pre-computed
30214 nested_in_vect_loop.
30216 2012-02-21 Jakub Jelinek <jakub@redhat.com>
30218 PR tree-optimization/52318
30219 * gimple-fold.c (gimplify_and_update_call_from_tree): Add
30220 vdef also to non-pure/const call stmts in the sequence.
30222 2012-02-21 Tristan Gingold <gingold@adacore.com>
30224 * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
30226 2012-02-20 David S. Miller <davem@davemloft.net>
30228 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
30229 don't use the "rd %pc" instruction on v9 for PIC register loads.
30231 2012-02-20 Aldy Hernandez <aldyh@redhat.com>
30233 PR middle-end/52141
30234 * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
30235 in a transaction safe function.
30237 2012-02-20 Kai Tietz <ktietz@redhat.com>
30240 * stor-layout.c (place_field): Handle desired_align for
30243 2012-02-20 Richard Guenther <rguenther@suse.de>
30245 PR tree-optimization/52298
30246 * tree-vect-stmts.c (vectorizable_store): Properly use
30247 STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
30249 (vectorizable_load): Likewise.
30250 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
30251 Access DR_STEP after ensuring it is not NULL.
30253 2012-02-20 Jakub Jelinek <jakub@redhat.com>
30255 PR tree-optimization/52286
30256 * fold-const.c (fold_binary_loc): For (X & C1) | C2
30257 optimization use double_int_to_tree instead of build_int_cst_wide,
30258 rewrite to use double_int vars.
30260 2012-02-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30263 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
30265 Remove -e 0 from $gcc_cv_ld invocation.
30266 Only use __GLIBC_PREREQ if defined.
30267 Enable on Solaris since Solaris 8 patch.
30268 (gcc_SUN_LD_VERSION): New macro.
30269 * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
30270 gcc_SUN_LD_VERSION for version number format.
30271 * configure: Regenerate.
30272 * varasm.c (get_elf_initfini_array_priority_section): Set
30273 SECTION_NOTYPE for non-default priority.
30274 Use get_section instead of get_unnamed_section to emit
30275 .init_array/.fini_array with default priority.
30277 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
30279 * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
30280 (mips_get_tp): Set it. Record that __mips16_rdhwr binds locally.
30281 (mips_start_unique_function, mips_output_mips16_rdhwr)
30282 (mips_code_end): New functions.
30283 (TARGET_ASM_CODE_END): Define.
30285 2012-02-19 Richard Sandiford <rdsandiford@googlemail.com>
30287 * config/mips/mips.c (mips16_build_call_stub): Add CFI information
30288 to stubs with non-sibling calls.
30290 2012-02-18 Sandra Loosemore <sandra@codesourcery.com>
30292 * doc/invoke.texi (-fira-* options): Copy-edit.
30293 (ira-* parameters): Copy-edit.
30295 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
30297 * doc/invoke.texi: Minor copy-edits to bring into conformance with
30298 GCC coding conventions.
30300 2012-02-17 Sandra Loosemore <sandra@codesourcery.com>
30302 * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
30303 when used as adjectives.
30305 2012-02-16 Sandra Loosemore <sandra@codesourcery.com>
30307 * doc/invoke.texi: Clean up "that"/"which" confusion.
30309 2012-02-17 Steven Bosscher <steven@gcc.gnu.org>
30311 * system.h: Poison SMALL_REGISTER_CLASSES
30312 * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
30313 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
30315 2012-02-16 Jakub Jelinek <jakub@redhat.com>
30317 PR tree-optimization/52285
30318 * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
30319 when deciding if a call is a tail call or tail recursion.
30321 2012-02-16 Kai Tietz <ktietz@redhat.com>
30323 * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
30324 interger-constant displacement for UNSPEC_PCREL.
30326 2012-02-16 Jakub Jelinek <jakub@redhat.com>
30328 PR rtl-optimization/52208
30329 * ira-costs.c (scan_one_insn): Don't decrease mem_cost
30330 for MEMs with REG_EQUIV, if the MEM isn't general_operand.
30332 PR tree-optimization/52255
30333 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
30334 loop->header has virtual PHI, but exit_e->dest doesn't, add
30335 virtual PHI to exit_e->dest and adjust all uses after the loop.
30338 * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
30339 children with clone_tree_hash, not after it.
30341 2012-02-16 Iain Sandoe <iains@gcc.gnu.org>
30343 * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
30344 extended identifiers.
30346 2012-02-16 Jakub Jelinek <jakub@redhat.com>
30348 PR middle-end/51929
30349 * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
30350 a same_body_alias, also test whether e->callee isn't a former
30351 or current clone of the decl this is a same body alias of.
30353 PR translation/52264
30354 * cgraphunit.c (verify_cgraph_node): Fix a typo.
30356 2012-02-15 Sandra Loosemore <sandra@codesourcery.com>
30358 * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
30360 2012-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
30363 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
30364 force_reg instead of copy_to_reg for better optimization. Force
30365 non-register or memory operands into a register.
30367 2012-02-15 Andrew MacLeod <amacleod@redhat.com>
30369 * extend.texi: Reserve upper bits of memory model for future use.
30371 2012-01-15 Georg-Johann Lay <avr@gjlay.de>
30372 Anatoly Sokolov <aesok@post.ru>
30373 Eric Weddington <eric.weddington@atmel.com>
30376 * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
30377 avrxmega4, avrxmega5, avrxmega6, avrxmega7.
30378 Rewrite initializers for .macro.
30379 * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
30380 avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
30381 atxmega32d4, atxmega32x1.
30382 avrxmega4: atxmega64a3, atxmega64d3.
30383 avrxmega5: atxmega64a1, atxmega64a1u.
30384 avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
30385 atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
30386 avrxmega7: atxmega128a1, atxmega128a1u.
30387 * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
30388 ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
30389 (struct base_arch_s): Rename reserved to xmega_p.
30390 Rename reserved2 to have_rampd.
30391 (AVR_XMEGA): New define.
30392 (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
30393 (AVR_HAVE_RAMPZ): Change definition to fit xmega.
30394 * config/avr/predicates.md (io_address_operand): Take into
30395 account SFR offset.
30396 (low_io_address_operand): Ditto.
30397 (high_io_address_operand): Ditto.
30398 * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
30399 (enabled, movhi_sp_r): Use them.
30400 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
30401 cpp_define_formatted to built-in define __AVR_ARCH__.
30402 (__AVR_XMEGA__): New built-in define.
30403 (__AVR_HAVE_RAMPD__): New built-in define.
30404 (__AVR_HAVE_RAMPX__): New built-in define.
30405 (__AVR_HAVE_RAMPY__): New built-in define.
30406 (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
30408 * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
30409 (avr_option_override): Initialize them.
30410 (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
30411 (avr_init_expanders): Initialize them. No more block several calls.
30412 (emit_push_sfr): New static function.
30413 (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
30415 (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
30416 (avr_print_operand): Print addreeses as symbols for
30417 RAMPX, RAMPY, RAMPD, CCP.
30418 (output_movhi): Handle AVR_XMEGA when writing to SP.
30419 (avr_out_movhi_mr_r_xmega): New static function.
30420 (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
30421 (avr_file_start): Print symbol defines for __RAMPX__, __RAMPY__,
30422 __RAMPD__, __CCP__ as needed.
30424 * config/avr/multilib.h: Regenerate.
30425 * config/avr/t-multilib: Regenerate.
30426 * config/avr/avr-tables.opt: Regenerate.
30428 2012-02-15 Tobias Grosser <grosser@fim.uni-passau.de>
30430 PR tree-optimization/50561
30431 * graphite-flattening.c (lst_project_loop): Do not
30432 remove old scattering dimensions after flattening.
30433 (lst_do_flatten): Likewise.
30435 2012-02-15 Georg-Johann Lay <avr@gjlay.de>
30437 * doc/extend.texi (AVR Built-in Functions): Remove doc for
30438 __builtin_avr_map8, __builtin_avr_map16.
30439 Document __builtin_avr_insert_bits.
30441 * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
30442 (insert_bits): New insn.
30443 (adjust_len.map_bits): Rename to insert_bits.
30444 (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
30445 * avr-protos.h (avr_out_map_bits): Remove.
30446 (avr_out_insert_bits, avr_has_nibble_0xf): New.
30447 * config/avr/constraints.md (Cxf,C0f): New.
30448 * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
30449 defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
30450 New built-in define __BUILTIN_AVR_INSERT_BITS.
30451 * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
30452 (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
30453 (avr_move_bits): Rewrite.
30454 (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
30456 (avr_map_op_t): New typedef.
30457 (avr_map_op): New static variable.
30458 (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
30459 (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
30460 (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
30461 (bdesc_3arg, avr_expand_triop_builtin): New.
30462 (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
30463 (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
30464 (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
30465 (avr_map_equal_p, avr_map_sig_p): Remove.
30466 (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
30467 (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
30468 (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
30469 (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
30470 (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
30471 (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
30473 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
30475 * config/c6x/c6x.md (reserve_cycles): New attribute.
30476 * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
30477 don't reserve functional units after the branch occurs.
30479 2012-02-14 Aldy Hernandez <aldyh@redhat.com>
30481 PR middle-end/52142
30482 * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
30483 functions into non-tm_pure functions.
30485 2012-02-14 Eric Botcazou <ebotcazou@adacore.com>
30488 * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
30489 (iterative_hash_canonical_type): Likewise.
30490 * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
30493 2012-02-14 Bernd Schmidt <bernds@codesourcery.com>
30495 * haifa-sched.c (prune_ready_list): Ensure that if there is a
30496 sched-group insn, it either remains alone or the entire list is pruned.
30498 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
30500 * doc/install.texi (Prerequisites): Fix grammar.
30501 (Configuration): Likewise.
30503 2012-02-14 Jonathan Wakely <jwakely.gcc@gmail.com>
30505 * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
30506 MPC as part of GCC before describing configuring with --with-gmp etc.
30507 (Installing GCC: Configuration): --with-gmp etc. aren't needed if
30508 sources are present.
30510 2012-02-14 Jakub Jelinek <jakub@redhat.com>
30513 * dwarf2out.c (clone_tree_hash): New function.
30514 (copy_decls_walk): Use it instead of clone_tree.
30516 2012-02-14 Richard Guenther <rguenther@suse.de>
30518 PR tree-optimization/52244
30519 PR tree-optimization/51528
30520 * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
30521 replacements for integral types.
30523 2012-02-14 Walter Lee <walt@tilera.com>
30525 * config.gcc: Handle tilegx and tilepro.
30526 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
30527 tilegx and tilepro.
30528 Add HAVE_AS_TLS check for tilegx and tilepro.
30529 * configure: Regenerate.
30530 * doc/contrib.texi: Add Mat Hostetter and self.
30531 * doc/extend.texi (TILE-Gx Built-in Functions): New node.
30532 Document instruction intrinsics and network accessing intrinsics.
30533 (TILEPro Built-in Functions): New node. Document instruction
30534 intrinsics and network accessing intrinsics.
30535 * doc/install.texi (Specific, tilegx-*-linux*): Document it.
30536 (Specific, tilepro-*-linux*): Likewise.
30537 * doc/invoke.texi (TILE-Gx Options): New section.
30538 (TILEPro Options): New section.
30539 * doc/md.texi (TILE-Gx): New section.
30540 (TILEPro): New section.
30541 * common/config/tilegx/tilegx-common.c: New file.
30542 * common/config/tilepro/tilepro-common.c: New file.
30543 * config/tilegx/constraints.md: New file.
30544 * config/tilegx/linux.h: New file.
30545 * config/tilegx/mul-tables.c: New file.
30546 * config/tilegx/predicates.md: New file.
30547 * config/tilegx/sync.md: New file.
30548 * config/tilegx/t-tilegx: New file.
30549 * config/tilegx/tilegx-builtins.h: New file.
30550 * config/tilegx/tilegx-c.c: New file.
30551 * config/tilegx/tilegx-generic.md: New file.
30552 * config/tilegx/tilegx-modes.def: New file.
30553 * config/tilegx/tilegx-multiply.h: New file.
30554 * config/tilegx/tilegx-protos.h: New file.
30555 * config/tilegx/tilegx.c: New file.
30556 * config/tilegx/tilegx.h: New file.
30557 * config/tilegx/tilegx.md: New file.
30558 * config/tilegx/tilegx.opt: New file.
30559 * config/tilepro/constraints.md: New file.
30560 * config/tilepro/gen-mul-tables.cc: New file.
30561 * config/tilepro/linux.h: New file.
30562 * config/tilepro/mul-tables.c: New file.
30563 * config/tilepro/predicates.md: New file.
30564 * config/tilepro/t-tilepro: New file.
30565 * config/tilepro/tilepro-builtins.h: New file.
30566 * config/tilepro/tilepro-c.c: New file.
30567 * config/tilepro/tilepro-generic.md: New file.
30568 * config/tilepro/tilepro-modes.def: New file.
30569 * config/tilepro/tilepro-multiply.h: New file.
30570 * config/tilepro/tilepro-protos.h: New file.
30571 * config/tilepro/tilepro.c: New file.
30572 * config/tilepro/tilepro.h: New file.
30573 * config/tilepro/tilepro.md: New file.
30574 * config/tilepro/tilepro.opt: New file.
30576 2012-02-14 Jakub Jelinek <jakub@redhat.com>
30578 PR tree-optimization/52210
30579 * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
30580 vect_model_simple_cost with two entry vect_def_type array instead
30581 of an address of dt.
30583 2012-02-14 Richard Guenther <rguenther@suse.de>
30586 * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
30587 Do not stream DECL_QUALIFIER.
30588 * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
30589 * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
30590 (find_decls_types_r): Do not walk DECL_QUALIFIER.
30592 2012-02-14 Jakub Jelinek <jakub@redhat.com>
30595 * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
30598 2012-02-13 Jakub Jelinek <jakub@redhat.com>
30601 * cselib.h (cselib_subst_to_values_from_insn): New prototype.
30602 * cselib.c (cselib_subst_to_values_from_insn): New function.
30603 * sched-deps.c (add_insn_mem_dependence,
30604 sched_analyze_1, sched_analyze_2): Use it.
30606 2012-02-13 Jan Hubicka <jh@suse.cz>
30608 PR middle-end/52214
30609 * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
30611 2012-02-13 Eric Botcazou <ebotcazou@adacore.com>
30613 * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
30614 (GTM_SELF_SPECS): Define if not already defined.
30615 (driver_self_specs): Add GTM_SELF_SPECS.
30616 * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
30617 (GTM_SELF_SPECS): Define.
30618 * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
30619 * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
30621 2012-02-13 Jakub Jelinek <jakub@redhat.com>
30623 * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
30626 * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
30628 PR middle-end/52230
30629 * omp-low.c (expand_omp_for): If a static schedule without chunk size
30630 has NULL region->cont, force fd.chunk_size to be integer_zero_node.
30632 2012-02-13 Andrew MacLeod <amacleod@redhat.com>
30635 * doc/extend.texi : Fix another __atomic_compare_exchange typo.
30637 2012-02-13 Richard Guenther <rguenther@suse.de>
30639 PR translation/52211
30640 * passes.c (enable_disable_pass): Fix typo.
30642 2012-02-13 Jakub Jelinek <jakub@redhat.com>
30644 PR middle-end/52209
30645 * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
30646 XOR for reduce_bit_field if type is unsigned.
30648 2012-02-12 Eric Botcazou <ebotcazou@adacore.com>
30650 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
30651 disallow changes from SFmode to mode with different size in FP regs.
30653 2012-02-12 Robert Millan <rmh@gnu.org>
30654 Gerald Pfeifer <gerald@pfeifer.com>
30656 * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
30659 2012-02-11 Richard Sandiford <rdsandiford@googlemail.com>
30661 PR rtl-optimization/52175
30662 * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
30663 to frame-related instructions.
30665 2012-02-10 Jason Merrill <jason@redhat.com>
30668 * tlink.c (demangled_hash_entry): Change mangled to a VEC.
30669 (demangle_new_symbols): Fill it.
30670 (scan_linker_output): Walk it.
30671 (start_tweaking): Split out from scan_linker_output.
30672 (maybe_tweak): Update sym->chosen.
30673 * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
30675 2012-02-11 Jakub Jelinek <jakub@redhat.com>
30678 * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
30680 2012-02-11 Uros Bizjak <ubizjak@gmail.com>
30682 * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
30683 having the same mode as previous compare.
30685 2012-02-10 Eric Botcazou <ebotcazou@adacore.com>
30687 * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
30688 * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
30689 (nonlocal_goto_internal): Likewise.
30690 (nonlocal_goto): Emit a use and an indirect jump directly.
30692 2012-02-10 Andrew MacLeod <amacleod@redhat.com>
30695 * doc/extend.texi : Update comments for __atomic_compare_exchange and
30696 __atomic_{is,always}_lock_free.
30698 2012-02-10 Uros Bizjak <ubizjak@gmail.com>
30701 * config/i386/i386.c (ix86_legitimate_address_p): Disallow
30702 negative constant address for TARGET_X32.
30704 2012-02-10 Richard Henderson <rth@redhat.com>
30706 * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
30707 * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
30708 for GIMPLE_TRANSACTION. Tidy if's into a switch.
30710 2012-02-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30711 Ira Rosen <irar@il.ibm.com>
30713 PR tree-optimization/50031
30714 * targhooks.c (default_builtin_vectorization_cost): Handle
30715 vec_promote_demote.
30716 * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
30717 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
30718 all types of reduction and pattern statements.
30719 (vect_estimate_min_profitable_iters): Likewise.
30720 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
30721 (vect_get_load_cost): Use vec_perm for permutations; add dump logic
30722 for explicit realigns.
30723 (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
30724 * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
30725 vec_promote_demote.
30726 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
30727 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
30728 vec_perm for VSX and handle vec_promote_demote.
30730 2012-02-10 Jakub Jelinek <jakub@redhat.com>
30732 PR middle-end/52177
30733 * builtins.c (fold_builtin_atomic_always_lock_free,
30734 expand_builtin_atomic_always_lock_free,
30735 fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
30736 Return and/or test boolean_true_node/boolean_false_node instead of
30737 integer_one_node/integer_zero_node.
30739 2012-02-10 Jan Hubicka <jh@suse.cz>
30741 PR middle-end/48600
30742 * predict.c (predict_paths_for_bb): Prevent looping.
30743 (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
30745 2012-02-10 Roman Zhuykov <zhroma@ispras.ru>
30747 * config/arm/arm.c (output_move_double): In one case properly
30748 count number of instructions that will be emitted.
30750 2012-02-10 Richard Guenther <rguenther@suse.de>
30752 PR translation/52193
30753 * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
30755 2012-02-09 Peter Bergner <bergner@vnet.ibm.com>
30757 PR middle-end/52140
30758 * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
30760 2012-02-09 Jakub Jelinek <jakub@redhat.com>
30763 * var-tracking.c (emit_note_insn_var_location): If
30764 EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
30765 emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
30766 non-NOTE_DURING_CALL_P insn.
30768 2012-02-09 Bin Cheng <bin.cheng@arm.com>
30770 PR middle-end/51867
30771 * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
30773 2012-02-08 Magnus Granberg <zorry@gentoo.org>
30776 * gcc.c (switch_matches) Support switches with separated form,
30779 2012-02-08 Georg-Johann Lay <avr@gjlay.de>
30781 * config/avr/avr.md (SREG_ADDR): Remove constant definition.
30783 (RAMPZ_ADDR): Ditto.
30784 * config/avr/avr.c (avr_addr_t): New typedef.
30785 (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
30786 (avr_init_expanders): Initialize it.
30787 (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
30789 (expand_epilogue): Ditto.
30790 (avr_print_operand): Ditto.
30791 (avr_file_start): Ditto.
30792 (avr_emit_movmemhi): Ditto.
30794 2012-02-08 Richard Guenther <rguenther@suse.de>
30796 PR tree-optimization/46886
30797 * tree-flow.h (do_while_loop_p): Declare.
30798 * tree-ssa-loop-ch.c (do_while_loop_p): Export.
30799 * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
30801 2012-02-08 Andrew MacLeod <amacleod@redhat.com>
30803 * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
30804 always succeed for integers larger than a native word.
30806 2012-02-08 Richard Guenther <rguenther@suse.de>
30808 PR rtl-optimization/52170
30809 * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
30810 properly handle integer vector modes.
30812 2012-02-08 Jakub Jelinek <jakub@redhat.com>
30814 PR gcov-profile/52150
30815 * coverage.c: Include target.h.
30816 (build_var): Call targetm.strip_name_encoding on the assembler name.
30817 Change one _ into . or $ if the target allows it.
30818 * Makefile.in (coverage.o): Depend on $(TARGET_H).
30820 PR rtl-optimization/52139
30821 * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
30822 is a BARRIER after emit_insn_after_noloc, move BB_END
30823 to the last non-BARRIER insn before it.
30825 2012-02-07 Richard Sandiford <rdsandiford@googlemail.com>
30827 PR middle-end/24306
30828 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
30829 (mips_gimplify_va_arg_expr): Call it instead of
30830 std_gimplify_va_arg_expr.
30832 2012-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
30834 * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
30835 message for -mno-pointers-to-nested-function.
30837 2012-02-07 Eric Botcazou <ebotcazou@adacore.com>
30839 PR middle-end/51994
30840 * expr.c (get_inner_reference): If there is an offset, add a negative
30841 bit position to it (if any).
30843 2012-02-07 Jakub Jelinek <jakub@redhat.com>
30845 PR rtl-optimization/52060
30846 * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
30847 copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
30848 before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
30849 and/or i0src_copy2 when needed.
30851 2012-02-07 Jakub Jelinek <jakub@redhat.com>
30853 * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
30854 or LTOPLUGINSONAME if have_c.
30856 * config/freebsd-spec.h: Add comment about what macros can be defined
30858 (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
30859 * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
30862 2012-02-07 Richard Guenther <rguenther@suse.de>
30864 * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
30865 newline in -alias dumps.
30867 2012-02-07 Kai Tietz <ktietz@redhat.com>
30868 Dave Korn <dave.korn.cygwin@gmail.com>
30871 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
30872 Take care that typinfo gets dllexport-attribute.
30874 2012-02-07 Jakub Jelinek <jakub@redhat.com>
30876 PR middle-end/52074
30877 * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
30878 if modifier < EXPAND_SUM call force_operand on the result.
30880 2012-02-07 Joern Rennecke <joern.rennecke@embecosm.com>
30882 * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
30883 adding __forwarder_dst__ prefix if a forwarder_section attribute is
30885 (epiphany_function_type): Replace types for specific interrupts with
30886 EPIPHANY_FUNCTION_INTERRUPT.
30887 (EPIPHANY_INTERRUPT_P): Update.
30888 * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
30889 New static function.
30890 (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
30891 <disinterrupt>: Affects type identity.
30892 (epiphany_handle_interrupt_attribute): Handle variable number of
30894 (epiphany_compute_function_type): Update for new
30895 epiphany_function_type definition.
30896 (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
30897 handlers with a longcall forwarder.
30898 (epiphany_start_function): Handle multiple interrupt arguments and/or
30899 forwarder_section attribute.
30901 * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
30904 2012-02-07 Alan Modra <amodra@gmail.com>
30907 * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
30910 2012-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30912 PR tree-optimization/50969
30913 * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
30914 use vec_perm rather than vector_stmt.
30915 (vect_model_load_cost): Likewise.
30916 * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
30917 vec_perm to be the same as other vector statements.
30918 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
30919 cost of vec_perm for TARGET_VSX.
30921 2012-02-06 Richard Guenther <rguenther@suse.de>
30923 PR tree-optimization/52115
30924 * tree-sra.c (access_has_replacements_p): New function.
30925 (sra_modify_assign): Use it to decide whether a use is uninitialized.
30927 2012-02-06 Patrick Marlier <patrick.marlier@gmail.com>
30929 PR middle-end/52047
30930 * trans-mem.c (expand_call_tm): Add an assertion.
30931 * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
30934 2012-02-06 Richard Guenther <rguenther@suse.de>
30936 PR tree-optimization/50955
30937 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
30938 raise cost of expressions that replace an address with an
30939 expression based on a different pointer.
30941 2012-02-06 Jakub Jelinek <jakub@redhat.com>
30944 * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
30945 CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
30947 2012-02-06 Jonathan Wakely <jwakely.gcc@gmail.com>
30950 * doc/invoke.texi (C++ Dialect Options): Use @option markup for
30951 -Weffc++ and specify guidelines come from second edition.
30953 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
30955 * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
30956 (sibcall_value_multiple_internal, call_split, call_internal_direct)
30957 (call_direct_split, call_value_split, call_value_internal_direct)
30958 (call_value_direct_split, call_value_multiple_split): Use jal and
30959 jal_macro attributes.
30961 2012-02-05 Richard Sandiford <rdsandiford@googlemail.com>
30963 * reload1.c (reload_regs_reach_end_p): Replace with...
30964 (reload_reg_rtx_reaches_end_p): ...this function.
30965 (new_spill_reg_store): Update commentary.
30966 (emit_input_reload_insns): Don't clear new_spill_reg_store here.
30967 (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
30968 before setting new_spill_reg_store.
30969 (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
30970 Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
30971 Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
30972 for non-spill reload registers.
30974 2012-02-05 Ira Rosen <irar@il.ibm.com>
30976 PR tree-optimization/52091
30977 * tree-vectorizer.h (vect_is_simple_use): Add an argument.
30978 (vect_is_simple_use_1): Likewise.
30979 * tree-vect-loop.c (vectorizable_reduction): Update calls
30980 to vect_is_simple_use_1 and vect_is_simple_use.
30981 (vectorizable_live_operation): Likewise.
30982 * tree-vect-patterns.c (widened_name_p,
30983 vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
30984 * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
30985 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
30986 vectorizable_shift,vectorizable_operation, vectorizable_store,
30987 vectorizable_load): Likewise.
30988 (vect_is_simple_cond): Add an argument, pass it to
30989 vect_is_simple_use_1.
30990 (vectorizable_condition): Update calls to vect_is_simple_cond,
30991 vect_is_simple_use.
30992 (vect_is_simple_use): Add an argument, the statement in which
30993 OPERAND is used. Check that if OPERAND's def stmt is a double
30994 reduction phi node, the use is a phi node too.
30995 (vect_is_simple_use_1): Add an argument, pass it to
30996 vect_is_simple_use.
30997 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
30998 to vect_is_simple_use.
31000 2012-02-04 Jakub Jelinek <jakub@redhat.com>
31002 PR rtl-optimization/52095
31003 * modulo-sched.c (dump_insn_locator): New function.
31004 (loop_canon_p, sms_schedule): Use it.
31006 PR rtl-optimization/52113
31007 * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
31008 even for decomposable shift/zext insns.
31010 2012-02-03 Jakub Jelinek <jakub@redhat.com>
31011 Zdenek Dvorak <ook@ucw.cz>
31013 PR rtl-optimization/52092
31014 * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
31015 on get_iv_value result.
31017 2012-02-02 Andrew Pinski <apinski@cavium.com>
31019 PR middle-end/47982
31020 PR middle-end/43967
31021 * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
31023 2012-02-02 Jakub Jelinek <jakub@redhat.com>
31025 PR middle-end/48071
31026 * diagnostic.c (diagnostic_finish): Remove trailing newlines.
31028 2012-02-02 Vladimir Makarov <vmakarov@redhat.com>
31030 PR rtl-optimization/49800
31031 * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
31032 (sched_finish): Call regstat_free_n_sets_and_refs.
31034 2012-02-02 Jia Liu <proljc@gmail.com>
31036 * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
31039 2012-02-02 Jan Hubicka <jh@suse.cz>
31040 Tom de Vries <tom@codesourcery.com>
31042 PR middle-end/51998
31043 * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
31044 * varpool.c (varpool_analyze_pending_decls): Likewise.
31046 2012-02-02 Sumanth G <sumanth.gundapaneni@kpitcummins.com>
31047 Jayant R Sonar <jayant.sonar@kpitcummins.com>
31049 * config.gcc: Add cr16-* support.
31051 * doc/extend.texi: Document cr16 extensions.
31052 * doc/install.texi: Document cr16 install.
31053 * doc/invoke.texi: Document cr16 options.
31054 * doc/md.texi: Document cr16 constraints.
31056 * common/config/cr16/cr16-common.c: New file.
31057 * config/cr16/cr16.c: New file.
31058 * config/cr16/cr16.h: New file.
31059 * config/cr16/cr16.md: New file.
31060 * config/cr16/cr16.opt: New file.
31061 * config/cr16/cr16-protos.h: New file.
31062 * config/cr16/predicates.md: New file.
31063 * config/cr16/constraints.md: New file.
31064 * config/cr16/t-cr16: New file.
31066 2012-02-02 Jakub Jelinek <jakub@redhat.com>
31069 * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
31070 that operands[2] is either immediate, or q_regs_operand.
31072 PR tree-optimization/52073
31073 * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
31074 a pattern stmt for pattern uses, ignore uses outside of the loop.
31076 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
31078 * config/avr/avr.c: Resolve all AS1 and AS2 macros.
31079 * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
31080 (OUT_AS1, OUT_AS2): Remove.
31082 2012-02-01 Georg-Johann Lay <avr@gjlay.de>
31084 PR rtl-optimization/51374
31085 * combine.c (can_combine_p): Don't allow volatile_refs_p insns
31086 to cross other volatile_refs_p insns.
31088 2012-02-01 Richard Guenther <rguenther@suse.de>
31090 * doc/invoke.texi (fno-inline): Clarify documentation.
31091 (finline-small-functions): Likewise.
31092 (finline-functions): Likewise.
31093 * common.opt (finline): Adjust comment and documentation.
31094 (finline-small-functions): Clarify documentation.
31095 (finline-functions): Likewise.
31096 (finline-functions-called-once): Likewise.
31098 2012-02-01 Tristan Gingold <gingold@adacore.com>
31100 * c-typeck.c (composite_type): Keep mode for pointers.
31102 2012-01-31 Richard Sandiford <rdsandiford@googlemail.com>
31104 * function.h (regno_reg_rtx): Adjust comment.
31105 * reginfo.c (init_reg_modes_target): Only use the previous mode
31106 if it fits within one register. Remove MIPS comment.
31108 2012-01-31 Jakub Jelinek <jakub@redhat.com>
31111 * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
31113 2012-01-31 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31115 * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
31116 to srak instruction.
31118 2012-01-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
31120 * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
31122 2012-01-31 Jakub Jelinek <jakub@redhat.com>
31127 * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
31129 2012-01-31 Richard Guenther <rguenther@suse.de>
31131 PR tree-optimization/51528
31132 * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
31135 2012-01-31 Jakub Jelinek <jakub@redhat.com>
31140 * ree.c (add_removable_extension): Change def_map argument
31141 to unsigned *, store in def_map 1 + offset into *insn_list vector
31142 instead of pointers into the vector.
31143 (find_removable_extensions): Adjust caller.
31145 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
31147 * config/avr/avr.md: Resolve all AS1 and AS2 macros.
31148 Transform all "* quoted-c-code" to { c-code }.
31149 Remove redundant test for "optimize" in combine patterns.
31150 Move (include "avr-dimode.md") to end of file.
31152 2012-01-30 Bin Cheng <bin.cheng@arm.com>
31155 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
31156 for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
31158 2012-01-30 Richard Guenther <rguenther@suse.de>
31160 PR tree-optimization/52028
31161 * tree-loop-distribution.c (ldist_gen): Properly update
31164 2012-01-30 Jakub Jelinek <jakub@redhat.com>
31167 * dwarf2out.c (dwarf2out_switch_text_section): Don't call
31168 set_cur_line_info_table if not emitting debug info.
31170 PR tree-optimization/52046
31171 * tree-vect-patterns.c (check_bool_pattern): Give up if
31172 a comparison could throw.
31175 * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
31177 2012-01-30 Richard Guenther <rguenther@suse.de>
31179 PR tree-optimization/52045
31180 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
31181 SSA form if cfgcleanup did anything.
31183 2012-01-30 Richard Guenther <rguenther@suse.de>
31185 PR tree-optimization/52045
31186 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
31187 before computing final todo.
31189 2012-01-30 Richard Guenther <rguenther@suse.de>
31191 PR tree-optimization/51528
31192 * tree-sra.c (sra_modify_assign): Re-factor in preparation
31195 2012-01-30 Paolo Bonzini <bonzini@gnu.org>
31197 * df-problems.c (df_kill_notes): Check that the use refers
31198 to the note under examination.
31200 2012-01-30 Eric Botcazou <ebotcazou@adacore.com>
31203 * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
31204 parameter and use short-lived pseudos.
31205 (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
31206 (sparc_expand_vector_init): Const-ify local variables and adjust
31207 calls to above functions.
31209 2012-01-30 Georg-Johann Lay <avr@gjlay.de>
31211 * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
31213 2012-01-29 Sandra Loosemore <sandra@codesourcery.com>
31215 * doc/invoke.texi: Make usage of "compile time" and
31216 "run time"/"runtime" consistent throughout the file.
31218 2012-01-29 Uros Bizjak <ubizjak@gmail.com>
31220 * config/alpha/alpha.c (alpha_option_override): Default to
31221 full IEEE compliance mode for Go language.
31223 2012-01-29 Tijl Coosemans <tijl@coosemans.org>
31225 * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
31226 (LINK_SSP_SPEC): Define.
31228 2012-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
31231 * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
31234 2012-01-28 Sandra Loosemore <sandra@codesourcery.com>
31236 * doc/invoke.texi: Correct hyphenation of "floating point",
31237 "double precision", and related terminology throughout the file.
31239 2012-01-28 Jakub Jelinek <jakub@redhat.com>
31242 * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
31243 arm_general_register_operand predicate for operand 2 instead of
31246 2012-01-27 Ian Lance Taylor <iant@google.com>
31249 * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
31250 * builtins.c (expand_builtin_init_trampoline): Add onstack
31251 parameter. Change caller.
31252 (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
31253 * tree.c (build_common_builtin_nodes): Declare
31254 __builtin_init_heap_trampoline.
31256 2012-01-27 Georg-Johann Lay <avr@gjlay.de>
31258 * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
31259 tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
31260 * config/avr/avr.c: Ditto.
31261 (avr_regnames): Remove because unused.
31262 * config/avr/avr.md (*cpse.ne): New peephole.
31263 (*cpse.eq): New peephole from former cpse peepholes.
31265 2012-01-27 Michael Eager <eager@eagercon.com>
31267 * config/microblaze.c (microblaze_emit_compare): Correct
31268 test after pcmp instruction.
31270 2012-01-27 Richard Guenther <rguenther@suse.de>
31272 PR tree-optimization/52020
31273 * tree-sra.c (sra_modify_assign): Do not transform clobbers.
31275 2012-01-27 Richard Guenther <rguenther@suse.de>
31277 * ipa-pure-const.c (check_stmt): Clobbers do not make a
31278 function non-const/pure.
31280 2012-01-27 Richard Guenther <rguenther@suse.de>
31282 PR tree-optimization/50444
31283 * tree-sra.c (build_ref_for_offset): Properly adjust the
31284 MEM_REF type for unaligned accesses.
31286 2012-01-27 Richard Guenther <rguenther@suse.de>
31288 PR tree-optimization/50444
31289 * expr.c (mem_ref_refers_to_non_mem_p): New function.
31290 (expand_assignment): Use it. Properly handle misaligned
31291 bases when expanding stores to component references.
31292 (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
31293 refactor that case.
31295 2012-01-27 Andrey Belevantsev <abel@ispras.ru>
31297 PR middle-end/51389
31298 * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
31299 * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
31300 * tree-data-ref.c (find_data_references_in_loop): Make static.
31301 (compute_all_dependences): Change return type to bool. Bail out
31302 for too many datarefs in a loop. Move the hunk resetting the data
31303 dependences vector from ...
31304 (compute_data_dependences_for_loop): ... here. Account for
31305 compute_all_dependences returning false.
31306 (compute_data_dependences_for_bb): Likewise.
31307 * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
31308 * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
31310 2012-01-27 Richard Guenther <rguenther@suse.de>
31312 PR middle-end/51959
31313 * expr.c (store_field): Use the alias-set of the scratch memory
31316 2012-01-27 Tom de Vries <tom@codesourcery.com>
31318 PR tree-optimization/51990
31319 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
31321 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
31323 2012-01-27 Jakub Jelinek <jakub@redhat.com>
31326 * var-tracking.c (reverse_op): Don't add any reverse operation
31327 if V already has any constant locations.
31329 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
31331 * doc/invoke.texi: Correct usage of "command line" (noun)
31332 vs "command-line" (adjective) throughout.
31334 2012-01-27 Sandra Loosemore <sandra@codesourcery.com>
31336 * doc/invoke.texi (Language Independent Options): Move
31337 -Wcoverage-mismatch blurb from here....
31338 (Warning Options): ...to here.
31340 2012-01-27 Peter Bergner <bergner@vnet.ibm.com>
31342 * config/rs6000/rs6000.c (rs6000_option_override_internal):
31343 Set rs6000_always_hint to false for 476.
31345 2012-01-27 Matthias Klose <doko@ubuntu.com>
31347 * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
31349 * incpath.c (add_standard_paths): Likewise.
31351 2012-01-27 Richard Henderson <rth@redhat.com>
31353 * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
31354 * config/m68k/sync.md (atomic_test_and_set): Rename from
31355 sync_test_and_setqi and adjust the operands.
31356 (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
31357 and unconditionally enable.
31359 2012-01-27 Richard Henderson <rth@redhat.com>
31361 * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
31362 * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
31363 (ldstub): Rename from ldstubqi.
31364 (ldstub<I24MODE>): Remove.
31366 2012-01-27 Richard Henderson <rth@redhat.com>
31368 * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
31369 * c-cppbuiltin.c (cpp_atomic_builtins): Define
31370 __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
31371 * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
31372 * doc/tm.texi: Rebuild.
31374 2012-01-27 Richard Henderson <rth@redhat.com>
31376 * optabs.c (gen_atomic_test_and_set): Remove default.
31377 (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
31379 2012-01-26 Jakub Jelinek <jakub@redhat.com>
31381 PR rtl-optimization/51978
31382 * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
31383 (combine_reaching_defs): Likewise.
31384 (struct re_info): Remove.
31385 (add_removable_extension): Remove x and data arguments,
31386 add insn, insn_list and def_map. Use the arguments directly
31387 instead of using struct re_info.
31388 (find_removable_extensions): Don't call add_removable_extension
31389 through note_stores, instead just call it with single_set
31390 result if non-NULL.
31391 (find_and_remove_re): Pass curr_cand->expr instead of
31392 PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
31394 2012-01-26 Michael Matz <matz@suse.de>
31396 PR tree-optimization/46590
31397 * cfgexpand.c: Revert last change (r183305).
31398 * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
31400 * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
31401 checking for emptiness.
31403 2012-01-26 Jakub Jelinek <jakub@redhat.com>
31405 PR middle-end/51895
31406 * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
31407 non-addressable non-BLKmode base correctly.
31409 2012-01-26 Michael Matz <matz@suse.de>
31411 PR tree-optimization/48794
31412 * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
31413 regions referenced from RESX/EH_DISPATCH.
31415 2012-01-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31417 * config/s390/s390.h: Make BRANCH_COST an option.
31418 * config/s390/s390.opt: New option -mbranch-cost.
31420 2012-01-26 Richard Henderson <rth@redhat.com>
31422 Revert 2012-01-24 change:
31423 * trans-mem.c (requires_barrier): Do not instrument thread local
31424 variables and emit save/restore for them.
31426 2012-01-25 Jakub Jelinek <jakub@redhat.com>
31428 PR middle-end/51986
31429 * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
31432 2012-01-25 Richard Sandiford <rdsandiford@googlemail.com>
31434 * config/mips/mips.c (mips_small_data_pattern_1): Don't process
31437 2012-01-25 Georg-Johann Lay <avr@gjlay.de>
31440 Rename __pgm to __flash.
31441 Rename __pgm1 to __flash1.
31442 Rename __pgm2 to __flash2.
31443 Rename __pgm3 to __flash3.
31444 Rename __pgm4 to __flash4.
31445 Rename __pgm5 to __flash5.
31446 Rename __pgmx to __memx.
31447 * doc/extend.texi (AVR Named Address Spaces)
31448 Rename address space names as indicated above.
31449 * config/avr/avr.c (avr_addrspace): Ditto.
31451 * config/avr/avr-protos.h
31452 (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
31453 (avr_mem_pgm_p): Rename to avr_mem_flash_p.
31454 * config/avr/predicates.md: Ditto.
31455 * config/avr/avr.c Ditto, and
31456 (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
31457 (avr_decl_pgm_p): Rename to avr_decl_flash_p.
31459 * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
31460 (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
31461 (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
31462 (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
31463 (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
31464 (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
31465 (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
31466 * config/avr/avr.c: Ditto.
31467 * config/avr/avr.md: Ditto.
31469 2012-01-25 Jason Merrill <jason@redhat.com>
31472 * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
31474 2012-01-25 Jakub Jelinek <jakub@redhat.com>
31476 PR tree-optimization/51987
31477 * tree-data-ref.c (get_references_in_stmt): Handle references in
31478 non-volatile GIMPLE_ASM.
31480 2012-01-25 Richard Guenther <rguenther@suse.de>
31482 * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
31483 bases are dereferenced.
31485 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
31487 PR rtl-optimization/48374
31488 * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
31490 2012-01-25 Andrey Belevantsev <abel@ispras.ru>
31492 * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
31493 compute_data_dependences_for_loop returns false.
31494 * tree-parloops.c (loop_parallel_p): Likewise.
31496 2012-01-25 Richard Guenther <rguenther@suse.de>
31498 * tree.h (get_pointer_alignment_1): Declare.
31499 * builtins.c (get_pointer_alignment_1): New function.
31500 (get_pointer_alignment): Use it.
31502 2012-01-25 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31504 PR rtl-optimization/48308
31505 * combine.c (enum undo_kind): Add UNDO_LINKS.
31506 (struct undo): Add member l to other_contents and where.
31507 (do_SUBST_LINK): New.
31509 (try_combine): Handle LOG_LINKS for the dummy i1 case.
31510 (undo_all): Handle UNDO_LINKS.
31512 2012-01-25 Richard Henderson <rth@redhat.com>
31514 * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
31517 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
31519 * optabs.c (gen_atomic_test_and_set): Use each argument.
31521 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
31523 * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
31524 (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
31525 (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
31526 (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
31527 (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
31528 TARGET_PAIRED_SINGLE_FLOAT.
31530 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
31532 * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
31533 (in_struct, return_val): Remove MEM documentation.
31534 * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
31535 (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
31536 (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
31538 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
31539 * cfgexpand.c (add_alias_set_conflicts): Likewise.
31540 * expr.c (store_field): Likewise.
31541 * function.c (assign_stack_temp_for_type): Likewise.
31542 * ifcvt.c (noce_try_cmove_arith): Likewise.
31543 * reload1.c (reload): Likewise.
31544 * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
31545 (alpha_set_memflags): Likewise.
31546 * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
31548 2012-01-24 Richard Sandiford <rdsandiford@googlemail.com>
31550 * rtl.h (true_dependence, canon_true_dependence): Remove varies
31552 * alias.c (fixed_scalar_and_varying_struct_p): Delete.
31553 (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
31554 (true_dependence_1, true_dependence, canon_true_dependence): Remove
31556 * cselib.c (cselib_rtx_varies_p): Delete.
31557 (cselib_invalidate_mem): Update call to canon_true_dependence.
31558 * dse.c (record_store, check_mem_read_rtx): Likewise.
31559 (scan_reads_nospill): Likewise.
31560 * cse.c (check_dependence): Likewise.
31561 (cse_rtx_varies_p): Delete.
31562 * expr.c (safe_from_p): Update call to true_dependence.
31563 * ira.c (validate_equiv_mem_from_store): Likewise.
31564 (memref_referenced_p): Likewise.
31565 * postreload-gcse.c (find_mem_conflicts): Likewise.
31566 * sched-deps.c (sched_analyze_2): Likewise.
31567 * store-motion.c (load_kills_store): Likewise.
31568 * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
31569 * gcse.c (mems_conflict_for_gcse_p): Likewise.
31570 (compute_transp): Update call to canon_true_dependence.
31572 2012-01-25 Richard Henderson <rth@redhat.com>
31574 * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
31575 (maybe_emit_atomic_test_and_set): New.
31576 (expand_sync_lock_test_and_set): Use it.
31577 (expand_atomic_test_and_set): Likewise.
31578 * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
31579 the implementation; clarify implementation defined details.
31580 * doc/md.texi (atomic_test_and_set): Document.
31582 2012-01-25 Richard Henderson <rth@redhat.com>
31584 * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
31586 2012-01-25 Richard Henderson <rth@redhat.com>
31589 * config/arm/arm.c (neon_split_vcombine): Emit deleted note
31590 to effect no-op split.
31592 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
31595 * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
31596 (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
31597 (BT_FN_VOID_PTR_INT_SIZE): New.
31598 (BT_FN_UINT_UINT_VAR): Remove.
31599 (BT_FN_UINT32_UINT32_VAR): New.
31600 (BT_FN_DOUBLE_VPTR): Remove.
31601 (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
31603 * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
31604 (_ITM_changeTransactionMode): Same.
31605 (_ITM_memmoveRtWt): Change return type to void.
31606 (_ITM_memcpyRtWt): Same.
31607 (_ITM_memsetW): Same.
31608 (_ITM_RaRD): Change types to double.
31613 * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
31615 2012-01-24 Aldy Hernandez <aldyh@redhat.com>
31616 Patrick Marlier <patrick.marlier@gmail.com>
31618 * trans-mem.c (requires_barrier): Do not instrument thread local
31619 variables and emit save/restore for them.
31621 2012-01-24 Jason Merrill <jason@redhat.com>
31624 * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
31625 output static aliases.
31627 2012-01-24 Jakub Jelinek <jakub@redhat.com>
31630 * common.opt (-pie, -shared, pie, shared): Change from Common to
31632 * gcc.c (display_help): Display help for -pie and -shared.
31634 2012-01-24 Georg-Johann Lay <avr@gjlay.de>
31637 * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
31638 Remove note on size/offset limitation.
31639 (AVR Variable Attributes): Add example how to read data located
31640 with progmem. Refer to named address spaces.
31641 * doc/invoke.texi (AVR Options): Fix typo.
31643 2012-01-24 Richard Guenther <rguenther@suse.de>
31645 Forward-port to trunk
31646 2010-09-21 Jakub Jelinek <jakub@redhat.com>
31648 PR middle-end/45678
31649 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
31650 op0 isn't sufficiently aligned and there is movmisalignM
31651 insn for mode, use it to load op0 into a temporary register.
31653 2012-01-24 Jakub Jelinek <jakub@redhat.com>
31656 * target.def (const_not_ok_for_debug_p): New hook.
31657 * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
31659 * doc/tm.texi: Regenerated.
31660 * dwarf2out.c (const_ok_for_output_1): If
31661 targetm.const_not_ok_for_debug_p returns true, fail.
31662 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
31664 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
31666 2012-01-23 Kai Tietz <ktietz@redhat.com>
31669 * config/i386/predicates.md (symbolic_operand): Allow
31670 UNSPEC_PCREL as PIC expression for lea.
31671 * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
31672 * config/i386/i386.c (ix86_delegitimize_address): Handle
31673 UNSPEC_PCREL for none-MEM, too.
31675 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
31677 * trans-mem.c (ipa_tm_create_version): Set externally_visible.
31678 (ipa_tm_create_version_alias): Same.
31680 2012-01-23 Uros Bizjak <ubizjak@gmail.com>
31683 * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
31684 * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
31686 2012-01-23 Aldy Hernandez <aldyh@redhat.com>
31687 Patrick Marlier <patrick.marlier@gmail.com>
31688 Iain Sandoe <developer@sandoe-acoustics.co.uk>
31691 * lto-wrapper.c (run_gcc): Pass the LTO section name to
31692 simple_object_start_read.
31694 2012-01-23 Richard Guenther <rguenther@suse.de>
31697 PR tree-optimization/51895
31698 * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
31699 parameter decomposition into BLKmode components.
31701 2012-01-23 Eric Botcazou <ebotcazou@adacore.com>
31703 * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
31704 fake variables for restrict-qualified pointers whose pointed-to type
31705 contains a placeholder.
31707 2012-01-23 Richard Guenther <rguenther@suse.de>
31709 PR tree-optimization/51949
31710 * ipa-split.c (execute_split_functions): Do not split malloc functions.
31712 2012-01-23 Jakub Jelinek <jakub@redhat.com>
31714 PR rtl-optimization/51933
31715 * ree.c (transform_ifelse): Return true right away if dstreg is
31716 already wider or equal to cand->mode.
31717 (enum ext_modified_kind, struct ext_modified, ext_state): New types.
31718 (make_defs_and_copies_lists): Remove defs_list and copies_list
31719 arguments, add state argument, just truncate state->work_list
31720 instead of always allocating and freeing the vector. Assert that
31721 get_defs succeeds instead of returning 2. Changed return type to bool.
31722 (merge_def_and_ext): Add state argument. If SET_DEST doesn't
31723 have ext_src_mode, see if it has been modified already with the
31724 right kind of extension and has been extended before from the
31725 ext_src_mode. If SET_DEST is already wider or equal to cand->mode,
31726 just return true. Remember the original mode in state->modified array.
31727 (combine_reaching_defs): Add state argument. Don't allocate and
31728 free here def_list, copied_list and vec vectors, instead just
31729 VEC_truncate the vectors in *state. Don't handle outcome == 2 here.
31730 (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
31731 Add state variable, clear vectors in it, initialize state.modified
31732 if needed. Free all the vectors at the end and state.modified too.
31733 Don't skip a candidate if the extension expression has been modified.
31735 2012-01-22 Douglas B Rupp <rupp@gnat.com>
31738 * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
31739 configurations. Change triplet to i[34567]86-*-interix[3-9]*.
31740 (extra_options) interix.opt -> i386/interix.opt"
31741 (extra_objs):Add winnt-stubs.o
31742 * configure.ac: Add interix to target_os .comm on PE check.
31743 * configure: Regenerate.
31744 * config/interix3.h: Delete and move bits to..
31745 * config/interix.h: Delete and move bits to..
31746 * config/i386/i386-interix3.h: Delete and move bits to..
31747 * config/i386/i386-interix.h: ..here.
31748 (TARGET_CPU_DEFAULT): Remove redefinition.
31749 (TARGET_ASM_CONSTRUCTOR): Undefine.
31750 (SUBTARGET_SWITCHES): Define for ms-bitfields.
31751 (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
31752 (PTRDIFF_TYPE): Define.
31753 (LONG_DOUBLE_TYPE_SIZE): Define.
31754 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
31755 (SUBTARGET_OVERRIDE_OPTIONS): Remove.
31756 (TARGET_SECTION_TYPE_FLAGS): Define.
31757 (ASM_DECLARE_FUNCTION_NAME): Define.
31758 (ASM_OUTPUT_EXTERNAL): Define.
31759 (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
31760 (ASM_OUTPUT_ALIGNED_BSS): Define.
31761 (PCC_BITFIELD_TYPE_MATTERS): Define.
31762 (USE_CONST_SECTION): Define.
31763 (SUBTARGET_ENCODE_SECTION_INFO): Remove.
31764 (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
31765 (SUPPORTS_ONE_ONLY): Remove.
31766 (I386_PE_STRIP_ENCODING): Define.
31767 * config/interix.opt: Delete and move bits to..
31768 * config/i386/interix.opt: ..here. New.
31769 (mpe-aligned-commons): Add.
31770 * config/i386/t-interix: Add copyright header.
31771 (winnt-stubs.o): Add rule.
31773 2012-01-22 Jason Merrill <jason@redhat.com>
31776 * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
31777 for extra name aliases.
31779 2012-01-22 Eric Botcazou <ebotcazou@adacore.com>
31781 PR rtl-optimization/51924
31782 * ree.c (combine_set_extension): Improve debugging message.
31783 (combine_reaching_defs): Likewise.
31784 (get_defs): Rename confusingly named variable.
31785 (find_and_remove_re): Skip a candidate if the extension expression has
31788 2012-01-21 Robert Millan <rmh@gnu.org>
31789 Gerald Pfeifer <gerald@pfeifer.com>
31791 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
31792 (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
31794 2012-01-20 Jakub Jelinek <jakub@redhat.com>
31796 PR tree-optimization/51914
31797 * tree-vect-stmts.c (vectorizable_conversion): For
31798 cvt_type && modifier == WIDEN, put temporary with cvt_type
31799 at the beginning of vec_dsts and set vec_dest to temporary
31802 2012-01-20 Eric Botcazou <ebotcazou@adacore.com>
31804 * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
31806 2012-01-20 Tijl Coosemans <tijl@coosemans.org>
31808 * config/i386/i386.c: Fix checks for !TARGET_MACHO.
31809 * config/rs6000/rs6000.c: Likewise.
31811 2012-01-20 Jakub Jelinek <jakub@redhat.com>
31814 * config/arm/arm.c (arm_count_output_move_double_insns): Call
31815 output_move_double on a copy of operands array.
31817 2012-01-20 Cary Coutant <ccoutant@google.com>
31818 Dodji Seketeli <dodji@redhat.com>
31821 * dwarf2out.c (copy_declaration_context): Return ref to parent
31822 of declaration DIE, if necessary.
31823 (remove_child_or_replace_with_skeleton): Add new parameter; update
31824 caller. Place skeleton DIE under parent DIE of original declaration.
31825 Move call to copy_declaration_context to here ...
31826 (break_out_comdat_types): ... from here.
31828 2012-01-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31830 PR rtl-optimization/51856
31831 * reload.c (find_reloads_subreg_address): Set the address_reloaded
31834 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31837 * config/arm/arm.c (arm_print_operand): Correct output of alignment
31838 hints for neon loads and stores.
31840 2012-01-20 Georg-Johann Lay <avr@gjlay.de>
31844 * doc/extend.texi (Named Address Spaces): Split into subsections.
31845 (AVR Named Address Spaces): New subsection.
31846 (M32C Named Address Spaces): New subsection.
31847 (RL78 Named Address Spaces): New subsection.
31848 (SPU Named Address Spaces): New subsection.
31849 (Variable Attributes): New anchor "AVR Variable Attributes".
31850 (AVR Variable Attributes): Rewrite and avoid wording
31851 "address space" in this context.
31852 * doc/invoke.texi (AVR Options): Rewrite and add documentation
31853 for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
31854 (AVR Built-in Macros): New subsubsection therein.
31855 * doc/md.texi (AVR constraints): Remove "C04", "R".
31857 2012-01-20 Richard Guenther <rguenther@suse.de>
31859 PR tree-optimization/51903
31860 * tree-ssa-pre.c (eliminate): Properly purging of EH edges
31861 when removing stmts.
31863 2012-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
31866 * config/arm/arm.c (arm_load_pic_register): Use
31867 gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
31868 , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
31869 (arm_pic_static_addr): Likewise.
31870 (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
31871 (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
31872 * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
31873 (pic_load_addr_unified): New.
31875 2012-01-20 Andrey Belevantsev <abel@ispras.ru>
31878 * function.c (instantiate_virtual_regs_in_insn): Use
31879 delete_insn_and_edges when removing a wrong asm insn.
31881 2012-01-19 Vladimir Makarov <vmakarov@redhat.com>
31883 PR rtl-optimization/40761
31884 * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
31885 Add new member loop_num.
31886 (IRA_LOOP_NODE_BY_INDEX): Modify the check.
31887 (ira_build): Remove the parameter.
31889 * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
31890 (ira.c): Do not build CFG loops for one region allocation. Remove
31891 argument from ira_build call.
31893 * ira-build.c (init_loop_tree_node): New function.
31894 (create_loop_tree_nodes): Use it. Separate the case when CFG
31895 loops are not built.
31896 (more_one_region_p): Check current_loops.
31897 (finish_loop_tree_nodes): Separate the case when CFG loops are not
31899 (add_loop_to_tree): Process loop equal to NULL too.
31900 (form_loop_tree): Separate the case when CFG loops are not built.
31901 Use explicitly number for the root.
31902 (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
31904 (ira_print_expanded_allocno, loop_compare_func): Use loop_num
31905 instead of loop->num.
31906 (mark_loops_for_removal): Ditto. Use loop_num instead of loop->num.
31907 (mark_all_loops_for_removal): Ditto.
31908 (remove_unnecessary_regions): Separate the case when CFG loops
31910 (ira_build): Remove the parameter. Use explicit number of regions
31911 when CFG loops are not built.
31913 * ira-color.c (print_loop_title): Separate the case for the root node.
31914 Use loop_num instead of loop->num.
31915 (move_spill_restore): Use loop_num instead of loop->num.
31917 * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
31918 (change_loop): Ditto.
31919 (change_loop): Use loop_num instead of loop->num.
31921 * ira-lives.c (process_bb_node_lives): Ditto.
31923 * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
31925 * ira-conflicts.c (print_allocno_conflicts): Ditto.
31927 2012-01-19 Jakub Jelinek <jakub@redhat.com>
31929 PR libmudflap/40778
31930 * tree-mudflap.c (mf_artificial): New function.
31931 (execute_mudflap_function_ops, execute_mudflap_function_decls,
31932 mx_register_decls, mudflap_enqueue_decl): Use it.
31935 * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
31936 numbers in the insn pattern.
31938 2012-01-19 Michael Matz <matz@suse.de>
31940 PR tree-optimization/46590
31941 * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
31942 use it in remembering which conflicts we already created.
31943 (add_scope_conflicts): Adjust call to above, (de)allocate helper
31946 2012-01-19 Aldy Hernandez <aldyh@redhat.com>
31949 * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
31950 (merge_and_complain): Same.
31952 2012-01-19 Jakub Jelinek <jakub@redhat.com>
31955 * config/initfini-array.h: Guard content of the header
31956 with #ifdef HAVE_INITFINI_ARRAY.
31957 * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
31958 Add initfini-array.h to tm_file here.
31959 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
31960 * config.gcc: Don't add initfini-array.h to tm_file here.
31961 * configure: Regenerated.
31963 2012-01-19 Andrey Belevantsev <abel@ispras.ru>
31965 PR rtl-optimization/51505
31966 * df-problems.c (df_kill_notes): New parameter live. Update comment.
31967 Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
31968 (df_note_bb_compute): Update the call to df_kill_notes.
31970 2012-01-18 Aldy Hernandez <aldyh@redhat.com>
31972 * trans-mem.c (requires_barrier): Remove call to is_global_var.
31974 2012-01-18 Richard Guenther <rguenther@suse.de>
31976 * tree-ssa.c (useless_type_conversion_p): Remove special-casing
31977 of conversions to void *.
31979 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31980 Richard Sandiford <rdsandiford@googlemail.com>
31982 PR middle-end/50325
31983 PR middle-end/51192
31984 * optabs.h (simplify_expand_binop): Declare.
31985 * optabs.c (simplify_expand_binop): Make global.
31986 * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
31987 endian targets if the source cannot be exactly covered by word
31990 2012-01-17 Jakub Jelinek <jakub@redhat.com>
31993 * hard-reg-set.h (struct hard_reg_set_container): New type.
31994 * target.h (struct hard_reg_set_container): Forward declare.
31995 * target.def (set_up_by_prologue): New target hook.
31996 * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
31997 * doc/tm.texi: Regenerated.
31998 * function.c (thread_prologue_and_epilogue_insns): Change
31999 set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
32000 Call targetm.set_up_by_prologue on it.
32001 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
32002 (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
32004 2012-01-17 Nick Clifton <nickc@redhat.com>
32006 * config/rx/rx.c (rx_can_use_simple_return): New function.
32007 * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
32008 * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
32010 2012-01-17 Richard Guenther <rguenther@suse.de>
32012 PR middle-end/51782
32013 * expr.c (expand_assignment): Take address-space information
32014 from the address operand of MEM_REF and TARGET_MEM_REF.
32015 (expand_expr_real_1): Likewise.
32017 2012-01-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32019 * ira.c (do_reload): Make sure ira_dump_file is re-set if no
32020 reload dump is requested.
32022 2012-01-17 Aldy Hernandez <aldyh@redhat.com>
32025 * trans-mem.c (requires_barrier): Call may_be_aliased.
32027 2012-01-17 Jakub Jelinek <jakub@redhat.com>
32029 PR tree-optimization/51877
32030 * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
32031 call arguments and fndecls compare equal, instead return false if they
32032 don't. Return true only if lhs1 and lhs2 are either both NULL, or
32033 both SSA_NAMEs that are valueized the same, or they satisfy
32036 2012-01-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32038 * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
32040 * configure: Regenerate.
32042 2012-01-16 Jan Hubicka <jh@suse.cz>
32046 * convert.c (convert_to_integer): Use fold_convert for
32047 converting an INTEGER_CST to integer type.
32049 2012-01-16 Jason Merrill <jason@redhat.com>
32052 * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
32054 2012-01-16 Jakub Jelinek <jakub@redhat.com>
32057 * config/s390/s390.c (s390_chunkify_start): Don't skip
32058 call insns followed by NOTE_INSN_CALL_ARG_LOCATION note. Skip
32059 NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
32060 If insn is followed by NOTE_INSN_VAR_LOCATION or
32061 NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
32062 Don't use location of note insns.
32064 PR tree-optimization/51865
32065 * tree-inline.c (tree_function_versioning): Call remap_decl
32066 on DECL_RESULT whenever it has VOID_TYPE_P type.
32068 2012-01-15 Richard Sandiford <rdsandiford@googlemail.com>
32070 * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
32071 for calls to locally-binding MIPS16 functions if only the return
32072 type uses float regs.
32074 2012-01-15 Chung-Lin Tang <cltang@codesourcery.com>
32075 Richard Sandiford <rdsandiford@googlemail.com>
32077 * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
32078 (SYMBOL_32_HIGH): Likewise.
32079 (mips_output_tls_reloc_directive): Declare.
32080 * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
32081 (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
32082 * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
32083 (mips_lo_relocs, mips_hi_relocs): Make extern.
32084 (mips16_stub_function): Move up file.
32085 (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
32086 (mips_symbolic_constant_p): Likewise. Remove SYMBOL_32_HIGH too.
32087 (mips_symbol_insns_1): Likewise. Check mips_use_pcrel_pool_p.
32088 (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
32089 SYMBOL_FORCE_TO_MEM. Only check mips_tls_symbol_ref_1 if it's false.
32090 (mips_get_tp): Add MIPS16 support.
32091 (mips_legitimize_tls_address): Remove MIPS16 sorry().
32092 Generalize DTPREL and TPREL handling.
32093 (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
32094 Add MIPS16 TLS support.
32095 (mips_output_tls_reloc_directive): New function.
32096 (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
32097 * config/mips/predicates.md (symbolic_operand_with_high)
32098 (tls_reloc_operand): New predicates.
32099 (force_to_mem_operand): Use mips_use_pcrel_pool_p.
32100 * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
32101 (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
32102 (*unshifted_high): New instruction. Use it for MIPS16 high splitter.
32103 (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
32104 (*tls_get_tp_mips16_call_<mode>): Likewise.
32106 2012-01-15 Uros Bizjak <ubizjak@gmail.com>
32108 PR rtl-optimization/51821
32109 * recog.c (peep2_find_free_register): Determine clobbered registers
32112 2012-01-14 Denis Chertykov <chertykov@gmail.com>
32115 * config/avr/avr-protos.h: Revert change of 2012-01-09.
32116 * config/avr/avr.c: Likewise.
32117 * config/avr/avr.h: Likewise.
32119 2012-01-13 Ian Lance Taylor <iant@google.com>
32122 * tree.h (TYPE_QUALS): Add cast to int.
32123 (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
32125 2012-01-13 Ian Lance Taylor <iant@google.com>
32127 * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
32128 comparing param_index to VEC_length result.
32130 2012-01-13 Steven Bosscher <steven@gcc.gnu.org>
32132 * c-decl.c: Do not include tree-mudflap.h
32133 * tree-optimize.c: Likewise.
32134 * Makefile.in: Update dependencies.
32136 2012-01-13 Richard Guenther <rguenther@suse.de>
32139 * gimplify.c (gimplify_modify_expr_rhs): For calls with a
32140 variable-sized result always use RSO.
32142 2012-01-12 DJ Delorie <dj@redhat.com>
32144 * cfgexpand.c (convert_debug_memory_address): Allow any valid
32145 pointer type, not just the default pointer type.
32147 2012-01-09 Richard Henderson <rth@redhat.com>
32148 Denis Chertykov <chertykov@gmail.com>
32151 * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
32152 * config/avr/avr.c (avr_can_eliminate): Simplify.
32153 (avr_initial_elimination_offset): Likewise.
32154 (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
32155 (expand_epilogue): Likewise.
32156 (avr_legitimize_address): Gut.
32157 (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
32158 (avr_hard_regno_nregs): New.
32159 (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
32160 (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
32161 * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
32162 add soft frame pointer.
32163 (CALL_USED_REGISTERS): Likewise.
32164 (REG_CLASS_CONTENTS): Likewise.
32165 (REGISTER_NAMES): Likewise.
32166 (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
32167 (HARD_FRAME_POINTER_REGNUM): New.
32168 (FRAME_POINTER_REGNUM): Use soft frame pointer.
32169 (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
32170 remove the HARD_FRAME_POINTER self-elimination.
32172 2012-01-12 Georg-Johann Lay <avr@gjlay.de>
32175 * config/avr/avr.c (avr_encode_section_info): Test for absence of
32176 DECL_EXTERNAL when checking for initializers of progmem variables.
32178 2012-01-12 Ira Rosen <irar@il.ibm.com>
32180 PR tree-optimization/51799
32181 * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
32182 that the last operation is a type demotion.
32184 2012-01-12 Uros Bizjak <ubizjak@gmail.com>
32186 * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
32187 (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
32189 2012-01-11 Jakub Jelinek <jakub@redhat.com>
32192 * combine.c (distribute_notes): If i3 is a noreturn call,
32193 allow old_size to be equal to args_size and make sure the
32194 noreturn call gets REG_ARGS_SIZE note.
32195 * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
32196 on noreturn calls even when the delta is 0.
32198 2012-01-11 Nathan Sidwell <nathan@acm.org>
32200 * gcov.c (STRING_SIZE): Remove.
32201 (generate_results): Erase annotations for source files with no
32202 coverage information.
32204 (output_lines): Use it.
32206 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
32208 * gimple.h (gimplify_body): Remove first argument.
32209 * gimplify.c (copy_if_shared): Add DATA argument. Do not create the
32210 pointer set here, instead just pass DATA to walk_tree.
32211 (unshare_body): Remove BODY_P argument and adjust. Create the pointer
32212 set here and invoke copy_if_shared on the size trees of DECL_RESULT.
32213 (unvisit_body): Likewise, but with unmark_visited.
32214 (gimplify_body): Remove BODY_P argument and adjust.
32215 (gimplify_function_tree): Adjust call to gimplify_body.
32216 * omp-low.c (finalize_task_copyfn): Likewise.
32218 2012-01-11 Eric Botcazou <ebotcazou@adacore.com>
32220 * tree.h (build_function_decl_skip_args): Add boolean parameter.
32221 (build_function_type_skip_args): Delete.
32222 * tree.c (build_function_type_skip_args): Make static and add
32223 SKIP_RETURN parameter. Fix thinko in the handling of variants.
32224 (build_function_decl_skip_args): Add SKIP_RETURN parameter and
32225 pass it to build_function_type_skip_args.
32226 * cgraph.h (cgraph_function_versioning): Add boolean parameter.
32227 (tree_function_versioning): Likewise.
32228 * cgraph.c (cgraph_create_virtual_clone): Adjust call to
32229 build_function_decl_skip_args.
32230 * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
32231 and pass it to build_function_decl_skip_args/tree_function_versioning.
32232 (cgraph_materialize_clone): Adjust call to tree_function_versioning.
32233 * ipa-inline-transform.c (save_inline_function_body): Likewise.
32234 * trans-mem.c (ipa_tm_create_version): Likewise.
32235 * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
32236 * tree-inline.c (declare_return_variable): Remove always-true test.
32237 (tree_function_versioning): Add SKIP_RETURN parameter. If the function
32238 returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
32239 * ipa-split.c (split_function): Skip the return value for the split
32240 part if it doesn't return.
32242 2012-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32244 PR tree-optimization/49642
32245 * ipa-split.c (forbidden_dominators): New variable.
32246 (check_forbidden_calls): New function.
32247 (dominated_by_forbidden): Likewise.
32248 (consider_split): Check for forbidden dominators.
32249 (execute_split_functions): Initialize and free forbidden
32250 dominators info; call check_forbidden_calls.
32252 2012-01-11 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
32254 * config/arm/arm.md (mov_notscc): Use MVN for false condition.
32256 2012-01-11 Nick Clifton <nickc@redhat.com>
32258 * config/rx/rx.md (return): Define pattern.
32260 2012-01-11 Richard Guenther <rguenther@suse.de>
32262 * doc/extend.texi (malloc attribute): Adjust according to
32265 2012-01-10 Aldy Hernandez <aldyh@redhat.com>
32266 Patrick Marlier <patrick.marlier@gmail.com>
32268 PR middle-end/51516
32269 * trans-mem.c (get_cg_data): Traverse aliases if requested.
32270 (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
32271 (ipa_tm_note_irrevocable): Same.
32272 (ipa_tm_scan_irr_block): Same.
32273 (ipa_tm_decrement_clone_counts): Same.
32274 (ipa_tm_scan_irr_function): Same.
32275 (ipa_tm_create_version_alias): Same.
32276 (ipa_tm_create_version): Same.
32277 (ipa_tm_transform_calls_redirect): Same.
32278 (ipa_tm_transform_calls): Same.
32279 (ipa_tm_transform_transaction): Same.
32280 (ipa_tm_execute): Same.
32282 2012-01-10 Richard Guenther <rguenther@suse.de>
32284 PR middle-end/51806
32285 * opts.c (common_handle_option): Handle -Werror.
32287 2012-01-10 Andreas Schwab <schwab@linux-m68k.org>
32289 * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
32292 2012-01-10 Jason Merrill <jason@redhat.com>
32294 * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
32297 2012-01-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32299 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
32300 supports R_386_TLS_GD_PLT reloc.
32301 (gcc_cv_as_ix86_tlsldmplt): Check if linker
32302 supports R_386_TLS_LDM_PLT reloc.
32303 * configure: Regenerate.
32304 * config.in: Regenerate.
32306 2012-01-10 Georg-Johann Lay <avr@gjlay.de>
32309 Extend __pgmx semantics to linearize memory.
32310 * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
32311 determine if code comes inline or from libgcc.
32312 (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
32313 (movmem_qi, movmem_qi): Set constraint #2 to "n".
32314 (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
32315 (movmemx_qi, movmemx_hi): New insns.
32316 (xload_<mode>_libgcc): Rewrite to new insn condition.
32317 (xload_<mode>): Remove insns.
32318 * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
32319 cases that don't satisfy avr_xload_libgcc_p().
32320 (avr_addr_space_convert): Allow converting in any direction.
32321 (avr_addr_space_subset_p): Return always true.
32322 (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
32323 (avr_emit_movmemhi): Ditto.
32324 (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
32325 (avr_out_movmem): Ditto.
32326 (AVR_SYMBOL_FLAG_PROGMEM): New macro.
32327 (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
32328 (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
32329 (avr_encode_section_info): Encode 'progmem' in symbol flags.
32330 (output_reload_in_const): Don't zero-extend any 24-bit symbols.
32332 2012-01-10 Richard Guenther <rguenther@suse.de>
32334 PR tree-optimization/50913
32335 * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
32336 Require data-refs to be representable by Graphite with respect
32339 2012-01-10 Uros Bizjak <ubizjak@gmail.com>
32341 * config/i386/constraints.md ("L"): Return true for 0xffffffff.
32342 * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
32344 2012-01-10 Tom de Vries <tom@codesourcery.com>
32346 PR rtl-optimization/51271
32347 * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
32348 handling annulled branch.
32350 2012-01-10 Richard Henderson <rth@redhat.com>
32352 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
32353 TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
32354 struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
32355 arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
32356 arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
32357 arm_expand_vec_perm_const): New.
32358 * config/arm/arm-protos.h: Update.
32359 * config/arm/neon.md (UNSPEC_VCONCAT): New.
32360 (*neon_vswp<VDQX>): New.
32361 (neon_vcombine<VDX>): Use neon_split_vcombine.
32362 (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
32363 * config/arm/vec-common.md (vec_perm_const<VALL>): New.
32364 (vec_perm<VE>): New.
32366 2012-01-10 Richard Henderson <rth@redhat.com>
32368 * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
32369 use it if reload_completed.
32370 (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
32371 arm_output_asm_insn, arm_process_output_memory_barrier,
32372 arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
32373 arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
32374 arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
32375 arm_process_output_sync_insn, arm_output_sync_insn,
32376 arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
32377 (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
32378 (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
32379 (emit_unlikely_jump): New.
32380 (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
32381 (arm_split_atomic_op): New.
32382 * config/arm/arm-protos.h: Update.
32383 * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
32384 (struct arm_sync_generator): Remove.
32385 * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
32386 VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
32387 (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
32388 (VUNSPEC_LL, VUNSPEC_SC): New.
32389 (sync_result, sync_memory, sync_required_value, sync_new_value,
32390 sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
32391 (attr length): Don't use arm_sync_loop_insns.
32392 (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
32393 (movsfcc, movdfcc): Likewise.
32394 * config/arm/constraints.md (Ua): New.
32395 * config/arm/prediates.md (mem_noofs_operand): New.
32396 (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
32397 (sync_clobber, sync_t2_reqd): Remove.
32398 (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
32399 (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
32400 (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
32401 (arm_sync_compare_and_swap<SIDI>): Remove.
32402 (arm_sync_compare_and_swap<NARROW>): Remove.
32403 (arm_sync_lock_test_and_set<SIDI>): Remove.
32404 (arm_sync_lock_test_and_set<NARROW>): Remove.
32405 (arm_sync_new_<syncop><SIDI>): Remove.
32406 (arm_sync_new_<syncop><NARROW>): Remove.
32407 (arm_sync_new_nand<SIDI>): Remove.
32408 (arm_sync_new_nand<NARROW>): Remove.
32409 (arm_sync_old_<syncop><SIDI>): Remove.
32410 (arm_sync_old_<syncop><NARROW>): Remove.
32411 (arm_sync_old_nand<SIDI>): Remove.
32412 (arm_sync_old_nand<NARROW>): Remove.
32413 (*memory_barrier): Merge arm_output_memory_barrier.
32414 (atomic_compare_and_swap<QHSD>): New.
32415 (atomic_compare_and_swap<NARROW>_1): New.
32416 (atomic_compare_and_swap<SIDI>_1): New.
32417 (atomic_exchange<QHSD>): New.
32418 (cas_cmp_operand, cas_cmp_str): New.
32419 (atomic_op_operand, atomic_op_str): New.
32420 (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
32421 (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
32422 (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
32423 (arm_load_exclusive<NARROW>): New.
32424 (arm_load_exclusivesi, arm_load_exclusivedi): New.
32425 (arm_store_exclusive<QHSD>): New.
32427 2012-01-09 Michael Meissner <meissner@linux.vnet.ibm.com>
32429 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
32430 reload patterns if -mvsx-scalar-memory.
32432 * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
32433 generated, even -mno-vsx-scalar-double was used.
32434 (vsx_xscvdpsp_scalar): Likewise.
32435 (vsx_xscvspdp_scalar2): Likewise.
32437 2012-01-09 Tom de Vries <tom@codesourcery.com>
32438 Andrew Pinski <apinski@cavium.com>
32441 * reorg.c (fill_slots_from_thread): Don't speculate
32442 frame-related insns.
32444 2012-01-09 Richard Sandiford <rdsandiford@googlemail.com>
32446 * sched-int.h (bb_note): Move to...
32447 * basic-block.h: ...here.
32448 * haifa-sched.c (bb_note): Move to...
32449 * cfgrtl.c: ...here.
32450 * function.c (next_block_for_reg): New function.
32451 (move_insn_for_shrink_wrap): Likewise.
32452 (prepare_shrink_wrap): Rewrite to use the above.
32454 2012-01-09 Aldy Hernandez <aldyh@redhat.com>
32456 * gimple.c (is_gimple_non_addressable): Remove.
32457 * gimple.h: Remove is_gimple_non_addressable.
32458 * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
32459 is_gimple_non_addressable.
32460 * trans-mem.c (expand_assign_tm): Same.
32462 2012-01-09 Richard Guenther <rguenther@suse.de>
32464 PR tree-optimization/51775
32465 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
32466 * tree-ssa-pre.c (eliminate): Properly fixup EH info.
32468 2012-01-09 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
32470 * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
32472 * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
32474 2012-01-09 Richard Guenther <rguenther@suse.de>
32476 * tree-streamer-out.c (write_ts_optimization): Fix spelling.
32478 2012-01-08 Jan Hubicka <jh@suse.cz>
32480 PR tree-optimize/51680
32481 * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
32482 on when known_vals needs to be computed; cleanup.
32484 2012-01-08 Jan Hubicka <jh@suse.cz>
32486 PR tree-optimize/51694
32487 * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
32489 2012-01-08 Jonathan Wakely <jwakely.gcc@gmail.com>
32491 * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
32492 for -std=c++98 and -std=c++11 too.
32494 2012-01-08 Chung-Lin Tang <cltang@codesourcery.com>
32496 * cfgloop.c (cancel_loop): Add free() of bbs array.
32498 2012-01-07 Jan Hubicka <jh@suse.cz>
32500 PR tree-optimization/51600
32501 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
32502 that benefits small functions.
32504 2012-01-07 Jan Hubicka <jh@suse.cz>
32506 * ipa-inline.c (want_inline_small_function_p): Fix formating.
32508 2012-01-07 Jan Hubicka <jh@suse.cz>
32510 PR tree-optimization/51680
32511 * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
32512 whose inlining reduce unit size.
32514 2012-01-07 Alexandre Oliva <aoliva@redhat.com>
32517 * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
32518 Add canonical node to containing_mem chain after the non-canonical
32519 one, even if there weren't any locs to propagate.
32520 (remove_useless_values): Keep only canonical values.
32521 (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
32522 (cselib_invalidate_mem): Likewise. Ensure v is canonical, and
32523 canonicalize mem_chain elements that are not discarded.
32525 2012-01-06 Jakub Jelinek <jakub@redhat.com>
32528 * cgraphunit.c (cgraph_optimize): Call output_weakrefs
32529 before emitting functions.
32531 PR gcov-profile/50127
32532 * bb-reorder.c (partition_hot_cold_basic_blocks): Call
32533 clear_aux_for_blocks.
32535 2012-01-06 Alexandre Oliva <aoliva@redhat.com>
32538 * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
32540 2012-01-06 Arnaud Charlet <charlet@adacore.com>
32542 * c-decl.c (ext_block): Moved up.
32543 (collect_all_refs, for_each_global_decl): Take ext_block into account.
32545 2012-01-06 Han Shen <shenhan@google.com>
32547 Translate built-in include paths for sysroot.
32548 * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
32549 (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
32551 * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
32552 GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
32554 * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
32555 control whether sysroot should be prepended to gxx include dir.
32557 * configure: Regenerate.
32559 2012-01-06 Torvald Riegel <triegel@redhat.com>
32561 PR rtl-optimization/51771
32562 * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
32563 * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
32565 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
32567 PR tree-optimization/51315
32568 * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
32569 (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
32571 2012-01-05 Uros Bizjak <ubizjak@gmail.com>
32574 * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
32575 for shrp pattern. Correctly handle and fixup shift variable.
32576 Return false when shift > nelt for BYTES_BIG_ENDIAN target.
32578 2012-01-05 Jakub Jelinek <jakub@redhat.com>
32581 * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
32582 note when !ACCUMULATE_OUTGOING_ARGS.
32584 2012-01-05 Eric Botcazou <ebotcazou@adacore.com>
32586 * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
32588 (extract_range_from_unary_expr_1): Avoid useless computations.
32590 2012-01-05 Jakub Jelinek <jakub@redhat.com>
32592 PR rtl-optimization/51767
32593 * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
32594 of jump_block and add an extra edge for degenerated asm gotos.
32596 PR middle-end/51768
32597 * stmt.c (check_unique_operand_names): Don't ICE during error
32598 reporting if i is from labels chain.
32600 PR middle-end/44777
32601 * profile.c (branch_prob): Split bbs that have exit edge
32602 and need a fake entry edge too.
32604 2012-01-05 Jan Hubicka <jh@suse.cz>
32606 PR middle-end/49710
32607 * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
32610 2012-01-05 Richard Guenther <rguenther@suse.de>
32613 * tree-streamer-out.c (write_ts_optimization): New function.
32614 (streamer_write_tree_body): Call it.
32615 * tree-streamer-in.c (lto_input_ts_optimization): New function.
32616 (streamer_read_tree_body): Call it.
32617 * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
32619 2012-01-05 Jakub Jelinek <jakub@redhat.com>
32621 PR middle-end/51761
32622 * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
32623 * gimplify.c (gimplify_cleanup_point_expr): Save and set
32624 in_cleanup_point_expr before gimplify_stmt call and restore it
32626 (gimplify_target_expr): Don't add {CLOBBER} cleanup if
32627 in_cleanup_point_expr is false.
32629 2012-01-05 Richard Guenther <rguenther@suse.de>
32631 PR middle-end/51764
32632 * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
32634 * toplev.c (process_options): Reject combining mudflap and LTO.
32635 * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
32637 2012-01-05 Richard Guenther <rguenther@suse.de>
32639 PR tree-optimization/51760
32640 * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
32642 (bit_value_unop): Handle UNDEFINED operands.
32643 (bit_value_binop): Likewise.
32645 2012-01-05 Georg-Johann Lay <avr@gjlay.de>
32647 * config/avr/avr.c (avr_replace_prefix): Remove.
32648 (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
32649 (avr_asm_function_rodata_section): Ditto.
32650 (avr_asm_select_section): Ditto.
32652 2012-01-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
32654 * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
32657 2012-01-05 Jakub Jelinek <jakub@redhat.com>
32660 * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
32661 calls that have any non-fake successor edges.
32664 * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
32666 2012-01-04 Eric Botcazou <ebotcazou@adacore.com>
32668 PR tree-optimization/51624
32669 * tree-sra.c (build_ref_for_model): When replicating a chain of
32670 COMPONENT_REFs, stop as soon as the offset would become negative.
32672 2012-01-04 Jakub Jelinek <jakub@redhat.com>
32675 * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
32676 in .debug_loc on the floor.
32678 2012-01-04 Andrew Pinski <apinski@cavium.com>
32680 * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
32682 2012-01-04 Andrew Pinski <apinski@cavium.com>
32683 Adam Nemet <anemet@caviumnetworks.com>
32685 * config/mips/mips.md (size): Add SI and DI.
32686 (SIZE): New mode attribute.
32687 (U): New code attribute.
32688 * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
32689 (mips_lbux_<mode>): Delete.
32690 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
32691 (mips_lhx): Use gen_mips_lhx_extsi.
32692 (mips_lhx_<mode>): Delete.
32693 (mips_lwx): Delete.
32694 (mips_l<size>x): New expand.
32695 (mips_lwx_<mode>): Delete.
32696 (mips_l<GPR:size>x_<P:mode>): New pattern.
32697 (*mips_lw<u>x_<P:mode>_ext): Likewise.
32698 * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
32699 * config/mips/mips.c (mips_lx_address_p): New function.
32700 (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
32701 (dsp64): New availability predicate.
32702 (mips_builtins): Add an entry for __builtin_mips_ldx.
32703 * config/mips/mips.h (ISA_HAS_LBX): New define.
32704 (ISA_HAS_LBUX): Likewise.
32705 (ISA_HAS_LHX): Likewise.
32706 (ISA_HAS_LHUX): Likewise.
32707 (ISA_HAS_LWX): Likewise.
32708 (ISA_HAS_LWUX): Likewise.
32709 (ISA_HAS_LDX): Likewise.
32710 * doc/extend.texi (__builtin_mips_ldx): Document.
32712 2012-01-04 Tristan Gingold <gingold@adacore.com>
32714 * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
32715 when long pointers are used.
32716 * config.build (*-*-*vms*): Handle all OpenVMS targets.
32717 (alpha64-dec-*vms*, alpha*-dec-*vms*)
32718 (ia64-hp-*vms*): Remove.
32719 * config/vms/xm-vms64.h: Delete.
32721 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
32723 PR middle-end/51472
32724 * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
32726 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
32728 * opts.c (finish_options): Remove duplicate sorry.
32730 2012-01-04 Aldy Hernandez <aldyh@redhat.com>
32732 PR middle-end/51696
32733 * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
32736 2012-01-04 Richard Guenther <rguenther@suse.de>
32738 PR middle-end/51750
32739 * tree.c (size_low_cst): New function.
32740 * tree.h (size_low_cst): Declare.
32741 * fold-const.c (fold_comparison): Use it to extract the low
32742 part of the POINTER_PLUS_EXPR offset.
32744 2012-01-04 Georg-Johann Lay <avr@gjlay.de>
32746 Fix clearing ZERO_REG
32747 * config/avr/avr.md (cc): Add alternative "ldi".
32748 (movqi_insn): Use it in cc attribute.
32749 * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
32750 (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
32751 (output_reload_insisf): Use ZERO_REG to pre-clear register.
32753 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32755 * configure: Regenerate.
32757 2012-01-04 Richard Guenther <rguenther@suse.de>
32759 PR tree-optimization/49651
32760 * tree-ssa-structalias.c (type_can_have_subvars): New function.
32761 (var_can_have_subvars): Use it.
32762 (get_constraint_for_1): Only consider subfields if there can be any.
32764 2012-01-03 Jakub Jelinek <jakub@redhat.com>
32767 * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
32768 to its new canonical_cselib_val and the cselib_val was in
32769 first_containing_mem chain, but the canonical_cselib_val was not,
32770 add the latter into the chain.
32771 (cselib_invalidate_mem): Compare canonical_cselib_val of
32772 addr_list chain elt with v.
32775 * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
32776 dwarf2out_undef): Allocate e.info using ggc_strdup instead
32778 (output_macinfo_op): Don't ggc_strdup fd->filename.
32779 (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
32780 then ggc_strdup it. Don't free inc->info or cur->info.
32781 (output_macinfo): Don't free ref->info or file->info.
32783 2012-01-03 Ira Rosen <irar@il.ibm.com>
32785 PR tree-optimization/51269
32786 * tree-vect-loop-manip.c (set_prologue_iterations): Make
32787 first_niters a pointer.
32788 (slpeel_tree_peel_loop_to_edge): Likewise.
32789 (vect_do_peeling_for_loop_bound): Update call to
32790 slpeel_tree_peel_loop_to_edge.
32791 (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
32792 here. Remove it from the parameters list.
32793 (vect_do_peeling_for_alignment): Update calls and compute
32794 wide_prolog_niters.
32796 2012-01-03 Richard Guenther <rguenther@suse.de>
32798 PR tree-optimization/51070
32799 * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
32800 Properly handle calls.
32802 2012-01-03 Richard Guenther <rguenther@suse.de>
32804 PR tree-optimization/51692
32805 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
32806 the LHS of allocation stmts.
32808 2012-01-03 Olivier Hainque <hainque@adacore.com>
32810 * system.h: Prior to #define, #undef fopen and freopen unconditionally.
32812 2012-01-03 Olivier Hainque <hainque@adacore.com>
32814 * collect2.c (main): In AIX specific computations for vector
32815 insertions, use CONST_CAST2 to cast from char ** to const char **.
32817 2012-01-03 Richard Guenther <rguenther@suse.de>
32820 * dwarf2out.c (dwarf2out_finish): Always create a DIE for
32821 the context of a limbo DIE when it does not already exist.
32823 2012-01-03 Jakub Jelinek <jakub@redhat.com>
32825 PR tree-optimization/51719
32826 * value-prof.c (gimple_ic): When indirect call isn't noreturn,
32827 but direct call is, clear direct call's lhs and don't add fallthrough
32828 edge from dcall_bb to join_bb and PHIs.
32830 2012-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32832 * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
32833 the instructions emitted by the pattern.
32834 ("*TDC_insn_<mode>"): Add comment.
32836 2012-01-03 Richard Guenther <rguenther@suse.de>
32838 PR middle-end/51730
32839 * fold-const.c (fold_comparison): Properly canonicalize
32840 tree offset and HOST_WIDE_INT bit position.
32842 2012-01-02 Uros Bizjak <ubizjak@gmail.com>
32844 * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
32845 operands for extzv pattern.
32847 2012-01-02 Jakub Jelinek <jakub@redhat.com>
32850 * cselib.c (add_mem_for_addr): Call canonical_cselib_val
32853 2012-01-02 Sandra Loosemore <sandra@codesourcery.com>
32855 * doc/invoke.texi (-flto and related options): Copy-edit.
32857 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32859 * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
32861 2012-01-02 Jakub Jelinek <jakub@redhat.com>
32863 * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
32866 2012-01-02 Richard Sandiford <rdsandiford@googlemail.com>
32868 * expr.h (move_by_pieces_ninsns): Declare.
32869 * expr.c (move_by_pieces_ninsns): Make external.
32870 * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
32871 (mips_store_by_pieces_p): Likewise.
32872 * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
32873 (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
32874 * config/mips/mips.c (mips_move_by_pieces_p): New function.
32875 (mips_store_by_pieces_p): Likewise.
32877 2012-01-02 Jakub Jelinek <jakub@redhat.com>
32879 * passes.c (register_one_dump_file): Free full_name.
32881 * reload1.c (reload): Don't allocate reg_max_ref_width here.
32882 (calculate_elim_costs_all_insns): Free offsets_at and
32883 offsets_known_at at the end and clear the pointers.
32885 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
32887 * config/avr/avr.opt (-mbranch-cost): Fix double definition of
32888 this option introduced in r180739.
32890 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
32893 * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
32894 (tmake_file target=avr): Add avr/t-multilib.
32896 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
32897 to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
32898 * config/avr/genmultilib.awk: New file.
32899 * config/avr/t-multilib: New auto-generated file.
32900 * config/avr/multilib.h: New auto-generated file.
32901 * config/avr/t-avr (AVR_MCUS): New variable.
32902 (genopt.sh): Use it.
32903 (s-mlib): Depend on t-multilib.
32904 (t-multilib, multilib.h): New dependencies.
32905 (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
32906 (MULTILIB_OPTIONS): Remove.
32907 (MULTILIB_MATCHES): Remove.
32908 (MULTILIB_DIRNAMES): Remove.
32909 (MULTILIB_EXCEPTIONS): Remove:
32910 * config/avr/genopt.sh: Don't use hard coded file name;
32911 pass AVR_MCUS from t-avr instead.
32913 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
32915 * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
32917 2012-01-02 Georg-Johann Lay <avr@gjlay.de>
32919 Implement light-weight DImode support.
32920 * config/avr/avr-dimode.md: New file.
32921 * config/avr/avr.md: Include it.
32922 (adjust_len): Add plus64, compare64.
32923 (HIDI): Remove code iterator.
32924 (code_stdname): New code attribute.
32925 (rotx, rotsmode): Remove DI.
32926 (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
32928 * config/avr/avr-protos.h (avr_have_dimode): New.
32929 (avr_out_plus64, avr_out_compare64): New.
32930 * config/avr/avr.c (avr_out_compare): Handle DImode.
32931 (avr_have_dimode): New variable definition and initialization.
32932 (avr_out_compare64, avr_out_plus64): New functions.
32933 (avr_out_plus_1): Use simplify_unary_operation to negate xval.
32934 (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
32935 (avr_compare_pattern): Skip DImode comparisons.
32937 2012-01-02 Revital Eres <revital.eres@linaro.org>
32939 * ddg.c (def_has_ccmode_p): New function.
32940 (add_cross_iteration_register_deps,
32941 create_ddg_dep_from_intra_loop_link): Call it.
32943 2012-01-02 Richard Guenther <rguenther@suse.de>
32946 * invoke.texi (fassociative-math): Remove spurious paranthesis.
32948 2012-01-01 Jakub Jelinek <jakub@redhat.com>
32950 * gcc.c (process_command): Update copyright notice dates.
32951 * gcov.c (print_version): Likewise.
32952 * gcov-dump.c (print_version): Likewise.
32953 * mips-tfile.c (main): Likewise.
32954 * mips-tdump.c (main): Likewise.
32956 2012-01-01 Ira Rosen <irar@il.ibm.com>
32958 PR tree-optimization/51704
32959 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
32960 a use is inside the basic block or loop before accessing its vect info.
32962 2012-01-01 Jan Hubicka <jhjh@suse.cz>
32964 PR rtl-optimization/51069
32965 * cfgloopmanip.c (remove_path): Removing path making irreducible
32966 region unconditional makes BB part of the region.
32968 2012-01-01 Jakub Jelinek <jakub@redhat.com>
32970 PR tree-optimization/51683
32971 * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
32972 calls with side-effects.
32973 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
32975 Copyright (C) 2012 Free Software Foundation, Inc.
32977 Copying and distribution of this file, with or without modification,
32978 are permitted in any medium without royalty provided the copyright
32979 notice and this notice are preserved.