1 2011-06-09 David Li <davidxl@google.com>
3 * tree-complex.c (tree_lower_complex): Gate cleanup.
4 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
5 (execute_optimize_stdarg): Ditto.
6 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
7 (execute_cleanup_eh_1): Ditto.
8 (execute_cleanup_eh): Ditto.
9 * gcse.c (gate_rtl_pre): Ditto.
10 (execute_rtl_pre): Ditto.
11 * except.c (finish_eh_generation): Ditto.
12 (convert_to_eh_region_ranges): Ditto.
13 * cprop.c (one_cprop_pass): Ditto.
16 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
19 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
22 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
25 (HAVE_ENABLE_EXECUTE_STACK): Define.
26 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
27 (HAVE_ENABLE_EXECUTE_STACK): Define.
28 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
29 (HAVE_ENABLE_EXECUTE_STACK): Define.
30 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
31 (ENABLE_EXECUTE_STACK): Remove.
32 (HAVE_ENABLE_EXECUTE_STACK): Define.
33 [IN_LIBGCC2]: Don't include <windows.h>.
34 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
35 (HAVE_ENABLE_EXECUTE_STACK): Define.
36 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
37 (HAVE_ENABLE_EXECUTE_STACK): Define.
38 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
39 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
40 (HAVE_ENABLE_EXECUTE_STACK): Define.
41 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
42 (HAVE_ENABLE_EXECUTE_STACK): Define.
43 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
44 (HAVE_ENABLE_EXECUTE_STACK): Define.
45 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
46 (HAVE_ENABLE_EXECUTE_STACK): Define.
47 * config/alpha/alpha.c (alpha_trampoline_init): Test
48 HAVE_ENABLE_EXECUTE_STACK.
49 * config/i386/i386.c (ix86_trampoline_init): Likewise.
50 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
51 (sparc64_initialize_trampoline): Likewise.
52 * libgcc2.c [L_enable_execute_stack]: Remove.
53 * system.h (ENABLE_EXECUTE_STACK): Poison.
54 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
55 * doc/tm.texi: Regenerate.
56 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
58 2011-06-09 Jakub Jelinek <jakub@redhat.com>
61 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
62 variable. After resetting and rescanning insn continue with previous
65 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
67 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
68 (gcc_cv_ld_hidden): Likewise.
69 * configure: Regenerate.
70 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
71 (ix86_stack_protect_fail): Mark unused.
72 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
73 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
74 [TARGET_MACHO]: Don't define.
75 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
76 (TARGET_STACK_PROTECT_FAIL): Likewise.
77 (rs6000_stack_protect_fail): Mark unused.
78 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
79 USE_LINKONCE_INDIRECT.
80 Don't emit .hidden expicitly.
82 2011-06-08 Andi Kleen <ak@linux.intel.com>
84 * varasm.c (get_section): Print location of other conflict
85 for section conflicts.
87 2011-06-08 Andi Kleen <ak@linux.intel.com>
89 * config/i386/driver-i386.c (host_detect_local_cpu):
90 Add model 0x2d Intel CPU.
92 2011-06-08 Andi Kleen <ak@linux.intel.com>
94 * reginfo.c (global_regs_decl): Add.
95 (globalize_reg): Add decl parameter. Compute location.
96 Pass location to warnings and add inform. Store decl
98 * rtl.h (globalize_reg): Update prototype.
99 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
101 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
103 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
105 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
108 * config/sh/predicates.md (general_movsrc_operand): Check
109 mode for memory with indexed address for QI and HImode.
110 (general_movdst_operand): Likewise.
112 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
114 * doc/objc.texi (Traditional GNU Objective-C runtime API):
117 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
119 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
120 (num_ssa_operands): Likewise.
121 (op_iter_init_phiuse): Forward-declare.
122 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
124 2011-06-08 Nick Clifton <nickc@redhat.com>
126 * doc/invoke.texi (ARM Options): Update description of
129 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
131 * config/i386/driver-i386.c (host_detect_local_cpu): Support
132 unknown Intel family 0x6 CPUs.
134 2011-06-08 Martin Jambor <mjambor@suse.cz>
136 * tree-sra.c (mark_rw_status): Removed.
137 (analyze_access_subtree): New parameter parent instead of
138 mark_read and mark_write, propagate from that.
140 2011-06-08 Julian Brown <julian@codesourcery.com>
142 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
143 for double-precision helper functions in hard-float mode if only
144 single-precision arithmetic is supported in hardware.
146 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
148 PR rtl-optimization/49303
149 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
150 code_motion_path_driver returned 0 or 1.
151 (sel_region_finish): Clear h_d_i_d.
153 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
155 * config/sh/sh.c (prepare_move_operands): Set pic register
156 appropriately for global and local dynamic tls models even
157 if flag_pic is unset.
159 2011-06-07 Jason Merrill <jason@redhat.com>
161 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
163 2011-06-07 Xinliang David Li <davidxl@google.com>
164 * passes.c (enable_disable_pass): Handle assembler name.
165 (is_pass_explicitly_enabled_or_disabled): Ditto.
167 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
169 PR tree-optimization/48497
170 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
172 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
174 PR tree-optimization/46728
175 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
176 to use gimple_val_nonnegative_real_p.
177 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
178 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
180 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
182 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
184 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
186 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
189 2011-06-07 Richard Guenther <rguenther@suse.de>
191 * stor-layout.c (initialize_sizetypes): Initialize all
192 sizetypes based on target definitions.
193 (set_sizetype): Remove.
194 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
195 * tree.h (set_sizetype): Remove.
197 2011-06-07 Nick Clifton <nickc@redhat.com>
199 * config.gcc: Unify V850 architecture options and add support for
200 newer V850 architectures.
201 * config/v850/t-v850e: Delete.
203 2011-06-07 Richard Guenther <rguenther@suse.de>
205 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
206 Call set_sizetype from here.
208 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
210 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
211 (*maddhisi4tb, *maddhisi4tt): New define_insns.
213 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
214 Andrew Stubbs <ams@codesourcery.com>
216 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
218 * doc/md.texi (Canonicalization of Instructions): Document widening
219 multiply canonicalization.
221 2011-06-07 Jakub Jelinek <jakub@redhat.com>
223 PR gcov-profile/49299
224 * value-prof.c (gimple_ic): Don't assume icall has
227 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
229 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
231 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
232 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
233 vect_recog_pow_pattern): Likewise.
234 (vect_pattern_recog_1): Remove declaration.
235 (widened_name_p): Remove declaration. Add new argument to specify
236 whether to check that both types are either signed or unsigned.
237 (vect_recog_widen_mult_pattern): Update documentation. Handle
238 unsigned patterns and multiplication by constants.
239 (vect_pattern_recog_1): Update vect_recog_func references. Use
240 statement information from the statement returned from pattern
242 (vect_pattern_recog): Update vect_recog_func reference.
243 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
244 multiplication by a constant use the type of the other operand.
246 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
248 PR rtl-optimization/49145
249 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
251 2011-06-06 Jakub Jelinek <jakub@redhat.com>
254 * dwarf2out.c (native_encode_initializer): Decrement count in each
258 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
262 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
263 if stmt folded into nothing.
264 * tree-inline.c (fold_marked_statements): If a builtin at the
265 end of a bb folded into nothing, just update cgraph edges
267 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
268 to be NULL. Don't compute count and frequency if new_call is NULL.
270 2011-06-04 Diego Novillo <dnovillo@google.com>
272 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
273 (cgraph.o): Likewise.
274 (cgraphunit.o): Likewise.
275 * cgraphunit.c: Include lto-streamer.h
276 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
278 * lto-streamer-in.c (unpack_value_fields): Call
279 streamer_hooks.unpack_value_fields if set.
280 (lto_materialize_tree): For unhandled nodes, first try to
281 call lto_streamer_hooks.alloc_tree, if it exists.
282 (lto_input_ts_decl_common_tree_pointers): Move reading of
283 DECL_INITIAL to lto_streamer_read_tree.
284 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
285 (lto_streamer_read_tree): New.
286 (lto_reader_init): Rename from lto_init_reader.
287 Move initialization code to lto/lto.c.
288 * lto-streamer-out.c (pack_value_fields): Call
289 streamer_hooks.pack_value_fields if set.
290 (lto_output_tree_ref): For tree nodes that are not
291 normally indexable, call streamer_hooks.indexable_with_decls_p
293 (lto_output_ts_decl_common_tree_pointers): Move handling
294 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to
295 lto_streamer_write_tree.
296 (lto_output_tree_header): Call streamer_hooks.is_streamable
297 instead of lto_is_streamable.
298 Call lto_streamer_hooks.output_tree_header if set.
299 (lto_write_tree): Call lto_streamer_hooks.write_tree if
301 (lto_streamer_write_tree): New.
302 (lto_output): Call lto_streamer_init directly.
303 (lto_writer_init): Remove.
304 * lto-streamer.c (streamer_hooks): New.
305 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
306 instead of lto_preload_common_nodes.
307 (lto_is_streamable): Move from lto-streamer.h
308 (lto_streamer_hooks_init): New.
309 (streamer_hooks): New.
310 (streamer_hooks_init): New.
311 * lto-streamer.h (struct output_block): Forward declare.
312 (struct lto_input_block): Likewise.
313 (struct data_in): Likewise.
314 (struct bitpack_d): Likewise.
315 (struct streamer_hooks): Declare.
316 (streamer_hooks): Declare.
317 (lto_streamer_hooks_init): Declare.
318 (lto_streamer_write_tree): Declare.
319 (lto_streamer_read_tree): Declare.
320 (streamer_hooks_init): Declare.
321 (lto_is_streamable): Move to lto-streamer.c
323 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
325 * longlong.h (smul_ppmm): The resulting register pair contains the
326 higher order word first.
328 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
330 PR tree-optimization/46728
331 * builtins.c (powi_table): Remove.
332 (powi_lookup_cost): Remove.
334 (expand_powi_1): Remove.
335 (expand_powi): Remove.
336 (expand_builtin_pow_root): Remove.
337 (expand_builtin_pow): Remove.
338 (expand_builtin_powi): Eliminate handling of constant exponent.
339 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
341 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
343 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
345 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
347 * dce.c (reset_unmarked_insns_debug_uses): New.
348 (delete_unmarked_insns): Skip debug insns.
349 (prescan_insns_for_dce): Likewise.
350 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
351 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
352 active reg can be found.
353 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
354 (convert_regs_1): Use it.
356 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
358 * tree-pretty-print.c (dump_function_header): Add flags.
359 Don't dump decl_uid with nouid.
360 * tree-pretty-print.h (dump_function_header): Adjust.
361 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
362 * passes.c (pass_init_dump_file): Pass dump_flags on.
363 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
365 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
368 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
370 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
372 PR tree-optimization/49243
373 * calls.c (setjmp_call_p): Also check if fndecl has the
374 returns_twice attribute.
376 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
378 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
381 2011-06-06 Richard Henderson <rth@redhat.com>
382 Georg-Johann Lay <avr@gjlay.de>
385 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
387 * config/avr/avr.md ("insv"): New insn expander.
388 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
389 "*insv.not.io", "*insv.reg"): New insns.
391 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
394 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct
395 predicate to nonimmediate_operand from memory_operand for the
396 operand that is to be forced to memory by the expander. Lose
399 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
401 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
402 EH return when delayed branches are disabled.
404 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
406 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
407 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
409 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
410 Simplify MODE_V1DF and MODE_V2SF handling.
411 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
412 Simplify MODE_SF handling.
414 2011-06-04 Jan Hubicka <jh@suse.cz>
416 PR tree-optimization/48893
417 PR tree-optimization/49091
418 PR tree-optimization/49179
419 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
422 2011-06-04 Jan Hubicka <jh@suse.cz>
425 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args bitmaps.
427 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
429 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
431 2011-06-04 Jakub Jelinek <jakub@redhat.com>
434 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
435 to be strictly smaller than 1 << shiftcount.
437 2011-06-04 Jan Hubicka <jh@suse.cz>
439 PR tree-optimize/48929
440 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
443 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
446 * calls.c (emit_call_1): Prefer the __builtin declaration of
449 2011-06-03 Diego Novillo <dnovillo@google.com>
451 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
452 (lto_input_tree_pointers): Likewise.
453 * lto-streamer-out.c (pack_value_fields): Likewise.
454 (lto_output_tree_pointers): Likewise.
455 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
456 and OPTIMIZATION_NODE.
458 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
460 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
461 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
462 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
463 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
464 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
465 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
466 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
467 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
468 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
469 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
470 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
471 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
472 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
473 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
474 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
475 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
476 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
477 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
478 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
479 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
480 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
481 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
482 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
483 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
484 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
485 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
486 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
487 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
488 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
489 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
490 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
491 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
492 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
493 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
494 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
495 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
496 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
497 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
498 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
499 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
500 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
501 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
502 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
503 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
504 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
505 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
506 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
507 * system.h (MD_UNWIND_SUPPORT): Poison.
508 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
509 * doc/tm.texi: Regenerate.
510 * unwind-dw2.c: Include md-unwind-support.h instead of
512 * config/ia64/unwind-ia64.c: Likewise.
513 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
515 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
517 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
519 2011-06-03 Richard Henderson <rth@redhat.com>
520 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
522 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
523 (sigill_hdlr): Correct insn, insn size.
524 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
526 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
528 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
530 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
531 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
532 * config/mips/t-iris: Remove.
533 * config/mips/t-irix6: New file.
534 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
536 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
538 * Makefile.in (LIB2ADDEHDEP): Remove.
539 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
540 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
541 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
542 * config/t-darwin (LIB2ADDEHDEP): Remove.
543 * config/t-freebsd (LIB2ADDEHDEP): Remove.
544 * config/t-linux (LIB2ADDEHDEP): Remove.
546 2011-06-03 Diego Novillo <dnovillo@google.com>
548 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
549 (lto_register_var_decl_in_symtab): Likewise.
550 (lto_register_function_decl_in_symtab): Likewise.
551 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
552 logic to uniquify_nodes.
554 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
556 * config/alpha/t-osf5: Remove.
557 * config/alpha/t-osf-pthread: Remove.
558 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
559 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
561 2011-06-03 Julian Brown <julian@codesourcery.com>
563 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
564 (strongarm1110): Use strongarm tuning.
565 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
566 * config/arm/arm.c (arm_strongarm_tune): New.
567 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
568 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
569 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
570 setting, using previous defaults or 1 for Cortex-A5.
571 (arm_option_override): Set max_insns_skipped from current tuning.
573 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
575 * doc/install.texi (Options specification): Document --with-specs.
577 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
579 * config/arm/neon.md (orndi3_neon): Actually split it.
581 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
583 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
584 * var-tracking.c (reverse_op): Limite recurse depth to 5.
586 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
589 * target.def (delay_sched2, delay_vartrack): New.
590 * doc/tm.texi.in: Update.
591 * doc/tm.texi: Rebuild.
592 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
593 * var-tracking.c (gate_handle_var_tracking): Likewise.
594 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
595 (bfin_flag_var_tracking): Drop.
596 (output_file_start): Don't save and override flag_var_tracking.
597 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
598 (bfin_reorg): Test original variables.
599 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
600 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
601 (ia64_flag_var_tracking): Drop.
602 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
603 (ia64_file_start): Don't save and override flag_var_tracking.
604 (ia64_override_options_after_change): Ditto
605 flag_schedule_insns_after_reload.
606 (ia64_reorg): Test original variables.
607 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
608 (picochip_flag_var_tracking): Drop.
609 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
610 (picochip_option_override): Don't save and override
611 flag_schedule_insns_after_reload.
612 (picochip_asm_file_start): Ditto flag_var_tracking.
613 (picochip_reorg): Test original variables.
614 * config/spu/spu.c (spu_flag_var_tracking): Drop.
615 (TARGET_DELAY_VARTRACK): Define.
616 (spu_var_tracking): New.
617 (spu_machine_dependent_reorg): Call it.
618 (asm_file_start): Don't save and override flag_var_tracking.
620 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
623 * config/sh/predicates.md (general_movsrc_operand): Return 0
624 for memory and memory subreg of which address is an invalid
625 indexed address for QI and HImode.
626 (general_movdst_operand): Likewise.
628 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
630 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
631 edges only, when there is a non-local label in the function.
632 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
634 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
636 * config/i386/constraints.md (Y3): New register constraint.
637 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
638 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
639 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
640 *sse2_interleave_lowv2df.
642 2011-06-02 Julian Brown <julian@codesourcery.com>
644 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
645 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
646 (arm_cortex_a5_tune): New.
648 2011-06-02 Julian Brown <julian@codesourcery.com>
650 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
651 * config/arm/arm.c (arm_default_branch_cost): New.
652 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
653 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
654 (arm_fa726_tune): Set branch_cost field using
655 arm_default_branch_cost.
656 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
657 current_tune structure.
658 * dojump.c (tm_p.h): Include file.
660 2011-06-02 Julian Brown <julian@codesourcery.com>
662 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
664 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
665 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
666 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
668 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
669 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
670 (arm_fa726te_tune): Add prefer_constant_pool setting.
671 (arm_v6t2_tune, arm_cortex_tune): New.
672 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
673 prefer_constant_pool setting.
675 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
677 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
679 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
680 (*movdf_internal) <case 6,7,8>: Ditto.
682 * config/i386/constraints.md (Y4): New register constraint.
683 * config/i386/sse.md (vec_set<mode>_0): Merge with
684 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
685 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
686 *vec_extractv2di_1_sse.
687 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
688 and *vec_concatv2di_rex64_sse.
690 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
693 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
694 of cgraph_local_info for null before attempting to use it.
696 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
698 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
699 (current_function_dynamic_alloc_count): Delete.
700 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
701 (expand_builtin_nonlocal_goto): Remove obsolete comment.
702 (expand_builtin_update_setjmp_buf): Remove dead code.
703 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
704 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
706 * function.c (instantiate_virtual_regs): Likewise.
707 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
708 for a block with a single abnormal incoming edge.
709 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
710 (SETJMP_VIA_SAVE_AREA): Delete.
711 * config/sparc/sparc-protos.h (load_got_register): Declare.
712 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
713 (load_got_register): Make global.
714 (sparc_frame_pointer_required): Add 'static'.
715 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
716 (sparc_builtin_setjmp_frame_value): New function.
717 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
718 (save_stack_nonlocal): New expander.
719 (restore_stack_nonlocal): Likewise.
720 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
721 (nonlocal_goto_internal): New insn.
722 (goto_handler_and_restore): Delete.
723 (builtin_setjmp_setup): Likewise.
724 (do_builtin_setjmp_setup): Likewise.
726 (builtin_setjmp_receiver): New expander.
728 2011-06-01 David Li <davidxl@google.com>
731 * tree-pretty-print.c (dump_function_header): Format cleanup.
733 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
736 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
737 needed when original operands are used for msw_skip comparison.
739 2011-06-01 Jakub Jelinek <jakub@redhat.com>
742 * var-tracking.c (add_uses, add_stores): Don't call
743 cselib_subst_to_values on ENTRY_VALUE.
745 2011-06-01 Diego Novillo <dnovillo@google.com>
747 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
748 output_record_start with LTO_null instead of output_zero.
749 (lto_output_ts_binfo_tree_pointers): Likewise.
750 (lto_output_tree): Likewise.
751 (output_eh_try_list): Likewise.
752 (output_eh_region): Likewise.
753 (output_eh_lp): Likewise.
754 (output_eh_regions): Likewise.
755 (output_bb): Likewise.
756 (output_function): Likewise.
757 (output_unreferenced_globals): Likewise.
758 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
759 instead of NUM_TREE_CODES.
760 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
761 (lto_output_int_in_range): Change << to >> when shifting VAL.
763 2011-06-01 Diego Novillo <dnovillo@google.com>
765 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
766 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
768 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
771 * optabs.h (valid_multiword_target_p): Declare.
772 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
773 doing multi-word operations.
774 * optabs.c (expand_binop): Likewise.
775 (expand_doubleword_bswap): Likewise.
776 (expand_absneg_bit): Likewise.
777 (expand_unop): Likewise.
778 (expand_copysign_bit): Likewise.
779 (multiword_target_p): New function.
781 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
783 PR rtl-optimization/48830
784 PR rtl-optimization/48808
785 PR rtl-optimization/48792
786 * reload.c (push_reload): Check contains_reg_of_mode.
787 * reload1.c (strip_paradoxical_subreg): New function.
788 (gen_reload_chain_without_interm_reg_p): Use it to handle
790 (emit_output_reload_insns, gen_reload): Likewise.
792 2011-06-01 David Li <davidxl@google.com>
794 * predict.c : Change pass name
797 * tree-profile.c: Ditto.
800 2011-06-01 David Li <davidxl@google.com>
802 * tree-pretty-print.c (dump_function_header): New function.
803 * final.c (rest_of_clean_state): Use header dumper.
804 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
805 * passes.c (pass_init_dump_file): Use header dumper.
807 2011-06-01 Jakub Jelinek <jakub@redhat.com>
809 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
810 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
811 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
813 (mem_loc_descriptor): Use them.
815 * var-tracking.c (create_entry_value): New function.
816 (vt_add_function_parameter): Use it.
818 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
820 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
821 Include <signal.h>, <ucontext.h>.
822 (sigill_caught): Define.
823 (sigill_hdlr): New function.
824 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
825 insns can be executed.
826 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
827 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
829 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
831 * config/t-slibgcc-darwin: Move to ...
832 * config/t-slibgcc-dummy: ... this. Clarify comments.
833 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
834 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
835 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
836 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
837 Remove i386/t-crtstuff from tmake_file.
838 (i[34567]86-*-solaris2*): Remove t-svr4,
839 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
841 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
842 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
843 sparc/t-crtfm from tmake_file.
844 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
845 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
847 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
848 * config/i386/t-nwld (SHLIB_LINK): Remove.
849 * config/i386/t-rtems-i386: Rename to ...
850 * config/i386/t-rtems: ... this.
851 ($(T)crti.o, $(T)crtn.o): Remove.
852 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
853 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
854 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
855 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
856 EXTRA_MULTILIB_PARTS): Remove.
857 * config/sparc/t-sol2-64: Likewise.
858 * config/sparc/t-sol2: Remove.
859 * config/sparc/t-crtin: Remove.
860 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
861 * config/i386/gmon-sol2.c: Remove.
862 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
863 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
864 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
865 * config/i386/sol2-gc1.asm: Remove.
866 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
867 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
868 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
869 * config/t-slibgcc-sld: Remove.
871 2011-06-01 Jakub Jelinek <jakub@redhat.com>
873 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
874 base_type_for_mode with op_mode instead of mode.
876 2011-06-01 Paul Brook <paul@cpodesourcery.com>
878 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
880 * config/arm/arm-tune.md: Regenerate.
881 * config/arm/arm-tables.opt: Regenerate.
882 * config/arm/arm.c (FL_DIV): Rename...
883 (FL_THUMB_DIV): ... to this.
884 (FL_ARM_DIV): Define.
885 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
886 (arm_arch_hwdiv): Remove.
887 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
888 (arm_issue_rate): Add cortexr5.
889 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
890 __ARM_ARCH_EXT_IDIV__.
891 (TARGET_IDIV): Define.
892 (arm_arch_hwdiv): Remove.
893 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
894 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
895 (divsi3, udivsi3): New patterns.
896 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
897 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
899 2011-06-01 Martin Jambor <mjambor@suse.cz>
901 * ipa-utils.c (ipa_dfs_info): New field scc_no.
902 * ipa-utils.c (searchc): Set scc_no.
904 2011-06-01 Martin Jambor <mjambor@suse.cz>
906 * ipa-utils.c (searchc_env): New field allow_overwritable.
907 (searchc): do not ignore edges to overwritable nodes if indicated
908 by env->allow_overwritable.
909 (ipa_reduced_postorder): Set env.allow_overwritable.
911 2011-06-01 Richard Guenther <rguenther@suse.de>
913 * tree.c (free_lang_data): Do not reset boolean_type_node nor
915 * lto-streamer.c (lto_record_common_node): Take node pointer,
916 do not register types.
917 (lto_preload_common_nodes): Explicitly skip preloading nodes
918 that differ between frontends.
920 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
922 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
925 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
927 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
928 parameter value for dump. Dump cost on outermost call only.
929 (rs6000_memory_move_cost): Dump cost on outermost call only.
931 2011-05-31 Jakub Jelinek <jakub@redhat.com>
933 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
934 DW_OP_GNU_convert ops.
936 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
937 cselib_preserve_constants.
938 (cselib_lookup_1): If cselib_preserve_constants,
939 a new VALUE is being created for REG and there is a VALUE for the
940 same register in wider mode, add another loc with lowpart SUBREG of
942 (cselib_subst_to_values): Handle ENTRY_VALUE.
943 * var-tracking.c (replace_expr_with_values): Return NULL for
945 * dwarf2out.c (convert_descriptor_to_signed): New function.
946 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
947 instead of two shifts.
948 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
949 the right mode if needed.
950 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
951 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
952 convert_descriptor_to_signed.
953 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
954 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
957 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
959 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
961 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
962 of X87MODEI12 and SWI48x instead of SSEMODEI24.
963 (SWI248x): New mode iterator, rename from X87MODEI.
964 (X87MODEI): Remove mode iterator.
968 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
970 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
971 * doc/invoke.texi: Document max-vartrack-expr-depth.
972 * var-tracking.c (EXPR_DEPTH): New.
973 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
975 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
977 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
978 * config/i386/sse.md: Add n to negated FMA pattern names.
980 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
982 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
984 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
986 * gengtype-state.c (read_state_params_structs): Initialize previous.
988 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
990 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
991 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
993 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
995 * config/i386/i386.md (*movtf_internal): Avoid allocating general
996 registers. Penalize F*r->o alternative to prevent partial memory
997 stalls. Slightly penalize *roF->*r alternative. Generate SSE
998 CONST_DOUBLE immediates when optimizing function for size. Do not move
999 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1000 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1001 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1002 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1004 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1006 (fp_register_operand splitters): Use fp_register_operand
1007 constraint. Do not use FP_REG_P in insn condition.
1008 (any_fp_register_operand splitters): Use any_fp_register_operand
1009 constraint. Do not use ANY_FP_REG_P in insn condition.
1011 2011-05-31 Jan Hubicka <jh@suse.cz>
1013 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1014 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1015 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1016 (lto_output_edge): Use output_enum and var_len_unsigned.
1017 (lto_output_varpool_node): Likewise.
1018 (input_overwrite_node): Do not take resolution parameter;
1019 extract it from a bitpack.
1020 (input_node): Do not read resolution; use input_enum and
1022 (input_varpool_node): Likewise.
1023 (input_edge): Likewise.
1024 (input_cgraph_1): Likewise.
1026 2011-05-31 Richard Guenther <rguenther@suse.de>
1028 * gimple.c (gimple_register_canonical_type): Do not register
1029 any types via gimple_register_type.
1031 2011-05-31 Jan Hubicka <jh@suse.cz>
1033 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1036 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1038 PR rtl-optimization/49235
1039 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1040 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1042 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1044 PR tree-optimization/49093
1045 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1048 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1051 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1052 for concrete functions containing the code of cloned functions.
1054 2011-05-31 Richard Guenther <rguenther@suse.de>
1056 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1058 (forward_propagate_into_comparison_1): ... this.
1059 (forward_propagate_comparison): Rename to ...
1060 (forward_propagate_into_comparison): ... this. Split out
1061 real forward propagation code to ...
1062 (forward_propagate_comparison): ... this.
1063 (forward_propagate_into_gimple_cond): Remove looping.
1064 (forward_propagate_into_cond): Likewise.
1065 (simplify_not_neg_expr): Return whether we have done something.
1066 (simplify_gimple_switch): Likewise.
1067 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1068 (ssa_forward_propagate_and_combine): ... this. Re-structure
1069 to do a forward forward-propagation walk on BBs and a backward
1070 stmt combining walk on BBs. Consistently re-scan changed statements.
1071 (pass_forwprop): Adjust.
1073 2011-05-30 Ian Lance Taylor <iant@google.com>
1075 * godump.c (go_format_type): Correct length of name added to
1076 obstack for anonymous field.
1078 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1081 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1082 part of the second operand is 0.
1084 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1086 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1087 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1088 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1089 (*movdf_internal_rex64): Do not penalize F->r alternative.
1090 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1091 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1092 when optimizing function for size. Do not move CONST_DOUBLEs
1093 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1094 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1095 SUBREGs. Do not check for MEM_P operands in the insn condition,
1096 check for ANY_FP_REGNO_P instead.
1097 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1098 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1100 * config/i386/i386.c (ix86_option_override_internal): Do not
1101 set TARGET_INTEGER_DFMODE_MOVES here.
1103 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1106 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1108 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1110 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1111 DW_TAG_rvalue_reference_type even for
1112 -gdwarf-4 -fno-debug-types-section.
1114 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1116 PR tree-optimization/46728
1117 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1118 (build_and_insert_binop): New.
1119 (gimple_expand_builtin_pow): Reorder args for
1120 build_and_insert_call; use build_and_insert_binop; add more
1121 optimizations for fractional exponents.
1123 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1128 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1130 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1132 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1133 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1134 TS_BASE instead of TS_COMMON.
1135 * varasm.c (assemble_name): Remove assert.
1137 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1139 * config.gcc: Keep obselete list sorted.
1141 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1142 Eric Botcazou <ebotcazou@adacore.com>
1144 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1145 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1146 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1147 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1148 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1150 2011-05-30 Richard Guenther <rguenther@suse.de>
1152 * gimple.c (gimple_types_compatible_p_1): Compare record
1153 and union type members properly.
1155 2011-05-30 Richard Guenther <rguenther@suse.de>
1157 PR tree-optimization/49210
1158 * ipa-split.c (split_function): Care for the case where the call
1159 result is not trivially convertible to the result holding variable.
1161 2011-05-30 Richard Guenther <rguenther@suse.de>
1163 PR tree-optimization/49218
1164 * tree-vrp.c (adjust_range_with_scev): Properly check whether
1167 2011-05-30 Richard Guenther <rguenther@suse.de>
1169 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1170 New function split out from ...
1171 (forward_propagate_into_gimple_cond): ... here. Adjust.
1172 (forward_propagate_into_cond): Likewise.
1173 (forward_propagate_comparison): Also propagate into
1174 comparisons on assignment RHS. Change return value to
1175 behave similar to forward_propagate_into_cond.
1176 (tree_ssa_forward_propagate_single_use_vars): Handle
1177 strict-overflow warnings properly for forward_propagate_comparison.
1179 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1181 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1183 * configure: Regenerate.
1185 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
1187 PR tree-optimization/49199
1188 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1189 non-reduction operands are either defined in the loop or by induction.
1191 2011-05-29 Xinliang David Li <davidxl@google.com>
1193 * opts-global.c (handle_common_deferred_options): Handle new options.
1194 * passes.c (register_one_dump_file): Call register_pass_name.
1195 (execute_one_pass): Check explicit enable/disable flag.
1196 (passr_hash): New function.
1198 (register_pass_name): Ditto.
1199 (get_pass_by_name): Ditto.
1202 (enable_pass): Ditto.
1203 (disable_pass): Ditto.
1204 (is_pass_explicitly_enabled_or_disabled): Ditto.
1206 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
1208 * config/i386/i386.md (*movoi_internal_avx): Use
1209 standard_sse_constant_opcode for alternative 0.
1210 (*movti_internal_sse): Ditto.
1211 (*movti_internal_rex64): Use standard_sse_constant_opcode for
1213 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1215 (*movsi_internal): Ditto.
1216 (*movdi_internal): Ditto. Add ssecvt type moves.
1218 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
1221 * rtlanal.c (simplify_subreg_regno): Adjust comment.
1223 2011-05-29 Jakub Jelinek <jakub@redhat.com>
1225 PR rtl-optimization/49095
1226 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1227 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1229 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1232 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1233 recurse_p argument. Only follow register copies if it is set,
1234 and prevent mips_find_pic_call_symbol from recursing.
1235 (mips_find_pic_call_symbol): Add a recurse_p argument.
1236 Pass it to mips_pic_call_symbol_from_set.
1237 (mips_annotate_pic_calls): Update accordingly.
1239 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
1241 * emit-rtl.c (try_split): Use a loop to search for
1242 NOTE_INSN_CALL_ARG_LOCATIONs.
1244 2011-05-29 Richard Guenther <rguenther@suse.de>
1246 PR tree-optimization/49217
1247 * ipa-pure-const.c (propagate_pure_const): Fix typos.
1249 2011-05-28 Jan Hubicka <jh@suse.cz>
1251 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1253 (string_slot_free): Remove
1254 (create_output_block): Initialize obstack.
1255 (destroy_output_block): Free obstack.
1256 (lto_string_index): Add PERSISTENT parameter; do not duplicate
1257 the string unless it needs to be added into the hash.
1258 (lto_output_string_with_length): Add persistent attribute;
1259 handle NULL strings.
1260 (lto_output_string): Add PERSISTENT parameter.
1261 (output_string_cst, output_identifier): Simplify.
1262 (lto_output_location_bitpack): Update.
1263 (lto_output_builtin_tree): Update.
1264 * lto-streamer.h (struct output_block): Add obstack.
1265 (lto_output_string, lto_output_string_with_length): Remove
1266 declarations; functions are static now.
1268 2011-05-28 Jan Hubicka <jh@suse.cz>
1270 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1271 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1272 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1273 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1274 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1275 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1276 unpack_ts_decl_with_vis_value_fields,
1277 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1278 lto_get_builtin_tree): Use enum and variable length i/o.
1279 * basic-block.h (profile_status_d): Add PROFILE_LAST.
1280 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1282 (bp_pack_enum, bp_unpack_enum): New macros.
1284 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1286 * genrecog.c: Remove redundant forward declarations.
1288 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1290 * config.gcc: Deprecate mips*-*-openbsd*.
1292 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
1295 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1298 2011-05-27 Andrew Pinski <pinskia@gmail.com>
1301 * gengtype.c (vec_prefix_type): New function.
1302 (note_def_vec): Use vec_prefix_type and change the length
1303 attribute to be based on the prefix.
1304 * vec.c: Include coretypes.h before vec.h.
1305 (struct vec_prefix): Remove.
1306 (vec_gc_p_reserve): Change the offsetof to sizeof.
1307 (vec_gc_p_reserve_exact): Likewise.
1308 (vec_heap_p_reserve): Likewise.
1309 (vec_heap_p_reserve_exact): Likewise.
1310 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1311 (vec_stack_p_reserve): Change the offsetof to sizeof.
1312 (vec_stack_p_reserve_exact): Likewise.
1313 * vec.h (struct vec_prefix): New struct definition.
1314 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1315 (VEC_T_GTY(T,B)): Likewise.
1316 (DEF_VEC_FUNC_P(T)): Use prefix field.
1317 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1318 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1320 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1322 PR tree-optimization/46728
1323 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1324 (powi_as_mults): Add gimple_set_location.
1325 (build_and_insert_call): New.
1326 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1327 0.5, 0.25, 0.75, 1./3., or 1./6.
1329 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
1331 * doc/contrib.texi: Update copyright years.
1332 (Contributors): Add Zdenek Sojka.
1334 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
1336 * c-decl.c (c_push_function_context): Copy the current statement
1338 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1339 (finish_struct): Call building_stmt_list_p instead of checking
1341 * c-parser.c (c_parser_postfix_expression): Likewise.
1342 * c-typeck.c (c_end_compound_stmt): Likewise.
1343 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1344 * tree-iterator.c (stmt_list_cache): Change to a VEC.
1345 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1346 (free_stmt_list): Likewise.
1347 * tree.h (struct tree_statement_list): Include typed_tree instead
1349 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1350 as TS_TYPED instead of TS_COMMON.
1352 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1353 Uros Bizjak <ubizjak@gmail.com>
1355 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1356 (HAVE_AS_IX86_TLSGDPTL): Define.
1357 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1358 (HAVE_AS_IX86_TLSLDMPLT): Define.
1359 * configure: Regenerate.
1360 * config.in: Regenerate.
1361 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1362 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1363 TARGET_SUN_TLS, use @tlsgdplt or @plt.
1364 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1365 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1367 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1369 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1371 * sched-int.h (struct _haifa_deps_insn_data): New members cond
1373 (INSN_COND, INSN_REVERSE_COND): New macros.
1374 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1376 (sched_get_condition_with_rev): Cache the results, and look them up
1378 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1379 are clobbered by the current insn.
1380 * target.def (exposed_pipline): New sched data hook.
1381 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1382 * doc/tm.texi: Regenerate.
1384 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1386 PR tree-optimization/49170
1387 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
1390 2011-05-27 Richard Guenther <rguenther@suse.de>
1393 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1396 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
1398 * haifa-sched.c (sched_scan_info): Remove.
1399 (schedule_block): Call sched_extend_luids rather than sched_init_luids
1401 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1403 (sched_scan): Remove.
1404 (sched_extend_luids): Renamed from luids_extend_insn and no longer
1405 static. All callers changed.
1406 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1407 static. All callers changed.
1408 (sched_init_luids): Remove all arguments except the first. All
1409 callers changed. Don't use sched_scan.
1410 (haifa_init_h_i_d): Likewise.
1411 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1412 manually rather than using sched_init_luids. Likewise with
1413 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1414 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1415 rather than sched_init_luids with NULL args.
1416 * sel-sched-ir.c (new_insns): Remove variable.
1417 (sched_scan): New static function, previously in haifa-sched.c. Remove
1418 all arguments but the first two; all callers changed.
1419 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1420 rather than sched_init_luids.
1421 (sel_init_bbs): Remove second argument. All callers changed.
1422 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1423 with NULL arguments.
1424 (create_insn_rtx_from_pattern): Likewise.
1425 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1426 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1427 (sched_init_insn_luid, sched_extend_luids): Declare.
1428 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1431 2011-05-27 Richard Guenther <rguenther@suse.de>
1434 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1435 A CMP B ? (T) true : (T) false for non-integral types T again.
1437 2011-05-27 Jan Hubicka <jh@suse.cz>
1439 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1440 so 0 means NULL string.
1441 (lto_output_string_with_length): ... here.
1442 (lto_output_string, output_string_cst, output_identifier): Update
1443 handling of NULL strings.
1444 (lto_output_location_bitpack): New function.
1445 (lto_output_location): Use it.
1446 (lto_output_tree_ref): Use output_record_start.
1447 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1449 * lto-streamer-in.c (string_for_index): Break out from ...; offset
1451 (input_string_internal): ... here;
1452 (input_string_cst, input_identifier, lto_input_string): Update handling
1454 (lto_input_location_bitpack): New function
1455 (lto_input_location): Use it.
1456 (unpack_ts_type_common_value_fields): Pack align & alias in var len
1458 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1459 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1460 (bp_pack_value): Sanity check the value range.
1461 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1463 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1466 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
1468 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1469 call_arg_location instructions down the floor.
1471 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
1473 PR rtl-optimization/49154
1474 * ira.c (setup_pressure_classes): Process class without sublcasses
1475 as a candidate for pressure classes.
1477 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
1479 PR rtl-optimization/48575
1480 * genrecog.c (position_type): New enum.
1481 (position): New structure.
1482 (decision): Use position structure instead of a string.
1483 (root_pos, peep2_insn_pos_list): New variables.
1484 (next_position, compare_positions): New functions.
1485 (new_decision): Use position structures instead of strings.
1486 (maybe_both_true): Likewise.
1487 (change_state): Likewise.
1488 (write_tree): Likewise.
1489 (make_insn_sequence): Likewise.
1491 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1493 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1494 TS_BASE instead of TS_COMMON.
1495 (find_decls_types_r): Check for TS_TYPED structure before looking at
1497 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1499 (BLOCK_CHAIN): Use new chain field.
1501 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
1503 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1504 moves expensive on Power7 also.
1506 2011-05-26 Richard Guenther <rguenther@suse.de>
1508 * fold-const.c (fold_unary_loc): Remove bogus code.
1510 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1512 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1514 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1515 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1516 TS_BASE instead of TS_COMMON.
1517 * varasm.c (assemble_name): Remove assert.
1519 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1521 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1523 * libgcc-std.ver: Delete file.
1525 2011-05-26 Richard Guenther <rguenther@suse.de>
1527 PR tree-optimization/48702
1528 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1529 only when we know the base address is within bounds.
1530 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1531 assume the base address of TARGET_MEM_REFs is in bounds.
1533 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1536 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1537 declaration in TARGET_SOLARIS.
1539 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
1541 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1542 The instruction is then expanded explicitly.
1543 (supported_compare): Callable instruction.
1544 (compare): Likewise.
1546 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1549 * gimplify.c (shortcut_cond_r): Don't special case
1550 COND_EXPRs if they have void type on one of their arms.
1552 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
1554 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1555 to reduce duplication, and to achieve a slightly more logical order
1558 2011-05-26 Jakub Jelinek <jakub@redhat.com>
1560 PR tree-optimization/49161
1561 * tree-vrp.c (struct case_info): New type.
1562 (compare_case_labels): Sort case_info structs instead of
1563 trees, and not primarily by CASE_LABEL uids but by
1564 label_for_block indexes.
1565 (find_switch_asserts): Put case labels into struct case_info
1566 array instead of TREE_VEC, adjust sorting, compare label_for_block
1567 values instead of CASE_LABELs.
1569 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1571 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1572 ("orndi3_neon"): Likewise.
1573 ("bic<mode>3_neon"): Likewise.
1575 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
1577 PR tree-optimization/49038
1578 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1579 Ensure at least one epilogue iteration if required by data
1581 * tree-vectorizer.h (struct _loop_vec_info): Add new field
1582 to mark loops that require peeling for gaps.
1583 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1584 (vect_get_known_peeling_cost): Take peeling for gaps into
1586 (vect_transform_loop): Generate epilogue if required by data
1588 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1589 loop as requiring an epilogue if there are gaps in the end of
1592 2011-05-25 Ian Lance Taylor <iant@google.com>
1594 * godump.c (go_format_type): Output the first field with a usable
1597 2011-05-25 Ian Lance Taylor <iant@google.com>
1599 * godump.c (go_format_type): Check for invalid type names, pointer
1600 target types, and struct field types.
1602 2011-05-25 Jason Merrill <jason@redhat.com>
1604 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1606 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
1608 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1610 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1612 * config/i386/i386.md (*movqi_extv_1)): Put back
1613 "register_operand" check in "type" calculation.
1614 (*movqi_extzv_2): Likewise.
1616 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1618 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1620 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1623 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1624 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1625 __divxc3, __divtc3): Wrap definitions in #ifndef.
1627 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1630 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1631 "register_operand" check and replace q_regs_operand with
1632 QIreg_operand in "type" calculation.
1633 (*movqi_extv_1): Likewise.
1634 (*movqi_extzv_2_rex64): Likewise.
1635 (*movqi_extzv_2): Likewise.
1637 * config/i386/predicates.md (QIreg_operand): New.
1639 2011-05-25 Richard Guenther <rguenther@suse.de>
1641 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1642 type-based offset disambiguation, streamline MEM_REF and
1643 TARGET_MEM_REF handling.
1645 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
1647 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1648 (bdesc_special_args): Add pause intrinsic.
1650 * config/i386/i386.md (UNSPEC_PAUSE): New.
1653 * config/i386/ia32intrin.h (__pause): Likewise.
1655 * doc/extend.texi (X86 Built-in Functions): Add documentation for
1658 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1660 PR tree-optimization/46728
1661 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1662 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1664 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
1666 * tree.h (struct tree_exp): Inherit from struct tree_typed.
1667 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1668 instead of TS_COMMON.
1670 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
1672 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1673 LIBGCC2_GNU_PREFIX is defined.
1675 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1676 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1677 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1678 __clz_tab): Define using __N.
1679 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1680 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1681 * target.def (libfunc_gnu_prefix): New hook.
1682 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1683 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1684 * doc/tm.texi: Regenerate.
1685 * system.h (LIBGCC2_GNU_PREFIX): Poison.
1686 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1688 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1689 (init_optabs): Likewise for the bswap libfuncs.
1690 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1692 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1693 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1694 * libgcc-std.ver: Remove.
1695 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1696 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1698 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1699 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1700 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1701 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1702 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1703 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1704 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1705 * config/fixed-bit.h (FIXED_OP): Define differently depending on
1706 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1707 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1709 2011-05-25 Jan Hubicka <jh@suse.cz>
1711 * lto-streamer-out.c (output_record_start): Use lto_output_enum
1712 (lto_output_tree): Use output_record_start.
1713 * lto-streamer-in.c (input_record_start): Use lto_input_enum
1714 (lto_get_pickled_tree): Use input_record_start.
1715 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1716 (lto_value_range_error): New function.
1717 * lto-streamer.h (lto_value_range_error): Declare.
1718 (lto_output_int_in_range, lto_input_int_in_range): New functions.
1719 (lto_output_enum, lto_input_enum): New macros.
1721 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
1723 * common.opt (flag_stack_usage_info): New variable.
1724 (-Wstack-usage): New option.
1725 * doc/invoke.texi (Warning options): Document -Wstack-usage.
1726 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1727 <OPT_fstack_usage>: Likewise.
1728 * toplev.c (output_stack_usage): Handle -Wstack-usage.
1729 * calls.c (expand_call): Test flag_stack_usage_info variable instead
1730 of flag_stack_usage.
1731 (emit_library_call_value_1): Likewise.
1732 * explow.c (allocate_dynamic_stack_space): Likewise.
1733 * function.c (instantiate_virtual_regs ): Likewise.
1734 (prepare_function_start): Likewise.
1735 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1736 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1737 * config/arm/arm.c (arm_expand_prologue): Likewise.
1738 (thumb1_expand_prologue): Likewise.
1739 * config/avr/avr.c (expand_prologue): Likewise.
1740 * config/i386/i386.c (ix86_expand_prologue): Likewise.
1741 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1742 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1743 * config/mips/mips.c (mips_expand_prologue): Likewise.
1744 * config/pa/pa.c (hppa_expand_prologue): Likewise.
1745 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1746 * config/s390/s390.c (s390_emit_prologue): Likewise.
1747 * config/sh/sh.c (sh_expand_prologue): Likewise.
1748 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1749 * config/spu/spu.c (spu_expand_prologue): Likewise.
1751 2011-05-25 Richard Guenther <rguenther@suse.de>
1753 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1754 (gimple_canonical_types_compatible_p): Likewise.
1756 2011-05-25 Jan Hubicka <jh@suse.cz>
1759 * ipa.c (function_and_variable_visibility): Only add to same
1760 comdat group list if DECL_ONE_ONLY.
1762 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
1764 PR rtl-optimization/49014
1765 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1767 2011-05-25 Jakub Jelinek <jakub@redhat.com>
1770 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1772 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1774 PR rtl-optimization/48757
1775 * ira-build.c (loop_with_eh_edge_p): Rename to
1776 loop_with_complex_edge_p, check edges on complexity, make function
1778 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1781 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1783 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1784 force flag_ira_share_save_slots to 0.
1786 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1788 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1789 (vt_initialize): Set PROLOGUE_BB unconditionally.
1790 Add block comment about CFA_BASE_RTX machinery.
1791 Reset FP_CFA_OFFSET to -1 on all invalid paths.
1792 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1794 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
1797 * c-parser.c (c_parser_objc_class_instance_variables): More robust
1798 parsing of syntax error in ObjC instance variable lists. In
1799 particular, avoid an infinite loop if there is a stray ']'.
1800 Updated error message.
1802 2011-05-24 Ian Lance Taylor <iant@google.com>
1804 * godump.c (go_define): Don't accept a string immediately after
1807 2011-05-24 Ian Lance Taylor <iant@google.com>
1809 * godump.c (struct godump_container): Add invalid_hash field.
1810 (go_format_type): Return false if type is found in invalid_hash.
1811 (go_output_typedef): Add invalid type to invalid_hash.
1812 (go_finish): Create and delete invalid_hash.
1814 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1816 PR tree-optimization/46728
1817 * tree-ssa-math-opts.c (powi_table): New.
1818 (powi_lookup_cost): New.
1820 (powi_as_mults_1): New.
1821 (powi_as_mults): New.
1822 (gimple_expand_builtin_powi): New.
1823 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1824 (gate_cse_sincos): Remove sincos/cexp restriction.
1826 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1829 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1831 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1832 * mips-tdump.c: Likewise.
1834 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
1837 * config/i386/driver-i386.c (host_detect_local_cpu): Always
1838 add -mno-XXX. Handle FMA.
1840 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1842 PR rtl-optimization/48633
1843 * ira-build.c (loop_with_eh_edge_p): New function.
1844 (mark_loops_for_removal): Use it.
1846 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
1848 PR rtl-optimization/48971
1849 * ira.c (setup_pressure_classes): Don't check register move cost
1850 for classes with one registers. Don't add pressure class if there
1851 is a pressure class with the same available hard registers.
1852 Check contains_reg_of_mode. Fix a typo in collecting
1853 temp_hard_regset. Ignore hard registers not belonging to a class.
1855 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
1858 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1860 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
1861 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1863 PR gcov-profile/48845
1864 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1866 2011-05-24 Richard Guenther <rguenther@suse.de>
1868 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1869 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1870 (gimple_types_compatible_p_1): Adjust.
1871 (iterative_hash_canonical_type): Do not bother about complete vs.
1873 (gimple_canonical_types_compatible_p): Likewise.
1875 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1877 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1879 2011-05-24 Richard Guenther <rguenther@suse.de>
1882 * gimple.c (gimple_register_canonical_type): Revert
1884 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
1885 does not for a tree for the case where it matters. Cache
1886 pointer-type alias-sets.
1888 2011-05-24 Joseph Myers <joseph@codesourcery.com>
1890 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
1891 (OBJS): Remove options.o, opts-common.o and prefix.o.
1892 (OBJS-libcommon-target): New.
1893 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
1894 (BACKEND): Include libcommon-target.a.
1895 (MOSTLYCLEANFILES): Include libcommon-target.a.
1896 (libcommon-target.a): New.
1897 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
1900 2011-05-23 Joseph Myers <joseph@codesourcery.com>
1902 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
1903 parts of output shared with the driver.
1904 * optc-gen.awk: Don't generate parts of output not shared with the
1906 * opth-gen.awk: Remove GCC_DRIVER conditionals.
1907 * doc/options.texi (SourcerInclude): Mention options-save.c.
1908 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
1909 (OBJS): Add options-save.o.
1910 (options-save.c, options-save.o): New.
1911 (options.o): Update dependencies.
1912 (gcc-options.o): Remove.
1913 (mostlyclean): Remove options-save.c.
1915 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1918 * dbxout.c: Include cgraph.h.
1919 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
1920 and without value expr, return NULL if no varpool node exists for
1921 it or if it is not needed.
1922 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
1925 * c-decl.c (start_decl): Convert expr to void_type_node.
1927 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
1929 PR rtl-optimization/48826
1930 * emit-rtl.c (try_split): When splitting a call that is followed
1931 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
1933 2011-05-23 Jakub Jelinek <jakub@redhat.com>
1935 * cfgexpand.c (expand_debug_expr): For unused non-addressable
1936 parameters passed in memory prefer using DECL_INCOMING_RTL over
1937 the pseudos it will be copied into.
1939 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
1942 * config/i386/i386.c (ix86_option_override_internal): Save the
1943 initial options after checking vzeroupper.
1945 2011-05-23 David Li <davidxl@google.com>
1947 PR tree-optimization/48988
1948 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
1949 Initialize has_valid_pred for each pred chain.
1951 2011-05-23 Richard Guenther <rguenther@suse.de>
1953 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
1954 (iterative_hash_gimple_type): Always hash type names.
1956 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
1958 * c-typeck.c (build_function_call_vec): Tweak call to
1959 check_function_arguments.
1961 2011-05-23 Richard Guenther <rguenther@suse.de>
1963 PR tree-optimization/49115
1964 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
1965 is not necessarily carried out, do not claim it kills the ref.
1966 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
1968 2011-05-23 Richard Guenther <rguenther@suse.de>
1971 * builtins.c (fold_builtin_memory_op): Be less restrictive about
1972 what pointer types we accept for folding.
1974 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1976 * gthr-gnat.c: Remove.
1977 * gthr-gnat.h: Remove.
1978 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
1979 * config/t-freebsd (LIB2ADDEH): Likewise.
1980 * config/t-linux (LIB2ADDEH): Likewise.
1981 * config/t-sol2 (LIB2ADDEH): Likewise.
1982 * config/ia64/t-vms (LIB2ADDEH): Likewise.
1983 * configure.ac (target_thread_file): Remove gnat handling.
1984 * configure: Regenerate.
1985 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
1987 2011-05-23 Tristan Gingold <gingold@adacore.com>
1988 Eric Botcazou <ebotcazou@adacore.com>
1990 * gcov.c (create_file_names): If no object directory is specified,
1991 keep the directory of the file.
1993 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1995 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
1996 * configure: Regenerate.
1998 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2001 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2002 failed and the comparison has a single bit signed type, use
2003 constm1_rtx instead of const1_rtx for true value.
2004 (do_store_flag): If ops->type is single bit signed type, disable
2005 signel bit test optimization and pass -1 instead of 1 as last
2006 parameter to emit_store_flag_force.
2008 2011-05-23 Tom de Vries <tom@codesourcery.com>
2011 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2013 (infer_loop_bounds_from_undefined): Use new function.
2015 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2017 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2018 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2019 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2021 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2023 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2025 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2026 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2029 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2031 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2033 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2035 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2036 UNSPEC_MOVE_PIC pattern.
2038 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2040 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2041 (sparc-*-rtems*): Likewise.
2042 (sparc64-*-elf*): Likewise.
2043 (sparc64-*-rtems*): Likewise.
2044 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2045 * config/sparc/t-crtin: New file.
2046 * config/sparc/t-sol2 (crti.o): Delete rule.
2048 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2049 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2050 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2051 (ENDFILE_SPEC): Add crtn.o.
2053 2011-05-22 Tom de Vries <tom@codesourcery.com>
2056 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2057 CODE_CONTAINS_STRUCT (TS_COMMON).
2059 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2062 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2063 only after deciding which mode to use.
2065 2011-05-22 Tom de Vries <tom@codesourcery.com>
2068 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2069 for call to get_shiftadd_cost.
2071 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2074 * config/i386/cpuid.h (bit_MMXEXT): New define.
2076 2011-05-22 Nick Clifton <nickc@redhat.com>
2078 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2079 initialisation of non-existant args[2] element. Use args[] array
2080 not arg[] array to pass arguments to build_function_type_list.
2082 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2084 PR tree-optimization/49087
2085 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2087 2011-05-21 Jason Merrill <jason@redhat.com>
2090 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2091 static storage duration.
2093 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2095 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2098 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2100 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2101 false if there are call-saved registers here...
2102 (sparc_can_use_return_insn_p): ...but here instead.
2103 (save_or_restore_regs): Fix thinko.
2104 (sparc_expand_prologue): Use current_function_is_leaf.
2105 (sparc_frame_pointer_required): Likewise.
2107 2011-05-21 Nick Clifton <nickc@redhat.com>
2110 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2112 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2114 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2115 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2117 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2119 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2120 * optc-gen.awk: Move common code to opt-read.awk.
2121 * opth-gen.awk: Likewise.
2122 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2124 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2126 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2128 2011-05-20 Tom de Vries <tom@codesourcery.com>
2131 * tree-ssa-loop-ivopts.c: Include expmed.h.
2132 (get_shiftadd_cost): New function.
2133 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2135 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2138 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2139 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2141 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2143 * Makefile.in: Update comment referring to $(OBJS-common).
2145 2011-05-20 Ian Lance Taylor <iant@google.com>
2147 * godump.c (go_output_typedef): Put enum constants in the macro
2148 hash table to avoid duplicate Go const definitions.
2150 2011-05-20 Joseph Myers <joseph@codesourcery.com>
2152 * Makefile.in (LIBDEPS): Add libcommon.a.
2154 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2155 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2156 pretty-print.o and version.o.
2157 (OBJS-libcommon): New.
2158 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2159 (BACKEND): Add libcommon.a.
2160 (MOSTLYCLEANFILES): Likewise.
2162 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2163 (cpp$(exeext)): Likewise.
2164 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2165 pretty-print.o and input.o.
2166 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2167 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2169 (mips-tfile): Don't explicitly use version.o.
2170 (mips-tdump): Likewise.
2171 (gcov.o): Depend on $(DIAGNOSTIC_H).
2172 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2173 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2174 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2175 * gcov-dump.c: Include intl.h and diagnostic.h.
2176 (main): Initialize diagnostics.
2177 * gcov.c: Include diagnostic.h.
2179 (main): Initialize diagnostics.
2180 * lto-wrapper.c: Include diagnostic.h.
2181 (main): Initialize diagnostics.
2183 2011-05-20 Michael Matz <matz@suse.de>
2185 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2187 2011-05-20 Michael Matz <matz@suse.de>
2188 Richard Guenther <rguenther@suse.de>
2190 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2191 use lto_streamer_cache_append directly instead of returning a VEC.
2192 (preload_common_node): Remove.
2193 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2195 (lto_streamer_cache_create): Call lto_preload_common_nodes.
2197 2011-05-20 Richard Guenther <rguenther@suse.de>
2199 PR tree-optimization/49079
2200 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2201 MEM_REFs correctly for the trailing array access detection.
2202 Special case constants the same way as decls for overall size
2205 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
2207 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2210 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2212 PR tree-optimization/49073
2213 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2214 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2215 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2217 2011-05-20 Richard Guenther <rguenther@suse.de>
2220 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2221 of pointer types the same way the middle-end does.
2223 2011-05-20 Richard Guenther <rguenther@suse.de>
2225 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2226 or pointer-to chains. Delay all fixup to uniquify_nodes.
2228 2011-05-19 Quentin Neill <quentin.neill@amd.com>
2230 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2231 (fma4_fmaddsub): Likewise
2233 2011-05-19 Jan Hubicka <jh@suse.cz>
2235 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2236 (GIMPLE_TYPE_PAIR_SIZE): New macro.
2237 (type_pair_cache): New static var.
2238 (lookup_type_pair): Use fixed sized custom hash; make inline.
2239 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2240 calls of lookup_type_pair.
2241 (print_gimple_types_stats): Remove cache stats.
2242 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2245 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
2247 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2248 when TARGET_RDRND is active.
2249 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2250 Generate dummy SImode target register when target is NULL.
2252 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2254 * config/arm/arm-fpus.def: New.
2255 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2257 * config/arm/arm-tables.opt: Regenerate.
2258 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2259 (arm_option_override): Don't decode FPU name to string here.
2260 * config/arm/arm.opt (mfpu=): Use Enum.
2261 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2262 Update dependencies.
2264 2011-05-19 Joseph Myers <joseph@codesourcery.com>
2266 * collect2.c: Include diagnostic.h.
2267 (fatal_perror, fatal, error, fancy_abort): Remove.
2268 (main): Set progname. Call xmalloc_set_program_name and
2269 diagnostic_initialize.
2270 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2271 scan_libraries, resolve_lib_name): Call fatal_error instead of
2272 fatal and fatal_perror.
2273 * collect2.h (error, fatal, fatal_perror): Don't declare.
2274 * tlink.c: Include diagnostic-core.h.
2275 (recompile_files): Call fatal_error instead of fatal_perror.
2276 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2277 pretty-print.o and input.o.
2278 (collect2.o, tlink.o): Update dependencies.
2280 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2282 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2284 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2287 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2288 COMDAT group syntax, both SPARC and x86 variants.
2289 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2290 * configure: Regenerate.
2291 * config/sol2.h (TARGET_SOLARIS): Define.
2292 (PUSHSECTION_FORMAT): Remove.
2293 (SECTION_NAME_FORMAT): Define.
2294 * config/sol2.c: Include hashtab.h.
2295 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2296 expansion, using SECTION_NAME_FORMAT.
2297 (solaris_comdat_htab): New variable.
2298 (struct comdat_entry): Define.
2299 (comdat_hash): New function.
2300 (comdat_eq): New function.
2301 (solaris_elf_asm_comdat_section): New function.
2302 (solaris_define_comdat_signature): New function.
2303 (solaris_code_end): New function.
2304 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2305 (solaris_code_end): Declare.
2306 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2307 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2309 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2310 Remove ATTRIBUTE_UNUSED.
2311 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2312 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2313 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2314 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2315 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2316 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2317 (PUSHSECTION_FORMAT): Remove.
2318 (SECTION_NAME_FORMAT): Redefine.
2320 2011-05-19 Kai Tietz <ktietz@redhat.com>
2322 * tree-cfg.c (verify_gimple_assign_binary): Barf on
2323 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2324 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2326 2011-05-19 Anatoly Sokolov <aesok@post.ru>
2327 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2329 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2331 2011-05-19 Richard Guenther <rguenther@suse.de>
2334 * tree-object-size.c (addr_object_size): If the pointed-to
2335 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2337 2011-05-19 Richard Guenther <rguenther@suse.de>
2339 * gimple.c (gimple_types_compatible_p_1): Compare names of
2340 the types themselves.
2341 (iterative_hash_gimple_type): And hash them that way.
2342 (gimple_register_type_1): If we register a main variant properly
2343 initialize the leader to ourselves.
2345 2011-05-19 Tom de Vries <tom@codesourcery.com>
2348 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2349 get_loop_invariant_expr_id.
2350 (get_loop_invariant_expr_id): Use get_expr_id.
2351 (parm_decl_cost): New function.
2352 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2353 Improve bound cost estimation. Use different inv_expr_id for elim and
2356 2011-05-19 Tom de Vries <tom@codesourcery.com>
2359 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2360 cost_base.cost == 0.
2362 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
2365 * config/i386/sse.md
2366 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2369 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2371 PR tree-optimization/49039
2372 * tree-vrp.c (extract_range_from_binary_expr): For
2373 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2374 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2376 2011-05-18 Tom de Vries <tom@codesourcery.com>
2379 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2381 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
2383 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2384 (*tls_global_dynamic_64): Ditto.
2385 (*tls_local_dynamic_base_32_gnu): Ditto.
2386 (*tls_local_dynamic_base_64): Ditto.
2387 (tls_initial_exec_64_sun): Ditto.
2389 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
2391 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2392 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2394 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2395 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2396 * config/bfin/bfin.c (bfin_cpus): Add bf592.
2397 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2398 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2399 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2400 * config/bfin/elf.h (LIB_SPEC): Add bf592.
2402 2011-05-18 Joseph Myers <joseph@codesourcery.com>
2404 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2405 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2406 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2407 target_thread_pointer, arm_structure_size_boundary, struct
2408 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2409 struct abi_name, arm_all_abis): Remove.
2410 (arm_option_override) Don't process most enumerated option values here.
2411 Don't process target_fpe_name here. Work with integer not string for
2412 structure size boundary; use separate diagnostics for each case.
2413 * config/arm/arm.h (enum float_abi_type, enum
2414 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2416 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2417 arm_structure_size_boundary): Remove.
2418 * config/arm/arm.opt (mabi=): Use Enum and Init.
2419 (arm_abi_type): New Enum and EnumValue entries.
2420 (mfloat-abi=): Use Enum and Init.
2421 (float_abi_type): New Enum and EnumValue entries.
2422 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2423 (mfp16-format=): Use Enum and Init.
2424 (arm_fp16_format_type): New Enum and EnumValue entries.
2425 (mstructure-size-boundary=): Use UInteger and Init.
2426 (mtp=): Use Enum and Init.
2427 (arm_tp_type): New Enum and EnumValue entries.
2429 2011-05-18 Richard Guenther <rguenther@suse.de>
2431 PR tree-optimization/49018
2432 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2433 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2434 gimple_has_side_effects.
2436 2011-05-18 Richard Guenther <rguenther@suse.de>
2438 * gimple.c (gimple_register_type_1): New function, split out from ...
2439 (gimple_register_type): ... here. Avoid infinite recursion.
2441 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2443 PR tree-optimization/41881
2444 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2445 reduction_chains along with a macro for its access.
2446 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2447 (destroy_loop_vec_info): Free reduction chains.
2448 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2449 (vect_is_slp_reduction): New function.
2450 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2451 (vect_create_epilog_for_reduction): Support SLP reduction chains.
2452 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2453 definition types for reduction chains.
2454 (vect_supported_load_permutation_p): Don't allow permutations for
2456 (vect_analyze_slp_instance): Support reduction chains.
2457 (vect_analyze_slp): Try to build SLP instance from reduction chains.
2458 (vect_get_constant_vectors): Handle reduction chains.
2459 (vect_schedule_slp_instance): Mark the first statement of the
2460 reduction chain as reduction.
2462 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
2464 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2465 names for group elements access.
2466 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2467 reduction chains as well. Remove data reference and interleaving
2468 related words from the fields names.
2469 * tree-vect-loop.c (vect_transform_loop): Use new names for group
2471 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2472 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2473 vect_update_interleaving_chain, vect_same_range_drs,
2474 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2475 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2476 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2477 vect_analyze_group_access, vect_analyze_data_ref_access,
2478 vect_create_data_ref_ptr, vect_transform_strided_load,
2479 vect_record_strided_load_vectors): Likewise.
2480 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2481 vect_model_load_cost, vectorizable_store, vectorizable_load,
2482 vect_remove_stores, new_stmt_vec_info): Likewise.
2483 * tree-vect-slp.c (vect_build_slp_tree,
2484 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2486 2011-05-18 Richard Guenther <rguenther@suse.de>
2489 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2490 operand verification.
2491 (verify_gimple_assign_binary): Likewise.
2492 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2493 to non-1-precision BOOLEAN_TYPEs.
2495 2011-05-18 Tom de Vries <tom@codesourcery.com>
2498 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2500 2011-05-18 Jakub Jelinek <jakub@redhat.com>
2502 PR tree-optimization/49000
2503 * tree-ssa.c (execute_update_addresses_taken): Call
2504 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
2505 be rewritten and decl has been marked for renaming, reset
2508 2011-05-17 Joseph Myers <joseph@codesourcery.com>
2510 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2511 enum_opts_set when testing if attributes have set -mfpmath=.
2513 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
2515 * config/mips/mips.c (mips_handle_option): Remove unused variable.
2517 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2519 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2521 * tree-inline.c (maybe_inline_call_in_expr): Initialize
2522 id.transform_lang_insert_block with NULL.
2524 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
2526 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2527 (output_fp_compare): Change args 3 and 4 to bool.
2528 (ix86_expand_call): Change arg 6 to bool.
2529 (ix86_attr_length_immediate_default): Change arg 2 to bool.
2530 (ix86_attr_length_vex_default): Change arg 3 to bool.
2531 * config/i386/i386.md: Update all uses.
2532 * config/i386/i386.c: Ditto.
2533 (ix86_flags_dependent): Change return type to bool.
2535 2011-05-17 Richard Guenther <rguenther@suse.de>
2537 * gimple.c (type_hash_pair_compare): Fix comparison.
2539 2011-05-17 Richard Guenther <rguenther@suse.de>
2541 * gimple.c (iterative_hash_gimple_type): Simplify singleton
2542 case some more, fix final hash value of the non-singleton case.
2544 2011-05-17 Richard Guenther <rguenther@suse.de>
2548 2011-05-16 Richard Guenther <rguenther@suse.de>
2550 * gimple.c (gimple_types_compatible_p_1): Use names of the
2551 type itself, not its main variant.
2552 (iterative_hash_gimple_type): Likewise.
2554 2011-05-17 Richard Guenther <rguenther@suse.de>
2556 * gimple.c (gimple_register_canonical_type): Use the main-variant
2557 leader for computing the canonical type.
2559 2011-05-17 Nick Clifton <nickc@redhat.com>
2561 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2564 * config/rx/rx.md: Add peephole to remove redundant extensions
2566 (bitset_in_memory): Use rx_restricted_mem_operand.
2567 (bitinvert_in_memory): Likewise.
2568 (bitclr_in_memory): Likewise.
2570 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
2571 Nick Clifton <nickc@redhat.com>
2573 * config/rx/rx.md: Add peepholes to match a register move followed
2574 by a comparison of the moved register. Replace these with an
2575 addition of zero that does both actions in one instruction.
2577 2011-05-17 Jakub Jelinek <jakub@redhat.com>
2580 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2581 predicate to allow CONST_INT.
2582 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2584 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2586 * opts-common.c (opt_enum_arg_to_value): New.
2587 * opts.h (opt_enum_arg_to_value): Declare.
2588 * config/i386/i386.opt (fpmath): Remove.
2589 (mfpmath=): Use Enum, Init and Save.
2590 (fpmath_unit): New Enum and EnumValue entries.
2591 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2592 name for function fpmath state.
2593 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2594 * config/i386/i386.c: Include diagnostic.h.
2595 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2596 (ix86_target_string): Take enum fpmath_unit value instead of string.
2597 (ix86_debug_options): Update call to ix86_target_string.
2598 (ix86_option_override_internal): Don't process fpmath strings here.
2599 (x86_function_specific_save, ix86_function_specific_restore):
2600 Don't handle fpmath state specially.
2601 (ix86_function_specific_print): Pass fpmath state to
2602 ix86_target_string instead of printing in this function.
2603 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2604 Handle enum attributes.
2605 (IX86_ATTR_ENUM, ix86_opt_enum): New.
2606 (ix86_valid_target_attribute_tree): Update option_strings
2607 handling. Handle fpmath as enum option.
2608 (ix86_can_inline_p): Update field names for function fpmath state.
2609 (ix86_expand_builtin): Update call to ix86_target_string.
2610 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2611 (ix86_fpmath): Remove.
2612 * config/i386/t-i386 (i386.o): Update dependencies.
2614 2011-05-16 Joseph Myers <joseph@codesourcery.com>
2616 PR preprocessor/48677
2617 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2618 from decoded_options[0], not from itself.
2620 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
2622 * config/i386/constraints.md (z): New constraint.
2623 * config/i386/i386.c (c): New mode attribute.
2624 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2625 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2626 constraint for operand 0.
2627 (*call_vzeroupper): Ditto.
2628 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
2629 (*call_rex64_ms_sysv_vzeroupper): Ditto.
2630 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2631 Use "lzm" constraint for operand 0.
2632 (*call_pop_vzeroupper): Ditto.
2633 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2634 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
2635 constraint for operand 0.
2636 (*sibcall_vzeroupper): Ditto.
2637 (*sibcall_rex64_ms_sysv): Ditto.
2638 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2639 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2640 *sibcall_pop_1. Use "Uz" constraint for operand 0.
2641 (*sibcall_pop_vzeroupper): Ditto.
2642 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2643 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2644 mode iterator. Use "<c>zm" constraint for operand 1.
2645 (*call_value_vzeroupper): Ditto.
2646 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
2648 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2649 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2650 *call_value_pop_1. Use "lzm" constraint for operand 1.
2651 (*call_value_pop_vzeroupper): Ditto.
2652 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2653 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2654 mode iterator. Use "Uz" constraint for operand 1.
2655 (*sibcall_value_vzeroupper): Ditto.
2656 (*sibcall_value_rex64_ms_sysv): Ditto.
2657 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2658 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
2659 constraint for operand 1.
2660 (*sibcall_value_pop_vzeroupper): Ditto.
2661 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2662 and "z" constraint for operand 2.
2663 (*tls_global_dynamic_32_gnu): Ditto.
2664 (*tls_local_dynamic_base_32_gnu): Ditto.
2665 (*tls_local_dynamic_base_64): Ditto.
2666 (*tls_local_dynamic_32_once): Ditto.
2667 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2669 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2671 2011-05-16 Richard Guenther <rguenther@suse.de>
2673 * gimple.c (gimple_types_compatible_p_1): Use names of the
2674 type itself, not its main variant.
2675 (iterative_hash_gimple_type): Likewise.
2677 2011-05-16 Richard Guenther <rguenther@suse.de>
2679 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2680 always visit pointer target and function result and argument types.
2682 2011-05-16 Jason Merrill <jason@redhat.com>
2685 * tree-inline.c (copy_statement_list): Put back recursion.
2687 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2691 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2692 * config/avr/avr.md ("*ior<mode>qi.byte0",
2693 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2695 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
2698 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2699 register is needed for a function argument.
2701 2011-05-16 Richard Guenther <rguenther@suse.de>
2703 * gimple.c (struct type_hash_pair): New type.
2704 (type_hash_pair_compare): New function.
2705 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2707 2011-05-16 Revital Eres <revital.eres@linaro.org>
2709 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2711 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2713 * config/i386/i386.md (floating point move splitters): Fix
2714 usage of standard_80387_constant_p.
2715 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2717 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
2719 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2721 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
2723 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2724 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2725 (tree_ssa_lim_finalize): Likewise.
2727 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
2729 * config/i386/constraint.md (Yd, Yx): New register constraints.
2730 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
2731 Yd conditional register constraint.
2732 (*movtf_internal): Use standard_sse_constant_opcode.
2733 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
2734 Yx conditional register constraint.
2735 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
2736 Yd conditional register constraint. Use standard_sse_constant_p to
2737 check for valid SSE constants and call standard_sse_constant_opcode to
2739 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2740 constants and call standard_sse_constant_opcode to output SSE insn.
2741 * config/i386/i386.c (ix86_option_ovverride_internal): Set
2742 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
2743 optimize_size is set.
2744 (standard_sse_constant_opcode): Output conditional AVX insn templates.
2746 2011-05-14 Tobias Burnus <burnus@net-b.de>
2748 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2750 2011-05-13 Martin Jambor <mjambor@suse.cz>
2752 * ipa-prop.c (ipa_cst_from_jfunc): New function.
2753 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2754 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2755 (evaluate_conditions_for_ipcp_clone): Removed.
2756 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2757 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2758 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2760 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
2762 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2763 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2764 lieu of MAY_HAVE_DEBUG_STMTS.
2765 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2766 debug statements if !MAY_HAVE_DEBUG_STMTS.
2768 2011-05-13 Martin Thuresson <martint@google.com>
2770 PR gcov-profile/47793
2771 * libgcov.c (gcov_exit): Support relative profile paths.
2772 * doc/invoke.texi (-fprofile-dir): Update for above change.
2774 2011-05-13 Richard Guenther <rguenther@suse.de>
2776 * gimple.c (gimple_canonical_types_compatible_p): Do not use
2777 type-pair caching, do not compare hashes.
2779 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
2782 * tree-cfg.c (edge_to_cases_cleanup): Return true.
2783 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2785 2011-05-13 Kai Tietz <ktietz@redhat.com>
2787 * gimplify.c (gimplify_expr): Make sure operand is boolified.
2788 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2789 compatible type for TRUTH_NOT_EXPR.
2791 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
2793 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2794 (ix86_hard_regno_mode_ok): Change return value to bool. Use
2795 can_create_pseudo_p ().
2797 2011-05-13 Richard Guenther <rguenther@suse.de>
2800 * gimple.c (iterative_hash_gimple_type): Revert change in
2801 pointer target and function result and argument hashing.
2803 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
2805 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2806 (*movxf_internal_nointeger): Ditto.
2807 (*movdf_internal_rex64): Ditto.
2808 (*movdf_internal): Ditto.
2809 (*movdf_internal_nointeger): Ditto.
2810 (*movsf_internal): Ditto.
2811 (sincos splitters): Use can_create_pseudo ().
2813 2011-05-13 Joseph Myers <joseph@codesourcery.com>
2815 * config/i386/i386-opts.h: New.
2816 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2817 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2818 ix86_section_threshold): Remove.
2819 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
2820 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2822 (ix86_option_override_internal): Don't decode strings for options
2823 other than -march=, -mtune= and -mfpmath=. Don't allow for
2824 __attribute__ uses in remaining diagnostics for options with
2825 string arguments. Don't check for integer arguments being negative.
2826 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2827 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2828 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2829 ix86_branch_cost, ix86_section_threshold): Remove.
2830 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2832 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2834 (masm=): Use Enum and Init.
2835 (asm_dialect): New Enum and EnumValue entries.
2836 (mbranch-cost=): Use UInteger.
2837 (mlarge-data-threshold=): Use UInteger and Init.
2838 (mcmodel=): Use Enum and Init.
2839 (cmodel): New Enum and EnumValue entries.
2840 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2841 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2842 mregparm=): Use UInteger.
2843 (mstringop-strategy=): Use Enum and Init.
2844 (stringop_alg): New Enum and EnumValue entries.
2845 (mtls-dialect=): Use Enum and Init.
2846 (tls_dialect): New Enum and EnumValue entries.
2847 (mabi=): Use Enum and Init.
2848 (calling_abi): New Enum and EnumValue entries.
2849 (mveclibabi=): Use Enum and Init.
2850 (ix86_veclibabi): New Enum and EnumValue entries.
2852 2011-05-13 Nick Clifton <nickc@redhat.com>
2854 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2855 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2857 2011-05-13 Kai Tietz <ktietz@redhat.com>
2860 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2861 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2862 (gimple_boolify): Check for cast for boolean_type_node instead for
2865 2011-05-13 Richard Guenther <rguenther@suse.de>
2867 PR tree-optimization/48172
2868 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2869 multiplying by number of iterations for equal step.
2870 (vect_create_cond_for_alias_checks): Likewise.
2872 2011-05-13 Andreas Schwab <schwab@redhat.com>
2874 * configure.ac: Use AS_HELP_STRING throughout.
2875 * configure: Regenerate.
2877 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
2879 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2880 (ix86_emit_restore_regs_using_mov): Likewise.
2881 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2883 2011-05-12 Anatoly Sokolov <aesok@post.ru>
2885 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
2886 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
2887 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
2888 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
2889 RTX_OK_FOR_OLO10_P): ...here.
2890 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
2893 2011-05-12 Kai Tietz <ktietz@redhat.com>
2895 * gimplify.c (gimple_boolify): Re-boolify expression
2896 arguments even if expression type is of kind BOOLEAN_TYPE.
2897 (gimplify_boolean_expr): Removed.
2898 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
2899 and XOR. Additional take care that we keep expression's type.
2900 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
2901 of TRUTH_AND|OR|XOR_EXPR.
2903 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2905 PR tree-optimization/48975
2906 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
2907 on all bbs here and free and clear ifc_bbs at the end.
2909 2011-05-12 Richard Guenther <rguenther@suse.de>
2911 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
2912 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
2913 until after simple checks.
2914 (gimple_types_compatible_p): Likewise.
2915 (iterative_hash_gimple_type): Always hash pointer targets
2916 and function return and argument types.
2917 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
2918 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
2919 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
2920 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
2921 completely in the simple compare section.
2922 (gimple_register_canonical_type): Query the cache again after
2925 2011-05-12 Richard Guenther <rguenther@suse.de>
2927 PR tree-optimization/48172
2928 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
2929 the number of iterations from the segment size calculation.
2930 (vect_create_cond_for_alias_checks): Adjust.
2932 2011-05-12 Jakub Jelinek <jakub@redhat.com>
2935 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
2936 if validate_subreg fails.
2938 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
2940 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
2941 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
2944 2011-05-12 DJ Delorie <dj@redhat.com>
2946 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
2947 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
2948 created builtin into rx_builtins array.
2949 (rx_builtin_decl): New function.
2950 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
2952 2011-05-12 DJ Delorie <dj@redhat.com>
2953 Nick Clifton <nickc@redhat.com>
2955 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
2956 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
2957 (rx_is_legitimate_address): Add pre-decrement and post-increment
2958 addressing in HImode and QImode. Fix test for out of range
2960 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
2961 (rx_align_for_label): Test label before extracting its usage count.
2962 (rx_adjust_insn_lengths): Fix selection of insn codes.
2963 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
2965 2011-05-11 Jason Merrill <jason@redhat.com>
2967 * tree.c (type_hash_canon): Use struct tree_type_non_common.
2969 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
2971 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
2972 reindent the subsequent block.
2974 2011-05-11 Satoru Takabayashi <satorux@google.com>
2975 Paul Pluzhnikov <ppluzhnikov@google.com>
2977 * doc/install.texi (Configuration): Document --with-linker-hash-style.
2978 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
2979 * config.in: Add LINKER_HASH_STYLE.
2980 * configure.ac: Add --with-linker-hash-style.
2981 * configure: Regenerate.
2983 2011-05-11 Richard Guenther <rguenther@suse.de>
2986 * gimple.c (iterative_hash_canonical_type): Fix typo.
2988 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
2990 * config/i386/i386.c (legitimize_tls_address)
2991 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2992 expanders directly for TARGET_GNU2_TLS. Determine pic and
2993 __tls_get_addr symbol reference here. Update call to
2994 gen_tls_global_dynamic_{32,64} for added arguments.
2995 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
2996 expanders directly for TARGET_GNU2_TLS. Determine
2997 __tls_get_addr symbol reference here. Update call to
2998 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
2999 unique UNSPEC REG_EQUIV to libcall block.
3000 (ix86_tls_get_addr): Declare static.
3001 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3002 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3003 Do not determine pic and __tls_get_addr symbol reference here. Do not
3004 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3005 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3006 (tls_global_dynamic_64): Add operand 2. Do not determine
3007 __tls_get_addr symbol reference here. Do not call
3008 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3009 (tls_local_dynamic_base64): Ditto for operand 1.
3011 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3013 * function.c (expand_function_start): Initialize stack_check_probe_note
3014 only if the generic stack checking mechanism is used.
3016 2011-05-11 Richard Guenther <rguenther@suse.de>
3018 PR tree-optimization/15256
3019 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3020 (A & B) | C, combine (A op CST1) op CST2.
3021 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3022 visit assigns that have uses.
3024 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3026 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3027 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3028 (unpack_ts_type_common_value_fields): ...this. Update comment.
3029 (unpack_value_fields): Adjust for renaming.
3030 (lto_input_ts_type_tree_pointers): Split into...
3031 (lto_input_ts_type_common_tree_pointer): ...this and...
3032 (lto_input_ts_type_non_common_tree_pointers): ...this.
3033 (lto_input_tree_pointers): Adjust for above split.
3034 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3035 (pack_ts_type_common_value_fields): ...this. Update comment.
3036 (lto_output_ts_type_tree_pointers): Split into...
3037 (lto_output_ts_type_common_tree_pointers): ...this and...
3038 (lto_output_ts_type_non_common_tree_pointers): ...this.
3039 (lto_output_tree_pointers): Adjust for above split.
3040 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3041 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3042 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3043 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3045 (struct tree_type): Split into...
3046 (struct tree_type_common: ...this and...
3047 (struct tree_type_with_lang_specific): ...this and...
3048 (struct tree_type_non_common): ...this. Adjust accessor macros
3050 (TYPE_VALUES_RAW): Define.
3051 (union tree_node): Update for above changes.
3052 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3054 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3055 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3056 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3057 * treestructu.def (TS_TYPE): Remove.
3058 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3061 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3064 * tree-ssa.c (reset_debug_uses): New function.
3065 * tree-flow.h (reset_debug_uses): New prototype.
3066 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3067 * tree-loop-distribution.c (generate_loops_for_partition): Call
3068 reset_debug_uses on the stmts that will be removed. Keep around
3069 all debug stmts, don't count them as bits in partition bitmap.
3070 (generate_builtin): Don't count debug stmts or labels as bits in
3073 2011-05-11 Richard Guenther <rguenther@suse.de>
3075 * gimple.c (gimple_type_hash_1): Merge with ...
3076 (gimple_type_hash): ... this.
3077 (gtc_visit): Remove mode parameter and simplify accordingly.
3078 (gimple_types_compatible_p_1): Likewise.
3079 (gimple_types_compatible_p): Likewise.
3080 (iterative_hash_gimple_type): Likewise.
3082 (gimple_type_eq): Adjust.
3084 2011-05-11 Revital Eres <revital.eres@linaro.org>
3086 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3087 enters the branch create an anti edge in the opposite direction
3088 to prevent the creation of reg-moves.
3089 * modulo-sched.c: Adjust comment to reflect the fact we are
3090 scheduling closing branch.
3091 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3092 (stage_count): New field in struct partial_schedule.
3093 (calculate_stage_count): New function.
3094 (normalize_sched_times): Rename to reset_sched_times and handle
3095 incrementing the sched time of the nodes by a constant value
3096 passed as parameter.
3097 (duplicate_insns_of_cycles): Skip closing branch.
3098 (sms_schedule_by_order): Schedule closing branch.
3099 (ps_insn_find_column): Handle closing branch.
3100 (sms_schedule): Call reset_sched_times and adjust the code to
3101 support scheduling of the closing branch.
3102 (ps_insert_empty_row): Update calls to normalize_sched_times
3103 and rotate_partial_schedule functions.
3105 2011-05-11 Richard Guenther <rguenther@suse.de>
3108 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3110 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3112 * opts.c (finish_options): Move warning settings from process_options.
3113 * toplev.c (process_options): Move warning settings to finish_options.
3115 2011-05-11 Richard Guenther <rguenther@suse.de>
3117 PR tree-optimization/18041
3118 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3119 (simplify_bitwise_binary): ... this. Handle operand conversions
3120 by applying them to the result instead.
3121 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3123 2011-05-11 Richard Guenther <rguenther@suse.de>
3125 * gimple.c (gimple_canonical_types_compatible_p): Split out
3126 from gimple_types_compatible_p and friends. Do not recurse
3127 to pointed-to types.
3128 (gimple_canonical_type_eq): Use it.
3129 (iterative_hash_canonical_type): Split out from
3130 iterative_hash_gimple_type and friends. Do not recurse
3131 to pointed-to types.
3132 (gimple_canonical_type_hash): Use it, allocate the hash here.
3134 2011-05-11 Revital Eres <revital.eres@linaro.org>
3136 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3139 2011-05-11 Revital Eres <revital.eres@linaro.org>
3141 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3142 instead of PREV_INSN.
3144 2011-05-11 Revital Eres <revital.eres@linaro.org>
3146 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3147 * loop-doloop.c (doloop_condition_get): Likewise.
3148 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3150 * config/arm/arm.md (*addsi3_compare0): Remove "*".
3152 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
3154 * tree.def (CASE_LABEL_EXPR): Add an operand.
3155 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3157 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3159 * c-decl.c (c_override_global_bindings_to_false): Remove.
3160 (global_bindings_p): Don't check
3161 c_override_global_bindings_to_false.
3162 * c-tree.h (c_override_global_bindings_to_false): Remove.
3163 * c-typeck.c (composite_type): Don't set
3164 c_override_global_bindings_to_false.
3166 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3168 PR target/48857, 48495
3169 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3171 (VSX_MOVE_MODE): Ditto.
3172 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3173 VSX vector types. Add V2DImode.
3174 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3175 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3176 (MODES_TIEABLE_P): Ditto.
3178 * config/rs6000/rs6000.c (rs6000_emit_move): Use
3179 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3181 (init_cumulative_args): Ditto.
3182 (rs6000_function_arg_boundary): Ditto.
3183 (rs6000_function_arg_advance_1): Ditto.
3184 (rs6000_function_arg): Ditto.
3185 (rs6000_function_ok_for_sibcall): Ditto.
3186 (emit_frame_save): Ditto.
3187 (rs6000_function_value): Ditto.
3188 (rs6000_libcall_value): Ditto.
3190 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3192 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3193 i386/darwin-lib.h to $libgcc_tm_file.
3194 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3196 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3198 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3200 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3202 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3203 * config/rs6000/rs6000-tables.opt: New file (generated).
3204 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3205 rs6000/rs6000-tables.opt to extra_options.
3206 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3207 * config/rs6000/rs6000.c (rs6000_select): Remove.
3208 (processor_target_table): Move contents to rs6000-cpus.def.
3209 (darwin_rs6000_override_options): Check
3210 global_options_set.x_rs6000_cpu_index instead of
3211 rs6000_select[1].string.
3212 (rs6000_option_override_internal): Likewise.
3213 (rs6000_handle_option): Don't assert that global structures are in
3214 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
3215 (rs6000_default_cpu): New variable.
3216 (rs6000_file_start): Set it instead of local default_cpu. Check
3217 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3218 global_options_set.x_rs6000_tune_index instead of rs6000_select.
3219 (rs6000_darwin_file_start): Check rs6000_default_cpu and
3220 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3221 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3222 rs6000_select): Remove.
3223 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3225 (mcpu=, mtune=): Use Var, Init, Enum and Save.
3226 * config/rs6000/t-rs6000
3227 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3228 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3229 global_options_set.x_rs6000_cpu_index instead of
3230 rs6000_select[1].string.
3231 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3232 global_options_set.x_rs6000_cpu_index instead of
3233 rs6000_select[1].string.
3235 2011-05-10 Joseph Myers <joseph@codesourcery.com>
3237 * config.gcc (libgcc_tm_file): Define instead of including files
3238 from ../../libgcc/config/ in tm_file.
3239 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3240 * configure: Regenerate.
3241 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3242 libgcc_tm.h, cs-libgcc_tm.h): New.
3243 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3244 (clean): Remove libgcc_tm.h.
3245 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3246 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3247 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3249 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
3252 * config/avr/avr.c (avr_ret_register): Return unsigned int
3254 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3255 it to avr_libcall_value.
3256 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3258 (avr_expand_binop_builtin): Ditto.
3259 (avr_expand_unop_builtin): Ditto.
3261 2011-05-10 DJ Delorie <dj@redhat.com>
3263 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3264 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3265 * config/rx/rx.c (rx_align_for_label): Add label and
3266 uses_threshold parameters. Do not align when the label is not
3268 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3270 2011-05-10 Richard Guenther <rguenther@suse.de>
3272 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3273 a series of conversions and apply foldings similar to what
3275 (tree_ssa_forward_propagate_single_use_vars): Call it.
3277 2011-05-10 Jakub Jelinek <jakub@redhat.com>
3279 PR tree-optimization/48611
3280 PR tree-optimization/48794
3281 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3282 referenced from RESX or EH_DISPATCH arguments.
3285 * dfp.c (decimal_to_decnumber): Handle conversion from
3286 dconst{1,2,m1,half}.
3288 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3290 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3291 for !flag_prefer_avx128.
3292 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3294 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3296 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3297 (fold_ternary_loc): Use expr_location_or.
3299 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
3302 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3303 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3304 Pmode and mem_mode is not VOIDmode.
3306 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
3308 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3309 TYPE_QUAL_RESTRICT): Convert to enum.
3311 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3313 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3314 (const_pow2_1_to_8_operand): Ditto.
3315 (const_pow2_1_to_128_operand): Ditto.
3316 (const_pow2_1_to_32768_operand): Ditto.
3317 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3318 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
3319 in insn constraint to check integer value of operand 3.
3320 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3322 (PINSR_MODE): New mode iterator.
3323 (sse2p4_1): New mode attribute.
3324 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3325 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3326 iterator. Use const_int_operand instead of
3327 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
3328 exact_log2 in insn constraint to check integer value of operand 3.
3330 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3332 * config/i386/sse.md (blendbits): Remove mode attribute.
3333 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3334 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3335 Check integer value of operand 3 in insn constraint.
3337 2011-05-09 Richard Guenther <rguenther@suse.de>
3339 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3341 (lto_symtab_merge): Likewise. Do not register types here.
3342 (lto_symtab_merge_decls_2): Likewise.
3343 (lto_symtab_merge_decls_1): Likewise.
3344 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3345 * gimple.c (enum gtc_mode): Declare.
3346 (gimple_types_compatible_p): Make static.
3348 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3350 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3351 temporary register to match Pmode.
3353 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3355 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3356 and *vec_concatv4si_1_avx.
3358 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
3360 PR rtl-optimization/48927
3361 * ira-conflicts.c (commutative_constraint_p): Use
3362 recog_data.alternative_enabled_p to disable alternatives where
3363 "enabled" attribute is false.
3364 (get_dup_num): Ditto.
3365 * ira-lives.c (single_reg_class): Ditto.
3366 (ira_implicitly_set_insn_hard_regs): Ditto.
3368 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
3370 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3371 (dataflow_set_preserve_mem_locs): Likewise.
3373 2011-05-09 Philipp Thomas <pth@suse.de>
3375 * config/mep/mep.c (mep_validate_vliw): Syntax description
3376 should not be translated.
3378 2011-05-09 Joseph Myers <joseph@codesourcery.com>
3380 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3381 * config/mips/mips-tables.opt: New file (generated).
3382 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3383 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3384 MIPS_ARCH_OPTION_NATIVE): Define.
3385 * config/mips/mips.c (mips_cpu_info_table): Move contents to
3387 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3388 mips_parse_cpu): Remove.
3389 (mips_cpu_info_from_opt, mips_default_arch): New.
3390 (mips_handle_option): Don't assert that global structures are in
3391 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3392 (mips_option_override): Use new variables and functions to set
3393 state of these options. Use strcmp to check for individual CPU names.
3394 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3396 * config/mips/mips.opt (march=): Use ToLower and Enum.
3397 (mips): Use ToLower, Enum and Var.
3398 (mtune=): Use ToLower and Enum.
3399 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3401 2011-05-08 Jan Hubicka <jh@suse.cz>
3403 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3404 Arrange type pairs to be UID ordered.
3405 (gimple_lookup_type_leader): Make inline.
3407 2011-05-09 Nick Clifton <nickc@redhat.com>
3410 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3414 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3417 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
3419 * combine.c (simplify_comparison): Abstract out parts into...
3420 (simplify_compare_const): ... new function.
3421 (try_combine): Generalize parallel arithmetic/compare combining
3422 to call simplify_compare_const() and CANONICALIZE_COMPARE().
3424 2011-05-08 Jan Hubicka <jh@suse.cz>
3426 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3427 (cgraph_create_virtual_clone): Call hooks once virtual clone
3429 * cgraph.h (cgraph_clone_node): Update prototype.
3430 * ipa-cp.c (ipcp_estimate_growth): Use
3431 estimate_ipcp_clone_size_and_time.
3432 * ipa-inline-transform.c (clone_inlined_nodes): Update.
3433 * lto-cgraph.c (input_node): Update.
3434 * ipa-inline.c (recursive_inlining): Update.
3435 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3436 (evaluate_conditions_for_known_args): Break out from ...
3437 (evaluate_conditions_for_edge): ... here.
3438 (evaluate_conditions_for_ipcp_clone): New function.
3439 (inline_node_duplication_hook): Update clone summary based
3441 (estimate_callee_size_and_time): Rename to ...
3442 (estimate_node_size_and_time): take NODE instead of EDGE;
3443 take POSSIBLE_TRUTHS as argument.
3444 (estimate_callee_size_and_time): Update.
3445 (estimate_ipcp_clone_size_and_time): New function.
3446 (do_estimate_edge_time): Update.
3448 2011-05-08 Richard Guenther <rguenther@suse.de>
3452 * expmed.c (expand_shift_1): Compute adjusted constant shift
3455 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3457 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3459 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
3461 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3463 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
3465 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3467 2011-05-07 Jan Hubicka <jh@suse.cz>
3469 * ipa-inline-transform.c (inline_call): Account when program size
3471 * ipa-inline.c (relative_time_benefit): New function.
3472 (edge_badness): Reorganize to be power 2 based; fix thinko when
3473 computing badness for negative growth; update comments to match
3474 reality; better dumps.
3476 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
3478 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3479 type to bool and adjust comment.
3480 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3481 (fold_mathfn_compare): Remove calls to global_bindings_p.
3482 (fold_inf_compare): Likewise.
3483 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3484 * c-tree.h (global_bindings_p): Adjust prototype.
3485 * c-decl.c (global_bindings_p): Return bool and simplify.
3487 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
3489 PR tree-optimization/48837
3490 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3491 when accumulator transformation is performed.
3493 2011-05-06 Jan Hubicka <jh@suse.cz>
3495 * i386.h (ix86_tune_indices): Add
3496 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3497 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3498 * i386.c (initial_ix86_tune_features): Add
3499 X86_SOFTARE_PREFETCHING_BENEFICIAL.
3500 (software_prefetching_beneficial_p): Remove predicate.
3501 (ix86_option_override_internal): Use new macro.
3503 2011-05-06 Jan Hubicka <jh@suse.cz>
3505 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3507 2011-05-06 Jan Hubicka <jh@suse.cz>
3509 * cgraph.c (cgraph_add_thunk): Create real function node instead
3510 of alias node; finalize it and mark needed/reachale; arrange visibility
3511 to be right and add it into the corresponding same comdat group list.
3512 (dump_cgraph_node): Dump thunks.
3513 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3514 cgraph_function_with_gimple_body_p,
3515 cgraph_first_function_with_gimple_body,
3516 cgraph_next_function_with_gimple_body): New functions.
3517 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3519 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3520 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3521 * cgraphunit.c (cgraph_finalize_function): Only look into possible
3522 devirtualization when optimizing.
3523 (verify_cgraph_node): Verify thunks.
3524 (cgraph_analyze_function): Analyze thunks.
3525 (cgraph_mark_functions_to_output): Output thunks only in combination
3526 with function they are assigned to.
3527 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3528 alias into normal node.
3529 (assemble_thunks): New functoin.
3530 (cgraph_expand_function): Use it.
3531 * lto-cgraph.c (lto_output_node): Stream thunks.
3532 (input_overwrite_node): Stream in thunks.
3533 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3534 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3535 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3536 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3537 (inline_analyze_function): Do not care about thunk jump functions.
3538 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3539 * ipa-prop.c (ipa_prop_write_jump_functions): Use
3540 cgraph_function_with_gimple_body_p.
3541 * passes.c (do_per_function_toporder): Use
3542 cgraph_function_with_gimple_body_p.
3543 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3544 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3545 (function_called_by_processed_nodes_p): Likewise.
3547 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3549 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3550 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3552 (mabi=): Replace with separate entries for mabi=altivec,
3553 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3554 mabi=ieeelongdouble and mabi=ibmlongdouble.
3555 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3556 check for -mabi=spe without SPE ABI support here.
3557 (rs6000_handle_option): Replace OPT_mabi_ handling with
3558 OPT_mabi_altivec and OPT_mabi_spe handling.
3560 2011-05-06 Cary Coutant <ccoutant@google.com>
3562 * dwarf2out.c (contains_subprogram_definition): New function.
3563 (should_move_die_to_comdat): Call it.
3565 2011-05-06 Jeff Law <law@redhat.com>
3567 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3568 remove_ctrl_stmt_and_useless_edges.
3569 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3570 (fixup_template_block, thread_single_edge): Likewise.
3571 (mark_threaded_blocks): Use THREAD_TARGET.
3573 2011-05-06 Alan Modra <amodra@gmail.com>
3576 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3577 const0_rtx as the arg to the dummy __tls_get_addr libcall.
3579 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3581 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3582 constraint modifier to "r".
3584 2011-05-06 Joseph Myers <joseph@codesourcery.com>
3586 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3587 fall through for OPT_mcmodel_.
3589 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3591 * config/s390/s390.c (s390_asm_trampoline_template): Comment
3593 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3595 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3598 * config/arm/arm.opt (marm): Document it.
3599 (mthumb): Reject negative variant.
3601 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
3604 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3605 Fix typo in "ccvt" variable name.
3607 2011-05-06 Tristan Gingold <gingold@adacore.com>
3610 * config/vms/vms-ar.c (main): Remove cwd variable.
3612 2011-05-06 Jakub Jelinek <jakub@redhat.com>
3615 * var-tracking.c (prepare_call_arguments): Move else before #endif.
3617 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
3619 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3620 * gimplify.c (gimplify_switch_expr): Likewise.
3621 * omp-low.c (expand_omp_sections): Likewise.
3622 * tree-eh.c (lower_try_finally_switch): Likewise.
3623 (lower_eh_dispatch): Likewise.
3624 * tree.h (build_case_label): Declare.
3625 * tree.c (build_case_label): Define.
3627 2011-05-05 Jason Merrill <jason@redhat.com>
3630 * tree-inline.c (copy_tree_r): Use copy_statement_list.
3631 (copy_statement_list): Don't recurse.
3632 * stor-layout.c (copy_self_referential_tree_r): Don't allow
3635 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3637 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3638 through from -mfpu= handling.
3639 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3641 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
3643 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3646 2011-05-05 Steve Ellcey <sje@cup.hp.com>
3648 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3650 (hppa[12]*-*-hpux11*): Ditto.
3651 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3652 * config/ia64/hpux-unix2003.h: New.
3653 * config/pa/pa-hpux1131.opt: New.
3654 * config/pa/pa-hpux1131.h: New.
3655 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3656 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3657 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3659 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3662 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3663 instead of mode as 3rd argument to recursive call.
3664 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3665 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3667 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3668 don't give up if mode is Pmode and mem_mode is not VOIDmode.
3669 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3670 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3672 2011-05-05 Julian Brown <julian@codesourcery.com>
3674 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3675 parenthesis in D-register case.
3677 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3679 * opt-functions.awk (var_type_struct): Handle Enum options.
3680 * optc-gen.awk: Don't check range of variables of character type.
3681 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3682 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3683 rs6000_sdata_name, rs6000_explicit_options): Remove.
3684 (rs6000_option_override_internal): Check for -malign-power here.
3685 Use global_options_set instead of rs6000_explicit_options.
3686 (rs6000_parse_fpu_option): Remove.
3687 (rs6000_handle_option): Access variables via opts and opts_set
3688 pointers. Use error_at and warning_at. Add fall-through
3689 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3690 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3691 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3692 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3693 here. Don't use rs6000_parse_fpu_option.
3694 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3695 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3696 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3698 (mspe): Use Var and Save.
3699 (mtraceback=): Use Enum and Var.
3700 (rs6000_traceback_type): New Enum and EnumValue entries.
3701 (mfloat-gprs=): Use Enum, Var and Save.
3702 (rs6000_float_gprs): New Enum and EnumValue entries.
3703 (mlong-double-): use Var and Save.
3704 (msched-costly-dep=, minsert-sched-nops=): Use Var.
3705 (malign-): Use Enum and Var.
3706 (rs6000_alignment_flags): New Enum and EnumValue entries.
3708 (fpu_type_t): New Enum and EnumValue entries.
3709 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3710 global_options_set instead of rs6000_explicit_options.
3711 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3712 global_options_set instead of rs6000_explicit_options.
3713 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3714 global_options_set instead of rs6000_explicit_options.
3715 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3716 global_options_set instead of rs6000_explicit_options.
3717 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3718 global_options_set instead of rs6000_explicit_options.
3719 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3720 global_options_set instead of rs6000_explicit_options.
3721 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3723 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3724 global_options_set instead of rs6000_explicit_options.
3725 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3726 (rs6000_cmodel): New Enum and EnumValue entries.
3727 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3728 global_options_set instead of rs6000_explicit_options.
3729 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3730 (mtls-size=): Use Enum and Var.
3731 (rs6000_tls_size): New Enum and EnumValue entries.
3733 2011-05-05 Michael Matz <matz@suse.de>
3735 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3736 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3737 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3738 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3739 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3740 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3741 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3742 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3743 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3744 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3745 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3746 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3747 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3748 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3749 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3750 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3752 2011-05-05 Richard Guenther <rguenther@suse.de>
3754 * expmed.c (expand_variable_shift): Rename to ...
3755 (expand_shift_1): ... this. Take an expanded shift amount.
3756 For rotates recurse directly not building trees for the shift amount.
3757 (expand_variable_shift): Wrap around expand_shift_1.
3758 (expand_shift): Adjust.
3760 2011-05-05 Jakub Jelinek <jakub@redhat.com>
3762 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3764 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
3766 * tree.h (get_pending_sizes): Remove prototype.
3767 (put_pending_size): Likewise.
3768 (put_pending_sizes): Likewise.
3769 * stor-layout.c (pending_sizes): Delete.
3770 (get_pending_sizes): Likewise.
3771 (put_pending_size): Likewise.
3772 (put_pending_sizes): Likewise.
3773 (variable_size): Do not call put_pending_size and tidy up.
3774 * function.h (struct function): Remove dont_save_pending_sizes_p.
3775 * lto-streamer-in.c (input_function): Do not stream it.
3776 * lto-streamer-out.c (output_function): Likewise.
3777 * tree-inline.c (initialize_cfun): Do not copy it.
3778 * c-decl.c (store_parm_decls): Do not set it.
3779 * omp-low.c (create_task_copyfn): Likewise.
3780 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3782 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
3784 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3786 (*movdf_internal): Ditto.
3787 (*movdf_internal_nointeger): Ditto.
3788 (*movsf_internal): Ditto.
3790 2011-05-05 Joseph Myers <joseph@codesourcery.com>
3792 * c-decl.c (finish_decl): Don't call get_pending_sizes.
3793 (grokparm): Add parameter expr. Pass it to grokdeclarator.
3794 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
3795 (c_variable_size): Remove.
3796 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
3797 call put_pending_sizes.
3798 (get_parm_info): Add parameter expr. Use it to set
3799 arg_info->pending_sizes.
3800 (store_parm_decls): Use arg_info->pending_sizes instead or calling
3802 * c-parser.c (c_parser_parms_declarator): Update call to
3803 c_parser_parms_list_declarator.
3804 (c_parser_parms_list_declarator): Take parameter expr. Update
3805 call to push_parm_decl. Update recursive call. Don't call
3806 get_pending_sizes. Update calls to get_parm_info.
3807 (c_parser_objc_method_definition): Update calls to
3808 c_parser_objc_method_decl and objc_start_method_definition.
3809 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3810 (c_parser_objc_method_decl): Add parameter expr. Update call to
3812 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3813 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3814 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3816 2011-05-05 Michael Hope <michael.hope@linaro.org>
3819 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3822 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3824 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3825 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3826 (spu_output_mi_thunk): New function.
3828 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3830 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3831 targetm.asm_out.print_operand.
3832 * config/sol2.c: Include target.h.
3834 2011-05-04 Jan Hubicka <jh@suse.cz>
3836 * ipa-inline.c (reset_edge_caches): New function.
3837 (update_caller_keys): Add check_inlinablity_for; do not
3838 reset edge caches; remove now unnecesary loop.
3839 (update_callee_keys): Add comments; reset node_growth_cache of callee.
3840 (update_all_callee_keys): Likewise.
3841 (inline_small_functions): Sanity check cache; update code
3844 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
3846 PR rtl-optimization/47612
3847 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3848 as the last insn of the sequence to be moved.
3850 2011-05-04 Tobias Burnus <burnus@net-b.de>
3853 * doc/invoke.texi (Ofast): Document that it
3854 enables Fortran's -fno-protect-parens.
3856 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3858 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3860 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
3862 * stor-layout.c (variable_size): Do not issue errors.
3864 2011-05-04 Richard Guenther <rguenther@suse.de>
3866 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3867 for array-ref indices.
3868 (tree_coverage_counter_addr): Likewise.
3869 (build_fn_info_type): Use size_int for index types.
3870 (build_gcov_info): Likewise.
3872 2011-05-04 Richard Guenther <rguenther@suse.de>
3874 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3876 * c-typeck.c (really_start_incremental_init): Use bitsize_int
3877 for constructor indices.
3878 (push_init_level): Likewise.
3880 2011-05-04 Richard Guenther <rguenther@suse.de>
3882 * explow.c (promote_mode): Move variable declarations before code.
3884 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
3886 * tree.h (build_function_type_array): Declare.
3887 (build_varargs_function_type_array): Declare.
3888 (build_function_type_vec, build_varargs_function_type_vec): Define.
3889 * tree.c (build_function_type_array_1): New function.
3890 (build_function_type_array): New function.
3891 (build_varargs_function_type_array): New function.
3893 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
3895 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
3896 before setting STMT_VINFO_TYPE.
3898 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3900 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
3901 instead of spu_pass_by_reference.
3903 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3905 * calls.c (emit_library_call_value_1): Invoke
3906 promote_function_mode hook on libcall arguments.
3907 * explow.c (promote_function_mode, promote_mode): Handle TYPE
3908 argument being NULL.
3909 * targhooks.c (default_promote_function_mode): Lisewise.
3910 * config/s390/s390.c (s390_promote_function_mode): Likewise.
3911 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
3913 * doc/tm.texi: Document that TYPE argument might be NULL.
3915 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3917 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
3919 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3922 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
3924 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3926 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
3927 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
3929 * mips-tfile.c: ... here.
3930 Don't include coretypes.h, tm.h, filenames.h.
3931 (saber_stop): Remove definition and all calls.
3932 [__SABER__]: Remove.
3933 (__LINE__): Remove default.
3934 (Size_t, Ptrdiff_t): Remove definitions.
3935 Replace by size_t, ptrdiff_t.
3936 [!MIPS_DEBUGGING_INFO]: Remove.
3937 (SHASH_SIZE, THASH_SIZE): Remove defaults.
3938 (progname): Add const.
3940 Replace all uses by static.
3941 (ALIGN_SYMTABLE_OFFSET): Remove default.
3942 * mips-tdump.c: Don't include coretypes.h, tm.h.
3943 Remove !MIPS_IS_STAB guard.
3944 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
3945 $(TM_H), filenames.h dependencies.
3946 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
3948 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3951 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
3952 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
3954 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3957 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
3958 account and save/restore RETS.
3959 (PROFILE_BEFORE_PROLOGUE): Define.
3960 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
3961 the push insn to use predecrement.
3963 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
3966 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
3968 2011-05-04 Nick Clifton <nickc@redhat.com>
3970 * config/mn10300/mn10300.c: Include cfgloop.h.
3972 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
3973 Lcc or a FLcc insn into the instruction stream.
3974 (mn10300_block_contains_call): New function. Returns true if the
3975 given basic block contains a CALL insn.
3976 (mn10300_loop_contains_call_insn): New function. Returns true if
3977 the given loop contains a CALL insn.
3978 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
3979 to use the SETLB and Lcc or FLcc insns.
3980 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
3981 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
3982 * config/mn10300/mn10300.opt (msetlb): New option. Used to
3983 disable the SETLB optimization.
3984 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
3985 __SETLB__ or __NO_SETLB__.
3986 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
3987 (movsf_internal): Handle MDR register.
3988 (cmpsi): Make visible.
3989 (setlb): New pattern.
3991 (FLcc): New pattern.
3993 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
3996 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
3997 for reg<->xmm moves.
3998 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
3999 (vec_concatv2di_rex64_sse): Ditto.
4000 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4001 (*vec_extractv2di_1_rex64): Ditto.
4004 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4006 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4008 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4010 2011-05-04 Richard Guenther <rguenther@suse.de>
4012 * tree.h (int_const_binop): Remove notrunc argument.
4013 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4014 create integer constants that are properly truncated.
4015 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4016 (const_binop): Remove zero notrunc argument to int_const_binop.
4017 (size_binop_loc): Likewise.
4018 (fold_div_compare): Likewise.
4019 (maybe_canonicalize_comparison_1): Likewise.
4020 (fold_comparison): Likewise.
4021 (fold_binary_loc): Likewise.
4022 (multiple_of_p): Likewise.
4023 * expr.c (store_constructor): Likewise.
4024 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4025 (maybe_fold_stmt_addition): Likewise.
4026 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4027 * stor-layout.c (layout_type): Likewise.
4028 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4029 * tree-sra.c (build_ref_for_offset): Likewise.
4030 (build_user_friendly_ref_for_offset): Likewise.
4031 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4032 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4033 * tree-ssa-loop-niter.c (inverse): Likewise.
4034 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4035 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4036 * tree-switch-conversion.c (check_range): Likewise.
4037 (build_constructors): Likewise.
4038 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4039 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4040 (extract_range_from_assert): Likewise.
4041 (vrp_int_const_binop): Likewise.
4042 (extract_range_from_binary_expr): Likewise.
4043 (extract_range_from_unary_expr): Likewise.
4044 (check_array_ref): Likewise.
4045 (find_case_label_range): Likewise.
4046 (simplify_div_or_mod_using_ranges): Likewise.
4047 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4048 comparing case labels for merging.
4050 2011-05-03 Mark Wielaard <mjw@redhat.com>
4052 * dwarf2out.c (debug_str_hash_forced): Removed.
4053 (gen_label_for_indirect_string): Removed.
4054 (get_debug_string_label): Removed.
4055 (AT_string_form): Generate label directly.
4056 (output_indirect_string): Test indirect_string_node for
4057 DW_FORM_strp instead of checking label and refcount.
4058 (prune_indirect_string): Removed.
4059 (prune_unused_types): Don't check debug_str_hash_forced or
4060 call prune_indirect_string.
4062 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4065 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4067 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4071 * combine.c (try_combine): Skip debug insns at m_split tests.
4073 2011-04-26 Mark Wielaard <mjw@redhat.com>
4076 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4077 when info_section_emitted.
4079 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4081 * config/mips/mips-opts.h: New.
4082 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4084 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4085 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4086 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4088 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4090 (mips_abi, mips_code_readable): Don't declare.
4091 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4092 (mabi=): Use Enum and Var.
4093 (mips_abi): New Enum and EnumValue entries.
4094 (mcode-readable=): Use Enum and Var.
4095 (mips_code_readable_setting): New Enum and EnumValue entries.
4096 (mr10k-cache-barrier=): Use Enum and Var.
4097 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4099 2011-05-03 Jan Hubicka <jh@suse.cz>
4101 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4102 replace hash by pointer map.
4103 (cgraph_node_set_element_def, cgraph_node_set_element,
4104 const_cgraph_node_set_element, varpool_node_set_element_def,
4105 varpool_node_set_element, const_varpool_node_set_element): Remove.
4106 (free_cgraph_node_set, free_varpool_node_set): New function.
4107 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4108 * tree-emutls.c: Free varpool node set.
4109 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4110 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4111 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4112 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4113 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4114 Move here from ipa.c; implement using pointer_map
4115 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4116 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4117 debug_cgraph_node_set, varpool_node_set_new,
4118 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4119 dump_varpool_node_set, debug_varpool_node_set):
4120 Move to ipa-uitls.c.
4121 * passes.c (ipa_write_summaries): Update.
4123 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4125 From Mike Frysinger:
4126 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4127 bf542/bf544/bf547/bf548/bf549.
4129 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4131 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4133 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4136 * config/bfin/bfin.md (MOVCC): New mode_macro.
4137 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4138 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4139 comments from generated assembly.
4141 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4144 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4145 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4146 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4147 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4148 * config/bfin/lib1funcs.asm (___muldi3): New function.
4150 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4152 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4153 build_function_type_list instead of build_function_type.
4154 Rearrange initialization of `args' to do so.
4156 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4158 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4159 instead of build_function_type.
4161 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4163 * config/rs6000/rs6000.c (spe_init_builtins): Call
4164 build_function_type_list instead of build_function_type.
4165 (paired_init_builtins, altivec_init_builtins): Likewise.
4166 (builtin_function_type): Likewise.
4168 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4170 * config/sh/sh.c (sh_media_init_builtins): Call
4171 build_function_type_list instead of build_function_type.
4173 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4175 * config/sparc/sparc.c (sparc_file_end): Call
4176 build_function_type_list instead of build_function_type.
4178 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4180 * config/alpha/alpha.c (alpha_init_builtins): Call
4181 build_function_type_list instead of build_function_type.
4183 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4185 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4186 build_function_type_list instead of build_function_type.
4188 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4190 * config/iq2000/i2000.c (iq2000_init_builtins): Call
4191 build_function_type_list instead of build_function_type.
4192 Delete `endlink' variable.
4194 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4196 * config/avr/avr.c (avr_init_builtins): Call
4197 build_function_type_list instead of build_function_type.
4199 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4201 * config/picochip/picochip.c (picochip_init_builtins): Call
4202 build_function_type_list instead of build_function_type.
4203 Delete `endlink' variable.
4205 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
4207 * config/bfin/bfin.c (bfin_init_builtins): Call
4208 build_function_type_list instead of build_function_type.
4210 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4213 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4214 that's not CONST_INT. Seemingly redundant check is due to PR39768.
4216 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4219 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4220 libbffastfp overrides libgcc when -mfast-fp.
4222 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4224 Originally from Bernd Schmidt
4225 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4226 * config/bfin/bfin.c (override_options): Test it and error if
4229 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4231 Originally From Bernd Schmidt
4232 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4235 2011-05-03 Jeff Law <law@redhat.com>
4237 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4238 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4239 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4240 than accessing AUX field directly. Free the AUX field before
4242 (thread_block, thread_through_loop_header): Likewise.
4243 (thread_single_edge, mark_threaded_blocks): Likewise.
4244 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
4245 (register_jump_thread): Do not attempt to thread to a NULL edge.
4247 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4249 * function.c (init_function_start): Call decide_function_section.
4250 * varasm.c (decide_function_section): New function.
4251 (assemble_start_function): When not using
4252 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4253 or first_function_block_is_cold.
4254 * rtl.h (decide_function_section): Declare.
4256 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4257 Jakub Jelinek <jakub@redhat.com>
4260 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4261 only succeed if req_mode is the same as set_mode.
4263 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
4265 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4266 * genemit.c (gen_exp): Handle RETURN.
4267 * emit-rtl.c (verify_rtx_sharing): Likewise.
4268 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4269 * rtl.c (copy_rtx): RETURN is shared.
4270 * rtl.h (enum global_rtl_index): Add GR_RETURN.
4272 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4273 * config/s390/s390.c (s390_emit_epilogue): Likewise.
4274 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4275 * config/cris/cris.c (cris_expand_return): Likewise.
4276 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4277 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4278 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4279 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4280 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4282 * config/v850/v850.c (expand_epilogue): Likewise.
4283 * config/bfin/bfin.c (bfin_expand_call): Likewise.
4284 * config/arm/arm.md (epilogue): Likewise.
4285 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4286 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4287 variable to ret_reg.
4289 2011-05-03 Richard Guenther <rguenther@suse.de>
4292 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4293 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4294 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4296 2011-05-03 Richard Guenther <rguenther@suse.de>
4298 * c-decl.c (grokdeclarator): Instead of looking at
4299 TREE_OVERFLOW check if the constant fits in the index type.
4301 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4303 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4304 (vec_store_lanes<mode><mode>): Likewise.
4306 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4308 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4309 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4310 convert_optab_index values.
4311 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4312 * genopinit.c (optabs): Initialize the new optabs.
4313 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4314 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4315 (expand_STORE_LANES): New functions.
4316 * tree.h (build_array_type_nelts): Declare.
4317 * tree.c (build_array_type_nelts): New function.
4318 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4319 (vect_model_load_cost): Likewise.
4320 (vect_store_lanes_supported, vect_load_lanes_supported)
4321 (vect_record_strided_load_vectors): Declare.
4322 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4323 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4324 (vect_transform_strided_load): Split out statement recording into...
4325 (vect_record_strided_load_vectors): ...this new function.
4326 * tree-vect-stmts.c (create_vector_array, read_vector_array)
4327 (write_vector_array, create_array_ref): New functions.
4328 (vect_model_store_cost): Add store_lanes_p argument.
4329 (vect_model_load_cost): Add load_lanes_p argument.
4330 (vectorizable_store): Try to use store-lanes functions for
4332 (vectorizable_load): Likewise load-lanes and loads.
4333 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4334 to vect_model_store_cost.
4335 (vect_build_slp_tree): Likewise vect_model_load_cost.
4337 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
4339 * hooks.h (hook_bool_mode_uhwi_false): Declare.
4340 * hooks.c (hook_bool_mode_uhwi_false): New function.
4341 * target.def (array_mode_supported_p): New hook.
4342 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4343 * doc/tm.texi: Regenerate.
4344 * stor-layout.c (mode_for_array): New function.
4345 (layout_type): Use it.
4346 * config/arm/arm.c (arm_array_mode_supported_p): New function.
4347 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4349 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
4352 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4353 for -fstack-check if the size to allocate is negative.
4355 2011-05-02 Lawrence Crowl <crowl@google.com>
4357 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4358 (timevar_cond_start): New for starting a timer only when it is not
4360 (timevar_cond_stop): New for stopping a timer when it was not already
4363 * timevar.c (timevar_stop): Enable start/stop timers to start again.
4364 (timevar_cond_start): New as above.
4365 (timevar_cond_stop): New as above.
4367 * timevar.def: Add start/stop timers for compiler phases,
4368 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4369 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4370 and TV_PHASE_FINALIZE.
4371 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4372 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4373 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4374 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4375 Make unused TV_OVERLOAD into a start/stop timer.
4377 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4378 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4379 to indicate that they are start/stop timers.
4381 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4382 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4383 Move initialization to do_compile.
4384 (do_compile): Add initialization from above.
4385 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4387 * c-decl.c (c_write_global_declarations): Add start/stop of
4388 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4390 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4391 or TV_PARSE_INLINE, as appropriate.
4392 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4393 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4395 2011-05-02 Jason Merrill <jason@redhat.com>
4398 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4400 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
4403 * c-decl.c (finish_decl): Only create a composite if the types are
4406 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4408 * config/fr30/fr30-protos.h (Mmode): Don't define.
4409 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
4410 definition where used.
4411 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4412 define. Expand definitions where used.
4413 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4414 Expand definitions where used.
4415 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4416 rx_function_arg, rx_function_arg_advance,
4417 rx_function_arg_boundary): Expand definitions of those macros.
4418 * config/v850/v850-protos.h (Mmode): Don't define. Expand
4419 definition where used.
4421 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4423 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4425 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4426 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
4427 with *movv2sf_internal_rex64_avx.
4428 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4429 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4430 Use %v prefix in insn mnemonic to handle TARGET_AVX.
4431 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
4432 "vex" in "prefix" attribute calculation.
4433 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
4435 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
4438 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4439 inputs match the output.
4441 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
4444 * config/m68k/m68k.c (m68k_expand_prologue): Set
4445 current_function_static_stack_size.
4447 2011-05-02 Jan Hubicka <jh@suse.cz>
4449 * lto-streamer.c (lto_streamer_cache_insert_1,
4450 lto_streamer_cache_lookup, lto_streamer_cache_create,
4451 lto_streamer_cache_delete): Use pointer map instead of hashtable.
4452 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4454 2011-05-02 Joseph Myers <joseph@codesourcery.com>
4456 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4457 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4458 config/m68k/t-opts: New files.
4459 * config/m68k/m68k-tables.opt: New file (generated).
4460 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4461 extra_options and m68k/t-opts to tmake_file.
4462 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4463 (all_isas): Initialize using m68k-isas.def.
4464 (all_microarchs): Initialize using m68k-microarchs.def.
4465 (m68k_find_selection): Remove.
4466 (m68k_handle_option): Don't assert that global structures are in
4467 use. Use error_at. Access variables via opts pointer. Don't
4468 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
4469 directly for -m68020-40 and -m68020-60.
4470 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4471 m68k_tune_entry here.
4472 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4474 (m68k_library_id_string): Remove declaration.
4475 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4476 (m68k_library_id_string): New Variable.
4477 (march=, mcpu=, mtune=): Use Enum and Var.
4479 2011-05-02 Richard Guenther <rguenther@suse.de>
4481 * varasm.c (output_constructor_regular_field): Compute zero-based
4482 index with double-ints. Make sure to ICE instead of producing
4484 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4485 in asserts. Properly use a signed type.
4487 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4489 * config/i386/sse.md (V): New mode iterator.
4490 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
4492 (V_256): Rename from AVX256MODE.
4493 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
4494 condition to all users.
4496 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
4497 condition to all users.
4498 (VF_128): Make V4SF mode unconditional.
4499 (VF_256): Rename from AVX256MODEF2P.
4500 (VI4F_128): Rename from SSEMODE4S.
4501 (VI8F_128): Rename from SSEMODE2D.
4502 (VI4F_256): Rename from AVX256MODE8P.
4503 (VI8F_256): Rename from AVX256MODE4P.
4504 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4505 (ssescalarmodesuffix): Remove SF and DF modes.
4506 (SSEMODE124): Remove.
4507 (SSEMODE1248): Ditto.
4508 (SSEMODEF2P): Ditto.
4509 (AVXMODEF2P): Ditto.
4510 (AVXMODEFDP): Ditto.
4511 (AVXMODEFSP): Ditto.
4512 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4514 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
4516 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4517 xop_pcmov_<mode>256. Use V mode iterator.
4519 Adjust RTX patterns globally for renamed mode attributes.
4521 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4523 * haifa-sched.c (sched_emit_insn): Emit insn before first
4524 non-scheduled insn. Inform back-end about new insn. Add
4525 new insn to scheduled_insns list.
4527 2011-05-02 Richard Guenther <rguenther@suse.de>
4529 PR tree-optimization/48822
4530 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4531 (process_scc): Indicate which iteration we start.
4533 2011-05-02 Jan Hubicka <jh@suse.cz>
4535 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4536 (lto_section_overrun): New.
4537 * lto-section-out.c (append_block): Rename to ...
4538 (lto_append_block): ... this one; export.
4539 (lto_output_1_stream): Move lto lto-streamer.h
4540 (lto_output_data_stream): Update.
4541 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4542 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4545 2011-05-02 Richard Guenther <rguenther@suse.de>
4547 * tree.c (tree_code_counts): New global array.
4548 (record_node_allocation_statistics): Count individual tree codes.
4549 (dump_tree_statistics): Dump individual code stats.
4551 2011-05-01 Jan Hubicka <jh@suse.cz>
4553 * ipa-inline.c (caller_growth_limits): Fix thinko when
4554 looking for largest stack frame.
4555 * ipa-inline.h (dump_inline_summary): Declare.
4556 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4558 (dump_inline_summary): Export.
4559 (debug_inline_summary): Declare as DEBUG_FUNCTION.
4561 2011-05-01 Anatoly Sokolov <aesok@post.ru>
4563 * reginfo.c (memory_move_cost): Change rclass argument type form
4564 'enum reg_class' to reg_class_t.
4565 * reload.h (memory_move_cost): Update prototype.
4566 * postreload.c reload_cse_simplify_set): Change type dclass var to
4568 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4570 (ira_allocate_and_set_costs): Change aclass argument type form
4571 'enum reg_class' to reg_class_t.
4572 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4573 Change aclass argument type to reg_class_t.
4574 (update_conflict_hard_reg_costs): Change type aclass and pref vars
4576 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4577 memory_move_cost call.
4579 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4580 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4581 Change type tmp var to reg_class_t.
4583 2011-04-30 Jan Hubicka <jh@suse.cz>
4585 * ipa-inline.c (can_inline_edge_p): Disregard limits when
4586 inlining into function with flatten attribute.
4587 (want_inline_small_function_p): Be more realistic about inlining
4588 cold calls where callee size grows.
4590 2011-04-30 Jan Hubicka <jh@suse.cz>
4592 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4595 2011-04-30 Anatoly Sokolov <aesok@post.ru>
4597 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4598 PRINT_OPERAND_PUNCT_VALID_P): Remove.
4599 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4600 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4601 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4602 (print_operand): Rename to...
4603 (sparc_print_operand): ...this. Make static. Adjust
4604 sparc_print_operand function call.
4605 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4608 2011-04-30 Jan Hubicka <jh@suse.cz>
4611 * ipa-inline.c (early_inliner): Disable when doing late
4612 addition of function.
4614 2011-04-30 Jakub Jelinek <jakub@redhat.com>
4616 * dwarf2out.c (get_address_mode): New inline.
4617 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4618 if not dwarf_strict emit
4619 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4620 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4621 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
4622 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4623 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4624 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4625 mem_loc_descriptor callers.
4626 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4627 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4628 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4629 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4630 (base_types): New variable.
4631 (get_base_type_offset, calc_base_type_die_sizes,
4632 base_type_for_mode, mark_base_types, base_type_cmp,
4633 move_marked_base_types): New functions.
4634 (calc_die_sizes): Assert that die_offset is 0 or equal to
4636 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4637 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
4638 callers. If not dwarf_strict, call mem_loc_descriptor even for
4639 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4640 (gen_subprogram_die): Don't give up on call site parameters
4641 with non-integral or large integral modes. Adjust
4642 mem_loc_descriptor callers.
4643 (prune_unused_types): Call prune_unused_types_mark on base_types
4645 (resolve_addr): Call mark_base_types.
4646 (dwarf2out_finish): Call move_marked_base_types.
4648 PR tree-optimization/48809
4649 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4651 (gen_inbound_check): Don't compute index_expr - range_min in utype
4652 again, instead reuse SSA_NAME initialized in build_arrays.
4653 Remove two useless gsi_for_stmt calls.
4655 2011-04-29 Jeff Law <law@redhat.com>
4657 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4659 2011-04-29 Martin Jambor <mjambor@suse.cz>
4661 * cgraph.h (cgraph_postorder): Remove declaration.
4662 * ipa-utils.h (ipa_free_postorder_info): Declare.
4663 (ipa_reverse_postorder): Likewise.
4664 * cgraphunit.c: Include ipa-utils.h.
4665 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4666 * ipa-inline.c: Include ipa-utils.h.
4667 (ipa_inline): Update call to ipa_reverse_postorder.
4668 * ipa-pure-const.c (propagate_pure_const): Update call to
4669 ipa_reduced_postorder and ipa_print_order. Call
4670 ipa_free_postorder_info to clean up.
4671 (propagate_nothrow): Likewise.
4672 * ipa-reference.c (propagate): Removed a useless call to
4673 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4674 and ipa_print_order. Call ipa_free_postorder_info to clean up.
4675 * ipa.c: Include ipa-utils.h.
4676 (ipa_profile): Update call to ipa_reverse_postorder.
4677 (cgraph_postorder): Moved to...
4678 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4679 (ipa_utils_print_order): Renamed to ipa_print_order.
4680 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4682 (ipa_free_postorder_info): New function.
4683 * passes.c: Include ipa-utils.h.
4684 (do_per_function_toporder): Update call to ipa_reverse_postorder.
4685 (ipa_write_summaries): Likewise.
4686 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4687 (cgraphunit.o): Likewise.
4689 (ipa-inline.o): Likewise.
4691 2011-04-29 Jan Hubicka <jh@suse.cz>
4693 * gcc.dg/tree-ssa/inline-10.c: New testcase.
4694 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4695 * ipa-inline.h (clause_t): Turn into unsigned int.
4696 * ipa-inline-analysis.c (add_clause): Do more simplification.
4697 (and_predicates): Shortcut more cases.
4698 (predicates_equal_p): Move forward; check that clauses are properly
4700 (or_predicates): Shortcut more cases.
4701 (edge_execution_predicate): Rewrite as...
4702 (set_cond_stmt_execution_predicate): ... this function; handle
4703 __builtin_constant_p.
4704 (set_switch_stmt_execution_predicate): New .
4705 (compute_bb_predicates): New.
4706 (will_be_nonconstant_predicate): Update TODO.
4707 (estimate_function_body_sizes): Use compute_bb_predicates
4708 and free them later, always try to estimate if stmt is constant.
4709 (estimate_time_after_inlining, estimate_size_after_inlining):
4710 Gracefully handle optimized out edges.
4711 (read_predicate): Fix off by one error.
4713 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
4715 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4717 2011-04-27 Xinliang David Li <davidxl@google.com>
4719 * tree-profile.c (init_ic_make_global_vars): Set
4720 tls attribute on ic vars.
4721 * coverage.c (coverage_end_function): Initialize
4722 function_list with zero.
4724 2011-04-29 Richard Guenther <rguenther@suse.de>
4726 * builtins.c (fold_builtin_classify_type): Use integer_type_node
4727 for the type of the result.
4728 (fold_builtin_isascii): Likewise.
4729 (fold_builtin_toascii): Use integer_type_node where appropriate.
4730 (fold_builtin_logb): Likewise.
4731 (fold_builtin_frexp): Likewise.
4732 (fold_builtin_strstr): Likewise.
4733 (fold_builtin_strpbrk): Likewise.
4734 (fold_builtin_fputs): Likewise.
4735 (fold_builtin_sprintf): Likewise.
4736 (fold_builtin_snprintf): Likewise.
4737 (fold_builtin_printf): Likewise.
4738 (do_mpfr_remquo): Use a proper type for the assigned constant.
4739 (do_mpfr_lgamma_r): Likewise.
4740 * dwarf2out.c (resolve_one_addr): Use size_int.
4741 * except.c (init_eh): Likewise.
4742 (assign_filter_values): Use integer_type_node for filter values.
4743 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4745 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4746 for EH region numbers.
4747 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4748 for the shift amount.
4750 2011-04-29 Richard Guenther <rguenther@suse.de>
4752 * expr.h (expand_shift): Rename to ...
4753 (expand_variable_shift): ... this.
4754 (expand_shift): Take a constant shift amount.
4755 * expmed.c (expand_shift): Rename to ...
4756 (expand_variable_shift): ... this.
4757 (expand_shift): New wrapper around expand_variable_shift.
4758 * expr.c (convert_move, emit_group_load_1, emit_group_store,
4759 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4760 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4761 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4762 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4763 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4764 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4765 emit_store_flag_1, emit_store_flag): Likewise.
4766 * builtins.c (expand_builtin_signbit): Likewise.
4767 * calls.c (load_register_parameters): Likewise.
4768 * function.c (assign_parm_setup_block): Likewise.
4769 * lower-subreg.c (resolve_shift_zext): Likewise.
4770 * optabs.c (widen_bswap, expand_abs_nojump,
4771 expand_one_cmpl_abs_nojump, expand_float): Likewise.
4772 * spu/spu.c (spu_expand_extv): Likewise.
4773 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4775 2011-04-29 Richard Guenther <rguenther@suse.de>
4777 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4778 for the remapped region number.
4779 * predict.c (build_predict_expr): Use integer_type_node for the
4781 * fold-const.c (fold_binary_loc): Use integer_type_node for
4782 the shift amount. Use a proper type for the PLUS_EXPR operand.
4784 2011-04-29 Michael Matz <matz@suse.de>
4786 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4787 other trees that just builtins.
4788 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4790 2011-04-29 Richard Guenther <rguenther@suse.de>
4792 * tree-nested.c (get_trampoline_type): Use size_int.
4793 (get_nl_goto_field): Likewise.
4794 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4796 (lower_eh_constructs_2): Likewise.
4797 (lower_resx): Likewise.
4798 (lower_eh_dispatch): Likewise.
4799 * tree-mudflap.c (mf_build_string): Use size_int.
4800 (mudflap_register_call): Use integer_type_node for the flag.
4801 (mudflap_enqueue_constant): Use size_int.
4802 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4803 instead of rebuilding it.
4805 2011-04-29 Richard Guenther <rguenther@suse.de>
4807 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4808 Handle OBJ_TYPE_REF.
4809 (find_func_aliases_for_call): Use it more consistently.
4811 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
4813 * haifa-sched.c (last_nondebug_scheduled_insn): New.
4814 (rank_for_schedule): Use it.
4815 (schedule_block): Set it.
4817 2011-04-28 David Li <davidxl@google.com>
4819 * tree.c (crc32_string): Use crc32_byte.
4820 (crc32_byte): New function.
4821 * tree.h (crc32_byte): New function.
4822 * gcov.c (read_graph_file): Handle new cfg_cksum.
4823 (read_count_file): Ditto.
4824 * profile.c (instrument_values): Ditto.
4825 (get_exec_counts): Ditto.
4826 (read_profile_edge_counts): Ditto.
4827 (compute_branch_probabilities): Ditto.
4828 (compute_value_histograms): Ditto.
4829 (branch_prob): Ditto.
4830 (end_branch_prob): Ditto.
4831 * coverage.c (read_counts_file): Ditto.
4832 (get_coverage_counts): Ditto.
4833 (tree_coverage_counter_addr): Ditto.
4834 (coverage_checksum_string): Ditto.
4835 (coverage_begin_output): Ditto.
4836 (coverage_end_function): Ditto.
4837 (build_fn_info_type): Ditto.
4838 (build_fn_info_value): Ditto.
4839 * libgcov.c (gcov_exit): Ditto.
4840 * gcov-dump.c (tag_function): Ditto.
4841 (compute_checksum): Remove.
4843 2011-04-29 Alan Modra <amodra@gmail.com>
4845 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4846 unspec plus offset. Tidy macho code.
4848 2011-04-29 Martin Jambor <mjambor@suse.cz>
4850 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4851 node instead of a decl. Update all callers.
4852 * cgraph.h: Update declaration.
4854 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
4856 PR tree-optimization/48765
4857 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4858 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4859 to indicate if loop aware SLP is being used. Scan the statements
4860 and update the vectorization factor according to the type of
4861 vectorization before statement analysis.
4862 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4863 pass it to vect_analyze_loop_operations.
4864 (vectorizable_reduction): Set number of copies to 1 in case of pure
4866 * tree-vect-stmts.c (vectorizable_conversion,
4867 vectorizable_assignment, vectorizable_shift,
4868 vectorizable_operation, vectorizable_type_demotion,
4869 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4871 (vectorizable_condition): Move the check that it is not SLP
4872 vectorization before the number of copies check.
4873 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4874 to vectorize the loop using SLP.
4876 2011-04-28 Jakub Jelinek <jakub@redhat.com>
4879 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4882 2011-04-28 Joseph Myers <joseph@codesourcery.com>
4884 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
4885 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
4886 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
4887 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
4888 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
4890 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
4891 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4892 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4893 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4894 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
4895 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
4897 * config/i386/linux.h (REG_NAME): Don't define.
4898 * config/i386/linux64.h (REG_NAME): Don't define.
4899 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
4900 Undefine before defining.
4902 2011-04-28 Jan Hubicka <jh@suse.cz>
4904 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
4905 nonconstant_names array.
4906 (estimate_function_body_sizes): Build nonconstant_names array; handle
4907 BUILT_IN_CONSTANT_P.
4909 2011-04-28 Richard Guenther <rguenther@suse.de>
4913 2011-04-28 Richard Guenther <rguenther@suse.de>
4915 * tree-ssa-structalias.c (solve_constraints): Build succ graph
4916 as late as possible.
4918 2011-04-28 Richard Guenther <rguenther@suse.de>
4920 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
4921 (debug_constraint): Do it here.
4922 (dump_constraints): And here.
4923 (rewrite_constraints): And here.
4924 (dump_constraint_edge): Remove.
4925 (dump_constraint_graph): Rewrite to produce DOT output.
4926 (solve_constraints): Build succ graph as late as possible.
4927 Dump constraint graphs before and after solving.
4929 2011-04-28 Richard Guenther <rguenther@suse.de>
4931 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
4932 New function split out from ...
4933 (find_func_aliases): ... here. Call it.
4934 (find_func_aliases_for_call): Likewise.
4936 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4938 * internal-fn.h (internal_fn_name_array): Declare.
4939 (internal_fn_flags_array): Likewise.
4941 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
4943 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
4944 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
4946 (ssemodefsuffix): Remove.
4947 (ssevecmodesuffix): New mode attribute.
4948 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
4949 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
4950 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
4951 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
4952 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
4953 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
4954 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
4955 ssemodesuffix mode attribute.
4956 (float splitters): Use ssevecmodesuffix mode attribute.
4957 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
4958 (sseinsmode): Rename from avxvecmode.
4959 (avxsizesuffix): Rename from avxmodesuffix.
4960 (sseintvecmode): Rename from avxpermvecmode.
4961 (ssedoublevecmode): Rename from ssedoublesizemode.
4962 (ssehalfvecmode): Rename from avxhalfvecmode.
4963 (ssescalarmode): Rename from avxscalarmode.
4964 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
4965 templates for ssemodesuffix mode attribute.
4966 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
4969 Adjust RTX patterns globally for renamed mode attributes.
4971 2011-04-27 Jan Hubcika <jh@suse.cz>
4973 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
4974 * ipa-inline-analysis.c: Include alloc-pool.h.
4975 (edge_predicate_pool): New.
4976 (trye_predicate_p): New function
4977 (false_predicate_p): New function.
4978 (add_clause): Sanity check that false clauses are "optimized";
4979 never add clauses to predicate that is already known to be false.
4980 (and_predicate): Use flase_predicate_p.
4981 (evaulate_predicate): Rename to ...
4982 (evaluate_predicate): ... this one; update all callers; assert
4983 that false is not listed among possible truths.
4984 (dump_predicate): Use true_predicate_p.
4985 (account_size_time): Use false_predicate_p.
4986 (evaulate_conditions_for_edge): Rename to ...
4987 (evaluate_conditions_for_edge) ... this one.
4988 (edge_set_predicate): New function.
4989 (inline_edge_duplication_hook): Duplicate edge predicates.
4990 (inline_edge_removal_hook): Free edge predicates.
4991 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
4992 (dump_inline_summary): Update.
4993 (estimate_function_body_sizes): Set edge predicates.
4994 (estimate_calls_size_and_time): Handle predicates.
4995 (estimate_callee_size_and_time): Update.
4996 (remap_predicate): Add toplev_predicate; update comment.
4997 (remap_edge_predicates): New function.
4998 (inline_merge_summary): Compute toplev predicate; update.
4999 (read_predicate): New function.
5000 (read_inline_edge_summary): Use it.
5001 (inline_read_section): Likewise.
5002 (write_predicate): New function.
5003 (write_inline_edge_summary): Use it.
5004 (inline_write_summary): Likewise.
5005 (inline_free_summary): Free alloc pool and edge summary vec.
5007 2011-04-27 Richard Guenther <rguenther@suse.de>
5009 * tree-ssa-structalias.c (changed_count): Remove.
5010 (changed): Use a bitmap.
5011 (unify_nodes): Adjust.
5012 (do_sd_constraint): Likewise.
5013 (do_ds_constraint): Likewise.
5014 (do_complex_constraint): Likewise.
5015 (solve_graph): Likewise.
5017 2011-04-27 Jan Hubicka <jh@suse.cz>
5019 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5021 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5023 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5024 (avx_vperm2f128_*_operand): Ditto.
5025 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5026 Use avx_vpermilp_parallel in insn condition.
5027 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5028 Use avx_vperm2f128_parallel in insn condition.
5030 2011-04-27 Richard Guenther <rguenther@suse.de>
5032 * Makefile.in (tree-ssa-structalias.o): Remove
5033 gt-tree-ssa-structalias.h dependency.
5034 (GTFILES): Remove tree-ssa-structalias.c.
5035 * tree.c (allocate_decl_uid): New function.
5036 (make_node_stat): Use it.
5037 (copy_node_stat): Likewise.
5038 * tree.h (allocate_decl_uid): Declare.
5039 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5040 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5041 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5042 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5043 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5044 (struct heapvar_map): Likewise.
5045 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5046 heapvar_insert): Likewise.
5047 (make_heapvar_for): Rename to ...
5048 (make_heapvar): ... this. Simplify.
5049 (fake_var_decl_obstack): New global var.
5050 (build_fake_var_decl): New function.
5051 (make_constraint_from_heapvar): Adjust.
5052 (handle_lhs_call): Likewise.
5053 (create_function_info_for): Likewise.
5054 (intra_create_variable_infos): Likewise.
5055 (init_alias_vars): Allocate fake_var_decl_obstack.
5056 (init_alias_heapvars, delete_alias_heapvars): Remove.
5057 (compute_points_to_sets): Do not call init_alias_heapvars.
5058 (ipa_pta_execute): Likewise.
5059 (delete_points_to_sets): Free fake_var_decl_obstack.
5061 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5063 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5064 (si_from_UTItype, si_to_UTItype): New functions.
5065 (__udivmodti4): Use them to implement type-punning.
5066 * config/spu/multi3.c (union qword_TItype): New data type.
5067 (si_from_TItype, si_to_TItype): New functions.
5068 (__multi3): Use them to implement type-punning.
5070 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5072 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5074 2011-04-27 Jan Hubicka <jh@suse.cz>
5076 * ipa-prop.c (function_insertion_hook_holder): New holder.
5077 (ipa_add_new_function): New function.
5078 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5079 Register/deregister holder.
5081 2011-04-27 Richard Guenther <rguenther@suse.de>
5083 PR tree-optimization/48772
5084 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5086 2011-04-27 Richard Guenther <rguenther@suse.de>
5088 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5089 TARGET_MEM_REF handling.
5091 2011-04-27 Nick Clifton <nickc@redhat.com>
5093 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5094 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5095 (REG_CLASS_NAMES): Likewise.
5096 (REG_CLASS_CONTENTS): Likewise.
5097 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5098 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5099 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5100 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5101 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5102 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5103 duplicate register classes.
5104 (frv_class_likely_spilled_p): Likewise.
5105 (frv_register_move_cost): Likewise.
5107 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5108 end of the regno_reg_class array.
5110 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5113 * c-typeck.c (build_binary_op): Don't wrap arguments if
5114 int_operands is true.
5116 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5119 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5120 targetm.calls.must_pass_in_stack for void type.
5122 2011-04-26 Jan Hubicka <jh@suse.cz>
5124 * cgraphbuild.c (build_cgraph_edges): Update call
5125 of cgraph_create_edge and cgraph_create_indirect_edge.
5126 * cgraph.c (cgraph_create_edge_including_clones,
5127 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5128 cgraph_update_edges_for_call_stmt_node): Do not take nest
5129 argument; do not initialize call_stmt_size/time.
5130 (dump_cgraph_node): Do not dump nest.
5131 (cgraph_clone_edge): Do not take loop_nest argument;
5132 do not propagate it; do not clone call_stmt_size/time.
5133 (cgraph_clone_node): Likewise.
5134 (cgraph_create_virtual_clone): Update.
5135 * cgraph.h (struct cgraph_edge): Remove
5136 call_stmt_size/call_stmt_time/loop_nest.
5137 (cgraph_create_edge, cgraph_create_indirect_edge,
5138 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5140 * tree-emutls.c (gen_emutls_addr): Update.
5141 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5142 loop_nest; handle indirect calls, too.
5143 (clone_inlined_nodes): Do not care about updating inline summaries.
5144 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5145 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5146 stream call_stmt_size/call_stmt_time/loop_nest.
5147 * ipa-inline.c (edge_badness): Update.
5148 (ipa_inline): dump summaries after inlining.
5149 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5151 (inline_edge_summary): New function.
5152 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5153 (inline_edge_removal_hook): Handle edge summaries.
5154 (inline_edge_duplication_hook): New hook.
5155 (inline_summary_alloc): Alloc hooks.
5156 (initialize_growth_caches): Do not register removal hooks.
5157 (free_growth_caches); Do not free removal hook.
5158 (dump_inline_edge_summary): New function.
5159 (dump_inline_summary): Use it.
5160 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5161 (inline_update_callee_summaries): New function.
5162 (inline_merge_summary): Use it.
5163 (do_estimate_edge_time, do_estimate_edge_growth): Update.
5164 (read_inline_edge_summary): New function.
5165 (inline_read_section): Use it.
5166 (write_inline_edge_summary): New function.
5167 (inline_write_summary): Use it.
5168 (inline_free_summary): Free edge new holders.
5169 * tree-inline.c (copy_bb): Update.
5171 2011-04-26 Jason Merrill <jason@redhat.com>
5173 * tree-eh.c (lower_try_finally_switch): Create the label along with
5174 the CASE_LABEL_EXPR.
5176 2011-04-26 David S. Miller <davem@davemloft.net>
5177 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5179 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5180 * configure: Regenerate.
5182 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
5185 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5187 (VEC_reduc): New code iterator and splitters for vector reduction.
5188 (VEC_reduc_name): Ditto.
5189 (VEC_reduc_rtx): Ditto.
5190 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5191 (reduc_<VEC_reduc_name>_v4sf): Ditto.
5193 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5194 support for extracting SF on VSX.
5196 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5197 generating xscvspdp.
5198 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5199 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5200 double add, minimum, maximum vector reduction.
5201 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5202 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5203 optimize double vector reduction.
5204 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5206 2011-04-26 Joseph Myers <joseph@codesourcery.com>
5208 * config/fr30/fr30.h (inhibit_libc): Don't define.
5209 * config/m32r/m32r-protos.h: Correct comment.
5210 * config/v850/v850.h (GHS_default_section_names,
5211 GHS_current_section_names): Use tree, not union tree_node *.
5213 2011-04-26 Xinliang David Li <davidxl@google.com>
5215 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5216 * c-family/c-opts.c (c_common_handle_option): Set
5217 warn_maybe_uninitialized.
5218 * opts.c (common_handle_option): Ditto.
5219 * common.opt: New option.
5220 * tree-ssa.c (warn_uninit): Add one more parameter.
5221 (warn_uninitialized_var): Pass warning code.
5222 * tree-flow.h: Interface change.
5224 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5226 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5227 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5228 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5230 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5232 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5233 * config/mips/mips.opt (mmips-tfile): Remove.
5235 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5236 mips-tdump reference to ...
5237 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
5238 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5239 reference by Tru64 UNIX.
5241 2011-04-26 Jakub Jelinek <jakub@redhat.com>
5244 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5245 is error_mark_node, set value to NULL.
5247 PR tree-optimization/48734
5248 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5249 if return value from maybe_fold_*_comparsions isn't something
5250 the code is prepared to handle.
5252 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
5254 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5256 (ext_QIreg_nomode_operands): Remove.
5257 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5261 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
5263 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5265 2011-04-26 Richard Guenther <rguenther@suse.de>
5267 * c-typeck.c (build_unary_op): Do not expand array-refs via
5268 pointer arithmetic. Only adjust qualifiers for function types.
5270 2011-04-26 Richard Guenther <rguenther@suse.de>
5273 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5274 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5275 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
5276 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5278 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
5280 * doc/extend.texi: Document __underlying_type.
5282 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
5284 * config/rs6000/titan.md (automata_option "progress"): Remove.
5286 2011-04-25 Jeff Law <law@redhat.com>
5288 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5290 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5292 * system.h (ENUM_BITFIELD): Remove.
5294 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
5295 Eric Botcazou <ebotcazou@adacore.com>
5297 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5298 for STORE_FLAG_VALUE==-1 case.
5300 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
5303 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5304 LEGITIMATE_PIC_OPERAND_P.
5306 2011-04-24 Jan Hubicka <jh@suse.cz>
5308 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5310 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5311 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5312 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5313 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5314 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5315 Sanity check predicate length.
5316 (remap_predicate): Likewise; sanity check jump functions.
5317 (inline_read_section, inline_write_summary): Sanity check
5320 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5323 * doc/extend.texi (Type Traits): Document __is_standard_layout,
5324 __is_literal_type, and __is_trivial; update throughout about
5325 possibly cv-qualified void types.
5327 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5329 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5330 testsuite and make it version agnostic.
5332 2011-04-22 Jan Hubicka <jh@suse.cz>
5334 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5336 2011-04-23 Jakub Jelinek <jakub@redhat.com>
5339 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5340 to VOID_TYPE even around MODIFY_EXPR.
5342 2011-04-22 Mike Stump <mikestump@comcast.net>
5344 * gensupport.c (read_md_rtx): Fix typo in comment.
5345 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5348 2011-04-22 Jan Hubicka <jh@suse.cz>
5350 * gengtype.c (open_base_files): Add ipa-inline.h include.
5351 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5352 ipa-prop.c; update all uses.
5353 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5354 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5355 merge summary of inlined function into former caller.
5356 * ipa-inline.c (max_benefit): Remove.
5357 (edge_badness): Compensate for removal of benefits.
5358 (update_caller_keys): Use
5359 reset_node_growth_cache/reset_edge_growth_cache.
5360 (update_callee_keys): Likewise.
5361 (update_all_callee_keys): Likewise.
5362 (inline_small_functions): Do not collect max_benefit; do not reset
5363 estimated_growth; call free_growth_caches and initialize_growth_caches.
5364 * ipa-inline.h (struct condition, type clause_t, struct predicate,
5365 struct size_time_entry): New structures.
5366 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5367 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5368 and estimated_growth.
5369 (edge_growth_cache_entry): New structure.
5370 (node_growth_cache, edge_growth_cache): New global vars.
5371 (estimate_growth): Turn into inline.
5372 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5373 initialize_growth_caches, free_growth_caches): Declare.
5374 (estimate_edge_growth): Rewrite.
5375 (estimate_edge_time): Implement as inline cache lookup.
5376 (reset_node_growth_cache, reset_edge_growth_cache): New inline
5378 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5379 (NUM_CONDITIONS): New constant.
5380 (predicate_conditions): New enum.
5381 (IS_NOT_CONSTANT): New constant.
5382 (edge_removal_hook_holder): New var.
5383 (node_growth_cache, edge_growth_cache): New global vars.
5384 (true_predicate, single_cond_predicate, false_predicate,
5385 not_inlined_predicate, add_condition, add_clause, and_predicates,
5386 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5387 dump_clause, dump_predicate, account_size_time,
5388 evaulate_conditions_for_edge): New functions.
5389 (inline_summary_alloc): Move to heap.
5390 (inline_node_removal_hook): Clear condition and entry vectors.
5391 (inline_edge_removal_hook): New function.
5392 (initialize_growth_caches, free_growth_caches): New function.
5393 (dump_inline_summary): Update.
5394 (edge_execution_predicate): New function.
5395 (will_be_nonconstant_predicate): New function.
5396 (estimate_function_body_sizes): Compute BB and constantness predicates.
5397 (compute_inline_parameters): Do not clear estimated_growth.
5398 (estimate_edge_size_and_time): New function.
5399 (estimate_calls_size_and_time): New function.
5400 (estimate_callee_size_and_time): New function.
5401 (remap_predicate): New function.
5402 (inline_merge_summary): New function.
5403 (do_estimate_edge_time): New function based on...
5404 (estimate_edge_time): ... this one.
5405 (do_estimate_edge_growth): New function.
5406 (do_estimate_growth): New function based on....
5407 (estimate_growth): ... this one.
5408 (inline_analyze_function): Analyze after deciding on jump functions.
5409 (inline_read_section): New function.
5410 (inline_read_summary): Use it.
5411 (inline_write_summary): Write all the new data.
5412 * ipa-prop.c (ipa_get_param_decl_index): Export.
5413 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5414 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5416 (ipa_get_lattice): Move here from ipa-cp.c
5417 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5418 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5419 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5420 cgraph_edge_inlinable_p): Remove.
5421 * cgraphunit.c: Include ipainline.h
5422 (cgraph_process_new_functions): Update call of
5423 compute_inline_parameters.
5425 2011-04-22 Richard Guenther <rguenther@suse.de>
5427 * tree.c (build_int_cst): Properly create canonicalized integer
5429 (build_int_cst_type): Remove scary comments.
5431 2011-04-22 Xinliang David Li <davidxl@google.com>
5433 * toplev.c (process_options): Enable -Werror=coverage-mismatch
5434 by default when -Wno-error is not specified.
5435 * opts-global.c (decode_options): Remove call to
5436 control_warning_options.
5438 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5440 PR tree-optimization/48717
5441 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5442 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5444 2011-04-22 Joseph Myers <joseph@codesourcery.com>
5446 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
5447 definition where used.
5449 2011-04-22 Jakub Jelinek <jakub@redhat.com>
5452 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5453 TREE_STATIC variables declared inside of some OpenMP construct.
5455 2011-04-22 Martin Jambor <mjambor@suse.cz>
5458 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5460 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
5463 * c-typeck.c (pop_init_level): Do not warn about initializing
5466 2011-04-22 Alan Modra <amodra@gmail.com>
5468 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5469 when returning call_cookie.
5470 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5471 pointers, to functions with no more vector args than the current
5472 function, and some non-local calls for ABI_V4.
5473 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5474 sibcall_nonlocal_aix64): Combine to ..
5475 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
5476 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5477 (sibcall_value_nonlocal_aix<mode>): ..likewise.
5478 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5479 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
5481 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5482 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5483 sibcall_value_symbolic_64): Delete.
5485 2011-04-21 Xinliang David Li <davidxl@google.com>
5487 * cgraph.h: Remove pid.
5488 * cgraph.c: Remove pid.
5489 * value-prof.c (init_node_map): New function.
5490 (del_node_map): New function.
5491 (find_func_by_funcdef_no): New function.
5492 (gimple_ic_transform): Call new function.
5493 * cgraphunit.c (cgraph_finalize_function): Remove pid.
5494 * function.c (get_last_funcdef_no): New function.
5495 * function.h (get_last_funcdef_no): New function.
5496 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5497 to libgcov function.
5498 (tree-profiling): Call node map init and delete function.
5500 2011-04-21 Ian Lance Taylor <iant@google.com>
5502 * godump.c (go_format_type): Use exported Go name for anonymous
5505 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5507 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5508 Call builtin_function_type_list instead of builtin_function_type.
5509 (UNARY, BINARY, TRINARY, QUAD): Likewise.
5511 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5513 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5514 build_function_type_list instead of build_function_type.
5515 Delete variable `endlink'.
5517 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5519 * config/s390/s390.c (s390_init_builtins): Call
5520 build_function_type_list instead of build_function_type.
5522 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
5524 * config/ia64/ia64.c (ia64_init_builtins): Call
5525 build_function_type_list instead of builtin_function_type.
5527 2011-04-21 Easwaran Raman <eraman@google.com>
5529 * cfgexpand.c (stack_var): Remove OFFSET...
5530 (add_stack_var): ...and its reference here...
5531 (expand_stack_vars): ...and here.
5532 (stack_var_cmp): Sort by descending order of size.
5533 (partition_stack_vars): Change heuristic.
5534 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5535 (dump_stack_var_partition): Add newline after each partition.
5537 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
5538 Jeff Law <law@redhat.com>
5540 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5541 * gengtype.c (matching_file_name_substitute): Likewise.
5543 2011-04-21 Richard Guenther <rguenther@suse.de>
5546 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5548 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
5550 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5552 2011-04-21 Richard Guenther <rguenther@suse.de>
5554 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5557 2011-04-21 Richard Guenther <rguenther@suse.de>
5559 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5560 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5561 Use DECL_P, not SSA_VAR_P.
5562 (ptr_derefs_may_alias_p): Likewise.
5563 (ptr_deref_may_alias_ref_p_1): Likewise.
5564 (decl_refs_may_alias_p): Likewise.
5565 (refs_may_alias_p_1): Likewise.
5566 (ref_maybe_used_by_call_p_1): Likewise.
5567 (call_may_clobber_ref_p_1): Likewise.
5568 (indirect_ref_may_alias_decl_p): Assume indirect refrences
5569 are either MEM_REF or TARGET_MEM_REF.
5570 (indirect_refs_may_alias_p): Likewise.
5571 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5572 for MEM_EXPR of indirect calls.
5574 2011-04-21 Tristan Gingold <gingold@adacore.com>
5576 * vmsdbgout.c (write_srccorr): Compute file length from the string.
5577 (dst_file_info_struct): Remove flen field.
5578 (lookup_filename): Remove code that set flen field.
5580 2011-04-21 Tristan Gingold <gingold@adacore.com>
5582 * config/ia64/ia64.c (ia64_start_function): Add a guard.
5584 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
5587 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5588 vec_extract and vec_concat for non-SSE4_1 targets.
5590 2011-04-21 Richard Guenther <rguenther@suse.de>
5592 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5595 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5597 * config/i386/cygming.h (union tree_node, TREE): Don't define or
5599 (FILE): Don't undefine.
5601 2011-04-21 Joseph Myers <joseph@codesourcery.com>
5603 * config/alpha/alpha.c (struct machine_function): Use rtx, not
5605 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5607 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5608 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5609 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5611 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
5612 definitions where used.
5613 * config/microblaze/microblaze.h (struct microblaze_args): Use
5614 rtx, not struct rtx_def *.
5615 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5617 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5618 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5619 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5620 not struct rtx_def *.
5621 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5623 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5625 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5627 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5629 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5630 operand_equal_p to compare DR_BASE_ADDRESSes.
5631 (vect_check_interleaving): Likewise.
5633 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5636 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5637 for all Neon struct constants.
5639 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5641 * target.def (legitimate_constant_p): New hook.
5642 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5643 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5644 * doc/tm.texi: Regenerate.
5645 * hooks.h (hook_bool_mode_rtx_true): Declare.
5646 * hooks.c (hook_bool_mode_rtx_true): Define.
5647 * system.h (LEGITIMATE_CONSTANT_P): Poison.
5648 * calls.c (precompute_register_parameters): Replace uses of
5649 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5650 (emit_library_call_value_1): Likewise.
5651 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5652 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5653 * ira-costs.c (scan_one_insn): Likewise.
5654 * recog.c (general_operand, immediate_operand): Likewise.
5655 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5656 * reload1.c (init_eliminable_invariants): Likewise.
5658 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5660 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5661 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5663 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5664 * config/alpha/predicates.md (input_operand): Update call to
5665 alpha_legitimate_constant_p.
5667 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5668 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5669 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5670 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5671 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5672 (arm_legitimate_constant_p): New functions.
5673 (arm_cannot_force_const_mem): Make static.
5675 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5677 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5678 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5679 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5680 instead of bfin_legitimate_constant_p.
5681 (bfin_legitimate_constant_p): Make static. Add a mode argument.
5682 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5684 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5686 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5688 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5689 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5690 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5691 (frv_legitimate_constant_p): Make static. Add a mode argument.
5693 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5694 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5695 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5697 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5698 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5699 * config/i386/i386.c (legitimate_constant_p): Rename to...
5700 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
5702 (ix86_cannot_force_const_mem): Update accordingly.
5703 (ix86_legitimate_address_p): Likewise.
5704 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5705 * config/i386/i386.md: Update commentary.
5707 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5708 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5709 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5710 (ia64_legitimate_constant_p): Make static. Add a mode argument.
5712 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5714 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5715 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5716 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5717 (lm32_legitimate_constant_p): Make static. Add a mode argument.
5719 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5720 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5721 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5723 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5724 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5725 (m32r_legitimate_constant_p): New function.
5727 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5728 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5729 LEGITIMATE_CONSTANT_P.
5730 (LEGITIMATE_CONSTANT_P): Delete.
5731 * config/m68k/m68k.c (m68k_expand_prologue): Call
5732 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5733 (m68k_legitimate_constant_p): New function.
5734 * config/m68k/m68k.md: Update comments.
5736 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5737 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5738 (mcore_legitimate_constant_p): New function.
5740 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5741 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5742 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5743 Add a mode argument.
5744 (mep_legitimate_address): Update accordingly.
5745 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5747 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5749 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5750 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5751 static. Check OP's mode for VOIDmode.
5752 (microblaze_legitimate_constant_p): New function.
5753 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5755 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5756 * config/mips/mips.c (mips_legitimate_constant_p): New function.
5757 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5758 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5759 * config/mips/predicates.md: Update comments.
5761 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5762 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5763 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5764 (mmix_legitimate_constant_p): Make static, return a bool, and take
5766 (mmix_print_operand_address): Update accordingly.
5768 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5770 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5771 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5772 static. Add a mode argument.
5773 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5775 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5777 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5778 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5779 (pa_legitimate_constant_p): New function.
5781 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5783 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5784 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5785 (pdp11_legitimate_constant_p): New function.
5787 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5788 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5789 (rs6000_legitimate_constant_p): New function.
5791 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5792 (rx_legitimate_constant_p): ...this.
5793 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5794 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5795 (rx_legitimate_constant_p): ...this.
5796 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5797 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5799 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5800 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5801 * config/s390/s390.c (legitimate_constant_p): Rename to...
5802 (s390_legitimate_constant_p): ...this. Make static, return a bool,
5803 and add a mode argument.
5804 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5806 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5808 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5809 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5810 (sh_legitimate_constant_p): New function.
5812 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5813 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5814 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5815 (legitimate_constant_p): Rename to...
5816 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
5818 (constant_address_p): Update accordingly.
5820 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5821 argument and return a bool.
5822 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5823 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5824 (spu_legitimate_constant_p): Add a mode argument and return a bool.
5825 (spu_rtx_costs): Update accordingly.
5826 * config/spu/predicates.md (vec_imm_operand): Likewise.
5828 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5830 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5831 * config/v850/v850.c (v850_legitimate_constant_p): New function.
5832 (TARGET_LEGITIMATE_CONSTANT_P): Define.
5834 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5835 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5836 * config/vax/vax.c (legitimate_constant_p): Likewise.
5838 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5839 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5840 (xtensa_legitimate_constant_p): New function.
5842 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
5844 * target.def (cannot_force_const_mem): Add a mode argument.
5845 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5846 * doc/tm.texi: Regenerate.
5847 * hooks.h (hook_bool_mode_rtx_false): Declare.
5848 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5849 (hook_bool_mode_const_rtx_true): Likewise.
5850 (hook_bool_mode_rtx_false): New function.
5851 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5852 to be non-VOID. Update call to cannot_force_const_mem.
5853 (find_reloads): Update accordingly.
5854 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5855 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5857 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5858 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5859 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5860 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5861 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5862 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5863 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5864 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5865 (m68k_cannot_force_const_mem): ...this new function.
5866 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5868 (mips_const_insns, mips_legitimize_const_move): Update calls.
5869 (mips_secondary_reload_class): Likewise.
5870 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5871 (pa_cannot_force_const_mem): ...this new function.
5872 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5873 (rs6000_cannot_force_const_mem): ...this new function.
5874 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5876 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5877 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5879 (xtensa_cannot_force_const_mem): ...this new function.
5881 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5883 * config/mips/mips.c (mips16_build_function_stub): Call
5884 build_function_type_list instead of build_function_type.
5885 (mips16_build_call_stub): Likewise.
5887 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5889 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
5890 instead of build_function_type.
5892 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
5894 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
5895 instead of build_function_type.
5897 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
5900 * config/i386/i386.md (insv): Change operand 0 constraint to
5901 "register_operand". Change operand 1 and 2 constraint to
5902 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
5903 * config/i386/sse.md (sse4_1_pinsrb): Export.
5904 (sse2_pinsrw): Ditto.
5905 (sse4_1_pinsrd): Ditto.
5906 (sse4_1_pinsrq): Ditto.
5907 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
5908 * config/i386/i386.c (ix86_expand_pinsr): New.
5910 2011-04-20 Easwaran Raman <eraman@google.com>
5912 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
5913 containing union type only with -fstrict-aliasing.
5915 2011-04-20 Jim Meyering <meyering@redhat.com>
5917 Remove useless if-before-free tests.
5918 * calls.c (expand_call, save_area): Likewise.
5919 * cfgcleanup.c (try_forward_edges): Likewise.
5920 * collect2.c (collect_execute): Likewise.
5921 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
5922 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
5923 * coverage.c (coverage_checksum_string): Likewise.
5924 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
5925 * cselib.c (cselib_init): Likewise.
5926 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
5927 (df_set_clean_cfg): Likewise.
5928 * function.c (free_after_compilation): Likewise.
5929 * gcc.c (do_spec_1, main): Likewise.
5930 * gcov.c (create_file_names): Likewise.
5931 * gensupport.c (identify_predicable_attribute): Likewise.
5932 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
5933 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
5934 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
5935 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
5936 * ipa-pure-const.c (local_pure_const): Likewise.
5937 * ipa-reference.c (propagate): Likewise.
5938 * ira-costs.c (free_ira_costs): Likewise.
5939 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
5940 * matrix-reorg.c (mat_free): Likewise.
5941 * prefix.c (get_key_value): Likewise.
5942 * profile.c (compute_value_histograms): Likewise.
5943 * reload1.c (free_reg_equiv): Likewise.
5944 * sched-deps.c (free_deps): Likewise.
5945 * sel-sched-ir.c (fence_clear): Likewise.
5946 * sese.c (set_rename, if_region_set_false_region): Likewise.
5947 * tree-data-ref.c (free_rdg): Likewise.
5948 * tree-eh.c (lower_try_finally): Likewise.
5949 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
5950 * tree-ssa-live.c (delete_var_map): Likewise.
5951 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
5952 * tree-ssa-pre.c (phi_trans_add): Likewise.
5954 2011-04-20 Jakub Jelinek <jakub@redhat.com>
5956 PR tree-optimization/48611
5957 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
5958 beyond ERT_MUST_NOT_THROW region.
5960 2011-04-20 Catherine Moore <clm@codesourcery.com>
5962 * config/mips/mips.opt (mfix-24k): New.
5963 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
5964 * config/mips/mips.md (length): Increase by 4 for stores if
5966 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
5967 all noreorder if fixing 24K errata.
5968 * doc/invoke.texi: Document mfix-24k.
5970 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
5972 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
5973 quad-word modes, reduce to 9-bit index range when above 1016 limit.
5975 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5977 * config/arm/arm.c (arm_gen_constant): Move movw support ....
5978 (const_ok_for_op): ... to here.
5980 2011-04-20 Kai Tietz <ktietz@redhat.com>
5982 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
5983 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
5985 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
5987 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
5989 2011-04-20 Richard Guenther <rguenther@suse.de>
5991 PR tree-optimization/47892
5992 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
5995 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
5997 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
5999 2011-04-20 Tristan Gingold <gingold@adacore.com>
6001 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6003 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6007 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6008 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6009 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6010 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6011 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6013 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6016 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6017 (avr_asm_named_section, avr_asm_output_aligned_common,
6018 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6019 New functions to update...
6020 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6021 (avr_asm_init_sections): Overwrite section callbacks for
6022 data_section, bss_section.
6023 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6025 (avr_file_end): ...here.
6027 2011-04-20 Richard Guenther <rguenther@suse.de>
6030 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6031 objects and types here. Adjust for their offset before comparing.
6033 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6035 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6038 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6040 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6041 (GIMPLE_H): Include $(INTERNAL_FN_H).
6042 (OBJS-common): Add internal-fn.o.
6043 (internal-fn.o): New rule.
6044 * internal-fn.def: New file.
6045 * internal-fn.h: Likewise.
6046 * internal-fn.c: Likewise.
6047 * gimple.h: Include internal-fn.h.
6048 (GF_CALL_INTERNAL): New gf_mask.
6049 (gimple_statement_call): Put fntype into a union with a new
6051 (gimple_build_call_internal): Declare.
6052 (gimple_build_call_internal_vec): Likewise.
6053 (gimple_call_same_target_p): Likewise.
6054 (gimple_call_internal_p): New function.
6055 (gimple_call_internal_fn): Likewise.
6056 (gimple_call_fntype): Return null for internal calls.
6057 (gimple_call_set_fntype): Assert that the function is not internal.
6058 (gimple_call_set_fn): Likewise.
6059 (gimple_call_set_fndecl): Likewise.
6060 (gimple_call_set_internal_fn): New function.
6061 (gimple_call_addr_fndecl): Handle null functions.
6062 (gimple_call_return_type): Likewise null types.
6063 * gimple.c (gimple_build_call_internal_1): New function.
6064 (gimple_build_call_internal): Likewise.
6065 (gimple_build_call_internal_vec): Likewise.
6066 (gimple_call_same_target_p): Likewise.
6067 (gimple_call_flags): Handle calls to internal functions.
6068 (gimple_call_fnspec): New function.
6069 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6070 (gimple_has_side_effects): Handle null functions.
6071 (gimple_rhs_has_side_effects): Likewise.
6072 (gimple_call_copy_skip_args): Handle calls to internal functions.
6073 * cfgexpand.c (expand_call_stmt): Likewise.
6074 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6075 * gimple-fold.c (gimple_fold_call): Handle null functions.
6076 (gimple_fold_stmt_to_constant_1): Don't fold
6077 calls to internal functions.
6078 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6080 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6081 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6082 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6083 (do_warn_unused_result): Likewise.
6084 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6085 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6086 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6087 the target of a call.
6088 (initialize_hash_element): Update accordingly.
6089 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6090 (iterative_hash_hashable_expr): Handle calls to internal functions.
6091 (print_expr_hash_elt): Likewise.
6092 * tree-ssa-pre.c (can_value_number_call): Likewise.
6093 (eliminate): Handle null functions.
6094 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6095 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6096 (find_func_aliases): Likewise.
6097 * value-prof.c (gimple_ic_transform): Likewise.
6098 (gimple_indirect_call_to_profile): Likewise.
6099 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6100 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6102 2011-04-19 Jan Hubicka <jh@suse.cz>
6104 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6105 * ipa-inline.c (inline_small_functions): Compute summaries first,
6106 populate heap later.
6108 2011-04-19 Jan Hubicka <jh@suse.cz>
6110 * cgraph.h (save_inline_function_body): Remove.
6111 * ipa-inline-transform.c: New file, broke out of...
6112 * ipa-inline.c: ... this one; Update toplevel comment.
6113 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6115 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6116 (cgraph_mark_inline_edge): Rename to inline_call; move to
6117 ipa-inline-transform.c.
6118 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6119 move to ipa-inline-transform.c
6120 (recursive_inlining, inline_small_functions, flatten_function,
6121 ipa_inline, inline_always_inline_functions,
6122 early_inline_small_functions): Update.
6123 (inline_transform): Move to ipa-inline-transform.c.
6124 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6126 * Makefile.in (ipa-inline-transform.o): New file.
6127 * cgraphunit.c (save_inline_function_body): Move to
6128 ipa-inline-transform.c
6130 2011-04-19 DJ Delorie <dj@redhat.com>
6132 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6133 registers if we already know there aren't any.
6134 (m32c_emit_epilogue): Don't emit a barrier here.
6135 (m32c_emit_eh_epilogue): Likewise.
6136 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6137 operands at expand time.
6138 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6140 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6141 duplicates. Provide aliases instead.
6142 * config/m32c/prologue.md (eh_return): Emit a barrier here.
6143 (eh_epilogue): Add a "(return)" here as a hint to other parts of
6146 2011-04-19 Anatoly Sokolov <aesok@post.ru>
6148 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6149 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6150 (general_or_i64_p, sparc_register_move_cost): New function.
6152 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6154 * doc/install.texi (Configuration, --enable-threads): Remove mach.
6155 Add lynx, mipssde. Sort table.
6157 2011-04-19 Xinliang David Li <davidxl@google.com>
6159 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6162 2011-04-19 Jakub Jelinek <jakub@redhat.com>
6165 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6166 is a SUBREG with non-MODE_INT mode inside of it.
6168 2011-04-19 Martin Jambor <mjambor@suse.cz>
6170 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6171 also according to actual contants.
6172 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6173 (gimple_fold_call): Use it.
6174 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6176 2011-04-19 Martin Jambor <mjambor@suse.cz>
6178 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6179 non-pointer assignments.
6181 2011-04-19 Martin Jambor <mjambor@suse.cz>
6183 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6184 account anc_offset and otr_type from the indirect edge info.
6185 * ipa-prop.c (get_ancestor_addr_info): New function.
6186 (compute_complex_ancestor_jump_func): Assignment analysis moved to
6187 get_ancestor_addr_info, call it.
6188 (ipa_note_param_call): Do not initialize information about polymorphic
6189 calls, return the indirect call graph edge. Remove the last
6190 parameter, adjust all callers.
6191 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6192 parameters. Initialize polymorphic information in the indirect edge.
6194 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6197 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6198 the types if they have different enumeration identifiers.
6200 2011-04-19 Jan Hubicka <jh@suse.cz>
6202 * cgraph.h (cgraph_optimize_for_size_p): Declare.
6203 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6204 * predict.c (cgraph_optimize_for_size_p): Break out from ...
6205 (optimize_function_for_size_p) ... here.
6207 2011-04-19 Richard Guenther <rguenther@suse.de>
6210 * tree.c (free_lang_data): Do not reset the decl-assembler-name
6213 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
6215 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6216 if DECL_NO_INLINE_WARNING_P is set on the function.
6218 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
6221 * reload1.c (inc_for_reload): Return void. All callers changed.
6222 (emit_input_reload_insns): Don't try to delete previous output
6223 reloads to a register, or record spill_reg_store for autoincs.
6225 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
6227 * gengtype.h: Updated copyright year.
6228 (struct input_file_st): Add inpisplugin field.
6229 (type_fileloc): New function.
6231 (write_typed_struct_alloc_def): Add gcc_assert.
6232 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6233 (write_typed_alloc_defns): Don't output for plugin files.
6234 (input_file_by_name): Clear inpisplugin field.
6235 (main): Set inpisplugin field for plugin files.
6237 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
6239 * gengtype-state.c (string_eq): New.
6240 (read_state): Use string_eq instead of strcmp when creating the
6243 2011-04-19 Wei Guozhi <carrot@google.com>
6246 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6247 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6249 * config/arm/constraints.md (Uu): New constraint.
6250 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6252 2011-04-19 Tristan Gingold <gingold@adacore.com>
6254 * config.gcc (-*-*-*vms): Added.
6255 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6257 * config/vms/vms-ld.c: New file.
6258 * config/vms/vms-ar.c: New file.
6259 * config/vms/t-vmsnative: New file.
6261 2011-04-18 Xinliang David Li <davidxl@google.com>
6263 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6265 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6268 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6269 if TREE_TYPE (v) is non-NULL.
6271 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6272 gimple_get_virt_mehtod_for_binfo.
6273 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6274 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6276 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6278 2011-04-18 Michael Matz <matz@suse.de>
6279 Steve Ellcey <sje@cup.hp.com>
6281 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6282 use its mode as source mode if it isn't VOIDmode.
6284 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
6286 * doc/passes.texi: Fill crossref nodes.
6288 2011-04-18 Jim Meyering <meyering@redhat.com>
6290 Fix doubled-word typos in comments and strings
6291 * config/alpha/vms-unwind.h: s/for for/for/
6292 * config/arm/unwind-arm.h: Likewise.
6293 * config/microblaze/microblaze.c: Likewise.
6294 * config/sh/constraints.md: s/in in/in/
6295 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6297 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
6299 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6300 (AVX_FLOAT_MODE_P): Ditto.
6301 (AVX128_VEC_FLOAT_MODE_P): Ditto.
6302 (AVX256_VEC_FLOAT_MODE_P): Ditto.
6303 (AVX_VEC_FLOAT_MODE_P): Ditto.
6304 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6305 (UNSPEC_MASKSTORE): Ditto.
6306 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6307 Merge from <sse>_movmsk<ssemodesuffix> and
6308 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
6309 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
6311 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6312 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6313 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6315 2011-04-18 Jan Hubicka <jh@suse.cz>
6317 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6319 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6320 (want_inline_function_called_once_p): Break out the logic from
6322 (edge_badness): Ensure that profile is not misupdated.
6323 (lookup_recursive_calls): Prioritize by call frequencies.
6324 (inline_small_functions): Move program size estimates here;
6325 actually process whole queue even when unit growth has been
6326 met. (to properly compute inline_failed reasons and for the
6327 case unit size decrease.) Revisit comments on recursive inlining.
6328 (ipa_inline): Remove unit summary code; first inline hot calls
6329 of functions called once, cold calls next.
6330 (order, nnodes): Remove unused variables.
6331 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6332 (GTFILES): Remove ipa-inline.c
6333 * sel-sched.c (fill_insns): Silence uninitialized var warning.
6335 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6337 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6339 2011-04-18 Jie Zhang <jie@codesourcery.com>
6340 Richard Earnshaw <rearnsha@arm.com>
6342 * arm.c (neon_builtin_type_bits): Remove.
6343 (typedef enum neon_builtin_mode): New.
6344 (T_MAX): Don't define.
6345 (typedef enum neon_builtin_datum): Remove bits, codes[],
6346 num_vars and base_fcode. Add mode, code and fcode.
6347 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6348 VAR10): Change accordingly.
6349 (neon_builtin_data[]): Change accordingly
6350 (arm_init_neon_builtins): Change accordingly.
6351 (neon_builtin_compare): Remove.
6352 (locate_neon_builtin_icode): Remove.
6353 (arm_expand_neon_builtin): Change accordingly.
6355 * arm.h (enum arm_builtins): Move to ...
6356 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6358 * arm.c (arm_builtin_decl): Declare.
6359 (TARGET_BUILTIN_DECL): Define.
6360 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6361 (arm_builtin_decls[]): New.
6362 (arm_init_neon_builtins): Store builtin declarations in
6363 arm_builtin_decls[].
6364 (arm_init_tls_builtins): Likewise.
6365 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
6366 (arm_builtin_decl): New.
6368 2011-04-18 Richard Guenther <rguenther@suse.de>
6370 * tree.c (upper_bound_in_type): Build properly canonicalized
6372 (lower_bound_in_type): Likewise.
6374 2011-04-18 Richard Guenther <rguenther@suse.de>
6376 * gimple.h (gimple_call_addr_fndecl): New function.
6377 (gimple_call_fndecl): Use it.
6378 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6380 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6381 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6383 2011-04-18 Richard Guenther <rguenther@suse.de>
6386 * tree.c (build_string): STRING_CST is now derived from tree_typed.
6388 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
6391 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6392 DECL_IN_CONSTANT_POOL without RTL.
6394 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
6395 Ira Rosen <ira.rosen@linaro.org>
6398 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6399 to match neon_vzip/vuzp/vtrn_internal.
6400 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6401 outputs explicitly dependent on both inputs.
6402 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6404 2011-04-18 Jakub Jelinek <jakub@redhat.com>
6406 PR tree-optimization/48616
6407 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6408 whether the shift is by scalar or vector based on whether all SLP
6409 scalar stmts have the same rhs.
6411 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
6413 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6416 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
6419 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6422 2011-04-17 Jan Hubicka <jh@suse.cz>
6424 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6425 * cgrpahunit.c (cgraph_finalize_function): Do not set
6426 finalized_by_frontend.
6427 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6428 finalized_by_frontend.
6430 2011-04-17 Jan Hubicka <jh@suse.cz>
6432 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6433 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6434 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6435 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6437 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6439 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6441 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
6444 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6445 is non-null before accessing it.
6446 (input_cgraph): Remove trailing spaces.
6448 2011-04-17 Revital Eres <revital.eres@linaro.org>
6450 * params.def (sms-min-sc): New param flag.
6451 * modulo-sched.c (sms_schedule): Use it.
6452 * doc/invoke.texi (sms-min-sc): Document it.
6454 2011-04-17 Jan Hubicka <jh@suse.cz>
6456 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6457 present, also set gimple_call_set_cannot_inline.
6458 * ipa-inline.c: Update toplevel comment.
6460 (cgraph_clone_inlined_nodes): Fix linebreaks.
6461 (cgraph_check_inline_limits): Restructure to ...
6462 (caller_growth_limits): ... this one; be more tolerant
6463 on growth in nested inline chains; add explanatory comment;
6464 fix stack accounting thinko introduced by previous patch.
6465 (cgraph_default_inline_p): Remove.
6466 (report_inline_failed_reason): New function.
6467 (can_inline_edge_p): New function.
6468 (can_early_inline_edge_p): New function.
6469 (leaf_node_p): Move upwards in file.
6470 (want_early_inline_function_p): New function.
6471 (want_inline_small_function_p): New function.
6472 (want_inline_self_recursive_call_p): New function.
6473 (cgraph_edge_badness): Rename to ...
6474 (edge_badness) ... this one; fix linebreaks.
6475 (update_edge_key): Update call of edge_baddness; add
6476 detailed dump about queue updates.
6477 (update_caller_keys): Use can_inline_edge_p and
6478 want_inline_small_function_p.
6479 (cgraph_decide_recursive_inlining): Rename to...
6480 (recursive_inlining): Use can_inline_edge_p and
6481 want_inline_self_recursive_call_p; simplify and remove no longer
6483 (cgraph_set_inline_failed): Remove.
6484 (add_new_edges_to_heap): Use can_inline_edge_p and
6485 want_inline_small_function_p.
6486 (cgraph_decide_inlining_of_small_functions): Rename to ...
6487 (inline_small_functions): ... this one; cleanup; use
6488 can/want predicates; cleanup debug ouput; work edges till fibheap
6489 is exhausted and do not stop once unit growth is reached; remove
6490 later loop processing remaining edges.
6491 (cgraph_flatten): Rename to ...
6492 (flatten_function): ... this one; use can_inline_edge_p
6493 and can_early_inline_edge_p predicates.
6494 (cgraph_decide_inlining): Rename to ...
6495 (ipa_inline): ... this one; remove unreachable nodes before
6496 inlining functions called once; simplify the pass.
6497 (cgraph_perform_always_inlining): Rename to ...
6498 (inline_always_inline_functions): ... this one; use
6499 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6500 (cgraph_decide_inlining_incrementally): Rename to ...
6501 (early_inline_small_functions): ... this one; simplify
6502 using new predicates; cleanup; make dumps prettier.
6503 (cgraph_early_inlining): Rename to ...
6504 (early_inliner): newer inline regular functions into always-inlines;
6505 fix updating of call stmt summaries.
6506 (pass_early_inline): Update for new names.
6507 (inline_transform): Fix formating.
6508 (gate_cgraph_decide_inlining): Rename to ...
6509 (pass_ipa_inline): ... this one.
6510 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6511 * ipa-inline-analysis.c (dump_inline_summary): Update.
6512 (compute_inline_parameters): Do not compute disregard_inline_limits;
6513 look for mismatching arguments.
6514 (estimate_growth): Fix handlig of non-trivial self recursion.
6515 (inline_read_summary): Do not read info->disregard_inline_limits.
6516 (inline_write_summary): Do not write info->disregard_inline_limits.
6517 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6518 and move all checks into can_inline_edge_p predicate; re-enable code
6519 comparing optimization levels.
6520 (expand_call_inline): Do not test inline_forbidden_into_p.
6521 * Makefile.in (ipa-inline.o): Update arguments.
6523 2011-04-17 Revital Eres <revital.eres@linaro.org>
6525 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6527 2011-04-17 Revital Eres <revital.eres@linaro.org>
6529 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6531 2011-04-17 Michael Matz <matz@suse.de>
6533 PR tree-optimization/48622
6535 * ipa-inline-analysis.c (inline_read_summary): Read size/time
6536 in same order as they're written.
6538 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6540 * config/pa/predicates.md: Reorganize and simplify predicates.
6541 Eliminate duplicate code checks.
6542 (arith_operand): Rename to arith14_operand
6543 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6544 * config/pa/pa.md: Use renamed operands.
6545 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6546 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6547 arith11_operand, adddi3_operand, indexed_memory_operand,
6548 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6549 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6550 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6551 move_dest_operand, move_src_operand, prefetch_cc_operand,
6552 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6553 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6554 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6555 div_operand, int5_operand, movb_comparison_operator,
6556 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6557 arith_double_operand, ireg_operand, lhs_lshift_operand,
6558 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6559 integer_store_memory_operand): Likewise.
6560 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6561 (integer_store_memory_operand, read_only_operand,
6562 function_label_operand, borx_reg_operand,
6563 non_hard_reg_operand): Likewise.
6564 (eq_neq_comparison_operator): Delete unused operator.
6565 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6566 function_label_operand.
6567 (emit_move_sequence): Likewise.
6569 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6571 * config/i386/sse.md (sseunpackmode): New mode attribute.
6572 (ssepackmode): Ditto.
6573 (vec_pack_trunc_<mode>): Macroize expander from
6574 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6575 (vec_unpacks_lo_<mode>): Macroize expander from
6576 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6577 (vec_unpacks_hi_<mode>): Macroize expander from
6578 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6579 (vec_unpacku_lo_<mode>): Macroize expander from
6580 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6581 (vec_unpacku_hi_<mode>): Macroize expander from
6582 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6583 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6584 ix86_expand_sse4_unpack.
6585 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6587 2011-04-16 Jan Hubicka <jh@suse.cz>
6589 * cgraphbuild.c: Include ipa-inline.h.
6590 (reset_inline_failed): Use initialize_inline_failed.
6591 * cgraph.c: Include ipa-inline.h.
6592 (cgraph_create_node_1): Do not initialize estimated_growth.
6593 (initialize_inline_failed): More to ipa-inline-analysis.c
6594 (dump_cgraph_node): Do not dump inline flags.
6595 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6596 and disregard_inline_limits flags.
6597 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6598 time, size, estimated_growth.
6599 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6601 * cgraphunit.c (cgraph_decide_is_function_needed): Use
6602 DECL_DISREGARD_INLINE_LIMITS.
6603 (cgraph_analyze_function): Do not initialize
6604 node->local.disregard_inline_limits.
6605 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6606 inlinable, versionable and disregard_inline_limits.
6607 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6608 cgraph_check_inline_limits, cgraph_default_inline_p,
6609 cgraph_edge_badness, update_caller_keys, update_callee_keys,
6610 add_new_edges_to_heap): Update.
6611 (cgraph_decide_inlining_of_small_function): Update; set
6612 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6613 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6614 cgraph_decide_inlining_incrementally): Update.
6615 * ipa-inline.h (inline_summary): Add inlinable, versionable,
6616 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6617 time, size and estimated_growth parameters.
6618 (estimate_edge_growth): Update.
6619 (initialize_inline_failed): Declare.
6620 * ipa-split.c: Include ipa-inline.h
6621 (execute_split_functions): Update.
6622 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6623 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6624 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6625 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6626 estimated_growth to INT_MIN.
6627 (inline_node_duplication_hook): Likewise.
6628 (dump_inline_summary): Dump new fields.
6629 (compute_inline_parameters): Update.
6630 (estimate_edge_time, estimate_time_after_inlining,
6631 estimate_size_after_inlining, estimate_growth, inline_read_summary,
6632 inline_write_summary):
6633 (initialize_inline_failed): Move here from cgraph.c.
6634 * tree-sra.c: Include ipa-inline.h.
6635 (ipa_sra_preliminary_function_checks): Update.
6636 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6639 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
6641 * config/i386/sse.md (V16): New mode iterator.
6643 (AVXMODEQI, AVXMODEDI): Remove.
6644 (sse2, sse3): New mode attribute.
6645 (mov<mode>): Use V16 mode iterator.
6646 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6647 (push<mode>1): Use V16 mode iterator.
6648 (movmisalign<mode>): Ditto.
6649 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6650 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6651 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6652 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6653 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6654 avx_movdqu<avxmodesuffix>.
6655 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6656 *avx_movdqu<avxmodesuffix>.
6657 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6658 avx_lddqu<avxmodesuffix>.
6659 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6660 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6661 avx_movnt<AVXMODEDI:mode>.
6662 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6663 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6665 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
6668 * haifa-sched.c (prune_ready_list, schedule_block): Use
6669 sched_pressure_p rather than flag_sched_pressure.
6671 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
6673 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6674 cgraph_get_node instead of cgraph_get_create_node.
6676 2011-04-15 Jakub Jelinek <jakub@redhat.com>
6678 * cfgexpand.c (expand_debug_expr): Use
6679 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6681 2011-04-15 Michael Matz <matz@suse.de>
6683 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6684 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6685 * function.c (gimplify_parameters): Ditto.
6686 * gimplify.c (gimplify_vla_decl): Ditto.
6688 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6689 (gimple_call_set_alloca_for_var): New inline function.
6690 (gimple_call_alloca_for_var_p): Ditto.
6691 * gimple.c (gimple_build_call_from_tree): Remember
6692 CALL_ALLOCA_FOR_VAR_P state.
6693 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6695 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6696 calls if they were for VLA objects.
6698 2011-04-15 Martin Jambor <mjambor@suse.cz>
6700 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6703 2011-04-15 Martin Jambor <mjambor@suse.cz>
6706 * tree-emutls.c (lower_emutls_function_body): Call
6707 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
6710 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
6712 * c-decl.c (detect_field_duplicates): Call
6713 objc_detect_field_duplicates instead of objc_get_interface_ivars.
6715 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
6717 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6718 * gimple.c (gimple_asm_clobbers_memory_p): Define.
6719 * ipa-pure-const.c (check_stmt): Call it.
6720 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6722 2011-04-15 Richard Guenther <rguenther@suse.de>
6724 PR tree-optimization/48290
6725 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6726 Properly decide inhibiting propagation based on the valueized
6727 operand. Do loop-closed SSA form preserving here ...
6728 (init_copy_prop): ... not here.
6730 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
6733 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6734 (*ieee_smax<mode>3): Likewise.
6736 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6738 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6739 Replace match_operand with match_dup for the third operand in
6742 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6744 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6745 to track processing of conditionals. Update all callers.
6746 (try_combine, simplify_if_then_else): Update.
6748 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
6750 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6753 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
6755 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6756 instead of match_operand for operand 3.
6758 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
6760 * recog.h (insn_operand_data): Add an "allows_mem" field.
6761 * genoutput.c (output_operand_data): Initialize it.
6762 * optabs.c (maybe_legitimize_operand_same_code): New function.
6763 (maybe_legitimize_operand): Use it when matching the original
6766 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6768 * gimplify.c: Fix issues in comments throughout.
6769 (voidify_wrapper_expr): Fix long line.
6770 (build_stack_save_restore): Likewise.
6771 (gimplify_loop_expr): Likewise.
6772 (gimplify_compound_lval): Likewise.
6773 (gimplify_init_ctor_eval): Likewise.
6774 (gimplify_modify_expr_rhs): Likewise.
6775 (omp_notice_threadprivate_variable): Likewise.
6777 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
6779 * cfgexpand.c (expand_call_stmt): Convert the function type to the
6780 original one if this is not a builtin function.
6782 2011-04-14 Jakub Jelinek <jakub@redhat.com>
6785 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6786 offset it as needed based on top 2 bits in operands[3], change
6787 MEM mode to SFmode and mask those 2 bits away from operands[3].
6789 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6791 * c-parser.c (c_parser_objc_protocol_definition): Updated for
6792 change from objc_declare_protocols() to objc_declare_protocol().
6794 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
6796 * config/i386/sse.md (sse4_1): New mode attribute.
6797 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6798 avx_blend<ssemodesuffix><avxmodesuffix> and
6799 sse4_1_blend<ssemodesuffix> using VF mode iterator.
6800 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6801 avx_blendv<ssemodesuffix><avxmodesuffix> and
6802 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6803 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6804 avx_dp<ssemodesuffix><avxmodesuffix> and
6805 sse4_1_dp<ssemodesuffix> using VF mode iterator.
6806 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6807 (sse4_1_packusdw): Merge with *avx_packusdw.
6808 (sse4_1_pblendvb): Merge with *avx_pblendvb.
6809 (sse4_1_pblendw): Merge with *avx_pblendw.
6810 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6811 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6812 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6814 (sse4_1_round<ssescalarmodesuffix>): Merge with
6815 *avx_round<ssescalarmodesuffix>.
6816 (aesenc): Merge with *avx_aesenc.
6817 (aesenclast): Merge with *avx_aesenclast.
6818 (aesdec): Merge with *avx_aesdec.
6819 (aesdeclast): Merge with *avx_aesdeclast.
6820 (pclmulqdq): Merge with *pclmulqdq.
6821 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6823 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6825 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
6828 * cfgexpand.c (get_decl_align_unit): Renamed to ...
6829 (align_local_variable): This. Update DECL_ALIGN.
6830 (add_stack_var): Updated.
6831 (expand_one_stack_var): Likewise.
6833 2011-04-14 Richard Guenther <rguenther@suse.de>
6835 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6837 (dse_initialize_block_local_data, dse_leave_block,
6838 record_voperand_set, get_stmt_uid): Likewise.
6839 (dse_possible_dead_store_p): Allow any kind of killing stmt.
6840 (dse_optimize_stmt): Remove voperand set handling code.
6841 Simplify and improve to handle any kind of killing stmt.
6842 (dse_record_phi): Remove.
6843 (dse_enter_block): Simplify.
6844 (tree_ssa_dse): Likewise.
6845 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6847 2011-04-14 Jan Hubicka <jh@suse.cz>
6849 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6850 * cgraph.h (struct inline_summary): Move to ipa-inline.h
6851 (cgraph_local_info): Remove inline_summary.
6852 * ipa-cp.c: Include ipa-inline.h.
6853 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6854 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6856 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6857 (input_overwrite_node): Do not set inline summary.
6858 (input_node): Do not stream inline summary.
6859 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6860 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6861 growth; we do not have inline parameters computed for that anyway.
6862 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6863 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6864 (inline_summary_t): New type and VECtor.
6865 (debug_inline_summary, dump_inline_summaries): Declare.
6866 (inline_summary): Use VOCtor.
6867 (estimate_edge_growth): Kill hack computing call stmt size directly.
6868 * lto-section-in.c (lto_section_name): Add inline section.
6869 * ipa-inline-analysis.c: Include lto-streamer.h
6870 (node_removal_hook_holder, node_duplication_hook_holder): New holders
6871 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6872 (inline_summary_vec): Define.
6873 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6874 dump_inline_summaries): New functions.
6875 (estimate_function_body_sizes): Properly compute size/time of outgoing
6877 (compute_inline_parameters): Alloc inline_summary; do not compute
6878 size/time of incomming calls.
6879 (estimate_edge_time): Avoid missing time summary hack.
6880 (inline_read_summary): Read inline summary info.
6881 (inline_write_summary): Write inline summary info.
6882 (inline_free_summary): Free all hooks and inline summary vector.
6883 * lto-streamer.h: Add LTO_section_inline_summary section.
6884 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
6885 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
6887 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6889 * tree-vectorizer.h (vect_strided_store_supported): Add a
6890 HOST_WIDE_INT argument.
6891 (vect_strided_load_supported): Likewise.
6892 (vect_permute_store_chain): Return void.
6893 (vect_transform_strided_load): Likewise.
6894 (vect_permute_load_chain): Delete.
6895 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
6896 count argument. Check that the count is a power of two.
6897 (vect_strided_load_supported): Likewise.
6898 (vect_permute_store_chain): Return void. Update after above changes.
6899 Assert that the access is supported.
6900 (vect_permute_load_chain): Likewise.
6901 (vect_transform_strided_load): Return void.
6902 * tree-vect-stmts.c (vectorizable_store): Update calls after
6903 above interface changes.
6904 (vectorizable_load): Likewise.
6905 (vect_analyze_stmt): Don't check for strided powers of two here.
6907 2011-04-14 Richard Guenther <rguenther@suse.de>
6909 PR tree-optimization/48590
6910 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6911 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6912 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
6913 BUILT_IN_STACK_SAVE.
6914 * tree-ssa-dce.c (propagate_necessity): Handle
6915 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
6917 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
6919 * c-parser.c (c_parser_objc_class_declaration): Updated call to
6922 2011-04-14 Richard Guenther <rguenther@suse.de>
6924 * tree.h (get_object_alignment_1): Declare.
6925 * builtins.c (get_object_alignment_1): Split out worker from ...
6926 (get_object_alignment): ... here.
6927 * fold-const.c (get_pointer_modulus_and_residue): Use
6928 get_object_alignment_1.
6930 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6932 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
6934 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
6935 parameter. Generalise code to handle arrays as well as vectors.
6936 (vect_setup_realignment): Update accordingly.
6937 * tree-vect-stmts.c (vectorizable_store): Likewise.
6938 (vectorizable_load): Likewise.
6940 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6942 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
6943 within the per-copy loop.
6945 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6947 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
6950 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
6952 * doc/options.texi (Negative): Explicitly mention that the
6953 Negative chain must be circular.
6955 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
6957 * function.h (block_chainon): Declare.
6958 * function.c (block_chainon): Define.
6960 2011-04-14 Anatoly Sokolov <aesok@post.ru>
6961 Eric Weddington <eric.weddington@atmel.com>
6962 Georg-Johann Lay <avr@gjlay.de>
6964 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
6966 (avr_init_builtins, avr_expand_builtin,
6967 avr_expand_delay_cycles, avr_expand_unop_builtin,
6968 avr_expand_binop_builtin ): New functions.
6969 (avr_builtin_id): New enum
6970 (struct avr_builtin_description): New struct
6971 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
6972 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
6974 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
6975 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
6976 UNSPECV_DELAY_CYCLES): new enumeration values
6977 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
6978 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
6979 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
6980 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
6981 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
6982 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
6983 "fmulsu"): New insns
6985 * config/avr/avr-c.c: fix line endings
6986 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
6987 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
6988 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
6989 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
6990 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
6992 * doc/extend.texi (AVR Built-in Functions): New node
6993 (Target Builtins): Add documentation of AVR
6996 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
6999 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7000 alone. Error if non-const data has attribute progmem.
7002 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7004 * tree.h (struct tree_constructor): Include tree_typed instead of
7006 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7007 TS_TYPED instead of TS_COMMON.
7009 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7011 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7012 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7013 (sse2_psadbw): Merge with *avx_psadbw.
7014 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7015 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7016 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7017 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7018 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7019 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7020 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7021 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7022 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7023 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7024 (ssse3_palignrti): Merge with *avx_palignrti.
7026 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7028 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7029 * tree-ssanames.c (fini_ssanames): VEC_free it.
7030 (make_ssa_name_fn): Update for VECness of free_ssanames.
7031 (release_ssa_name, release_dead_ssa_names): Likewise.
7032 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7034 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7035 TS_TYPED instead of TS_COMMON.
7037 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7039 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7040 statistics_counter_event.
7041 * tree-ssa-copyrename.c (stats): Define.
7042 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7043 statistics_counter_event.
7044 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7045 (bswap_stats, widen_mul_stats): Define.
7046 (insert_reciprocals): Increment rdivs_inserted.
7047 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7048 rfuncs_inserted. Add calls to statistics_counter_event.
7049 (execute_cse_sincos_1): Increment inserted.
7050 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7051 statistics_counter_event.
7052 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7053 of bswap_stats. Add calls to statistics_counter_event.
7054 (convert_mult_to_widen): Increment widen_mults_inserted.
7055 (convert_plusminus_to_widen): Increment maccs_inserted.
7056 (convert_mult_to_fma): Increment fmas_inserted.
7057 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7058 calls to statistics_counter_event.
7060 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7062 PR rtl-optimization/48455
7063 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7064 `temp_costs->mem_cost'.
7066 2011-04-13 Jan Hubicka <jh@suse.cz>
7068 * ipa-inline.h: New file.
7069 * ipa-inline-analysis.c: New file. Broken out of ...
7070 * ipa-inline.c: ... this file; update toplevel comment;
7071 include ipa-inline.h
7072 (inline_summary): Move to ipa-inline.h
7073 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7074 ipa-inline-analysis.c.
7075 (cgraph_estimate_time_after_inlining): Rename to
7076 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7077 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7078 to estimate_edge_growth.
7079 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7080 rename to estimate_size_after_inlining.
7081 (cgraph_mark_inline_edge): Update for new naming convention.
7082 (cgraph_check_inline_limits): Likewise.
7083 (cgraph_edge_badness): Likewise.
7084 (cgraph_decide_recursive_inlining): Likewise.
7085 (cgraph_decide_inlining_of_small_functions): Likewise.
7086 (cgraph_decide_inlining_incrementally): Likewise.
7087 (cgraph_estimate_growth): Rename to estimate_growth; move to
7088 ipa-inline-analysis.c.
7089 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7090 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7091 (compute_inline_parameters): Likewise.
7092 (compute_inline_parameters_for_current): Likewise.
7093 (pass_inline_parameters): Likewise.
7094 (inline_indirect_intraprocedural_analysis): Likewise.
7095 (analyze_function): Rename to inline_analyze_function; likewise.
7096 (add_new_function): Move to ipa-inline-analysis.c.
7097 (inline_generate_summary): Likewise.
7098 (inline_read_summary): Likewise.
7099 (inline_write_summary): Likewise.
7100 * Makefile.in (ipa-inline-analysis.c): New file.
7102 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7104 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7105 * configure: Regenerate.
7107 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7109 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7110 instead of tree_common.
7111 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7113 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7114 TS_TYPED rather than TS_COMMON.
7115 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7117 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7120 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7121 r20 around calls of __tablejump_elpm__
7123 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7126 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7128 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7130 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7132 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7133 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7134 (cfi_vec): New typedef.
7135 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7136 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7137 (cie_cfi_vec): New static variable.
7138 (cie_cfi_head): Delete.
7139 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7140 declaration changed. Use vector rather than list operations.
7141 (new_cfi): Don't initialize the dw_cfi_next field.
7142 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7143 rather than list operations.
7144 (lookup_cfa): Use vector rather than list operations.
7145 (output_cfis): New argument upto. Accept a cfi_vec rather than
7146 a dw_cfi_ref list head as argument. All callers changed.
7147 Iterate over the vector using upto as a maximum index.
7148 (output_all_cfis): New static function.
7149 (output_fde): Use vector rather than list operations. Use the
7150 new upto argument for output_cfis rather than manipulating a
7152 (dwarf2out_begin_prologue): Change initializations to match
7154 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7155 from the vector length rather than searching for the end of a list.
7156 Use output_all_cfis.
7157 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7159 2011-04-13 Nick Clifton <nickc@redhat.com>
7161 * config/rx/rx.md (movmemsi): Do not use this pattern when
7162 volatile pointers are involved.
7164 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7166 * config/i386/sse.md (pinsrbits): Remove.
7167 (sse2_packsswb): Merge with *avx_packsswb.
7168 (sse2_packssdw): Merge with *avx_packssdw.
7169 (sse2_packuswb): Merge with *avx_packuswb.
7170 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7171 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7172 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7173 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7174 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7175 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7176 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7177 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7178 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7179 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7180 (sse2_loadld): Merge with *avx_loadld.
7181 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7182 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7183 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7184 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7185 (vec_concatv2di): Merge with *vec_concatv2di_avx.
7187 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
7189 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7191 * print-tree.c (print_node): Likewise.
7192 * tree-inline.c (copy_tree_r): Likewise.
7193 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7194 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7195 instead of TS_COMMON.
7196 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7197 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7198 (copy_node_stat): Zero TREE_CHAIN only if necessary.
7199 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7200 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7202 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7204 (TREE_CHAIN): Check for a TS_COMMON structure.
7205 (TREE_TYPE): Check for a TS_TYPED structure.
7207 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
7209 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7210 cgraph_get_create_node instead of cgraph_node.
7212 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7214 * c-parser.c (c_parser_initelt): Updated call to
7215 objc_build_message_expr.
7216 (c_parser_postfix_expression): Likewise.
7218 2011-04-12 Kai Tietz <ktietz@redhat.com>
7220 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7221 MASK_MS_BITFIELD_LAYOUT bit.
7223 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7225 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7226 assert it is always true.
7227 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7230 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
7232 * c-parser.c (c_lex_one_token): Rewritten conditional used when
7233 compiling Objective-C to be more efficient.
7235 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
7237 * opts-common.c (decode_cmdline_options_to_array): Remove variable
7240 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7242 * recog.h, genoutput.c, optabs.c: Revert last patch.
7244 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7247 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7249 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7251 * recog.h (insn_operand_data): Add an "allows_mem" field.
7252 * genoutput.c (output_operand_data): Initialize it.
7253 * optabs.c (maybe_legitimize_operand_same_code): New function.
7254 (maybe_legitimize_operand): Use it when matching the original
7257 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7259 * genpreds.c (process_define_predicate): Move most processing
7260 to gensupport.c. Continue to validate the expression.
7261 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7262 (process_define_predicate): Move processing to gensupport.c.
7263 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7264 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7265 (compute_predicate_codes): Moved from genrecog.c. Add lineno
7267 (valid_predicate_name_p): New function, split out from old
7268 genpreds.c:process_define_predicate.
7269 (process_define_predicate): New function, combining code from
7270 old genpreds.c and genrecog.c functions.
7271 (process_rtx): Call it for DEFINE_PREDICATE and
7272 DEFINE_SPECIAL_PREDICATE.
7274 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
7276 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7277 size of a '%A' memory reference.
7278 (T_DREG, T_QREG): New neon_builtin_type_bits.
7279 (arm_init_neon_builtins): Assert that the load and store operands
7280 are neon_struct_operands.
7281 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7282 (NEON_ARG_MEMORY): New builtin_arg.
7283 (neon_dereference_pointer): New function.
7284 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7285 Handle NEON_ARG_MEMORY.
7286 (arm_expand_neon_builtin): Update after above interface changes.
7287 Use NEON_ARG_MEMORY for loads and stores.
7288 * config/arm/predicates.md (neon_struct_operand): New predicate.
7289 * config/arm/iterators.md (V_two_elem): Tweak formatting.
7290 (V_three_elem): Use BLKmode for accesses that have no associated mode.
7291 (V_four_elem): Tweak formatting.
7292 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7293 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7294 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7295 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7296 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7297 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7298 (neon_vst4<mode>): Replace pointer operand with a memory operand.
7299 Use %A in the output template.
7300 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7301 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7302 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7303 the width of the memory access. Remove post-increment.
7304 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7306 2011-04-12 Nick Clifton <nickc@redhat.com>
7308 * config/v850/v850.c (expand_prologue): Do not use the CALLT
7309 instruction for interrupt handlers if the target is the basic V850
7311 (expand_epilogue): Likewise.
7313 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7315 PR rtl-optimization/48549
7316 * combine.c (propagate_for_debug): Also stop after BB_END of
7317 this_basic_block. Process LAST and just stop processing after it.
7318 (combine_instructions): If last_combined_insn has been deleted,
7319 set last_combined_insn to its PREV_INSN.
7321 2011-04-12 Richard Guenther <rguenther@suse.de>
7323 PR tree-optimization/46076
7324 * gimple.h (struct gimple_statement_call): Add fntype field.
7325 (gimple_call_fntype): Adjust.
7326 (gimple_call_set_fntype): New function.
7327 * gimple.c (gimple_build_call_1): Set the call function type.
7328 * gimplify.c (gimplify_call_expr): Preserve the function
7329 type the frontend used for the call.
7330 (gimplify_modify_expr): Likewise.
7331 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7333 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7335 * tree-ssa.c (useless_type_conversion_p): Function pointer
7336 conversions are useless.
7338 2011-04-12 Martin Jambor <mjambor@suse.cz>
7340 * cgraph.h (cgraph_node): Remove function declaration.
7341 (cgraph_create_node): Declare.
7342 (cgraph_get_create_node): Likewise.
7343 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7344 Updated all callers.
7345 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7346 the decl does not already exist. Call cgraph_get_create_node instead
7348 (cgraph_get_create_node): New function.
7349 (cgraph_same_body_alias): Update comment.
7350 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7351 assert it does not return NULL.
7352 (cgraph_update_edges_for_call_stmt): Likewise.
7353 (cgraph_clone_edge): Likewise.
7354 (cgraph_create_virtual_clone): Likewise.
7355 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7356 instead of cgraph_node.
7357 (cgraph_add_new_function): Call cgraph_create_node or
7358 cgraph_get_create_node instead of cgraph_node.
7359 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7360 instead of cgraph_node.
7361 (record_eh_tables): Likewise.
7362 (mark_address): Likewise.
7363 (mark_load): Likewise.
7364 (build_cgraph_edges): Call cgraph_get_create_node instead
7366 (rebuild_cgraph_edges): Likewise.
7367 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7368 instead of cgraph_node.
7369 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7371 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7372 cgraph_create_node instead of cgraph_node.
7373 * c-decl.c (finish_function): Call cgraph_get_create_node instead
7375 * lto-cgraph.c (input_node): Likewise.
7376 * lto-streamer-in.c (input_function): Likewise.
7377 * varasm.c (mark_decl_referenced): Likewise.
7378 (assemble_alias): Likewise.
7380 2011-04-12 Martin Jambor <mjambor@suse.cz>
7382 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7383 instead of cgraph_node and assert it does not return NULL.
7384 * lto-streamer-in.c (lto_read_body): Likewise.
7385 * omp-low.c (new_omp_context): Likewise.
7386 (create_task_copyfn): Likewise.
7387 * tree-emutls.c (lower_emutls_function_body): Likewise.
7388 * matrix-reorg.c (transform_allocation_sites): Likewise.
7390 2011-04-12 Jakub Jelinek <jakub@redhat.com>
7393 * c-typeck.c (build_asm_expr): Error out on attempts to use
7394 void type outputs or inputs for constraints that allow reg or
7397 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
7398 Richard Earnshaw <rearnsha@arm.com>
7401 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7402 to use sign-magnitude offsets. Reject unsupported unaligned
7403 cases. Add detailed description in comments.
7404 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7405 condition from TARGET_32BIT to TARGET_ARM.
7407 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
7409 * tree.h (struct typed_tree): New.
7410 (struct tree_common): Include it instead of tree_base.
7411 (TREE_TYPE): Update for new location of type field.
7412 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7413 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7414 (union tree_node): Add typed field.
7415 * treestruct.def (TS_TYPED): New.
7416 * lto-streamer.c (check_handled_ts_structures): Handle it.
7417 * tree.c (MARK_TS_TYPED): New macro.
7418 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7420 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
7422 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7423 (force_nonfallthru): Do not alter the loop nest if no basic block
7426 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7428 * config/i386/sse.md (VI): New mode iterator.
7430 (AVX256MODEI): Ditto.
7431 (AVXMODEF4P): Ditto.
7432 (avxvecpsmode): Ditto.
7433 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
7434 (sse2_andnot<mode>3): New expander.
7435 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7436 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
7437 (<any_logic:code><mode>3): Use VI mode iterator.
7438 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7439 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
7440 (*andnottf3): Handle AVX three-operand constraints.
7441 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7443 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7444 Robert Millan <rmh@gnu.org>
7446 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7447 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7448 GNU_USER_DYNAMIC_LINKER64): Define.
7449 (REG_NAME): Don't undefine.
7450 (MD_UNWIND_SUPPORT): Undefine.
7451 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7452 (REG_NAME): Don't undefine.
7453 (MD_UNWIND_SUPPORT): Undefine.
7454 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7456 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7458 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7459 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7461 2011-04-11 Xinliang David Li <davidxl@google.com>
7463 * value-profile.c (check_ic_target): New function.
7464 (gimple_ic_transform): Sanity check indirect call target.
7465 * gimple-low.c (gimple_check_call_args): Interface change.
7466 (gimple_check_call_matching_types): New function.
7467 * tree-inline.c (tree_can_inline_p): Call new function.
7469 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
7471 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7472 tree-pretty-print.h & realmpfr.h.
7474 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
7477 * ira.c (setup_pressure_classes): Fix typo in loop condition.
7478 (setup_allocno_and_important_classes): Ditto.
7480 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7482 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7483 GNU_USER_DYNAMIC_LINKER.
7484 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7485 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7486 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7487 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7488 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7489 GNU_USER_TARGET_OS_CPP_BUILTINS.
7490 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7491 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7492 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7493 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7494 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7495 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7496 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7497 GNU_USER_TARGET_OS_CPP_BUILTINS.
7498 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7499 GNU_USER_DYNAMIC_LINKER.
7500 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7501 GNU_USER_TARGET_OS_CPP_BUILTINS.
7502 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7503 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7504 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7505 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7506 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7507 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7508 GNU_USER_DYNAMIC_LINKER64): Remove.
7509 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7510 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7511 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7512 GNU_USER_DYNAMIC_LINKER.
7513 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7514 GNU_USER_TARGET_OS_CPP_BUILTINS.
7515 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7516 GNU_USER_TARGET_OS_CPP_BUILTINS.
7517 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7518 to GNU_USER_TARGET_OS_CPP_BUILTINS.
7519 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7520 GNU_USER_TARGET_OS_CPP_BUILTINS.
7521 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7522 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7523 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7524 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7525 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7526 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7527 GNU_USER_DYNAMIC_LINKER.
7528 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7529 GNU_USER_TARGET_OS_CPP_BUILTINS.
7530 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7531 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7532 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7533 GNU_USER_DYNAMIC_LINKER.
7534 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7535 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7536 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7537 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7538 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7539 GNU_USER_DYNAMIC_LINKER.
7540 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7541 GNU_USER_DYNAMIC_LINKERN32.
7542 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7543 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
7544 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
7545 GNU_USER_DYNAMIC_LINKER32.
7546 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7547 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7548 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7549 GNU_USER_DYNAMIC_LINKER.
7550 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7551 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7552 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7553 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7554 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7555 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7556 GNU_USER_DYNAMIC_LINKER32.
7557 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7558 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7559 GNU_USER_DYNAMIC_LINKER.
7560 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7561 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7562 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7563 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
7564 GNU_USER_DYNAMIC_LINKER64.
7565 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7566 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7567 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7568 GNU_USER_DYNAMIC_LINKER.
7569 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7570 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7571 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7572 GNU_USER_DYNAMIC_LINKER.
7573 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7574 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7575 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7576 GNU_USER_DYNAMIC_LINKER32.
7577 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7578 GNU_USER_DYNAMIC_LINKER64.
7579 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7580 GNU_USER_DYNAMIC_LINKER64.
7581 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7582 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7583 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7584 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7585 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7587 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7589 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
7590 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7591 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7592 GNU_USER_DYNAMIC_LINKER.
7593 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7594 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
7595 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7596 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7597 GNU_USER_DYNAMIC_LINKER64.
7598 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7599 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7600 GNU_USER_LINK_EMULATION.
7601 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7602 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7603 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7604 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7605 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7606 CPP_SPEC, CC1_SPEC): Remove.
7607 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7608 (GNU_USER_DYNAMIC_LINKER): Define.
7609 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7610 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7611 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7612 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7613 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7614 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7615 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7616 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7617 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7618 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7619 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7620 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7621 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7622 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7623 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7624 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7625 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7626 GNU_USER_DYNAMIC_LINKER.
7627 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7628 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7629 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7630 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7631 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7632 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
7633 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7634 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7635 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7636 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7638 2011-04-11 Kai Tietz <ktietz@redhat.com>
7642 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7643 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7645 (ix86_is_msabi_thiscall): Removed.
7646 (ix86_is_type_thiscall): Likewise.
7647 (ix86_get_callcvt): New function.
7648 (ix86_comp_type_attributes): Simplify check.
7649 (ix86_function_regparm): Use ix86_get_callcvt for calling
7650 convention attribute checks.
7651 (ix86_return_pops_args): Likewise.
7652 (ix86_static_chain): Likewise.
7653 (x86_this_parameter): Likewise.
7654 (x86_output_mi_thunk): Likewise.
7655 (ix86_function_type_abi): Optimize check for types without attributes.
7656 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7657 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7658 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7660 (IX86_BASE_CALLCVT): Helper macro.
7661 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7662 Use ix86_get_callcvt for calling convention attribute checks and avoid
7663 symbol-decoration for stdcall in TARGET_RTD case.
7664 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7666 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7669 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
7671 * config/i386/sse.md (VI_128): New mode iterator.
7672 (VI12_128): Rename from SSEMODE12.
7673 (VI14_128): Rename from SSEMODE14.
7674 (VI124_128): New mode iterator.
7675 (VI24_128): Rename from SSEMODE248.
7676 (VI248_128): Rename from SSEMODE248.
7677 (SSEMODE124C8): Remove.
7678 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7679 (*sse2_<plusminus_insn><mode>3): Merge with
7680 *avx_<plusminus_insn><mode>3.
7681 (*mulv8hi3): Merge with *avx_mulv8hi3.
7682 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7683 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7684 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7685 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7686 (ashr<mode>3): Merge with *avx_ashr<mode>3.
7687 (lshr<mode>3): Merge with *avx_lshr<mode>3.
7688 (ashl<mode>3): Merge with *avx_ashl<mode>3.
7689 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7690 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7691 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7692 (*<smaxmin:code>v8hi3): Ditto.
7693 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7694 (*<smaxmin:code>v16qi3): Ditto.
7695 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7696 (*sse2_eq<mode>3): Ditto.
7697 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7698 (*sse2_gt<mode>3): Ditto.
7699 (vcondv2di): Split out of vcond<mode>.
7700 (vconduv2di): Split out of vcondu<mode>.
7702 2011-04-11 Richard Guenther <rguenther@suse.de>
7704 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7705 before calling tree_low_cst.
7707 2011-04-11 Richard Guenther <rguenther@suse.de>
7709 * stor-layout.c (layout_type): Compute all array index size operations
7710 in the original type.
7711 (initialize_sizetypes): Add comment.
7712 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7714 2011-04-11 Joseph Myers <joseph@codesourcery.com>
7716 * common.opt (Tbss=, Tdata=, Ttext=): New options.
7718 2011-04-11 Martin Jambor <mjambor@suse.cz>
7720 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7721 of cgraph_node, handle NULL return value.
7722 (cgraph_global_info): Likewise.
7723 (cgraph_rtl_info): Likewise.
7724 * tree-inline.c (estimate_num_insns): Likewise.
7725 * gimplify.c (unshare_body): Likewise.
7726 (unvisit_body): Likewise.
7727 (gimplify_body): Likewise.
7728 * predict.c (optimize_function_for_size_p): Likewise.
7729 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7730 (call_may_clobber_ref_p_1): Likewise.
7731 * varasm.c (function_section_1): Likewise.
7732 (assemble_start_function): Likewise.
7734 2011-04-11 Martin Jambor <mjambor@suse.cz>
7736 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7738 * final.c (rest_of_clean_state): Likewise.
7739 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7740 * passes.c (pass_init_dump_file): Likewise.
7741 (execute_all_ipa_transforms): Likewise.
7742 (function_called_by_processed_nodes_p): Likewise.
7743 * predict.c (maybe_hot_frequency_p): Likewise.
7744 (probably_never_executed_bb_p): Likewise.
7745 (compute_function_frequency): Likewise.
7746 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7747 (unnest_nesting_tree_1): Likewise.
7748 (lower_nested_functions): Likewise.
7749 * tree-optimize.c (execute_fixup_cfg): Likewise.
7750 (tree_rest_of_compilation): Likewise.
7751 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7752 * tree-sra.c (ipa_early_sra): Likewise.
7753 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7754 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7755 * ipa.c (record_cdtor_fn): Likewise.
7756 * ipa-inline.c (cgraph_early_inlining): Likewise.
7757 (compute_inline_parameters_for_current): Likewise.
7758 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7759 * ipa-pure-const.c (local_pure_const): Likewise.
7760 * ipa-split.c (split_function): Likewise.
7761 (execute_split_functions): Likewise.
7762 * cgraphbuild.c (build_cgraph_edges): Likewise.
7763 (rebuild_cgraph_edges): Likewise.
7764 (cgraph_rebuild_references): Likewise.
7765 (remove_cgraph_callee_edges): Likewise.
7766 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7767 (verify_cgraph_node): Likewise.
7768 (cgraph_analyze_functions): Likewise.
7769 (cgraph_preserve_function_body_p): Likewise.
7770 (save_inline_function_body): Likewise.
7771 (save_inline_function_body): Likewise.
7772 * tree-inline.c (copy_bb): Likewise.
7773 (optimize_inline_calls): Likewise.
7775 2011-04-11 Martin Jambor <mjambor@suse.cz>
7777 PR tree-optimization/48195
7778 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7779 ipa_check_create_edge_args.
7780 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7781 ipa_check_create_edge_args.
7782 * ipa-inline.c (inline_generate_summary): Do not call
7783 ipa_check_create_node_params and ipa_check_create_edge_args.
7784 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7785 ipa_check_create_edge_args.
7787 2011-04-09 Anatoly Sokolov <aesok@post.ru>
7789 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7791 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7792 * function.c (record_hard_reg_sets): Likewise.
7793 * ira.c (compute_regs_asm_clobbered): Likewise.
7794 * sched-deps.c (sched_analyze_1): Likewise.
7795 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7797 2011-04-09 Xinliang David Li <davidxl@google.com>
7799 PR tree-optimization/PR48484
7800 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7801 has_valid_pred lazily
7803 2011-04-09 Duncan Sands <baldrick@free.fr>
7805 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7807 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
7809 * combine.c (combine_validate_cost): Adjust comments. Set registered
7810 cost of I0 to zero at the end, if any.
7812 2011-04-08 Xinliang David Li <davidxl@google.com>
7814 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7815 to insane profile data.
7817 2011-04-08 Xinliang David Li <davidxl@google.com>
7819 * ipa-cp.c (ipcp_update_profiling): Correct
7820 negative scale factor due to insane profile data.
7822 2011-04-08 Xinliang David Li <davidxl@google.com>
7824 * final.c (dump_basic_block_info): New function.
7825 (final): Dump basic block.
7826 (final_scan_insn): Remove old dump.
7828 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
7831 * config.gcc (i386-*-freebsd): Disable unwind table generation for
7834 2011-04-08 Michael Matz <matz@suse.de>
7837 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7839 (rebuild_jump_labels): Call rebuild_jump_labels_1.
7840 * rtl.h (rebuild_jump_labels_chain): Declare.
7841 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7842 insns inserted on edges.
7844 2011-04-08 Joseph Myers <joseph@codesourcery.com>
7846 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7847 * config/arm/arm-arches.def: New.
7848 * config/arm/arm-opts.h: New.
7849 * config/arm/genopt.sh: New.
7850 * config/arm/arm-tables.opt: New (generated).
7851 * config/arm/arm.c (arm_handle_option, arm_target_help,
7852 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7853 (all_architectures): Get most table contents from arm-arches.def.
7854 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7855 arm_selected_tune here.
7856 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7857 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7858 (march=, mcpu=, mtune=): Use Enum and Var.
7859 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7860 (arm.o): Update dependencies.
7862 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
7864 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7866 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7867 (write_typed_alloc_defns): Likewise.
7868 (main): Calls write_typed_alloc_defns with output_header.
7870 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
7873 * ira-color.c (setup_profitable_hard_regs): Add comments.
7874 Don't take prohibited hard regs into account.
7875 (setup_conflict_profitable_regs): Rename to
7876 get_conflict_profitable_regs.
7877 (check_hard_reg_p): Check prohibited hard regs.
7879 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
7881 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
7882 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
7883 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
7885 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7888 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
7889 move from floating point to shift amount register.
7890 (emit_move_sequence): Remove secondary reload support for floating
7891 point to shift amount amount register copies.
7892 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
7893 amount register copies.
7894 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
7895 register, return false if mode isn't a scalar integer mode.
7896 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
7898 2011-04-08 Richard Guenther <rguenther@suse.de>
7900 * gimple.c (gimple_call_flags): Remove kludge.
7902 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7904 * sel-sched.c (sel_region_init): Move call to
7905 sel_setup_region_sched_flags after setup_current_loop_nest.
7907 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
7909 PR rtl-optimization/48272
7910 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
7911 init_insn_reg_pressure_info. Adjust a caller.
7912 * sched-int.h (init_insn_reg_pressure_info): Declare.
7913 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
7914 when sched-pressure is enabled.
7916 2011-04-08 Richard Guenther <rguenther@suse.de>
7918 * gimple.c (gimple_set_modified): Do not queue calls to
7919 MODIFIED_NORETURN_CALLS here ...
7920 * tree-ssa-operands.c (update_stmt_operands): ... but here.
7922 2011-04-08 Richard Guenther <rguenther@suse.de>
7925 * toplev.c (lang_dependent_init): Do not open asm_out_file
7926 in WPA mode, nor perform debug machinery initialization.
7927 (finalize): Do not unlink asm_out_file in WPA mode.
7929 2011-04-08 Richard Guenther <rguenther@suse.de>
7931 * gimple.h (gimple_call_fntype): New function.
7932 (gimple_call_return_type): Use it.
7933 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
7934 * gimple-low.c (gimple_check_call_args): Likewise.
7935 * gimple.c (gimple_call_flags): Likewise.
7936 (gimple_call_arg_flags): Likewise.
7937 (gimple_call_return_flags): Likewise.
7938 * tree-cfg.c (verify_gimple_call): Likewise.
7939 (do_warn_unused_result): Likewise.
7940 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
7941 * value-prof.c (gimple_ic_transform): Fix fndecl check.
7943 2011-04-08 Dmitry Melnik <dm@ispras.ru>
7945 PR rtl-optimization/48235
7946 * sel-sched.c (code_motion_process_successors): Recompute the last
7947 insn in basic block if control flow changed.
7948 (code_motion_path_driver): Ditto. Recompute the first insn as well.
7949 Update condition for ilist_remove.
7951 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7953 PR rtl-optimization/48302
7954 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
7955 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
7956 it to record added preheader blocks.
7957 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
7958 on to sel_add_loop_preheaders.
7959 (sel_region_init): Move call to setup_current_loop_nest after
7962 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7965 * cfgloop.h (loop_has_exit_edges): New helper.
7966 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
7968 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
7969 that have no exit edges.
7971 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
7973 PR rtl-optimization/48442
7974 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
7975 all callers. Adjust assert.
7977 2011-04-08 Jakub Jelinek <jakub@redhat.com>
7979 PR tree-optimization/48377
7980 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
7981 is_packed to true even for types with smaller TYPE_ALIGN than
7984 2011-04-08 Richard Guenther <rguenther@suse.de>
7987 * doc/tm.texi: Re-generate.
7989 2011-04-08 Wei Guozhi <carrot@google.com>
7992 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
7993 * config/arm/arm.c (arm_attr_length_push_multi): New function.
7994 * config/arm/arm.md (*push_multi): Change the length computation to
7997 2011-04-08 Anatoly Sokolov <aesok@post.ru>
7999 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8000 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8001 * doc/tm.texi: Regenerate.
8002 * system.h (ASM_OUTPUT_BSS): Poison.
8003 * varasm.c (asm_output_bss): Remove function.
8004 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8006 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8007 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8008 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8009 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8011 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8013 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8015 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8017 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8019 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8022 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8024 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8025 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8026 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8028 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8029 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8030 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8031 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8032 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8033 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8034 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8035 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8036 options. Don't map other m68k options manually. Don't handle
8037 old-style options as canonical.
8038 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8039 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8041 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8043 * basic-block.h (force_nonfallthru): Move to...
8044 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8045 (force_nonfallthru): ...here.
8046 * cfghooks.c (force_nonfallthru): New function.
8047 * cfgrtl.c (force_nonfallthru): Rename into...
8048 (rtl_force_nonfallthru): ...this.
8049 (commit_one_edge_insertion): Do not set AUX field.
8050 (commit_edge_insertions): Do not discover new basic blocks.
8051 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8052 (cfg_layout_rtl_cfg_hooks): Likewise.
8053 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8054 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8055 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8057 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8059 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8062 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8064 * config/i386/sse.md: Update copyright year.
8065 (avxcvtvecmode): Remove.
8066 (sse_movhlps): Merge with *avx_movhlps.
8067 (sse_movlhps): Merge with *avx_movlhps.
8068 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8069 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8070 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8071 (sse_loadhps): Merge with *avx_loadhps.
8072 (sse_storelps): Merge with *avx_storelps.
8073 (sse_loadlps): Merge with *avx_loadlps.
8074 (sse_movss): Merge with *avx_movss.
8075 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8076 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8077 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8078 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8079 (vec_set<mode>_0): Ditto.
8080 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8081 (sse4_1_insertps): Merge with *avx_insertps.
8082 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8083 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8084 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8085 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8086 (sse2_storehpd): Merge with *avx_storehpd.
8087 (sse2_loadhpd): Merge with *avx_loadhpd.
8088 (sse2_loadlpd): Merge with *avx_loadlpd.
8089 (sse2_movsd): Merge with *avx_movsd.
8090 (*vec_concatv2df): Merge with *vec_concatv2df.
8092 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8095 * combine.c (combine_instructions): Add last_combined_insn,
8096 update it if insn is after it, pass it to all try_combine calls.
8097 (try_combine): Add last_combined_insn parameter, pass it instead of
8098 i3 to propagate_for_debug.
8100 2011-04-07 Nick Clifton <nickc@redhat.com>
8102 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8103 to handle MDR <-> data register transfers.
8104 (movhi_internal): Likewise.
8106 2011-04-07 Alan Modra <amodra@gmail.com>
8108 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8109 previous stack info.
8111 2011-04-07 Tom de Vries <tom@codesourcery.com>
8114 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8115 flow_find_cross_jump. Swap variables to implement backward replacement.
8116 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8118 2011-04-07 Tom de Vries <tom@codesourcery.com>
8121 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8122 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8124 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8125 src1 or src2. Redirect edges to the last basic block. Update
8126 frequency and count on multiple basic blocks in case of fallthru.
8128 2011-04-07 Tom de Vries <tom@codesourcery.com>
8131 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8133 (old_insns_match_p): Change return type. Replace return false/true
8134 with return dir_none/dir_both. Use can_replace_by.
8135 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8136 direction from dir_p. Register replacement direction in dir, last_dir
8137 and afterlast_dir. Handle new return type of old_insns_match_p using
8138 merge_dir. Return replacement direction in dir_p.
8139 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8140 return type of old_insns_match_p.
8141 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8142 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8143 flow_find_cross_jump.
8144 * basic-block.h (enum replace_direction): New type.
8145 (flow_find_cross_jump): Add parameter to declaration.
8147 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8149 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8150 (AVXMODEDCVTPS2DQ): Ditto.
8151 (VEC_FLOAT_MODE): Ditto.
8152 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
8153 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8154 (<any_logic:code><mode>3): Use VF mode iterator.
8155 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8156 Use VF mode iterator.
8157 (copysign<mode>3): Use VF mode iterator.
8158 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
8159 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8160 (*<any_logic:code><MODEF:mode>3): Merge with
8161 *avx_<any_logic:code><MODEF:mode>3.
8162 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8163 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8164 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8165 (avx_cvtdq2ps<avxmodesuffix>): Remove.
8166 (sse2_cvtdq2ps): Use %v modifier.
8167 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8168 (avx_cvtps2dq<avxmodesuffix>): Remove.
8169 (sse2_cvtps2dq): Use %v modifier.
8170 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8171 (avx_cvttps2dq<avxmodesuffix>): Remove.
8172 (sse2_cvttps2dq): Use %v modifier.
8173 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8174 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8175 (sse2_cvtsd2siq): Fix insn template.
8176 (sse2_cvtsd2siq_2): Ditto.
8177 (sse2_cvttsd2siq): Ditto.
8178 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8179 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8181 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8183 * gcov-io.c: Use GCC Runtime Library Exception.
8185 2011-04-06 Jakub Jelinek <jakub@redhat.com>
8188 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8189 as base_reg whatever register reg has been eliminated to, instead
8190 of hardcoding STACK_POINTER_REGNUM.
8192 2011-04-06 Joseph Myers <joseph@codesourcery.com>
8194 * doc/tm.texi.in: Document C target hooks as separate from general
8196 * doc/tm.texi: Regenerate.
8197 * genhooks.c (struct hook_desc): Add docname field.
8198 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
8200 (hook_array): Include c-target.def.
8201 (emit_documentation): Use docname field in output.
8202 (emit_init_macros): Take docname argument. Only emit definitions
8203 for hooks matching docname.
8204 (main): Expect additional arguments in all cases. Pass argument
8205 to emit_init_macros.
8206 * target.def: Move initial macro definitions and comments to
8207 target-hooks-macros.h.
8208 (gcc_targetcm): Move to c-family/c-target.def.
8209 * target.h (targetcm): Move declaration to c-family/c-target.h.
8210 * targhooks.c (default_handle_c_option): Move to
8212 * targhooks.h (default_handle_c_option): Move declaration to
8213 c-family/c-common.h.
8214 * target-hooks-macros.h: New file.
8215 * config.gcc (target_has_targetcm): Define and use to add to
8216 c_target_objs and cxx_target_objs.
8217 * config/default-c.c: New file.
8218 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8219 of target.h and target-def.h.
8220 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8221 (darwin_objc_construct_string, darwin_cfstring_ref_p,
8222 darwin_check_cfstring_format_arg): Make static.
8223 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8224 TARGET_STRING_OBJECT_REF_TYPE_P,
8225 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8226 * config/darwin-protos.h (darwin_objc_construct_string,
8227 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8229 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8230 TARGET_STRING_OBJECT_REF_TYPE_P,
8231 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8232 * config/t-darwin (darwin-c.o): Update dependencies.
8233 * system.h (TARGET_HAS_TARGETCM): Poison.
8234 * Makefile.in (TARGET_H): Update.
8235 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8236 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8237 (default-c.o): New target.
8238 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8239 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8240 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
8242 (build/genhooks.o): Update dependencies.
8244 2011-04-06 Richard Guenther <rguenther@suse.de>
8246 * ipa-inline.c (enum inlining_mode): Remove.
8247 (cgraph_flatten): Use some other token.
8248 (cgraph_edge_early_inlinable_p): New function, split out from ...
8249 (cgraph_perform_always_inlining): New function, split out from ...
8250 (cgraph_decide_inlining_incrementally): ... here.
8251 (cgraph_mark_inline_edge): Adjust.
8252 (cgraph_early_inlining): Re-structure.
8253 (pass_early_inline): Require SSA form.
8255 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
8256 Julian Brown <julian@codesourcery.com>
8257 Mark Shinwell <shinwell@codesourcery.com>
8259 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8260 LO_REGS only for Thumb-1.
8261 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8262 be used in short instructions when optimising for size on Thumb-2.
8264 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8266 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8267 associated with user returns to be preserved.
8269 2011-04-06 Tristan Gingold <gingold@adacore.com>
8271 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8272 symbol_queue_size, DBXOUT_DECR_NESTING,
8273 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8274 if XCOFF_DEBUGGING_INFO.
8276 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
8278 * config/i386/i386.md (attribute isa): New.
8279 (attribute enabled): New.
8280 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8281 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8282 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8283 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8284 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8285 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8286 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8287 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8289 * config/i386/sse.md (VF): New mode iterator.
8293 (SSEMODEF4): Remove.
8294 (attribute sse): Handle V8SF and V4DF modes.
8295 (<absneg:code><mode>2): Use VF mode iterator.
8296 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
8298 (<plusminus_insn><mode>3): Use VF mode iterator.
8299 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8300 Use VF mode iterator.
8301 (<sse>_vm<plusminus_insn><mode>3): Merge with
8302 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
8303 (mul<mode>3): Use VF mode iterator.
8304 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
8305 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
8307 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8308 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8309 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
8310 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
8312 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8313 Use VF1 mode iterator.
8314 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8315 (sqrt<VF2:mode>2): New expander.
8316 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8317 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8318 and sqrtv2df2. Use VF mode iterator.
8319 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
8321 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8322 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8323 Use VF1 mode iterator.
8324 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8325 (<smaxmin:code><mode>3): Use VF mode iterator.
8326 (*<smaxmin:code><mode>3_finite): Merge with
8327 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
8328 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8329 (<sse>_vm<smaxmin:code><mode>2): Merge with
8330 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
8331 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
8333 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
8335 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8336 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8337 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8338 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8339 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
8341 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8342 Use VF_128 mode iterator.
8343 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
8345 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
8346 VF_128 mode iterator.
8347 (vcond<mode>): Use VF mode iterator.
8348 * config/i386/predicates.md (sse_comparison_operator): Merge with
8349 avx_comparison_float_operator. Do not declare as special_predicate.
8350 * config/i386/i386.c (struct builtin_description): Update for renamed
8352 (ix86_expand_args_builtin): Ditto.
8353 (ix86_expand_sse_compare_mask): Ditto.
8355 2011-04-06 Richard Guenther <rguenther@suse.de>
8357 * tree-inline.c (estimate_num_insns): For calls simply account
8358 for all passed arguments and a used return value.
8360 2011-04-06 Richard Guenther <rguenther@suse.de>
8362 PR tree-optimization/47663
8363 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8364 call_stmt_time fields.
8365 (cgraph_edge_inlinable_p): Declare.
8366 (cgraph_edge_recursive_p): New inline function.
8367 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8368 (cgraph_clone_edge): Copy it.
8369 * ipa-inline.c (cgraph_estimate_edge_time): New function.
8370 Account for call stmt time.
8371 (cgraph_estimate_time_after_inlining): Take edge argument.
8372 (cgraph_estimate_edge_growth): Account call stmt size.
8373 (cgraph_estimate_size_after_inlining): Take edge argument.
8374 (cgraph_mark_inline_edge): Adjust.
8375 (cgraph_check_inline_limits): Likewise.
8376 (cgraph_recursive_inlining_p): Remove.
8377 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8378 (cgraph_decide_recursive_inlining): Take edge argument and
8380 (cgraph_decide_inlining_of_small_functions): Do not avoid
8381 diags for recursive inlining here.
8382 (cgraph_flatten): Adjust.
8383 (cgraph_decide_inlining_incrementally): Likewise.
8384 (estimate_function_body_sizes): Remove call cost handling.
8385 (compute_inline_parameters): Initialize caller edge call costs.
8386 (cgraph_estimate_edge_growth): New function.
8387 (cgraph_estimate_growth): Use it.
8388 (cgraph_edge_badness): Likewise.
8389 (cgraph_check_inline_limits): Take an edge argument.
8390 (cgraph_decide_inlining_of_small_functions): Adjust.
8391 (cgraph_decide_inlining): Likewise.
8392 * tree-inline.c (estimate_num_insns): Only account for call
8393 return value if it is used.
8394 (expand_call_inline): Avoid diagnostics on recursive inline
8396 * lto-cgraph.c (lto_output_edge): Output edge call costs.
8397 (input_edge): Input edge call costs.
8399 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8401 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8403 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
8405 * doc/invoke.texi (Spec Files): Fix typo.
8407 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
8409 * profile.c (branch_prob): Move declaration of local variable. Remove
8410 obsolete ??? comment. Expand the location explicitly instead of using
8411 the LOCATION_FILE and LOCATION_LINE macros.
8413 2011-04-06 Wei Guozhi <carrot@google.com>
8416 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8417 (arm_cond_branch): Likewise.
8418 (arm_cond_branch_reversed): Likewise.
8419 (arm_jump): Likewise.
8420 (push_multi): Likewise.
8421 * config/arm/constraints.md (Py): New constraint.
8423 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8426 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8428 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8429 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8430 #ifdef DBX_DEBUGGING_INFO.
8432 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
8435 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8436 if old and new states differ.
8438 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8440 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8441 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8442 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8443 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8444 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8446 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8447 ColdFire options to -mcpu= options.
8449 2011-04-05 Jeff Law <law@redhat.com>
8451 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8452 check if BB is a successor of LOOP->header and return
8453 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8455 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8457 * cprop.c (struct reg_use): Remove.
8458 (reg_use_table): Make an array of RTX.
8459 (find_used_regs, constprop_register, local_cprop_pass,
8460 bypass_block): Simplify users of reg_use_table.
8461 (cprop_insn): Likewise. Iterate if copy propagation succeeded
8462 on one of the uses found by find_used_regs.
8464 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8467 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8470 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8472 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8474 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8476 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
8479 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8481 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8483 * combine.c: Include obstack.h.
8484 (struct insn_link): Define.
8485 (uid_log_links): Adjust type.
8486 (FOR_EACH_LOG_LINK): New macro.
8487 (insn_link_obstack): Declare.
8488 (alloc_insn_link): Define.
8489 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
8490 type of link variables.
8491 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8492 (try_combine, record_promoted_values, distribute_notes): Likewise.
8493 (distribute_links): Likewise. Tweak prototype.
8494 (clear_log_links): Delete.
8495 (adjust_for_new_dest): Call alloc_insn_link.
8496 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8498 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8500 * gcse.c (modify_mem_list): Convert to an array of VECs.
8501 (canon_modify_mem_list, compute_transp): Tweak formatting.
8502 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
8503 (load_killed_in_block_p): Likewise.
8504 (record_last_mem_set_info): Likewise.
8505 (clear_modify_mem_tables): Likewise.
8507 2011-04-05 Tom de Vries <tom@codesourcery.com>
8510 * function.c (emit_use_return_register_into_block): Only define if
8513 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
8515 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8517 2011-04-05 Joseph Myers <joseph@codesourcery.com>
8519 * config/rx/rx-opts.h: New.
8520 * config/rx/rx.c (rx_cpu_type): Remove.
8521 (rx_handle_option): Don't assert that global structures are in
8522 use. Access variables via opts pointer. Defer most handling of
8523 OPT_mint_register_. Use error_at.
8524 (rx_option_override): Handle deferred OPT_mint_register_ here.
8525 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8526 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8527 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8528 (rx_cpu_types): New Enum and EnumValue entries.
8529 (mint-register=): Use Defer and use Var accordingly.
8531 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8533 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8534 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8535 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8537 (debug_free_queue, debug_nesting, symbol_queue_index):
8539 * dbxout.c: ...to here. Make static.
8541 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
8543 * gcse.c (modify_pair): Define. Define a VEC of it.
8544 (canon_modify_mem_list): Convert to an array of VECs.
8545 (free_insn_expr_list_list): Delete.
8546 (clear_modify_mem_tables): Call VEC_free instead.
8547 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8548 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8549 (canon_list_insert, compute_transp): Likewise.
8551 2011-04-05 Tom de Vries <tom@codesourcery.com>
8554 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8557 2011-04-05 Tom de Vries <tom@codesourcery.com>
8560 * function.c (emit_use_return_register_into_block): New function.
8561 (thread_prologue_and_epilogue_insns): Use
8562 emit_use_return_register_into_block.
8564 2011-04-05 Tom de Vries <tom@codesourcery.com>
8567 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8570 2011-04-05 Tom de Vries <tom@codesourcery.com>
8572 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8574 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
8576 * config/arm/arm.md (define_constants for unspec): Replace with
8578 (define_constants for unspecv): Replace with define_c_enum.
8579 * config/arm/neon.md (define_constants for unspec): Replace with
8582 2011-04-04 Richard Henderson <rth@redhat.com>
8585 * dwarf2out.c (output_line_info): Always emit line info from
8586 at least one section.
8587 (dwarf2out_init): Create text_section_line_info here ...
8588 (set_cur_line_info_table): ... not here.
8590 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
8593 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8596 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8598 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
8600 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8601 (expr_equiv_p): Remove.
8602 (insert_set_in_table): Look at <dest, src> pair instead of expr.
8603 (hash_scan_set): Update call to insert_set_in_table.
8604 (dump_hash_table): Dump <dest, src> pair.
8605 (lookup_set): Simplify. Lookup <dest, src> pair.
8606 (compute_transp): Remove, fold heavily simplified code into...
8607 (compute_local_properties): ...here. Expect COMP and TRANSP
8609 (find_avail_set): Take set directly from struct expr.
8610 (find_bypass-set): Likewise.
8611 (bypass_block): Likewise.
8612 (cprop_insn): Likewise. Remove redundant INSN_P test.
8614 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8615 checks on form of COND from find_implicit_sets to here.
8616 (find_implicit_sets): Cleanup control flow. Split critical edges
8617 if it exposes implicit sets. Allocate/resize implicit_sets as
8619 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8620 changed something. Run df_analyze after find_implicit_sets if any
8621 edges were split. Do not allocate implicit_sets here.
8623 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8624 (gcse_obstack): Renamed to cprop_obstack.
8625 (GNEW, GNEWVEC, GNEWVAR): Remove.
8627 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8628 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8629 (gcse_alloc): Likewise, and rename to cprop_alloc.
8630 (alloc_gcse_men, free_gcse_mem): Remove.
8631 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8632 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8633 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8635 * cprop.c (oprs_not_set_p): Remove.
8636 (mark_set, mark_clobber): Remove.
8637 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8638 (reg_not_set_p): New function.
8639 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8640 (cprop_insn): Likewise.
8641 (cprop_jump): Use FOR_EACH_EDGE.
8643 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
8646 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8647 (rank_for_schedule): Use scheduled_insns vector instead of
8648 last_scheduled_insn.
8649 (ok_for_early_queue_removal): Likewise.
8650 (queue_to_ready): Search forward in nonscheduled_insns_begin if
8652 (choose_ready): Likewise.
8653 (commit_schedule): Use VEC_iterate.
8654 (schedule_block): Initialize nonscheduled_insns_begin. If we have
8655 a dbg_cnt, use it and ensure the first insn is in the ready list.
8656 (haifa_sched_init): Allocate scheduled_insns.
8657 (sched_extend_ready_list): Don't allocate it; reserve space.
8658 (haifa_sched_finish): Free it.
8660 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8662 * optc-gen.awk: Always remove type from Variable entry before
8663 recording in var_seen.
8665 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
8667 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8668 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8669 call to tidy_fallthru_edges.
8671 2011-04-04 Joseph Myers <joseph@codesourcery.com>
8673 * doc/options.texi (ToLower): Document.
8674 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8675 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8676 * opts.h (cl_option): Add cl_tolower field.
8677 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8678 arguments with lowercase strings.
8679 * config/rx/rx.opt (mcpu=): Add ToLower.
8680 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8683 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8685 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8687 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
8689 * config/vax/vax.c: Include reload.h.
8691 2011-04-04 Anatoly Sokolov <aesok@post.ru>
8693 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8694 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8695 (sparc_preferred_reload_class): New function.
8697 2011-04-04 Jakub Jelinek <jakub@redhat.com>
8700 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8701 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8703 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
8705 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8706 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8708 2011-04-03 Anatoly Sokolov <aesok@post.ru>
8710 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8711 (ASM_OUTPUT_ALIGNED_BSS): Define.
8713 2011-04-03 Michael Matz <matz@suse.de>
8715 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8716 and next_slot members.
8717 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8718 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8719 (lto_streamer_cache_append): Declare.
8720 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8721 unsigned index, remove offset parameter, ensure that we append
8722 or update existing entries.
8723 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8724 parameter, update next_slot for append.
8725 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8727 (lto_streamer_cache_insert_at): Likewise.
8728 (lto_streamer_cache_append): New function.
8729 (lto_streamer_cache_lookup): Use unsigned index.
8730 (lto_streamer_cache_get): Likewise.
8731 (lto_record_common_node): Don't test tree_node_can_be_shared.
8732 (preload_common_node): Adjust call to lto_streamer_cache_insert.
8733 (lto_streamer_cache_delete): Don't free offsets member.
8734 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8735 (lto_output_string_with_length): Use lto_output_data_stream.
8736 (lto_output_tree_header): Remove ix parameter, don't write it.
8737 (lto_output_builtin_tree): Likewise.
8738 (lto_write_tree): Adjust callers to above, don't track and write
8739 offset, write unsigned index.
8740 (output_unreferenced_globals): Don't emit all global vars.
8741 (write_global_references): Use unsigned indices.
8742 (lto_output_decl_state_refs): Likewise.
8743 (write_symbol): Likewise.
8744 * lto-streamer-in.c (lto_input_chain): Move earlier.
8745 (input_function): Use unsigned index.
8746 (input_alias_pairs): Don't read and then ignore all global vars.
8747 (lto_materialize_tree): Remove ix_p parameter, don't read index,
8748 don't pass it back, use lto_streamer_cache_append.
8749 (lto_register_var_decl_in_symtab): Use unsigned index.
8750 (lto_register_function_decl_in_symtab): Likewise.
8751 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8753 (lto_get_builtin_tree): Don't read index, use
8754 lto_streamer_cache_append.
8755 (lto_read_tree): Adjust call to lto_materialize_tree.
8757 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8758 don't use function calls in arguments to MIN.
8760 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8763 * gimple.c (gimple_type_leader_entry): Mark deletable.
8765 2011-04-03 Alan Modra <amodra@gmail.com>
8767 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8769 2011-04-03 Michael Matz <matz@suse.de>
8771 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8773 * tree.h (tree_decl_non_common.vindex): Adjust comment.
8775 2011-04-03 Michael Matz <matz@suse.de>
8777 * cgraphbuild.c (record_reference): Canonicalize constructor values.
8778 * gimple-fold.c (canonicalize_constructor_val): Accept being called
8779 without function context.
8780 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8781 current_function_decl and cfun.
8783 2011-04-03 Michael Matz <matz@suse.de>
8785 * tree.c (decl_init_priority_insert): Don't create entry for
8787 (decl_fini_priority_insert): Ditto.
8788 (fields_compatible_p, find_compatible_field): Remove.
8789 * tree.h (fields_compatible_p, find_compatible_field): Remove.
8790 * gimple.c (gimple_compare_field_offset): Adjust block comment.
8792 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
8794 * combine.c (try_combine): Remove useless local variable.
8796 2011-04-03 Richard Guenther <rguenther@suse.de>
8797 Ira Rosen <ira.rosen@linaro.org>
8799 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8800 non-variable offsets and compare the remaining bases of the two
8801 accesses instead of looking for exact same data-ref.
8803 2011-04-02 Kai Tietz <ktietz@redhat.com>
8806 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8808 * i386.c (ix86_is_msabi_thiscall): New helper function.
8809 (ix86_is_type_thiscall): New helper function.
8810 (ix86_comp_type_attributes): Handle thiscall for method-functions
8812 (init_cumulative_args): Likewise.
8813 (find_drap_reg): Likewise.
8814 (ix86_static_chain): Likewise.
8815 (x86_this_parameter): Likewise.
8816 (x86_output_mi_thunk): Likewise.
8818 2011-04-01 Olivier Hainque <hainque@adacore.com>
8819 Nicolas Setton <setton@adacore.com>
8820 Eric Botcazou <ebotcazou@adacore.com>
8822 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8823 (add_gnat_descriptive_type_attribute): New function.
8824 (gen_array_type_die): Call it.
8825 (gen_enumeration_type_die): Likewise.
8826 (gen_struct_or_union_type_die): Likewise.
8827 (modified_type_die): Likewise.
8828 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8829 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8830 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8832 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8835 * dwarf2out.c (resolve_addr): Don't call force_decl_die
8836 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8839 2011-03-17 Richard Guenther <rguenther@suse.de>
8842 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8843 origin for decls in other ltrans units.
8844 (input_varpool_node): Likewise.
8846 2011-04-01 Jakub Jelinek <jakub@redhat.com>
8849 * expr.c (expand_assignment): Handle all possibilities
8850 if TO_RTX is CONCAT.
8851 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8852 (store_split_bit_field): If SUBREG_REG (op0) or
8853 op0 itself has smaller mode than word, return it
8854 for offset 0 and const0_rtx for out-of-bounds stores.
8855 If word is const0_rtx, skip it.
8857 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
8859 * config/h8300/h8300.c (print_operand_address): Rename to...
8860 (h8300_print_operand_address): ...this. Make static. Adjust comments.
8861 Call h8300_print_operand and h8300_print_operand_address instead of
8862 print_operand and print_operand_address. Declare.
8863 (print_operand): Renake to...
8864 (h8300_print_operand): ...this. Make static. Adjust comments.
8865 Call h8300_print_operand instead of print_operand. Declare.
8866 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8867 (h8300_register_move_cost): Likewise.
8868 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8869 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8870 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8871 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8872 * config/h8300/h8300-protos.h (print_operand): Delete.
8873 (print_operand_address): Delete.
8875 2011-04-01 Richard Henderson <rth@redhat.com>
8878 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8879 in strict mode before dwarf4. Re-order tests to early out
8880 before switching sections.
8882 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
8884 * config/h8300/constraints.md: New file.
8885 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
8886 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
8887 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
8888 * config/h8300/predicates.md (bit_operand): Likewise.
8889 (incdec_operand): Use satisfies_constraint_M and
8890 satisfies_constraint_O. Don't use C code block.
8891 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
8892 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
8893 (compute_mov_length): Use satisfies_constraint_G.
8894 (fix_bit_operand): Use satisfies_constraint_U.
8895 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
8896 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
8897 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
8898 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
8899 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
8900 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
8901 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
8902 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
8903 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
8904 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
8905 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
8906 (EXTRA_MEMORY_CONSTRAINT): Delete.
8908 2011-04-01 Andrew Pinski <pinskia@gmail.com>
8909 Michael Meissner <meissner@linux.vnet.ibm.com>
8912 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
8913 operands, as per the specifications.
8915 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
8916 (vec_extract_evenv4sf): Ditto.
8917 (vec_extract_evenv8hi): Ditto.
8918 (vec_extract_evenv16qi): Ditto.
8919 (vec_extract_oddv4si): Ditto.
8921 2011-03-31 Mark Wielaard <mjw@redhat.com>
8923 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
8924 high_pc attribute if the CU has no associated code. Only output
8925 DW_AT_entry_pc for CU if not generating strict dwarf and
8928 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
8930 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
8931 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
8933 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
8934 * final.c (final_start_function): Call the new function rather
8935 than using a NULL argument for dwarf2out_frame_debug.
8937 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
8938 that contains the prologue.
8940 * haifa-sched.c (queue_insn): New arg REASON. All callers
8941 changed. Print it in debugging output.
8943 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
8945 * sched-ebb.c (begin_schedule_ready): Remove second argument.
8946 Split most of the code into...
8947 (begin_move_insn): ... here. New function.
8948 (ebb_sched_info): Add a pointer to it.
8949 * haifa-sched.c (scheduled_insns): New static variable.
8950 (sched_extend_ready_list): Allocate it.
8951 (schedule_block): Use it to record the order of scheduled insns.
8952 Perform RTL changes to move insns only after all scheduling
8953 decisions have been made.
8954 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
8955 begin_move_insn field.
8956 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
8957 * sched-int.h (struct haifa_sched_info): Remove second argument
8958 from begin_schedule_ready hook. Add new member begin_move_insn.
8959 * sched-rgn.c (begin_schedule_ready): Remove second argument.
8960 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
8962 * haifa-sched.c (prune_ready_list): New function, broken out of
8964 (schedule_block): Use it.
8966 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8968 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
8970 2011-04-01 Kai Tietz <ktietz@redhat.com>
8972 * config.gcc (*-*-mingw*): Allow as option the
8973 posix threading model.
8974 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
8975 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
8977 (CPP_SPEC): Add pthread/no-pthread handling.
8978 (LIB_SPEC): Likewise.
8979 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
8980 (LIB_SPEC): Likewise.
8981 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
8982 flag to pass -pthread option for shared libgcc build.
8983 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
8984 for shared libgcc build.
8985 * config/i386/t-mingw-pthread: New file.
8986 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
8987 New define to enable use of library pthread by default.
8988 * config/i386/mingw.opt (pthread): New driver option.
8989 (no-pthread): New driver option.
8990 * config/i386/cygming.opt: Make sure trailing empty line is retained.
8991 * config/i386/mingw-w64.opt: Likewise.
8993 2011-04-01 Gary Funck <gary@intrepid.com>
8995 * c-decl.c (grokdeclarator): Fix formatting.
8997 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
8999 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9000 instead of n_operands.
9001 (set_storage_via_setmem): Likewise.
9002 * optabs.c (maybe_gen_insn): Likewise.
9003 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9004 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9005 (mips_expand_builtin_direct): Likewise.
9006 * config/spu/spu.c (expand_builtin_args): Likewise.
9008 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9010 * recog.h (insn_data_d): Add n_generator_args.
9011 * genoutput.c (data): Likewise.
9012 (output_insn_data): Print it.
9013 (max_opno, num_dups): Delete.
9014 (scan_operands): Just fill in "d->operand[...]".
9015 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9017 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9019 * gensupport.h (pattern_stats): New structure.
9020 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9021 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9022 (max_operand_1, max_operand_vec): Delete.
9023 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9025 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9027 * emit-rtl.c (emit_pattern_after_setloc): New function.
9028 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9029 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9030 (emit_pattern_after): New function.
9031 (emit_insn_after, emit_jump_insn_after): Call it.
9032 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9033 (emit_pattern_before_setloc): New function.
9034 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9035 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9037 (emit_pattern_before): New function.
9038 (emit_insn_before, emit_jump_insn_before): Call it.
9039 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9041 2011-03-31 Richard Henderson <rth@redhat.com>
9043 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9044 (dw_separate_line_info_entry): Remove.
9045 (enum dw_line_info_opcode): New.
9046 (dw_line_info_entry): Use it.
9047 (dw_line_info_table, dw_line_info_table_p): New.
9048 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9049 (line_info_table, line_info_label_num): Remove.
9050 (line_info_table_in_use): Remove.
9051 (separate_line_info_table): Remove.
9052 (separate_line_info_table_allocated): Remove.
9053 (separate_line_info_table_in_use): Remove.
9054 (LINE_INFO_TABLE_INCREMENT): Remove.
9055 (line_info_label_num): New.
9056 (cur_line_info_table): New.
9057 (text_section_line_info, cold_text_section_line_info): New.
9058 (separate_line_info): New.
9059 (SEPARATE_LINE_CODE_LABEL): Remove.
9060 (print_dwarf_line_table): Remove.
9061 (debug_dwarf): Don't dump it.
9062 (output_one_line_info_table): New.
9063 (output_line_info): Use it.
9064 (new_line_info_table): New.
9065 (set_cur_line_info_table): New.
9066 (dwarf2out_switch_text_section): Use it.
9067 (dwarf2out_begin_function): Likewise.
9068 (push_dw_line_info_entry): New.
9069 (dwarf2out_source_line): Rewrite for new line info tables.
9070 (dwarf2out_init): Remove dead initailizations.
9072 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9074 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9076 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9077 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9078 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9079 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9080 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9081 * opt-functions.awk (flag_init, switch_bit_fields): New.
9082 (switch_flags): Don't handle flags moved to bit-fields. Don't
9083 generate CL_MISSING_OK or CL_SAVE.
9084 * optc-gen.awk: Update to generate bit-field output as well as
9086 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9087 bit-field instead of CL_REJECT_DRIVER flag.
9088 * opts-common.c (generate_canonical_option,
9089 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9090 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9091 instead of CL_REJECT_NEGATIVE flag.
9092 * toplev.c (print_switch_values): Use cl_report bit-field instead
9095 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9097 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9098 a zero minimum index only if it is redundant.
9100 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9102 PR rtl-optimization/48381
9103 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9104 instead of ira_class_hard_reg_index for calculating conflicting
9107 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9109 * cprop.c: Clean up hash table building.
9110 (reg_avail_info): Remove.
9111 (oprs_available_p): Remove.
9112 (record_last_reg_set_info): Remove.
9113 (record_last_set_info): Remove.
9114 (reg_available_p): New function.
9115 (gcse_constant_p): Do not treat unfolded conditions as constants.
9116 (make_set_regs_unavailable): New function.
9117 (hash_scan_set): Simplify with new reg_available_p.
9118 (compute_hash_table_work): Traverse insns stream only once.
9119 Do not compute reg_avail_info. Traverse insns in reverse order.
9120 Record implicit sets after recording explicit sets from the block.
9122 2011-03-31 Michael Matz <matz@suse.de>
9124 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9126 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9128 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9129 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9130 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9131 (h8300_mode_dependent_address_p): New function.
9132 (h8300_get_index): Make static.
9134 2011-03-31 Jeff Law <law@redhat.com>
9136 * reload1.c (elimination_effects): Fix typo in recent change.
9138 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9139 typo potentially leading to null pointer dereference.
9141 * caller-save.c (new_saved_hard_reg): Eliminate return value.
9142 (setup_save_areas): Corresponding changes to avoid useless
9145 * jump.c (reversed_comparison_code_parts): Avoid successive return
9146 statements when REVERSE_CONDITION is defined.
9148 * expr.c (expand_assignment): Avoid useless assignments.
9149 (expand_expr_real_1): Likewise.
9150 (expand_expr_real_2): Avoid useless statements.
9152 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9154 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9156 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9159 * stmt.c (expand_expr_stmt): Avoid useless assignment.
9161 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9164 * doc/tm.texi.in (TARGET_VERSION): Remove.
9165 * doc/tm.texi: Regenerate.
9166 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9167 * collect2.c (main): Don't use TARGET_VERSION.
9168 * mips-tdump.c (main): Don't use TARGET_VERSION.
9169 * mips-tfile.c (main): Don't use TARGET_VERSION.
9170 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9171 * config/rs6000/vxworksae.h: Remove.
9172 * config/alpha/alpha.h (TARGET_VERSION): Remove.
9173 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9174 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9175 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9176 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9177 * config/arm/arm.h (TARGET_VERSION): Remove.
9178 * config/arm/coff.h (TARGET_VERSION): Remove.
9179 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9180 * config/arm/elf.h (TARGET_VERSION): Remove.
9181 * config/arm/freebsd.h (TARGET_VERSION): Remove.
9182 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9183 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9184 * config/arm/pe.h (TARGET_VERSION): Remove.
9185 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9186 * config/arm/semi.h (TARGET_VERSION): Remove.
9187 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9188 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9189 * config/arm/vxworks.h (TARGET_VERSION): Remove.
9190 * config/avr/avr.h (TARGET_VERSION): Remove.
9191 * config/bfin/bfin.h (TARGET_VERSION): Remove.
9192 * config/fr30/fr30.h (TARGET_VERSION): Remove.
9193 * config/frv/frv.h (TARGET_VERSION): Remove.
9194 * config/h8300/h8300.h (TARGET_VERSION): Remove.
9195 * config/i386/cygwin.h (TARGET_VERSION): Remove.
9196 * config/i386/darwin.h (TARGET_VERSION): Remove.
9197 * config/i386/darwin64.h (TARGET_VERSION): Remove.
9198 * config/i386/djgpp.h (TARGET_VERSION): Remove.
9199 * config/i386/freebsd.h (TARGET_VERSION): Remove.
9200 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9201 * config/i386/gnu.h (TARGET_VERSION): Remove.
9202 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9203 * config/i386/i386elf.h (TARGET_VERSION): Remove.
9204 * config/i386/linux.h (TARGET_VERSION): Remove.
9205 * config/i386/linux64.h (TARGET_VERSION): Remove.
9206 * config/i386/lynx.h (TARGET_VERSION): Remove.
9207 * config/i386/mingw32.h (TARGET_VERSION): Remove.
9208 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9209 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9210 * config/i386/netware.h (TARGET_VERSION): Remove.
9211 * config/i386/nto.h (TARGET_VERSION): Remove.
9212 * config/i386/openbsd.h (TARGET_VERSION): Remove.
9213 * config/i386/vxworks.h (TARGET_VERSION): Remove.
9214 * config/ia64/elf.h (TARGET_VERSION): Remove.
9215 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9216 * config/ia64/hpux.h (TARGET_VERSION): Remove.
9217 * config/ia64/linux.h (TARGET_VERSION): Remove.
9218 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9219 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9220 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9221 * config/lm32/lm32.h (TARGET_VERSION): Remove.
9222 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9223 * config/m32c/m32c.h (TARGET_VERSION): Remove.
9224 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9225 * config/m32r/m32r.h (TARGET_VERSION): Remove.
9226 * config/m68k/linux.h (TARGET_VERSION): Remove.
9227 * config/m68k/m68k.h (TARGET_VERSION): Remove.
9228 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9229 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9230 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9231 * config/mep/mep.h (TARGET_VERSION): Remove.
9232 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9233 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9234 * config/mips/iris6.h (MACHINE_TYPE): Remove.
9235 * config/mips/linux.h (TARGET_VERSION): Remove.
9236 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9237 * config/mips/vxworks.h (TARGET_VERSION): Remove.
9238 * config/mmix/mmix.h (TARGET_VERSION): Remove.
9239 * config/mn10300/linux.h (TARGET_VERSION): Remove.
9240 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9241 * config/pa/pa.h (TARGET_VERSION): Remove.
9242 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9243 * config/picochip/picochip.h (TARGET_VERSION): Remove.
9244 * config/rs6000/aix.h (TARGET_VERSION): Remove.
9245 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9246 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9247 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9248 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9249 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9250 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9251 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9252 * config/rs6000/linux.h (TARGET_VERSION): Remove.
9253 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9254 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9255 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9256 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9257 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9258 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9259 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9260 * config/s390/linux.h (TARGET_VERSION): Remove.
9261 * config/s390/s390.h (TARGET_VERSION): Remove.
9262 * config/s390/tpf.h (TARGET_VERSION): Remove.
9263 * config/score/score.h (TARGET_VERSION): Remove.
9264 * config/sh/linux.h (TARGET_VERSION): Remove.
9265 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9266 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9267 * config/sh/sh.h (TARGET_VERSION): Remove.
9268 * config/sh/sh64.h (TARGET_VERSION): Remove.
9269 * config/sh/superh.h (TARGET_VERSION): Remove.
9270 * config/sh/vxworks.h (TARGET_VERSION): Remove.
9271 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9272 * config/sparc/linux.h (TARGET_VERSION): Remove.
9273 * config/sparc/linux64.h (TARGET_VERSION): Remove.
9274 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9275 TARGET_NAME32, TARGET_NAME): Remove.
9276 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9277 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9278 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9279 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9280 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9281 * config/spu/spu.h (TARGET_VERSION): Remove.
9282 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9283 * config/v850/v850.h (TARGET_VERSION): Remove.
9284 * config/vax/linux.h (TARGET_VERSION): Remove.
9285 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9286 * config/xtensa/elf.h (TARGET_VERSION): Remove.
9287 * config/xtensa/linux.h (TARGET_VERSION): Remove.
9289 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9292 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9293 frame-related from frame-unrelated adjustments to the stack pointer.
9295 2011-03-31 Jakub Jelinek <jakub@redhat.com>
9297 * common.opt (fdebug-types-section): Move earlier.
9298 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9300 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
9302 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9305 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
9307 * tree.h (CASE_CHAIN): Define.
9308 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9309 (gimple_redirect_edge_and_branch): Likewise.
9311 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9314 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9317 2011-03-30 Jeff Law <law@redhat.com>
9319 * PR bootstrap/48371
9320 * reload1.c (reload): Fix botch in last change.
9322 * reload.h (struct reload): Fix typo introduced in last change.
9324 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9326 * config/arm/arm.opt (mhard-float, msoft-float): Mark
9327 Undocumented. Remove help text.
9328 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9331 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9333 * doc/options.texi (NegativeAlias): Document.
9334 (Alias): Mention NegativeAlias.
9335 * opt-functions.awk: Handle NegativeAlias.
9336 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9337 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9338 * opts.h (CL_NEGATIVE_ALIAS): Define.
9339 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9340 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9342 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9344 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9345 mno-spe and mno-isel instead of mspe=no and -misel=no.
9347 2011-03-29 Mark Wielaard <mjw@redhat.com>
9349 * common.opt (fdebug-types-section): New flag.
9350 * doc/invoke.texi: Document new -fno-debug-types-section flag.
9351 * dwarf2out.c (use_debug_types): New define.
9352 (struct die_struct): Mark die_id with GTY desc use_debug_types.
9353 (print_die): Guard output of type unit signatures using
9355 (build_abbrev_table): Replace assert of dwarf_version >= 4
9356 with assert on use_debug_types.
9357 (size_of_die): Likewise.
9358 (unmark_dies): Likewise.
9359 (value_format): Decide AT_ref_external form on use_debug_types.
9360 (output_die): Replace dwarf_version version check guard with
9361 use_debug_types where appropriate.
9362 (modified_type_die): Likewise.
9363 (gen_reference_type_die): Likewise.
9364 (dwarf2out_start_source_file): Likewise.
9365 (dwarf2out_end_source_file): Likewise.
9366 (prune_unused_types_walk_attribs): Likewise.
9367 (dwarf2out_finish): Likewise.
9369 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
9371 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9373 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9375 PR rtl-optimization/48332
9376 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9377 mode of input operand N and modeN to its actual mode.
9379 2011-03-30 Jeff Law <law@redhat.com>
9381 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9382 define accessor macro.
9383 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9384 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9385 (reg_equiv_init): Likewise.
9386 (reg_equivs_size): New variable.
9387 (reg_equiv_init_size): Remove.
9388 (allocate_initial_values): Move prototype to here from....
9389 * integrate.h (allocate_initial_values): Remove prototype.
9390 * integrate.c: Include reload.h.
9391 (allocate_initial_values): Corresponding changes.
9392 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9393 (fix_reg_equiv_init, no_equiv): Corresponding changes.
9394 (update_equiv_regs): Corresponding changes.
9395 (ira): Corresponding changes.
9396 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9397 (push_secondary_reload): Corresponding changes.
9398 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9399 (make_memloc, find_reloads_address): Corresponding changes.
9400 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9401 (find_reloads_address_1): Corresponding changes.
9402 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9403 (refers_to_regno_for_reload_p): Corresponding changes.
9404 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9405 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9406 * reload1.c: Include ggc.h.
9407 (grow_reg_equivs): New function.
9408 (replace_pseudos_in, reload): Corresponding changes.
9409 (calculate_needs_all_insns, alter_regs): Corresponding changes.
9410 (eliminate_regs_1, elimination_effects): Corresponding changes.
9411 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9412 (delete_output_reload): Likewise.
9413 * caller-save.c (mark_referenced_regs): Corresponding changes.
9414 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9415 * frv/predicates.md (frv_load_operand): Corresponding changes.
9416 * microblaze/microblaze.c (double_memory_operand): Corresponding
9418 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9419 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9420 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9421 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9422 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9424 * pa/pa.c (emit_move_sequence): Corresponding changes.
9425 * vax/vax.c (nonindexed_address_p): Corresponding changes.
9427 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9430 * config/arm/arm.c (coproc_secondary_reload_class): Handle
9431 structure modes. Don't check neon_vector_mem_operand for
9432 vector or structure modes.
9434 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
9435 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9438 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9439 operand 1 and reshuffle the operands to match.
9440 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9442 2011-03-30 Christian Schüler <cschueler@gmx.de>
9445 * config/c.opt (F): Added 'Driver' to -F option.
9448 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9450 * config/darwin.opt: Added '-arch' option.
9452 2011-03-30 Nick Clifton <nickc@redhat.com>
9454 * config/rx/rx.md: Add peepholes and patterns to combine
9455 extending loads and simple arithmetic instructions.
9456 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9457 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9458 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9459 modes to use pre-decrement and post-increment addressing.
9460 (rx_is_restricted_memory_address): Add range checking of REG+INT
9462 (rx_print_operand): Add support for %Q. Fix handling of %Q.
9463 (rx_memory_move_cost): Adjust cost of stores.
9464 (rx_adjust_insn_length): New function.
9466 2011-03-30 Jakub Jelinek <jakub@redhat.com>
9469 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9470 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9471 matching arg00/arg01 types.
9473 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
9475 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9476 last_location to UNKNOWN_LOCATION.
9478 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
9481 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9484 2011-03-30 Joseph Myers <joseph@codesourcery.com>
9485 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9488 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9490 (sparc_cpu): Likewise.
9491 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9494 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9498 PR rtl-optimization/48345
9499 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9500 hard regs for given mode from profitable regs when doing secondary
9503 2011-03-29 Jeff Law <law@redhat.com>
9506 * tree-ssa-threadupdate.c (struct redirection_data): Remove
9507 do_not_duplicate field.
9508 (lookup_redirection_data): Corresponding changes.
9509 (create_duplicates): Always create a template block.
9510 (redirect_edges): Remove code which reused the original block
9511 when it was going to become unreachable code.
9512 (thread_block): Don't set do_not_duplicate field.
9514 2011-03-29 Joseph Myers <joseph@codesourcery.com>
9516 * lto-opts.c (register_user_option_p, lto_register_user_option):
9517 Make type argument unsigned.
9518 * lto-streamer.h (lto_register_user_option): Make type argument
9520 * opth-gen.awk: Make CL_* macros unsigned.
9521 * opts-common.c (find_opt): Make lang_mask argument unsigned.
9522 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9523 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9524 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9525 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9526 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9527 (find_opt): Make lang_mask argument unsigned.
9529 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9531 PR rtl-optimization/48331
9532 PR rtl-optimization/48334
9533 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9534 for any used algorithm.
9536 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
9538 * ira-conflicts.c (build_object_conflicts): Add unused attribute
9541 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
9543 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9544 (alpha_option_override): Don't set alpha_sr_alias_set.
9545 (emit_frame_store_1): Use gen_frame_mem rather than calling
9547 (alpha_expand_epilogue): Ditto.
9549 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
9551 PR tree-optimization/48290
9552 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9553 vectorization, check that relevant phis in the basic block after
9554 the inner loop are really inner loop's exit phis.
9556 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
9559 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9560 (cached_dw_loc_list_def): New structure.
9561 (cached_dw_loc_list): New typedef.
9562 (cached_dw_loc_list_table): New variable.
9563 (cached_dw_loc_list_table_hash): New function.
9564 (cached_dw_loc_list_table_eq): Likewise.
9565 (add_location_or_const_value_attribute): Take a bool cache_p.
9566 Cache the list when the parameter is true.
9567 (gen_formal_parameter_die): Update caller.
9568 (gen_variable_die): Likewise.
9569 (dwarf2out_finish): Likewise.
9570 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9571 while generating debug info for the decl.
9572 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9573 (dwarf2out_init): Initialize cached_dw_loc_list_table.
9574 (resolve_addr): Cache the result of resolving a chain of
9577 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
9579 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9580 conflict object hard regset nodes have intersecting hard reg sets.
9582 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9583 after regstat_init_n_sets_and_refs.
9585 * ira.c: Add more comments at the top.
9586 (setup_stack_reg_pressure_class, setup_pressure_classes):
9587 Add comments how we compute the register pressure classes.
9588 (setup_allocno_and_important_classes): Add more comments.
9589 (setup_class_translate_array, reorder_important_classes)
9590 (setup_reg_class_relations): Add comments.
9592 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
9595 * ira-color.c: Add 2011 to the Copyright line.
9596 (assign_hard_reg): Add more comments.
9597 (improve_allocation): Ditto.
9599 * ira-costs.c: Add 2011 to the Copyright line.
9600 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9602 (setup_regno_cost_classes_by_mode): Ditto.
9604 Initial patches from ira-improv branch:
9606 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9608 * ira-build.c (ira_create_object): Remove initialization of
9609 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
9610 (ira_create_allocno): Remove initialization of
9611 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9612 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9613 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9614 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9615 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9616 Initialize ALLOCNO_ADD_DATA.
9617 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9618 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9620 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
9621 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9623 * ira.c (ira_reallocate): Remove.
9624 (setup_pressure_classes): Call
9625 ira_init_register_move_cost_if_necessary. Use
9626 ira_register_move_cost instead of ira_get_register_move_cost.
9627 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9628 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9630 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9631 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9632 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9633 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9634 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9635 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9637 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9638 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9639 (struct allocno_color_data): New.
9640 (allocno_color_data_t): New typedef.
9641 (allocno_color_data): New definition.
9642 (ALLOCNO_COLOR_DATA): New macro.
9643 (struct object_color_data): New.
9644 (object_color_data_t): New typedef.
9645 (object_color_data): New definition.
9646 (OBJECT_COLOR_DATA): New macro.
9647 (update_copy_costs, calculate_allocno_spill_cost): Call
9648 ira_init_register_move_cost_if_necessary. Use
9649 ira_register_move_cost instead of ira_get_register_move_cost.
9650 (move_spill_restore, update_curr_costs): Ditto.
9651 (allocno_spill_priority): Make it inline.
9652 (color_pass): Allocate and free allocno_color_dat and object_color_data.
9653 (struct coalesce_data, coalesce_data_t): New.
9654 (allocno_coalesce_data): New definition.
9655 (ALLOCNO_COALESCE_DATA): New macro.
9656 (merge_allocnos, coalesced_allocno_conflict_p): Use
9657 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9658 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9659 (coalesce_allocnos): Ditto.
9660 (setup_coalesced_allocno_costs_and_nums): Ditto.
9661 (collect_spilled_coalesced_allocnos): Ditto.
9662 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9663 (setup_slot_coalesced_allocno_live_ranges): Ditto.
9664 (coalesce_spill_slots): Ditto.
9665 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
9666 free allocno_coalesce_data.
9668 * ira-conflicts.c: Fix formatting.
9669 (process_regs_for_copy): Call
9670 ira_init_register_move_cost_if_necessary. Use
9671 ira_register_move_cost instead of ira_get_register_move_cost.
9672 (build_object_conflicts): Optimize.
9674 * ira-costs.c (record_reg_classes): Optimize. Call
9675 ira_init_register_move_cost_if_necessary. Use
9676 ira_register_move_cost, ira_may_move_in_cost, and
9677 ira_may_move_out_cost instead of ira_get_register_move_cost and
9678 ira_get_may_move_cost.
9679 (record_address_regs): Ditto.
9680 (scan_one_insn): Optimize.
9681 (find_costs_and_classes): Optimize.
9682 (process_bb_node_for_hard_reg_moves): Call
9683 ira_init_register_move_cost_if_necessary. Use
9684 ira_register_move_cost instead of ira_get_register_move_cost.
9686 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9687 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9688 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9689 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9691 (ira_initiate_emit_data, ira_finish_emit_data)
9692 (create_new_allocno): New functions.
9693 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9694 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9695 Use ira_register_move_cost instead of ira_get_register_move_cost.
9697 * ira-int.h: Fix some comments.
9698 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9699 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9700 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9701 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
9703 (struct ira_allocno): Make mode and aclass a bitfield. Move other
9704 bitfield after mode. Make hard_regno a short int. Make
9705 hard_regno short. Remove first_coalesced_allocno and
9706 next_coalesced_allocno. Move mem_optimized_dest_p,
9707 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9708 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
9709 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9710 temp, colorable_p. Add new member add_data.
9711 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9712 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9713 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9714 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9715 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9716 (ALLOCNO_ADD_DATA): New macro.
9717 (ira_emit_data_t): New typedef.
9718 (struct ira_emit_data): New. Move mem_optimized_dest_p,
9719 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9720 from struct ira_allocno.
9721 (ALLOCNO_EMIT_DATA): New macro.
9722 (ira_allocno_emit_data, allocno_emit_reg): New.
9723 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9724 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9725 (OBJECT_ADD_DATA): New macro.
9726 (ira_reallocate): Remove.
9727 (ira_initiate_emit_data, ira_finish_emit_data): New.
9728 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9729 (ira_init_register_move_cost_if_necessary): New.
9730 (ira_object_conflict_iter_next): Merge into
9731 ira_object_conflict_iter_cond.
9732 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9734 * ira-live.c (process_single_reg_class_operands): Call
9735 ira_init_register_move_cost_if_necessary. Use
9736 ira_register_move_cost instead of ira_get_register_move_cost.
9738 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
9740 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9742 * ira-costs.c: Fix formatting.
9743 (cost_classes, cost_classes_num): Remove.
9744 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9745 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9746 (cost_classes_del, cost_classes_htab): New.
9747 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9748 (initiate_regno_cost_classes, setup_cost_classes): New.
9749 (setup_regno_cost_classes_by_aclass): New.
9750 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9751 (record_reg_classes): Use regno_cost_classes instead of
9752 cost_classes. Move checking opposite operand up.
9753 (record_address_regs): Use regno_cost_classes
9754 instead of cost_classes.
9755 (scan_one_insn): Ditto. Use always general register.
9756 (print_allocno_costs): Use regno_cost_classes instead of
9758 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
9759 (find_costs_and_classes): Set up cost classes for each registers.
9760 Use also their mode for this. Use regno_cost_classes instead of
9762 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9764 (free_ira_costs, ira_init_costs): Don't use cost_classes.
9765 (ira_costs, ira_set_pseudo_classes): Call
9766 initiate_regno_cost_classes and finish_regno_cost_classes.
9768 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
9770 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9772 * target.def (ira_cover_classes): Remove.
9774 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9776 * doc/tm.texi.in: Ditto.
9778 * ira-conflicts.c: Remove mentioning cover classes from the file.
9779 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
9780 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
9782 * targhooks.c (default_ira_cover_classes): Remove.
9784 * targhooks.h (default_ira_cover_classes): Ditto.
9786 * haifa-sched.c: Remove mentioning cover classes from the file.
9787 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
9788 ira_pressure_classes and ira_pressure_classes_num instead of
9789 ira_reg_class_cover_size and ira_reg_class_cover. Use
9790 sched_regno_pressure_class instead of sched_regno_cover_class.
9791 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9792 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9794 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
9795 classes from the file.
9796 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9797 (struct object_hard_regs, struct object_hard_regs_node): New.
9798 (struct ira_object): New members profitable_hard_regs,
9799 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9800 (struct ira_allocno): Rename cover_class to aclass. Rename
9801 cover_class_cost and updated_cover_class_cost to class_cost and
9802 updated_class_cost. Remove splay_removed_p and
9803 left_conflict_size. Add new members colorable_p.
9804 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9805 (ALLOCNO_COLORABLE_P): New macro.
9806 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9807 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9808 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9809 (OBJECT_...): Rename parameter C to O.
9810 (OBJECT_PROFITABLE_HARD_REGS): New macro.
9811 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9812 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9813 (struct target_ira_int): New members x_ira_max_memory_move_cost,
9814 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9815 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9816 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9817 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
9818 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
9819 x_ira_reg_class_subunion.
9820 (ira_max_memory_move_cost, ira_max_register_move_cost)
9821 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9822 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9823 (ira_important_class_nums, ira_reg_class_superunion): New macros.
9824 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9825 (ira_reg_class_union): Rename to ira_reg_class_subunion.
9826 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9827 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9828 (ira_tune_allocno_costs_and_cover_classes): Rename to
9829 ira_tune_allocno_costs.
9830 (ira_debug_hard_regs_forest): New.
9831 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9832 (ira_object_conflict_iter_next): Fix comments.
9833 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9834 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9835 cover_class to aclass.
9836 (ira_allocate_and_accumulate_costs): Ditto.
9837 (ira_allocate_and_set_or_copy_costs): Ditto.
9839 * opts.c (decode_options): Remove ira_cover_class check.
9841 * ira-color.c: Remove mentioning cover classes from the file. Use
9842 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9843 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9844 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9845 (splay-tree.h): Remove include.
9846 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9847 before copy_freq_compare_func.
9848 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9849 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9851 (hard_regs_roots, hard_regs_node_vec): Ditto.
9852 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9853 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9854 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9855 (create_new_object_hard_regs_node): Ditto.
9856 (add_new_object_hard_regs_node_to_forest): Ditto.
9857 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9858 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9860 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9861 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9862 (remove_unused_object_hard_regs_nodes): Ditto.
9863 (enumerate_object_hard_regs_nodes): Ditto.
9864 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9865 (object_hard_regs_subnode_t): Ditto.
9866 (struct object_hard_regs_subnode): Ditto.
9867 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9868 (setup_object_hard_regs_subnode_index): Ditto.
9869 (get_object_hard_regs_subnodes_num): Ditto.
9870 (form_object_hard_regs_nodes_forest): Ditto.
9871 (finish_object_hard_regs_nodes_tree): Ditto.
9872 (finish_object_hard_regs_nodes_forest): Ditto.
9873 (allocnos_have_intersected_live_ranges_p): Rename to
9874 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9875 (pseudos_have_intersected_live_ranges_p): Rename to
9876 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
9877 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9878 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9879 (update_copy_costs): Remove assert. Skip cost update if the hard
9880 reg does not belong the class.
9881 (assign_hard_reg): Process only profitable hard regs.
9882 (uncolorable_allocnos_num): Make it scalar.
9883 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9884 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
9885 and ira_reg_class_max_nregs.
9886 (bucket_allocno_compare_func): Check frequency first.
9887 (sort_bucket): Add compare function as a parameter.
9888 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
9889 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
9890 (push_allocno_to_stack): Rewrite for checking new allocno
9892 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
9893 (push_only_colorable): Pass new parameter to sort_bucket.
9894 (push_allocno_to_spill): Remove.
9895 (allocno_spill_priority_compare): Make it inline and rewrite.
9896 (splay_tree_allocate, splay_tree_free): Remove.
9897 (allocno_spill_sort_compare): New function.
9898 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
9899 build and use splay tree. Choose first allocno in uncolorable
9900 allocno bucket to spill. Remove setting spill cost.
9901 (all_conflicting_hard_regs): Remove.
9902 (setup_allocno_available_regs_num): Check only profitable hard
9903 regs. Print info about hard regs nodes.
9904 (setup_allocno_left_conflicts_size): Remove.
9905 (put_allocno_into_bucket): Don't call
9906 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
9907 (improve_allocation): New.
9908 (color_allocnos): Call setup_profitable_hard_regs,
9909 form_object_hard_regs_nodes_forest, improve_allocation,
9910 finish_object_hard_regs_nodes_forest. Setup spill cost.
9911 (print_loop_title): Use pressure classes.
9912 (color_allocnso): Ditto.
9913 (do_coloring): Remove allocation and freeing splay_tree_node_pool
9914 and allocnos_for_spilling.
9915 (ira_sort_regnos_for_alter_reg): Don't setup members
9916 {first,next}_coalesced_allocno.
9917 (color): Remove allocating and freeing removed_splay_allocno_vec.
9918 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
9919 prohibited_class_mode_regs.
9921 * ira-lives.c: Remove mentioning cover classes from the file. Fix
9923 (update_allocno_pressure_excess_length): Use pressure classes.
9924 (inc_register_pressure, dec_register_pressure): Check for pressure
9926 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
9927 pressure class. Use ira_reg_class_nregs instead of
9928 ira_reg_class_max_nregs.
9929 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
9930 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
9931 (single_reg_class): Use ira_reg_class_nregs instead of
9932 ira_reg_class_max_nregs.
9933 (process_bb_node_lives): Use pressure classes.
9935 * ira-emit.c: Remove mentioning cover classes from the file. Use
9936 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
9937 (change_loop): Use pressure classes.
9938 (modify_move_list): Call ira_set_allocno_class instead of
9939 ira_set_allocno_cover_class.
9941 * ira-build.c: Remove mentioning cover classes from the file. Use
9942 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
9943 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
9944 ALLOCNO_UPDATED_CLASS_COST instead of
9945 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
9946 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
9947 (ira_create_allocno): Remove initialization of
9948 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
9949 ALLOCNO_COLORABLE_P.
9950 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9951 Update conflict regs for the objects.
9952 (create_cap_allocno): Remove assert. Don't propagate
9953 ALLOCNO_AVAILABLE_REGS_NUM.
9954 (ira_free_allocno_costs): New function.
9955 (finish_allocno): Change a part of code into call of
9956 ira_free_allocno_costs.
9957 (low_pressure_loop_node_p): Use pressure classes.
9958 (object_range_compare_func): Don't compare classes.
9959 (setup_min_max_conflict_allocno_ids): Ditto.
9961 * loop-invariant.c: Remove mentioning cover classes from the file.
9962 Use ira_pressure_classes and ira_pressure_classes_num instead of
9963 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
9964 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
9965 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9966 Use reg_allocno_class instead of reg_cover_class.
9967 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
9968 STACK_REG_COVER_CLASS.
9969 (get_regno_cover_class): Rename to get_regno_pressure_class.
9970 (move_loop_invariants): Initialize and finalize regstat.
9972 * ira.c: Remove mentioning cover classes from the file. Add
9973 comments about coloring without cover classes. Use ALLOCNO_CLASS
9974 instead of ALLOCNO_COVER_CLASS. Fix formatting.
9975 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
9976 setup_class_subset_and_memory_move_costs.
9977 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
9978 (setup_cover_and_important_classes): Rename to
9979 setup_allocno_and_important_classes.
9980 (setup_class_translate_array): New.
9981 (setup_class_translate): Call it for allocno and pressure classes.
9982 (cover_class_order): Rename to allocno_class_order.
9983 (comp_reg_classes_func): Use ira_allocno_class_translate instead
9984 of ira_class_translate.
9985 (reorder_important_classes): Set up ira_important_class_nums.
9986 (setup_reg_class_relations): Set up ira_reg_class_superunion.
9987 (print_class_cover): Rename to print_classes. Add parameter.
9988 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9989 Print pressure classes too.
9990 (find_reg_class_closure): Rename to find_reg_classes. Don't call
9991 setup_reg_subclasses.
9992 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
9993 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
9994 (setup_prohibited_class_mode_regs): Use
9995 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
9996 (clarify_prohibited_class_mode_regs): New function.
9997 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
9998 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
9999 (ira_init_once): Initialize them.
10000 (free_register_move_costs): Process them.
10001 (ira_init): Move calls of find_reg_classes and
10002 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10003 Call clarify_prohibited_class_mode_regs.
10004 (ira_no_alloc_reg): Remove.
10005 (too_high_register_pressure_p): Use pressure classes.
10007 * sched-deps.c: Remove mentioning cover classes from the file.
10008 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10009 ira_pressure_classes and ira_pressure_classes_num instead of
10010 ira_reg_class_cover_size and ira_reg_class_cover.
10011 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10012 sched_regno_pressure_class instead of sched_regno_cover_class.
10013 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10014 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10016 * ira.h: Add 2010 to Copyright.
10017 (ira_no_alloc_reg): Remove external.
10018 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10019 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10020 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10021 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10022 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10023 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10024 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10025 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10026 x_ira_no_alloc_regs.
10027 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10028 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10029 ira_allocno_classes_num and ira_allocno_classes.
10030 (ira_class_translate): Rename to ira_allocno_class_translate.
10031 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10032 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10033 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10034 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10035 (ira_no_alloc_regs): New.
10037 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10038 classes from the file. Use ALLOCNO_CLASS instead of
10039 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10040 ALLOCNO_COVER_CLASS_COST.
10041 (regno_cover_class): Rename to regno_aclass.
10042 (record_reg_classes): Use ira_reg_class_subunion instead of
10043 ira_reg_class_union.
10044 (record_address_regs): Check overflow.
10045 (scan_one_insn): Ditto.
10046 (print_allocno_costs): Print total mem cost fore regional allocation.
10047 (print_pseudo_costs): Use REG_N_REFS.
10048 (find_costs_and_classes): Use classes intersected with them on the
10049 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10050 ira_reg_class_union. Use ira_allocno_class_translate and
10051 regno_aclass instead of ira_class_translate and regno_cover_class.
10052 Modify code for finding regno_aclass. Setup preferred classes for
10054 (setup_allocno_cover_class_and_costs): Rename to
10055 setup_allocno_class_and_costs. Use regno_aclass instead of
10056 regno_cover_class. Use ira_set_allocno_class instead of
10057 ira_set_allocno_cover_class.
10058 (init_costs, finish_costs): Use regno_aclass instead of
10060 (ira_costs): Use setup_allocno_class_and_costs instead of
10061 setup_allocno_cover_class_and_costs.
10062 (ira_tune_allocno_costs_and_cover_classes): Rename to
10063 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10064 by processing objects. Use ira_reg_class_max_nregs instead of
10065 ira_reg_class_nregs.
10067 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10069 * sched-int.h: Remove mentioning cover classes from the file.
10070 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10072 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10073 classes from the file.
10074 (struct reg_pref): Rename coverclass into allocnoclass.
10075 (reg_cover_class): Rename to reg_allocno_class.
10077 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10079 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10081 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10083 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10085 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10087 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10089 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10091 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10093 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10095 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10097 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10098 (i386_ira_cover_classes): Ditto.
10100 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10102 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10104 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10106 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10108 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10110 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10112 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10113 (mips_ira_cover_classes): Ditto.
10115 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10117 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10119 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10121 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10123 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10125 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10126 (IRA_COVER_CLASSES_VSX): Ditto.
10128 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10129 (rs6000_ira_cover_classes): Ditto.
10131 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10133 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10135 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10137 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10139 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10141 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10143 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10145 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10147 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10149 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10151 2011-03-29 Jakub Jelinek <jakub@redhat.com>
10154 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10155 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10156 dw_fde_unlikely_section_end_label, cold_in_std_section,
10157 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10158 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10160 (output_fde): Use dw_fde_second_{begin,end} if second is
10161 true, otherwise dw_fde_{begin,end}.
10162 (output_call_frame_info): Test dw_fde_second_begin != NULL
10163 instead of dw_fde_switched_sections.
10164 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10165 fields, initialize new fields. Initialize in_std_section
10166 unconditionally from the first partition.
10167 (dwarf2out_end_epilogue): Don't override dw_fde_end when
10168 dw_fde_second_begin is non-NULL.
10169 (dwarf2out_switch_text_section): Stop initializing removed
10170 dw_fde_struct fields, initialize new fields, initialize
10171 also dw_fde_end here. Set dw_fde_switch_cfi even when
10172 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
10173 (struct var_loc_list_def): Add last_before_switch field.
10174 (arange_table, arange_table_allocated, arange_table_in_use,
10175 ARANGE_TABLE_INCREMENT, add_arange): Removed.
10176 (size_of_aranges): Count !in_std_section and !second_in_std_section
10177 hunks in fdes, instead of looking at arange_table_in_use.
10178 (output_aranges): Add aranges_length argument, don't call
10179 size_of_aranges here. Instead of using aranges_table*
10180 emit ranges for fdes when !in_std_section resp.
10181 !second_in_std_section.
10182 (dw_loc_list): Break ranges crossing section switch.
10183 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
10184 use dw_fde_second_end instead of dw_fde_end as end of last range.
10185 (gen_subprogram_die): Don't call add_arange. Use
10186 dw_fde_{begin,end} for first partition and if switched
10187 section dw_fde_second_{begin,end} for the second.
10188 (var_location_switch_text_section_1,
10189 var_location_switch_text_section): New functions.
10190 (dwarf2out_begin_function): Initialize cold_text_section even
10191 when function_section () isn't text_section.
10192 (prune_unused_types): Don't walk arange_table.
10193 (dwarf2out_finish): Don't needlessly test
10194 flag_reorder_blocks_and_partition when testing cold_text_section_used.
10195 If info_section_emitted, call size_of_aranges and if it indicates
10196 non-empty .debug_aranges, call output_aranges with the computed
10197 size. Stop using removed dw_fde_struct fields, use
10198 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10202 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10203 create ENTRY_VALUE if incoming or address of incoming's MEM
10205 * dwarf2out.c (mem_loc_descriptor): Don't emit
10206 DW_OP_GNU_entry_value of DW_OP_fbreg.
10207 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10208 on ENTRY_VALUE is able to find the canonical parameter VALUE.
10209 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10210 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10212 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10213 is a REG_P or MEM_P with REG_P address, compute hash directly
10214 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10215 (preserve_only_constants): Don't clear VALUES forwaring
10216 ENTRY_VALUE to some other VALUE.
10218 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
10220 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10221 instead of GEN_INT.
10223 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10225 * cfgexpand.c (expand_gimple_cond): Always set the source location and
10226 block before expanding the statement.
10227 (expand_gimple_stmt_1): Likewise. Set them here...
10228 (expand_gimple_stmt): ...and not here. Tidy.
10229 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10232 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10234 * Makefile.in: New rule for cprop.o.
10235 * gcse.c: Move constant/copy propagation to cprop.c.
10236 (compute_local_properties): Only handle expression tables.
10237 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10238 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10239 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10240 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10241 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10242 compute_cprop_data, find_used_regs, try_replace_reg,
10243 find_avail_set, cprop_jump, constprop_register, cprop_insn,
10244 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10245 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10246 find_bypass_set, reg_killed_on_edge, bypass_block,
10247 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10248 execute_rtl_cprop, pass_rtl_cprop): Move to...
10249 * cprop.c: ...here. New file, constant/copy propagation for RTL
10250 moved from gcse.c to here with minor cleanups in duplicated code.
10252 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
10254 * config/i386/i386.c (flag_opts): Fix a typo in
10255 -mavx256-split-unaligned-store.
10257 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10259 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10260 LIBCALL_VALUE): Remove macros.
10261 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10262 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10263 (h8300_function_value, h8300_libcall_value,
10264 h8300_function_value_regno_p): New functions.
10266 2011-03-28 Anatoly Sokolov <aesok@post.ru>
10268 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10270 2011-03-28 Jeff Law <law@redhat.com>
10272 * tree-ssa-threadupdate.c (redirect_edges): Call
10273 create_edge_and_update_destination_phis as needed.
10274 (create_edge_and_update_destination_phis): Accept new BB argument.
10275 All callers updated.
10276 (thread_block): Do not update the profile when threading around
10277 intermediate blocks.
10278 (thread_single_edge): Likewise.
10279 (determine_bb_domination_status): If BB is not a successor of the
10280 loop header, return NONDOMINATING.
10281 (register_jump_thread): Note when we register a jump thread around
10282 an intermediate block.
10283 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10284 (thread_across_edge): Use it.
10286 2011-03-28 Tristan Gingold <gingold@adacore.com>
10288 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10289 when for_return is 2.
10291 2011-03-28 Jeff Law <law@redhat.com>
10293 * var-tracking.c (canonicalize_values_mark): Delete unused
10295 (canonicalize_values_star, set_variable_part): Likewise.
10296 (clobber_variable_part, delete_variable_part): Likewise.
10298 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
10300 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10302 2011-03-28 Martin Jambor <mjambor@suse.cz>
10304 * tree-inline.c (expand_call_inline): Do not check that destination
10306 (optimize_inline_calls): Assert that destination node is analyzed.
10307 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10308 not call tree_lowering_passes.
10309 * cgraph.h (cgraph_analyze_function): Declare.
10310 * cgraphunit.c (cgraph_analyze_function): Make public.
10312 2011-03-28 Joseph Myers <joseph@codesourcery.com>
10314 * config/sparc/sparc-opts.h: New.
10315 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10316 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10317 (sparc_option_override): Store processor_type enumeration rather
10318 than string in cpu_default. Remove name and enumeration from
10319 cpu_table. Directly default -mcpu then default -mtune from -mcpu
10320 without using sparc_select. Use target_flags_explicit instead of
10322 * config/sparc/sparc.h (enum processor_type): Move to
10324 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10325 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10326 HeaderInclude entry.
10327 (mcpu=, mtune=): Use Var and Enum.
10328 (sparc_processor_type): New Enum and EnumValue entries.
10330 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10331 Iain Sandoe <iains@gcc.gnu.org>
10334 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10336 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
10338 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10339 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10340 Insert new statements at it in lieu of STMT.
10341 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10342 * tree-vect-stmts.c (vectorizable_store): Likewise.
10343 (vectorizable_load): Likewise.
10345 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
10347 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10352 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10354 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10355 unaligned 256bit load/store.
10356 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10357 (*avx_movdqu<avxmodesuffix>): Likewise.
10359 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10362 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10363 * config/pa/pa.md (iordi3): Use new predicate in expander.
10364 (iorsi3): Likewise.
10366 2011-03-27 Anatoly Sokolov <aesok@post.ru>
10368 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10369 FUNCTION_VALUE_REGNO_P): Remove macros.
10370 * config/mips/mips-protos.h (mips_function_value): Remove.
10371 * config/mips/mips.c (mips_function_value): Rename to...
10372 (mips_function_value_1): ... this. Make static. Handle receiving
10373 the function type in 'fn_decl_or_type' argument.
10374 (mips_function_value, mips_libcall_value,
10375 mips_function_value_regno_p): New function.
10376 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10377 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10379 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
10381 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10382 and -mavx256-split-unaligned-store.
10383 (ix86_option_override_internal): Split 32-byte AVX unaligned
10384 load/store by default.
10385 (ix86_avx256_split_vector_move_misalign): New.
10386 (ix86_expand_vector_move_misalign): Use it.
10388 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10389 -mavx256-split-unaligned-store.
10391 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10392 256bit load/store. Generate unaligned store on misaligned memory
10394 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10396 (*avx_movdqu<avxmodesuffix>): Likewise.
10398 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10399 -mavx256-split-unaligned-store.
10401 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10404 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10407 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
10409 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10410 opno arguments with an expand_operand. Use create_input_operand.
10411 (mips_prepare_builtin_target): Delete.
10412 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10414 (mips_expand_builtin_direct): Use create_output_operand and
10415 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
10416 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
10417 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10419 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
10421 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10423 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10425 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
10427 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10428 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
10429 basic blocks and call commit_edge_insertions directly.
10430 (fixup_abnormal_edges): Move from here to...
10431 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
10432 on the edges and return whether some have actually been inserted.
10433 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10436 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
10438 PR rtl-optimization/48144
10439 * sel-sched-ir.c (merge_history_vect): Factor out from ...
10440 (merge_expr_data): ... here.
10441 (av_set_intersect): Rename to av_set_code_motion_filter.
10442 Update all callers. Call merge_history_vect when an expression
10443 is found in both sets.
10444 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10446 2011-03-26 Alan Modra <amodra@gmail.com>
10448 * config/rs6000/predicates.md (word_offset_memref_op): Handle
10449 cmodel medium addresses.
10450 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10451 64-bit gpr loads and stores.
10452 (rs6000_secondary_reload_ppc64): New function.
10453 * config/rs6000/rs6000-protos.h: Declare it.
10454 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10456 2011-03-26 Alan Modra <amodra@gmail.com>
10459 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10460 GNU Go in traceback table.
10462 2011-03-25 Richard Henderson <rth@redhat.com>
10464 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10465 if there are exactly 6 operands.
10466 (set_storage_via_setmem): Similarly.
10468 2011-03-25 Kai Tietz <ktietz@redhat.com>
10470 * collect2.c (write_c_file_stat): Handle backslash
10471 as right-hand directory separator.
10472 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10473 checking just for slash.
10474 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10475 instead of checking for trailing slash.
10476 * gcc.c (record_temp_file): Use filename_cmp instead
10478 (do_spec_1): Likewise.
10479 (replace_outfile_spec_function): Likewise.
10480 (is_directory): Use filename_ncmp instead of strncmp.
10481 (print_multilib_info): Likewise.
10482 * gcov.c (find_source): Use filename_cmp instead
10484 (make_gcov_file_name): Fix order of slash/backslash
10486 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10487 (add_standard_paths): Likewise.
10488 * mips-tfile.c (saber_stop): Handle backslash.
10489 * prefix.c (update_path): Use filename_ncmp instead of
10491 * profile.c (output_location): Use filename_cmp instead
10493 * read-md.c (handle_toplevel_file): Handle backslash.
10494 * tlink.c (frob_extension): Likewise.
10495 * tree-cfg.c (same_line_p): Use filename_cmp instead of
10497 * tree-dump.c (dequeue_and_dump): Handle backslash.
10498 * tree.c (get_file_function_name): Likewise.
10499 * gengtype.c (read_input_list): Likewise.
10500 (get_file_realbasename): Likewise.
10501 (get_output_file_with_visibility): Use filename_cmp
10504 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
10506 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10509 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10511 * fold-const.c (expr_location_or): New function.
10512 (fold_truth_not_expr): Call it.
10514 2011-03-25 Jeff Law <law@redhat.com>
10516 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10518 * c-family/c-common.c (def_fn_type): Likewise.
10519 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10520 * emit-rtl.c (gen_rtvec): Likewise.
10521 * lto/lto-lang.c (def_fn_type): Likewise.
10523 2011-03-25 Richard Guenther <rguenther@suse.de>
10525 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10526 also generate copies.
10527 (fini_copy_prop): Handle constant values properly.
10529 2011-03-25 Jakub Jelinek <jakub@redhat.com>
10531 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10532 mode size instead of bitsize with DWARF2_ADDR_SIZE.
10533 (hash_loc_operands, compare_loc_operands): Handle
10534 DW_OP_GNU_entry_value.
10536 2011-03-25 Kai Tietz <ktietz@redhat.com>
10538 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10539 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10540 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10541 comment and use macro TARGET_64BIT_MS_ABI instead.
10542 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10543 and change default behavior for 32-bit MS_ABI.
10544 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10545 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10547 (ix86_cfun_abi): Likewise.
10548 (ix86_maybe_switch_abi): Adjust comment.
10549 (init_cumulative_args): Check for bit-ness in MS_ABI case.
10550 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10551 instead of checking for SYSV_ABI.
10552 (ix86_nsaved_sseregs): Likewise.
10553 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10555 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10556 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10557 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10558 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10559 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10561 2011-03-25 Richard Guenther <rguenther@suse.de>
10563 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10564 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10565 (verify_gimple): Remove.
10566 * tree-cfg.c (verify_gimple_call): Merge verification
10568 (verify_gimple_phi): Merge verification from verify_stmts.
10569 (verify_gimple_label): New function.
10570 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10571 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10572 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10573 (verify_stmts): Rename to verify_gimple_in_cfg.
10574 (verify_gimple_in_cfg): New function.
10575 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10576 * tree-ssa.c (verify_ssa): Likewise.
10577 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10579 2011-03-25 Richard Guenther <rguenther@suse.de>
10581 * passes.c (init_optimization_passes): Add FRE pass after
10584 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
10585 Andrew Stubbs <ams@codesourcery.com>
10587 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10589 (arm_movdi_vfp_cortexa8): New pattern.
10590 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10591 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10592 instructions when tuning for Cortex-A8. Set attribute "arch".
10593 * config/arm/arm.md: Move include arm-tune.md up a bit.
10594 (define_attr "arch"): Add "onlya8" and "nota8" values.
10595 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10597 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
10601 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10603 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10604 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10605 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10606 * passes.c (init_optimization_passes): Move
10607 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10609 2011-03-25 Kai Tietz <ktietz@redhat.com>
10611 * c-typeck.c (comptypes_internal): Replace target
10612 hook call of comp_type_attributes by version in tree.c file.
10613 * gimple.c (gimple_types_compatible_p_1): Likewise.
10614 * tree-ssa.c (useless_type_conversion_p): Likewise.
10615 * tree.c (build_type_attribute_qual_variant): Likewise.
10616 (attribute_value_equal): New static helper function.
10617 (comp_type_attributes): New function.
10618 (merge_attributes): Use attribute_value_equal for comparison.
10619 (attribute_list_contained): Likewise.
10620 * tree.h (comp_type_attributes): New prototype.
10622 2011-03-25 Richard Guenther <rguenther@suse.de>
10624 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10625 of complex types at -O0.
10626 (verify_gimple_assign_binary): Likewise.
10627 (verify_gimple_assign_ternary): Likewise.
10629 2011-03-24 Mark Wielaard <mjw@redhat.com>
10631 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10632 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10634 2011-03-24 Mark Wielaard <mjw@redhat.com>
10637 * dwarf2out.c (output_abbrev_section): Only write table when
10638 abbrev_die_table_in_use > 1.
10640 2011-02-24 Richard Henderson <rth@redhat.com>
10642 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10643 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10644 (alpha_expand_unaligned_load_words): Use extql.
10645 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10646 (emit_insxl): Handle all modes for consistency.
10648 2011-02-24 Richard Henderson <rth@redhat.com>
10650 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10651 (alpha_expand_unaligned_load): Likewise.
10652 (alpha_expand_unaligned_store): Likewise.
10653 (alpha_expand_unaligned_load_words): Likewise.
10654 (alpha_expand_unaligned_store_words): Likewise.
10655 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10656 (alpha_split_lock_test_and_set_12): Likewise.
10657 (print_operand, alpha_fold_builtin_extxx): Likewise.
10658 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10659 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10660 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10661 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10662 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10663 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10664 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10665 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10666 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10667 (extwl, extll, extql): Similarly.
10668 (inswh, inslh, insqh): Similarly.
10669 (mskbl, mskwl, mskll, mskql): Similarly.
10670 (mskwh, msklh, mskqh): Similarly.
10672 2011-02-24 Richard Henderson <rth@redhat.com>
10674 * config/alpha/alpha.md (attribute isa): Add er, ner.
10675 (attribute enabled): Handle them.
10676 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10678 2011-02-24 Richard Henderson <rth@redhat.com>
10680 * config/alpha/alpha.md (attribute isa): Add vms.
10681 (attribute enabled): Handle it.
10682 (*movsf): Merge *movsf_{nofix,fix,nofp}.
10683 (*movdf): Merge *movdf_{nofix,fix,nofp}.
10684 (*movtf): Rename from *movtf_internal for consistency.
10685 (*movsi): Merge with *movsi_nt_vms.
10686 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10687 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10688 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10689 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10691 2011-02-24 Richard Henderson <rth@redhat.com>
10693 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10694 (extendqisi2, extendhisi2): Likewise.
10695 (extendqidi2): Simplify BWX/non-BWX expansions.
10696 (extendhidi2): Similarly.
10698 2011-02-24 Richard Henderson <rth@redhat.com>
10700 * config/alpha/alpha.md (attribute isa): New.
10701 (attribute enabled): New.
10702 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10703 (zero_extendqisi2, zero_extendqidi2): Similarly.
10704 (zero_extendhisi2, zero_extendhidi2): Similarly.
10705 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10707 2011-02-24 Richard Henderson <rth@redhat.com>
10709 * config/alpha/predicates.md (input_operand): Revert last change;
10710 update comment to mention 32-bit VMS rather than Windows.
10712 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10714 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10715 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
10716 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10717 * passes.c (init_optimization_passes): Move
10718 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10720 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10722 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10724 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10726 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10729 2011-03-24 Jakub Jelinek <jakub@redhat.com>
10732 * simplify-rtx.c (simplify_const_unary_operation): Call
10733 real_convert when changing mode class with FLOAT_EXTEND.
10735 2011-03-24 Nick Clifton <nickc@redhat.com>
10737 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10738 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10739 * config/rx/rx.c (rx_option_override): Set align_jumps,
10740 align_loops and align_labels if not set by the user.
10741 (rx_align_for_label): New function.
10742 (rx_max_skip_for_label): New function.
10743 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10744 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10745 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10746 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10747 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10749 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10751 PR rtl-optimization/48263
10752 * optabs.c (expand_binop_directly): Reinstate convert_modes code
10753 and original commutative_p handling. Use maybe_gen_insn.
10755 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10757 * reload.c (find_reloads_subreg_address): Add address_reloaded
10758 parameter and return true there if the full address has been
10760 (find_reloads_toplev): Pass address_reloaded flag.
10761 (find_reloads_address_1): Don't use address_reloaded parameter.
10763 2011-03-24 Jeff Law <law@redhat.com>
10765 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10766 unused variable "ann".
10767 (remove_unused_locals): Likewise.
10769 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10772 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10775 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10777 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10778 for invalid symbolic addresses.
10779 (s390_secondary_reload): Don't use s390_check_symref_alignment for
10782 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10784 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10785 the argument in calls to fold_truth_not_expr.
10787 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10789 * tree.c (record_node_allocation_statistics): New function.
10790 (make_node_stat, copy_node_stat, build_string): Call it.
10791 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10792 (build1_stat, build_omp_clause): Likewise.
10794 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10796 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10799 2011-03-24 Richard Guenther <rguenther@suse.de>
10801 PR tree-optimization/48271
10802 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10803 blocks that still exist.
10805 2011-03-24 Richard Guenther <rguenther@suse.de>
10807 PR tree-optimization/48270
10808 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10809 not free datarefs before ddrs.
10811 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
10813 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10814 from the address built for a reference with variable offset.
10816 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
10819 * config/i386/i386.md (*movdf_internal_rex64): Do not split
10820 alternatives that can be handled with movq or movabsq insn.
10821 (*movdf_internal): Disable for !TARGET_64BIT.
10822 (*movdf_internal_nointeger): Ditto.
10823 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10825 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
10827 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10828 (FUNCTION_ARG_ADVANCE): Likewise.
10829 * tm.texi.in: Change references to them to hook references.
10830 * tm.texi: Regenerate.
10831 * targhooks.c (default_function_arg): Eliminate check for target macro.
10832 (default_function_incoming_arg): Likewise.
10833 (default_function_arg_advance): Likewise.
10834 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10835 (function_arg_advance): Likewise.
10836 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10838 2011-03-24 Richard Guenther <rguenther@suse.de>
10840 PR middle-end/48269
10841 * tree-object-size.c (addr_object_size): Do not double-account
10842 for MEM_REF offsets.
10844 2011-03-24 Diego Novillo <dnovillo@google.com>
10846 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10847 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10848 (lto_input_data_block): Move from lto-opts.c. Make extern.
10850 (lto_input_string): Rename from input_string. Make extern.
10852 * lto-streamer-out.c (lto_output_string_with_length): Rename from
10853 output_string_with_length.
10854 Output 0 to indicate a non-NULL string. Update all callers to
10856 (lto_output_string): Rename from output_string. Make extern.
10858 (lto_output_decl_state_streams): Make extern.
10859 (lto_output_decl_state_refs): Make extern.
10860 * lto-streamer.h (lto_input_string): Declare.
10861 (lto_input_data_block): Declare.
10862 (lto_output_string): Declare.
10863 (lto_output_string_with_length): Declare.
10864 (lto_output_decl_state_streams): Declare.
10865 (lto_output_decl_state_refs): Declare.
10867 2011-03-24 Richard Guenther <rguenther@suse.de>
10869 PR tree-optimization/46562
10870 * tree.c (build_invariant_address): New function.
10871 * tree.h (build_invariant_address): Declare.
10872 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10873 a renamed function moved ...
10874 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10875 Take valueization callback parameter.
10876 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10877 * gimple-fold.h: New file.
10878 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10879 (ccp_fold, fold_const_aggregate_ref,
10880 fold_ctor_reference, fold_nonarray_ctor_reference,
10881 fold_array_ctor_reference, fold_string_cst_ctor_reference,
10882 get_base_constructor): Move ...
10883 * gimple-fold.c: ... here.
10884 (gimple_fold_stmt_to_constant_1): New function
10885 split out from ccp_fold. Take a valueization callback parameter.
10886 Valueize all operands.
10887 (gimple_fold_stmt_to_constant): New wrapper function.
10888 (fold_const_aggregate_ref_1): New function split out from
10889 fold_const_aggregate_ref. Take a valueization callback parameter.
10890 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
10891 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
10892 invariant POINTER_PLUS_EXPRs to invariant form.
10893 (vn_valueize): New function.
10894 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
10895 * tree-vrp.c (vrp_valueize): New function.
10896 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
10897 to fold statements to constants.
10898 * tree-ssa-pre.c (eliminate): Properly guard propagation of
10899 function declarations.
10900 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
10901 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
10903 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
10905 * config/h8300/predicates.md (jump_address_operand): Fix register
10908 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
10910 * doc/invoke.texi (max-stores-to-sink): Document.
10911 * params.h (MAX_STORES_TO_SINK): Define.
10912 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
10913 if either vectorization or if-conversion is disabled.
10914 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
10915 tree-vect-data-refs.c vect_equal_offsets.
10916 (dr_equal_offsets_p): New function.
10917 (find_data_references_in_bb): Remove static.
10918 * tree-data-ref.h (find_data_references_in_bb): Declare.
10919 (dr_equal_offsets_p): Likewise.
10920 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
10921 (vect_drs_dependent_in_basic_block): Update calls to
10922 vect_equal_offsets.
10923 (vect_check_interleaving): Likewise.
10924 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
10925 (cond_if_else_store_replacement): Rename to...
10926 (cond_if_else_store_replacement_1): ... this. Change arguments and
10928 (cond_if_else_store_replacement): New function.
10929 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
10930 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
10932 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
10935 * config/arm/arm.md (casesi): Use the gen_int_mode() function
10936 to subtract lower bound instead of GEN_INT().
10938 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
10943 * doc/extend.texi (Alignment): Move section to match order in TOC.
10944 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
10945 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
10947 2011-03-23 Jeff Law <law@redhat.com>
10949 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
10950 before removing the edge.
10952 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
10953 it may have been freed by redirect_branch_edge or
10954 redirect_edge_succ_nodup.
10956 2011-03-23 Richard Guenther <rguenther@suse.de>
10958 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
10959 (check_va_list_escapes): Likewise.
10960 (check_all_va_list_escapes): Likewise.
10962 2011-03-23 Richard Guenther <rguenther@suse.de>
10964 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
10965 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
10966 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
10967 (alias.o): Likewise.
10968 (ipa-type-escape.o): Remove.
10969 (ipa-struct-reorg.o): Likewise.
10970 (GTFILES): Remove ipa-struct-reorg.c.
10971 * alias.c: Do not include ipa-type-escape.h.
10972 * tree-ssa-alias.c: Likewise.
10973 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
10974 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
10975 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
10976 and ipa-type-escape passes.
10977 * tree-pass.h (pass_ipa_type_escape): Remove.
10978 (pass_ipa_struct_reorg): Likewise.
10979 * ipa-struct-reorg.h: Remove.
10980 * ipa-struct-reorg.c: Likewise.
10981 * ipa-type-escape.h: Likewise.
10982 * ipa-type-escape.c: Likewise.
10983 * doc/invoke.texi (-fipa-struct-reorg): Remove.
10984 (--param struct-reorg-cold-struct-ratio): Likewise.
10985 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10986 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
10987 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
10989 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10991 * config/s390/2084.md: Enable all insn reservations also for z9_ec
10992 cpu attribute value.
10993 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
10994 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
10995 * config/s390/s390.c (processor_flags_table): New constant array.
10996 (s390_handle_arch_option): Remove.
10997 (s390_handle_option): Remove s390_handle_arch_option invocations
10998 and OPT_mwarn_framesize_ handling.
10999 (s390_option_override): Remove s390_handle_arch_option invocation.
11000 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11002 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11003 * config/s390/s390.opt (s390_tune, s390_arch)
11004 (march=): Replace s390_arch_option enum and values with
11005 processor_type. Set variable name to s390_arch. Set
11006 initialization value.
11007 (mtune=): Replace s390_arch_option with processor_type. Set
11008 variable name to s390_tune. Set initialization value.
11010 2011-03-23 Julian Brown <julian@codesourcery.com>
11012 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11013 accesses which are not naturally aligned.
11015 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11018 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11020 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11022 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11023 parameter from "int" to "enum insn_code".
11024 (expand_operand_type): New enum.
11025 (expand_operand): New structure.
11026 (create_expand_operand): New function.
11027 (create_fixed_operand, create_output_operand): Likewise
11028 (create_input_operand, create_convert_operand_to): Likewise.
11029 (create_convert_operand_from, create_address_operand): Likewise.
11030 (create_integer_operand): Likewise.
11031 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11032 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11033 (expand_insn, expand_jump_insn): Likewise.
11034 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11035 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11036 (expand_movstr, expand_builtin___clear_cache): Likewise.
11037 (expand_builtin_lock_release): Likewise.
11038 * explow.c (allocate_dynamic_stack_space): Likewise.
11039 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11040 and use the default handling in that case.
11041 * expmed.c (check_predicate_volatile_ok): Delete.
11042 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11043 (emit_cstore): Likewise.
11044 * expr.c (emit_block_move_via_movmem): Likewise.
11045 (set_storage_via_setmem, expand_assignment): Likewise.
11046 (emit_storent_insn, try_casesi): Likewise.
11047 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11048 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11049 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11050 (expand_twoval_unop, expand_twoval_binop): Likewise.
11051 (expand_unop_direct, emit_indirect_jump): Likewise.
11052 (emit_conditional_move, vector_compare_rtx): Likewise.
11053 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11054 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11055 (expand_sync_lock_test_and_set): Likewise.
11056 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11057 (emit_unop_insn): Likewise.
11058 (expand_copysign_absneg): Change icode to an insn_code.
11059 (create_convert_operand_from_type): New function.
11060 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11061 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11062 (expand_insn, expand_jump_insn): Likewise.
11063 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11064 than const_int_operand for operand 2.
11066 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11068 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11071 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11073 * emit-rtl.c (emit_pattern_before_noloc): New function.
11074 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11075 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11076 (emit_pattern_after_noloc): New function.
11077 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11078 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11080 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11082 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11083 (__ffsDI2): Likewise.
11085 2011-03-22 Richard Henderson <rth@redhat.com>
11087 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11088 of !TARGET_ABI_OPEN_VMS.
11089 (alpha_trampoline_init, alpha_start_function): Likewise.
11090 (alpha_expand_epilogue, alpha_file_start): Likewise.
11091 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11092 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11093 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11094 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11095 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11097 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11099 * config/s390/s390-opts.h: New.
11100 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11101 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11102 s390_stack_guard): Remove.
11103 (s390_handle_arch_option): Return void. Take enum
11104 s390_arch_option value instead of string and searching array.
11105 (s390_handle_option): Don't assert that global structures are in
11106 use. Access variables via opts pointer. Use error_at. Don't use
11107 sscanf for -mstack-guard= or -mstack-size=. Update call to
11108 s390_handle_arch_option.
11109 (s390_option_override): Update call to s390_handle_arch_option.
11110 (s390_emit_prologue): Use %d format for s390_stack_size in
11111 diagnostic. Use %wd for HOST_WIDE_INT.
11112 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11113 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11114 * config/s390/s390.opt (config/s390/s390-opts.h): New
11115 HeaderInclude entry.
11116 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11117 s390_arch_flags, s390_warn_framesize): New Variable entries.
11118 (s390_arch_option): New Enum and EnumValue entries.
11119 (march=): Use Enum instead of Var.
11120 (mstack-guard=, mstack-size=): Use UInteger and Var.
11121 (mtune=): Use Enum.
11123 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11125 * config/score/score.c (score_handle_option): Don't assert that
11126 global structures are in use. Access target_flags via opts
11127 pointer. Use value of -march= option to determine target_flags
11129 * config/score/score.opt (march=): Use Enum.
11130 (score_arch): New Enum and EnumValue entries.
11132 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11134 * config/mep/mep.c (option_mtiny_specified): Remove.
11135 (mep_option_override): Move register handling for -mivc2 from
11136 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11137 instead of option_mtiny_specified.
11138 (mep_handle_option): Access target_flags via opts pointer. Don't
11139 assert that global structures are in use. Defer part of -mivc2
11140 handling and move it to mep_option_override.
11141 * config/mep/mep.opt (IVC2): New Mask entry.
11142 (mivc2): Use Var and Defer instead of Mask.
11144 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11146 * config/v850/v850-opts.h: New.
11147 * config/v850/v850.c (small_memory): Replace with
11148 small_memory_physical_max array. Make that array static const.
11149 (v850_handle_memory_option): Take integer value of argument. Take
11150 gcc_options pointer, option text and location. Return void.
11151 Update for changes to small memory structures.
11152 (v850_handle_option): Access target_flags via opts pointer. Don't
11153 assert that global structures are in use. Update calls to
11154 v850_handle_memory_option.
11155 (v850_encode_data_area): Update references to small memory settings.
11156 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11157 (enum small_memory_type): Move to v850-opts.h.
11158 * config/v850/v850.opt (config/v850/v850-opts.h): New
11159 HeaderInclude entry.
11160 (small_memory_max): New Variable entry.
11161 (msda): Replace by pair of options msda= and msda-. Use UInteger.
11162 (mtda, mzda): Likewise.
11164 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11166 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11167 pointer. Don't assert that global structures are in use.
11169 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11171 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11172 via opts pointer. Don't assert that global structures are in use.
11174 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11176 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11177 (munix=93): Use Var.
11178 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11179 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11180 * config/pa/pa-opts.h: New.
11181 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11182 (pa_handle_option): Don't assert that global structures are in
11183 use. Access target_flags via opts pointer. Don't handle
11184 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11186 (pa_option_override): Handle deferred OPT_mfixed_range_.
11188 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11190 * config/mn10300/mn10300-opts.h: New.
11191 * config/mn10300/mn10300.c (mn10300_processor,
11192 mn10300_tune_string): Remove.
11193 (mn10300_handle_option): Don't assert that global structures are
11194 in use. Access mn10300_processor via opts pointer. Don't handle
11196 * config/mn10300/mn10300.h (enum processor_type): Move to
11198 (mn10300_processor): Remove.
11199 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11200 HeaderInclude entry.
11201 (mn10300_processor): New Variable entry.
11204 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11206 * config/microblaze/microblaze.c: Don't include opts.h.
11207 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11208 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11209 (mno-clearbss): Use Var and Warn.
11211 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11213 * config/m32r/m32r-opts.h: New.
11214 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11215 (m32r_handle_option): Don't assert that global structures are in
11216 use. Access target_flags and m32r_cache_flush_func via opts
11217 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
11218 OPT_mno_flush_trap here.
11219 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11220 include of m32r-opts.h.
11221 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11222 HeaderInclude entry.
11223 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11224 (mmodel=): Use Enum and Var.
11225 (m32r_model): New Enum and EnumValue entries.
11226 (mno-flush-trap): Use Var.
11227 (msdata=): Use Enum and Var.
11228 (m32r_sdata): New Enum and EnumValue entries.
11230 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11232 * config/m32c/m32c.c: Don't include opts.h.
11233 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11234 m32c_handle_option): Remove.
11235 (m32c_option_override): Check global_options_set.x_target_memregs
11236 instead of target_memregs_set.
11237 * config/m32c/m32c.h (target_memregs): Remove.
11238 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11241 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11243 * config/iq2000/iq2000-opts.h: New.
11244 * config/iq2000/iq2000.c: Don't include opts.h.
11245 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11246 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11247 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11248 HeaderInclude entry.
11249 (iq2000_tune): New Variable entry.
11250 (march=): Add comment. Use Enum.
11251 (iq2000_arch): New Enum and EnumValue entries.
11252 (mcpu=): Use Enum and Var.
11253 (iq2000_tune): New Enum and EnumValue entries.
11255 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11257 * config/ia64/ia64-opts.h: New.
11258 * config/ia64/ia64.c (ia64_tune): Remove.
11259 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11260 here. Use error_at.
11261 (ia64_option_override): Handle deferred OPT_mfixed_range_.
11262 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11263 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11264 HeaderInclude entry.
11265 (ia64_tune): New Variable entry.
11266 (mfixed-range=): Use Defer and Var.
11267 (mtune=): Use Enum and Var.
11268 (ia64_tune): New Enum and EnumValue entries.
11270 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11272 * config/frv/frv-opts.h: New.
11273 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11275 (frv_cpu_type): Remove.
11276 * config/frv/frv.c: Don't include opts.h.
11277 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11278 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11279 (frv_cpu_type): New Variable entry.
11280 (frv_cpu): New Enum and EnumValue entries.
11282 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11284 * config/cris/cris.c (cris_handle_option): Access target_flags via
11285 opts pointer. Don't assert that global structures are in use.
11286 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11287 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11289 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11291 * config/bfin/bfin-opts.h: New.
11292 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11293 bfin_si_revision, bfin_workarounds): Remove.
11294 (bfin_cpus): Make static const.
11295 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11296 not bfin_lib_id_given.
11297 (bfin_handle_option): Don't set bfin_lib_id_given. Access
11298 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11299 pointer. Use error_at. Don't assert that global structures are in use.
11300 * config/bfin/bfin.h: Include bfin-opts.h.
11301 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11302 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11303 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11304 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11307 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11309 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11310 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11311 or -msoft-float here.
11312 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11313 -msoft-float and -mhard-float.
11314 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11315 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11317 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11319 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11320 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11322 (LIBGCC_SPEC): Don't handle -msoft-float.
11323 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11325 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11327 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11328 -mfloat-abi=*, not -msoft-float and -mhard-float.
11329 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11331 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11332 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11333 mhard-float and msoft-float.
11334 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11335 mfloat-abi=soft in comments, not mhard-float and msoft-float.
11336 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11337 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11339 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11340 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11342 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11344 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11347 2011-03-22 Richard Henderson <rth@redhat.com>
11349 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11350 TARGET_ABI_WINDOWS_NT.
11351 (alpha_output_function_end_prologue): Likewise.
11352 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11353 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11354 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11355 (trap, *movsi_nt_vms): Likewise.
11356 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11357 (*tablejump_osf_nt_internal): Remove.
11358 * config/alpha/predicates.md (input_operand): Only test Pmode.
11360 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11362 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11363 via opts pointer. Use error_at. Don't assert that global
11364 structures are in use.
11366 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11368 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11369 (ix86_handle_option): Access ix86_isa_flags and
11370 ix86_isa_flags_explicit via opts pointer. Don't assert that
11371 global structures are in use.
11372 (ix86_function_specific_save, ix86_function_specific_restore):
11373 Update ix86_isa_flags_explicit field name.
11374 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11375 (ix86_isa_flags_explicit): Rename TargetSave entry to
11376 x_ix86_isa_flags_explicit.
11378 2011-03-22 Richard Henderson <rth@redhat.com>
11380 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11381 (alpha_option_override, direct_return): Likewise.
11382 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11383 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11384 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11385 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11386 (alpha_expand_epilogue, alpha_end_function): Likewise.
11387 (alpha_init_libfuncs): Likewise.
11388 (struct machine_function): Remove unicosmk members.
11389 (print_operand) ['t']: Remove.
11390 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11391 unicosmk_output_module_name, unicosmk_output_common,
11392 current_section_align, unicosmk_output_text_section_asm_op,
11393 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11394 unicosmk_section_type_flags, unicosmk_unique_section,
11395 unicosmk_asm_named_section, unicosmk_insert_attributes,
11396 unicosmk_output_align, unicosmk_defer_case_vector,
11397 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11398 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11399 unicosmk_output_ssib, unicosmk_add_call_info_word,
11400 unicosmk_extern_head, unicosmk_output_default_externs,
11401 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11402 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11403 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11404 * config/alpha/alpha-protos.h: Update.
11405 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11406 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11407 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11408 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11409 (*mulsi_se, mulvsi3): Likewise.
11410 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11411 (*divmodsi_internal, call, call_value, realign): Likewise.
11412 (moddi3, umoddi3): Likewise; remove duplicate expander.
11413 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11414 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11415 (*movdi_nofix): Remove r/U alternative.
11416 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11417 * config/alpha/constraints.md ("U"): Remove.
11418 * config/alpha/predicates.md (call_operand"): Don't test
11419 TARGET_ABI_UNICOSMK.
11421 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11423 * target.def (handle_option): Take gcc_options and
11424 cl_decoded_option pointers and location_t.
11425 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11426 * doc/tm.texi: Regenerate.
11427 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11428 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11429 * lto-opts.c (lto_reissue_options): Generate option structure for
11430 targetm.handle_option call.
11431 * opts.c (target_handle_option): Update call to
11432 targetm.handle_option. Remove assertions about values now passed
11434 * targhooks.c (default_target_handle_option): New.
11435 * targhooks.h (default_target_handle_option): Declare.
11436 * config/alpha/alpha.c: Include opts.h.
11437 (alpha_handle_option): Update to new hook interface.
11438 * config/arm/arm.c: Include opts.h.
11439 (arm_handle_option): Update to new hook interface.
11440 * config/arm/t-arm (arm.o): Update dependencies.
11441 * config/bfin/bfin.c: Include opts.h.
11442 (bfin_handle_option): Update to new hook interface.
11443 * config/cris/cris.c: Include opts.h.
11444 (cris_handle_option): Update to new hook interface.
11445 * config/frv/frv.c: Include opts.h.
11446 (frv_handle_option): Update to new hook interface.
11447 * config/i386/i386.c: Include opts.h.
11448 (ix86_handle_option): Update to new hook interface.
11449 (ix86_valid_target_attribute_inner_p): Generate option structure
11450 for call to ix86_handle_option.
11451 * config/i386/t-i386 (i386.o): Update dependencies.
11452 * config/ia64/ia64.c: Include opts.h.
11453 (ia64_handle_option): Update to new hook interface.
11454 * config/ia64/t-ia64 (ia64.o): Update dependencies.
11455 * config/iq2000/iq2000.c: Include opts.h.
11456 (iq2000_handle_option): Update to new hook interface.
11457 * config/m32c/m32c.c: Include opts.h.
11458 (m32c_handle_option): Update to new hook interface.
11459 * config/m32r/m32r.c: Include opts.h.
11460 (m32r_handle_option): Update to new hook interface.
11461 * config/m68k/m68k.c: Include opts.h.
11462 (m68k_handle_option): Update to new hook interface.
11463 * config/mep/mep.c: Include opts.h.
11464 (mep_handle_option): Update to new hook interface.
11465 * config/microblaze/microblaze.c: Include opts.h.
11466 (microblaze_handle_option): Update to new hook interface.
11467 * config/mips/mips.c: Include opts.h.
11468 (mips_handle_option): Update to new hook interface.
11469 * config/mn10300/mn10300.c: Include opts.h.
11470 (mn10300_handle_option): Update to new hook interface.
11471 * config/pa/pa.c: Include opts.h.
11472 (pa_handle_option): Update to new hook interface.
11473 * config/pdp11/pdp11.c: Include opts.h.
11474 (pdp11_handle_option): Update to new hook interface.
11475 * config/rs6000/rs6000.c: Include opts.h.
11476 (rs6000_handle_option): Update to new hook interface.
11477 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11478 * config/rx/rx.c: Include opts.h.
11479 (rx_handle_option): Update to new hook interface.
11480 * config/s390/s390.c: Include opts.h.
11481 (s390_handle_option): Update to new hook interface.
11482 * config/score/score.c: Include opts.h.
11483 (score_handle_option): Update to new hook interface.
11484 * config/sh/sh.c: Include opts.h.
11485 (sh_handle_option): Update to new hook interface.
11486 * config/sparc/sparc.c: Include opts.h.
11487 (sparc_handle_option): Update to new hook interface.
11488 * config/v850/v850.c: Include opts.h.
11489 (v850_handle_option): Update to new hook interface.
11491 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11493 * gcc.c (driver_unknown_option_callback): Only permit and save
11494 unknown -Wno- options.
11495 (driver_wrong_lang_callback): Save options directly instead of via
11496 driver_unknown_option_callback.
11498 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11500 * combine.c (simplify_set): Try harder to find the best CC mode when
11501 simplifying a nested COMPARE on the RHS.
11503 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11505 * config/alpha/gnu.h: Remove.
11506 * config/arc: Remove directory.
11507 * config/arm/netbsd.h: Remove.
11508 * config/arm/t-pe: Remove.
11509 * config/crx: Remove directory.
11510 * config/i386/netbsd.h: Remove.
11511 * config/m68hc11: Remove directory.
11512 * config/m68k/uclinux-oldabi.h: Remove.
11513 * config/mcore/mcore-pe.h: Remove.
11514 * config/mcore/t-mcore-pe: Remove.
11515 * config/netbsd-aout.h: Remove.
11516 * config/rs6000/gnu.h: Remove.
11517 * config/sh/sh-symbian.h: Remove.
11518 * config/sh/symbian-base.c: Remove.
11519 * config/sh/symbian-c.c: Remove.
11520 * config/sh/symbian-cxx.c: Remove.
11521 * config/sh/symbian-post.h: Remove.
11522 * config/sh/symbian-pre.h: Remove.
11523 * config/sh/t-symbian: Remove.
11524 * config/svr3.h: Remove.
11525 * config/vax/netbsd.h: Remove.
11526 * config.build: Don't handle i[34567]86-*-pe.
11527 * config.gcc: Remove handling of deprecations for most deprecated
11529 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11530 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11531 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11532 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11533 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11534 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11536 * config.host: Don't handle i[34567]86-*-pe.
11537 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11538 (ASM_SPEC32): Don't handle -mcall-gnu.
11539 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11541 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11542 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11543 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11544 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11545 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11546 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11547 conditional on SYMBIAN.
11548 * configure.ac: Don't handle powerpc*-*-gnu*.
11549 * configure: Regenerate.
11550 * doc/extend.texi (interrupt attribute): Don't mention CRX.
11551 * doc/install-old.texi (m6811, m6812): Don't mention.
11552 * doc/install.texi (arc-*-elf*): Don't document multilib option.
11553 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11554 (m68k-uclinuxoldabi): Don't mention.
11555 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11557 (-mcall-gnu): Remove.
11558 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11559 families): Remove constraint documentation.
11561 2011-03-22 Marius Strobl <marius@FreeBSD.org>
11563 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11564 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11565 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11567 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11570 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11571 vector when peeking at the next token for vector, don't expand the
11574 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
11576 * config/avr/avr-protos.h (expand_epilogue): Change prototype
11577 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11578 * config/avr/avr.c (init_cumulative_args)
11579 (avr_function_arg_advance): Use it.
11580 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11582 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11583 (avr_function_ok_for_sibcall): ...this new function.
11584 (avr_lookup_function_attribute1): New static Function.
11585 (avr_naked_function_p, interrupt_function_p)
11586 (signal_function_p, avr_OS_task_function_p)
11587 (avr_OS_main_function_p): Use it.
11588 * config/avr/avr.md ("sibcall", "sibcall_value")
11589 ("sibcall_epilogue"): New expander.
11590 ("*call_insn", "*call_value_insn"): New insn.
11591 ("call_insn", "call_value_insn"): Remove
11592 ("call", "call_value", "epilogue"): Change expander to handle
11595 2011-03-21 Nick Clifton <nickc@redhat.com>
11597 * doc/invoke.texi (Overall Options): Move closing brace to end of
11599 (Optimization Options): Add missing @gol.
11600 (Directory Options): Likewise.
11601 (i386 and x86-64 Options): Likewise.
11602 (RS6000 and PowerPC Options): Likewise.
11603 (i386 and x86-64 Windows Options): Likewise.
11604 (V850 Options): Add text missing from descriptions.
11606 2011-03-22 Richard Henderson <rth@redhat.com>
11608 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11609 (avr_incoming_return_addr_rtx): New.
11610 (emit_push_byte): New.
11611 (expand_prologue): Use it. Remove incorrect dwarf annotation for
11612 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
11613 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
11614 (emit_pop_byte): New.
11615 (expand_epilogue): Use it. Pop frame pointer by bytes.
11616 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11617 (INCOMING_RETURN_ADDR_RTX): New.
11618 (INCOMING_FRAME_SP_OFFSET): New.
11619 (ARG_POINTER_CFA_OFFSET): New.
11620 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11621 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11624 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11626 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11628 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11629 (FUNCTION_ARG_ADVANCE): Likewise.
11630 * tm.texi.in: Change references to them to hook references.
11631 * tm.texi: Regenerate.
11632 * targhooks.c (default_function_arg): Eliminate check for target
11634 (default_function_incoming_arg): Likewise.
11635 (default_function_arg_advance): Likewise.
11636 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11637 (function_arg_advance): Likewise.
11638 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11640 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11642 * tree.c (build_call_1): New function.
11643 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11645 2011-03-22 Richard Guenther <rguenther@suse.de>
11647 PR tree-optimization/48228
11648 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11649 for single-arg PHIs.
11651 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
11653 PR rtl-optimization/48143
11654 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11655 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11656 sse2_cvtps2pd): Likewise.
11658 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11660 * recog.c (canonicalize_change_group): Use validate_unshare_change.
11662 2011-03-22 Richard Guenther <rguenther@suse.de>
11664 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11665 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11666 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11667 and REALIGN_LOAD_EXPR.
11668 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11669 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11670 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11671 DOT_PROD_EXPR case ...
11672 (expand_expr_real_2): ... here.
11673 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11674 and REALIGN_LOAD_EXPR.
11675 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11676 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11677 (vect_create_epilog_for_reduction): Likewise.
11678 (vectorizable_reduction): Likewise.
11679 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11680 * tree-vect-stmts.c (vectorizable_load): Likewise.
11682 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
11684 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11686 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11688 * config/s390/s390.c (s390_delegitimize_address): Fix offset
11689 handling for PLTOFF/GOTOFF.
11691 2011-03-22 Nick Clifton <nickc@redhat.com>
11693 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11694 trailing backslash from the end of the macro definition.
11696 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11698 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11701 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
11703 * expr.h (prepare_operand): Move to...
11704 * optabs.h (prepare_operand): ...here and change the insn code
11705 parameter from "int" to "enum insn_code".
11706 (insn_operand_matches): Declare.
11707 * expr.c (init_expr_target): Use insn_operand_matches.
11708 (compress_float_constant): Likewise.
11709 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11710 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11711 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11712 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11714 (gen_cond_trap): Likewise.
11715 (prepare_operand): Likewise. Change icode to an insn_code.
11716 (insn_operand_matches): New function.
11717 * reload.c (find_reloads_address_1): Use insn_operand_matches.
11718 * reload1.c (gen_reload): Likewise.
11719 * targhooks.c (default_secondary_reload): Likewise.
11721 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11723 * config/alpha/alpha.md (unspec): New define_c_enum.
11726 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
11729 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11730 between a call and its CALL_ARG_LOCATION note.
11732 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
11734 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11736 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11740 * c-common.c (shorten_compare): If primopN is first sign-extended
11741 to opN and then zero-extended to result type, set primopN to opN.
11743 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
11745 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11746 for barrier handlers.
11748 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
11750 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11751 UNSPEC constants to be in the unspec enumeration, and redefine
11752 all UNSPECV constants to be in the unspecv enumeration, so that
11753 dumps print which unspec/unspec_volatile this is.
11754 * config/rs6000/vector.md (UNSPEC_*): Ditto.
11755 * config/rs6000/paired.md (UNSPEC_*): Ditto.
11756 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11757 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11758 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11760 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11761 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11762 UNSPECV_LWSYNC, since these are used as unspec_volatile.
11763 * config/rs6000/sync.md (isync, lwsync): Ditto.
11765 2011-03-21 Richard Guenther <rguenther@suse.de>
11767 * params.def (lto-min-partition): Fix typo.
11769 2011-03-21 Richard Guenther <rguenther@suse.de>
11772 * c-decl.c (grokdeclarator): Drop to the main variant only
11773 for array types. Drop flag_gen_aux_info check.
11775 2011-03-21 Richard Guenther <rguenther@suse.de>
11777 PR translation/47911
11778 * params.def (lto-partitions): Fix typo.
11779 (lto-min-partition): Fix wording.
11781 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
11783 * config/rs6000/t-freebsd: Remove duplication from file.
11785 2011-03-21 Richard Guenther <rguenther@suse.de>
11787 PR middle-end/47661
11788 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11790 2011-03-21 Richard Guenther <rguenther@suse.de>
11793 * params.def (lto-partitions): Require at least 1 partition.
11795 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11797 * gthr-solaris.h: Remove.
11798 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11799 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11800 (LIB_SPEC): Likewise.
11801 * config/sol2.opt (threads): Remove.
11802 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11803 (sparc*-*-solaris2*): Likewise.
11804 * configure.ac (enable_threads): Enable solaris support.
11805 * configure: Regenerate.
11806 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11807 * doc/install.texi (Configuration, --enable-threads=lib): Remove
11810 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11812 * config.gcc: Obsolete *-*-solaris2.8*.
11813 * doc/install.texi (Specific, *-*-solaris2*): Document it.
11815 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11818 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11819 reference. Solaris 8 perl works.
11821 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11824 * doc/install.texi (Prerequisites): Move jar etc. up.
11825 Explain support library version requirements.
11827 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11830 * doc/install.texi (Prerequisites): Move Perl to build
11831 requirements. Always necessary on Solaris 2 with Sun ld.
11833 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11835 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11837 (Specific, i?86-*-solaris2.[89]): Likewise.
11838 (Specific, i?86-*-solaris2.10): Likewise.
11839 (Specific, mips-sgi-irix6): Likewise.
11840 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11841 Update for binutils 2.21.
11843 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11845 * configure.ac (gcc_cv_lto_plugin): Fix typo.
11846 Allow -fuse-linker-plugin for non-default plugin linker.
11847 * configure: Regenerate.
11849 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
11852 * gengtype.c (files_rules): Added rule for cp/parser.h.
11854 2011-03-21 Jakub Jelinek <jakub@redhat.com>
11857 * config/s390/s390.c (s390_delegitimize_address): Don't call
11858 lowpart_subreg if orig_x has BLKmode.
11860 2011-03-21 Kai Tietz <ktietz@redhat.com>
11863 * doc/plugins.texi: Adjust documentation for plugin register_callback.
11864 * tree.h (attribute_spec): Add new member affects_type_identity.
11865 * attribs.c (empty_attribute_table): Adjust attribute_spec
11867 * config/alpha/alpha.c: Likewise.
11868 * config/arc/arc.c: Likewise.
11869 * config/arm/arm.c: Likewise.
11870 * config/avr/avr.c: Likewise.
11871 * config/bfin/bfin.c: Likewise.
11872 * config/crx/crx.c: Likewise.
11873 * config/darwin.h: Likewise.
11874 * config/h8300/h8300.c: Likewise.
11875 * config/i386/cygming.h: Likewise.
11876 * config/i386/i386.c: Likewise.
11877 * config/ia64/ia64.c: Likewise.
11878 * config/m32c/m32c.c: Likewise.
11879 * config/m32r/m32r.c: Likewise.
11880 * config/m68hc11/m68hc11.c: Likewise.
11881 * config/m68k/m68k.c: Likewise.
11882 * config/mcore/mcore.c: Likewise.
11883 * config/mep/mep.c: Likewise.
11884 * config/microblaze/microblaze.c: Likewise.
11885 * config/mips/mips.c: Likewise.
11886 * config/rs6000/rs6000.c: Likewise.
11887 * config/rx/rx.c: Likewise.
11888 * config/sh/sh.c: Likewise.
11889 * config/sol2.h: Likewise.
11890 * config/sparc/sparc.c: Likewise.
11891 * config/spu/spu.c: Likewise.
11892 * config/stormy16/stormy16.c: Likewise.
11893 * config/v850/v850.c: Likewise.
11895 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
11897 * simplify-rtx.c (simplify_binary_operation_1): Handle
11898 (xor (and A B) C) case when B and C are both constants.
11900 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
11902 * tree-dfa.c (add_referenced_var): Fix typo in comment.
11904 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
11907 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
11909 2011-03-20 Jakub Jelinek <jakub@redhat.com>
11911 PR rtl-optimization/48156
11912 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
11913 assume df and df_lr are not NULL.
11915 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
11918 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
11919 between a call and its CALL_ARG_LOCATION note.
11921 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
11924 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11925 between a call and its corresponding CALL_ARG_LOCATION note.
11927 2011-03-19 Anatoly Sokolov <aesok@post.ru>
11929 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
11930 instead of loop. Use HARD_REGISTER_NUM_P predicate.
11931 * haifa-sched.c (setup_ref_regs): Ditto.
11932 * caller-save.c (add_used_regs_1): Ditto.
11933 * dse.c (look_for_hardregs): Ditto.
11934 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
11935 * sched-rgn.c (check_live_1): Ditto.
11937 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11939 * c-decl.c (diagnose_mismatched_decls): Give an error for
11940 redefining a typedef with variably modified type.
11942 2011-03-18 Joseph Myers <joseph@codesourcery.com>
11944 * c-decl.c (grokfield): Don't allow typedefs for structures or
11945 unions with no tag by default.
11946 * doc/extend.texi (Unnamed Fields): Update.
11948 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
11950 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
11951 Rewrite using indirect functions.
11952 (lwp_slwpcb): Ditto.
11953 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
11954 (avx_vinsertf128<mode>): Ditto.
11956 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11958 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
11961 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11963 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
11964 splitting between a call and its corresponding CALL_ARG_LOCATION note.
11966 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
11968 PR rtl-optimization/48170
11969 * gcse.c (hoist_code): Remove bogus asserts.
11971 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
11973 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
11974 computation for prologue/epilogue.
11976 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11978 * Makefile.in (check-consistency): Remove.
11980 2011-03-18 Jakub Jelinek <jakub@redhat.com>
11983 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
11984 arange_table_in_use is 0, but either text_section_used or
11985 cold_text_section_used is true. Don't call it if
11986 !info_section_emitted.
11988 2011-03-18 Anatoly Sokolov <aesok@post.ru>
11990 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
11991 FUNCTION_VALUE_REGNO_P): Remove.
11992 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
11994 * config/avr/avr.c (avr_ret_register): Make static inline.
11995 (avr_function_value_regno_p): New function.
11996 (avr_libcall_value): Make static. Add 'func' argument.
11997 (avr_function_value): Make static. Rename 'func' argument to
11998 'fn_decl_or_type', forward it to avr_libcall_value. Call
11999 avr_ret_register function instead of RET_REGISTER macro.
12000 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12002 2011-03-18 Jason Merrill <jason@redhat.com>
12005 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12007 2011-03-18 Richard Guenther <rguenther@suse.de>
12009 * doc/install.texi (--enable-gold): Remove.
12010 (--with-plugin-ld): Document.
12011 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12013 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12015 PR middle-end/47790
12016 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12017 again after expansion changes.
12019 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12021 * combine.c (try_combine): Do simplification only call of
12022 subst() on i2 even when i1 is present. Update comments.
12024 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12026 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12027 and UNSPEC_PCREL_SYMOFF.
12029 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12031 * config/s390/s390.md: Use define_c_enum for the unspec constant
12034 2011-03-18 Richard Henderson <rth@redhat.com>
12035 Jakub Jelinek <jakub@redhat.com>
12038 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12039 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12041 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12043 PR middle-end/47725
12044 * combine.c (cant_combine_insn_p): Don't check zero/sign
12045 extended hard registers.
12047 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12049 PR middle-end/47725
12050 * combine.c (cant_combine_insn_p): Check zero/sign extended
12053 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12055 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12056 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12057 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12058 Change return type to bool.
12059 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12061 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12064 * var-tracking.c (prepare_call_arguments): If CALL target
12065 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12066 pc instead of looking it up using cselib_lookup and use
12067 Pmode for it if x has VOIDmode.
12068 * dwarf2out.c (gen_subprogram_die): If also both first and
12069 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12072 * function.c (assign_parms): For data.passed_pointer parms
12073 use MEM of data.entry_parm instead of data.entry_parm itself
12074 as DECL_INCOMING_RTL.
12075 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12076 also when passed and declared mode is the same, DECL_RTL
12077 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12080 2011-03-16 Jeff Law <law@redhat.com>
12082 PR rtl-optimization/37273
12083 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12084 handle them like argument loads from stack slots. Do not double
12085 count memory for memory constants and argument loads from stack slots.
12087 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12090 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12092 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12095 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12097 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12100 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12102 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12103 Clear call_arg_locations and call_arg_loc_last always.
12105 PR middle-end/48152
12106 * var-tracking.c (prepare_call_arguments): If argument needs to be
12107 passed by reference, adjust argtype and mode.
12109 2011-03-17 Richard Guenther <rguenther@suse.de>
12111 PR middle-end/48134
12112 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12113 a value make sure to fold the statement.
12115 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12118 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12119 return condition with !cfun->calls_alloca.
12121 2011-03-17 Richard Guenther <rguenther@suse.de>
12124 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12125 origin for decls in other ltrans units.
12126 (input_varpool_node): Likewise.
12128 2011-03-17 Richard Guenther <rguenther@suse.de>
12130 PR middle-end/48165
12131 * tree-object-size.c (compute_object_offset): Properly return
12132 the offset operand of MEM_REFs as sizetype.
12134 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12136 PR rtl-optimization/48141
12137 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12138 * dse.c: Include params.h.
12139 (active_local_stores_len): New variable.
12140 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12142 (record_store, check_mem_read_rtx): Decrease it when removing
12144 (scan_insn): Likewise. Increase it when adding to chain, if it
12145 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12146 set active_local_stores to NULL before the addition.
12147 * Makefile.in (dse.o): Depend on $(PARAMS_H).
12149 PR rtl-optimization/48141
12150 * dse.c (record_store): If no positions are needed in an insn
12151 that cannot be deleted, at least unchain it from active_local_stores.
12153 2011-03-16 Dodji Seketeli <dodji@redhat.com>
12156 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12157 (lookup_type_die_strip_naming_typedef): ... here.
12158 (get_context_die): Use it.
12159 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12160 the anonymous struct named by the naming typedef.
12162 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
12165 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12166 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12168 2011-03-16 Jeff Law <law@redhat.com>
12170 * tree-vrp.c (identify_jump_threads): Slightly simplify type
12171 check for operands of conditional. Allow type to be a pointer.
12173 2011-03-16 Richard Guenther <rguenther@suse.de>
12175 PR tree-optimization/48149
12176 * fold-const.c (fold_binary_loc): Fold
12177 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12179 2011-03-16 Richard Guenther <rguenther@suse.de>
12181 PR tree-optimization/26134
12182 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12183 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12184 (non_rewritable_mem_ref_base): Handle complex type component
12185 accesses, constrain offsets for vector and complex extracts
12188 2011-03-16 Richard Guenther <rguenther@suse.de>
12190 PR tree-optimization/48146
12191 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12192 operands avoiding the need for renaming.
12194 2011-03-16 Richard Guenther <rguenther@suse.de>
12196 * gimple-fold.c (maybe_fold_reference): Open-code relevant
12197 constant folding. Move MEM_REF canonicalization first.
12198 Rely on fold_const_aggregate_ref for initializer folding.
12199 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12201 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12203 PR middle-end/48136
12204 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12205 arg0/arg1 or their arguments are always fold converted to matching
12208 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12211 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12214 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12215 Handle in-tree gold.
12216 (ld_vers): Extract binutils version for gold.
12217 (gcc_cv_ld_hidden): Handle gold here.
12218 (gcc_cv_lto_plugin): Determine level of linker plugin support.
12219 * configure: Regenerate.
12220 * config.in: Regenerate.
12221 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12222 -fuse-linker-plugin otherwise.
12223 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
12224 (LINK_COMMAND_SPEC): Use it.
12225 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12227 2011-03-16 Jakub Jelinek <jakub@redhat.com>
12229 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12230 * calls.c: Remove debug.h include.
12231 (emit_call_1): Don't call virtual_call_token debug hook.
12232 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12233 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12234 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12235 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12236 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12237 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12238 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12239 dwarf2out_virtual_call): Remove.
12240 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12241 copy_call_info and virtual_call hooks.
12242 (dwarf2out_init): Don't initialize vcall_insn_table,
12243 debug_dcall_section and debug_vcall_section.
12244 (prune_unused_types): Don't mark nodes from dcall_table.
12245 (dwarf2out_finish): Don't output dcall or vcall tables.
12246 * final.c (final_scan_insn): Don't call direct_call or
12247 virtual_call debug hooks.
12248 * debug.h (struct gcc_debug_hooks): Remove direct_call,
12249 virtual_call_token, copy_call_info and virtual_call hooks.
12250 (debug_nothing_uid): Remove prototype.
12251 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12252 copy_call_info and virtual_call hooks.
12253 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12254 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12255 * debug.c (do_nothing_debug_hooks): Likewise.
12256 (debug_nothing_uid): Remove.
12257 * doc/invoke.texi (-fenable-icf-debug): Remove.
12258 * common.opt (-fenable-icf-debug): Likewise.
12260 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12261 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12262 call's MEM. Handle functions returning aggregate through a hidden
12263 first pointer. For virtual calls add clobbered pc to call arguments
12265 * dwarf2out.c (gen_subprogram_die): Emit
12266 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12270 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12271 * rtl.h (ENTRY_VALUE_EXP): Define.
12272 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12273 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12274 * print-rtl.c (print_rtx): Likewise.
12275 * gengtype.c (adjust_field_rtx_def): Likewise.
12276 * var-tracking.c (vt_add_function_parameter): Adjust
12277 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12278 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12279 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12280 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12281 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12283 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12284 Call var_location debug hook even on CALL_INSNs.
12285 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12286 * rtl.def (ENTRY_VALUE): New.
12287 * dwarf2out.c: Include cfglayout.h.
12288 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12289 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12290 (struct call_arg_loc_node): New type.
12291 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12292 tail_call_site_count): New variables.
12293 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12294 DW_TAG_GNU_call_site_parameter.
12295 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12296 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12297 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12298 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12299 and DW_AT_GNU_all_source_call_sites.
12300 (mem_loc_descriptor): Handle ENTRY_VALUE.
12301 (add_src_coords_attributes): Don't add enything if
12302 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12303 (dwarf2out_abstract_function): Save and clear call_arg_location,
12304 call_site_count and tail_call_site_count around dwarf2out_decl call.
12305 (gen_call_site_die): New function.
12306 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12307 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12308 (dwarf2out_function_decl): Clear call_arg_locations,
12309 call_arg_loc_last, set call_site_count and tail_call_site_count
12310 to -1 and free block_map.
12311 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12312 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
12313 followed by any real instructions.
12314 (dwarf2out_begin_function): Set call_site_count and
12315 tail_call_site_count to 0.
12316 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12317 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12318 attempt to force a DIE for it and worst case remove the attribute.
12319 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12320 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12322 * var-tracking.c: Include tm_p.h.
12323 (vt_stack_adjustments): For calls call note_register_arguments.
12324 (argument_reg_set): New variable.
12325 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12326 ensure the VALUE is resolved.
12327 (call_arguments): New variable.
12328 (prepare_call_arguments): New function.
12329 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12330 (struct expand_loc_callback_data): Add ignore_cur_loc field.
12331 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12332 always use the best expression.
12333 (vt_expand_loc): Add ignore_cur_loc argument.
12334 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12335 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12336 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12337 note for all calls.
12338 (vt_add_function_parameter): Use cselib_lookup_from_insn.
12339 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12340 argument. Don't call cselib_preserve_only_values and
12341 cselib_reset_table.
12342 (note_register_arguments): New function.
12343 (vt_initialize): Compute argument_reg_set. Call
12344 vt_add_function_parameters before processing basic blocks instead of
12345 afterwards. For calls call prepare_call_arguments before calling
12346 cselib_process_insn.
12347 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12348 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12349 (var-tracking.o): Depend on $(TM_P_H).
12350 * cfglayout.h (insn_scope): New prototype.
12351 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12352 * cfglayout.c (insn_scope): No longer static.
12353 * insn-notes.def (CALL_ARG_LOCATION): New.
12354 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12355 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12356 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12357 nothing for DECL_EXTERNAL BLOCK_VARS.
12359 2011-03-16 Alan Modra <amodra@gmail.com>
12362 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12363 create invalid offset address for vsx splat insn.
12364 * config/rs6000/predicates.md (splat_input_operand): New.
12365 * config/rs6000/vsx.md (vsx_splat_*): Use it.
12367 2011-03-15 Xinliang David Li <davidxl@google.com>
12370 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12371 (normalize_preds): New function.
12372 (is_use_properly_guarded): Normalize def predicates.
12374 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12377 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12378 in the output template.
12380 2011-03-15 Richard Guenther <rguenther@suse.de>
12382 PR middle-end/47650
12383 * tree-pretty-print.c (dump_function_declaration): Properly
12384 dump unprototyped and varargs function types.
12386 2011-03-15 Richard Guenther <rguenther@suse.de>
12388 PR tree-optimization/13954
12389 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12392 2011-03-15 Richard Guenther <rguenther@suse.de>
12394 PR tree-optimization/48037
12395 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12396 selects into BIT_FIELD_REFs.
12397 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12400 2011-03-15 Jakub Jelinek <jakub@redhat.com>
12402 PR tree-optimization/48129
12403 * builtins.c (fold_builtin_snprintf): Convert to type of
12404 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12405 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12407 2011-03-15 Richard Guenther <rguenther@suse.de>
12409 PR tree-optimization/41490
12410 * tree-ssa-dce.c (propagate_necessity): Handle returns without
12411 value but with VUSE.
12412 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12414 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12415 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12416 * tree-tailcall.c (find_tail_calls): Ignore returns.
12418 2011-03-15 Richard Guenther <rguenther@suse.de>
12420 PR middle-end/48031
12421 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12422 or variable-indexed array accesses when in gimple form.
12424 2011-03-15 Richard Guenther <rguenther@suse.de>
12426 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12428 2011-03-15 Alan Modra <amodra@gmail.com>
12431 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12432 presume symbol_refs without a symbol_ref_decl are suitably
12433 aligned, nor other trees we may see here. Handle anchor symbols.
12434 (legitimate_constant_pool_address_p): Comment. Add mode param.
12435 Check cmodel=medium addresses. Adjust all calls.
12436 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12437 creating cmodel=medium optimized access to locals.
12438 * config/rs6000/constraints.md (R): Pass QImode to
12439 legitimate_constant_pool_address_p.
12440 * config/rs6000/predicates.md (input_operand): Pass mode to
12441 legitimate_constant_pool_address_p.
12442 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12445 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12448 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12449 64-bit constants being loaded into registers other than GPRs such
12450 as loading 0 into a VSX register.
12452 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12454 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12456 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12458 PR middle-end/47917
12459 * builtins.c (fold_builtin_snprintf): New function.
12460 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12461 (fold_builtin_4): Likewise.
12463 PR middle-end/38878
12464 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12465 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
12466 and C - X == X also strip nops from +/-/p+ operand.
12467 When optimizing -X == C, fold C to arg0's type.
12470 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12471 emit it as add_AT_int instead of add_AT_unsigned.
12473 2011-03-14 Tom Tromey <tromey@redhat.com>
12475 * unwind-dw2.c: Include sys/sdt.h if it exists.
12476 (_Unwind_DebugHook): Use STAP_PROBE2.
12477 * config.in, configure: Rebuild.
12478 * configure.ac: Check for sys/sdt.h.
12480 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
12482 * config/i386/i386.md (ROUND_FLOOR): New constant.
12483 (ROUND_CEIL): Ditto.
12484 (ROUND_TRUNC): Ditto.
12485 (ROUND_MXCSR): Ditto.
12486 (ROUND_NO_EXC): Ditto.
12487 (rint<mode>2): Use new defines instead of numerical constants.
12488 (floor<mode>2): Ditto.
12489 (ceil<mode>2): Ditto.
12490 (btrunc<mode>2): Ditto.
12491 * config/i386/i386-builtin-types.def: Define ROUND function type
12493 * config/i386/i386.c (enum ix86_builtins): Add
12494 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12495 (struct builtin_description): Add
12496 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12497 (ix86_expand_sse_round): New static function.
12498 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12500 (ix86_builtin_vectorized_function): Handle
12501 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12503 2011-03-14 Tom Tromey <tromey@redhat.com>
12505 * c-parser.c (c_parser_asm_string_literal): Clear
12506 warn_overlength_strings.
12508 2011-03-14 Tom Tromey <tromey@redhat.com>
12510 * c-parser.c (disable_extension_diagnostics): Save
12511 warn_overlength_strings.
12512 (restore_extension_diagnostics): Restore warn_overlength_strings.
12514 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12516 * BASE-VER: Change to 4.7.0.
12518 2011-03-14 Richard Guenther <rguenther@suse.de>
12520 PR middle-end/48098
12521 * tree.c (build_vector_from_val): Adjust assert to requirements
12524 2011-03-14 Jakub Jelinek <jakub@redhat.com>
12527 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12529 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
12531 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12532 terms of target_flags_explicit. Adjust copyright year.
12534 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12535 * config/rs6000/t-freebsd: New file. Add override for
12538 2011-03-13 Chris Demetriou <cgd@google.com>
12540 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12541 (-fno-diagnostics-show-option): this, to reflect current default.
12542 (-Werror=): Update text about -fno-diagnostics-show-option.
12544 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
12547 * config/rs6000/predicates.md (easy_vector_constant_add_self,
12548 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12549 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12550 mode is not V2DImode or V2DFmode.
12551 (vspltis_constant): Do not handle V2DImode and V2DFmode.
12552 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12553 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12555 (movdi_internal64): Likewise.
12557 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
12559 PR tree-optimization/47127
12560 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12562 (set_cloog_options): Same.
12563 (scop_to_clast): Same.
12564 (print_clast_stmt): Do not call cloog_state_malloc and
12566 (print_generated_program): Same.
12568 * graphite-clast-to-gimple.h (cloog_state): Declared.
12569 (scop_to_clast): Adjust declaration.
12570 * graphite.c (cloog_state): Defined here.
12571 (graphite_initialize): Call cloog_state_malloc.
12572 (graphite_finalize): Call cloog_state_free.
12574 2011-03-11 Jason Merrill <jason@redhat.com>
12576 * attribs.c (lookup_attribute_spec): Take const_tree.
12579 2011-03-11 Joseph Myers <joseph@codesourcery.com>
12581 * config/sparc/sparc.c (sparc_option_override): Use
12582 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12584 2011-03-11 Richard Guenther <rguenther@suse.de>
12586 PR tree-optimization/48067
12587 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12588 multiplication result will be only used once on the target
12591 2011-03-11 Richard Guenther <rguenther@suse.de>
12593 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12595 2011-03-11 Richard Guenther <rguenther@suse.de>
12598 * tree.c (find_decls_types_r): Do not walk types only reachable
12599 from IDENTIFIER_NODEs.
12601 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12603 PR middle-end/48044
12604 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12605 all vnode->force_output nodes as needed.
12607 2011-03-11 Jason Merrill <jason@redhat.com>
12610 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12611 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12613 2011-03-11 Martin Jambor <mjambor@suse.cz>
12615 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12618 2011-03-11 Jakub Jelinek <jakub@redhat.com>
12620 PR tree-optimization/48063
12621 * ipa-inline.c (cgraph_decide_inlining): Don't try to
12622 inline functions called once if !tree_can_inline_p (node->callers).
12624 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
12626 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12628 * config/score/score3.c: Delete.
12629 * config/score/score3.h: Delete.
12630 * config/score/mul-div.S: Delete.
12631 * config/score/sfp-machine.h: Add new file.
12632 * config/score/constraints.md: Add new file.
12633 * config/score/t-score-softfp: Add new file.
12634 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12635 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12636 (score7_extra_constraint): Delete.
12637 (score7_option_override): Remove unused code.
12638 * config/score/score.c: Remove score3 and score5 define and code.
12639 * config/score/score.h: Remove score3 and score5 define and code.
12640 * config/score/score.md: Remove score3 template and unusual insn.
12641 * config/score/score.opt: Remove score3 and score5 options.
12643 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12645 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12646 when _HPUX_SOURCE is defined.
12647 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12649 2011-03-10 Jason Merrill <jason@redhat.com>
12652 * stor-layout.c (layout_type): Don't set structural equality
12653 on arrays of incomplete type.
12654 * tree.c (type_hash_eq): Handle comparing them properly.
12656 2011-03-10 Jakub Jelinek <jakub@redhat.com>
12659 * config/s390/s390.c (s390_delegitimize_address): Make sure the
12660 result mode matches original rtl mode.
12662 2011-03-10 Nick Clifton <nickc@redhat.com>
12664 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12665 (andsi3, andsi3_flags): Fix timings for three operand alternative.
12667 2011-03-09 Jakub Jelinek <jakub@redhat.com>
12669 PR rtl-optimization/47866
12670 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12671 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12672 if target wasn't scalar.
12673 * function.c (assign_stack_temp_for_type): Assert that neither
12674 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12675 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12677 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12679 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12681 * config/s390/s390-protos.h (s390_label_align): New prototype.
12682 * config/s390/s390.c (s390_label_align): New function.
12683 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12685 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12688 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12689 V2DI/V2DF constants. Only all 0's or all 1's are easy.
12690 (output_vec_const_move): Ditto.
12692 2011-03-08 Anatoly Sokolov <aesok@post.ru>
12694 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12695 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12696 * config/mips/mips.c (mips_preferred_reload_class): Make static.
12697 Change 'rclass' argument and result type to reg_class_t.
12698 (TARGET_PREFERRED_RELOAD_CLASS): Define.
12700 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
12702 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12703 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12704 (TARGET_MEMORY_MOVE_COST): Define.
12705 (avr_register_move_cost, avr_memory_move_cost): New Functions.
12707 2011-03-08 Jakub Jelinek <jakub@redhat.com>
12710 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12713 PR tree-optimization/48022
12714 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12717 2011-03-07 Jakub Jelinek <jakub@redhat.com>
12720 * var-tracking.c (find_use_val): Return NULL for
12721 cui->sets && cui->store_p BLKmode MEMs.
12723 2011-03-07 Anatoly Sokolov <aesok@post.ru>
12725 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12727 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12728 xstormy16_print_operand_address): Remove.
12729 * config/stormy16/stormy16.c (xstormy16_print_operand,
12730 xstormy16_print_operand_address): Make static.
12731 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12733 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
12736 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12737 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12740 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
12743 * cfgloopmanip.c (fix_bb_placements): Return immediately
12744 if FROM is BASE_LOOP's header.
12746 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
12748 * gimplify.c (gimplify_function_tree): Fix building calls
12749 to __builtin_return_address.
12751 2011-03-07 Alan Modra <amodra@gmail.com>
12753 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12754 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12755 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12756 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12758 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12759 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12760 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12761 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12762 * config/rs6000/rs6000.c
12763 (rs6000_elf_end_indicate_exec_stack): Rename to..
12764 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
12765 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
12766 (rs6000_file_start): ..here.
12767 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12768 file scope variables.
12769 (call_ABI_of_interest): New function.
12770 (init_cumulative_args): Set above vars when function return value
12771 is a float, vector, or small struct.
12772 (rs6000_function_arg_advance_1): Likewise for function args.
12773 (rs6000_va_start): Set rs6000_passes_float if variable arg function
12774 references float args.
12776 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
12778 * doc/cfg.texi: Remove "See" before @ref.
12779 * doc/invoke.texi: Likewise.
12781 2011-03-05 Jason Merrill <jason@redhat.com>
12783 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12785 2011-03-05 Anthony Green <green@moxielogic.com>
12787 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12789 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
12791 PR rtl-optimization/47899
12792 * cfgloopmanip.c (fix_bb_placements): Fix first argument
12793 to flow_loop_nested_p when moving the loop upward.
12795 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
12798 * arm.md (movhi_insn_arch4): Accept any immediate constant.
12800 2011-03-05 Jakub Jelinek <jakub@redhat.com>
12802 PR tree-optimization/47967
12803 * ipa-cp.c (build_const_val): Return NULL instead of creating
12804 VIEW_CONVERT_EXPR for mismatching sizes.
12805 (ipcp_create_replace_map): Return NULL if build_const_val failed.
12806 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12807 give up on versioning.
12809 2011-03-05 Alan Modra <amodra@gmail.com>
12812 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12813 full cmodel medium/large lo_sum + high addresses.
12815 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12817 * config/s390/s390.c (s390_decompose_address): Reject non-literal
12818 pool references in UNSPEC_LTREL_OFFSET.
12820 2011-03-04 Jan Hubicka <jh@suse.cz>
12823 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12824 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12825 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12827 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12828 cgraph_add_thunk): Add node pointers.
12829 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12830 associated to right node.
12831 (input_node): Update use of cgraph_same_body_alias
12832 and cgraph_add_thunk.
12834 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
12836 * config/i386/i386.opt (mprefer-avx128): New flag.
12837 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12838 modes when the flag -mprefer-avx128 is on.
12840 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
12842 * dwarf2out.c (compare_loc_operands): Fix address handling.
12844 2011-03-04 Alan Modra <amodra@gmail.com>
12846 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12848 2011-03-04 Richard Guenther <rguenther@suse.de>
12850 PR middle-end/47968
12851 * expmed.c (extract_bit_field_1): Prefer vector modes that
12852 vec_extract patterns can handle.
12854 2011-03-04 Richard Guenther <rguenther@suse.de>
12856 PR middle-end/47975
12857 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12859 2011-03-04 Richard Henderson <rth@redhat.com>
12861 * explow.c (emit_stack_save): Remove 'after' parameter.
12862 (emit_stack_restore): Likewise.
12863 * expr.h: Update to match.
12864 * builtins.c, calls.c, stmt.c: Likewise.
12865 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12866 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12867 * function.c (expand_function_end): Insert the emit_stack_save
12868 sequence before parm_birth_insn instead of after.
12870 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
12872 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12873 (ssse3_pmaddubsw128): Ditto.
12874 (ssse3_pmaddubsw): Ditto.
12876 2011-03-03 Steve Ellcey <sje@cup.hp.com>
12878 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12880 2011-03-03 Jakub Jelinek <jakub@redhat.com>
12883 * gimplify.c (omp_add_variable): Only call omp_notice_variable
12884 on TYPE_SIZE_UNIT if it is a DECL.
12887 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
12888 first operand is not is_gimple_mem_ref_addr, try to fold it.
12889 If the operand still isn't is_gimple_mem_ref_addr, clear
12892 2011-03-03 Richard Guenther <rguenther@suse.de>
12894 PR middle-end/47283
12895 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
12897 (refs_may_alias_p_1): For release branches return true if
12898 we are confused by our input.
12900 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12902 * config/s390/s390.c (s390_function_value): Rename to ...
12903 (s390_function_and_libcall_value): ... this.
12904 (s390_function_value): New function.
12905 (s390_libcall_value): New function.
12906 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
12907 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
12908 target macro definitions.
12909 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
12911 2011-03-02 Joseph Myers <joseph@codesourcery.com>
12913 * config/i386/freebsd64.h (CC1_SPEC): Define.
12914 * config/i386/linux64.h (CC1_SPEC): Define.
12915 * config/i386/x86-64.h (CC1_SPEC): Don't define.
12917 2011-03-02 Anatoly Sokolov <aesok@post.ru>
12919 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12921 * config/stormy16/stormy16.c: Include reload.h.
12922 (xstormy16_memory_move_cost): New function.
12923 (TARGET_MEMORY_MOVE_COST): Define.
12925 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
12927 PR rtl-optimization/47925
12928 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
12929 with side effects. Remove the more-specific check for volatile asms.
12931 2011-03-02 Alan Modra <amodra@gmail.com>
12934 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
12935 toc relative addresses for valid offsets.
12937 2011-03-01 Richard Guenther <rguenther@suse.de>
12939 PR tree-optimization/47890
12940 * tree-vect-loop.c (get_initial_def_for_induction): Set
12941 related stmt properly.
12943 2011-03-01 Richard Guenther <rguenther@suse.de>
12946 * lto-streamer.c (lto_record_common_node): Also register
12947 the canonical type.
12949 2011-03-01 Richard Guenther <rguenther@suse.de>
12952 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
12953 Do not stream DECL_ABSTRACT_ORIGIN.
12954 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12955 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12956 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
12957 Do not stream DECL_ABSTRACT_ORIGIN.
12958 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
12959 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
12961 2011-02-28 Anatoly Sokolov <aesok@post.ru>
12963 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
12964 FUNCTION_VALUE_REGNO_P): Remove.
12965 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
12966 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
12967 Add 'outgoing' argument.
12968 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
12970 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12971 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12973 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
12976 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
12977 (lookup_filename): Likewise.
12978 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
12980 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
12981 Jakub Jelinek <jakub@redhat.com>
12983 PR middle-end/47893
12984 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
12985 (assign_stack_local_1): Change last argument type to int.
12986 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
12987 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
12988 don't record padding space into frame_space_list nor use those areas.
12989 (assign_stack_local): Adjust caller.
12990 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
12991 of assign_stack_local, pass 0 as last argument.
12992 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
12995 2011-02-28 Jakub Jelinek <jakub@redhat.com>
12998 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
12999 Use target address_mode and pointer_mode hooks instead of hardcoded
13000 Pmode and ptr_mode. Handle some simple cases of extending if
13001 POINTERS_EXTEND_UNSIGNED < 0.
13002 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13003 Call convert_debug_memory_address.
13004 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13005 convert_debug_memory_address.
13007 PR middle-end/46790
13008 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13009 * configure: Regenerated.
13010 * config.in: Regenerated.
13011 * varasm.c (default_function_section): Return NULL
13012 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13014 2011-02-28 Martin Jambor <mjambor@suse.cz>
13016 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13017 the description to match the printed values.
13019 2011-02-28 Richard Guenther <rguenther@suse.de>
13021 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13022 of the copied scope tree.
13024 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13026 * doc/extend.texi (Function Attributes): Avoid deeply (and
13027 wrongly) nested tables.
13029 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13031 PR middle-end/47903
13032 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13033 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13034 r isn't op0 nor op1.
13036 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13038 * config/avr/avr.md: Remove magic comment for emacs.
13040 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13043 * config/avr/avr.c (avr_option_override): Use error on bad options.
13044 (avr_help): New function.
13045 (TARGET_HELP): Define.
13047 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13050 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13051 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13053 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13055 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13056 (ARM Options): Ditto.
13057 (i386 and x86-64 Options): Ditto.
13058 (RX Options): Ditto.
13059 (SPARC Options): Ditto.
13061 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13063 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13064 FreeBSD 6 and later. Generally use cpu generic.
13066 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13068 * doc/cpp.texi: Update copyright years.
13070 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13073 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13075 2011-02-25 Jon Beniston <jon@beniston.com>
13078 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13079 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13080 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13081 (lm32_block_move_inline): Add type cast to remove warning.
13082 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13083 (gen_int_relational): Move declarations to start of function.
13085 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13087 PR tree-optimization/45470
13088 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13089 can throw internally only.
13090 * tree-vect-stmts.c (vectorizable_call): Likewise.
13092 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13094 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13095 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13096 * config/stormy16/stormy16-protos.h
13097 (xstormy16_preferred_reload_class): Remove.
13098 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13099 static. Change 'rclass' argument and return type to reg_class_t.
13100 (TARGET_PREFERRED_RELOAD_CLASS,
13101 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13103 2011-02-24 Richard Guenther <rguenther@suse.de>
13105 * lto-streamer-in.c (input_bb): Do not find referenced vars
13106 in debug statements.
13108 2011-02-23 Jason Merrill <jason@redhat.com>
13110 * common.opt (fabi-version): Document v5 and v6.
13112 2011-02-23 Richard Guenther <rguenther@suse.de>
13114 PR tree-optimization/47849
13115 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13117 2011-02-23 Jie Zhang <jie@codesourcery.com>
13119 * opts-common.c (decode_cmdline_option): Print empty string
13120 argument as "" in decoded->orig_option_with_args_text.
13121 * gcc.c (execute): Print empty string argument as ""
13122 in the verbose output.
13123 (do_spec_1): Keep empty string argument.
13125 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13127 * config.gcc: Declare score-* and crx-* obsolete.
13129 2011-02-23 Jie Zhang <jie@codesourcery.com>
13131 PR rtl-optimization/47763
13132 * web.c (web_main): Ignore naked clobber when replacing register.
13134 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13136 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13139 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13142 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13144 2011-02-22 Mike Stump <mikestump@comcast.net>
13146 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13148 * configure: Regenerate.
13150 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
13152 PR rtl-optimization/46002
13153 * ira-color.c (update_copy_costs): Change class intersection
13154 test to reg_class_contents[] test of 'hard_regno'.
13156 2011-02-21 Joseph Myers <joseph@codesourcery.com>
13158 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13159 than Driver option.
13160 * config/hpux11.opt (mt): Likewise.
13161 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13162 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13163 * config/vax/elf.opt (mno-asm-pic): Likewise.
13164 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13166 2011-02-21 Mike Stump <mikestump@comcast.net>
13169 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13170 tree so we can get save the type.
13171 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13172 for CFString instead of trying to use past the end of the builtins.
13173 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13174 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13175 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13176 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13177 Rename to darwin_builtin_cfstring.
13178 (darwin_init_cfstring_builtins): Return the built type.
13180 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
13183 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13184 (_mm256_insert_epi64): Use _mm_insert_epi64.
13186 2011-02-21 Anatoly Sokolov <aesok@post.ru>
13188 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13189 * config/stormy16/stormy16-protos.h
13190 (xstormy16_mode_dependent_address_p): Remove.
13191 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13192 Make static. Change return type to bool. Change argument type to
13193 const_rtx. Remove dead code.
13194 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13196 2011-02-21 Richard Guenther <rguenther@suse.de>
13199 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13200 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13201 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13203 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13204 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13206 2011-02-20 Richard Guenther <rguenther@suse.de>
13209 * tree.c (free_lang_data_in_decl): Clean builtins from
13210 the TU decl BLOCK_VARS.
13212 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
13216 * haifa-sched.c (fix_tick_ready): Skip tick computation
13219 2011-02-19 Richard Guenther <rguenther@suse.de>
13222 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13223 Remove lazy BLOCK_VARS streaming.
13224 (lto_input_ts_block_tree_pointers): Likewise.
13225 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13227 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13229 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13231 2011-02-19 Joseph Myers <joseph@codesourcery.com>
13233 * config/i386/biarch32.h, config/i386/mach.h,
13234 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13236 2011-02-19 Jakub Jelinek <jakub@redhat.com>
13239 * config/i386/i386.md (peephole2 for shift and plus): Use
13240 operands[1] original mode in the first insn.
13242 2011-02-18 Mike Stump <mikestump@comcast.net>
13244 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13246 2011-02-18 Jan Hubicka <jh@suse.cz>
13248 PR middle-end/47788
13249 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13250 to zero when the function is not inlinable at all.
13252 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13254 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13255 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13256 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13257 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13258 * config/pa/t-pa64: Likewise.
13259 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13261 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13264 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13266 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13269 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13271 2011-02-18 Anatoly Sokolov <aesok@post.ru>
13273 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13274 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13275 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13276 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13277 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13278 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13279 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13280 m32r_load_postinc_p, m32r_store_preinc_predec_p,
13281 m32r_legitimate_address_p): New functions.
13282 * config/m32r/constraints.md (constraint "S"): Don't use
13283 STORE_PREINC_PREDEC_P.
13284 (constraint "U"): Don't use LOAD_POSTINC_P.
13286 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
13288 PR rtl-optimization/46178
13289 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13290 compute ira_hard_regno_cover_class[].
13292 2011-02-18 Richard Guenther <rguenther@suse.de>
13295 * lto-streamer.h (lto_global_var_decls): Declare.
13296 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13297 statics for global var processing.
13299 2011-02-18 Richard Guenther <rguenther@suse.de>
13301 PR tree-optimization/47737
13302 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13303 edge dominance check.
13305 2011-02-18 Jakub Jelinek <jakub@redhat.com>
13308 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13309 avoid invalid rtx sharing.
13311 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
13313 * doc/cpp.texi (Obsolete Features): Add background on the
13314 origin of assertions.
13316 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
13318 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13320 * config/darwin.c (output_objc_section_asm_op): Added support for
13322 (is_objc_metadata): New.
13323 (darwin_objc2_section): New.
13324 (darwin_objc1_section): New.
13325 (machopic_select_section): Added support for ABI v1 and v2.
13326 (darwin_emit_objc_zeroed): New.
13327 (darwin_output_aligned_bss): Detect objc metadata and treat it
13329 (darwin_asm_output_aligned_decl_common): Same.
13330 (darwin_asm_output_aligned_decl_local): Same.
13331 * config/darwin-sections.def: Updated for ABI v1 and v2.
13332 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13333 compiling Objective-C code for the NeXT runtime, default to using
13334 ABI version 0 for 32-bit, and version 2 for 64-bit.
13336 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13338 * common.opt (optimize_fast): New Variable.
13339 * opts.c (default_options_optimization): Use opts->x_optimize_fast
13340 instead of local variable ofast.
13342 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
13344 * doc/invoke.texi (fobjc-abi-version): Documented.
13345 (fobjc-nilcheck): Documented.
13346 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13349 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13352 * common.opt (export-dynamic): New Driver option.
13353 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13355 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13357 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13359 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
13360 Jan Hubicka <jh@suse.cz>
13364 * cfgexpand.c (account_used_vars_for_block): Remove.
13365 (estimated_stack_frame_size): Use referenced vars.
13366 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13367 that were referenced in the original function. Test src_fn
13368 rather than cfun. Drop redundant get_var_ann.
13369 (setup_one_parameter): Drop redundant get_var_ann.
13370 (declare_return_variable): Likewise.
13371 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13372 (copy_arguments_for_versioning): Drop redundant get_var_ann.
13373 * ipa-inline.c (compute_inline_parameters): Do not compute
13374 disregard_inline_limits here.
13375 (compute_inlinable_for_current, pass_inlinable): New.
13376 (pass_inline_parameters): Require PROP_referenced_vars.
13377 * cgraphunit.c (cgraph_process_new_functions): Don't run
13378 compute_inline_parameters explicitly unless function is in SSA form.
13379 (cgraph_analyze_function): Set .disregard_inline_limits.
13380 * tree-sra.c (convert_callers): Compute inliner parameters
13381 only for functions already in SSA form.
13383 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13385 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13386 -mlittle-endian-data.
13388 2011-02-17 Joseph Myers <joseph@codesourcery.com>
13390 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13391 -mno-fpu, not -fpu and -no-fpu.
13392 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13393 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13395 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
13398 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13399 input reload with PLUS RTX.
13401 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13403 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13404 of InverseVar(MDMX).
13406 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13408 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13411 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13413 * config/mn10300/mn10300.opt (mno-crt0): New.
13415 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13417 * config/m68k/uclinux.opt (static-libc): New Driver option.
13419 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13421 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13423 2011-02-16 Joseph Myers <joseph@codesourcery.com>
13425 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13426 %{muser-extend-enabled}.
13428 2011-02-16 Richard Guenther <rguenther@suse.de>
13430 PR tree-optimization/47738
13431 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13432 the TODO from tree_predictive_commoning.
13434 2011-02-15 Jeff Law <law@redhat.com>
13437 2011-01-25 Jeff Law <law@redhat.com>
13439 PR rtl-optimization/37273
13440 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13441 handle them like argument loads from stack slots. Do not double
13442 count memory for memory constants and argument loads from stack slots.
13444 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13446 PR middle-end/47725
13447 * combine.c (cant_combine_insn_p): Revert the last change.
13449 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
13452 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13453 mode for vector constants. Remove code that checks for TImode.
13455 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13459 * cgraph.h (compute_inline_parameters): Return void.
13460 * ipa-inline.c (compute_inline_parameters): Adjust.
13462 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13466 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13468 * cfgexpand.c (estimated_stack_frame_size): Likewise.
13469 * ipa-inline.c (compute_inline_parameters): Adjust.
13471 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13475 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13476 Adjust all users. Pass FN to...
13477 * tree-flow-inline.h (first_referenced_var): ... this. Add
13479 * ipa-struct-reorg.c: Adjust.
13480 * tree-dfa.c: Adjust.
13481 * tree-into-ssa.c: Adjust.
13482 * tree-sra.c: Adjust.
13483 * tree-ssa-alias.c: Adjust.
13484 * tree-ssa-live.c: Adjust.
13485 * tree-ssa.c: Adjust.
13486 * tree-ssanames.c: Adjust.
13487 * tree-tailcall.c: Adjust.
13489 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
13493 * tree-flow.h (referenced_var_lookup): Add fn parameter.
13494 Adjust all callers.
13495 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13496 * tree-flow-inline.h: Adjust.
13497 * gimple-pretty-print.c: Adjust.
13498 * tree-into-ssa.c: Adjust.
13499 * tree-ssa.c: Adjust.
13500 * cfgexpand.c: Adjust.
13502 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13504 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13505 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13506 (EXTRA_CONSTRAINT): Delete.
13507 * config/iq2000/constraints.md: New file.
13508 * config/iq2000/iq2000.md: Include it.
13509 (define_insn ""): Delete.
13510 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13511 unsupported constraint letters from patterns.
13512 (call_value, call_value_internal1): Likewise.
13513 (call_value_multiple_internal1): Likewise.
13515 2011-02-15 Nick Clifton <nickc@redhat.com>
13517 * config/mn10300/mn10300.c: Include tm-constrs.h.
13518 (struct liw_data): New data structure describing an LIW candidate
13520 (extract_bundle): Use struct liw_data. Allow small integer
13521 operands for some instructions.
13522 (check_liw_constraints): Use struct liw_data. Remove swapped
13523 parameter. Add comments describing the checks. Fix bug when
13524 assigning the source of liw1 to the source of liw2.
13525 (liw_candidate): Delete. Code moved into extract_bundle.
13526 (mn10300_bundle_liw): Use struct liw_data. Check constraints
13528 * config/mn10300/predicates.md (liw_operand): New predicate.
13529 Allows registers and small integer constants.
13530 * config/mn10300/constraints.md (O): New constraint. Accetps
13531 integers in the range -8 to +7 inclusive.
13532 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13533 for moving a small integer into a register. Give this alternative
13535 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13536 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13537 using the J,K,L and M constraints,
13538 (liw): Remove SI mode on second operands to allow for HI and QI
13540 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
13543 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
13545 PR middle-end/47725
13546 * combine.c (cant_combine_insn_p): Check zero/sign extended
13549 2011-02-15 Richard Guenther <rguenther@suse.de>
13551 PR tree-optimization/47743
13552 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13553 for a non-type-compatible VN lookup bail out.
13555 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13557 * config/fr30/constraints.md: New file.
13558 * config/fr30/fr30.md: Include it.
13559 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13560 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13561 (EXTRA_CONSTRAINT): Delete.
13563 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
13565 * config/frv/constraints.md: New file.
13566 * config/frv/predicates.md: Include it.
13567 * config/frv/frv.c (reg_class_from_letter): Delete.
13568 (frv_option_override): Don't initialize it.
13569 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13570 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13571 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13572 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13573 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13574 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13575 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13576 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13577 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13578 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13579 (REG_CLASS_FROM_CONSTRAINT): Delete.
13581 2011-02-15 Jakub Jelinek <jakub@redhat.com>
13583 PR middle-end/47581
13584 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13585 if frame size is 0 in a leaf function.
13587 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13590 * config/alpha/host-osf.c: New file.
13591 * config/alpha/x-osf: New file.
13592 * config.host (alpha*-dec-osf*): Use it.
13594 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13596 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13597 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13598 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13599 (rx_mode_dependent_address_p): ...this. Make static. Change argument
13601 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13603 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13605 * config/stormy16/constraints.md: New file.
13606 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13607 Use satisfies_constraint_Q and satisfies_constraint_R.
13608 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13610 (xstormy16_legitiamte_address_p): Declare.
13611 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13612 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13613 (EXTRA_CONSTRAINT): Delete.
13614 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13616 (xstormy16_extra_constraint_p): Delete.
13618 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
13620 PR tree-optimization/46494
13621 * loop-unroll.c (split_edge_and_insert): Adjust comment.
13622 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13623 (pass_rtl_loop_done): Add TODO_verify_flow.
13624 * fwprop.c (pass_rtl_fwprop): Likewise.
13625 * modulo-sched.c (pass_sms): Likewise.
13626 * tree-ssa-dom.c (pass_dominator): Likewise.
13627 * tree-ssa-loop-ch.c (pass_ch): Likewise.
13628 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13629 (pass_tree_loop_done): Likewise.
13630 * tree-ssa-pre.c (execute_pre): Likewise.
13631 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13632 * tree-ssa-sink.c (pass_sink_code): Likewise.
13633 * tree-vrp.c (pass_vrp): Likewise.
13635 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13637 * config/v850/constraints.md: New file.
13638 * config/v850/v850.md: Include it.
13639 * config/v850/predicates.md (reg_or_0_operand): Use
13640 satisfies_constraint_G.
13641 (special_symbolref_operand): Use satisfies_constraint_K.
13642 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13643 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13644 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13645 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13646 (EXTRA_CONSTRAINT): Delete.
13647 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13648 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13649 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13651 2011-02-14 Anatoly Sokolov <aesok@post.ru>
13654 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13657 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
13659 * config/mcore/constraints.md: New file.
13660 * config/mcore/mcore.md: Include it.
13661 * config/mcore/mcore.c (reg_class_from_letter): Delete.
13662 * config/mcore/mcore.h (reg_class_from_letter): Delete.
13663 (REG_CLASS_FROM_LETTER): Delete.
13664 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13665 insn_const_int_ok_for_constraint.
13666 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13667 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13668 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13669 (EXTRA_CONSTRAINT): Delete.
13671 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13674 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13675 (IS_SIGHANDLER): Define.
13676 (sparc64_is_sighandler): New function, split off from
13677 sparc64_fallback_frame_state.
13678 (sparc_is_sighandler): New function, split off from
13679 sparc_fallback_frame_state.
13680 (sparc64_fallback_frame_state): Merge with ...
13681 (sparc_fallback_frame_state): ... this into ...
13682 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13683 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
13684 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
13685 stack instead of hardcoded offsets.
13687 2011-02-14 Andriy Gapon <avg@freebsd.org>
13690 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13692 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13694 * configure: Regenerate.
13696 2011-02-12 Joseph Myers <joseph@codesourcery.com>
13699 * gcc.c (asm_options): Correct spec matching --target-help.
13701 2011-02-12 Martin Jambor <mjambor@suse.cz>
13703 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13704 to gimple call error.
13706 2011-02-12 Mike Stump <mikestump@comcast.net>
13708 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13709 comments in backslash regions.
13711 2011-02-12 Mike Stump <mikestump@comcast.net>
13712 Jakub Jelinek <jakub@redhat.com>
13713 Iain Sandoe <iains@gcc.gnu.org>
13716 * dwarf2out.c (output_cfa_loc): When required, apply the
13717 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13718 (output_loc_sequence): Likewise.
13719 (output_loc_operands_raw): Likewise.
13720 (output_loc_sequence_raw): Likewise.
13721 (output_cfa_loc): Likewise.
13722 (output_loc_list): Suppress register number adjustment when
13723 calling output_loc_sequence()
13724 (output_die): Likewise.
13726 2011-02-12 Anatoly Sokolov <aesok@post.ru>
13728 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13730 * config/xtensa/xtensa.c (xtensa_register_move_cost,
13731 xtensa_memory_move_cost): New functions.
13732 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13734 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
13737 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13738 in the current directory.
13739 * configure: Rebuilt.
13741 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13743 * config/darwin.c (darwin_override_options): Add a hunk missed
13744 from the commit of r168571. Trim comment line lengths and
13745 correct indents of the preceding block.
13747 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
13749 * gcc.c (driver_handle_option): Concatenate the argument to -F with
13752 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13754 * common.opt (nostartfiles): New Driver option.
13756 2011-02-11 Xinliang David Li <davidxl@google.com>
13758 PR tree-optimization/47707
13759 * tree-chrec.c (convert_affine_scev): Keep type precision.
13761 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
13763 PR tree-optimization/47420
13764 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13766 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
13768 PR rtl-optimization/47614
13769 * rtl.h (check_for_inc_dec): Declare.
13770 * dse.c (check_for_inc_dec): Externalize...
13771 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13772 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13774 2011-02-11 Joseph Myers <joseph@codesourcery.com>
13777 * gcc.c (main): Do not compile inputs if there were errors in
13779 * opts-common.c (read_cmdline_option): Check for wrong language
13780 after other error checks.
13782 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
13784 * cgraph.c: Fix comment typos.
13785 * cgraph.h: Likewise.
13786 * cgraphunit.c: Likewise.
13787 * ipa-cp.c: Likewise.
13788 * ipa-inline.c: Likewise.
13789 * ipa-prop.c: Likewise.
13790 * ipa-pure-const.c: Likewise.
13791 * ipa-ref.c: Likewise.
13792 * ipa-reference.c: Likewise.
13794 2011-02-11 Jakub Jelinek <jakub@redhat.com>
13797 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13799 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13802 * doc/sourcebuild.texi (Require Support): Document
13803 dg-require-ascii-locale.
13805 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
13807 * doc/lto.texi (Write summary): Fix missing parentheses.
13809 2011-02-10 DJ Delorie <dj@redhat.com>
13811 * config/m32c/m32c.c (m32c_option_override): Disable
13812 -fcombine-stack-adjustments until flag value tracking and compare
13813 optimization can be rewritten.
13815 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
13817 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13819 (PROCESSOR_DEFAULT64): Likewise.
13821 2011-02-10 Richard Henderson <rth@redhat.com>
13823 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13824 change from 2011-02-03.
13825 * config/rx/rx.c (flags_from_code): Likewise.
13826 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13827 is valid, n/pz otherwise.
13828 (rx_select_cc_mode): Return CCmode if Y is not zero.
13830 2011-02-10 Richard Guenther <rguenther@suse.de>
13832 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13834 2011-02-10 Richard Guenther <rguenther@suse.de>
13836 PR tree-optimization/47677
13837 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13839 2011-02-10 Jakub Jelinek <jakub@redhat.com>
13842 * combine.c (make_compound_operation): Only change shifts into
13843 multiplication for SCALAR_INT_MODE_P.
13845 2011-02-10 Jie Zhang <jie@codesourcery.com>
13849 2011-02-05 Jie Zhang <jie@codesourcery.com>
13851 * web.c (entry_register): Don't clobber the number of the
13852 first uninitialized reference in used[].
13854 2011-02-09 Richard Guenther <rguenther@suse.de>
13856 PR tree-optimization/47664
13857 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13860 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
13864 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13866 (PROCESSOR_DEFAULT64): Same.
13867 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13869 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13871 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13873 2011-02-09 Martin Jambor <mjambor@suse.cz>
13875 PR middle-end/45505
13876 * tree-sra.c (struct access): New flags grp_scalar_read and
13877 grp_scalar_write. Changed description of assignment read and write
13879 (dump_access): Dump new flags, reorder all of them.
13880 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
13881 to detect multiple scalar reads.
13882 (analyze_access_subtree): Use the new scalar read write flags instead
13883 of the old flags. Adjusted comments.
13885 2011-02-08 DJ Delorie <dj@redhat.com>
13888 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
13891 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13893 * config/m68k/uclinux.opt: New.
13894 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
13896 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13898 * config/cris/elf.opt (sim): New Driver option.
13900 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13902 * config/xtensa/elf.opt: New.
13903 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
13905 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13907 * config/vax/elf.opt: New.
13908 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
13910 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13912 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
13914 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13916 * config/gnu-user.opt: New.
13917 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
13918 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
13919 *-*-uclinux*): Use gnu-user.opt.
13921 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
13923 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
13924 * config/i386/gnu.h (CPP_SPEC): Likewise.
13926 2011-02-08 Ian Lance Taylor <iant@google.com>
13928 * common.opt (fcx-limited-range): Add SetByCombined flag.
13929 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
13930 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
13931 (fassociative-math, freciprocal-math): Likewise.
13932 (funsafe-math-optimizations): Likewise.
13933 * opth-gen.awk: Handle SetByCombined.
13934 * optc-gen.awk: Likewise.
13935 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
13936 (set_unsafe_math_optimizations_flags): Likewise.
13937 * doc/options.texi (Option properties): Document SetByCombined.
13939 2011-02-08 Joseph Myers <joseph@codesourcery.com>
13941 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
13942 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
13943 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
13944 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
13945 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
13947 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
13949 PR tree-optimization/46834
13950 PR tree-optimization/46994
13951 PR tree-optimization/46995
13952 * graphite-sese-to-poly.c (used_outside_reduction): New.
13953 (detect_commutative_reduction): Call used_outside_reduction.
13954 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
13955 translate_scalar_reduction_to_array only when at least one
13956 loop-phi/close-phi tuple has been detected.
13958 2011-02-08 Richard Guenther <rguenther@suse.de>
13960 PR middle-end/47639
13961 * tree-vect-generic.c (expand_vector_operations_1): Update
13963 (expand_vector_operations): ... not here. Cleanup EH info
13964 and the CFG if required.
13966 2011-02-08 Richard Guenther <rguenther@suse.de>
13968 PR tree-optimization/47641
13969 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
13970 require type compatibility.
13972 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13974 * gimple-low.c (lower_function_body): Don't remove the location of
13975 the return statement here.
13976 (lower_gimple_return): Do it here instead but only if the return
13977 statement is actually used twice.
13979 2011-02-08 Richard Guenther <rguenther@suse.de>
13981 PR tree-optimization/47632
13982 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
13983 unused up_to_stmt parameter, return whether cfg-cleanup is
13984 necessary, remove EH info properly.
13985 (forward_propagate_into_gimple_cond): Adjust caller.
13986 (forward_propagate_into_cond): Likewise.
13987 (forward_propagate_comparison): Likewise.
13988 (tree_ssa_forward_propagate_single_use_vars): Make
13989 forward_propagate_comparison case similar to the two others.
13991 2011-02-08 Nick Clifton <nickc@redhat.com>
13993 * config/mn10300/mn10300.opt (mliw): New command line option.
13994 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
13995 (liw_bundling): New automaton.
13996 (liw): New attribute.
13997 (liw_op): New attribute.
13998 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
13999 (movsi_internal): Add LIW attributes.
14000 (andsi3): Likewise.
14001 (iorsi3): Likewise.
14002 (xorsi3): Likewise.
14003 (addsi3): Separate register and immediate alternatives.
14004 Add LIW attributes.
14005 (subsi3): Likewise.
14007 (aslsi3): Likewise.
14008 (lshrsi3): Likewise.
14009 (ashrsi3): Likewise.
14010 (liw): New pattern.
14011 * config/mn10300/mn10300.c (liw_op_names): New
14012 (mn10300_print_operand): Handle 'W' operand descriptor.
14013 (extract_bundle): New function.
14014 (check_liw_constraints): New function.
14015 (liw_candidate): New function.
14016 (mn10300_bundle_liw): New function.
14017 (mn10300_reorg): New function.
14018 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14019 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14020 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14021 __LIW__ or __NO_LIW__.
14022 * doc/invoke.texi: Describe the -mliw command line option.
14024 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14026 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14027 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14028 pthread_mutex_unlock): Remove.
14029 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14030 * config/pa/t-pa64: Likewise.
14031 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14032 shared libc if not linking against libpthread.
14033 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14035 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14038 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14039 on 10.6 and later to ensure that we always use the unwinder from
14040 the system. Only add -no_compact_unwind when tarteting darwin
14043 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14046 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14047 (vec_interleave_lowv2sf): Ditto.
14048 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14049 (vec_extract_oddv2sf): Ditto.
14051 2011-02-07 Mike Stump <mikestump@comcast.net>
14054 Add __ieee_divdc3 entry point.
14055 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14057 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14058 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14059 * config/darwin.c (darwin_rename_builtins): Add.
14060 * config/darwin-protos.h (darwin_rename_builtins): Add.
14062 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14065 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14068 2011-02-07 Mike Stump <mikestump@comcast.net>
14070 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14072 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14075 * config/avr/libgcc.S (exit): Move .endfunc
14077 2011-02-07 Richard Guenther <rguenther@suse.de>
14079 PR tree-optimization/47615
14080 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14081 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14082 (run_scc_vn): Initialize it.
14083 (visit_reference_op_load): Use it.
14084 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14086 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14088 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14089 DImode trapping arithmetic libfuncs.
14091 2011-02-07 Richard Guenther <rguenther@suse.de>
14093 PR tree-optimization/47621
14094 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14096 (execute_update_addresses_taken): ... here. Make it more
14097 conservative in what we accept.
14099 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14101 * config/sparc/freebsd.h (ASM_SPEC): Define.
14102 * config/sparc/vxworks.h (ASM_SPEC): Define.
14104 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14106 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14108 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14110 * doc/invoke.texi: Remove reference to compiler internals from
14111 user documentation.
14113 * reg-notes.def: Remove REG_VALUE_PROFILE.
14114 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14116 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14118 PR middle-end/47610
14119 * varasm.c (default_section_type_flags): If decl is NULL,
14120 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14122 2011-02-05 Jie Zhang <jie@codesourcery.com>
14125 * web.c (entry_register): Don't clobber the number of the
14126 first uninitialized reference in used[].
14128 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14130 PR tree-optimization/46194
14131 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14132 (build_classic_dist_vector_1): Do not represent classic distance
14133 vectors when the access functions are variating in different loops.
14135 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14137 * config/mips/iris6.opt: New.
14138 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14140 2011-02-04 Richard Henderson <rth@redhat.com>
14141 Steve Ellcey <sje@cup.hp.com>
14144 * config/ia64/predicates.md (mux1_brcst_element): New.
14145 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14146 * config/ia64/ia64.c (ia64_unpack_assemble): New.
14147 (ia64_unpack_sign): New.
14148 (ia64_expand_unpack): Rewrite using new routines.
14149 (ia64_expand_widen_sum): Ditto.
14150 (ia64_expand_dot_prod_v8qi): Ditto.
14151 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14152 routines, add endian check.
14153 (pmpy2_even): Rename from pmpy2_r, add endian check.
14154 (pmpy2_odd): Rename from pmpy2_l, add endian check.
14155 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14156 (vec_widen_smult_hi_v4hi): Ditto.
14157 (vec_widen_umult_lo_v4hi): Ditto.
14158 (vec_widen_umult_hi_v4hi): Ditto.
14159 (mulv2si3): Change endian checks.
14160 (sdot_prodv4hi): Rewrite with new calls.
14161 (udot_prodv4hi): New.
14162 (vec_pack_ssat_v4hi): Add endian check.
14163 (vec_pack_usat_v4hi): Ditto.
14164 (vec_pack_ssat_v2si): Ditto.
14165 (max1_even): Rename from max1_r, add endian check.
14166 (max1_odd): Rename from max1_l, add endian check.
14167 (*mux1_rev): Format change.
14168 (*mux1_mix): Ditto.
14169 (*mux1_shuf): Ditto.
14170 (*mux1_alt): Ditto.
14171 (*mux1_brcst_v8qi): Use new predicate.
14172 (vec_extract_evenv8qi): Remove endian check.
14173 (vec_extract_oddv8qi): Ditto.
14174 (vec_interleave_lowv4hi): Format change.
14175 (vec_interleave_highv4hi): Ditto.
14176 (mix2_even): Rename from mix2_r, add endian check.
14177 (mix2_odd): Rename from mux2_l, add endian check.
14178 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14179 (vec_extract_evenodd_helper): Format change.
14180 (vec_extract_evenv4hi): Remove endian check.
14181 (vec_extract_oddv4hi): Remove endian check.
14182 (vec_interleave_lowv2si): Format change.
14183 (vec_interleave_highv2si): Format change.
14184 (vec_initv2si): Remove endian check.
14185 (vecinit_v2si): Add endian check.
14186 (reduc_splus_v2sf): Add endian check.
14187 (reduc_smax_v2sf): Ditto.
14188 (reduc_smin_v2sf): Ditto.
14189 (vec_initv2sf): Remove endian check.
14190 (fpack): Add endian check.
14191 (fswap): Add endian check.
14192 (vec_interleave_highv2sf): Add endian check.
14193 (vec_interleave_lowv2sf): Add endian check.
14194 (fmix_lr): Add endian check.
14195 (vec_setv2sf): Format change.
14196 (*vec_extractv2sf_0_be): Use shift to extract operand.
14197 (*vec_extractv2sf_1_be): New.
14198 (vec_pack_trunc_v4hi): Add endian check.
14199 (vec_pack_trunc_v2si): Format change.
14201 2011-02-04 Jakub Jelinek <jakub@redhat.com>
14203 PR inline-asm/23200
14204 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
14205 do bb, locus and block comparison and disallow loads if it is not set.
14206 (stmt_is_replaceable_p): New function.
14207 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14209 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14210 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14212 * tree-flow.h (stmt_is_replaceable_p): New prototype.
14214 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14216 * config/rs6000/xilinx.opt: New.
14217 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14219 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14221 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14223 2011-02-03 Anatoly Sokolov <aesok@post.ru>
14225 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14226 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14227 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14228 secondary_reload_info, xtensa_secondary_reload): Remove.
14229 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14230 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14231 (xtensa_preferred_reload_class): Make static. Change return and
14232 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14233 Use CONST_DOUBLE_P predicate.
14234 (xtensa_preferred_output_reload_class): New function.
14235 (xtensa_secondary_reload): Make static.
14237 2011-02-03 Joseph Myers <joseph@codesourcery.com>
14239 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14240 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14241 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14243 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14245 PR middle-end/31490
14246 * output.h (SECTION_RELRO): Define.
14247 (SECTION_MACH_DEP): Adjust.
14248 (get_variable_section): New prototype.
14249 * varpool.c (varpool_finalize_named_section_flags): New function.
14250 (varpool_assemble_pending_decls): Call it.
14251 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14252 * cgraphunit.c (cgraph_output_in_order): Call
14253 varpool_finalize_named_section_flags.
14254 * varasm.c (get_section): Allow section flags conflicts between
14255 relro and read-only sections if the section hasn't been declared yet.
14256 Set SECTION_OVERRIDE after diagnosing section type conflict.
14257 (get_variable_section): No longer static.
14258 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14259 readonly sections that need relocations.
14260 (decl_readonly_section_1): New function.
14261 (decl_readonly_section): Use it.
14264 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
14265 Steve Ellcey <sje@cup.hp.com>
14267 PR middle-end/31490
14268 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14269 if section attribute used.
14271 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14273 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14274 * config/darwin.c (SECTION_NO_ANCHOR): Define.
14275 (darwin_init_sections): Remove assertion.
14277 2011-02-03 Nick Clifton <nickc@redhat.com>
14279 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14281 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14282 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14283 instead of "n" and "pz".
14284 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14287 2011-02-03 Jakub Jelinek <jakub@redhat.com>
14290 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14291 fma, expand FMA_EXPR as fma{,f,l} call.
14294 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14295 copy them into a unsigned char variable and pass address of it to
14296 lto_output_data_stream.
14299 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14300 around backend_init_target and lang_dependent_init_target calls.
14301 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14302 (verify_cgraph_node): Don't call set_cfun here. Use
14303 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14304 Set error_found for incorrectly represented calls to thunks.
14306 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14309 PR rtl-optimization/43494
14310 * rtl.h (for_each_inc_dec_fn): New type.
14311 (for_each_inc_dec): Declare.
14312 * rtlanal.c (struct for_each_inc_dec_ops): New type.
14313 (for_each_inc_dec_find_inc_dec): New fn.
14314 (for_each_inc_dec_find_mem): New fn.
14315 (for_each_inc_dec): New fn.
14316 * dse.c (struct insn_size): Remove.
14317 (replace_inc_dec, replace_inc_dec_mem): Remove.
14318 (emit_inc_dec_insn_before): New fn.
14319 (check_for_inc_dec): Use it, along with for_each_inc_dec.
14320 (canon_address): Pass mem modes to cselib_lookup.
14321 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
14322 (cselib_lookup_from_insn): Likewise.
14323 (cselib_subst_to_values): Likewise.
14324 * cselib.c (find_slot_memmode): New var.
14325 (cselib_find_slot): New fn. Use it instead of
14326 htab_find_slot_with_hash everywhere.
14327 (entry_and_rtx_equal_p): Use find_slot_memmode.
14328 (autoinc_split): New fn.
14329 (rtx_equal_for_cselib_p): Rename and implement in terms of...
14330 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
14331 Deal with autoinc. Special-case recursion into MEMs.
14332 (cselib_hash_rtx): Likewise.
14333 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
14334 address and MEM modes.
14335 (cselib_subst_to_values): Add memmode, pass it on.
14337 (cselib_lookup): Add memmode argument, pass it on.
14338 (cselib_lookup_from_insn): Add memmode.
14339 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14340 (struct cselib_record_autoinc_data): New.
14341 (cselib_record_autoinc_cb): New fn.
14342 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
14343 mode to cselib_lookup. Reset autoinced REGs here instead of...
14344 (cselib_process_insn): ... here.
14345 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14347 (add_uses): Likewise, also to cselib_subst_to_values.
14348 (add_stores): Likewise.
14349 * sched-deps.c (add_insn_mem_dependence): Pass mode to
14350 cselib_subst_to_values.
14351 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
14352 * gcse.c (do_local_cprop): Adjusted.
14353 * postreload.c (reload_cse_simplify_set): Adjusted.
14354 (reload_cse_simplify_operands): Adjusted.
14355 * sel-sched-dump (debug_mem_addr_value): Pass mode.
14357 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
14359 PR tree-optimization/45122
14360 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14361 unsafe assumptions when there's more than one loop exit.
14363 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
14366 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14367 Document using vector double with the load/store builtins, and
14368 that the load/store builtins always use Altivec instructions.
14370 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14371 to use altivec memory instructions, even on VSX.
14372 (vector_altivec_store_<mode>): Ditto.
14374 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14377 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14378 V2DF, V2DI support to load/store overloaded builtins.
14380 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14381 altivec load/store builtins for V2DF/V2DI types.
14383 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14384 set avoid indexed addresses on power6 if -maltivec.
14385 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14386 vector_altivec_load/vector_altivec_store builtins.
14387 (altivec_expand_st_builtin): Ditto.
14388 (altivec_expand_builtin): Add VSX memory builtins.
14389 (rs6000_init_builtins): Add V2DI types to internal types.
14390 (altivec_init_builtins): Add support for V2DF/V2DI altivec
14391 load/store builtins.
14392 (rs6000_address_for_altivec): Insure memory address is appropriate
14395 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14396 vec_vsx_ld and vec_vsx_st.
14397 (vsx_store_<mode>): Ditto.
14399 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14400 variables to hold long long types for VSX vector memory builtins.
14401 (RS6000_BTI_unsigned_long_long): Ditto.
14402 (long_long_integer_type_internal_node): Ditti.
14403 (long_long_unsigned_type_internal_node): Ditti.
14405 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14406 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14407 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14409 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14411 (vec_vsx_st): Ditto.
14413 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14415 * config/pa/pa-hpux10.opt: New.
14416 * config/hpux11.opt (pthread): New Driver option.
14417 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14418 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14420 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14422 * config/ia64/vms.opt: New.
14423 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14425 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
14428 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14429 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14430 generator functions.
14431 (vsx_floatuns<VSi><mode>2): Ditto.
14432 (vsx_fix_trunc<mode><VSi>2): Ditto.
14433 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14435 2011-02-02 Joseph Myers <joseph@codesourcery.com>
14437 * config/i386/djgpp.opt (posix): New Driver option.
14439 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
14441 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14442 Move to the unsupported targets list.
14444 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
14446 PR rtl-optimization/47525
14447 * df-scan.c: Update copyright years.
14448 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14449 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14451 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14453 * config/i386/sysv4.h (TARGET_VERSION): Remove.
14454 (SUBTARGET_RETURN_IN_MEMORY): Remove.
14455 (ASM_OUTPUT_ASCII): Remove.
14456 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14458 2011-02-02 Jeff Law <law@redhat.com>
14460 PR middle-end/47543
14461 * reload.c (find_reloads_address): Handle reg+d address where both
14462 components are invalid by reloading the entire address.
14464 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14465 Richard Guenther <rguenther@suse.de>
14467 PR tree-optimization/40979
14469 * passes.c (init_optimization_passes): After LIM call copy_prop
14470 and DCE to clean up.
14471 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14473 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
14475 PR tree-optimization/47576
14476 PR tree-optimization/47555
14477 * doc/invoke.texi (scev-max-expr-complexity): Documented.
14478 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14479 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14480 * tree-scalar-evolution.c (follow_ssa_edge): Use
14481 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14483 2011-02-02 Richard Guenther <rguenther@suse.de>
14485 PR tree-optimization/47566
14486 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14488 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14492 * tree-inline.c (declare_return_variable): Remove unused caller
14497 * tree-flow-inline.h (clear_is_used, is_used_p): New.
14498 * cfgexpand.c (account_used_vars_for_block): Use them.
14499 * tree-nrv.c (tree_nrv): Likewise.
14500 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14501 (dump_scope_block): Likewise.
14502 (remove_unused_locals): Likewise.
14506 * tree-inline.c (declare_return_variable): Add result decl to
14507 local decls only once.
14508 * gimple-low.c (record_vars_into): Mark newly-created variables
14511 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
14517 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14519 (no_real_insns_p, schedule_block, set_priorities): Drop special
14520 treatment of boundary debug insns.
14521 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14522 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14523 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14524 (BOUNDARY_DEBUG_INSN_P): Likewise.
14525 (SCHEDULE_DEBUG_INSN_P): Likewise.
14526 * sched-rgn.c (init_ready_list): Drop special treatment of
14527 boundary debug insns.
14528 * final.c (rest_of_clean_state): Clear notes' BB.
14530 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14532 * config/openbsd.opt (assert=): New Driver option.
14534 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14536 * config/i386/nto.opt: New.
14537 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14539 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14541 * config/i386/netware.opt: New.
14542 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14544 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14546 * config/interix.opt (posix): New Driver option.
14548 2011-02-01 DJ Delorie <dj@redhat.com>
14550 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14552 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14555 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
14557 PR tree-optimization/47561
14558 * toplev.c (process_options): Print the Graphite flags. Add
14559 flag_loop_flatten to the list of options requiring Graphite.
14561 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14563 * config/i386/cygming.opt (posix): New Driver option.
14565 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14567 * config/arm/vxworks.opt: New.
14568 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14570 2011-02-01 Joseph Myers <joseph@codesourcery.com>
14572 * config/alpha/elf.opt: New.
14573 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14574 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14576 2011-02-01 Richard Guenther <rguenther@suse.de>
14578 PR tree-optimization/47559
14579 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14580 store-motion on references that can throw.
14582 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
14584 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14585 * tree-pass.h (TDF_CSELIB): New macro.
14586 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14587 cselib_lookup): Check for it rather than for TDF_DETAILS.
14589 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
14592 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14593 is HOST_BIT_BUCKET.
14595 * opts.c (finish_options): Don't add x_aux_base_name if it is
14598 2011-02-01 Richard Guenther <rguenther@suse.de>
14600 PR tree-optimization/47555
14602 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
14604 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14606 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
14609 * config/lm32/t-lm32: Add multilib for all CPU options.
14611 2011-02-01 Richard Guenther <rguenther@suse.de>
14613 PR tree-optimization/47541
14614 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14615 sure to have a field at offset zero.
14617 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14619 * config/arc/arc.opt (EB, EL): New Driver options.
14621 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14623 * config/alpha/osf5.opt: New.
14624 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14626 2011-01-31 Joseph Myers <joseph@codesourcery.com>
14628 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14630 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
14632 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14633 -floop-interchange.
14634 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14635 is an alias of -floop-interchange and that it requires the
14636 Graphite infrastructure.
14637 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14638 flag_loop_interchange based on the value of flag_tree_loop_linear.
14640 2011-01-31 Jakub Jelinek <jakub@redhat.com>
14641 Richard Guenther <rguenther@suse.de>
14643 PR tree-optimization/47538
14644 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14645 type instead of r1type, except for comparisons. For right
14646 shifts and comparisons punt if there are mismatches in
14647 sizetype vs. non-sizetype types.
14649 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14651 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14654 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14656 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14658 * configure: Regenerate.
14660 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14662 * configure.ac (gcc_cv_ld_static_option): Define.
14663 (gcc_cv_ld_dynamic_option): Define.
14664 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14666 (HAVE_LD_STATIC_DYNAMIC): Update message.
14667 (LD_STATIC_OPTION): Define.
14668 (LD_DYNAMIC_OPTION): Define.
14669 * configure: Regenerate.
14670 * config.in: Regenerate.
14671 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14672 HAVE_LD_STATIC_DYNAMIC]: Use them.
14674 2011-01-31 Nick Clifton <nickc@redhat.com>
14676 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14677 registers inside interrupt handlers if the handler is not a leaf
14680 2011-01-31 Nick Clifton <nickc@redhat.com>
14682 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14683 reg_renumber returning an INVALID_REGNUM.
14685 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14688 * doc/install.texi: Document host options discarded when cross
14689 configuring target libraries.
14691 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
14694 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
14697 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14699 (no_real_insns_p, schedule_block, set_priorities): Drop special
14700 treatment of boundary debug insns.
14701 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14702 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14703 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14704 (BOUNDARY_DEBUG_INSN_P): Likewise.
14705 (SCHEDULE_DEBUG_INSN_P): Likewise.
14706 * sched-rgn.c (init_ready_list): Drop special treatment of
14707 boundary debug insns.
14708 * final.c (rest_of_clean-state): Clear notes' BB.
14710 2011-01-31 Alan Modra <amodra@gmail.com>
14712 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14713 toc relative expressions as we do in print_operand_address.
14715 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
14717 * doc/extend.texi: Follow spelling conventions.
14718 * doc/invoke.texi: Fix a typo.
14720 2011-01-30 Joseph Myers <joseph@codesourcery.com>
14722 * config/hpux11.opt: New.
14723 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14724 ia64*-*-hpux*): Use hpux11.opt.
14726 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
14728 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14731 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14733 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14736 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14738 * doc/install.texi (Binaries): Remove outdated reference for
14739 Motorola 68HC11/68HC12 downloads.
14741 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
14743 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14746 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
14749 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14752 2011-01-28 Ahmad Sharif <asharif@google.com>
14754 * value-prof.c (check_counter): Corrected error message.
14756 2011-01-29 Jie Zhang <jie@codesourcery.com>
14758 * config/arm/arm.c (arm_legitimize_reload_address): New.
14759 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14760 arm_legitimize_reload_address.
14761 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14763 2011-01-28 Ian Lance Taylor <iant@google.com>
14765 * godump.c (go_define): Ignore macros whose definitions include
14766 two adjacent operands.
14768 2011-01-28 Jakub Jelinek <jakub@redhat.com>
14771 * varasm.c (force_const_mem): Store copy of x in desc->constant
14772 instead of x itself.
14773 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14774 itself into REG_EQUAL note.
14776 2011-01-28 Joseph Myers <joseph@codesourcery.com>
14778 * config/freebsd.opt (posix, rdynamic): New Driver options.
14780 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14782 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14783 -Bstatic/-Bdynamic.
14784 * configure: Regenerate.
14786 2011-01-27 Joseph Myers <joseph@codesourcery.com>
14788 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14789 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14791 2011-01-27 Anatoly Sokolov <aesok@post.ru>
14793 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14794 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14795 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14796 (s390_preferred_reload_class): Make static. Change return and
14797 'rclass' argument type to reg_class_t.
14799 2011-01-27 Jan Hubicka <jh@suse.cz>
14801 PR middle-end/46949
14802 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14803 (process_function_and_variable_attributes): Check defined weakrefs.
14805 2011-01-27 Martin Jambor <mjambor@suse.cz>
14807 PR tree-optimization/47228
14808 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14809 build_ref_for_offset.
14811 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14813 * config/spu/spu-elf.h (ASM_SPEC): Remove.
14815 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
14817 PR rtl-optimization/46856
14818 * postreload.c (reload_combine_recognize_const_pattern): Do not
14819 separate cc0 setter and user on cc0 targets.
14821 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
14824 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14825 passed a VOID_TYPE expression, immediately emit an error and
14826 return error_mark_node.
14828 2011-01-26 Jeff Law <law@redhat.com>
14830 PR rtl-optimization/47464
14831 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14832 rather than may_trap_p as needed.
14834 2011-01-26 DJ Delorie <dj@redhat.com>
14836 PR rtl-optimization/46878
14837 * combine.c (insn_a_feeds_b): Check for the implicit cc0
14838 setter/user dependency as well.
14840 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
14842 PR rtl-optimization/44469
14843 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14844 after removing trivially dead basic blocks.
14846 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14848 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14849 * config/frv/frv.h (LINK_SPEC): Likewise.
14850 * config/i386/netware.h (LINK_SPEC): Likewise.
14851 * config/m68k/linux.h (ASM_SPEC): Likewise.
14852 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14853 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14854 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14855 * config/sparc/linux.h (ASM_SPEC): Likewise.
14856 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14857 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14859 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14861 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14862 * config/frv/frv.h (ASM_SPEC): Likewise.
14863 * config/m68k/linux.h (ASM_SPEC): Likewise.
14864 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14865 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14866 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14867 * config/sparc/linux.h (ASM_SPEC): Likewise.
14868 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14869 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14871 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14873 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14874 * config/frv/frv.h (LINK_SPEC): Likewise.
14875 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14877 2011-01-26 Joseph Myers <joseph@codesourcery.com>
14879 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14880 * config/frv/frv.h (ASM_SPEC): Likewise.
14881 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
14882 * config/m68k/linux.h (ASM_SPEC): Likewise.
14883 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14884 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
14885 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14886 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
14887 * config/sparc/linux.h (ASM_SPEC): Likewise.
14888 * config/sparc/linux64.h (ASM_SPEC): Likewise.
14889 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14890 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
14892 2011-01-26 Steve Ellcey <sje@cup.hp.com>
14895 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
14897 (vec_extract_evenodd_help): Ditto.
14898 (vec_extract_evenv4hi): Ditto.
14899 (vec_extract_oddv4hi): Ditto.
14900 (vec_interleave_lowv2si): Ditto.
14901 (vec_interleave_highv2si): Ditto.
14902 (vec_extract_evenv2si): Ditto.
14903 (vec_extract_oddv2si: Ditto.
14904 (vec_pack_trunc_v2si): Ditto.
14906 2011-01-22 Jan Hubicka <jh@suse.cz>
14909 * cgraph.h (cgraph_local_info): New field can_change_signature.
14910 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
14911 signature can change.
14912 (ipcp_estimate_growth): Call sequence simplify only if calle signature
14914 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
14915 (cgraph_function_versioning): We can not change signature of functions
14916 that don't allow that.
14917 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
14918 (lto_input_node): Likewise.
14919 * ipa-inline.c (compute_inline_parameters): Compute
14920 local.can_change_signature.
14921 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
14922 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
14923 functions that can not change signature.
14924 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
14925 init_cumulative_args): Do not use local calling conventions
14926 for functions that can not change signature.
14928 2011-01-22 Jan Hubicka <jh@suse.cz>
14930 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
14932 2011-01-26 Richard Guenther <rguenther@suse.de>
14934 PR tree-optimization/47190
14935 * cgraphunit.c (process_common_attributes): New function.
14936 (process_function_and_variable_attributes): Use it.
14938 2011-01-26 Richard Guenther <rguenther@suse.de>
14941 * cgraphbuild.c (record_eh_tables): Record reference to personality
14944 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
14947 * sel-sched.c (moveup_expr): Don't let debug insns prevent
14948 non-debug insns from moving up.
14950 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14953 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
14954 t-dlldir{,-x} fragment for build and add it to tmake_file.
14955 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
14956 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
14957 * config/i386/t-dlldir: New file.
14958 (SHLIB_DLLDIR): Define.
14959 * config/i386/t-dlldir-x: New file.
14960 (SHLIB_DLLDIR): Define.
14961 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
14962 (SHLIB_INSTALL): Use it.
14964 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
14967 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
14968 lower bound of the allowed Thumb-2 coprocessor load/store
14969 index range to -256. Add explaining comment.
14971 2011-01-25 Ian Lance Taylor <iant@google.com>
14973 * godump.c (go_define): Improve lexing of macro expansion to only
14974 accept expressions which match Go spec.
14976 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
14979 * tree.c (handle_dll_attribute): Handle it.
14980 * doc/extend.texi (@item dllexport): Mention it.
14981 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
14983 2011-01-25 Ian Lance Taylor <iant@google.com>
14985 PR tree-optimization/26854
14986 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
14987 (decl_jump_unsafe): Move higher in file, with no other change.
14988 (bind): Set has_jump_unsafe_decl if appropriate.
14989 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
14990 (check_earlier_gotos): Likewise.
14991 (c_check_switch_jump_warnings): Likewise.
14993 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
14995 * doc/invoke.texi (Warning Options): Add missing hyphen.
14996 (-fprofile-dir): Minor grammatical fixes.
14997 (-fbranch-probabilities): Likewise.
14999 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15003 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15005 (no_real_insns_p, schedule_block, set_priorities): Drop special
15006 treatment of boundary debug insns.
15007 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15008 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15009 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15010 (BOUNDARY_DEBUG_INSN_P): Likewise.
15011 (SCHEDULE_DEBUG_INSN_P): Likewise.
15012 * sched-rgn.c (init_ready_list): Drop special treatment of
15013 boundary debug insns.
15014 * final.c (rest_of_clean-state): Clear notes' BB.
15016 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15018 * Makefile.in (LAMBDA_H): Removed.
15019 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15020 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15021 lambda-trans.o, and tree-loop-linear.o.
15022 (lto-symtab.o): Remove dependence on LAMBDA_H.
15023 (tree-loop-linear.o): Remove rule.
15024 (lambda-mat.o): Same.
15025 (lambda-trans.o): Same.
15026 (lambda-code.o): Same.
15027 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15028 (tree-vect-slp.o): Same.
15029 * hwint.h (gcd): Moved here.
15030 (least_common_multiple): Same.
15031 * lambda-code.c: Removed.
15032 * lambda-mat.c: Removed.
15033 * lambda-trans.c: Removed.
15034 * lambda.h: Removed.
15035 * tree-loop-linear.c: Removed.
15036 * lto-symtab.c: Do not include lambda.h.
15037 * omega.c (gcd): Removed.
15038 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15039 * tree-data-ref.c (print_lambda_vector): Moved here.
15040 (lambda_vector_copy): Same.
15041 (lambda_matrix_copy): Same.
15042 (lambda_matrix_id): Same.
15043 (lambda_vector_first_nz): Same.
15044 (lambda_matrix_row_add): Same.
15045 (lambda_matrix_row_exchange): Same.
15046 (lambda_vector_mult_const): Same.
15047 (lambda_vector_negate): Same.
15048 (lambda_matrix_row_negate): Same.
15049 (lambda_vector_equal): Same.
15050 (lambda_matrix_right_hermite): Same.
15051 * tree-data-ref.h: Do not include lambda.h.
15052 (lambda_vector): Moved here.
15053 (lambda_matrix): Same.
15054 (dependence_level): Same.
15055 (lambda_transform_legal_p): Removed declaration.
15056 (lambda_collect_parameters): Same.
15057 (lambda_compute_access_matrices): Same.
15058 (lambda_vector_gcd): Same.
15059 (lambda_vector_new): Same.
15060 (lambda_vector_clear): Same.
15061 (lambda_vector_lexico_pos): Same.
15062 (lambda_vector_zerop): Same.
15063 (lambda_matrix_new): Same.
15064 * tree-flow.h (least_common_multiple): Removed declaration.
15065 * tree-parloops.c (lambda_trans_matrix): Moved here.
15066 (LTM_MATRIX): Same.
15067 (LTM_ROWSIZE): Same.
15068 (LTM_COLSIZE): Same.
15069 (LTM_DENOMINATOR): Same.
15070 (lambda_trans_matrix_new): Same.
15071 (lambda_matrix_vector_mult): Same.
15072 (lambda_transform_legal_p): Same.
15073 * tree-pass.h (pass_linear_transform): Removed declaration.
15074 * tree-ssa-loop.c (tree_linear_transform): Removed.
15075 (gate_tree_linear_transform): Removed.
15076 (pass_linear_transform): Removed.
15077 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15078 flag_loop_interchange.
15080 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15082 PR tree-optimization/47265
15083 PR tree-optimization/47443
15084 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15085 if name still has some uses.
15087 2011-01-25 Martin Jambor <mjambor@suse.cz>
15089 PR tree-optimization/47382
15090 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15091 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15093 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15095 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15096 sjlj_except_unwind_info.
15098 2011-01-25 Richard Guenther <rguenther@suse.de>
15100 PR tree-optimization/47426
15101 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15102 visible functions results escape.
15104 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15107 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15108 (arm_get_frame_offsets): Use it.
15110 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15111 Jakub Jelinek <jakub@redhat.com>
15113 PR tree-optimization/47271
15114 * tree-if-conv.c (bb_postdominates_preds): New.
15115 (if_convertible_bb_p): Call bb_postdominates_preds.
15116 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15117 (predicate_scalar_phi): Call bb_postdominates_preds.
15119 2011-01-25 Nick Clifton <nickc@redhat.com>
15121 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15122 * config/rx/rx.c (rx_function_value): Likewise.
15123 (rx_promote_function_mode): Likewise.
15124 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15125 in order to make it legitimate.
15126 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15127 make sure that the first operand is the same as the result register.
15128 (addsi3_unspec): Delete.
15129 (subdi3): Do not accept immediate operands.
15130 (subdi3_internal): Likewise.
15132 2011-01-25 Jeff Law <law@redhat.com>
15134 PR rtl-optimization/37273
15135 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15136 handle them like argument loads from stack slots. Do not double
15137 count memory for memory constants and argument loads from stack slots.
15139 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15141 PR tree-optimization/47427
15142 PR tree-optimization/47428
15143 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15144 coalesce if the new root var would be TREE_READONLY.
15146 2011-01-25 Richard Guenther <rguenther@suse.de>
15148 PR middle-end/47414
15149 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15150 correct type for TBAA.
15152 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15154 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15155 (close_phi_written_to_memory): Call for_each_index with
15156 dr_indices_valid_in_loop.
15158 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15160 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15161 when it is initialized.
15163 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15165 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15166 call to graphite_find_data_references_in_stmt.
15167 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15168 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
15169 call to graphite_find_data_references_in_stmt.
15170 (analyze_drs_in_stmts): Same.
15171 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15172 in which the scalar analysis of indices is performed.
15173 (create_data_ref): Same. Update call to dr_analyze_indices.
15174 (find_data_references_in_stmt): Update call to create_data_ref.
15175 (graphite_find_data_references_in_stmt): Same.
15176 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15178 (create_data_ref): Same.
15179 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15180 call to create_data_ref.
15182 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15184 * graphite-sese-to-poly.c (build_poly_scop): Move
15185 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15187 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15189 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15190 VAR_DECL, PARM_DECL, and RESULT_DECL.
15192 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15194 * graphite-dependences.c (reduction_dr_1): Allow several reductions
15195 in a reduction PBB.
15196 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15197 that have already been marked as PBB_IS_REDUCTION.
15199 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15201 * graphite-scop-detection.c (same_close_phi_node): New.
15202 (remove_duplicate_close_phi): New.
15203 (make_close_phi_nodes_unique): New.
15204 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15206 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15208 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15209 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15210 of both data references to be the same.
15212 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15214 * graphite-dependences.c (build_lexicographical_constraint): Remove
15215 the gdim parameter.
15216 (build_lexicographical_constraint): Adjust call to
15217 ppl_powerset_is_empty.
15218 (dependence_polyhedron): Same.
15219 (graphite_legal_transform_dr): Same.
15220 (graphite_carried_dependence_level_k): Same.
15221 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15223 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15225 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15227 * graphite-sese-to-poly.c
15228 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15229 (close_phi_written_to_memory): New.
15230 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15233 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15235 * doc/install.texi: Update the expected version number of PPL to 0.11.
15236 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15237 #if PPL_VERSION_MINOR < 11.
15239 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15241 * graphite-dependences.c: Include graphite-cloog-util.h.
15242 (new_poly_ddr): Inlined into dependence_polyhedron.
15243 (free_poly_ddr): Moved close by new_poly_ddr.
15244 (dependence_polyhedron_1): Renamed dependence_polyhedron.
15245 Early return NULL when ppl_powerset_is_empty returns true.
15246 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
15247 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
15248 (graphite_legal_transform_dr): Call new_poly_ddr.
15249 (graphite_carried_dependence_level_k): Same.
15250 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
15251 (dot_transformed_deps_stmt_1): Removed.
15252 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15253 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
15254 (dot_deps_1): Call dot_deps_2.
15255 * Makefile.in (graphite-dependences.o): Add missing dependence on
15256 graphite-cloog-util.h.
15258 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15260 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15261 (build_lexicographical_constraint): Same.
15262 (dependence_polyhedron_1): Same.
15263 (graphite_legal_transform_dr): Same.
15264 (graphite_carried_dependence_level_k): Same.
15265 * graphite-ppl.c (ppl_powerset_is_empty): New.
15266 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15267 * tree-data-ref.c (dump_data_reference): Print the basic block index.
15269 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15271 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15272 the "a followed by b" relation and document it.
15274 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15276 * graphite-dependences.c (build_lexicographical_constraint): Stop the
15277 iteration when the bag of constraints is empty.
15279 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15281 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15283 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15285 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15286 nest and two loop depths as parameters.
15287 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15288 lst_perfect_nestify.
15290 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15292 * graphite-dependences.c (print_pddr): Call
15293 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15295 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15297 * graphite-ppl.c (debug_gmp_value): New.
15298 * graphite-ppl.h (debug_gmp_value): Declared.
15300 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
15302 * doc/install.texi: Document availability of cloog-0.16.
15304 2011-01-25 Vladimir Kargov <kargov@gmail.com>
15306 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15307 invalid postdominance info.
15309 2011-01-24 Jan Hubicka <jh@suse.cz>
15312 * doc/extend.texi (weak pragma): Drop claim that it must
15313 appear before definition.
15314 * varasm.c (merge_weak, declare_weak): Only sanity check
15315 that DECL is not output at a time it is declared weak.
15317 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
15319 * machmode.def: Fixed comments.
15321 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
15323 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15325 2011-01-24 Paul Koning <ni1d@arrl.net>
15327 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15330 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
15333 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15334 (block_info): Add scanned and prev.
15335 (move_or_delete_vzeroupper_2): Return if the basic block
15336 has been scanned and the upper 128bit state is unchanged
15337 from the last scan.
15338 (move_or_delete_vzeroupper_1): Return true if the exit
15340 (move_or_delete_vzeroupper): Visit basic blocks using the
15341 work-list based algorithm based on vt_find_locations in
15344 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15346 2011-01-24 Nick Clifton <nickc@redhat.com>
15348 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15349 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15350 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
15351 then define __v850e1__.
15352 * doc/invoke.texi: Document -mv850es.
15354 2011-01-24 Richard Henderson <rth@redhat.com>
15356 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15357 compound unordered comparisons.
15358 * config/rx/rx.c (rx_split_fp_compare): Remove.
15359 * config/rx/rx-protos.h: Update.
15360 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15361 (cbranchsf4): Don't call rx_split_fp_compare.
15362 (*cbranchsf4): Use rx_split_cbranch.
15363 (*cmpsf): Don't accept "i" constraint.
15364 (*conditional_branch): Only valid after reload.
15365 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
15367 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15370 * config/rs6000/altivec.md (vector constant splitters): Add
15371 support for creating vector single precision constants if -mvsx is
15372 used and we would create the constant using Altivec primitives.
15374 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
15375 Richard Sandiford <rdsandiford@googlemail.com>
15377 PR rtl-optimization/47166
15378 * reload1.c (emit_reload_insns): Disable the spill_reg_store
15379 mechanism for PRE_MODIFY and POST_MODIFY.
15380 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15383 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
15385 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15387 2011-01-22 Jan Hubicka <jh@suse.cz>
15390 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15392 2011-01-22 Jan Hubicka <jh@suse.cz>
15394 PR tree-optimization/43884
15396 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15397 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15399 2011-01-22 Anatoly Sokolov <aesok@post.ru>
15401 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15402 * config/s390/s390.c (s390_register_move_cost,
15403 s390_memory_move_cost): New.
15404 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15406 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15408 PR middle-end/47401
15409 * except.c (sjlj_assign_call_site_values): Move setting the
15410 crtl->uses_eh_lsda flag to ...
15411 (sjlj_mark_call_sites): ... here.
15412 (sjlj_emit_function_enter): Support NULL dispatch label.
15413 (sjlj_build_landing_pads): In a function with no landing pads
15414 that still has must-not-throw regions, generate code to register
15415 a personality function with empty LSDA.
15417 2011-01-21 Richard Henderson <rth@redhat.com>
15419 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15421 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15423 * compare-elim.c: New file.
15424 * Makefile.in (OBJS-common): Add it.
15425 (compare-elim.o): New.
15426 * common.opt (fcompare-elim): New.
15427 * opts.c (default_options_table): Add OPT_fcompare_elim.
15428 * tree-pass.h (pass_compare_elim_after_reload): New.
15429 * passes.c (init_optimization_passes): Add it.
15430 * recog.h: Protect against re-inclusion.
15431 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15432 * doc/invoke.texi (-fcompare-elim): Document it.
15433 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15434 * doc/tm.texi: Rebuild.
15436 2011-01-22 Nick Clifton <nickc@redhat.com>
15438 * config/rx/rx.md (cstoresf4): Pass comparison operator to
15439 rx_split_fp_compare.
15441 2011-01-22 Nick Clifton <nickc@redhat.com>
15443 * config/rx/rx.md (UNSPEC_CONST): New.
15444 (deallocate_and_return): Wrap the amount popped off the stack in
15445 an UNSPEC_CONST in order to stop it being rejected by
15446 -mmax-constant-size.
15447 (pop_and_return): Add a "(return)" rtx.
15448 (call): Drop the immediate operand.
15449 (call_internal): Likewise.
15450 (call_value): Likewise.
15451 (call_value_internal): Likewise.
15452 (sibcall_internal): Likewise.
15453 (sibcall_value_internal): Likewise.
15454 (sibcall): Likewise. Generate an explicit call using
15456 (sibcall_value): Likewise.
15457 (mov<>): FAIL if a constant operand is not legitimate.
15458 (addsi3_unpsec): New pattern.
15460 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15461 (ok_for_max_constant): New function.
15462 (gen_safe_add): New function.
15463 (rx_expand_prologue): Use gen_safe_add.
15464 (rx_expand_epilogue): Likewise.
15465 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
15468 2011-01-21 Jeff Law <law@redhat.com>
15470 PR tree-optimization/47053
15471 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15472 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15473 statements are deleted.
15474 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
15475 is nonempty, then purge dead edges and cleanup the CFG.
15477 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15480 Temporarily revert:
15481 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15483 * tree-dfa.c (create_var_ann): Mark variable as used.
15485 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15487 PR middle-end/45566
15488 * except.c (convert_to_eh_region_ranges): Emit queued no-region
15489 notes from other section in hot/cold partitioning even if
15490 last_action is -3. Increment call_site_base.
15492 PR rtl-optimization/47366
15493 * fwprop.c (forward_propagate_into): Return bool. If
15494 any changes are made, -fnon-call-exceptions is used and
15495 REG_EH_REGION note is present, call purge_dead_edges
15496 and return true if it purged anything.
15497 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15498 any EH edges were purged.
15500 2011-01-21 Jeff Law <law@redhat.com>
15502 PR rtl-optimization/41619
15503 * caller-save.c (setup_save_areas): Break out code to determine
15504 which hard regs are live across calls by examining the reload chains
15505 so that it is always used.
15506 Eliminate code which checked REG_N_CALLS_CROSSED.
15508 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15510 PR tree-optimization/47355
15511 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15512 NOP has non-debug uses beyond PHIs in new_bb.
15514 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
15517 * cfgexpand.c (account_used_vars_for_block): Only account vars
15518 that are annotated as used.
15519 (estimated_stack_frame_size): Don't set TREE_USED.
15520 * tree-dfa.c (create_var_ann): Mark variable as used.
15522 2011-01-21 Richard Guenther <rguenther@suse.de>
15524 PR middle-end/47395
15525 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15527 2011-01-21 Richard Guenther <rguenther@suse.de>
15529 PR tree-optimization/47365
15530 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15531 (vn_reference_lookup_pieces): Adjust.
15532 (vn_reference_lookup): Likewise.
15533 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15534 (vn_reference_lookup_3): Only look through kills if in
15535 VN_WALKREWRITE mode.
15536 (vn_reference_lookup_pieces): Adjust.
15537 (vn_reference_lookup): Likewise.
15538 (visit_reference_op_load): Likewise.
15539 (visit_reference_op_store): Likewise.
15540 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15541 (compute_avail): Likewise.
15542 (eliminate): Likewise.
15544 2011-01-21 Jakub Jelinek <jakub@redhat.com>
15546 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15547 DECL_IGNORED_P non-reg vars if they are used.
15549 PR tree-optimization/47391
15550 * varpool.c (const_value_known_p): Return false if
15553 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
15556 * config/i386/i386.c (ix86_local_alignment): Handle
15557 case for va_list_type_node is nil.
15558 (ix86_canonical_va_list_type): Likewise.
15560 2011-01-21 Alan Modra <amodra@gmail.com>
15562 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15563 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15565 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15567 * config/arm/arm.md (define_attr type): Rename f_load
15568 and f_store to f_fpa_load and f_fpa_store. Update.
15569 (write_conflict): Deal with rename fallout.
15570 (*push_fp_multi): Likewise.
15571 * config/arm/fpa.md (f_load): Use f_fpa_load.
15572 (f_store): Use f_fpa_store.
15573 (*movsf_fpa): Likewise.
15574 (*movdf_fpa): Likewise.
15575 (*movxf_fpa): Likewise.
15576 (*thumb2_movsf_fpa): Likewise.
15577 (*thumb2_movdf_fpa): Likewise.
15578 (*thumb2_movxf_fpa): Likewise.
15579 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15580 f_loadd and f_stored.
15581 (*thumb2_movdi_vfp): Likewise.
15582 (*thumb2_movsf_vfp): Fix attribute to f_loads.
15583 (*thumb2_movsi_vfp): Likewise.
15584 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15585 Use f_loads instead of f_load.
15586 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15588 2011-01-20 Anatoly Sokolov <aesok@post.ru>
15590 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15591 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15592 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15593 (xtensa_mode_dependent_address_p): New function.
15594 (constantpool_address_p): Make static. Change return type to bool.
15595 Change argument type to const_rtx. Use CONST_INT_P predicate.
15597 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
15600 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15602 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15605 * cfgexpand.c (expand_debug_expr): Instead of generating
15606 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15609 2011-01-20 Richard Guenther <rguenther@suse.de>
15611 PR middle-end/47370
15612 * tree-inline.c (remap_gimple_op_r): Recurse manually for
15613 the pointer operand of MEM_REFs.
15615 2011-01-20 Jakub Jelinek <jakub@redhat.com>
15617 PR tree-optimization/46130
15618 * ipa-split.c (consider_split): If return_bb contains non-virtual
15619 PHIs other than for retval or if split_function would not adjust it,
15622 2011-01-20 Richard Guenther <rguenther@suse.de>
15624 PR tree-optimization/47167
15625 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15626 Revert previous change, only avoid enumeral type changes.
15628 2011-01-19 Mike Stump <mikestump@comcast.net>
15630 * doc/tm.texi.in (BRANCH_COST): Englishify.
15631 * doc/tm.texi (BRANCH_COST): Likewise.
15633 2011-01-19 Dodji Seketeli <dodji@redhat.com>
15636 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15637 (gen_scheduled_generic_parms_dies): New functions.
15638 (gen_struct_or_union_type_die): Schedule template parameters DIEs
15639 generation for the end of CU compilation.
15640 (dwarf2out_finish): Generate template parameters DIEs here.
15642 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15645 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15646 debug bind stmt on merge edges.
15648 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15652 * function.c (instantiate_expr): Instantiate incoming rtl of
15653 implicit arguments, and recurse on VALUE_EXPRs.
15654 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15655 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15657 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
15659 * c-parser.c (c_parser_for_statement): Initialize
15660 collection_expression.
15662 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15664 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15666 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15668 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15669 (LINK_SHLIB_SPEC): Don't use %(link_path).
15670 (SUBTARGET_EXTRA_SPECS): Remove link_path.
15672 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15674 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15675 (NO_SHARED_LIB_SUPPORT): Remove.
15676 (LINK_SHLIB_SPEC): Remove one conditional definition.
15678 2011-01-19 Joseph Myers <joseph@codesourcery.com>
15680 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15682 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15683 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15684 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15685 %{call_shared} and conditionals on these options not being passed.
15686 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15689 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15691 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15694 * ipa-split.c: Spelling fixes.
15696 2011-01-19 Richard Henderson <rth@redhat.com>
15698 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15699 (*mulsi3): Likewise.
15701 * longlong.h [__mn10300__] (count_leading_zeros): New.
15702 [__mn10300__] (umul_ppmm, smul_ppmm): New.
15703 [__mn10300__] (add_ssaaaa, subddmmss): New.
15704 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15705 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15707 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15709 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15711 2011-01-19 Richard Henderson <rth@redhat.com>
15713 * config/mn10300/mn10300.md (addsi3_flags): New.
15714 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15715 (subsi3_flags, subc_internal, subdi3): New.
15716 (subdi3_internal, *subdi3_degenerate): New.
15717 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15719 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15720 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15721 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
15722 * config/mn10300/mn10300-protos.h: Update.
15723 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15724 (return_ret): Likewise. Rename from return_internal_regs.
15725 (return_internal): Remove.
15727 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15728 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15729 (mn10300_legitimate_constant_p): Likewise.
15730 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15731 (mn10300_frame_size): New.
15732 (mn10300_expand_prologue): Use it.
15733 (mn10300_expand_epilogue): Likewise.
15734 (mn10300_initial_offset): Likewise.
15735 * config/mn10300/mn10300-protos.h: Update.
15736 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15737 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15738 (prologue, epilogue, return_internal): Tidy output code.
15739 (mn10300_store_multiple_operation, return): Likewise.
15740 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15741 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15742 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15743 (load_pic, am33_load_pic): New.
15744 (mn10300_load_pic0, mn10300_load_pic1): New.
15746 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15747 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15748 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15749 (cc_flags_for_mode, cc_flags_for_code): New.
15750 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15751 overflow flag is not valid. Validate that the flags we need
15752 for the comparison are valid.
15753 (mn10300_output_cmp): Remove.
15754 (mn10300_output_add): New.
15755 (mn10300_select_cc_mode): Use cc_flags_for_code.
15756 (mn10300_split_cbranch): New.
15757 (mn10300_match_ccmode): New.
15758 (mn10300_split_and_operand_count): New.
15759 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15761 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15762 (addsi3): ... here. Use mn10300_output_add.
15763 (*addsi3_flags): New.
15764 (*am33_subsi3, *mn10300_subsi3): Merge...
15765 (subsi3): ... here. Use attribute isa.
15766 (*subsi3_flags): New.
15767 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
15769 (*am33_andsi3, *mn10300_andsi3): Merge...
15770 (andsi3): ... here.
15771 (*andsi3_flags): New.
15772 (andsi3 splitters): New.
15773 (*am33_iorsi3, *mn10300_iorsi3): Merge...
15774 (iorsi3): ... here.
15775 (*iorsi3_flags): New.
15776 (*am33_xorsi3, *mn10300_xorsi3): Merge...
15777 (xorsi3): ... here.
15778 (*xorsi3_flags): New.
15779 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15780 (one_cmplsi2): ... here.
15781 (*one_cmplsi2_flags): New.
15782 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
15783 instead of "dax" in constraints. Use mn10300_split_cbranch.
15784 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
15785 use matching constraints to eliminate a self-comparison.
15786 (*integer_conditional_branch): Rename from integer_conditional_branch.
15787 Use int_mode_flags to match CC_REG.
15788 (*cbranchsi4_btst, *btstsi): New.
15789 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
15790 mn10300_split_cbranch.
15791 (*am33_cmpsf): Rename from am33_cmpsf.
15792 (*float_conditional_branch): Rename from float_conditional_branch.
15793 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15794 (zero_extendqisi2): ... here.
15795 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15796 (zero_extendhisi2): ... here.
15797 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15798 (extendqisi2): ... here.
15799 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15800 (extendhisi2): ... here.
15801 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15802 (ashlsi3): ... here.
15803 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15804 (lshrsi3): ... here.
15805 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15806 (ashrsi3): ... here.
15807 (consecutive add peephole): Remove.
15808 * config/mn10300/predicates.md (label_ref_operand): New.
15809 (int_mode_flags): New.
15810 (CCZN_comparison_operator): New.
15812 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15813 (throughput_42_latency_43): New reservation.
15814 (mulsidi3, umulsidi3): New expanders.
15815 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
15816 the MDR register to allocation; separately allocate the low and
15817 high parts of the DImode result.
15818 (umulsidi3_internal): Similarly.
15819 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15820 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
15821 (udivsi3, umodsi3): Remove.
15822 (udivmodsi4, divmodsi4): New expanders.
15823 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
15824 (*divmodsi4): Simiarly.
15825 (ext_internal): New.
15827 * config/mn10300/constraints.md ("z"): New constraint.
15828 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15829 (FIXED_REGISTERS): Don't fix MDR.
15830 (CALL_USED_REGSITERS): Reformat nicely.
15831 (REG_ALLOC_ORDER): Add MDR.
15832 (enum regclass): Add MDR_REGS.
15833 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15834 (IRA_COVER_CLASSES): Add MDR_REGS.
15835 (REGNO_REG_CLASS): Handle MDR_REG.
15836 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15837 (mn10300_register_move_cost): Likewise.
15838 * config/mn10300/mn10300.md (MDR_REG): New.
15839 (*movsi_internal): Handle moves to/from MDR_REGS.
15841 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15843 (mn10300_secondary_reload): Tidy combination reload classes.
15844 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15845 addresses for AM33. Allow symbolic offsets for reg+imm.
15846 (mn10300_regno_in_class_p): New.
15847 (mn10300_legitimize_reload_address): New.
15848 * config/mn10300/mn10300.h (enum reg_class): Remove
15849 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15850 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
15851 SP_OR_GENERAL_REGS.
15852 (REG_CLASS_NAMES): Update to match.
15853 (REG_CLASS_CONTENTS): Likewise.
15854 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15855 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15856 (REGNO_IN_RANGE_P): Remove.
15857 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15858 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15859 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15860 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15861 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15862 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15863 (REGNO_GENERAL_P): New.
15864 (HAVE_POST_MODIFY_DISP): New.
15865 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15866 (LEGITIMIZE_RELOAD_ADDRESS): New.
15867 * config/mn10300/mn10300-protos.h: Update.
15869 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15870 DATA_REGS for AM33 stack-pointer destination.
15871 (mn10300_preferred_output_reload_class): Likewise.
15872 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15873 into a form appropriate for ...
15874 (TARGET_SECONDARY_RELOAD): New.
15875 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15876 * config/mn10300/mn10300-protos.h: Update.
15877 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15878 reload_insi; use the "A" constraint for the scratch; handle AM33
15879 moves of sp to non-address registers.
15881 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
15882 (*movqi_internal): ... here.
15883 (*am33_movhi, *mn10300_movhi): Merge into...
15884 (*movhi_internal): ... here.
15885 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
15886 as the source/destination of moves from/to SP.
15887 (movsf): Only allow for AM33-2.
15888 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
15889 any integer constant constraint. Only allow for AM33-2. Tidy
15890 all of the alternative outputs.
15891 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
15892 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
15894 (udivsi3, umodsi3): New patterns for MN103 only.
15896 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
15898 * doc/tm.texi.in: Spell out that a lack of register class unions
15900 * doc/tm.texi: Regenerate.
15902 2011-01-19 Jakub Jelinek <jakub@redhat.com>
15904 PR rtl-optimization/47337
15905 * dce.c (check_argument_store): New function.
15906 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
15908 PR tree-optimization/47290
15909 * tree-eh.c (infinite_empty_loop_p): New function.
15910 (cleanup_empty_eh): Use it.
15912 2011-01-18 Steve Ellcey <sje@cup.hp.com>
15915 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
15916 (a64_expand_widen_sum): Ditto.
15917 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
15918 (vec_extract_evenodd_help): Ditto.
15919 (vec_extract_evenv4hi): Ditto.
15920 (vec_extract_oddv4hi): Ditto.
15921 (vec_extract_evenv2si): Ditto.
15922 (vec_extract_oddv2si): Ditto.
15923 (vec_extract_evenv2sf): Ditto.
15924 (vec_extract_oddv2sf): Ditto.
15925 (vec_pack_trunc_v4hi: Ditto.
15926 (vec_pack_trunc_v2si): Ditto.
15927 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
15928 (vec_interleave_highv8qi): Ditto.
15930 (vec_extract_oddv8qi): Ditto.
15931 (vec_interleave_lowv4hi): Ditto.
15932 (vec_interleave_highv4hi): Ditto.
15933 (vec_interleave_lowv2si): Ditto.
15934 (vec_interleave_highv2si): Ditto.
15936 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15938 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
15939 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
15940 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
15941 (pa_c_mode_for_suffix): New.
15942 (TARGET_EXPAND_BUILTIN): Define.
15943 (TARGET_C_MODE_FOR_SUFFIX): Define.
15944 (pa_builtins): Define.
15945 (pa_init_builtins): Register __float128 type and init new support
15947 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
15948 * config/pa/quadlib.c (_U_Qfcopysign): New.
15950 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
15952 PR middle-end/46894
15953 * explow.c (allocate_dynamic_stack_space): Do not assume more than
15954 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
15957 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15959 PR tree-optimization/47179
15960 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
15961 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
15963 2011-01-18 Richard Guenther <rguenther@suse.de>
15965 PR rtl-optimization/47216
15966 * emit-rtl.c: Include tree-flow.h.
15967 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
15968 of replicating it with different semantics.
15969 * Makefile.in (emit-rtl.o): Adjust.
15971 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15973 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
15974 (cortex_a9_dp): Handle neon types correctly.
15976 2011-01-18 Jakub Jelinek <jakub@redhat.com>
15978 PR rtl-optimization/47299
15979 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
15980 subtarget. Use normal multiplication if both operands are constants.
15981 * expmed.c (expand_widening_mult): Don't try to optimize constant
15982 multiplication if op0 has VOIDmode. Convert op1 constant to mode
15985 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15987 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
15988 spacing after 'e.g.', typos, comma, hyphenation.
15990 2011-01-17 Richard Henderson <rth@redhat.com>
15992 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
15993 (rx_restricted_mem_operand): New.
15994 (rx_shift_operand): Use register_operand.
15995 (rx_source_operand, rx_compare_operand): Likewise.
15996 * config/rx/rx.md (addsi3_flags): New expander.
15997 (adddi3): Rewrite as expander.
15998 (adc_internal, *adc_flags, adddi3_internal): New patterns.
15999 (subsi3_flags): New expander.
16000 (subdi3): Rewrite as expander.
16001 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16003 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16004 (rx_init_builtins): Remove sat builtin.
16005 (rx_expand_builtin): Likewise.
16006 * config/rx/rx.md (ssaddsi3): New.
16007 (*sat): Rename from sat. Represent the CC_REG input.
16009 * config/rx/predicates.md (rshift_operator): New.
16010 * config/rx/rx.c (rx_expand_insv): Remove.
16011 * config/rx/rx-protos.h: Update.
16012 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16013 operand to the canonical position.
16014 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16015 (*bitclr, *bitclr_in_memory): Similarly.
16016 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16017 (insv): Retain the zero_extract in the expansion.
16019 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16020 (bswaphi2, bitinvert, revw): Likewise.
16022 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16023 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16024 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16025 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16026 (bitset, bitset_in_memory): Likewise.
16027 (bitinvert, bitinvert_in_memory): Likewise.
16028 (bitclr, bitclr_in_memory): Likewise.
16029 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16030 (rx_strend, rx_cmpstrn): Likewise.
16031 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16032 (bitop peep2 patterns): Remove.
16034 * config/rx/rx.c (rx_match_ccmode): New.
16035 * config/rx/rx-protos.h: Update.
16036 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16037 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16038 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16039 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16040 (fix_truncsfsi2, floatsisf2): Likewise.
16041 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16042 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16043 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16044 (*subsi3_flags, *xorsi3_flags): New.
16046 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16048 * config/rx/rx.c (rx_print_operand): Remove workaround for
16049 unsplit comparison operations.
16051 * config/rx/rx.md (movsicc): Split after reload.
16052 (*movsicc): Merge *movsieq and *movsine via match_operator.
16053 (*stcc): New pattern.
16055 * config/rx/rx.c (rx_float_compare_mode): Remove.
16056 * config/rx/rx.h (rx_float_compare_mode): Remove.
16057 * config/rx/rx.md (cstoresi4): Split after reload.
16058 (*sccc): New pattern.
16060 * config/rx/predicates.md (label_ref_operand): New.
16061 (rx_z_comparison_operator): New.
16062 (rx_zs_comparison_operator): New.
16063 (rx_fp_comparison_operator): New.
16064 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16065 Validate that the flags are set properly for the comparison.
16066 (rx_gen_cond_branch_template): Remove.
16067 (rx_cc_modes_compatible): Remove.
16068 (mode_from_flags): New.
16069 (flags_from_code): Rename from flags_needed_for_conditional.
16070 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16071 (rx_select_cc_mode): Likewise.
16072 (rx_split_fp_compare): New.
16073 (rx_split_cbranch): New.
16074 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16075 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16076 (*cbranchsf4): Similarly.
16077 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16078 match_operator and rx_split_cbranch.
16079 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16080 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16081 (*cmpsi): Rename from cmpsi.
16082 (*tstsi): Rename from tstsi.
16083 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16084 (*conditional_branch): Rename from conditional_branch.
16085 (*reveresed_conditional_branch): Remove.
16086 (b<code>): Remove expander.
16087 * config/rx/rx-protos.h: Update.
16089 * config/rx/rx.c (rx_compare_redundant): Remove.
16090 * config/rx/rx.md (cmpsi): Don't use it.
16091 * config/rx/rx-protos.h: Update.
16093 * config/rx/rx-modes.def (CC_F): New mode.
16094 * config/rx/rx.c (rx_select_cc_mode): New.
16095 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16096 * config/rx/rx-protos.h: Update.
16098 2011-01-17 Richard Henderson <rth@redhat.com>
16100 * except.c (dump_eh_tree): Fix stray ; after for statement.
16102 2011-01-17 Richard Guenther <rguenther@suse.de>
16104 PR tree-optimization/47313
16105 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16106 handling before copying the body. Properly deal with
16107 by-reference result in SSA form.
16109 2011-01-17 Ian Lance Taylor <iant@google.com>
16112 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16113 (struct_value_alias_set): Don't define.
16114 (sparc_option_override): Don't set sparc_sr_alias_set and
16115 struct_value_alias_set.
16116 (save_or_restore_regs): Use gen_frame_mem rather than calling
16118 (sparc_struct_value_rtx): Likewise.
16120 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16123 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16124 (_mm_maskstore_pd): Likewise.
16125 (_mm_maskload_ps): Likewise.
16126 (_mm_maskstore_ps): Likewise.
16127 (_mm256_maskload_pd): Change mask to __m256i.
16128 (_mm256_maskstore_pd): Likewise.
16129 (_mm256_maskload_ps): Likewise.
16130 (_mm256_maskstore_ps): Likewise.
16132 * config/i386/i386-builtin-types.def: Updated.
16133 (ix86_expand_special_args_builtin): Likewise.
16135 * config/i386/i386.c (bdesc_special_args): Update
16136 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16137 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16138 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16139 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16141 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16142 Use <avxpermvecmode> on mask register.
16143 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16145 2011-01-17 Olivier Hainque <hainque@adacore.com>
16146 Michael Haubenwallner <michael.haubenwallner@salomon.at>
16147 Eric Botcazou <ebotcazou@adacore.com>
16150 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16151 if <= USHRT_MAX in 32-bit mode.
16153 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16155 * doc/install.texi (Configuration, Specific): Wrap long
16156 lines in examples. Allow line wrapping in long options
16157 and URLs where beneficial for PDF output.
16159 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
16161 * config/mips/mips.c (mips_classify_symbol): Don't return
16162 SYMBOL_PC_RELATIVE for nonlocal labels.
16164 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
16166 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16168 2011-01-15 Jan Hubicka <jh@suse.cz>
16170 PR tree-optimization/47276
16171 * ipa.c (function_and_variable_visibility): Do not try to mark alias
16172 declarations as needed.
16174 2011-01-15 Martin Jambor <mjambor@suse.cz>
16176 * common.opt (fdevirtualize): New flag.
16177 * doc/invoke.texi (Option Summary): Document it.
16178 * opts.c (default_options_table): Add devirtualize flag.
16179 * ipa-prop.c (detect_type_change): Return immediately if
16180 devirtualize flag is not set.
16181 (detect_type_change_ssa): Likewise.
16182 (compute_known_type_jump_func): Likewise.
16183 (ipa_analyze_virtual_call_uses): Likewise.
16185 2011-01-14 Martin Jambor <mjambor@suse.cz>
16187 PR tree-optimization/45934
16188 PR tree-optimization/46302
16189 * ipa-prop.c (type_change_info): New type.
16190 (stmt_may_be_vtbl_ptr_store): New function.
16191 (check_stmt_for_type_change): Likewise.
16192 (detect_type_change): Likewise.
16193 (detect_type_change_ssa): Likewise.
16194 (compute_complex_assign_jump_func): Check for dynamic type change.
16195 (compute_complex_ancestor_jump_func): Likewise.
16196 (compute_known_type_jump_func): Likewise.
16197 (compute_scalar_jump_functions): Likewise.
16198 (ipa_analyze_virtual_call_uses): Likewise.
16199 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16201 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16203 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16204 * config/i386/i386.opt (msse5): New Alias.
16206 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16208 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16209 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16210 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16211 * config/sparc/sparc.h (CC1_SPEC): Likewise.
16213 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16215 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16217 * config/sparc/linux64.h (CC1_SPEC): Likewise.
16218 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16219 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16220 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16222 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16224 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16226 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16228 2011-01-14 Mike Stump <mikestump@comcast.net>
16230 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16231 * config/fr30/fr30.md: Likweise
16232 (movsi_push): Likewise.
16233 (movsi_pop): Likewise.
16234 (enter_func): Likewise.
16235 * config/moxie/moxie.md (movsi_push): Likewise.
16236 (movsi_pop): Likewise.
16238 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16240 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16241 %{no_archive} %{exact_version}.
16242 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16243 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16244 %{no_archive} %{exact_version}.
16245 * config/mips/openbsd.h (LINK_SPEC): Likewise.
16246 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16247 * config/mips/vxworks.h: Likewise.
16249 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16251 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16253 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16255 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16256 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16258 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16260 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16263 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16265 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16267 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16268 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16270 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16271 Don't handle -shlib.
16273 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16275 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16276 (CC1_SPEC): Don't handle -profile.
16278 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16280 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16281 * config/mips/mips.h (CC1_SPEC): Likewise.
16283 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16285 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16286 * config/mips/mips.h (CC1_SPEC): Likewise.
16288 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16290 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16291 * config/m32r/linux.h (LINK_SPEC): Likewise.
16292 * config/mips/linux.h (LINK_SPEC): Likewise.
16293 * config/mips/linux64.h (LINK_SPEC): Likewise.
16294 * config/sparc/linux.h (LINK_SPEC): Likewise.
16295 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16296 LINK_SPEC): Likewise.
16297 * config/xtensa/linux.h (LINK_SPEC): Likewise.
16299 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16301 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16303 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16305 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16307 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16308 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16310 2011-01-14 Joseph Myers <joseph@codesourcery.com>
16312 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16314 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16316 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16317 supports -Bstatic/-Bdynamic.
16318 * configure: Regenerate.
16320 2011-01-14 Jan Hubicka <jh@suse.cz>
16321 Jack Howarth <howarth@bromo.med.uc.edu>
16324 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16325 when checking debug_info_level. Test write_symbols instead of
16326 debug_hooks->var_location when setting flag_var_tracking_uninit.
16328 2011-01-14 Richard Guenther <rguenther@suse.de>
16330 PR tree-optimization/47179
16331 * target.def (ref_may_alias_errno): New target hook.
16332 * targhooks.h (default_ref_may_alias_errno): Declare.
16333 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16334 (default_ref_may_alias_errno): New function.
16335 * target.h (struct ao_ref_s): Declare.
16336 * tree-ssa-alias.c: Include target.h.
16337 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16338 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16339 (targhooks.o): Likewise.
16340 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16341 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16343 2011-01-14 Richard Guenther <rguenther@suse.de>
16345 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
16347 2011-01-14 Richard Guenther <rguenther@suse.de>
16349 PR tree-optimization/47280
16350 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16351 return CFG changes.
16352 (tree_ssa_forward_propagate_single_use_vars): Deal with
16353 CFG changes from associate_plusminus.
16355 2011-01-14 Richard Guenther <rguenther@suse.de>
16357 PR middle-end/47281
16359 2011-01-11 Richard Guenther <rguenther@suse.de>
16361 PR tree-optimization/46076
16362 * tree-ssa.c (useless_type_conversion_p): Conversions from
16363 unprototyped to empty argument list function types are useless.
16365 2011-01-14 Richard Guenther <rguenther@suse.de>
16367 PR tree-optimization/47286
16368 * tree-ssa-structalias.c (new_var_info): Register variables are global.
16370 2011-01-14 Martin Jambor <mjambor@suse.cz>
16372 PR middle-end/46823
16373 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16375 2011-01-13 Anatoly Sokolov <aesok@post.ru>
16377 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16378 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16379 * config/xtensa/xtensa.c (xtensa_libcall_value,
16380 xtensa_function_value_regno_p): New functions.
16381 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16383 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
16386 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16388 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16389 New function prototype.
16390 * config/i386/winnt.c (i386_pe_assemble_visibility):
16391 Warn only if attribute was specified by user.
16393 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
16396 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16398 (floatunsdidf2_fcfidu): Ditto.
16400 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16402 * config/s390/s390.c (print_operand_address): Replace 'error' with
16403 'output_operand_lossage'.
16404 (print_operand): Likewise.
16406 2011-01-13 Jeff Law <law@redhat.com>
16408 PR rtl-optimization/39077
16409 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16410 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16411 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16412 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16413 * gcse.c (prune_insertions_deletions): New function.
16414 (compute_pre_data): Use it.
16416 2011-01-13 Dodji Seketeli <dodji@redhat.com>
16419 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16421 (prune_unused_types_mark): Use it.
16423 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
16425 PR rtl-optimization/45352
16426 * sel-sched.c: Update copyright years.
16427 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16428 in the advancing loop when we have issued issue_rate insns.
16430 2011-01-12 Richard Henderson <rth@redhat.com>
16432 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16433 (TARGET_MD_ASM_CLOBBERS): New.
16435 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16436 (TARGET_DELEGITIMIZE_ADDRESS): New.
16438 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16439 (clzsi2, *bsch): New patterns.
16441 * config/mn10300/mn10300.md (INT): New mode iterator.
16442 (*mov<INT>_clr): New pattern, and peep2 to generate it.
16444 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16445 flag_split_wide_types.
16447 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16448 (mn10300_trampoline_init): Rewrite without a template, an immediate
16449 load and a direct branch.
16450 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16452 2011-01-12 Anatoly Sokolov <aesok@post.ru>
16454 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16455 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16456 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16457 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16459 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
16462 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16465 2011-01-12 Jan Hubicka <jh@suse.cz>
16468 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16469 (PLUGIN_COND_CLOSE): New macro.
16470 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16472 2011-01-12 Richard Guenther <rguenther@suse.de>
16475 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16476 register variables in a MEM_REF.
16478 2011-01-12 Joseph Myers <joseph@codesourcery.com>
16480 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16481 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16482 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16483 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16484 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16485 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16486 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16487 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16488 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16489 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16490 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16491 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16492 * config/gnu-user.h: New. Copied from linux.h.
16493 (LINUX_TARGET_STARTFILE_SPEC): Rename to
16494 GNU_USER_TARGET_STARTFILE_SPEC.
16495 (LINUX_TARGET_ENDFILE_SPEC): Rename to
16496 GNU_USER_TARGET_ENDFILE_SPEC.
16497 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16498 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16499 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16500 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16501 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16502 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16503 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16504 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16505 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16506 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16507 * config/arm/linux-eabi.h (CC1_SPEC): Use
16508 GNU_USER_TARGET_CC1_SPEC.
16509 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16510 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16511 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16512 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16513 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16514 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16515 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16516 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16518 2011-01-12 Richard Guenther <rguenther@suse.de>
16521 * doc/invoke.texi (ffast-math): Document it is turned on
16524 2011-01-12 Jan Hubicka <jh@suse.cz>
16526 PR tree-optimization/47233
16527 * opts.c (common_handle_option): Disable ipa-reference with profile
16530 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16532 * c-parser.c (c_parser_objc_at_property_declaration): Improved
16535 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
16537 * c-parser.c (c_lex_one_token): Updated and reindented some
16538 comments. No changes in code.
16540 2011-01-11 Ian Lance Taylor <iant@google.com>
16542 * godump.c (go_output_var): Don't output the variable if there is
16543 already a type with the same name.
16545 2011-01-11 Ian Lance Taylor <iant@google.com>
16547 * godump.c (go_format_type): Don't generate float80.
16549 2011-01-11 Richard Henderson <rth@redhat.com>
16551 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16552 declaration. Rewrite for both speed and size.
16553 (mn10300_address_cost_1): Remove.
16554 (mn10300_register_move_cost): New.
16555 (mn10300_memory_move_cost): New.
16556 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
16557 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
16558 extensions, shifts, BSWAP, CLZ.
16559 (mn10300_wide_const_load_uses_clr): Remove.
16560 (TARGET_REGISTER_MOVE_COST): New.
16561 (TARGET_MEMORY_MOVE_COST): New.
16562 * config/mn10300/mn10300-protos.h: Update.
16563 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16565 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16566 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16567 * config/mn10300/mn10300-protos.h: Update.
16568 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16569 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16570 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16571 (*test_int_bitfield, *test_byte_bitfield): Remove.
16572 (*bit_test, *subreg_bit_test): Remove.
16573 * config/mn10300/predicates.md (const_8bit_operand): Remove.
16575 * config/mn10300/constraints.md ("c"): Rename from "A".
16576 ("A", "D"): New constraint letters.
16577 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16578 (fmssf4, fnmasf4, fnmssf4): Likewise.
16580 * config/mn10300/mn10300.md (isa): New attribute.
16581 (enabled): New attribute.
16583 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16584 (abssf2, negsf2): Define only for hardware fp.
16585 (sqrtsf2): Reformat.
16586 (addsf3, subsf3, mulsf3): Merge expander and insn.
16588 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16589 (DEBUGGER_AUTO_OFFSET): Remove.
16590 (DEBUGGER_ARG_OFFSET): Remove.
16592 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16593 Emit register stores with the same offsets as the hardware.
16594 (mn10300_store_multiple_operation): Don't check that the register
16595 save offsets are monotonic.
16596 * config/mn10300/mn10300-protos.h: Update.
16598 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16600 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16601 in terms of the value on the stack, not the MDR register.
16603 2011-01-11 Jan Hubicka <jh@suse.cz>
16607 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16608 (symbol_alias_set_destroy, symbol_alias_set_contains,
16609 propagate_aliases_backward): Declare.
16610 * lto-streamer-out.c (struct sets): New sturcture.
16611 (trivally_defined_alias): New function.
16612 (output_alias_pair_p): Rewrite.
16613 (output_unreferenced_globals): Fix output of alias pairs.
16614 (produce_symtab): Likewise.
16615 * ipa.c (function_and_variable_visibility): Set weak alias destination
16617 * varasm.c (symbol_alias_set_t): Remove.
16618 (symbol_alias_set_destroy): Export.
16619 (propagate_aliases_forward, propagate_aliases_backward): New functions
16621 (compute_visible_aliases): ... this one; remove.
16622 (trivially_visible_alias): New
16623 (trivially_defined_alias): New.
16624 (remove_unreachable_alias_pairs): Rewrite.
16625 (finish_aliases_1): Reorganize code checking if alias is defined.
16626 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16629 2011-01-11 Richard Guenther <rguenther@suse.de>
16631 PR tree-optimization/46076
16632 * tree-ssa.c (useless_type_conversion_p): Conversions from
16633 unprototyped to empty argument list function types are useless.
16635 2011-01-11 Richard Guenther <rguenther@suse.de>
16637 PR middle-end/45235
16638 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16639 volatile MEMs as MEM_READONLY_P.
16641 2011-01-11 Richard Guenther <rguenther@suse.de>
16643 PR tree-optimization/47239
16644 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16646 2011-01-11 Jeff Law <law@redhat.com>
16648 PR tree-optimization/47086
16649 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16650 IVs from statements that might throw.
16652 2011-01-10 Jan Hubicka <jh@suse.cz>
16655 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16657 2011-01-10 Jan Hubicka <jh@suse.cz>
16660 * profile.c (read_profile_edge_counts): Ignore profile inconistency
16661 when correcting profile.
16663 2011-01-10 Jan Hubicka <jh@suse.cz>
16666 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16667 DECL_FINI_PRIORITY.
16668 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16669 Restore DECL_FINI_PRIORITY.
16671 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16673 * doc/gimple.texi: Fix quoting of multi-word return values in
16674 @deftypefn statements. Ensure presence of return value. Wrap
16675 overlong @deftypefn lines.
16676 (is_gimple_operand, is_gimple_min_invariant_address): Remove
16677 descriptions of removed functions.
16678 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16679 of multi-word return value in @deftypefn statement.
16681 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16683 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16684 (Conditional Expressions, Logical Operators)
16685 (Statement and operand traversals): Do not indent smallexample
16686 code. Fix duplicate function argument in example.
16688 2011-01-10 Jeff Law <law@redhat.com>
16690 PR tree-optimization/47141
16691 * ipa-split.c (split_function): Handle case where we are
16692 returning a value and the return block has a virtual operand phi.
16694 2011-01-10 Jan Hubicka <jh@suse.cz>
16696 PR tree-optimization/47234
16697 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16698 (pass_feedback_split_functions): Declare.
16699 * passes.c (init_optimization_passes): Add ipa-split as subpass of
16701 * ipa-split.c (gate_split_functions): Update comments; disable
16702 split-functions for profile_arc_flag and branch_probabilities.
16703 (gate_feedback_split_functions): New function.
16704 (execute_feedback_split_functions): New function.
16705 (pass_feedback_split_functions): New global var.
16707 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
16710 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16711 calling gimple_call_set_cannot_inline.
16713 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
16715 * config/darwin-sections.def: Remove unused section.
16717 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
16720 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16722 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
16725 * c-parser.c (c_parser_declaration_or_fndef): Improved
16728 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
16730 * config/i386/winnt.c (i386_pe_start_function): Make sure
16731 to switch back to function's section.
16733 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
16737 * plugin.c: Move include of dlfcn.h from here...
16738 * system.h: ... to here.
16740 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16742 * doc/cpp.texi (C++ Named Operators): Fix markup for header
16744 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16745 two extra empty pages in PDF output.
16747 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
16750 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16751 for error recovery purposes behave as if it was not specified so
16752 that the default type is usd.
16754 2011-01-07 Jan Hubicka <jh@suse.cz>
16756 PR tree-optmization/46469
16757 * ipa.c (function_and_variable_visibility): Clear needed flags on
16758 nodes with external decls; handle weakrefs merging correctly.
16760 2011-01-07 Joseph Myers <joseph@codesourcery.com>
16762 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16765 2011-01-07 Jan Hubicka <jh@suse.cz>
16767 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16768 and no longer claim that gold is required for linker plugin.
16769 * configure: Regenerate.
16770 * gcc.c (PLUGIN_COND): New macro.
16771 (LINK_COMMAND_SPEC): Use it.
16772 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16773 * config.in (HAVE_LTO_PLUGIN): New.
16774 * configure.ac (--with-lto-plugin): New parameter; autodetect
16777 2011-01-07 Jan Hubicka <jh@suse.cz>
16779 PR tree-optimization/46367
16780 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16781 when we can update original.
16782 (cgraph_mark_inline_edge): Sanity check.
16783 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16785 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16787 * config/spu/spu.h (ASM_COMMENT_START): Define.
16789 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
16792 * gcc.c (%>S): New.
16793 (SWITCH_KEEP_FOR_GCC): Likewise.
16794 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16795 (do_spec_1): Handle "%>".
16797 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16799 2011-01-07 Jakub Jelinek <jakub@redhat.com>
16802 * config/i386/i386.c (ix86_delegitimize_address): If
16803 simplify_gen_subreg fails, return orig_x.
16806 * value-prof.c (gimple_stringop_fixed_value): Handle
16807 lhs of the call properly.
16809 2011-01-07 Jan Hubicka <jh@suse.cz>
16812 * lto-opt.c (lto_reissue_options): Set flag_shlib.
16814 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16816 * target.def (function_switched_text_sections): New hook.
16817 * doc/tm.texi: Regenerated.
16818 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16819 * final.c (default_function_switched_text_sections): New.
16820 (final_scan_insn): Call function_switched_text_sections when a
16821 mid-function section change occurs.
16822 * output.h (default_function_switched_text_sections): Declare.
16823 * config/darwin-protos.h (darwin_function_switched_text_sections):
16825 * config/darwin.c (darwin_function_switched_text_sections): New.
16826 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16828 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
16830 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
16831 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
16832 the secondary code fragment when outputting for DWARF == 2.
16834 2011-01-07 Anatoly Sokolov <aesok@post.ru>
16836 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16837 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16839 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16840 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16842 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
16845 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16846 when it is not empty.
16848 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
16851 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16852 (case ${target}): Add btver1.
16853 * config/i386/driver-i386.c (host_detect_local_cpu): Let
16854 -march=native recognize btver1 processors.
16855 * config/i386/i386-c.c (ix86_target_macros_internal): Add
16856 btver1 def_and_undef
16857 * config/i386/i386.c (struct processor_costs btver1_cost): New
16859 (m_BTVER1): New definition.
16860 (m_AMD_MULTIPLE): Includes m_BTVER1.
16861 (initial_ix86_tune_features): Add btver1 tune.
16862 (processor_target_table): Add btver1 entry.
16863 (static const char *const cpu_names): Add btver1 entry.
16864 (software_prefetching_beneficial_p): Add btver1.
16865 (ix86_option_override_internal): Add btver1 instruction sets.
16866 (ix86_issue_rate): Add btver1.
16867 (ix86_adjust_cost): Add btver1.
16868 * config/i386/i386.h (TARGET_BTVER1): New definition.
16869 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16870 (enum processor_type): Add PROCESSOR_BTVER1.
16871 * config/i386/i386.md (define_attr "cpu"): Add btver1.
16873 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16876 * config/i386/i386.c (legitimize_tls_address)
16877 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16878 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16879 (tls_initial_exec_64_sun): New pattern.
16881 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16883 * doc/invoke.texi (Overall Options): Improve wording and markup
16884 of the description of -wrapper.
16886 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16888 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
16889 rdynamic, threads): New Driver options.
16891 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16894 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
16895 if coming from .tdata.
16896 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
16898 2011-01-06 Jan Hubicka <jh@suse.cz>
16901 * collect2.c (main): Do not enable LTOmode when plugin is active.
16903 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16906 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
16907 --version output if supported.
16908 * configure: Regenerate.
16910 2011-01-06 Joseph Myers <joseph@codesourcery.com>
16912 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
16915 2011-01-06 Jakub Jelinek <jakub@redhat.com>
16918 * c-convert.c (convert): When converting a complex expression
16919 other than COMPLEX_EXPR to a different complex type, ensure
16920 c_save_expr is called instead of save_expr, unless in_late_binary_op.
16921 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
16922 when converting COMPLEX_TYPE.
16924 2011-01-06 Ira Rosen <irar@il.ibm.com>
16926 PR tree-optimization/47139
16927 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
16928 only the last reduction value is used outside the loop. Update
16931 2011-01-05 Joseph Myers <joseph@codesourcery.com>
16933 * config/rtems.opt: New.
16934 * config.gcc (*-*-rtems*): Use rtems.opt.
16936 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
16938 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
16939 processors do not support 3DNow instructions.
16941 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16943 * config/spu/spu.c (spu_option_override): Set parameter
16944 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
16946 2011-01-05 Jan Hubicka <jh@suse.cz>
16948 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
16949 at the command line.
16951 2011-01-05 Martin Jambor <mjambor@suse.cz>
16954 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
16955 deltas on streamed outgoing edges.
16956 (output_node_opt_summary): Output info for outgoing edges only when
16957 the node is in new parameter set.
16958 (output_cgraph_opt_summary): New parameter set, passed to the two
16959 aforementioned functions. Update its forward declaration and its
16962 2011-01-05 Tom Tromey <tromey@redhat.com>
16964 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
16965 operator to c_finish_omp_atomic.
16966 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
16967 (build_unary_op): Update.
16968 (build_modify_expr): Update.
16969 (build_asm_expr): Update.
16971 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16973 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
16974 newly inserted insns.
16975 (pad_bb): Likewise.
16976 (spu_emit_branch_hint): Likewise.
16977 (insert_hbrp_for_ilb_runout): Likewise.
16978 (spu_machine_dependent_reorg): Call df_finish_pass after
16979 schedule_insns returns.
16981 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16983 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
16985 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
16987 PR tree-optimization/47005
16988 * tree-sra.c (struct access): Add 'non_addressable' bit.
16989 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
16990 (decide_one_param_reduction): Return 0 if the parameter is passed by
16991 reference and one of the accesses in the group is non_addressable.
16993 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
16995 PR tree-optimization/47056
16996 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
16997 (mark_load): Likewise. Handle FUNCTION_DECL specially.
16998 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17000 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17002 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17003 initializer. Skip view conversions from aggregate types.
17005 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17008 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17010 2011-01-04 Philipp Thomas <pth@suse.de>
17012 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17015 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17017 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17018 on empty epilogue sequences.
17020 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17022 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17023 non-static): New Driver options.
17025 2011-01-04 Jie Zhang <jie@codesourcery.com>
17028 * gcc.c (default_compilers[]): Set combinable field to 0
17029 for all assembly languages.
17031 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17033 * config/mips/loongson3a.md: New file.
17034 * config/mips/mips.md: Include loongson3a.md.
17035 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17038 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17040 PR middle-end/47017
17041 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17042 instead of convert_memory_address_addr_space on the base expression.
17044 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17046 * config/spu/spu.c (spu_option_override): Update error text
17047 for bad -march= / -mtune= values.
17049 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17051 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17052 if branch-hint optimization will be performed.
17054 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17056 PR tree-optimization/47148
17057 * ipa-split.c (split_function): Convert arguments to
17058 DECL_ARG_TYPE if possible.
17060 PR tree-optimization/47155
17061 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17062 when computing uns.
17064 PR rtl-optimization/47157
17065 * combine.c (try_combine): If undobuf.other_insn becomes
17066 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17067 and set *new_direct_jump_p too.
17069 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17071 PR tree-optimization/47021
17072 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17074 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17076 * gcc.c (process_command): Update copyright notice dates.
17077 * gcov.c (print_version): Likewise.
17078 * gcov-dump.c (print_version): Likewise.
17079 * mips-tfile.c (main): Likewise.
17080 * mips-tdump.c (main): Likewise.
17082 2011-01-03 Martin Jambor <mjambor@suse.cz>
17084 PR tree-optimization/46801
17085 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17086 aggregate fields start at byte boundary instead of the bit-field flag.
17088 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17091 * gcc.c (main): Revert revision 168407.
17093 2011-01-03 Martin Jambor <mjambor@suse.cz>
17095 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17097 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17099 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17100 vector optab to expand vector/scalar shift, update gimple to vector.
17102 2011-01-03 Martin Jambor <mjambor@suse.cz>
17104 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17107 2011-01-03 Martin Jambor <mjambor@suse.cz>
17109 PR tree-optimization/46984
17110 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17112 (cgraph_create_indirect_edge): Fixed line length.
17113 (cgraph_indirect_call_info): Declare.
17114 (cgraph_make_edge_direct) Update declaration.
17115 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17116 (cgraph_create_indirect_edge): Use it.
17117 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17119 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17120 the new thunk_delta representation.
17121 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17123 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17124 (ipa_read_indirect_edge_info): Likewise.
17125 * lto-cgraph.c (output_edge_opt_summary): New function.
17126 (output_node_opt_summary): Call it on all outgoing edges.
17127 (input_edge_opt_summary): New function.
17128 (input_node_opt_summary): Call it on all outgoing edges.
17130 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17133 * gcc.c (main): Don't check have_o when settting combine_inputs.
17135 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17137 * regrename.c: Add general comment describing the pass.
17138 (struct du_head): Remove 'length' field.
17139 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17140 (regrename_optimize): Do not sort chains. Rework comments, add others.
17141 Force renaming to the preferred class (if any) in the first pass and do
17142 not consider registers that belong to it in the second pass.
17143 (create_new_chain): Do not set 'length' field.
17144 (scan_rtx_reg): Likewise.
17146 2011-01-02 Jakub Jelinek <jakub@redhat.com>
17148 PR tree-optimization/47140
17149 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17150 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17151 to bit_value_binop.
17153 PR rtl-optimization/47028
17154 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17155 parm_birth_insn instead of at the beginning of first bb.
17157 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
17159 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17160 Remove the word "see" before "@pxref".
17161 * doc/rtl.texi: Remove the word "see" before "@pxref".
17163 2011-01-01 Jan Hubicka <jh@suse.cz>
17165 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17168 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
17171 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17174 Copyright (C) 2011 Free Software Foundation, Inc.
17176 Copying and distribution of this file, with or without modification,
17177 are permitted in any medium without royalty provided the copyright
17178 notice and this notice are preserved.