1 2011-07-07 Richard Henderson <rth@redhat.com>
3 * dwarf2cfi.c: New file.
4 * Makefile.in (OBJS): Add it.
5 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
6 * gengtype.c (open_base_files): Include dwarf2out.h.
7 * coretypes.h (enum var_init_status): Move from ...
9 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
10 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
11 expand_builtin_dwarf_sp_column, init_return_column_size,
12 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
13 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
14 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
15 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
16 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
17 compute_barrier_args_size, dwarf2out_args_size,
18 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
19 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
20 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
21 queue_reg_save, dwarf2out_flush_queued_reg_saves,
22 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
23 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
24 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
25 dwarf2out_frame_debug_cfa_expression,
26 dwarf2out_frame_debug_cfa_restore,
27 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
28 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
29 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
30 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
31 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
32 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
33 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
34 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
35 dw_loc_descr_node): Move to dwarf2out.h.
36 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
37 mem_loc_descriptor): Export.
38 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
39 (dwarf2out_frame_init): Extract CIE generation code to
42 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
45 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
46 MASK_V8PLUS, remove commented out flag and reorder.
48 2011-07-07 Jakub Jelinek <jakub@redhat.com>
51 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
52 one non-complex and one complex argument, call c_save_expr on both
55 2011-07-07 Martin Jambor <mjambor@suse.cz>
58 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
59 (verify_cgraph_node): Some functinality moved to
60 verify_edge_corresponds_to_fndecl, call it.
62 2011-07-07 Joseph Myers <joseph@codesourcery.com>
64 * config.gcc (*local*): Remove.
65 * doc/install-old.texi: Don't mention local configurations.
67 2011-07-07 Jakub Jelinek <jakub@redhat.com>
70 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
71 referencing debug insns that have been reset.
72 (dead_debug_insert_before): Don't assert reg is non-NULL,
73 instead return immediately if it is NULL.
75 2011-07-07 Joseph Myers <joseph@codesourcery.com>
77 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa:
80 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
82 * hw-doloop.c: New file.
83 * hw-doloop.h: New file.
84 * Makefile.in (OBJS): Add hw-doloop.o.
85 (hw-doloop.o): New rule.
86 ($(obj_out_file)): Add hw-doloop.h dependency.
87 * config/bfin/bfin.c: Include "hw-doloop.h".
88 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
89 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
90 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
91 type changed to hwloop_info. Return bool, true if the loop was
92 successfully optimized. Remove code that was moved to
93 hw-doloop.c, and adjust other parts.
94 (hwloop_fail): New static function, containing parts that used
95 to be in bfin_optimize_loop.
96 (bfin_discover_loop, bfin_discover_loops, free_loops,
97 bfin_reorder_loops): Remove.
98 (hwloop_pattern_reg): New static function.
99 (bfin_doloop_hooks): New variable.
100 (bfin_reorg_loops): Remove most code, call reorg_loops.
101 * config/bfin/bfin.md (doloop_end splitter): Also enable if
102 loop counter is a memory_operand.
104 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
106 * config.gcc: Support --with-multilib-list for x86 Linux
109 * configure.ac: Mention x86-64 for --with-multilib-list.
110 * configure: Regenerated.
112 * config/i386/gnu-user64.h (SPEC_64): Support x32.
114 (ASM_SPEC): Likewise.
115 (LINK_SPEC): Likewise.
116 (TARGET_THREAD_SSP_OFFSET): Likewise.
117 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
120 * config/i386/i386.h (TARGET_X32): New.
122 (LONG_TYPE_SIZE): Likewise.
123 (POINTER_SIZE): Likewise.
124 (POINTERS_EXTEND_UNSIGNED): Likewise.
125 (OPT_ARCH64): Support x32.
126 (OPT_ARCH32): Likewise.
128 * config/i386/i386.opt (mx32): New.
130 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
131 (GLIBC_DYNAMIC_LINKERX32): Likewise.
132 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
133 (GLIBC_DYNAMIC_LINKERX32): Likewise.
135 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
136 (BIONIC_DYNAMIC_LINKERX32): Likewise.
137 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
139 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
141 * doc/install.texi: Document --with-multilib-list for
144 * doc/invoke.texi: Document -mx32.
146 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
148 * doc/invoke.texi (mwords-little-endian): Deprecate.
149 * config/arm/arm.opt (mwords-little-endian): Likewise.
150 * config/arm/arm.c (arm_option_override): Warn about the deprecation
151 of -mwords-little-endian.
153 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
155 * reload1.c (choose_reload_regs): Use mode sizes to check whether
156 an old reload register completely defines the required value.
158 2011-07-07 Richard Guenther <rguenther@suse.de>
160 * fold-const.c (fold_unary_loc): Do not strip sign-changes
163 2011-07-07 Richard Guenther <rguenther@suse.de>
165 * tree-vrp.c (simplify_conversion_using_ranges): New function.
166 (simplify_stmt_using_ranges): Call it.
168 2011-07-07 Kai Tietz <ktietz@redhat.com>
170 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
171 (lookup_logical_inverted_value): Likewise.
172 (simplify_bitwise_binary_1): Likewise.
173 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
175 2011-07-07 Joseph Myers <joseph@codesourcery.com>
177 * gcc.c (%[Spec]): Don't document.
178 (struct spec_list): Update comment.
179 (do_spec_1): Don't handle %[Spec].
180 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
182 2011-07-07 Joseph Myers <joseph@codesourcery.com>
184 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
185 default based on TARGET_ASM_NAMED_SECTION.
186 * common/common-target.def (have_named_sections): Default to true.
187 * common/config/default-common.c: Don't include tm.h.
188 * common/config/picochip/picochip-common.c
189 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
190 * common/config/m32c/m32c-common.c: Remove.
191 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
192 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to
194 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
196 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
198 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
199 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to
201 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
204 2011-07-07 Jakub Jelinek <jakub@redhat.com>
207 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
208 operands and last COMPONENT_REF operand call gimplify_expr on it
211 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
214 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
216 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
219 * configure.ac (gcc_cv_as_hidden): Also accept
220 x86_64-*-solaris2.1[0-9]*.
221 (gcc_cv_as_cfi_directive): Likewise.
222 (gcc_cv_as_comdat_group_group): Likewise.
223 (set_have_as_tls): Likewise.
224 * configure: Regenerate.
225 * config.gcc (i[34567]86-*-solaris2*): Also handle
226 x86_64-*-solaris2.1[0-9]*.
227 * config.host (i[34567]86-*-solaris2*): Likewise.
228 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
229 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
230 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
231 (TARGET_LD_EMULATION): Use it.
232 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
233 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
234 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
235 (ASM_CPU64_DEFAULT_SPEC): Define.
236 (ASM_CPU_SPEC): Use %(asm_cpu_default).
237 (ASM_SPEC): Redefine.
238 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
239 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
240 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*):
242 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
244 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
246 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
248 * config/sol2.h (ASM_SPEC): Split into ...
249 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
250 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
251 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
252 (ASM_SPEC): Use ASM_SPEC_BASE.
253 * config/sparc/sol2.h (ASM_SPEC): Redefine.
255 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
257 * config/avr/avr.md (*reload_insi): Change predicate #1 to
258 const_int_operand. Ditto for peep2 producing this insn.
259 Add argument to output_reload_insisf call.
260 (*movsi,*movsf): Add argument to output_movsisf call.
261 (*reload_insf): New insn and new peep2 to produce it.
262 * config/avr/avr-protos.h (output_movsisf): Change prototype.
263 (output_reload_insisf): Change prototype.
264 * config/avr/avr.c (avr_asm_len): New function.
265 (output_reload_insisf): Rewrite.
266 (output_movsisf): Change prototype. output_reload_insisf for
267 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
268 (adjust_insn_length): Add argument to output_movsisf and
269 output_reload_insisf call.
271 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
273 * emit-rtl.c (paradoxical_subreg_p): New function.
274 * rtl.h (paradoxical_subreg_p): Declare.
275 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
276 apply_distributive_law, simplify_comparison, simplify_set): Use it.
277 * cse.c (record_jump_cond, cse_insn): Likewise.
278 * expr.c (force_operand): Likewise.
279 * rtlanal.c (num_sign_bit_copies1): Likewise.
280 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
281 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
282 (push_reload): Use precision to check for paradoxical subregs.
283 * expmed.c (extract_bit_field_1): Likewise.
285 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
286 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
287 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
288 simplify_set, simplify_logical, expand_compound_operation,
289 make_extraction, force_to_mode, if_then_else_cond, extended_count,
290 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
291 record_value_for_reg): Likewise.
292 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
293 * simplify-rtx. c (simplify_unary_operation_1,
294 simplify_binary_operation_1, simplify_const_relational_operation):
297 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
298 instead of GET_MODE_BITSIZE where appropriate.
299 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
300 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
301 init_num_sign_bit_copies_in_rep): Likewise.
302 * cse.c (fold_rtx, cse_insn): Likewise.
303 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
304 * simplify-rtx.c (simplify_unary_operation_1,
305 simplify_const_unary_operation, simplify_binary_operation_1,
306 simplify_const_binary_operation, simplify_ternary_operation,
307 simplify_const_relational_operation, simplify_subreg): Likewise.
308 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
309 simplify_if_then_else, simplify_set, expand_compound_operation,
310 expand_field_assignment, make_extraction, if_then_else_cond,
311 make_compound_operation, force_to_mode, make_field_assignment,
312 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
313 extended_count, try_widen_shift_mode, simplify_shift_const_1,
314 simplify_comparison, record_promoted_value, simplify_compare_const,
315 record_dead_and_set_regs_1): Likewise.
318 * simplify-rtx.c (simplify_const_binary_operation): Use the
319 shift_truncation_mask hook instead of performing modulo by
320 width. Compare against mode precision, not bitsize.
321 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
322 Use shift_truncation_mask instead of constructing the value
325 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
327 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
329 (rs6000_save_toc_in_prologue_p): Ditto.
331 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
332 up the static chain (r11) during indirect function calls.
333 (-msave-toc-indirect): New undocumented debug switch.
335 * config/rs6000/rs6000.c (struct machine_function): Add
336 save_toc_in_prologue field to note whether the prologue needs to
337 save the TOC value in the reserved stack location.
338 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
339 to save the TOC in the prologue, do so.
340 (rs6000_trampoline_init): Don't allow creating AIX style
341 trampolines if -mno-r11 is in effect.
342 (rs6000_call_indirect_aix): New function to create AIX style
343 indirect calls, adding support for -mno-r11 to suppress loading
344 the static chain, and saving the TOC in the prologue instead of
346 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
349 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
352 (STATIC_CHAIN_REGNUM): Ditto.
353 (ARG_POINTER_REGNUM): Ditto.
354 (SFP_REGNO): Delete, unused.
355 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
356 function descriptor offsets.
357 (TOC_SAVE_OFFSET_64BIT): Ditto.
358 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
359 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
360 (AIX_FUNC_DESC_SC_32BIT): Ditto.
361 (AIX_FUNC_DESC_SC_64BIT): Ditto.
362 (ptrload): New mode attribute for the appropriate load of a
364 (call_indirect_aix32): Delete, rewrite AIX indirect function
366 (call_indirect_aix64): Ditto.
367 (call_value_indirect_aix32): Ditto.
368 (call_value_indirect_aix64): Ditto.
369 (call_indirect_nonlocal_aix32_internal): Ditto.
370 (call_indirect_nonlocal_aix32): Ditto.
371 (call_indirect_nonlocal_aix64_internal): Ditto.
372 (call_indirect_nonlocal_aix64): Ditto.
373 (call): Rewrite AIX indirect function calls. Add support for
374 eliminating the static chain, and for moving the save of the TOC
375 to the function prologue.
377 (call_indirect_aix<ptrsize>): Ditto.
378 (call_indirect_aix<ptrsize>_internal): Ditto.
379 (call_indirect_aix<ptrsize>_internal2): Ditto.
380 (call_indirect_aix<ptrsize>_nor11): Ditto.
381 (call_value_indirect_aix<ptrsize>): Ditto.
382 (call_value_indirect_aix<ptrsize>_internal): Ditto.
383 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
384 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
385 (call_nonlocal_aix32): Relocate in the rs6000.md file.
386 (call_nonlocal_aix64): Ditto.
388 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
389 -mno-r11 documentation.
391 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
394 * doc/extend.texi (Compound Literals): Fix typo.
396 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
398 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
401 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
403 * configure.ac (plugin-version.h): Generate
404 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
405 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
408 * configure: Regenerate.
410 * doc/plugins.texi (Building GCC plugins): Mention
411 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
413 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
415 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
416 * combine.c (make_extraction, gen_lowpart_or_truncate,
417 apply_distributive_law, simplify_comparison,
418 reg_truncated_to_mode, record_truncated_value): Use it.
419 * cse.c (notreg_cost): Likewise.
420 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
421 * expr.c (convert_move, convert_modes): Likewise.
422 * optabs.c (expand_binop, expand_unop): Likewise.
423 * postreload.c (move2add_last_label): Likewise.
424 * regmove.c (optimize_reg_copy_3): Likewise.
425 * rtlhooks.c (gen_lowpart_general): Likewise.
426 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
428 2011-07-06 Joseph Myers <joseph@codesourcery.com>
430 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
432 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
434 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
435 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
436 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
437 (simplify_const_unary_operation, simplify_binary_operation_1,
438 simplify_const_binary_operation,
439 simplify_const_relational_operation): Use them. Use
440 GET_MODE_MASK for masking and sign-extensions.
441 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
442 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
443 simplify_shift_const_1, simplify_comparison): Likewise.
444 * expr.c (convert_modes): Likewise.
445 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
446 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag):
448 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
450 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
452 2011-07-06 Richard Guenther <rguenther@suse.de>
454 PR tree-optimization/49645
455 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
457 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
458 in type qualification here ...
459 (copy_reference_ops_from_ref): ... not here.
460 (vn_reference_lookup_3): ... or here.
461 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
462 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
464 2011-07-06 Ian Lance Taylor <iant@google.com>
466 * doc/install.texi (Configuration): It's
467 --enable-gnu-indirect-function, not --enable-indirect-function.
469 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
471 * simplify-rtx.c (simplify_const_binary_operation): Use the
472 shift_truncation_mask hook instead of performing modulo by
473 width. Compare against mode precision, not bitsize.
474 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
475 Use shift_truncation_mask instead of constructing the value
478 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
481 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
482 address computation and convert to address_mode if needed.
484 2011-07-06 Richard Guenther <rguenther@suse.de>
486 * tree.c (build_common_tree_nodes_2): Merge with
487 build_common_tree_nodes.
488 * tree.h (build_common_tree_nodes): Adjust prototype.
489 (build_common_tree_nodes_2): Remove.
490 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
491 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
493 2011-07-05 Jakub Jelinek <jakub@redhat.com>
495 PR tree-optimization/49618
496 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
497 t recurse on the decl.
498 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
499 return true if expr isn't known to be defined in current
500 TU or some other LTO partition.
502 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
504 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
505 override CASE_VALUES_THRESHOLD.
507 * stmt.c (toplevel): Include params.h.
508 (case_values_threshold): Use the --param case-values-threshold
509 value if non-zero, otherwise use machine dependent value.
510 (expand_case): Use case_values_threshold.
512 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
514 * doc/invoke.texi (--param case-values-threshold): Document.
516 2011-07-05 Richard Henderson <rth@redhat.com>
518 * dwarf2out.c (dwarf2out_cfi_label): Make static.
519 (dwarf2out_flush_queued_reg_saves): Make static.
520 (dwarf2out_reg_save): Remove.
521 (dwarf2out_return_save): Remove.
522 (dwarf2out_return_reg): Remove.
523 (dwarf2out_reg_save_reg): Remove.
524 (dwarf2out_def_cfa): Merge into ...
525 (dwarf2out_frame_init): ... here.
526 * dwarf2out.h, tree.h: Remove declarations as necessary.
528 2011-07-05 Richard Henderson <rth@redhat.com>
530 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
531 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
532 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
535 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
536 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
537 (process_epilogue): Don't call dwarf2out_def_cfa.
539 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
540 indicate the return address save.
541 (process_cfa_register): Likewise.
543 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
544 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
546 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
547 for ar.pfs save at alloc insn.
549 2011-07-05 Richard Henderson <rth@redhat.com>
551 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
552 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
553 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
555 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
556 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
557 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
558 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
560 2011-07-05 Richard Henderson <rth@redhat.com>
562 * config/vax/vax.md (define_c_enum unspecv): New. Define the
563 VUNSPEC_* constants here instead of via define_constants.
564 (VUNSPEC_PEM): New constant.
565 (procedure_entry_mask): New insn.
566 (prologue): New expander.
567 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
568 (vax_expand_prologue): Rename from vax_output_function_prologue;
569 emit rtl instead of text.
570 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
571 (print_operand): Add 'x' prefix.
573 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
576 * calls.c (precompute_register_parameters): Promote the function
577 argument before checking non-legitimate constant.
579 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
581 PR tree-optimization/47654
582 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
583 (lst_do_strip_mine_loop): Return an int.
584 (lst_do_strip_mine): Same.
585 (scop_do_strip_mine): Same.
586 (scop_do_block): Loop blocking should strip-mine at least two loops.
587 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
588 (scop_do_interchange): Same.
589 * graphite-poly.h (scop_do_interchange): Update declaration.
590 (scop_do_strip_mine): Same.
592 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
594 * graphite-clast-to-gimple.c (precision_for_value): Removed.
595 (precision_for_interval): Removed.
596 (gcc_type_for_interval): Use mpz_sizeinbase.
598 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
600 * graphite-ppl.h (value_max): Correct computation of max.
602 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
604 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
606 2011-07-05 Richard Guenther <rguenther@suse.de>
608 * c-decl.c (c_init_decl_processing): Defer building common
609 tree nodes to c_common_nodes_and_builtins.
611 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
613 PR tree-optimization/49580
614 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
615 the loop's number of iterations.
616 * tree-parloops.c (transform_to_exit_first_loop): Add the
617 handling of the loop's number of iterations before the call
618 to gimple_duplicate_sese_tail.
619 Insert the stmt caclculating the new rhs of the loop's
620 condition stmt to the preheader instead of iters_bb.
622 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
624 PR rtl-optimization/47449
625 * fwprop.c (forward_propagate_subreg): Don't propagate hard
626 register nor zero/sign extended hard register.
628 2011-07-05 Richard Guenther <rguenther@suse.de>
630 PR tree-optimization/49518
631 PR tree-optimization/49628
632 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
633 irrelevant and invariant data-references.
634 (vect_analyze_data_ref_access): For invariant loads clear the
637 2011-07-04 Jakub Jelinek <jakub@redhat.com>
639 PR rtl-optimization/49619
640 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
641 pass VOIDmode as op0_mode to recursive call, and return temp even
642 when different from tor, just if it is not IOR of the original
645 PR rtl-optimization/49472
646 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
647 negating MULT, negate the second operand instead of first.
648 (simplify_binary_operation_1) <case MULT>: If one operand is
649 a NEG and the other is MULT, don't attempt to optimize by
650 negation of the MULT operand if it only moves the NEG operation
654 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
655 get_current_def return value if it can't be trusted to be
656 the current value of the variable in the current bb.
658 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
661 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
662 general register to memory for !TARGET_INTER_UNIT_MOVES.
664 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
667 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
668 instead of TREE_READONLY.
670 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
672 * doc/extend.texi (AVR Built-in Functions): Update documentation
673 of __builtin_avr_fmul*.
674 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
675 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
676 * config/avr/avr.md (fmul): Rename to fmul_insn.
677 (fmuls): Rename to fmuls_insn.
678 (fmulsu): Rename to fmulsu_insn.
679 (fmul,fmuls,fmulsu): New expander.
680 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
681 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
682 * config/avr/libgcc.S (__fmul): New function.
683 (__fmuls): New function.
684 (__fmulsu,__fmulsu_exit): New function.
686 2011-07-04 Richard Guenther <rguenther@suse.de>
688 PR tree-optimization/49615
689 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
690 basic-block index check.
692 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
694 * longlong.h (count_leading_zeros, count_trailing_zeros,
695 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
698 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
700 PR tree-optimization/49610
701 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
704 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
705 Olivier Hainque <hainque@adacore.com>
706 Nicolas Setton <setton@adacore.com>
708 * tree.h (TYPE_ARTIFICIAL): New flag.
709 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
710 the DIE of the type if it is artificial.
711 (gen_array_type_die): Likewise.
712 (gen_enumeration_type_die): Likewise.
713 (gen_struct_or_union_type_die): Likewise.
714 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
715 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
717 2011-07-01 Jakub Jelinek <jakub@redhat.com>
719 * tree-object-size.c (pass_through_call): Handle
720 BUILT_IN_ASSUME_ALIGNED.
722 2011-07-01 Martin Jambor <mjambor@suse.cz>
724 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
726 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
729 * explow.c (update_nonlocal_goto_save_area): Use proper mode
731 * function.c (expand_function_start): Likewise.
733 2011-07-01 Richard Guenther <rguenther@suse.de>
736 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
737 may have unknown refs.
739 2011-07-01 Kai Tietz <ktietz@redhat.com>
741 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
743 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
745 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
746 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
747 (Specific, mips-sgi-irix6): Likewise.
749 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
752 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
754 2011-07-01 Jakub Jelinek <jakub@redhat.com>
756 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
757 [idx]= and [idx1 ... idx2]= before initializers if needed for
760 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
762 * config.gcc (score-*-elf): Remove score7.o.
763 * config/score/t-score-elf: Likewise.
764 * config/score/score.c: Merge score7 to score.c and
765 remove forwarding functions.
766 * config/score/score7.c: Deleted.
767 * config/score/score7.h: Deleted.
769 2011-07-01 Richard Guenther <rguenther@suse.de>
771 PR tree-optimization/49603
772 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
774 2011-06-30 Martin Jambor <mjambor@suse.cz>
776 * tree-sra.c (struct access): Rename total_scalarization to
777 grp_total_scalarization
778 (completely_scalarize_var): New function.
779 (sort_and_splice_var_accesses): Set total_scalarization in the
780 representative access.
781 (analyze_access_subtree): Propagate total scalarization accross the
782 tree, no holes in totally scalarized trees, simplify coverage
784 (analyze_all_variable_accesses): Call completely_scalarize_var instead
785 of completely_scalarize_record.
787 2011-06-30 Richard Henderson <rth@redhat.com>
789 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
790 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
791 * config/i386/i386.c: Don't include dwarf2out.h.
792 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
793 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
794 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
795 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
796 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
798 2011-06-30 Richard Henderson <rth@redhat.com>
800 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
801 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
802 * final.c (final_scan_insn): Look for it, and invoke
803 dwarf2out_frame_debug before the insn if found.
805 2011-06-30 Richard Henderson <rth@redhat.com>
807 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
808 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
810 2011-06-30 Richard Henderson <rth@redhat.com>
812 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
813 Define a vector of this type.
814 (regs_saved_in_regs): Use a VEC.
815 (num_regs_saved_in_regs): Remove.
816 (compare_reg_or_pc): New.
817 (record_reg_saved_in_reg): Split out from...
818 (dwarf2out_flush_queued_reg_saves): ... here.
819 (clobbers_queued_reg_save): Update for VEC.
820 (reg_saved_in): Likewise.
821 (dwarf2out_frame_debug_init): Likewise.
822 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
823 (dwarf2out_frame_debug_cfa_register): Likewise.
825 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
827 PR tree-optimization/49572
828 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
829 type of the RHS instead of that of the LHS for the expression type.
831 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
833 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
836 2011-06-30 Richard Guenther <rguenther@suse.de>
838 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
839 * tree-ssa-structalias.c (create_variable_info_for): Do not
840 add initial constraints for non-var-decls. Properly handle
841 globals in other ltrans partitions.
842 (intra_create_variable_infos): Manually create constraints for
843 the fake no-alias parameter.
844 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
845 and assert there are no clones.
847 2011-06-30 Richard Guenther <rguenther@suse.de>
849 PR tree-optimization/46787
850 * tree-data-ref.c (dr_address_invariant_p): Remove.
851 (find_data_references_in_stmt): Invariant accesses are ok now.
852 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
853 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
856 2011-06-30 Martin Jambor <mjambor@suse.cz>
858 PR tree-optimization/49094
859 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
860 (build_accesses_from_assign): Use it.
862 2011-06-30 Jakub Jelinek <jakub@redhat.com>
864 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
865 handling of BUILT_IN_ASSUME_ALIGNED.
868 * dwarf2out.c (output_abbrev_section): Don't return early
869 if abbrev_die_table_in_use is 1.
870 (dwarf2out_finish): Instead don't call output_abbrev_section
871 nor emit abbrev_section_label in that case.
873 2011-06-30 Nick Clifton <nickc@redhat.com>
875 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
878 2011-06-30 Jakub Jelinek <jakub@redhat.com>
880 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
881 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
883 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
885 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
886 both pattern and original statements if necessary.
887 (vect_transform_loop): Likewise.
888 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
889 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
890 Mark the pattern statement only if the original statement doesn't
892 (process_use): Call vect_mark_relevant with additional parameter.
893 (vect_mark_stmts_to_be_vectorized): Likewise.
894 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
895 (vect_analyze_stmt): Handle both pattern and original statements
897 (vect_transform_stmt): Don't store vectorized pattern statement
898 in the original statement.
899 (vect_is_simple_use_1): Use related pattern statement only if the
900 original statement is irrelevant.
901 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
903 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
905 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
907 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
909 (TARGET_AVX128_OPTIMAL): New definition.
910 * config/i386/i386.c (initial_ix86_tune_features): Initialize
911 X86_TUNE_AVX128_OPTIMAL entry.
912 (ix86_option_override_internal): Enable the generation
913 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
914 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
915 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
917 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
919 PR tree-optimization/49539
920 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
921 names by means of stmt_references_abnormal_ssa_name.
922 (associate_plusminus): Call can_propagate_from before propagating
923 from definition statements.
924 (ssa_forward_propagate_and_combine): Remove superfluous newline.
926 2011-06-29 Richard Guenther <rguenther@suse.de>
928 * doc/invoke.texi: Document -scev dump modifier.
929 * tree-pass.h (TDF_SCEV): New dump flag.
930 * tree-dump.c (dump_option_value_in): Add scev.
931 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
932 * tree-scalar-evolution.c: Likewise.
934 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
936 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
937 (cxa_type_match): Correct declaration.
938 (__gnu_unwind_pr_common): Reconstruct additional indirection
939 when __cxa_type_match returns succeeded_with_ptr_to_base.
941 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
943 PR rtl-optimization/49114
944 * reload.c (struct replacement): Remove SUBREG_LOC member.
945 (push_reload): Do not set it.
946 (push_replacement): Likewise.
947 (subst_reload): Remove dead code.
948 (copy_replacements): Remove assertion.
949 (copy_replacements_1): Do not handle SUBREG_LOC.
950 (move_replacements): Likewise.
951 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
952 Detect subregs via recursive descent instead of via SUBREG_LOC.
954 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
956 * config/avr/avr.c (avr_encode_section_info): Dispatch to
957 default_encode_section_info.
959 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
961 PR tree-optimization/49545
962 * builtins.c (get_object_alignment_1): Update function comment.
963 Do not use DECL_ALIGN for functions, but test
964 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
965 * fold-const.c (get_pointer_modulus_and_residue): Don't check
967 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
969 2011-06-29 Jakub Jelinek <jakub@redhat.com>
972 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
973 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
975 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
978 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
979 about uninitialized data attributed 'progmem' from here...
980 (avr_encode_section_info): ...to this new function.
981 (TARGET_ENCODE_SECTION_INFO): New define.
982 (avr_section_type_flags): For data in ".progmem.data", remove
983 section flag SECTION_WRITE.
985 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
987 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
989 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
990 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
991 (__umulhisi3): Ditto.
992 * config/avr/avr.md (mulhisi3): New insn expender.
993 (umulhisi3): New insn expender.
994 (*mulhisi3_call): New insn.
995 (*umulhisi3_call): New insn.
997 2011-06-28 Joseph Myers <joseph@codesourcery.com>
999 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
1001 2011-06-28 Richard Henderson <rth@redhat.com>
1003 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
1004 all code and arguments that handled pushes. Update all callers.
1006 2011-06-28 Richard Henderson <rth@redhat.com>
1008 * config/arm/arm.c (arm_output_function_prologue): Don't call
1009 thumb1_output_function_prologue.
1010 (arm_expand_prologue): Avoid dead store.
1011 (number_of_first_bit_set): Use ctz_hwi.
1012 (thumb1_emit_multi_reg_push): New.
1013 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
1014 to emit the entire prologue as rtl.
1015 (thumb1_output_interwork): Split out from
1016 thumb1_output_function_prologue.
1017 (thumb1_output_function_prologue): Remove.
1018 (arm_attr_length_push_multi): Handle thumb1.
1019 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
1020 (prologue_thumb1_interwork): New.
1021 (*push_multi): Allow thumb1; use push_mult_memory_operand.
1022 * config/arm/predicates.md (push_mult_memory_operand): New.
1024 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1026 * config/sparc/sync.md (*stbar): Delete.
1027 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
1029 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
1031 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
1033 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1035 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
1036 (TARGET_64BIT_DEFAULT): Define.
1037 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
1039 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
1041 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1043 * common.opt (in_lto_p): New Variable entry.
1044 * flags.h (in_lto_p): Move to common.opt.
1045 * gcc.c: Include params.h.
1046 (set_option_handlers): Also use common_handle_option and
1047 target_handle_option.
1048 (main): Call global_init_params, finish_params and init_options_struct.
1049 * opts.c (debug_type_names): Move from toplev.c.
1050 (print_filtered_help): Access quiet_flag through opts pointer.
1051 (common_handle_option): Return early in the driver for some options.
1052 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
1054 * toplev.c (in_lto_p): Move to common.opt.
1055 (debug_type_names): Move to opts.c.
1056 * Makefile.in (OBJS): Remove opts.o.
1057 (OBJS-libcommon-target): Add opts.o.
1058 (gcc.o): Update dependencies.
1060 2011-06-28 Kai Tietz <ktietz@redhat.com>
1062 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
1064 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1066 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
1067 with '=' constraint modifier.
1068 (*divdf3_vfp): Likewise.
1069 ("*mulsf3_vfp"): Likewise.
1070 ("*muldf3_vfp"): Likewise.
1071 ("*mulsf3negsf_vfp"): Likewise.
1072 ("*muldf3negdf_vfp"): Likewise.
1074 2011-06-28 Nick Clifton <nickc@redhat.com>
1076 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
1077 relaxation when performing an incremental link.
1079 2011-06-28 Kai Tietz <ktietz@redhat.com>
1081 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
1082 within BB from last to first.
1084 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1086 * genattr-common.c: New. Based on genattr.c.
1087 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
1088 (MOSTLYCLEANFILES): Add insn-attr-common.h.
1089 (opts.o): Update dependencies.
1090 (.PRECIOUS): Add insn-attr-common.h.
1091 (simple_rtl_generated_h): Add insn-attr-common.h.
1092 (build/genattr-common.o): New.
1093 (genprogrtl): Add attr-common.
1094 * genattr.c (main): Include insn-attr-common.h. Don't generate
1095 definitions of DELAY_SLOTS or INSN_SCHEDULING.
1096 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
1098 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
1100 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
1101 avr-*-* and avr-*-rtems* targets.
1103 * config/avr/elf.h: New file.
1104 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
1105 (TARGET_ASM_SELECT_SECTION): Define.
1106 (INIT_SECTION_ASM_OP): Undefine.
1107 (FINI_SECTION_ASM_OP): Undefine.
1108 (READONLY_DATA_SECTION_ASM_OP): Undefine.
1109 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
1110 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
1112 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
1113 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
1114 (MAX_OFILE_ALIGNMENT): Move to elf.h.
1115 (STRING_LIMIT): Move to elf.h.
1116 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
1117 (ASM_DECLARE_OBJECT_NAME): Remove.
1119 (ASM_OUTPUT_SKIP): Remove.
1120 (DWARF2_DEBUGGING_INFO): Remove.
1121 (OBJECT_FORMAT_ELF): Remove.
1122 (USER_LABEL_PREFIX): Remove.
1123 (ASM_OUTPUT_EXTERNAL): Remove.
1124 (ASM_OUTPUT_ASCII): Remove.
1125 (TYPE_ASM_OP): Remove.
1126 (SIZE_ASM_OP): Remove.
1127 (WEAK_ASM_OP): Remove.
1128 (STRING_ASM_OP): Remove.
1129 (SET_ASM_OP): Remove.
1130 (ASM_WEAKEN_LABEL): Remove.
1131 (TYPE_OPERAND_FMT): Remove.
1132 (ASM_DECLARE_FUNCTION_SIZE): Remove.
1133 (ASM_FINISH_DECLARE_OBJECT): Remove.
1134 (NO_DOLLAR_IN_LABEL): Remove.
1135 (ASM_GENERATE_INTERNAL_LABEL): Remove.
1136 (ASM_OUTPUT_CASE_LABEL): Remove.
1137 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
1138 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
1139 (gas_output_ascii): Remove.
1140 (gas_output_limited_string): Remove.
1141 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1142 * config/avr/avr-protos.h
1143 (gas_output_ascii): Remove prototye.
1144 (gas_output_limited_string): Remove prototype.
1146 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
1149 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
1152 2011-06-27 Jan Hubicka <jh@suse.cz>
1154 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
1155 node instead of references in node.
1157 2011-06-27 Richard Henderson <rth@redhat.com>
1159 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
1160 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
1163 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1165 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
1167 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
1168 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
1169 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1170 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
1171 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
1172 (evaluate_stmt, execute_fold_all_builtins): Handle
1173 BUILT_IN_ASSUME_ALIGNED.
1174 * tree-ssa-dce.c (propagate_necessity): Likewise.
1175 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1176 call_may_clobber_ref_p_1): Likewise.
1177 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
1178 (expand_builtin_assume_aligned): New function.
1179 * doc/extend.texi (__builtin_assume_aligned): Document.
1182 * cselib.c (promote_debug_loc): If cselib_preserve_constants
1183 and l has two DEBUG_INSN owned locs instead of just one, adjust
1184 the second location's setting_insn too.
1186 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1189 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
1191 2011-06-27 Nick Clifton <nickc@redhat.com>
1193 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
1194 bit position of highest bit set into a count of the high zero bits.
1196 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1198 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
1200 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1203 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
1206 2011-06-27 Richard Guenther <rguenther@suse.de>
1208 PR tree-optimization/49394
1209 * passes.c (execute_one_pass): Restore current_pass after
1210 applying IPA transforms.
1212 2011-06-27 Kai Tietz <ktietz@redhat.com>
1214 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
1215 out of type precision after operation.
1216 (find_bswap): Take for limit value the integer auto-promotion
1219 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1221 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1222 forward scan as well.
1224 2011-06-27 Tristan Gingold <gingold@adacore.com>
1227 * config/vms/vms-protos.h: New file.
1228 * config/vms/vms-crtlmap.map: New file.
1229 * config/vms/vms.c: New file.
1230 * config/vms/make-crtlmap.awk: New file.
1231 * config/vms/vms-crtl.h: File removed.
1232 * config/vms/vms-crtl-64.h: File removed.
1233 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
1234 * config/alpha/vms64.h: Do not include vms-crtl-64.h
1235 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
1236 clear some builtins on VMS. Calls vms_patch_builtins.
1237 (avms_asm_output_external): Remove.
1238 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
1239 (struct crtl_name_spec): Remove
1240 (DO_CTRL_NAMES): Remove.
1241 * config/ia64/vms.h (struct crtl_name_spec): Remove
1242 (DO_CTRL_NAMES): Remove.
1243 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
1244 clear some builtins on VMS. Calls vms_patch_builtins.
1245 (ia64_asm_output_external): Remove DO_CRTL_NAME.
1246 * config/ia64/vms64.h: Do not include vms-crtl-64.h
1247 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
1249 2011-06-27 Tristan Gingold <gingold@adacore.com>
1251 * config/alpha/alpha.c (alpha_end_function): Always generate .end
1254 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1256 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
1257 the function receives nonlocal gotos.
1259 2011-06-27 Richard Guenther <rguenther@suse.de>
1261 PR tree-optimization/49536
1262 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1263 For non-scalar inner types use a scalar type according to
1264 the scalar inner mode.
1266 2011-06-27 Richard Guenther <rguenther@suse.de>
1268 PR tree-optimization/49365
1269 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
1271 2011-06-27 Richard Guenther <rguenther@suse.de>
1273 PR tree-optimization/49169
1274 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
1275 the alignment of function decls.
1277 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
1280 * config/darwin.c (darwin_mergeable_string_section): Place string
1281 constants in '.cstring' rather than '.const' when CF/NSStrings are
1284 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
1286 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
1287 (emit_save_register_window): Likewise.
1288 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
1289 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
1290 Swap back %o7/%i7 in register naming.
1292 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
1295 * config/darwin.c (darwin_override_options): Improve warning when
1296 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
1297 is given with fpie/fPIE.
1298 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
1299 * config/darwin9.h (PIE_SPEC): New.
1301 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
1303 * timevar.c (timevar_print): Increase width for display of timevar
1306 2011-06-24 Jakub Jelinek <jakub@redhat.com>
1309 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
1310 instead of TYPE_CHAIN for chain_next for types.
1312 2011-06-24 Richard Henderson <rth@redhat.com>
1314 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
1315 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
1316 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
1317 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
1318 (sparc_flat_expand_prologue): Emit individual instructions
1319 instead of one of the above.
1321 2011-06-24 Easwaran Raman <eraman@google.com>
1323 PR rtl-optimization/49429
1325 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
1326 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
1327 used to copy y into x.
1328 * calls.c (initialize_argument_information): Mark
1329 an argument addressable if it is passed by invisible reference.
1330 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
1331 if it is passed by reference.
1333 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
1335 PR rtl-optimization/49504
1336 * rtlanal.c (nonzero_bits1): Properly handle addition or
1337 subtraction of a pointer in Pmode if pointers extend unsigned.
1338 (num_sign_bit_copies1): Likewise.
1340 2011-06-24 Martin Jambor <mjambor@suse.cz>
1342 PR tree-optimizations/49516
1343 * tree-sra.c (sra_modify_assign): Choose the safe path for
1344 aggregate copies if we also did scalar replacements.
1346 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1349 * config/arm/predicates.md (add_operator): New.
1350 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
1352 2011-06-24 Andi Kleen <ak@linux.intel.com>
1354 * tree-sra.c (type_internals_preclude_sra_p): Add msg
1355 parameter. Split up ifs and report reason in *msg.
1357 (find_var_candiate): Add msg variable.
1358 Split up ifs and report reason to reject.
1359 (find_param_candidates): Add msg variable.
1360 Pass msg to type_internals_preclude_sra_p.
1362 2011-06-23 Jeff Law <law@redhat.com>
1365 * reload.h (reload): Change to return a bool.
1366 * ira.c (ira): If requested by reload, run a fast DCE pass after
1367 reload has completed. Fix comment typo.
1368 * reload1.c (need_dce): New file scoped static.
1369 (reload): Set reload_completed here. Return whether or not a DCE
1370 pass after reload is needed.
1371 (delete_dead_insn): Set need_dce as needed.
1374 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
1375 to detect threading through joiner block. If there was already
1376 an edge to the new target, then do not change the PHI nodes.
1378 2011-06-23 Jakub Jelinek <jakub@redhat.com>
1380 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1381 get_pointer_alignment to see if base isn't sufficiently aligned.
1383 2011-06-23 Jan Hubicka <jh@suse.cz>
1385 PR tree-optimize/49373
1386 * tree-pass.h (all_late_ipa_passes): Declare.
1387 * cgraphunit.c (init_lowered_empty_function): Fix properties.
1388 (cgraph_optimize): Execute late passes; remove unreachable funcions
1389 after materialization.
1390 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
1392 * passes.c (all_late_ipa_passes): Declare.
1393 (dump_passes, register_pass): Handle late ipa passes.
1394 (init_optimization_passes): Move ipa_pta to late passes; schedule
1395 fixup_cfg at beggining of all_passes.
1396 (apply_ipa_transforms): New function.
1397 (execute_one_pass): When doing simple ipa pass, apply all transforms.
1399 2011-06-23 Joseph Myers <joseph@codesourcery.com>
1401 * params.c: Include common/common-target.h. Don't include tm.h.
1402 (lang_independent_params): Move from toplev.c.
1403 (global_init_params): New.
1404 * params.h (global_init_params): Declare.
1405 * target.def (default_params): Move to common-target.def.
1406 * toplev.c (lang_independent_options): Remove.
1407 (lang_independent_params): Move to params.c.
1408 (general_init): Use global_init_params.
1409 * common/common-target.def (option_default_params): Move from
1411 * common/config/ia64/ia64-common.c: Include params.h.
1412 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1414 * common/config/rs6000/rs6000-common.c: Include params.h.
1415 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1417 * common/config/sh/sh-common.c: Include params.h.
1418 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1420 * common/config/spu/spu-common.c: Include params.h.
1421 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1423 * config/ia64/ia64.c (ia64_option_default_params,
1424 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
1425 * config/rs6000/rs6000.c (rs6000_option_default_params,
1426 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
1427 * config/sh/sh.c (sh_option_default_params,
1428 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
1429 * config/spu/spu.c (spu_option_default_params,
1430 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
1431 * Makefile.in (OBJS): Remove params.o.
1432 (OBJS-libcommon-target): Add params.o.
1433 (params.o, $(common_out_object_file)): Update dependencies.
1434 * doc/tm.texi: Regenerate.
1436 2011-06-23 Alan Modra <amodra@gmail.com>
1439 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
1440 invocation for 2011-06-09 changes.
1442 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1445 * omp-low.c (expand_omp_for_static_nochunk): Only
1446 use n ceil/ nthreads size for the first n % nthreads threads in the
1447 team instead of all threads except for the last few ones which
1448 get less work or none at all.
1451 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
1454 2011-06-22 Richard Guenther <rguenther@suse.de>
1456 PR tree-optimization/49493
1457 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
1458 Refer to the alias target of variables.
1459 (associate_varinfo_to_alias_1): Remove.
1460 (ipa_pta_execute): Do not associate aliases with anything.
1461 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
1462 (cgraph_function_node): Likewise.
1463 (cgraph_function_or_thunk_node): Likewise.
1464 (varpool_variable_node): Likewise.
1466 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1468 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
1469 * config.gcc (arm*-*-linux*): Default to gnu tls.
1470 (arm*-*-*): Add --with-tls option.
1471 (all_defaults): Add 'tls'.
1473 2011-06-22 Richard Henderson <rth@redhat.com>
1475 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
1476 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1477 (dwarf2out_frame_debug_cfa_window_save): Rename from
1478 dwarf2out_window_save; make static.
1479 * tree.h (dwarf2out_window_save): Don't declare.
1481 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
1482 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1483 (emit_save_register_window): Rename from gen_save_register_window;
1484 emit the insn and add REG_CFA_* notes.
1485 (sparc_expand_prologue): Update to match.
1486 * config/sparc/sparc.md (save_register_window_1): Simplify from
1487 save_register_window<P:mode>.
1489 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
1492 * config/i386/i386.md (*lea_general_2): Always allow SImode.
1493 (*lea_general_2_zext): Likewise.
1494 (imul to lea peepholes): Use const359_operand and check
1495 TARGET_PARTIAL_REG_STALL.
1497 * config/i386/predicates.md (const359_operand): New.
1499 2011-06-22 Michael Matz <matz@suse.de>
1501 * cgraphunit.c (assemble_thunk): Use correct return type.
1503 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
1504 Dmitry Melnik <dm@ispras.ru>
1506 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1507 (neon_output_shift_immediate): Ditto.
1508 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1510 (neon_output_shift_immediate): Ditto.
1511 * config/arm/neon.md (vashl<mode>3): Modified constraint.
1512 (vashr<mode>3_imm): New insn pattern.
1513 (vlshr<mode>3_imm): Ditto.
1514 (vashr<mode>3): Modified constraint.
1515 (vlshr<mode>3): Ditto.
1516 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1518 (imm_for_neon_rshift_operand): Ditto.
1519 (imm_lshift_or_reg_neon): Ditto.
1520 (imm_rshift_or_reg_neon): Ditto.
1522 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1524 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1526 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1527 builtin calls even if likelyvalue is not CONSTANT.
1528 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1529 Return get_value_for_expr of first operand
1530 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1531 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1532 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1533 their non-checking counterparts.
1534 (call_may_clobber_ref_p_1): Likewise.
1535 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1536 like their non-checking counterparts.
1537 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1538 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1539 like their non-checking counterparts.
1540 (find_func_clobbers): Likewise.
1541 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1542 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1544 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1545 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1546 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1547 of base type reference as argument.
1548 (resolve_addr_in_expr): Likewise. Fix keep computation.
1549 (convert_descriptor_to_signed): Renamed to...
1550 (convert_descriptor_to_mode): ... this. For wider types convert to
1551 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
1552 (typed_binop): New function.
1553 (scompare_loc_descriptor, ucompare_loc_descriptor,
1554 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1555 default to unsigned type instead of signed.
1558 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1559 (gimple_build_debug_source_bind_stat): New prototype.
1560 (gimple_build_debug_source_bind): Define.
1561 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1562 gimple_debug_source_bind_get_value,
1563 gimple_debug_source_bind_get_value_ptr,
1564 gimple_debug_source_bind_set_var,
1565 gimple_debug_source_bind_set_value): New inlines.
1566 * gimple.c (gimple_build_debug_source_bind_stat): New function.
1567 * gimple-pretty-print.c (dump_gimple_debug): Handle
1568 GIMPLE_DEBUG_SOURCE_BIND.
1569 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1570 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1571 * tree-parloops.c (eliminate_local_variables,
1572 separate_decls_in_region): Likewise.
1573 (separate_decls_in_region_debug): Renamed from
1574 separate_decls_in_region_debug_bind. Handle
1575 gimple_debug_source_bind_p.
1576 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
1578 (DECL_HAS_DEBUG_ARGS_P): Define.
1579 (struct tree_function_decl): Add has_debug_args_flag field.
1580 * tree.c (debug_args_for_decl): New variable.
1581 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
1582 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
1583 (rewrite_debug_stmt_uses): New function.
1584 (rewrite_stmt): Use it to rewrite debug stmt uses.
1585 * rtl.def (DEBUG_PARAMETER_REF): New.
1586 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
1587 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
1588 DEBUG_PARAMETER_REF.
1589 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
1590 * print-rtl.c (print_rtx): Likewise.
1591 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
1592 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
1593 debug stmts in the first bb.
1594 * tree-inline.c (remap_ssa_name): If remapping default def
1595 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
1596 a source bind debug stmt.
1597 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
1598 (maybe_move_debug_stmts_to_successors): Likewise.
1599 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
1600 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
1601 debug args vector from old_decl to new_decl.
1602 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
1603 or modified parameters, add debug bind stmts before call
1604 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
1605 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
1606 on DECL_DEBUG_EXPRs from debug args vector.
1607 (expand_debug_source_expr): New function.
1608 (expand_debug_locations): Use it for source bind insns.
1609 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
1610 * var-tracking.c (prepare_call_arguments): Add debug args
1611 to call_arguments if any.
1612 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
1613 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
1614 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
1615 (get_ref_die_offset, parameter_ref_descriptor): New functions.
1616 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
1617 (gen_subprogram_die): Handle parameters identified by
1618 DEBUG_PARAMETER_REF.
1620 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1622 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
1623 * doc/install.texi (Configuration): Document --with-tls.
1624 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
1625 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
1626 (arm_tls_descseq_addr): New.
1627 (legitimize_tls_address): Add tlsdesc support.
1628 (arm_cannot_copy_insn_p): Check for tlscall.
1629 (arm_emit_tls_decoration): Likewise.
1630 * config/arm/arm.h (TARGET_GNU2_TLS): New.
1631 (OPTION_DEFAULT_SPECS): Add with-tls support.
1632 * config/arm/arm.md (R1_REGNUM): Define.
1634 * config/arm/arm.opt (tls_type): New enumeration type and values.
1635 (mtls-dialect): New switch.
1636 * config/arm/arm-opts.h (enum tls_type): New.
1638 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
1640 * attribs.c (register_attribute): Added assert to check that all
1641 attribute specs are registered with a name that is not empty and
1642 does not start with '_'.
1643 (decl_attributes): Avoid the lookup of the "naked" attribute spec
1644 if the function has no attributes.
1645 * tree.c (is_attribute_with_length_p): Removed.
1646 (is_attribute_p): Removed.
1647 (private_is_attribute_p): New.
1648 (private_lookup_attribute): New.
1649 (lookup_attribute): Removed.
1650 (lookup_ident_attribute): New.
1651 (remove_attribute): Require the first argument to be in the form
1652 'text', not '__text__'. Updated asserts.
1653 (merge_attributes): Use lookup_ident_attributes instead of
1655 (merge_dllimport_decl_attributes): Use remove_attribute.
1656 (attribute_list_contained): Likewise.
1657 (attribute_list_equal): Immediately return 1 if the arguments are
1659 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
1660 'int'. Require the first argument to be in the form 'text', not
1661 '__text__'. Require the second argument to be an identifier.
1662 (lookup_attribute): Made inline. Require the first argument to be
1663 in the form 'text', not '__text__'.
1664 (private_is_attribute_p, private_lookup_attribute): New.
1667 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1669 * builtins.c: Add sync_ or SYNC__ to builtin names.
1670 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1671 * omp-low.c: Add sync_ or SYNC__ to builtin names.
1673 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1676 * config/avr/avr.md (extzv): New expander.
1678 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1679 * config/avr/constraints.md (C04): New constraint.
1680 * doc/md.texi (Machine Constraints): Document it.
1682 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1685 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1686 unsignedp argument instead of 1 for clrsb_optab.
1687 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1688 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
1689 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1690 * optabs.c (widen_leading): Call widen_operand and expand_unop
1691 with 0 as unsignedp argument instead of 1 for clrsb_optab.
1692 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1694 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1696 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1698 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
1700 * gensupport.c (add_define_attr): New static function.
1701 (is_predicable): Allow multi-alternative lists for the "predicable"
1703 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1704 (process_one_cond_exec): Call alter_attrs_for_insn.
1705 * doc/md.texi (Defining Attributes): Mention some standard names.
1706 (Conditional Execution): Update documentation for "predicable".
1708 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1709 __builtin_clrsbll): Document.
1710 * doc/rtl.texi (clrsb): New entry.
1711 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1712 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1713 (expand_unop): Handle clrsb_optab.
1714 (init_optabs): Initialize it.
1715 * optabs.h (enum optab_index): New entry OTI_clrsb.
1716 (clrsb_optab): Define.
1717 * genopinit.c (optabs): Add an entry for it.
1718 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1719 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1720 BUILT_IN_CLRSBLL): New.
1721 * rtl.def (CLRSB): New code.
1722 * dwarf2out.c (mem_loc_descriptor): Handle it.
1723 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1724 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1726 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1727 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1728 (__ctzDI2): Move declaration.
1729 * config/bfin/bfin.md (clrsbsi2): New expander.
1730 (signbitssi2): Use the CLRSB rtx.
1731 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1732 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1734 2011-06-21 Richard Guenther <rguenther@suse.de>
1736 * ipa-inline-transform.c (inline_transform): Fix previous change.
1738 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
1740 PR tree-optimization/49478
1741 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1742 with constant operand.
1744 2011-06-21 Richard Guenther <rguenther@suse.de>
1746 * ipa-inline-transform.c (inline_transform): Fix typo.
1748 2011-06-21 Richard Guenther <rguenther@suse.de>
1750 PR tree-optimization/49483
1751 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1752 VIEW_CONVERT_EXPR conversions.
1754 2011-06-21 Joseph Myers <joseph@codesourcery.com>
1756 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1757 * config/avr/avr-tables.opt: New file (generated).
1758 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1759 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1761 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1762 (avr_option_override): Don't process -mmcu= argument here. Set
1763 avr_current_device using avr_mcu_index.
1764 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1765 * config/avr/avr.opt (mmcu=): Use Enum.
1766 * config/avr/t-avr (avr-devices.o): Update dependencies.
1767 ($(srcdir)/config/avr/avr-tables.opt): New.
1768 * target.def (help): Remove.
1769 * doc/tm.texi.in (TARGET_HELP): Remove.
1770 * doc/tm.texi: Regenerate.
1771 * opts.c: Don't include target.h.
1772 (common_handle_option): Don't call targetm.help.
1773 * system.h (TARGET_HELP): Poison.
1774 * Makefile.in (opts.o): Update dependencies.
1776 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1778 * config/usegld.h: New file.
1779 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1780 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1781 (LIB_SPEC): Likewise. Search /lib.
1782 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1783 (RDYNAMIC_SPEC): Handle GNU ld.
1784 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1786 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1787 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1788 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1789 (STACK_CHECK_STATIC_BUILTIN): Define.
1790 * config/sol2.opt (compat-bsd): Remove.
1791 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1792 * config/sol2-bi.h: New file.
1793 * config/sol2-gld.h: Remove.
1794 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1795 (NO_DBX_BNSYM_ENSYM): Remove.
1796 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1797 (STACK_CHECK_STATIC_BUILTIN): Remove.
1798 Test USE_GLD instead of TARGET_GNU_LD.
1799 * config/i386/sol2-10.h: Rename to ...
1800 * config/i386/sol2-bi.h .. this.
1801 (SUBTARGET_EXTRA_SPECS): Redefine.
1802 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1803 (MULTILIB_DEFAULTS): Remove.
1804 (DEFAULT_ARCH32_P): Define.
1805 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1806 (ARCH64_SUBDIR): Define.
1807 Test USE_GLD instead of TARGET_GNU_LD.
1808 (I386_EMULATION): Rename to ...
1809 (ARCH32_EMULATION): ... this.
1810 (X86_64_EMULATION): Rename to ...
1811 (ARCH64_EMULATION): ... this.
1812 (TARGET_LD_EMULATION): Remove.
1813 (LINK_ARCH_SPEC): Remove.
1814 * config/i386/sol2-gas.h: Remove.
1815 * config/i386/t-sol2-10: Rename to ...
1816 * config/i386/t-sol2-64: ... this.
1817 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1818 (AS_SPARC64_FLAG): Define.
1819 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1820 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1821 depending on TARGET_CPU_DEFAULT.
1822 (CPP_CPU_SPEC): Redefine.
1823 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1824 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1825 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1826 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1827 ASM_ARCH_DEFAULT_SPEC): Redefine.
1828 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1829 LINK_ARCH_DEFAULT_SPEC.
1830 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1831 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1832 (ARCH64_SUBDIR): Define.
1833 (LINK_ARCH64_SPEC): Redefine.
1834 (CC1_SPEC): Redefine.
1835 (OPTION_DEFAULT_SPECS): Redefine.
1836 (MULTILIB_DEFAULTS): Define.
1837 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1838 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1839 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1840 (NO_DBX_BNSYM_ENSYM): Remove.
1841 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1842 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1843 (TARGET_ASM_NAMED_SECTION): Likewise.
1844 (STACK_CHECK_STATIC_BUILTIN): Remove.
1845 * config/sparc/sol2-bi.h: Remove.
1846 * config/sparc/sol2-gas-bi.h: Remove.
1847 * config/sparc/sol2-gas.h: Remove.
1848 * config/sparc/sol2-gld-bi.h: Remove.
1849 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1851 (*-*-solaris2*): ... here.
1853 2011-06-21 Christian Bruel <christian.bruel@st.com>
1856 * ipa-inline.c (can_inline_edge_p): Check
1857 !DECL_DISREGARD_INLINE_LIMITS.
1859 2011-06-21 Christian Bruel <christian.bruel@st.com>
1862 * cgraphunit.c (process_function_and_variable_attributes): warn when
1863 always_inline functions that are not inline.
1864 * ipa-inline-transform.c (inline_transform): Always call
1866 * tree-inline.c (tree_inlinable_function_p): Use error instead
1868 (expand_call_inline): Likewise.
1870 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1872 * Makefile.in (dg_target_exps): Set.
1873 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1874 instead of 7, try to divide it more evenly.
1876 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1879 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1880 (avx256_split_unaligned_store): New definition.
1881 (ix86_option_override_internal): Enable avx256 unaligned load/store
1882 splitting only when avx256_split_unaligned_load/store is set.
1884 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1886 * regrename.c (scan_rtx_reg): Handle the case where we write to an
1887 open chain in a smaller mode without failing the entire block.
1889 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1892 * combine.c (cant_combine_insn_p): Don't check zero/sign
1893 extended hard registers.
1895 2011-06-21 Alan Modra <amodra@gmail.com>
1897 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1898 CONST high part large-toc address.
1899 (rs6000_tls_referenced_p): Make static.
1900 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1902 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1905 * combine.c (cant_combine_insn_p): Check zero/sign extended
1908 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1911 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1912 one of the operands is a register.
1914 2011-06-20 Kai Tietz <ktietz@redhat.com>
1916 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1917 operations in combination with binary and.
1919 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1921 * regrename.c (do_replace): Don't update notes.
1923 2011-06-20 Alan Modra <amodra@gmail.com>
1925 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1926 of toc-relative address in CONST.
1927 (rs6000_delegitimize_address): Recognize changed address.
1928 (rs6000_legitimize_reload_address): Likewise.
1929 (rs6000_emit_move): Don't force these constants to memory.
1930 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1931 toc-relative address in CONST.
1932 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1933 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1935 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1937 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1938 (count_trailing_zeros): Likewise.
1940 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1943 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1944 .init_array can be used with .ctors on targets.
1945 * configure: Regenerated.
1947 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1949 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1950 if the element type is volatile.
1952 2011-06-18 Jan Hubicka <jh@suse.cz>
1954 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1956 (lto_symtab_resolve_can_prevail_p): Likewise.
1957 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1958 * cgraphbuild.c (record_reference): Remove extra body alias code.
1959 (mark_load): Likewise.
1960 (mark_store): Likewise.
1961 * cgraph.h (varpool_node): Remove extra_name filed;
1962 add alias_of and extraname_alias.
1963 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1964 (varpool_alias_aliased_node): New inline function.
1965 (varpool_variable_node): New function.
1966 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1967 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1968 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1969 (input_varpool_node): Likewise.
1970 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1971 (varpool_externally_visible_p): Remove extra body alias code.
1972 (function_and_variable_visibility): Likewise.
1973 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1974 (ipa_pta_execute): Use it.
1975 * varpool.c (varpool_remove_node): Remove extra name alias code.
1976 (varpool_mark_needed_node): Likewise.
1977 (varpool_analyze_pending_decls): Analyze aliases.
1978 (assemble_aliases): New functoin.
1979 (varpool_assemble_decl): Use it.
1980 (varpool_create_variable_alias): New function.
1981 (varpool_extra_name_alias): Rewrite.
1982 (varpool_for_node_and_aliases): New function.
1984 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1987 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1988 last_arg_constant and last argument doesn't match its predicate,
1989 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1990 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1991 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1992 spelling of error message.
1993 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1994 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1995 const_0_to_255_operand instead of const_int_operand.
1998 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
2000 * config/i386/sse.md (blendbits): Remove mode attribute.
2001 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2002 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2003 Check integer value of operand 3 in insn constraint.
2005 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
2007 PR rtl-optimization/48542
2008 * reload.c (find_equiv_reg): Stop looking when finding a
2010 * reload1.c (reload_as_needed): Invalidate all reload
2011 registers when crossing a setjmp-type call.
2013 2011-06-16 Jeff Law <law@redhat.com>
2015 * tree-ssa-threadupdate.c (struct redirection_data): New field
2017 (THREAD_TARGET2): Define.
2018 (redirection_data_eq): Also check that the intermediate edge is equal.
2019 (lookup_redirection_data): Drop useless argument. Extract the
2020 outgoing_edge and intermediate edge from E. Callers updated.
2021 (copy_phi_args, update_destination_phis): New functions.
2022 (fix_duplicate_block_edges): Likewise.
2023 (create_edge_and_update_destination_phis): Duplicate all the edges
2024 hung off e->aux. Use copy_phi_args.
2025 (create_duplicates): Use fix_duplicate_block_edges.
2026 (fixup_template_block): Likewise.
2027 (redirect_edges): If necessary, redirect the joiner block's incoming
2028 edge to the duplicate of the joiner block.
2029 (thread_block): Don't muck up loops when threading through a joiner
2031 (thread_through_loop_header): Handle threading through a joiner block.
2032 (mark_threaded_blocks, register_jump_thread): Likewise.
2033 * tree-flow.h (register_jump_thread): Add new argument. Callers
2035 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
2036 (thread_across_edge): Handle threading through a joiner block.
2038 2011-06-16 Martin Jambor <mjambor@suse.cz>
2040 PR tree-optimization/49343
2041 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
2042 calculate offset, provide 2nd operand for the new COMPONENT_REF.
2044 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
2046 * config/darwin-protos.h (machopic_select_rtx_section): Move to
2047 inside RTX_CODE ifdef.
2049 2011-06-16 Tom de Vries <tom@codesourcery.com>
2052 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
2053 Disallow NULL pointer for pointer arithmetic.
2055 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2059 2011-06-10 Wei Guozhi <carrot@google.com>
2062 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
2063 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
2064 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2066 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2068 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2069 (arm_legitimate_ldrd_p): New prototype.
2070 (arm_output_ldrd): New prototype.
2071 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2072 (arm_legitimate_ldrd_p): New function.
2073 (arm_output_ldrd): New function.
2075 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2078 * doc/tm.texi.in: Update Copyright date.
2079 * doc/tm.texi: Regenerate.
2080 * targhooks.c (default_setup_incoming_varargs): Replace
2081 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2082 (default_pretend_outgoing_varargs_named): Likewise.
2083 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2084 (hook_callee_copies_named): Likewise.
2085 (default_function_arg_advance): Likewise.
2086 (default_function_arg): Likewise.
2087 (default_function_incoming_arg): Likewise.
2088 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2089 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2090 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2091 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2092 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2093 * targhooks.h (default_setup_incoming_varargs): Likewise.
2094 (default_pretend_outgoing_varargs_named): Likewise.
2095 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2096 (hook_callee_copies_named): Likewise.
2097 (default_function_arg_advance): Likewise.
2098 (default_function_arg): Likewise.
2099 (default_function_incoming_arg): Likewise.
2100 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2101 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2102 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2103 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2104 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2105 * target.def (pass_by_reference): Likewise.
2106 (setup_incoming_varargs, strict_argument_naming): Likewise.
2107 (pretend_outgoing_varargs_named, callee_copies): Likewise.
2108 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
2109 (function_incoming_arg): Likewise.
2110 * target.h: Don't include "tm.h" .
2111 (cumulative_args_t): New typedef.
2112 [GCC_TM_H] (get_cumulative_args): New static inline function.
2113 [GCC_TM_H] (pack_cumulative_args): Likewise.
2114 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
2115 argument type with cumulative_args_t.
2116 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
2117 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
2118 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2119 (frv_arg_partial_bytes, frv_function_arg): Likewise.
2120 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
2121 (frv_function_arg_1): Likewise.
2122 * config/s390/s390.c (s390_pass_by_reference): Likewise.
2123 (s390_function_arg_advance, s390_function_arg): Likewise.
2124 * config/m32c/m32c.c (m32c_function_arg): Likewise.
2125 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
2126 (m32c_strict_argument_naming): Likewise.
2127 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
2128 (spu_function_arg_advance): Likewise.
2129 (spu_setup_incoming_varargs): Likewise. Make static.
2130 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
2132 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
2133 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2134 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
2135 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
2136 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
2137 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
2138 (mep_pass_by_reference, mep_function_arg): Likewise.
2139 (mep_function_arg_advance): Likewise.
2140 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2141 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
2142 (m32r_function_arg, m32r_function_arg_advance): Likewise.
2143 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
2144 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
2145 (ix86_function_arg, ix86_pass_by_reference): Likewise.
2146 (ix86_setup_incoming_varargs): Likewise.
2147 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2148 (sh_strict_argument_naming): Likewise.
2149 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
2150 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
2151 (sh_function_arg_advance, sh_function_arg): Likewise.
2152 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2153 (pdp11_function_arg_advance): Likewise.
2154 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2156 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
2157 * config/avr/avr.c (avr_function_arg): Likewise.
2158 (avr_function_arg_advance): Likewise.
2159 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
2160 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
2161 (xtensa_function_arg_1): Likewise.
2162 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
2164 (xstormy16_function_arg): Likewise.
2165 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2166 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2167 (fr30_function_arg_advance): Likewise.
2168 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2169 (lm32_function_arg, lm32_function_arg_advance): Likewise.
2170 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2171 (moxie_function_arg, moxie_function_arg_advance): Likewise.
2172 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
2173 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2174 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
2175 (cris_function_arg, cris_function_incoming_arg): Likewise.
2176 (cris_function_arg_advance, cris_function_arg_1): Likewise.
2177 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2178 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
2179 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
2180 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2181 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
2182 (mn10300_arg_partial_bytes): Likewise.
2183 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2184 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
2185 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
2186 (ia64_function_arg_1): Likewise.
2187 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2188 (m68k_function_arg): Likewise.
2189 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
2190 (rs6000_function_arg, setup_incoming_varargs): Likewise.
2191 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
2192 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
2193 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
2194 (picochip_arg_advance): Likewise.
2195 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2196 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
2197 (mcore_function_arg_advance): Likewise.
2198 * config/score/score.c (score_pass_by_reference): Likewise.
2199 (score_function_arg_advance): Likewise.
2200 (score_arg_partial_bytes): Likewise. Make static.
2201 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
2202 * config/arm/arm.c (arm_arg_partial_bytes): Replace
2203 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2204 (arm_function_arg, arm_function_arg_advance): Likewise.
2205 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
2206 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2207 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
2208 (pa_function_arg): Likewise.
2209 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
2210 (mips_function_arg, mips_function_arg_advance): Likewise.
2211 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
2212 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
2213 * config/vax/vax.c (vax_function_arg): Likewise.
2214 (vax_function_arg_advance): Likewise.
2215 * config/h8300/h8300.c (h8300_function_arg): Likewise.
2216 (h8300_function_arg_advance): Likewise.
2217 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2218 (v850_strict_argument_naming, v850_function_arg): Likewise.
2219 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
2220 (v850_setup_incoming_varargs): Likewise.
2221 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2222 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
2223 (mmix_function_arg, mmix_pass_by_reference): Likewise.
2224 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
2226 * config/bfin/bfin.c (setup_incoming_varargs): Replace
2227 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2228 (bfin_function_arg_advance, bfin_function_arg): Likewise.
2229 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
2230 * calls.c (emit_call_1): Change type of args_so_far to
2231 cumulative_args_t. Changed all callers.
2232 (initialize_argument_information): Likewise.
2233 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
2234 * dse.c (get_call_args): Likewise.
2235 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2236 * function.c (pass_by_reference, reference_callee_copied): Likewise.
2237 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
2238 New member args_so_far_v. Changed all users.
2239 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
2240 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2241 * config/mips/mips.c (mips_output_args_xfer): Likewise.
2242 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2243 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2244 * config/microblaze/microblaze.c (microblaze_expand_prologue):
2246 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
2247 m32r_pass_by_reference.
2249 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
2251 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
2252 argument to be a VEC of statements.
2253 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
2254 assert that pattern statements have to have their vector type set.
2255 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
2256 Change the first argument to be a VEC of statements. Update
2258 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
2259 (vect_handle_widen_mult_by_const): New function.
2260 (vect_recog_widen_mult_pattern): Change the first argument to be a
2261 VEC of statements. Update documentation. Check that the constant is
2262 INTEGER_CST. Support multiplication by a constant that fits an
2263 intermediate type - call vect_handle_widen_mult_by_const.
2264 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
2265 call. Handle additional pattern statements if necessary.
2267 2011-06-16 Nick Clifton <nickc@redhat.com>
2270 * config.gcc: Set cpu_type to v850 for any V850 architecture.
2271 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
2272 md_file, extra_modes, out_file and extra_options are these are all
2273 deduced from cpu_type.
2275 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2277 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
2278 truncation mask to 63.
2280 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2284 * longlong.h: Add AVR support:
2285 (count_leading_zeros): New macro.
2286 (count_trailing_zeros): New macro.
2287 (COUNT_LEADING_ZEROS_0): New macro.
2288 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
2289 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
2290 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
2291 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
2292 (LIB2FUNCS_EXCLUDE): Add _clz.
2293 * config/avr/libgcc.S (XCALL): Move up in file.
2294 (XJMP): New C Macro.
2295 (DEFUN): New asm macro.
2296 (ENDF): New asm macro.
2297 (__ffssi2): New function.
2298 (__ffshi2): New function.
2299 (__loop_ffsqi2): New function.
2300 (__ctzsi2): New function.
2301 (__ctzhi2): New function.
2302 (__clzdi2): New function.
2303 (__clzsi2): New function.
2304 (__clzhi2): New function.
2305 (__paritydi2): New function.
2306 (__paritysi2): New function.
2307 (__parityhi2): New function.
2308 (__parityqi2): New function.
2309 (__popcounthi2): New function.
2310 (__popcountsi2): New function.
2311 (__popcountdi2): New function.
2312 (__popcountqi2): New function.
2313 (__bswapsi2): New function.
2314 (__bswapdi2): New function.
2315 (__ashldi3): New function.
2316 (__ashrdi3): New function.
2317 (__lshrdi3): New function.
2318 Fix suspicous lines.
2320 2011-06-16 Richard Guenther <rguenther@suse.de>
2322 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
2324 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
2326 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
2327 equality compares against zero for the lower bit.
2329 2011-06-16 Jakub Jelinek <jakub@redhat.com>
2331 PR tree-optimization/49419
2332 * tree-vrp.c (execute_vrp): Call init_range_assertions
2333 before estimate_numbers_of_iterations, call
2334 free_number_of_iterations_estimates before calling
2335 remove_range_assertions.
2337 2011-06-16 Revital Eres <revital.eres@linaro.org>
2339 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
2340 (struct partial_schedule): Add rows_length field.
2341 (verify_partial_schedule): Check rows_length.
2342 (ps_insert_empty_row): Handle rows_length.
2343 (create_partial_schedule): Likewise.
2344 (free_partial_schedule): Likewise.
2345 (reset_partial_schedule): Likewise.
2346 (create_ps_insn): Remove rest_count argument.
2347 (remove_node_from_ps): Update rows_length.
2348 (add_node_to_ps): Update rows_length and call create_ps_insn
2349 without passing row_rest_count.
2350 (rotate_partial_schedule): Update rows_length.
2352 2011-06-16 Revital Eres <revital.eres@linaro.org>
2354 * ddg.c (add_intra_loop_mem_dep): New function.
2355 (build_intra_loop_deps): Call it.
2357 2011-06-13 Jeff Law <law@redhat.com>
2359 * df-problems.c (df_lr_local_compute): Manually CSE
2360 PIC_OFFSET_TABLE_REGNUM.
2361 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
2362 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
2364 2011-06-13 Jan Hubicka <jh@suse.cz>
2366 * cgraphunit.c (handle_alias_pairs): New function.
2367 (cgraph_finalize_compilation_unit): Use it.
2368 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
2369 as externally visible.
2371 2011-06-15 Richard Guenther <rguenther@suse.de>
2373 * expr.c (expand_expr_real_2): Reduce all integral types to
2375 (expand_expr_real_1): Likewise.
2377 2011-06-15 Martin Jambor <mjambor@suse.cz>
2379 PR tree-optimization/48613
2380 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
2381 ipa_node_params_vector is NULL.
2383 2011-06-15 Jakub Jelinek <jakub@redhat.com>
2386 * dwarf2out.c (dw_loc_list_node): Add force field.
2387 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
2388 location in the list, even if it is modified before first real insn.
2389 (output_loc_list): Emit empty ranges with force flag set.
2390 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
2392 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
2395 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
2396 (fence_to_rewind). Use it to notice when bookkeeping will be placed
2397 above a fence. Update comments.
2398 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
2399 placed just above it. Do not allow NULL place_to_insert.
2401 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
2403 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
2404 (slpeel_tree_peel_loop_to_edge): Don't call
2405 remove_dead_stmts_from_loop.
2406 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2407 remove irrelevant pattern statements. For irrelevant statements
2408 check if it is the last statement of a detected pattern, use
2409 corresponding pattern statement instead.
2410 (destroy_loop_vec_info): No need to remove pattern statements,
2411 only free stmt_vec_info.
2412 (vect_transform_loop): For irrelevant statements check if it is
2413 the last statement of a detected pattern, use corresponding
2414 pattern statement instead.
2415 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
2416 pattern statements. Set basic block for the new statement.
2417 (vect_pattern_recog): Update documentation.
2418 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
2419 operands of pattern statements.
2420 (vectorizable_call): Fix printing. In case of a pattern statement
2421 use the lhs of the original statement when creating a dummy
2422 statement to replace the original call.
2423 (vect_analyze_stmt): For irrelevant statements check if it is
2424 the last statement of a detected pattern, use corresponding
2425 pattern statement instead.
2426 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
2427 statements use gsi of the original statement.
2429 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2431 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
2432 common/common-target-def.h.
2433 * target.def (default_target_flags, handle_option,
2434 supports_split_stack, optimization_table, init_struct,
2435 except_unwind_info, unwind_tables_default, have_named_sections):
2436 Move to common/common-target.def.
2437 * target.h (enum opt_levels, struct default_options): Move to
2438 common/common-target.h.
2439 * targhooks.c (default_except_unwind_info,
2440 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2441 default_target_handle_option, empty_optimization_table): Move to
2442 common/common-targhooks.c.
2443 * targhooks.h (default_except_unwind_info,
2444 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2445 default_target_handle_option, empty_optimization_table): Move to
2446 common/common-targhooks.h.
2447 * common/common-target-def.h: Include common/common-targhooks.h.
2448 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
2450 * common/common-target.def (handle_option, option_init_struct,
2451 option_optimization_table, default_target_flags,
2452 except_unwind_info, supports_split_stack, unwind_tables_default,
2453 have_named_sections): Move from target.def.
2454 (HOOK_PREFIX): Undefine at end of file.
2455 * common/common-target.h: Include input.h.
2456 (enum opt_levels, struct default_options): Move from target.h.
2457 * common/common-targhooks.c, common/common-targhooks.h: New.
2458 * config.gcc (target_has_targetm_common): Default to yes.
2459 (moxie*): Set target_has_targetm_common=no.
2460 (hppa*-*-*): Don't set target_has_targetm_common=yes.
2461 * doc/tm.texi: Regenerate.
2462 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
2463 (C_TARGET_DEF_H): Add common/common-targhooks.h.
2464 (GCC_OBJS): Remove vec.o.
2465 (OBJS): Remove hooks.o and vec.o.
2466 (OBJS-libcommon-target): Add vec.o, hooks.o and
2467 common/common-targhooks.o.
2468 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
2469 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
2470 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
2471 cfglayout.o, $(out_object_file), $(common_out_object_file)):
2472 Update dependencies.
2473 (common/common-targhooks.o): New.
2474 * common/config/default-common.c: Include tm.h. Add FIXME comment.
2475 * common/config/pa/pa-common.c: Include more headers. Take
2476 copyright dates from pa.c.
2477 (pa_option_optimization_table, pa_handle_option,
2478 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
2479 TARGET_HANDLE_OPTION): Move from pa.c.
2480 * common/config/alpha/alpha-common.c,
2481 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
2482 common/config/bfin/bfin-common.c,
2483 common/config/cris/cris-common.c,
2484 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
2485 common/config/h8300/h8300-common.c,
2486 common/config/i386/i386-common.c,
2487 common/config/ia64/ia64-common.c,
2488 common/config/iq2000/iq2000-common.c,
2489 common/config/lm32/lm32-common.c,
2490 common/config/m32c/m32c-common.c,
2491 common/config/m32r/m32r-common.c,
2492 common/config/m68k/m68k-common.c,
2493 common/config/mcore/mcore-common.c,
2494 common/config/mep/mep-common.c,
2495 common/config/microblaze/microblaze-common.c,
2496 common/config/mips/mips-common.c,
2497 common/config/mmix/mmix-common.c,
2498 common/config/mn10300/mn10300-common.c,
2499 common/config/pdp11/pdp11-common.c,
2500 common/config/picochip/picochip-common.c,
2501 common/config/rs6000/rs6000-common.c,
2502 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2503 common/config/score/score-common.c, common/config/sh/sh-common.c,
2504 common/config/sparc/sparc-common.c,
2505 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2506 common/config/vax/vax-common.c,
2507 common/config/xstormy16/xstormy16-common.c,
2508 common/config/xtensa/xtensa-common.c: New.
2509 * config/alpha/alpha.c: Include common/common-target.h.
2510 (alpha_option_optimization_table, alpha_handle_option,
2511 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2512 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2513 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2514 * config/arm/arm.c (arm_option_optimization_table,
2515 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2516 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2518 * config/avr/avr.c (avr_option_optimization_table,
2519 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2521 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2522 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2523 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2524 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2525 * config/cris/cris.c (cris_option_optimization_table,
2526 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2527 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2529 * config/fr30/fr30.c (fr30_option_optimization_table,
2530 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2532 * config/frv/frv.c (frv_option_optimization_table,
2533 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2534 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2535 * config/h8300/h8300.c (h8300_option_optimization_table,
2536 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2537 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2538 * config/i386/i386-protos.h (ix86_handle_option): Declare.
2539 * config/i386/i386.c: Include common/common-target.h.
2540 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2541 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2542 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2543 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2544 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2545 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2546 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2547 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2548 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2549 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2550 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2551 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2552 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2553 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2554 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2555 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2556 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2557 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2558 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2559 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2560 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2561 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2562 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2563 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2564 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2565 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2566 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2567 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2568 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2569 ix86_option_optimization_table, ix86_option_init_struct,
2570 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2571 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2572 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
2574 * config/i386/t-i386 (i386.o): Update dependencies.
2575 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
2576 * config/ia64/ia64.c (ia64_option_optimization_table,
2577 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2578 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2579 ia64_handle_option): Move to ia64-common.c.
2580 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2581 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
2582 * config/lm32/lm32.c (lm32_option_optimization_table,
2583 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2585 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
2587 * config/m32r/m32r.c (m32r_option_optimization_table,
2588 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2589 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2590 m32r_handle_option): Move to m32r-common.c.
2591 (m32r_memory_move_cost): Remove comment referring to
2592 TARGET_HANDLE_OPTION.
2593 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
2594 Move to m68k-common.c.
2595 * config/mcore/mcore.c (mcore_option_optimization_table,
2596 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2597 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
2598 * config/mep/mep.c (mep_option_optimization_table,
2599 mep_handle_option, TARGET_HANDLE_OPTION,
2600 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
2601 Move to mep-common.c.
2602 * config/microblaze/microblaze.c
2603 (microblaze_option_optimization_table,
2604 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2605 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
2606 * config/mips/mips.c (mips_handle_option,
2607 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2608 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
2610 * config/mmix/mmix.c (mmix_option_optimization_table,
2611 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2612 Move to mmix-common.c.
2613 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2614 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
2615 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2616 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
2617 * config/pa/pa.c: Include common/common-target.h.
2618 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2619 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2620 pa_handle_option): Move to pa-common.c.
2621 (pa_option_override): Use targetm_common.except_unwind_info.
2622 (pa_asm_output_mi_thunk, pa_function_section): Use
2623 targetm_common.have_named_sections.
2624 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
2625 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2626 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2627 pdp11_handle_option, pdp11_option_init_struct): Move to
2629 * config/picochip/picochip.c (picochip_option_optimization_table,
2630 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2631 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2632 * config/rs6000/rs6000.c: Include common/common-target.h.
2633 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2634 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2635 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2636 rs6000_handle_option): Move to rs6000-common.c.
2637 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2638 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2639 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2640 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2641 * config/s390/s390.c (processor_flags_table,
2642 s390_option_optimization_table, s390_option_init_struct,
2643 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2644 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2645 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2646 * config/s390/s390.h (processor_flags_table): Declare.
2647 * config/score/score.c (score_option_optimization_table,
2648 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2649 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2650 score_handle_option): Move to score-common.c.
2651 * config/sh/sh.c (sh_option_optimization_table,
2652 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2653 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2654 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2655 * config/sparc/sparc.c: Include common/common-target.h.
2656 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2657 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2658 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2659 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2660 spu_option_init_struct): Move to spu-common.c.
2661 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2662 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2663 * config/v850/v850.c (small_memory_physical_max,
2664 v850_handle_memory_optionn v850_handle_option,
2665 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2666 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2668 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
2669 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2670 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2671 Move to xtensa-common.c.
2672 * cfglayout.c: Include common/common-target.h.
2673 (fixup_reorder_chain): Use targetm_common.have_named_sections.
2674 * cfgrtl.c: Include common/common-target.h.
2675 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2676 targetm_common.have_named_sections.
2677 * dbxout.c: Include common/common-target.h.
2678 (dbxout_function_end): Use targetm_common.have_named_sections.
2679 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2680 targetm_common.except_unwind_info.
2681 * dwarf2out.c: Include common/common-target.h.
2682 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2683 dwarf2out_begin_prologue, dwarf2out_frame_init,
2684 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2685 targetm_common.except_unwind_info.
2686 * except.c: Include common/common-target.h.
2687 (init_eh, finish_eh_generation,
2688 output_one_function_exception_table): Use
2689 targetm_common.except_unwind_info.
2690 (switch_to_exception_section): Use targetm_common.have_named_sections.
2691 * explow.c: Include common/common-target.h.
2692 * expr.c: Include common/common-target.h.
2693 (build_personality_function): Use targetm_common.except_unwind_info.
2694 * function.c: Include common/common-target.h.
2695 (expand_function_end): Use targetm_common.except_unwind_info.
2696 * haifa-sched.c: Include common/common-target.h.
2697 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2698 * lto-opts.c: Include common/common-target.h instead of target.h.
2699 (lto_reissue_options): Use targetm_common.handle_option.
2700 * opts.c: Include common/common-target.h.
2701 (target_handle_option): Use targetm_common.handle_option.
2702 (init_options_struct): Update comment referring to
2703 targetm.target_option.optimization. Use
2704 targetm_common.default_target_flags,
2705 targetm_common.unwind_tables_default and
2706 targetm_common.option_init_struct.
2707 (default_options_optimization): Use
2708 targetm_common.option_optimization_table.
2709 (finish_options): Use targetm_common.except_unwind_info,
2710 targetm_common.unwind_tables_default,
2711 targetm_common.have_named_sections and
2712 targetm_common.supports_split_stack.
2713 * toplev.c: Include common/common-target.h.
2714 (process_options): Use targetm_common.have_named_sections.
2715 * tree-tailcall.c: Include common/common-target.h.
2716 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2717 * tree.c: Include common/common-target.h.
2718 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2719 * varasm.c: Include common/common-target.h.
2720 (resolve_unique_section, hot_function_section,
2721 default_function_section): Use targetm_common.have_named_sections.
2723 2011-06-14 Easwaran Raman <eraman@google.com>
2725 PR rtl-optimization/44194
2726 * dse.c: Include tree-flow.h
2727 (insn_info): Add new field non_frame_wild_read.
2728 (group_info): Add new fields escaped_n and escaped_p.
2729 (kill_on_calls): New variable.
2730 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2731 (dse_step0): Initialize kill_on_calls.
2732 (can_escape): New function.
2733 (set_usage_bits): Add additional parameter; record information
2734 about escaped locations.
2735 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2736 (dse_step2_nospill): Set kill_on_calls based on
2737 group->escaped_n and group->escaped_n.
2738 (add_wild_read): Refactor into...
2739 (reset_active_stores): ... New function, and
2740 (free_read_records): ... New function.
2741 (add_non_frame_wild_read): New function.
2742 (scan_insn): Call add_non_frame_wild_read on non-const calls.
2743 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2744 (dse_step5_nospill): Call scan_reads_nospill for instructions
2745 marked as non_frame_wild_read.
2746 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2748 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2750 * common/common-target-def.h, common/common-target.def,
2751 common/common-target.h, common/config/default-common.c,
2752 common/config/pa/pa-common.c: New files.
2753 * Makefile.in (common_out_file, common_out_object_file,
2754 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2755 (OBJS-libcommon-target): Include $(common_out_object_file).
2756 (prefix.o): Update dependencies.
2757 ($(common_out_object_file), common/common-target-hooks-def.h,
2758 s-common-target-hooks-def-h): New.
2759 (s-tm-texi): Also check timestamp on common-target.def.
2760 (build/genhooks.o): Update dependencies.
2761 * config.gcc (common_out_file, target_has_targetm_common): Define.
2762 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2763 TARGET_ALWAYS_STRIP_DOTDOT.
2764 * configure.ac (common_out_object_file): Define.
2765 (common_out_file, common_out_object_file): Substitute.
2766 (common): Create directory.
2767 * configure: Regenerate.
2768 * doc/tm.texi.in (targetm_common): Document.
2769 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2770 * doc/tm.texi: Regenerate.
2771 * genhooks.c (hook_array): Also include common/common-target.def.
2772 * prefix.c (tm.h): Don't include.
2773 (common/common-target.h): Include.
2774 (ALWAYS_STRIP_DOTDOT): Don't define.
2775 (update_path): Use targetm_common.always_strip_dotdot instead of
2776 ALWAYS_STRIP_DOTDOT.
2777 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2779 2011-06-14 David Li <davidxl@google.com>
2781 * passes.c (execute_function_todo): Remove TODO_dump_func.
2782 (execute_one_pass): Remove TODO_dump_func.
2783 (execute_function_dump): New function.
2784 * tree-vrp.c: Remove TODO_dump_func.
2785 * regrename.c: Remove TODO_dump_func.
2786 * fwprop.c: Remove TODO_dump_func.
2787 * tree-into-ssa.c: Remove TODO_dump_func.
2788 * tree-complex.c: Remove TODO_dump_func.
2789 * tracer.c: Remove TODO_dump_func.
2790 * tree-loop-distribution.c: Remove TODO_dump_func.
2791 * postreload-gcse.c: Remove TODO_dump_func.
2792 * postreload.c: Remove TODO_dump_func.
2793 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2794 * tree-tailcall.c: Remove TODO_dump_func.
2795 * ipa-cp.c: Remove TODO_dump_func.
2796 * final.c: Remove TODO_dump_func.
2797 * tree-emutls.c: Remove TODO_dump_func.
2798 * omp-low.c: Remove TODO_dump_func.
2799 * tree-ssa-dse.c: Remove TODO_dump_func.
2800 * tree-ssa-uncprop.c: Remove TODO_dump_func.
2801 * auto-inc-dec.c: Remove TODO_dump_func.
2802 * reorg.c: Remove TODO_dump_func.
2803 * tree-ssa-copyrename.c: Remove TODO_dump_func.
2804 * tree-ssa-ccp.c: Remove TODO_dump_func.
2805 * compare-elim.c: Remove TODO_dump_func.
2806 * mode-switching.c: Remove TODO_dump_func.
2807 * modulo-sched.c: Remove TODO_dump_func.
2808 * tree-call-cdce.c: Remove TODO_dump_func.
2809 * cse.c: Remove TODO_dump_func.
2810 * web.c: Remove TODO_dump_func.
2811 * tree-stdarg.c: Remove TODO_dump_func.
2812 * lto-streamer-out.c: Remove TODO_dump_func.
2813 * tree-ssa-math-opts.c: Remove TODO_dump_func.
2814 * tree-ssa-dom.c: Remove TODO_dump_func.
2815 * tree-nrv.c: Remove TODO_dump_func.
2816 * loop-init.c: Remove TODO_dump_func.
2817 * gimple-low.c: Remove TODO_dump_func.
2818 * ipa-inline.c: Remove TODO_dump_func.
2819 * tree-ssa-sink.c: Remove TODO_dump_func.
2820 * jump.c: Remove TODO_dump_func.
2821 * ifcvt.c: Remove TODO_dump_func.
2822 * tree-ssa-loop.c: Remove TODO_dump_func.
2823 * recog.c: Remove TODO_dump_func.
2824 * dse.c: Remove TODO_dump_func.
2825 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2826 * matrix-reorg.c: Remove TODO_dump_func.
2827 * tree-eh.c: Remove TODO_dump_func.
2828 * regmove.c: Remove TODO_dump_func.
2829 * function.c: Remove TODO_dump_func.
2830 * tree-vectorizer.c: Remove TODO_dump_func.
2831 * ipa-split.c: Remove TODO_dump_func.
2832 * gcse.c: Remove TODO_dump_func.
2833 * tree-if-conv.c: Remove TODO_dump_func.
2834 * init-regs.c: Remove TODO_dump_func.
2835 * tree-ssa-phiopt.c: Remove TODO_dump_func.
2836 * implicit-zee.c: Remove TODO_dump_func.
2837 * lower-subreg.c: Remove TODO_dump_func.
2838 * bt-load.c: Remove TODO_dump_func.
2839 * tree-dfa.c: Remove TODO_dump_func.
2840 * except.c: Remove TODO_dump_func.
2841 * emit-rtl.c: Remove TODO_dump_func.
2842 * store-motion.c: Remove TODO_dump_func.
2843 * cfgexpand.c: Remove TODO_dump_func.
2844 * tree-cfgcleanup.c: Remove TODO_dump_func.
2845 * cfgcleanup.c: Remove TODO_dump_func.
2846 * tree-ssa-pre.c: Remove TODO_dump_func.
2847 * tree-sra.c: Remove TODO_dump_func.
2848 * tree-mudflap.c: Remove TODO_dump_func.
2849 * tree-ssa-copy.c: Remove TODO_dump_func.
2850 * cfglayout.c: Remove TODO_dump_func.
2851 * tree-ssa-forwprop.c: Remove TODO_dump_func.
2852 * tree-ssa-dce.c: Remove TODO_dump_func.
2853 * ira.c: Remove TODO_dump_func.
2854 * tree-ssa.c: Remove TODO_dump_func.
2855 * integrate.c: Remove TODO_dump_func.
2856 * tree-optimize.c: Remove TODO_dump_func.
2857 * tree-ssa-phiprop.c: Remove TODO_dump_func.
2858 * tree-object-size.c: Remove TODO_dump_func.
2859 * combine.c: Remove TODO_dump_func.
2860 * bb-reorder.c: Remove TODO_dump_func.
2861 * cprop.c: Remove TODO_dump_func.
2862 * var-tracking.c: Remove TODO_dump_func.
2863 * tree-profile.c: Remove TODO_dump_func.
2864 * tree-vect-generic.c: Remove TODO_dump_func.
2865 * reg-stack.c: Remove TODO_dump_func.
2866 * sched-rgn.c: Remove TODO_dump_func.
2867 * tree-ssa-structalias.c: Remove TODO_dump_func.
2868 * tree-switch-conversion.c: Remove TODO_dump_func.
2869 * tree-cfg.c: Remove TODO_dump_func.
2870 * tree-ssa-reassoc.c: Remove TODO_dump_func.
2871 * combine-stack-adj.c: Remove TODO_dump_func.
2872 * dce.c: Remove TODO_dump_func.
2873 * tree-ssanames.c: Remove TODO_dump_func.
2874 * regcprop.c: Remove TODO_dump_func.
2876 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
2879 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2880 and properly handle result not in Pmode.
2882 2011-06-14 Robert Millan <rmh@gnu.org>
2884 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2885 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2888 * config/i386/kfreebsd-gnu64.h: New file.
2889 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2890 with `i386/kfreebsd-gnu64.h'.
2892 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2893 (GNU_USER_LINK_EMULATION64): New macros.
2894 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2895 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2896 of hardcoding `elf_i386' and `elf_x86_64'.
2898 2011-06-14 Nick Clifton <nickc@redhat.com>
2901 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2904 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2906 2011-06-14 Jakub Jelinek <jakub@redhat.com>
2909 * tree.h (DECL_NONSHAREABLE): Define.
2910 (struct tree_decl_common): Change decl_common_unused to
2911 decl_nonshareable_flag.
2912 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2913 Ignore vars with DECL_NONSHAREABLE bit set.
2914 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2915 on stores to automatic aggregate vars.
2917 PR rtl-optimization/49390
2919 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2921 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2924 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
2925 Tom de Vries <tom@codesourcery.com>
2928 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2929 Document changed semantics.
2930 (max_stmt_executions, max_stmt_executions_int): Declare.
2931 * tree-data-ref.c (estimated_loop_iterations)
2932 (estimated_loop_iterations_int): Move functions...
2933 * tree-ssa-loop-niter.c (estimated_loop_iterations)
2934 (estimated_loop_iterations_int): here.
2935 (record_estimate): Change nb_iterations_upper_bound and
2936 nb_iterations_estimate semantics.
2937 (max_stmt_executions, max_stmt_executions_int): New function.
2938 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2939 (max_stmt_executions_tree): this.
2940 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2941 estimated_loop_iterations_tree.
2942 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2943 max_stmt_executions_int instead of estimated_loop_iterations_int.
2944 * predict.c (predict_loops): Idem.
2945 * tree-parloops.c (parallelize_loops): Idem.
2946 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2947 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2948 (init_omega_for_ddr_1): Idem.
2949 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2950 (loop_prefetch_arrays): Idem
2951 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2952 max_stmt_executions instead of estimated_loop_iterations.
2953 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2954 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2955 instead of nb_iterations_upper_bound.
2957 2011-06-13 Jan Hubicka <jh@suse.cz>
2959 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2961 2011-06-14 Richard Henderson <rth@redhat.com>
2964 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2965 (based_loc_descr): Assert it's true.
2966 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2967 aborting immediately.
2969 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2970 Mingfeng Wu <mingfeng@faraday-tech.com>
2972 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2974 2011-06-13 Jan Hubicka <jh@suse.cz>
2976 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2978 2011-06-13 Jan Hubicka <jh@suse.cz>
2980 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2981 similarly to DECL_COMDAT.
2982 * cgraphunit.c (cgraph_analyze_function): Likewise.
2983 * ipa.c (function_and_variable_visibility): Likewise.
2985 2011-06-13 Jan Hubicka <jh@suse.cz>
2987 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2988 BINFO_VIRTUALS when streaming for ltrans unit.
2990 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
2992 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2993 (movdi_internal64): Same.
2995 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
2998 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2999 a set of similar patterns, where the MATCH_OPERAND for the function
3000 argument is replaced with individual references to hardware registers.
3001 (save_fpregs_<mode>): Ditto
3002 (restore_gpregs_<mode>): Ditto
3003 (return_and_restore_gpregs_<mode>): Ditto
3004 (return_and_restore_fpregs_<mode>): Ditto
3005 (return_and_restore_fpregs_aix_<mode>): Ditto
3007 2011-06-13 Jan Hubicka <jh@suse.cz>
3009 * ipa-utils.c (postorder_stack): New structure.
3010 (ipa_reverse_postorder): Handle aliases.
3012 2011-06-13 Jan Hubicka <jh@suse.cz>
3014 * ipa-inline.c (reset_edge_caches): Walk aliases.
3015 (update_caller_keys): Do not test inlinability of aliases.
3016 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
3017 (do_estimate_growth): Fix typo.
3019 2011-06-13 Jan Hubicka <jh@suse.cz>
3021 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
3022 (can_remove_node_now_p): ... here; handle same comdat groups.
3023 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
3024 (inline_call): Update use of can_remove_node_now_p.
3026 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3028 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
3029 condition to disallow non-identical memory locations.
3030 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
3031 preference to bit manipulation instructions.
3033 2011-06-13 Jan Hubicka <jh@suse.cz>
3035 * cgraph.c (cgraph_for_node_thunks_and_aliases,
3036 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
3037 (nonremovable_p): New function.
3038 (cgraph_can_remove_if_no_direct_calls_p): New function.
3039 (used_from_object_file_p): New functoin.
3040 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
3041 references from aliases.
3042 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
3043 * ipa-inline.c (check_caller_edge): New function.
3044 (want_inline_function_called_once_p): Use it; accept aliases called
3046 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
3048 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3051 * config/arm/neon.md (vec_pack_trunc): Set the lengths
3052 correctly for the case with Quad vectors.
3054 2011-06-13 Jakub Jelinek <jakub@redhat.com>
3055 Ira Rosen <ira.rosen@linaro.org>
3057 PR tree-optimization/49352
3058 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
3059 all, make sure loop_use_stmt after the loop is a def stmt of a used
3060 SSA_NAME that is the only one defined inside of the loop. Don't
3061 check for COND_EXPR and GIMPLE_BINARY_RHS.
3062 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
3063 check_reduction is true.
3065 2011-06-11 Jan Hubicka <jh@suse.cz>
3068 * ipa.c (cgraph_externally_visible_p): Check resolution info.
3070 2011-06-11 Jan Hubicka <jh@suse.cz>
3073 * ipa-inline-transform.c: Include tree-pass.h
3074 (inline_transform): Set TODO_update_ssa_only_virtuals.
3075 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
3077 2011-06-11 Jan Hubicka <jh@suse.cz>
3080 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
3083 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
3085 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
3086 Take number of iterations to peel into account for equally frequent
3087 misalignment values.
3089 2011-06-11 Jan Hubicka <jh@suse.cz>
3091 * lto-streamer-out.c (produce_symtab): Stream out the newly
3092 represented aliases.
3094 2011-06-11 Jan Hubicka <jh@suse.cz>
3096 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
3098 (ipa_update_after_lto_read): Likewise.
3099 (ipa_write_node_info): Do not sream call_with_var_arguments.
3100 (ipa_read_node_info): Likewise.
3102 2011-06-11 Jan Hubicka <jh@suse.cz>
3104 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
3106 2011-06-11 Jan Hubicka <jh@suse.cz>
3108 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
3109 (lto_symtab_resolve_can_prevail_p): Likewise.
3110 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
3111 * cgraph.c (same_body_aliases_done): New global var.
3112 (cgraph_same_body_alias_1): Rename to ...
3113 (cgraph_create_function_alias): ... this one; reorg to new
3115 (cgraph_same_body_alias): Use cgraph_create_function_alias;
3116 record references when asked to.
3117 (cgraph_add_thunk): Fix formating.
3118 (cgraph_get_node): Kill same body alias code.
3119 (cgraph_node_for_asm): Likewise.
3120 (cgraph_remove_same_body_alias): Remove.
3121 (cgraph_remove_node): Kill same body alias code.
3122 (cgraph_mark_address_taken_node): Mark also the aliased function
3123 as having address taken.
3124 (dump_cgraph_node): Dump same body aliases.
3125 (cgraph_for_node_thunks_and_aliases): Update for new alias
3127 (cgraph_for_node_and_aliases): Likewise.
3128 * cgraph.h (same_body): Kll pointer.
3129 (same_body_alias): Update comment.
3130 (same_body_aliases_done): Declare.
3131 (cgraph_remove_same_body_alias): Remove declaration.
3132 (cgraph_create_function_alias): Declare.
3133 (cgraph_process_same_body_aliases): Declare.
3134 (cgraph_function_with_gimple_body_p): Check for alias.
3135 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
3136 (cgraph_alias_aliased_node): New function.
3137 (cgraph_function_node): Update for new aliases.
3138 (cgraph_function_or_thunk_node): Likewise.
3139 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
3140 (inline_call): Remove dead aliases.
3141 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
3142 name hack for same body aliases.
3143 (clone_of_p): Look through aliases.
3144 (verify_cgraph_node): Verify aliases.
3145 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
3146 (cgraph_process_same_body_aliases): New function.
3147 (process_function_and_variable_attributes): Disable weakref warning on
3149 (cgraph_analyze_functions): Handle aliases.
3150 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
3151 (assemble_thunks): Rename to ...
3152 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
3153 (cgraph_expand_function): Remove alias output code.
3154 (cgraph_output_in_order): Skip aliases.
3155 (cgraph_preserve_function_body_p): Aliases don't need preserving.
3156 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
3157 (ipa_record_reference): Do not assert on alias references.
3158 (ipa_ref_has_aliases_p): New function.
3159 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
3160 (ipa_ref_has_aliases_p): Declare.
3161 * lto-cgraph.c (lto_output_node): Handle aliases.
3162 (input_node): Likewise.
3163 * lto-streamer-out.c (lto_output): Skip aliases.
3164 (produce_symtab): Kill same_body_alias code.
3165 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
3166 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
3167 * ipa-inline.c (update_caller_keys): Walk aliases.
3168 (inline_small_functions): Fix thinko in previous patch.
3169 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
3170 (function_and_variable_visibility): Do not walk same body aliases.
3171 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
3172 (ipa_pta_execute): Use it.
3174 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3176 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
3177 (*vec_dupv2df): Rename from vec_dupv2df.
3178 (vec_dupv2df): New expander.
3180 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3182 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
3184 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3186 * config/i386/i386.md: Use default value in "isa" attribute.
3187 * config/i386/sse.md: Ditto.
3188 * config/i386/mmx.md: Ditto.
3190 2011-06-10 Wei Guozhi <carrot@google.com>
3193 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3194 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3195 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3197 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3199 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3200 (arm_legitimate_ldrd_p): New prototype.
3201 (arm_output_ldrd): New prototype.
3202 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3203 (arm_legitimate_ldrd_p): New function.
3204 (arm_output_ldrd): New function.
3206 2011-06-10 David Li <davidxl@google.com>
3208 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3209 * passes.c (passr_eq): New function.
3210 (create_pass_tab): New function.
3211 (pass_traverse): New function.
3212 (dump_one_pass): New function.
3213 (dump_pass_list): New function.
3214 (dump_passes): New function.
3216 2011-06-10 Jan Hubicka <jh@suse.cz>
3218 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
3219 setting the nothrow flag.
3220 * ipa-reference.c (propagate): Skip aliases.
3221 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
3222 (propagate_nothrow): Skip aliases; do not update cgraph.
3223 (local_pure_const): Do not update cgraph.
3224 * tree-profile.c (tree_profiling): Do fixup_cfg.
3226 2011-06-10 Jan Hubicka <jh@suse.cz>
3228 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
3229 (cgraph_local_node_p): ... here; handle aliases.
3230 (has_addr_references_p): Break out from ...;
3231 (cgraph_remove_unreachable_nodes) ... here.
3233 2011-06-10 Jan Hubicka <jh@suse.cz>
3235 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
3236 * common.opt (flag_inline_functions_called_once): Do not
3239 2011-06-10 Jan Hubicka <jh@suse.cz>
3241 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
3242 (ipcp_initialize_node_lattices): Do not deal with aliases;
3243 Do not try to propagate through thunks.
3244 (ipcp_change_tops_to_bottom): Do not deal with aliases.
3246 2011-06-10 Jan Hubicka <jh@suse.cz>
3248 * ipa-prop.c (ipa_write_node_info): Stream jump functions
3250 (ipa_read_node_info): Likewise.
3252 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3255 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
3256 (build_and_insert_call): Likewise.
3257 (build_and_insert_ref): New.
3258 (gimple_expand_builtin_pow): Minor cleanup.
3259 (gimple_expand_builtin_cabs): New.
3260 (execute_cse_sincos): Add case for BUILT_IN_CABS.
3262 2011-06-10 Jan Hubicka <jh@suse.cz>
3264 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
3265 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
3266 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
3267 (ipcp_propagate_stage): Skip aliases when propagating.
3268 (ipcp_need_redirect_p): Skip aliases.
3269 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
3270 collect_callers_of_node.
3271 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
3273 (ipa_compute_jump_functions): Look through aliases.
3275 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3277 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
3279 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3281 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
3283 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
3285 2011-06-10 Jan Hubicka <jh@suse.cz>
3287 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
3288 Update call of gimple_get_virt_method_for_binfo.
3289 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
3290 refuse_thunks parameter.
3291 (gimple_fold_call): Update.
3292 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
3294 2011-06-10 Jan Hubicka <jh@suse.cz>
3296 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
3297 (not_all_callers_have_enough_arguments_p): ... this one; turn into
3298 worker for cgraph_for_node_and_aliases.
3299 (convert_callers_for_node): Break out from ...
3300 (convert_callers): ... here.
3301 (modify_function): Use collect_callers_of_node.
3302 (ipa_early_sra): Use cgraph_for_node_and_aliases.
3304 2011-06-10 Richard Guenther <rguenther@suse.de>
3306 PR tree-optimization/49361
3307 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
3308 when not already in gimple form.
3310 2011-06-10 Richard Guenther <rguenther@suse.de>
3313 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
3314 FOR_EACH_PHI_OR_STMT_USE.
3316 2011-06-10 Jan Hubicka <jh@suse.cz>
3318 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
3319 (clone_inlined_nodes): ... here.
3320 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
3321 to real destination prior inlining.
3322 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
3323 can_early_inline_edge_p, want_early_inline_function_p,
3324 want_early_inline_function_p, want_inline_small_function_p,
3325 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
3326 edge_badness, update_all_callee_keys, lookup_recursive_calls,
3327 add_new_edges_to_heap, inline_small_functions, flatten_function,
3328 inline_always_inline_functions, early_inline_small_functions): Use
3329 cgraph_function_or_thunk_node.
3330 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
3331 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
3332 (do_estimate_edge_growth_1): Break out from ...
3333 (do_estimate_growth) ... here; walk aliases.
3334 (inline_generate_summary): Skip aliases.
3336 2011-06-10 Richard Guenther <rguenther@suse.de>
3338 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
3339 forward when combining, visit inserted stmts when a stmt was changed.
3341 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
3343 * tree.h (error_operand_p): Add.
3344 * dbxout.c (dbxout_type_fields): Use the latter.
3345 * c-decl.c (add_stmt): Likewise.
3346 * gimplify.c (omp_add_variable, omp_notice_variable,
3347 gimplify_scan_omp_clauses): Likewise.
3349 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
3351 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
3352 when a value is actually passed in regs.
3354 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
3355 Laurent Rougé <laurent.rouge@menta.fr>
3357 * doc/invoke.texi (SPARC options): Add -mflat.
3358 * config/sparc/sparc.opt: Likewise.
3359 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
3360 (sparc_flat_expand_prologue): Declare.
3361 (sparc_flat_expand_epilogue): Likewise.
3362 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
3363 (CPP_ENDIAN_SPEC): Replace with...
3364 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
3365 (CPP_SPEC): Adjust to above change.
3366 (EXTRA_SPECS): Likewise.
3367 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
3368 (INCOMING_REGNO): Likewise.
3369 (OUTGOING_REGNO): Likewise.
3370 (LOCAL_REGNO): Likewise.
3371 (SETUP_FRAME_ADDRESSES): Likewise.
3372 (FIXED_REGISTERS): Set 0 for %fp.
3373 (CALL_USED_REGISTERS): Likewise.
3374 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
3375 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
3376 (RETURN_ADDR_REGNUM): Define.
3377 (RETURN_ADDR_RTX): Use it.
3378 (INCOMING_RETURN_ADDR_REGNUM): Define.
3379 (INCOMING_RETURN_ADDR_RTX): Use it.
3380 (DWARF_FRAME_RETURN_COLUMN): Likewise.
3381 (EH_RETURN_REGNUM): Define.
3382 (EH_RETURN_STACKADJ_RTX): Use it.
3383 (EH_RETURN_HANDLER_RTX): Delete.
3384 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
3385 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
3387 (struct machine_function): Add frame_size, apparent_frame_size,
3388 frame_base_reg, frame_base_offset, n_global_fp_regs and
3389 save_local_in_regs_p fields.
3390 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
3391 sparc_frame_base_offset, sparc_n_global_fp_regs,
3392 sparc_save_local_in_regs_p): New macros.
3393 (sparc_option_override): Error out if -fcall-saved-REG is specified
3395 (eligible_for_restore_insn): Fix formatting.
3396 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
3397 (eligible_for_sibcall_delay): Likewise.
3398 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
3399 (sparc_legitimate_address_p): Adjust to above change.
3400 (save_global_or_fp_reg_p): New predicate.
3401 (return_addr_reg_needed_p): Likewise.
3402 (save_local_or_in_reg_p): Likewise.
3403 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
3404 (SORR_SAVE, SORR_RESTORE): Delete.
3405 (sorr_pred_t): New typedef.
3406 (sorr_act_t): New enum.
3407 (save_or_restore_regs): Rename to...
3408 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
3409 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
3410 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
3411 mechanism. Add CFI information for double-word saves in 32-bit mode.
3412 (emit_adjust_base_to_offset): New function extracted from...
3413 (emit_save_or_restore_regs): ...this. Rename the rest to...
3414 (emit_save_or_restore_regs_global_fp_regs): ...this.
3415 (emit_save_or_restore_regs_local_in_regs): New function.
3416 (gen_create_flat_frame_[123]): New functions.
3417 (sparc_expand_prologue): Use SIZE local variable. Adjust.
3418 (sparc_flat_expand_prologue): New function.
3419 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
3420 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
3421 (sparc_flat_expand_epilogue): New function.
3422 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
3423 (output_return): Likewise.
3424 (output_sibcall): Likewise.
3425 (sparc_output_mi_thunk): Likewise.
3426 (sparc_frame_pointer_required): Likewise.
3427 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
3428 function optimization.
3429 * config/sparc/sparc.md (flat): New attribute.
3430 (prologue): Add TARGET_FLAT handling.
3431 (save_register_window): Disable if TARGET_FLAT.
3432 (create_flat_frame_[123]): New patterns.
3433 (epilogue): Add TARGET_FLAT handling.
3434 (sibcall_epilogue): Likewise.
3435 (eh_return): New expander.
3436 (eh_return_internal): New insn and splitter.
3437 (return_internal): Add TARGET_FLAT handling.
3438 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
3439 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
3440 (nonlocal_goto): Add TARGET_FLAT handling.
3441 * config/sparc/t-elf: Add -mflat multilib.
3442 * config/sparc/t-leon: Likewise.
3444 2011-06-10 Jan Hubicka <jh@suse.cz>
3446 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
3447 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
3448 (self_recursive_p): Use cgraph_function_node.
3449 (propagate_pure_const): Likewise.
3450 (propagate_nothrow): Likewise.
3451 * ipa-reference.c (ipa_reference_get_not_read_global): Use
3452 cgraph_function_node.
3453 (propagate_bits): Likewise.
3454 (propagate): Likewise.
3456 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3457 Richard Earnshaw <rearnsha@arm.com>
3459 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
3460 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
3461 (*thumb2_movdi_vfp): Delete.
3462 (*arm_movdi_vfp_cortexa8): Delete.
3463 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
3464 (*movdi_vfp_cortexa8): Likewise.
3466 2011-06-10 Richard Guenther <rguenther@suse.de>
3468 * stor-layout.c (initialize_sizetypes): Give names to all
3471 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
3473 PR tree-optimization/49318
3474 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
3475 irrelevant pattern statements.
3477 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3479 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
3482 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
3485 2011-06-09 Jan Hubicka <jh@suse.cz>
3487 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
3488 do not recompute reachable flag.
3489 (cgraph_finalize_function, cgraph_analyze_functions): Set
3490 redefined_extern_inline here.
3492 2011-06-09 Jan Hubicka <jh@suse.cz>
3494 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3495 (cgraph_only_called_directly_p): ... this one; bring offline.
3496 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3497 varpool_used_from_object_file_p): Drop names from the declaratoin.
3498 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3499 collect_callers_of_node): New.
3500 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3501 (cgraph_edge_recursive_p): Use cgraph_function_node.
3502 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3503 (cgraph_node_cannot_be_local_p_1): Break out from ...
3504 (cgraph_node_can_be_local_p): ... here; walk aliases.
3505 (cgraph_for_node_thunks_and_aliases): New function.
3506 (cgraph_for_node_and_aliases): New function.
3507 (cgraph_make_node_local_1): Break out from ...
3508 (cgraph_make_node_local) ... here; use
3509 cgraph_for_node_thunks_and_aliases.
3510 (cgraph_set_nothrow_flag_1): Break out from ...
3511 (cgraph_set_nothrow_flag) ... here;
3512 use cgraph_for_node_thunks_and_aliases.
3513 (cgraph_set_const_flag_1): Break out from ...
3514 (cgraph_set_const_flag) ... here;
3515 use cgraph_for_node_thunks_and_aliases.
3516 (cgraph_set_pure_flag_1): Break out from ...
3517 (cgraph_set_pure_flag) ... here;
3518 use cgraph_for_node_thunks_and_aliases.
3519 (cgraph_propagate_frequency_1): Break out from ...
3520 (cgraph_propagate_frequency) ... here; use
3521 cgraph_for_node_thunks_and_aliases.
3522 (cgraph_used_from_object_file_p): Do not care about aliases.
3523 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3525 (collect_callers_of_node_1, collect_callers_of_node): New functions.
3527 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3529 PR rtl-optimization/49154
3530 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3531 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3532 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3533 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3534 * config/cris/cris.h (cris_register_move_cost): Remove
3535 !TARGET_V32 code. Tweak comments.
3537 2011-06-09 Jan Hubicka <jh@suse.cz>
3539 * cgraphbuild.c (record_eh_tables): Mark personality function as having
3542 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3544 PR rtl-optimization/49154
3545 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3546 is a matching slot in the hashtable, assign it to classes_ptr.
3548 PR rtl-optimization/49154
3549 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3551 * doc/tm.texi: Regenerate.
3553 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
3556 * config/sh/sh.md (UNSPEC_CHKADD): New.
3557 (chk_guard_add): New define_insn_and_split.
3558 (symGOT_load): Use chk_guard_add instead of blockage.
3560 2011-06-09 Kai Tietz <ktietz@redhat.com>
3562 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3564 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
3566 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3568 2011-06-09 Wei Guozhi <carrot@google.com>
3571 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3572 (peephole2 for conditional move): Generate 16 bit instructions.
3574 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
3576 * config/i386/i386.md (*movdi_internal_rex64): Merge
3577 alternatives 6 and 8.
3579 2011-06-09 David Li <davidxl@google.com>
3581 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3582 * passes.c (passr_eq): New function.
3583 (create_pass_tab): New function.
3584 (pass_traverse): New function.
3585 (dump_one_pass): New function.
3586 (dump_pass_list): New function.
3587 (dump_passes): New function.
3589 2011-06-09 David Li <davidxl@google.com>
3591 * tree-complex.c (tree_lower_complex): Gate cleanup.
3592 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
3593 (execute_optimize_stdarg): Ditto.
3594 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
3595 (execute_cleanup_eh_1): Ditto.
3596 (execute_cleanup_eh): Ditto.
3597 * gcse.c (gate_rtl_pre): Ditto.
3598 (execute_rtl_pre): Ditto.
3599 * except.c (finish_eh_generation): Ditto.
3600 (convert_to_eh_region_ranges): Ditto.
3601 * cprop.c (one_cprop_pass): Ditto.
3603 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
3606 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
3607 in all basic blocks.
3609 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3611 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
3612 (HAVE_ENABLE_EXECUTE_STACK): Define.
3613 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
3614 (HAVE_ENABLE_EXECUTE_STACK): Define.
3615 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
3616 (HAVE_ENABLE_EXECUTE_STACK): Define.
3617 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
3618 (ENABLE_EXECUTE_STACK): Remove.
3619 (HAVE_ENABLE_EXECUTE_STACK): Define.
3620 [IN_LIBGCC2]: Don't include <windows.h>.
3621 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3622 (HAVE_ENABLE_EXECUTE_STACK): Define.
3623 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
3624 (HAVE_ENABLE_EXECUTE_STACK): Define.
3625 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
3626 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3627 (HAVE_ENABLE_EXECUTE_STACK): Define.
3628 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3629 (HAVE_ENABLE_EXECUTE_STACK): Define.
3630 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3631 (HAVE_ENABLE_EXECUTE_STACK): Define.
3632 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3633 (HAVE_ENABLE_EXECUTE_STACK): Define.
3634 * config/alpha/alpha.c (alpha_trampoline_init): Test
3635 HAVE_ENABLE_EXECUTE_STACK.
3636 * config/i386/i386.c (ix86_trampoline_init): Likewise.
3637 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3638 (sparc64_initialize_trampoline): Likewise.
3639 * libgcc2.c [L_enable_execute_stack]: Remove.
3640 * system.h (ENABLE_EXECUTE_STACK): Poison.
3641 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3642 * doc/tm.texi: Regenerate.
3643 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3645 2011-06-09 Jakub Jelinek <jakub@redhat.com>
3648 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3649 variable. After resetting and rescanning insn continue with previous
3652 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3654 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3655 (gcc_cv_ld_hidden): Likewise.
3656 * configure: Regenerate.
3657 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3658 (ix86_stack_protect_fail): Mark unused.
3659 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3660 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3661 [TARGET_MACHO]: Don't define.
3662 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3663 (TARGET_STACK_PROTECT_FAIL): Likewise.
3664 (rs6000_stack_protect_fail): Mark unused.
3665 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
3666 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
3668 2011-06-08 Andi Kleen <ak@linux.intel.com>
3670 * varasm.c (get_section): Print location of other conflict
3671 for section conflicts.
3673 2011-06-08 Andi Kleen <ak@linux.intel.com>
3675 * config/i386/driver-i386.c (host_detect_local_cpu):
3676 Add model 0x2d Intel CPU.
3678 2011-06-08 Andi Kleen <ak@linux.intel.com>
3680 * reginfo.c (global_regs_decl): Add.
3681 (globalize_reg): Add decl parameter. Compute location. Pass location
3682 to warnings and add inform. Store decl in global_regs_decl.
3683 * rtl.h (globalize_reg): Update prototype.
3684 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3686 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
3688 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3690 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3693 * config/sh/predicates.md (general_movsrc_operand): Check
3694 mode for memory with indexed address for QI and HImode.
3695 (general_movdst_operand): Likewise.
3697 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
3699 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3701 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
3703 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3704 (num_ssa_operands): Likewise.
3705 (op_iter_init_phiuse): Forward-declare.
3706 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3708 2011-06-08 Nick Clifton <nickc@redhat.com>
3710 * doc/invoke.texi (ARM Options): Update description of
3713 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3715 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3716 unknown Intel family 0x6 CPUs.
3718 2011-06-08 Martin Jambor <mjambor@suse.cz>
3720 * tree-sra.c (mark_rw_status): Removed.
3721 (analyze_access_subtree): New parameter parent instead of
3722 mark_read and mark_write, propagate from that.
3724 2011-06-08 Julian Brown <julian@codesourcery.com>
3726 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3727 for double-precision helper functions in hard-float mode if only
3728 single-precision arithmetic is supported in hardware.
3730 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
3732 PR rtl-optimization/49303
3733 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3734 code_motion_path_driver returned 0 or 1.
3735 (sel_region_finish): Clear h_d_i_d.
3737 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3739 * config/sh/sh.c (prepare_move_operands): Set pic register
3740 appropriately for global and local dynamic tls models even
3741 if flag_pic is unset.
3743 2011-06-07 Jason Merrill <jason@redhat.com>
3745 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3747 2011-06-07 Xinliang David Li <davidxl@google.com>
3748 * passes.c (enable_disable_pass): Handle assembler name.
3749 (is_pass_explicitly_enabled_or_disabled): Ditto.
3751 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3753 PR tree-optimization/48497
3754 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3756 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3758 PR tree-optimization/46728
3759 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3760 to use gimple_val_nonnegative_real_p.
3761 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3762 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3764 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
3766 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3768 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
3770 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3773 2011-06-07 Richard Guenther <rguenther@suse.de>
3775 * stor-layout.c (initialize_sizetypes): Initialize all
3776 sizetypes based on target definitions.
3777 (set_sizetype): Remove.
3778 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3779 * tree.h (set_sizetype): Remove.
3781 2011-06-07 Nick Clifton <nickc@redhat.com>
3783 * config.gcc: Unify V850 architecture options and add support for
3784 newer V850 architectures.
3785 * config/v850/t-v850e: Delete.
3787 2011-06-07 Richard Guenther <rguenther@suse.de>
3789 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3790 Call set_sizetype from here.
3792 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
3794 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3795 (*maddhisi4tb, *maddhisi4tt): New define_insns.
3797 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
3798 Andrew Stubbs <ams@codesourcery.com>
3800 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3802 * doc/md.texi (Canonicalization of Instructions): Document widening
3803 multiply canonicalization.
3805 2011-06-07 Jakub Jelinek <jakub@redhat.com>
3807 PR gcov-profile/49299
3808 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3810 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
3812 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3814 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3815 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3816 vect_recog_pow_pattern): Likewise.
3817 (vect_pattern_recog_1): Remove declaration.
3818 (widened_name_p): Remove declaration. Add new argument to specify
3819 whether to check that both types are either signed or unsigned.
3820 (vect_recog_widen_mult_pattern): Update documentation. Handle
3821 unsigned patterns and multiplication by constants.
3822 (vect_pattern_recog_1): Update vect_recog_func references. Use
3823 statement information from the statement returned from pattern
3824 detection functions.
3825 (vect_pattern_recog): Update vect_recog_func reference.
3826 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3827 multiplication by a constant use the type of the other operand.
3829 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3831 PR rtl-optimization/49145
3832 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3834 2011-06-06 Jakub Jelinek <jakub@redhat.com>
3837 * dwarf2out.c (native_encode_initializer): Decrement count in each
3841 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3845 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3846 if stmt folded into nothing.
3847 * tree-inline.c (fold_marked_statements): If a builtin at the end of
3848 a bb folded into nothing, just update cgraph edges and move to next bb.
3849 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3850 to be NULL. Don't compute count and frequency if new_call is NULL.
3852 2011-06-04 Diego Novillo <dnovillo@google.com>
3854 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3855 (cgraph.o): Likewise.
3856 (cgraphunit.o): Likewise.
3857 * cgraphunit.c: Include lto-streamer.h
3858 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3860 * lto-streamer-in.c (unpack_value_fields): Call
3861 streamer_hooks.unpack_value_fields if set.
3862 (lto_materialize_tree): For unhandled nodes, first try to
3863 call lto_streamer_hooks.alloc_tree, if it exists.
3864 (lto_input_ts_decl_common_tree_pointers): Move reading of
3865 DECL_INITIAL to lto_streamer_read_tree.
3866 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3867 (lto_streamer_read_tree): New.
3868 (lto_reader_init): Rename from lto_init_reader.
3869 Move initialization code to lto/lto.c.
3870 * lto-streamer-out.c (pack_value_fields): Call
3871 streamer_hooks.pack_value_fields if set.
3872 (lto_output_tree_ref): For tree nodes that are not normally indexable,
3873 call streamer_hooks.indexable_with_decls_p before giving up.
3874 (lto_output_ts_decl_common_tree_pointers): Move handling
3875 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3876 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3877 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
3878 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3879 (lto_streamer_write_tree): New.
3880 (lto_output): Call lto_streamer_init directly.
3881 (lto_writer_init): Remove.
3882 * lto-streamer.c (streamer_hooks): New.
3883 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3884 instead of lto_preload_common_nodes.
3885 (lto_is_streamable): Move from lto-streamer.h
3886 (lto_streamer_hooks_init): New.
3887 (streamer_hooks): New.
3888 (streamer_hooks_init): New.
3889 * lto-streamer.h (struct output_block): Forward declare.
3890 (struct lto_input_block): Likewise.
3891 (struct data_in): Likewise.
3892 (struct bitpack_d): Likewise.
3893 (struct streamer_hooks): Declare.
3894 (streamer_hooks): Declare.
3895 (lto_streamer_hooks_init): Declare.
3896 (lto_streamer_write_tree): Declare.
3897 (lto_streamer_read_tree): Declare.
3898 (streamer_hooks_init): Declare.
3899 (lto_is_streamable): Move to lto-streamer.c
3901 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3903 * longlong.h (smul_ppmm): The resulting register pair contains the
3904 higher order word first.
3906 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3908 PR tree-optimization/46728
3909 * builtins.c (powi_table): Remove.
3910 (powi_lookup_cost): Remove.
3911 (powi_cost): Remove.
3912 (expand_powi_1): Remove.
3913 (expand_powi): Remove.
3914 (expand_builtin_pow_root): Remove.
3915 (expand_builtin_pow): Remove.
3916 (expand_builtin_powi): Eliminate handling of constant exponent.
3917 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3919 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3921 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3923 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3925 * dce.c (reset_unmarked_insns_debug_uses): New.
3926 (delete_unmarked_insns): Skip debug insns.
3927 (prescan_insns_for_dce): Likewise.
3928 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3929 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3930 active reg can be found.
3931 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
3932 (convert_regs_1): Use it.
3934 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3936 * tree-pretty-print.c (dump_function_header): Add flags.
3937 Don't dump decl_uid with nouid.
3938 * tree-pretty-print.h (dump_function_header): Adjust.
3939 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3940 * passes.c (pass_init_dump_file): Pass dump_flags on.
3941 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3943 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3946 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3948 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3950 PR tree-optimization/49243
3951 * calls.c (setjmp_call_p): Also check if fndecl has the
3952 returns_twice attribute.
3954 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3956 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3959 2011-06-06 Richard Henderson <rth@redhat.com>
3960 Georg-Johann Lay <avr@gjlay.de>
3963 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3965 * config/avr/avr.md ("insv"): New insn expander.
3966 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3967 "*insv.not.io", "*insv.reg"): New insns.
3969 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3972 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3973 to nonimmediate_operand from memory_operand for the operand that is to
3974 be forced to memory by the expander. Lose the constraints.
3976 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3978 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3979 EH return when delayed branches are disabled.
3981 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
3983 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3984 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3986 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3987 Simplify MODE_V1DF and MODE_V2SF handling.
3988 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3989 Simplify MODE_SF handling.
3991 2011-06-04 Jan Hubicka <jh@suse.cz>
3993 PR tree-optimization/48893
3994 PR tree-optimization/49091
3995 PR tree-optimization/49179
3996 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3999 2011-06-04 Jan Hubicka <jh@suse.cz>
4002 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
4005 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
4007 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
4009 2011-06-04 Jakub Jelinek <jakub@redhat.com>
4012 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
4013 to be strictly smaller than 1 << shiftcount.
4015 2011-06-04 Jan Hubicka <jh@suse.cz>
4017 PR tree-optimize/48929
4018 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
4021 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
4024 * calls.c (emit_call_1): Prefer the __builtin declaration of
4027 2011-06-03 Diego Novillo <dnovillo@google.com>
4029 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
4030 (lto_input_tree_pointers): Likewise.
4031 * lto-streamer-out.c (pack_value_fields): Likewise.
4032 (lto_output_tree_pointers): Likewise.
4033 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
4034 and OPTIMIZATION_NODE.
4036 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4038 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
4039 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
4040 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
4041 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
4042 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
4043 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
4044 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
4045 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
4046 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
4047 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
4048 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
4049 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
4050 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
4051 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
4052 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
4053 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
4054 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
4055 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
4056 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
4057 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
4058 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
4059 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
4060 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
4061 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
4062 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
4063 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
4064 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
4065 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
4066 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
4067 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
4068 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
4069 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
4070 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
4071 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
4072 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
4073 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
4074 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
4075 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
4076 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
4077 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
4078 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
4079 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
4080 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
4081 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
4082 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
4083 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
4084 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
4085 * system.h (MD_UNWIND_SUPPORT): Poison.
4086 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
4087 * doc/tm.texi: Regenerate.
4088 * unwind-dw2.c: Include md-unwind-support.h instead of
4090 * config/ia64/unwind-ia64.c: Likewise.
4091 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
4093 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
4095 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
4097 2011-06-03 Richard Henderson <rth@redhat.com>
4098 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4100 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
4101 (sigill_hdlr): Correct insn, insn size.
4102 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
4104 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4106 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
4108 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
4109 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
4110 * config/mips/t-iris: Remove.
4111 * config/mips/t-irix6: New file.
4112 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
4114 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4116 * Makefile.in (LIB2ADDEHDEP): Remove.
4117 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
4118 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
4119 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
4120 * config/t-darwin (LIB2ADDEHDEP): Remove.
4121 * config/t-freebsd (LIB2ADDEHDEP): Remove.
4122 * config/t-linux (LIB2ADDEHDEP): Remove.
4124 2011-06-03 Diego Novillo <dnovillo@google.com>
4126 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
4127 (lto_register_var_decl_in_symtab): Likewise.
4128 (lto_register_function_decl_in_symtab): Likewise.
4129 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
4130 logic to uniquify_nodes.
4132 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4134 * config/alpha/t-osf5: Remove.
4135 * config/alpha/t-osf-pthread: Remove.
4136 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
4137 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
4139 2011-06-03 Julian Brown <julian@codesourcery.com>
4141 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
4142 (strongarm1110): Use strongarm tuning.
4143 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
4144 * config/arm/arm.c (arm_strongarm_tune): New.
4145 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4146 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
4147 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
4148 setting, using previous defaults or 1 for Cortex-A5.
4149 (arm_option_override): Set max_insns_skipped from current tuning.
4151 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
4153 * doc/install.texi (Options specification): Document --with-specs.
4155 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4157 * config/arm/neon.md (orndi3_neon): Actually split it.
4159 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4161 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
4162 * var-tracking.c (reverse_op): Limite recurse depth to 5.
4164 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4167 * target.def (delay_sched2, delay_vartrack): New.
4168 * doc/tm.texi.in: Update.
4169 * doc/tm.texi: Rebuild.
4170 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
4171 * var-tracking.c (gate_handle_var_tracking): Likewise.
4172 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
4173 (bfin_flag_var_tracking): Drop.
4174 (output_file_start): Don't save and override flag_var_tracking.
4175 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
4176 (bfin_reorg): Test original variables.
4177 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4178 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
4179 (ia64_flag_var_tracking): Drop.
4180 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4181 (ia64_file_start): Don't save and override flag_var_tracking.
4182 (ia64_override_options_after_change): Ditto
4183 flag_schedule_insns_after_reload.
4184 (ia64_reorg): Test original variables.
4185 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
4186 (picochip_flag_var_tracking): Drop.
4187 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4188 (picochip_option_override): Don't save and override
4189 flag_schedule_insns_after_reload.
4190 (picochip_asm_file_start): Ditto flag_var_tracking.
4191 (picochip_reorg): Test original variables.
4192 * config/spu/spu.c (spu_flag_var_tracking): Drop.
4193 (TARGET_DELAY_VARTRACK): Define.
4194 (spu_var_tracking): New.
4195 (spu_machine_dependent_reorg): Call it.
4196 (asm_file_start): Don't save and override flag_var_tracking.
4198 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
4201 * config/sh/predicates.md (general_movsrc_operand): Return 0
4202 for memory and memory subreg of which address is an invalid
4203 indexed address for QI and HImode.
4204 (general_movdst_operand): Likewise.
4206 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4208 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
4209 edges only, when there is a non-local label in the function.
4210 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
4212 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4214 * config/i386/constraints.md (Y3): New register constraint.
4215 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
4216 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
4217 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
4218 *sse2_interleave_lowv2df.
4220 2011-06-02 Julian Brown <julian@codesourcery.com>
4222 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
4223 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
4224 (arm_cortex_a5_tune): New.
4226 2011-06-02 Julian Brown <julian@codesourcery.com>
4228 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
4229 * config/arm/arm.c (arm_default_branch_cost): New.
4230 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4231 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
4232 (arm_fa726_tune): Set branch_cost field using
4233 arm_default_branch_cost.
4234 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
4235 current_tune structure.
4236 * dojump.c (tm_p.h): Include file.
4238 2011-06-02 Julian Brown <julian@codesourcery.com>
4240 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
4242 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
4243 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
4244 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
4246 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
4247 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
4248 (arm_fa726te_tune): Add prefer_constant_pool setting.
4249 (arm_v6t2_tune, arm_cortex_tune): New.
4250 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
4251 prefer_constant_pool setting.
4253 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4255 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
4257 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
4258 (*movdf_internal) <case 6,7,8>: Ditto.
4260 * config/i386/constraints.md (Y4): New register constraint.
4261 * config/i386/sse.md (vec_set<mode>_0): Merge with
4262 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
4263 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
4264 *vec_extractv2di_1_sse.
4265 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
4266 and *vec_concatv2di_rex64_sse.
4268 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
4271 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
4272 of cgraph_local_info for null before attempting to use it.
4274 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4276 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
4277 (current_function_dynamic_alloc_count): Delete.
4278 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
4279 (expand_builtin_nonlocal_goto): Remove obsolete comment.
4280 (expand_builtin_update_setjmp_buf): Remove dead code.
4281 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
4282 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
4284 * function.c (instantiate_virtual_regs): Likewise.
4285 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
4286 for a block with a single abnormal incoming edge.
4287 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
4288 (SETJMP_VIA_SAVE_AREA): Delete.
4289 * config/sparc/sparc-protos.h (load_got_register): Declare.
4290 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4291 (load_got_register): Make global.
4292 (sparc_frame_pointer_required): Add 'static'.
4293 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
4294 (sparc_builtin_setjmp_frame_value): New function.
4295 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
4296 (save_stack_nonlocal): New expander.
4297 (restore_stack_nonlocal): Likewise.
4298 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
4299 (nonlocal_goto_internal): New insn.
4300 (goto_handler_and_restore): Delete.
4301 (builtin_setjmp_setup): Likewise.
4302 (do_builtin_setjmp_setup): Likewise.
4304 (builtin_setjmp_receiver): New expander.
4306 2011-06-01 David Li <davidxl@google.com>
4309 * tree-pretty-print.c (dump_function_header): Format cleanup.
4311 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
4314 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
4315 needed when original operands are used for msw_skip comparison.
4317 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4320 * var-tracking.c (add_uses, add_stores): Don't call
4321 cselib_subst_to_values on ENTRY_VALUE.
4323 2011-06-01 Diego Novillo <dnovillo@google.com>
4325 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
4326 output_record_start with LTO_null instead of output_zero.
4327 (lto_output_ts_binfo_tree_pointers): Likewise.
4328 (lto_output_tree): Likewise.
4329 (output_eh_try_list): Likewise.
4330 (output_eh_region): Likewise.
4331 (output_eh_lp): Likewise.
4332 (output_eh_regions): Likewise.
4333 (output_bb): Likewise.
4334 (output_function): Likewise.
4335 (output_unreferenced_globals): Likewise.
4336 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
4337 instead of NUM_TREE_CODES.
4338 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
4339 (lto_output_int_in_range): Change << to >> when shifting VAL.
4341 2011-06-01 Diego Novillo <dnovillo@google.com>
4343 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4344 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
4346 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4349 * optabs.h (valid_multiword_target_p): Declare.
4350 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
4351 doing multi-word operations.
4352 * optabs.c (expand_binop): Likewise.
4353 (expand_doubleword_bswap): Likewise.
4354 (expand_absneg_bit): Likewise.
4355 (expand_unop): Likewise.
4356 (expand_copysign_bit): Likewise.
4357 (multiword_target_p): New function.
4359 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4361 PR rtl-optimization/48830
4362 PR rtl-optimization/48808
4363 PR rtl-optimization/48792
4364 * reload.c (push_reload): Check contains_reg_of_mode.
4365 * reload1.c (strip_paradoxical_subreg): New function.
4366 (gen_reload_chain_without_interm_reg_p): Use it to handle
4367 paradoxical subregs.
4368 (emit_output_reload_insns, gen_reload): Likewise.
4370 2011-06-01 David Li <davidxl@google.com>
4372 * predict.c : Change pass name
4375 * tree-profile.c: Ditto.
4378 2011-06-01 David Li <davidxl@google.com>
4380 * tree-pretty-print.c (dump_function_header): New function.
4381 * final.c (rest_of_clean_state): Use header dumper.
4382 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
4383 * passes.c (pass_init_dump_file): Use header dumper.
4385 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4387 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
4388 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
4389 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
4391 (mem_loc_descriptor): Use them.
4393 * var-tracking.c (create_entry_value): New function.
4394 (vt_add_function_parameter): Use it.
4396 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4398 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
4399 Include <signal.h>, <ucontext.h>.
4400 (sigill_caught): Define.
4401 (sigill_hdlr): New function.
4402 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
4403 insns can be executed.
4404 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
4405 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
4407 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4409 * config/t-slibgcc-darwin: Move to ...
4410 * config/t-slibgcc-dummy: ... this. Clarify comments.
4411 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
4412 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
4413 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
4414 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
4415 Remove i386/t-crtstuff from tmake_file.
4416 (i[34567]86-*-solaris2*): Remove t-svr4,
4417 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
4419 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
4420 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
4421 sparc/t-crtfm from tmake_file.
4422 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
4423 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
4425 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
4426 * config/i386/t-nwld (SHLIB_LINK): Remove.
4427 * config/i386/t-rtems-i386: Rename to ...
4428 * config/i386/t-rtems: ... this.
4429 ($(T)crti.o, $(T)crtn.o): Remove.
4430 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
4431 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
4432 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
4433 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
4434 EXTRA_MULTILIB_PARTS): Remove.
4435 * config/sparc/t-sol2-64: Likewise.
4436 * config/sparc/t-sol2: Remove.
4437 * config/sparc/t-crtin: Remove.
4438 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
4439 * config/i386/gmon-sol2.c: Remove.
4440 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
4441 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
4442 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
4443 * config/i386/sol2-gc1.asm: Remove.
4444 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
4445 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
4446 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
4447 * config/t-slibgcc-sld: Remove.
4449 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4451 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
4452 base_type_for_mode with op_mode instead of mode.
4454 2011-06-01 Paul Brook <paul@cpodesourcery.com>
4456 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
4458 * config/arm/arm-tune.md: Regenerate.
4459 * config/arm/arm-tables.opt: Regenerate.
4460 * config/arm/arm.c (FL_DIV): Rename...
4461 (FL_THUMB_DIV): ... to this.
4462 (FL_ARM_DIV): Define.
4463 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
4464 (arm_arch_hwdiv): Remove.
4465 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
4466 (arm_issue_rate): Add cortexr5.
4467 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
4468 __ARM_ARCH_EXT_IDIV__.
4469 (TARGET_IDIV): Define.
4470 (arm_arch_hwdiv): Remove.
4471 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
4472 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
4473 (divsi3, udivsi3): New patterns.
4474 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
4475 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
4477 2011-06-01 Martin Jambor <mjambor@suse.cz>
4479 * ipa-utils.c (ipa_dfs_info): New field scc_no.
4480 * ipa-utils.c (searchc): Set scc_no.
4482 2011-06-01 Martin Jambor <mjambor@suse.cz>
4484 * ipa-utils.c (searchc_env): New field allow_overwritable.
4485 (searchc): do not ignore edges to overwritable nodes if indicated
4486 by env->allow_overwritable.
4487 (ipa_reduced_postorder): Set env.allow_overwritable.
4489 2011-06-01 Richard Guenther <rguenther@suse.de>
4491 * tree.c (free_lang_data): Do not reset boolean_type_node nor
4493 * lto-streamer.c (lto_record_common_node): Take node pointer,
4494 do not register types.
4495 (lto_preload_common_nodes): Explicitly skip preloading nodes
4496 that differ between frontends.
4498 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4500 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4503 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4505 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4506 parameter value for dump. Dump cost on outermost call only.
4507 (rs6000_memory_move_cost): Dump cost on outermost call only.
4509 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4511 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4512 DW_OP_GNU_convert ops.
4514 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4515 cselib_preserve_constants.
4516 (cselib_lookup_1): If cselib_preserve_constants,
4517 a new VALUE is being created for REG and there is a VALUE for the
4518 same register in wider mode, add another loc with lowpart SUBREG of
4520 (cselib_subst_to_values): Handle ENTRY_VALUE.
4521 * var-tracking.c (replace_expr_with_values): Return NULL for
4523 * dwarf2out.c (convert_descriptor_to_signed): New function.
4524 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4525 instead of two shifts.
4526 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4527 the right mode if needed.
4528 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4529 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4530 convert_descriptor_to_signed.
4531 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4532 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4535 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4537 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4539 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4540 of X87MODEI12 and SWI48x instead of SSEMODEI24.
4541 (SWI248x): New mode iterator, rename from X87MODEI.
4542 (X87MODEI): Remove mode iterator.
4543 (X87MODEI12): Ditto.
4544 (SSEMODEI24): Ditto.
4546 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4548 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4549 * doc/invoke.texi: Document max-vartrack-expr-depth.
4550 * var-tracking.c (EXPR_DEPTH): New.
4551 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4553 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4555 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4556 * config/i386/sse.md: Add n to negated FMA pattern names.
4558 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4560 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4562 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4564 * gengtype-state.c (read_state_params_structs): Initialize previous.
4566 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4568 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4569 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4571 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4573 * config/i386/i386.md (*movtf_internal): Avoid allocating general
4574 registers. Penalize F*r->o alternative to prevent partial memory
4575 stalls. Slightly penalize *roF->*r alternative. Generate SSE
4576 CONST_DOUBLE immediates when optimizing function for size. Do not move
4577 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4578 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
4579 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
4580 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
4582 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
4584 (fp_register_operand splitters): Use fp_register_operand
4585 constraint. Do not use FP_REG_P in insn condition.
4586 (any_fp_register_operand splitters): Use any_fp_register_operand
4587 constraint. Do not use ANY_FP_REG_P in insn condition.
4589 2011-05-31 Jan Hubicka <jh@suse.cz>
4591 * cgraph.h (cgraph_inline_failed_t): Give enum a name
4592 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
4593 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
4594 (lto_output_edge): Use output_enum and var_len_unsigned.
4595 (lto_output_varpool_node): Likewise.
4596 (input_overwrite_node): Do not take resolution parameter;
4597 extract it from a bitpack.
4598 (input_node): Do not read resolution; use input_enum and
4600 (input_varpool_node): Likewise.
4601 (input_edge): Likewise.
4602 (input_cgraph_1): Likewise.
4604 2011-05-31 Richard Guenther <rguenther@suse.de>
4606 * gimple.c (gimple_register_canonical_type): Do not register
4607 any types via gimple_register_type.
4609 2011-05-31 Jan Hubicka <jh@suse.cz>
4611 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
4614 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4616 PR rtl-optimization/49235
4617 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
4618 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
4620 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
4622 PR tree-optimization/49093
4623 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
4626 2011-05-31 Dodji Seketeli <dodji@redhat.com>
4629 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
4630 for concrete functions containing the code of cloned functions.
4632 2011-05-31 Richard Guenther <rguenther@suse.de>
4634 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4636 (forward_propagate_into_comparison_1): ... this.
4637 (forward_propagate_comparison): Rename to ...
4638 (forward_propagate_into_comparison): ... this. Split out
4639 real forward propagation code to ...
4640 (forward_propagate_comparison): ... this.
4641 (forward_propagate_into_gimple_cond): Remove looping.
4642 (forward_propagate_into_cond): Likewise.
4643 (simplify_not_neg_expr): Return whether we have done something.
4644 (simplify_gimple_switch): Likewise.
4645 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4646 (ssa_forward_propagate_and_combine): ... this. Re-structure
4647 to do a forward forward-propagation walk on BBs and a backward
4648 stmt combining walk on BBs. Consistently re-scan changed statements.
4649 (pass_forwprop): Adjust.
4651 2011-05-30 Ian Lance Taylor <iant@google.com>
4653 * godump.c (go_format_type): Correct length of name added to
4654 obstack for anonymous field.
4656 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
4659 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4660 part of the second operand is 0.
4662 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
4664 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4665 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
4666 to memory for !TARGET_MEMORY_MISMATCH_STALL.
4667 (*movdf_internal_rex64): Do not penalize F->r alternative.
4668 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
4669 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
4670 when optimizing function for size. Do not move CONST_DOUBLEs
4671 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4672 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
4673 SUBREGs. Do not check for MEM_P operands in the insn condition,
4674 check for ANY_FP_REGNO_P instead.
4675 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4676 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4678 * config/i386/i386.c (ix86_option_override_internal): Do not
4679 set TARGET_INTEGER_DFMODE_MOVES here.
4681 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
4684 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4686 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4688 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4689 DW_TAG_rvalue_reference_type even for
4690 -gdwarf-4 -fno-debug-types-section.
4692 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4694 PR tree-optimization/46728
4695 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4696 (build_and_insert_binop): New.
4697 (gimple_expand_builtin_pow): Reorder args for
4698 build_and_insert_call; use build_and_insert_binop; add more
4699 optimizations for fractional exponents.
4701 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4706 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4708 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4710 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4711 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4712 TS_BASE instead of TS_COMMON.
4713 * varasm.c (assemble_name): Remove assert.
4715 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4717 * config.gcc: Keep obselete list sorted.
4719 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4720 Eric Botcazou <ebotcazou@adacore.com>
4722 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4723 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4724 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4725 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4726 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4728 2011-05-30 Richard Guenther <rguenther@suse.de>
4730 * gimple.c (gimple_types_compatible_p_1): Compare record
4731 and union type members properly.
4733 2011-05-30 Richard Guenther <rguenther@suse.de>
4735 PR tree-optimization/49210
4736 * ipa-split.c (split_function): Care for the case where the call
4737 result is not trivially convertible to the result holding variable.
4739 2011-05-30 Richard Guenther <rguenther@suse.de>
4741 PR tree-optimization/49218
4742 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4745 2011-05-30 Richard Guenther <rguenther@suse.de>
4747 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4748 New function split out from ...
4749 (forward_propagate_into_gimple_cond): ... here. Adjust.
4750 (forward_propagate_into_cond): Likewise.
4751 (forward_propagate_comparison): Also propagate into
4752 comparisons on assignment RHS. Change return value to
4753 behave similar to forward_propagate_into_cond.
4754 (tree_ssa_forward_propagate_single_use_vars): Handle
4755 strict-overflow warnings properly for forward_propagate_comparison.
4757 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4759 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4761 * configure: Regenerate.
4763 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
4765 PR tree-optimization/49199
4766 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4767 non-reduction operands are either defined in the loop or by induction.
4769 2011-05-29 Xinliang David Li <davidxl@google.com>
4771 * opts-global.c (handle_common_deferred_options): Handle new options.
4772 * passes.c (register_one_dump_file): Call register_pass_name.
4773 (execute_one_pass): Check explicit enable/disable flag.
4774 (passr_hash): New function.
4776 (register_pass_name): Ditto.
4777 (get_pass_by_name): Ditto.
4780 (enable_pass): Ditto.
4781 (disable_pass): Ditto.
4782 (is_pass_explicitly_enabled_or_disabled): Ditto.
4784 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
4786 * config/i386/i386.md (*movoi_internal_avx): Use
4787 standard_sse_constant_opcode for alternative 0.
4788 (*movti_internal_sse): Ditto.
4789 (*movti_internal_rex64): Use standard_sse_constant_opcode for
4791 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4793 (*movsi_internal): Ditto.
4794 (*movdi_internal): Ditto. Add ssecvt type moves.
4796 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
4799 * rtlanal.c (simplify_subreg_regno): Adjust comment.
4801 2011-05-29 Jakub Jelinek <jakub@redhat.com>
4803 PR rtl-optimization/49095
4804 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4805 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4807 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4810 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4811 recurse_p argument. Only follow register copies if it is set,
4812 and prevent mips_find_pic_call_symbol from recursing.
4813 (mips_find_pic_call_symbol): Add a recurse_p argument.
4814 Pass it to mips_pic_call_symbol_from_set.
4815 (mips_annotate_pic_calls): Update accordingly.
4817 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4819 * emit-rtl.c (try_split): Use a loop to search for
4820 NOTE_INSN_CALL_ARG_LOCATIONs.
4822 2011-05-29 Richard Guenther <rguenther@suse.de>
4824 PR tree-optimization/49217
4825 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4827 2011-05-28 Jan Hubicka <jh@suse.cz>
4829 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4831 (string_slot_free): Remove
4832 (create_output_block): Initialize obstack.
4833 (destroy_output_block): Free obstack.
4834 (lto_string_index): Add PERSISTENT parameter; do not duplicate
4835 the string unless it needs to be added into the hash.
4836 (lto_output_string_with_length): Add persistent attribute;
4837 handle NULL strings.
4838 (lto_output_string): Add PERSISTENT parameter.
4839 (output_string_cst, output_identifier): Simplify.
4840 (lto_output_location_bitpack): Update.
4841 (lto_output_builtin_tree): Update.
4842 * lto-streamer.h (struct output_block): Add obstack.
4843 (lto_output_string, lto_output_string_with_length): Remove
4844 declarations; functions are static now.
4846 2011-05-28 Jan Hubicka <jh@suse.cz>
4848 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4849 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4850 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4851 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4852 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4853 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4854 unpack_ts_decl_with_vis_value_fields,
4855 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4856 lto_get_builtin_tree): Use enum and variable length i/o.
4857 * basic-block.h (profile_status_d): Add PROFILE_LAST.
4858 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4860 (bp_pack_enum, bp_unpack_enum): New macros.
4862 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4864 * genrecog.c: Remove redundant forward declarations.
4866 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4868 * config.gcc: Deprecate mips*-*-openbsd*.
4870 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4873 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4876 2011-05-27 Andrew Pinski <pinskia@gmail.com>
4879 * gengtype.c (vec_prefix_type): New function.
4880 (note_def_vec): Use vec_prefix_type and change the length
4881 attribute to be based on the prefix.
4882 * vec.c: Include coretypes.h before vec.h.
4883 (struct vec_prefix): Remove.
4884 (vec_gc_p_reserve): Change the offsetof to sizeof.
4885 (vec_gc_p_reserve_exact): Likewise.
4886 (vec_heap_p_reserve): Likewise.
4887 (vec_heap_p_reserve_exact): Likewise.
4888 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4889 (vec_stack_p_reserve): Change the offsetof to sizeof.
4890 (vec_stack_p_reserve_exact): Likewise.
4891 * vec.h (struct vec_prefix): New struct definition.
4892 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4893 (VEC_T_GTY(T,B)): Likewise.
4894 (DEF_VEC_FUNC_P(T)): Use prefix field.
4895 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4896 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4898 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4900 PR tree-optimization/46728
4901 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4902 (powi_as_mults): Add gimple_set_location.
4903 (build_and_insert_call): New.
4904 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4905 0.5, 0.25, 0.75, 1./3., or 1./6.
4907 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
4909 * doc/contrib.texi: Update copyright years.
4910 (Contributors): Add Zdenek Sojka.
4912 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4914 * c-decl.c (c_push_function_context): Copy the current statement
4916 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4917 (finish_struct): Call building_stmt_list_p instead of checking
4919 * c-parser.c (c_parser_postfix_expression): Likewise.
4920 * c-typeck.c (c_end_compound_stmt): Likewise.
4921 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4922 * tree-iterator.c (stmt_list_cache): Change to a VEC.
4923 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4924 (free_stmt_list): Likewise.
4925 * tree.h (struct tree_statement_list): Include typed_tree instead
4927 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4928 as TS_TYPED instead of TS_COMMON.
4930 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4931 Uros Bizjak <ubizjak@gmail.com>
4933 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4934 (HAVE_AS_IX86_TLSGDPTL): Define.
4935 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4936 (HAVE_AS_IX86_TLSLDMPLT): Define.
4937 * configure: Regenerate.
4938 * config.in: Regenerate.
4939 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4940 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4941 TARGET_SUN_TLS, use @tlsgdplt or @plt.
4942 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4943 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4945 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4947 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4949 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4951 (INSN_COND, INSN_REVERSE_COND): New macros.
4952 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4954 (sched_get_condition_with_rev): Cache the results, and look them up
4956 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4957 are clobbered by the current insn.
4958 * target.def (exposed_pipline): New sched data hook.
4959 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4960 * doc/tm.texi: Regenerate.
4962 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4964 PR tree-optimization/49170
4965 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4968 2011-05-27 Richard Guenther <rguenther@suse.de>
4971 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4974 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4976 * haifa-sched.c (sched_scan_info): Remove.
4977 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4979 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4981 (sched_scan): Remove.
4982 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4983 static. All callers changed.
4984 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4985 static. All callers changed.
4986 (sched_init_luids): Remove all arguments except the first. All
4987 callers changed. Don't use sched_scan.
4988 (haifa_init_h_i_d): Likewise.
4989 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4990 manually rather than using sched_init_luids. Likewise with
4991 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4992 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4993 rather than sched_init_luids with NULL args.
4994 * sel-sched-ir.c (new_insns): Remove variable.
4995 (sched_scan): New static function, previously in haifa-sched.c. Remove
4996 all arguments but the first two; all callers changed.
4997 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4998 rather than sched_init_luids.
4999 (sel_init_bbs): Remove second argument. All callers changed.
5000 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
5001 with NULL arguments.
5002 (create_insn_rtx_from_pattern): Likewise.
5003 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
5004 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
5005 (sched_init_insn_luid, sched_extend_luids): Declare.
5006 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
5009 2011-05-27 Richard Guenther <rguenther@suse.de>
5012 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
5013 A CMP B ? (T) true : (T) false for non-integral types T again.
5015 2011-05-27 Jan Hubicka <jh@suse.cz>
5017 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
5018 so 0 means NULL string.
5019 (lto_output_string_with_length): ... here.
5020 (lto_output_string, output_string_cst, output_identifier): Update
5021 handling of NULL strings.
5022 (lto_output_location_bitpack): New function.
5023 (lto_output_location): Use it.
5024 (lto_output_tree_ref): Use output_record_start.
5025 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
5027 * lto-streamer-in.c (string_for_index): Break out from ...; offset
5029 (input_string_internal): ... here;
5030 (input_string_cst, input_identifier, lto_input_string): Update handling
5032 (lto_input_location_bitpack): New function
5033 (lto_input_location): Use it.
5034 (unpack_ts_type_common_value_fields): Pack align & alias in var len
5036 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
5037 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
5038 (bp_pack_value): Sanity check the value range.
5039 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
5041 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
5044 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
5046 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
5047 call_arg_location instructions down the floor.
5049 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
5051 PR rtl-optimization/49154
5052 * ira.c (setup_pressure_classes): Process class without sublcasses
5053 as a candidate for pressure classes.
5055 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
5057 PR rtl-optimization/48575
5058 * genrecog.c (position_type): New enum.
5059 (position): New structure.
5060 (decision): Use position structure instead of a string.
5061 (root_pos, peep2_insn_pos_list): New variables.
5062 (next_position, compare_positions): New functions.
5063 (new_decision): Use position structures instead of strings.
5064 (maybe_both_true): Likewise.
5065 (change_state): Likewise.
5066 (write_tree): Likewise.
5067 (make_insn_sequence): Likewise.
5069 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5071 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
5072 TS_BASE instead of TS_COMMON.
5073 (find_decls_types_r): Check for TS_TYPED structure before looking at
5075 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
5077 (BLOCK_CHAIN): Use new chain field.
5079 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
5081 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
5082 moves expensive on Power7 also.
5084 2011-05-26 Richard Guenther <rguenther@suse.de>
5086 * fold-const.c (fold_unary_loc): Remove bogus code.
5088 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5090 * tree.h (struct tree_identifier): Inherit from tree_typed, not
5092 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5093 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5094 TS_BASE instead of TS_COMMON.
5095 * varasm.c (assemble_name): Remove assert.
5097 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5099 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
5101 * libgcc-std.ver: Delete file.
5103 2011-05-26 Richard Guenther <rguenther@suse.de>
5105 PR tree-optimization/48702
5106 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
5107 only when we know the base address is within bounds.
5108 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
5109 assume the base address of TARGET_MEM_REFs is in bounds.
5111 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5114 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
5115 declaration in TARGET_SOLARIS.
5117 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
5119 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
5120 The instruction is then expanded explicitly.
5121 (supported_compare): Callable instruction.
5122 (compare): Likewise.
5124 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5127 * gimplify.c (shortcut_cond_r): Don't special case
5128 COND_EXPRs if they have void type on one of their arms.
5130 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5132 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
5133 to reduce duplication, and to achieve a slightly more logical order
5136 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5138 PR tree-optimization/49161
5139 * tree-vrp.c (struct case_info): New type.
5140 (compare_case_labels): Sort case_info structs instead of
5141 trees, and not primarily by CASE_LABEL uids but by
5142 label_for_block indexes.
5143 (find_switch_asserts): Put case labels into struct case_info
5144 array instead of TREE_VEC, adjust sorting, compare label_for_block
5145 values instead of CASE_LABELs.
5147 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5149 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
5150 ("orndi3_neon"): Likewise.
5151 ("bic<mode>3_neon"): Likewise.
5153 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
5155 PR tree-optimization/49038
5156 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
5157 Ensure at least one epilogue iteration if required by data
5159 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5160 to mark loops that require peeling for gaps.
5161 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
5162 (vect_get_known_peeling_cost): Take peeling for gaps into
5164 (vect_transform_loop): Generate epilogue if required by data
5166 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
5167 loop as requiring an epilogue if there are gaps in the end of
5170 2011-05-25 Ian Lance Taylor <iant@google.com>
5172 * godump.c (go_format_type): Output the first field with a usable
5175 2011-05-25 Ian Lance Taylor <iant@google.com>
5177 * godump.c (go_format_type): Check for invalid type names, pointer
5178 target types, and struct field types.
5180 2011-05-25 Jason Merrill <jason@redhat.com>
5182 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
5184 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
5186 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
5188 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5190 * config/i386/i386.md (*movqi_extv_1)): Put back
5191 "register_operand" check in "type" calculation.
5192 (*movqi_extzv_2): Likewise.
5194 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5196 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
5198 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5201 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
5202 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
5203 __divxc3, __divtc3): Wrap definitions in #ifndef.
5205 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5208 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
5209 "register_operand" check and replace q_regs_operand with
5210 QIreg_operand in "type" calculation.
5211 (*movqi_extv_1): Likewise.
5212 (*movqi_extzv_2_rex64): Likewise.
5213 (*movqi_extzv_2): Likewise.
5215 * config/i386/predicates.md (QIreg_operand): New.
5217 2011-05-25 Richard Guenther <rguenther@suse.de>
5219 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5220 type-based offset disambiguation, streamline MEM_REF and
5221 TARGET_MEM_REF handling.
5223 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5225 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
5226 (bdesc_special_args): Add pause intrinsic.
5228 * config/i386/i386.md (UNSPEC_PAUSE): New.
5231 * config/i386/ia32intrin.h (__pause): Likewise.
5233 * doc/extend.texi (X86 Built-in Functions): Add documentation for
5236 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5238 PR tree-optimization/46728
5239 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
5240 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
5242 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
5244 * tree.h (struct tree_exp): Inherit from struct tree_typed.
5245 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
5246 instead of TS_COMMON.
5248 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5250 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
5251 LIBGCC2_GNU_PREFIX is defined.
5253 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
5254 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
5255 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
5256 __clz_tab): Define using __N.
5257 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
5258 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
5259 * target.def (libfunc_gnu_prefix): New hook.
5260 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
5261 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
5262 * doc/tm.texi: Regenerate.
5263 * system.h (LIBGCC2_GNU_PREFIX): Poison.
5264 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
5266 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5267 (init_optabs): Likewise for the bswap libfuncs.
5268 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
5270 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
5271 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
5272 * libgcc-std.ver: Remove.
5273 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
5274 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
5276 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5277 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
5278 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
5279 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
5280 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
5281 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5282 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5283 * config/fixed-bit.h (FIXED_OP): Define differently depending on
5284 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
5285 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
5287 2011-05-25 Jan Hubicka <jh@suse.cz>
5289 * lto-streamer-out.c (output_record_start): Use lto_output_enum
5290 (lto_output_tree): Use output_record_start.
5291 * lto-streamer-in.c (input_record_start): Use lto_input_enum
5292 (lto_get_pickled_tree): Use input_record_start.
5293 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
5294 (lto_value_range_error): New function.
5295 * lto-streamer.h (lto_value_range_error): Declare.
5296 (lto_output_int_in_range, lto_input_int_in_range): New functions.
5297 (lto_output_enum, lto_input_enum): New macros.
5299 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
5301 * common.opt (flag_stack_usage_info): New variable.
5302 (-Wstack-usage): New option.
5303 * doc/invoke.texi (Warning options): Document -Wstack-usage.
5304 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
5305 <OPT_fstack_usage>: Likewise.
5306 * toplev.c (output_stack_usage): Handle -Wstack-usage.
5307 * calls.c (expand_call): Test flag_stack_usage_info variable instead
5308 of flag_stack_usage.
5309 (emit_library_call_value_1): Likewise.
5310 * explow.c (allocate_dynamic_stack_space): Likewise.
5311 * function.c (instantiate_virtual_regs ): Likewise.
5312 (prepare_function_start): Likewise.
5313 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
5314 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
5315 * config/arm/arm.c (arm_expand_prologue): Likewise.
5316 (thumb1_expand_prologue): Likewise.
5317 * config/avr/avr.c (expand_prologue): Likewise.
5318 * config/i386/i386.c (ix86_expand_prologue): Likewise.
5319 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5320 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
5321 * config/mips/mips.c (mips_expand_prologue): Likewise.
5322 * config/pa/pa.c (hppa_expand_prologue): Likewise.
5323 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5324 * config/s390/s390.c (s390_emit_prologue): Likewise.
5325 * config/sh/sh.c (sh_expand_prologue): Likewise.
5326 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5327 * config/spu/spu.c (spu_expand_prologue): Likewise.
5329 2011-05-25 Richard Guenther <rguenther@suse.de>
5331 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
5332 (gimple_canonical_types_compatible_p): Likewise.
5334 2011-05-25 Jan Hubicka <jh@suse.cz>
5337 * ipa.c (function_and_variable_visibility): Only add to same
5338 comdat group list if DECL_ONE_ONLY.
5340 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
5342 PR rtl-optimization/49014
5343 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
5345 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5348 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5350 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5352 PR rtl-optimization/48757
5353 * ira-build.c (loop_with_eh_edge_p): Rename to
5354 loop_with_complex_edge_p, check edges on complexity, make function
5356 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
5359 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5361 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
5362 force flag_ira_share_save_slots to 0.
5364 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5366 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
5367 (vt_initialize): Set PROLOGUE_BB unconditionally.
5368 Add block comment about CFA_BASE_RTX machinery.
5369 Reset FP_CFA_OFFSET to -1 on all invalid paths.
5370 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
5372 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
5375 * c-parser.c (c_parser_objc_class_instance_variables): More robust
5376 parsing of syntax error in ObjC instance variable lists. In
5377 particular, avoid an infinite loop if there is a stray ']'.
5378 Updated error message.
5380 2011-05-24 Ian Lance Taylor <iant@google.com>
5382 * godump.c (go_define): Don't accept a string immediately after
5385 2011-05-24 Ian Lance Taylor <iant@google.com>
5387 * godump.c (struct godump_container): Add invalid_hash field.
5388 (go_format_type): Return false if type is found in invalid_hash.
5389 (go_output_typedef): Add invalid type to invalid_hash.
5390 (go_finish): Create and delete invalid_hash.
5392 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5394 PR tree-optimization/46728
5395 * tree-ssa-math-opts.c (powi_table): New.
5396 (powi_lookup_cost): New.
5398 (powi_as_mults_1): New.
5399 (powi_as_mults): New.
5400 (gimple_expand_builtin_powi): New.
5401 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
5402 (gate_cse_sincos): Remove sincos/cexp restriction.
5404 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5407 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
5409 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
5410 * mips-tdump.c: Likewise.
5412 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
5415 * config/i386/driver-i386.c (host_detect_local_cpu): Always
5416 add -mno-XXX. Handle FMA.
5418 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5420 PR rtl-optimization/48633
5421 * ira-build.c (loop_with_eh_edge_p): New function.
5422 (mark_loops_for_removal): Use it.
5424 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5426 PR rtl-optimization/48971
5427 * ira.c (setup_pressure_classes): Don't check register move cost
5428 for classes with one registers. Don't add pressure class if there
5429 is a pressure class with the same available hard registers.
5430 Check contains_reg_of_mode. Fix a typo in collecting
5431 temp_hard_regset. Ignore hard registers not belonging to a class.
5433 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
5436 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
5438 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5439 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5441 PR gcov-profile/48845
5442 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
5444 2011-05-24 Richard Guenther <rguenther@suse.de>
5446 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
5447 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
5448 (gimple_types_compatible_p_1): Adjust.
5449 (iterative_hash_canonical_type): Do not bother about complete vs.
5451 (gimple_canonical_types_compatible_p): Likewise.
5453 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5455 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
5457 2011-05-24 Richard Guenther <rguenther@suse.de>
5460 * gimple.c (gimple_register_canonical_type): Revert
5462 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
5463 does not for a tree for the case where it matters. Cache
5464 pointer-type alias-sets.
5466 2011-05-24 Joseph Myers <joseph@codesourcery.com>
5468 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
5469 (OBJS): Remove options.o, opts-common.o and prefix.o.
5470 (OBJS-libcommon-target): New.
5471 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
5472 (BACKEND): Include libcommon-target.a.
5473 (MOSTLYCLEANFILES): Include libcommon-target.a.
5474 (libcommon-target.a): New.
5475 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
5478 2011-05-23 Joseph Myers <joseph@codesourcery.com>
5480 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
5481 parts of output shared with the driver.
5482 * optc-gen.awk: Don't generate parts of output not shared with the
5484 * opth-gen.awk: Remove GCC_DRIVER conditionals.
5485 * doc/options.texi (SourcerInclude): Mention options-save.c.
5486 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
5487 (OBJS): Add options-save.o.
5488 (options-save.c, options-save.o): New.
5489 (options.o): Update dependencies.
5490 (gcc-options.o): Remove.
5491 (mostlyclean): Remove options-save.c.
5493 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5496 * dbxout.c: Include cgraph.h.
5497 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5498 and without value expr, return NULL if no varpool node exists for
5499 it or if it is not needed.
5500 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5503 * c-decl.c (start_decl): Convert expr to void_type_node.
5505 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
5507 PR rtl-optimization/48826
5508 * emit-rtl.c (try_split): When splitting a call that is followed
5509 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5511 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5513 * cfgexpand.c (expand_debug_expr): For unused non-addressable
5514 parameters passed in memory prefer using DECL_INCOMING_RTL over
5515 the pseudos it will be copied into.
5517 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
5520 * config/i386/i386.c (ix86_option_override_internal): Save the
5521 initial options after checking vzeroupper.
5523 2011-05-23 David Li <davidxl@google.com>
5525 PR tree-optimization/48988
5526 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5527 Initialize has_valid_pred for each pred chain.
5529 2011-05-23 Richard Guenther <rguenther@suse.de>
5531 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5532 (iterative_hash_gimple_type): Always hash type names.
5534 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5536 * c-typeck.c (build_function_call_vec): Tweak call to
5537 check_function_arguments.
5539 2011-05-23 Richard Guenther <rguenther@suse.de>
5541 PR tree-optimization/49115
5542 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5543 is not necessarily carried out, do not claim it kills the ref.
5544 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5546 2011-05-23 Richard Guenther <rguenther@suse.de>
5549 * builtins.c (fold_builtin_memory_op): Be less restrictive about
5550 what pointer types we accept for folding.
5552 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5554 * gthr-gnat.c: Remove.
5555 * gthr-gnat.h: Remove.
5556 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5557 * config/t-freebsd (LIB2ADDEH): Likewise.
5558 * config/t-linux (LIB2ADDEH): Likewise.
5559 * config/t-sol2 (LIB2ADDEH): Likewise.
5560 * config/ia64/t-vms (LIB2ADDEH): Likewise.
5561 * configure.ac (target_thread_file): Remove gnat handling.
5562 * configure: Regenerate.
5563 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5565 2011-05-23 Tristan Gingold <gingold@adacore.com>
5566 Eric Botcazou <ebotcazou@adacore.com>
5568 * gcov.c (create_file_names): If no object directory is specified,
5569 keep the directory of the file.
5571 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5573 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
5574 * configure: Regenerate.
5576 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5579 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5580 failed and the comparison has a single bit signed type, use
5581 constm1_rtx instead of const1_rtx for true value.
5582 (do_store_flag): If ops->type is single bit signed type, disable
5583 signel bit test optimization and pass -1 instead of 1 as last
5584 parameter to emit_store_flag_force.
5586 2011-05-23 Tom de Vries <tom@codesourcery.com>
5589 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
5591 (infer_loop_bounds_from_undefined): Use new function.
5593 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5595 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
5596 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
5597 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
5599 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
5601 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5603 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
5604 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
5607 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5609 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
5611 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5613 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
5614 UNSPEC_MOVE_PIC pattern.
5616 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5618 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
5619 (sparc-*-rtems*): Likewise.
5620 (sparc64-*-elf*): Likewise.
5621 (sparc64-*-rtems*): Likewise.
5622 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
5623 * config/sparc/t-crtin: New file.
5624 * config/sparc/t-sol2 (crti.o): Delete rule.
5626 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5627 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5628 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5629 (ENDFILE_SPEC): Add crtn.o.
5631 2011-05-22 Tom de Vries <tom@codesourcery.com>
5634 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5635 CODE_CONTAINS_STRUCT (TS_COMMON).
5637 2011-05-22 Jakub Jelinek <jakub@redhat.com>
5640 * expmed.c (extract_fixed_bit_field): Test whether target can be used
5641 only after deciding which mode to use.
5643 2011-05-22 Tom de Vries <tom@codesourcery.com>
5646 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5647 for call to get_shiftadd_cost.
5649 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
5652 * config/i386/cpuid.h (bit_MMXEXT): New define.
5654 2011-05-22 Nick Clifton <nickc@redhat.com>
5656 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5657 initialisation of non-existant args[2] element. Use args[] array
5658 not arg[] array to pass arguments to build_function_type_list.
5660 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
5662 PR tree-optimization/49087
5663 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
5665 2011-05-21 Jason Merrill <jason@redhat.com>
5668 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5669 static storage duration.
5671 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5673 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5676 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5678 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5679 false if there are call-saved registers here...
5680 (sparc_can_use_return_insn_p): ...but here instead.
5681 (save_or_restore_regs): Fix thinko.
5682 (sparc_expand_prologue): Use current_function_is_leaf.
5683 (sparc_frame_pointer_required): Likewise.
5685 2011-05-21 Nick Clifton <nickc@redhat.com>
5688 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5690 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
5692 * gengtype.c (walk_type): Implemented "atomic" GTY option.
5693 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5695 2011-05-21 Joseph Myers <joseph@codesourcery.com>
5697 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
5698 * optc-gen.awk: Move common code to opt-read.awk.
5699 * opth-gen.awk: Likewise.
5700 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5702 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5704 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5706 2011-05-20 Tom de Vries <tom@codesourcery.com>
5709 * tree-ssa-loop-ivopts.c: Include expmed.h.
5710 (get_shiftadd_cost): New function.
5711 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5713 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5716 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5717 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5719 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5721 * Makefile.in: Update comment referring to $(OBJS-common).
5723 2011-05-20 Ian Lance Taylor <iant@google.com>
5725 * godump.c (go_output_typedef): Put enum constants in the macro
5726 hash table to avoid duplicate Go const definitions.
5728 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5730 * Makefile.in (LIBDEPS): Add libcommon.a.
5732 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5733 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5734 pretty-print.o and version.o.
5735 (OBJS-libcommon): New.
5736 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5737 (BACKEND): Add libcommon.a.
5738 (MOSTLYCLEANFILES): Likewise.
5740 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5741 (cpp$(exeext)): Likewise.
5742 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5743 pretty-print.o and input.o.
5744 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5745 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5747 (mips-tfile): Don't explicitly use version.o.
5748 (mips-tdump): Likewise.
5749 (gcov.o): Depend on $(DIAGNOSTIC_H).
5750 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5751 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5752 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5753 * gcov-dump.c: Include intl.h and diagnostic.h.
5754 (main): Initialize diagnostics.
5755 * gcov.c: Include diagnostic.h.
5757 (main): Initialize diagnostics.
5758 * lto-wrapper.c: Include diagnostic.h.
5759 (main): Initialize diagnostics.
5761 2011-05-20 Michael Matz <matz@suse.de>
5763 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5765 2011-05-20 Michael Matz <matz@suse.de>
5766 Richard Guenther <rguenther@suse.de>
5768 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5769 use lto_streamer_cache_append directly instead of returning a VEC.
5770 (preload_common_node): Remove.
5771 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5773 (lto_streamer_cache_create): Call lto_preload_common_nodes.
5775 2011-05-20 Richard Guenther <rguenther@suse.de>
5777 PR tree-optimization/49079
5778 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5779 MEM_REFs correctly for the trailing array access detection.
5780 Special case constants the same way as decls for overall size
5783 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
5785 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5788 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5790 PR tree-optimization/49073
5791 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5792 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5793 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5795 2011-05-20 Richard Guenther <rguenther@suse.de>
5798 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5799 of pointer types the same way the middle-end does.
5801 2011-05-20 Richard Guenther <rguenther@suse.de>
5803 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5804 or pointer-to chains. Delay all fixup to uniquify_nodes.
5806 2011-05-19 Quentin Neill <quentin.neill@amd.com>
5808 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5809 (fma4_fmaddsub): Likewise
5811 2011-05-19 Jan Hubicka <jh@suse.cz>
5813 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5814 (GIMPLE_TYPE_PAIR_SIZE): New macro.
5815 (type_pair_cache): New static var.
5816 (lookup_type_pair): Use fixed sized custom hash; make inline.
5817 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5818 calls of lookup_type_pair.
5819 (print_gimple_types_stats): Remove cache stats.
5820 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5823 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
5825 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5826 when TARGET_RDRND is active.
5827 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5828 Generate dummy SImode target register when target is NULL.
5830 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5832 * config/arm/arm-fpus.def: New.
5833 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5835 * config/arm/arm-tables.opt: Regenerate.
5836 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5837 (arm_option_override): Don't decode FPU name to string here.
5838 * config/arm/arm.opt (mfpu=): Use Enum.
5839 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5840 Update dependencies.
5842 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5844 * collect2.c: Include diagnostic.h.
5845 (fatal_perror, fatal, error, fancy_abort): Remove.
5846 (main): Set progname. Call xmalloc_set_program_name and
5847 diagnostic_initialize.
5848 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5849 scan_libraries, resolve_lib_name): Call fatal_error instead of
5850 fatal and fatal_perror.
5851 * collect2.h (error, fatal, fatal_perror): Don't declare.
5852 * tlink.c: Include diagnostic-core.h.
5853 (recompile_files): Call fatal_error instead of fatal_perror.
5854 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5855 pretty-print.o and input.o.
5856 (collect2.o, tlink.o): Update dependencies.
5858 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5860 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5862 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5865 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5866 COMDAT group syntax, both SPARC and x86 variants.
5867 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5868 * configure: Regenerate.
5869 * config/sol2.h (TARGET_SOLARIS): Define.
5870 (PUSHSECTION_FORMAT): Remove.
5871 (SECTION_NAME_FORMAT): Define.
5872 * config/sol2.c: Include hashtab.h.
5873 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5874 expansion, using SECTION_NAME_FORMAT.
5875 (solaris_comdat_htab): New variable.
5876 (struct comdat_entry): Define.
5877 (comdat_hash): New function.
5878 (comdat_eq): New function.
5879 (solaris_elf_asm_comdat_section): New function.
5880 (solaris_define_comdat_signature): New function.
5881 (solaris_code_end): New function.
5882 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5883 (solaris_code_end): Declare.
5884 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5885 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5887 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5888 Remove ATTRIBUTE_UNUSED.
5889 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5890 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5891 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5892 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5893 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5894 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5895 (PUSHSECTION_FORMAT): Remove.
5896 (SECTION_NAME_FORMAT): Redefine.
5898 2011-05-19 Kai Tietz <ktietz@redhat.com>
5900 * tree-cfg.c (verify_gimple_assign_binary): Barf on
5901 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5902 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5904 2011-05-19 Anatoly Sokolov <aesok@post.ru>
5905 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5907 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5909 2011-05-19 Richard Guenther <rguenther@suse.de>
5912 * tree-object-size.c (addr_object_size): If the pointed-to
5913 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5915 2011-05-19 Richard Guenther <rguenther@suse.de>
5917 * gimple.c (gimple_types_compatible_p_1): Compare names of
5918 the types themselves.
5919 (iterative_hash_gimple_type): And hash them that way.
5920 (gimple_register_type_1): If we register a main variant properly
5921 initialize the leader to ourselves.
5923 2011-05-19 Tom de Vries <tom@codesourcery.com>
5926 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5927 get_loop_invariant_expr_id.
5928 (get_loop_invariant_expr_id): Use get_expr_id.
5929 (parm_decl_cost): New function.
5930 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5931 Improve bound cost estimation. Use different inv_expr_id for elim and
5934 2011-05-19 Tom de Vries <tom@codesourcery.com>
5937 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5938 cost_base.cost == 0.
5940 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
5943 * config/i386/sse.md
5944 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5947 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5949 PR tree-optimization/49039
5950 * tree-vrp.c (extract_range_from_binary_expr): For
5951 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5952 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5954 2011-05-18 Tom de Vries <tom@codesourcery.com>
5957 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5959 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
5961 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5962 (*tls_global_dynamic_64): Ditto.
5963 (*tls_local_dynamic_base_32_gnu): Ditto.
5964 (*tls_local_dynamic_base_64): Ditto.
5965 (tls_initial_exec_64_sun): Ditto.
5967 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5969 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5970 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5972 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5973 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5974 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5975 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5976 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5977 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5978 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5980 2011-05-18 Joseph Myers <joseph@codesourcery.com>
5982 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5983 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5984 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5985 target_thread_pointer, arm_structure_size_boundary, struct
5986 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5987 struct abi_name, arm_all_abis): Remove.
5988 (arm_option_override) Don't process most enumerated option values here.
5989 Don't process target_fpe_name here. Work with integer not string for
5990 structure size boundary; use separate diagnostics for each case.
5991 * config/arm/arm.h (enum float_abi_type, enum
5992 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5994 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5995 arm_structure_size_boundary): Remove.
5996 * config/arm/arm.opt (mabi=): Use Enum and Init.
5997 (arm_abi_type): New Enum and EnumValue entries.
5998 (mfloat-abi=): Use Enum and Init.
5999 (float_abi_type): New Enum and EnumValue entries.
6000 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
6001 (mfp16-format=): Use Enum and Init.
6002 (arm_fp16_format_type): New Enum and EnumValue entries.
6003 (mstructure-size-boundary=): Use UInteger and Init.
6004 (mtp=): Use Enum and Init.
6005 (arm_tp_type): New Enum and EnumValue entries.
6007 2011-05-18 Richard Guenther <rguenther@suse.de>
6009 PR tree-optimization/49018
6010 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
6011 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
6012 gimple_has_side_effects.
6014 2011-05-18 Richard Guenther <rguenther@suse.de>
6016 * gimple.c (gimple_register_type_1): New function, split out from ...
6017 (gimple_register_type): ... here. Avoid infinite recursion.
6019 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
6021 PR tree-optimization/41881
6022 * tree-vectorizer.h (struct _loop_vec_info): Add new field
6023 reduction_chains along with a macro for its access.
6024 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
6025 (destroy_loop_vec_info): Free reduction chains.
6026 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
6027 (vect_is_slp_reduction): New function.
6028 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
6029 (vect_create_epilog_for_reduction): Support SLP reduction chains.
6030 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
6031 definition types for reduction chains.
6032 (vect_supported_load_permutation_p): Don't allow permutations for
6034 (vect_analyze_slp_instance): Support reduction chains.
6035 (vect_analyze_slp): Try to build SLP instance from reduction chains.
6036 (vect_get_constant_vectors): Handle reduction chains.
6037 (vect_schedule_slp_instance): Mark the first statement of the
6038 reduction chain as reduction.
6040 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
6042 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
6043 names for group elements access.
6044 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
6045 reduction chains as well. Remove data reference and interleaving
6046 related words from the fields names.
6047 * tree-vect-loop.c (vect_transform_loop): Use new names for group
6049 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
6050 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
6051 vect_update_interleaving_chain, vect_same_range_drs,
6052 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
6053 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
6054 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
6055 vect_analyze_group_access, vect_analyze_data_ref_access,
6056 vect_create_data_ref_ptr, vect_transform_strided_load,
6057 vect_record_strided_load_vectors): Likewise.
6058 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
6059 vect_model_load_cost, vectorizable_store, vectorizable_load,
6060 vect_remove_stores, new_stmt_vec_info): Likewise.
6061 * tree-vect-slp.c (vect_build_slp_tree,
6062 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
6064 2011-05-18 Richard Guenther <rguenther@suse.de>
6067 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
6068 operand verification.
6069 (verify_gimple_assign_binary): Likewise.
6070 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
6071 to non-1-precision BOOLEAN_TYPEs.
6073 2011-05-18 Tom de Vries <tom@codesourcery.com>
6076 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
6078 2011-05-18 Jakub Jelinek <jakub@redhat.com>
6080 PR tree-optimization/49000
6081 * tree-ssa.c (execute_update_addresses_taken): Call
6082 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
6083 be rewritten and decl has been marked for renaming, reset
6086 2011-05-17 Joseph Myers <joseph@codesourcery.com>
6088 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
6089 enum_opts_set when testing if attributes have set -mfpmath=.
6091 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
6093 * config/mips/mips.c (mips_handle_option): Remove unused variable.
6095 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6097 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
6099 * tree-inline.c (maybe_inline_call_in_expr): Initialize
6100 id.transform_lang_insert_block with NULL.
6102 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6104 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
6105 (output_fp_compare): Change args 3 and 4 to bool.
6106 (ix86_expand_call): Change arg 6 to bool.
6107 (ix86_attr_length_immediate_default): Change arg 2 to bool.
6108 (ix86_attr_length_vex_default): Change arg 3 to bool.
6109 * config/i386/i386.md: Update all uses.
6110 * config/i386/i386.c: Ditto.
6111 (ix86_flags_dependent): Change return type to bool.
6113 2011-05-17 Richard Guenther <rguenther@suse.de>
6115 * gimple.c (type_hash_pair_compare): Fix comparison.
6117 2011-05-17 Richard Guenther <rguenther@suse.de>
6119 * gimple.c (iterative_hash_gimple_type): Simplify singleton
6120 case some more, fix final hash value of the non-singleton case.
6122 2011-05-17 Richard Guenther <rguenther@suse.de>
6126 2011-05-16 Richard Guenther <rguenther@suse.de>
6128 * gimple.c (gimple_types_compatible_p_1): Use names of the
6129 type itself, not its main variant.
6130 (iterative_hash_gimple_type): Likewise.
6132 2011-05-17 Richard Guenther <rguenther@suse.de>
6134 * gimple.c (gimple_register_canonical_type): Use the main-variant
6135 leader for computing the canonical type.
6137 2011-05-17 Nick Clifton <nickc@redhat.com>
6139 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
6142 * config/rx/rx.md: Add peephole to remove redundant extensions
6144 (bitset_in_memory): Use rx_restricted_mem_operand.
6145 (bitinvert_in_memory): Likewise.
6146 (bitclr_in_memory): Likewise.
6148 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
6149 Nick Clifton <nickc@redhat.com>
6151 * config/rx/rx.md: Add peepholes to match a register move followed
6152 by a comparison of the moved register. Replace these with an
6153 addition of zero that does both actions in one instruction.
6155 2011-05-17 Jakub Jelinek <jakub@redhat.com>
6158 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
6159 predicate to allow CONST_INT.
6160 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
6162 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6164 * opts-common.c (opt_enum_arg_to_value): New.
6165 * opts.h (opt_enum_arg_to_value): Declare.
6166 * config/i386/i386.opt (fpmath): Remove.
6167 (mfpmath=): Use Enum, Init and Save.
6168 (fpmath_unit): New Enum and EnumValue entries.
6169 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
6170 name for function fpmath state.
6171 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
6172 * config/i386/i386.c: Include diagnostic.h.
6173 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
6174 (ix86_target_string): Take enum fpmath_unit value instead of string.
6175 (ix86_debug_options): Update call to ix86_target_string.
6176 (ix86_option_override_internal): Don't process fpmath strings here.
6177 (x86_function_specific_save, ix86_function_specific_restore):
6178 Don't handle fpmath state specially.
6179 (ix86_function_specific_print): Pass fpmath state to
6180 ix86_target_string instead of printing in this function.
6181 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
6182 Handle enum attributes.
6183 (IX86_ATTR_ENUM, ix86_opt_enum): New.
6184 (ix86_valid_target_attribute_tree): Update option_strings
6185 handling. Handle fpmath as enum option.
6186 (ix86_can_inline_p): Update field names for function fpmath state.
6187 (ix86_expand_builtin): Update call to ix86_target_string.
6188 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
6189 (ix86_fpmath): Remove.
6190 * config/i386/t-i386 (i386.o): Update dependencies.
6192 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6194 PR preprocessor/48677
6195 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
6196 from decoded_options[0], not from itself.
6198 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
6200 * config/i386/constraints.md (z): New constraint.
6201 * config/i386/i386.c (c): New mode attribute.
6202 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
6203 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
6204 constraint for operand 0.
6205 (*call_vzeroupper): Ditto.
6206 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
6207 (*call_rex64_ms_sysv_vzeroupper): Ditto.
6208 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
6209 Use "lzm" constraint for operand 0.
6210 (*call_pop_vzeroupper): Ditto.
6211 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
6212 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
6213 constraint for operand 0.
6214 (*sibcall_vzeroupper): Ditto.
6215 (*sibcall_rex64_ms_sysv): Ditto.
6216 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
6217 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
6218 *sibcall_pop_1. Use "Uz" constraint for operand 0.
6219 (*sibcall_pop_vzeroupper): Ditto.
6220 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
6221 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
6222 mode iterator. Use "<c>zm" constraint for operand 1.
6223 (*call_value_vzeroupper): Ditto.
6224 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
6226 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
6227 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
6228 *call_value_pop_1. Use "lzm" constraint for operand 1.
6229 (*call_value_pop_vzeroupper): Ditto.
6230 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
6231 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
6232 mode iterator. Use "Uz" constraint for operand 1.
6233 (*sibcall_value_vzeroupper): Ditto.
6234 (*sibcall_value_rex64_ms_sysv): Ditto.
6235 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
6236 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
6237 constraint for operand 1.
6238 (*sibcall_value_pop_vzeroupper): Ditto.
6239 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
6240 and "z" constraint for operand 2.
6241 (*tls_global_dynamic_32_gnu): Ditto.
6242 (*tls_local_dynamic_base_32_gnu): Ditto.
6243 (*tls_local_dynamic_base_64): Ditto.
6244 (*tls_local_dynamic_32_once): Ditto.
6245 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
6247 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
6249 2011-05-16 Richard Guenther <rguenther@suse.de>
6251 * gimple.c (gimple_types_compatible_p_1): Use names of the
6252 type itself, not its main variant.
6253 (iterative_hash_gimple_type): Likewise.
6255 2011-05-16 Richard Guenther <rguenther@suse.de>
6257 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
6258 always visit pointer target and function result and argument types.
6260 2011-05-16 Jason Merrill <jason@redhat.com>
6263 * tree-inline.c (copy_statement_list): Put back recursion.
6265 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6269 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
6270 * config/avr/avr.md ("*ior<mode>qi.byte0",
6271 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
6273 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6276 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
6277 register is needed for a function argument.
6279 2011-05-16 Richard Guenther <rguenther@suse.de>
6281 * gimple.c (struct type_hash_pair): New type.
6282 (type_hash_pair_compare): New function.
6283 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
6285 2011-05-16 Revital Eres <revital.eres@linaro.org>
6287 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
6289 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6291 * config/i386/i386.md (floating point move splitters): Fix
6292 usage of standard_80387_constant_p.
6293 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
6295 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6297 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
6299 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
6301 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
6302 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
6303 (tree_ssa_lim_finalize): Likewise.
6305 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
6307 * config/i386/constraint.md (Yd, Yx): New register constraints.
6308 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
6309 Yd conditional register constraint.
6310 (*movtf_internal): Use standard_sse_constant_opcode.
6311 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
6312 Yx conditional register constraint.
6313 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
6314 Yd conditional register constraint. Use standard_sse_constant_p to
6315 check for valid SSE constants and call standard_sse_constant_opcode to
6317 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
6318 constants and call standard_sse_constant_opcode to output SSE insn.
6319 * config/i386/i386.c (ix86_option_ovverride_internal): Set
6320 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
6321 optimize_size is set.
6322 (standard_sse_constant_opcode): Output conditional AVX insn templates.
6324 2011-05-14 Tobias Burnus <burnus@net-b.de>
6326 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
6328 2011-05-13 Martin Jambor <mjambor@suse.cz>
6330 * ipa-prop.c (ipa_cst_from_jfunc): New function.
6331 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
6332 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6333 (evaluate_conditions_for_ipcp_clone): Removed.
6334 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
6335 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
6336 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
6338 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
6340 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
6341 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
6342 lieu of MAY_HAVE_DEBUG_STMTS.
6343 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
6344 debug statements if !MAY_HAVE_DEBUG_STMTS.
6346 2011-05-13 Martin Thuresson <martint@google.com>
6348 PR gcov-profile/47793
6349 * libgcov.c (gcov_exit): Support relative profile paths.
6350 * doc/invoke.texi (-fprofile-dir): Update for above change.
6352 2011-05-13 Richard Guenther <rguenther@suse.de>
6354 * gimple.c (gimple_canonical_types_compatible_p): Do not use
6355 type-pair caching, do not compare hashes.
6357 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
6360 * tree-cfg.c (edge_to_cases_cleanup): Return true.
6361 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
6363 2011-05-13 Kai Tietz <ktietz@redhat.com>
6365 * gimplify.c (gimplify_expr): Make sure operand is boolified.
6366 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
6367 compatible type for TRUTH_NOT_EXPR.
6369 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
6371 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
6372 (ix86_hard_regno_mode_ok): Change return value to bool. Use
6373 can_create_pseudo_p ().
6375 2011-05-13 Richard Guenther <rguenther@suse.de>
6378 * gimple.c (iterative_hash_gimple_type): Revert change in
6379 pointer target and function result and argument hashing.
6381 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
6383 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
6384 (*movxf_internal_nointeger): Ditto.
6385 (*movdf_internal_rex64): Ditto.
6386 (*movdf_internal): Ditto.
6387 (*movdf_internal_nointeger): Ditto.
6388 (*movsf_internal): Ditto.
6389 (sincos splitters): Use can_create_pseudo ().
6391 2011-05-13 Joseph Myers <joseph@codesourcery.com>
6393 * config/i386/i386-opts.h: New.
6394 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
6395 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
6396 ix86_section_threshold): Remove.
6397 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
6398 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
6400 (ix86_option_override_internal): Don't decode strings for options
6401 other than -march=, -mtune= and -mfpmath=. Don't allow for
6402 __attribute__ uses in remaining diagnostics for options with
6403 string arguments. Don't check for integer arguments being negative.
6404 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
6405 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
6406 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
6407 ix86_branch_cost, ix86_section_threshold): Remove.
6408 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
6410 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
6412 (masm=): Use Enum and Init.
6413 (asm_dialect): New Enum and EnumValue entries.
6414 (mbranch-cost=): Use UInteger.
6415 (mlarge-data-threshold=): Use UInteger and Init.
6416 (mcmodel=): Use Enum and Init.
6417 (cmodel): New Enum and EnumValue entries.
6418 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
6419 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
6420 mregparm=): Use UInteger.
6421 (mstringop-strategy=): Use Enum and Init.
6422 (stringop_alg): New Enum and EnumValue entries.
6423 (mtls-dialect=): Use Enum and Init.
6424 (tls_dialect): New Enum and EnumValue entries.
6425 (mabi=): Use Enum and Init.
6426 (calling_abi): New Enum and EnumValue entries.
6427 (mveclibabi=): Use Enum and Init.
6428 (ix86_veclibabi): New Enum and EnumValue entries.
6430 2011-05-13 Nick Clifton <nickc@redhat.com>
6432 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
6433 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
6435 2011-05-13 Kai Tietz <ktietz@redhat.com>
6438 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
6439 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
6440 (gimple_boolify): Check for cast for boolean_type_node instead for
6443 2011-05-13 Richard Guenther <rguenther@suse.de>
6445 PR tree-optimization/48172
6446 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
6447 multiplying by number of iterations for equal step.
6448 (vect_create_cond_for_alias_checks): Likewise.
6450 2011-05-13 Andreas Schwab <schwab@redhat.com>
6452 * configure.ac: Use AS_HELP_STRING throughout.
6453 * configure: Regenerate.
6455 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
6457 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
6458 (ix86_emit_restore_regs_using_mov): Likewise.
6459 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6461 2011-05-12 Anatoly Sokolov <aesok@post.ru>
6463 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
6464 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
6465 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
6466 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
6467 RTX_OK_FOR_OLO10_P): ...here.
6468 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
6471 2011-05-12 Kai Tietz <ktietz@redhat.com>
6473 * gimplify.c (gimple_boolify): Re-boolify expression
6474 arguments even if expression type is of kind BOOLEAN_TYPE.
6475 (gimplify_boolean_expr): Removed.
6476 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
6477 and XOR. Additional take care that we keep expression's type.
6478 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
6479 of TRUTH_AND|OR|XOR_EXPR.
6481 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6483 PR tree-optimization/48975
6484 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
6485 on all bbs here and free and clear ifc_bbs at the end.
6487 2011-05-12 Richard Guenther <rguenther@suse.de>
6489 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
6490 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
6491 until after simple checks.
6492 (gimple_types_compatible_p): Likewise.
6493 (iterative_hash_gimple_type): Always hash pointer targets
6494 and function return and argument types.
6495 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6496 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
6497 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6498 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
6499 completely in the simple compare section.
6500 (gimple_register_canonical_type): Query the cache again after
6503 2011-05-12 Richard Guenther <rguenther@suse.de>
6505 PR tree-optimization/48172
6506 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6507 the number of iterations from the segment size calculation.
6508 (vect_create_cond_for_alias_checks): Adjust.
6510 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6513 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6514 if validate_subreg fails.
6516 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
6518 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6519 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6522 2011-05-12 DJ Delorie <dj@redhat.com>
6524 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
6525 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6526 created builtin into rx_builtins array.
6527 (rx_builtin_decl): New function.
6528 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
6530 2011-05-12 DJ Delorie <dj@redhat.com>
6531 Nick Clifton <nickc@redhat.com>
6533 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6534 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6535 (rx_is_legitimate_address): Add pre-decrement and post-increment
6536 addressing in HImode and QImode. Fix test for out of range
6538 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
6539 (rx_align_for_label): Test label before extracting its usage count.
6540 (rx_adjust_insn_lengths): Fix selection of insn codes.
6541 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
6543 2011-05-11 Jason Merrill <jason@redhat.com>
6545 * tree.c (type_hash_canon): Use struct tree_type_non_common.
6547 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6549 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6550 reindent the subsequent block.
6552 2011-05-11 Satoru Takabayashi <satorux@google.com>
6553 Paul Pluzhnikov <ppluzhnikov@google.com>
6555 * doc/install.texi (Configuration): Document --with-linker-hash-style.
6556 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6557 * config.in: Add LINKER_HASH_STYLE.
6558 * configure.ac: Add --with-linker-hash-style.
6559 * configure: Regenerate.
6561 2011-05-11 Richard Guenther <rguenther@suse.de>
6564 * gimple.c (iterative_hash_canonical_type): Fix typo.
6566 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
6568 * config/i386/i386.c (legitimize_tls_address)
6569 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6570 expanders directly for TARGET_GNU2_TLS. Determine pic and
6571 __tls_get_addr symbol reference here. Update call to
6572 gen_tls_global_dynamic_{32,64} for added arguments.
6573 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6574 expanders directly for TARGET_GNU2_TLS. Determine
6575 __tls_get_addr symbol reference here. Update call to
6576 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
6577 unique UNSPEC REG_EQUIV to libcall block.
6578 (ix86_tls_get_addr): Declare static.
6579 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
6580 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
6581 Do not determine pic and __tls_get_addr symbol reference here. Do not
6582 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
6583 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
6584 (tls_global_dynamic_64): Add operand 2. Do not determine
6585 __tls_get_addr symbol reference here. Do not call
6586 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
6587 (tls_local_dynamic_base64): Ditto for operand 1.
6589 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6591 * function.c (expand_function_start): Initialize stack_check_probe_note
6592 only if the generic stack checking mechanism is used.
6594 2011-05-11 Richard Guenther <rguenther@suse.de>
6596 PR tree-optimization/15256
6597 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
6598 (A & B) | C, combine (A op CST1) op CST2.
6599 (tree_ssa_forward_propagate_single_use_vars): Only bother to
6600 visit assigns that have uses.
6602 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
6604 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
6605 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6606 (unpack_ts_type_common_value_fields): ...this. Update comment.
6607 (unpack_value_fields): Adjust for renaming.
6608 (lto_input_ts_type_tree_pointers): Split into...
6609 (lto_input_ts_type_common_tree_pointer): ...this and...
6610 (lto_input_ts_type_non_common_tree_pointers): ...this.
6611 (lto_input_tree_pointers): Adjust for above split.
6612 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
6613 (pack_ts_type_common_value_fields): ...this. Update comment.
6614 (lto_output_ts_type_tree_pointers): Split into...
6615 (lto_output_ts_type_common_tree_pointers): ...this and...
6616 (lto_output_ts_type_non_common_tree_pointers): ...this.
6617 (lto_output_tree_pointers): Adjust for above split.
6618 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
6619 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
6620 * stor-layout.c (vector_type_mode): Adjust location of mode field.
6621 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
6623 (struct tree_type): Split into...
6624 (struct tree_type_common: ...this and...
6625 (struct tree_type_with_lang_specific): ...this and...
6626 (struct tree_type_non_common): ...this. Adjust accessor macros
6628 (TYPE_VALUES_RAW): Define.
6629 (union tree_node): Update for above changes.
6630 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6632 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6633 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6634 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6635 * treestructu.def (TS_TYPE): Remove.
6636 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6639 2011-05-11 Jakub Jelinek <jakub@redhat.com>
6642 * tree-ssa.c (reset_debug_uses): New function.
6643 * tree-flow.h (reset_debug_uses): New prototype.
6644 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6645 * tree-loop-distribution.c (generate_loops_for_partition): Call
6646 reset_debug_uses on the stmts that will be removed. Keep around
6647 all debug stmts, don't count them as bits in partition bitmap.
6648 (generate_builtin): Don't count debug stmts or labels as bits in
6651 2011-05-11 Richard Guenther <rguenther@suse.de>
6653 * gimple.c (gimple_type_hash_1): Merge with ...
6654 (gimple_type_hash): ... this.
6655 (gtc_visit): Remove mode parameter and simplify accordingly.
6656 (gimple_types_compatible_p_1): Likewise.
6657 (gimple_types_compatible_p): Likewise.
6658 (iterative_hash_gimple_type): Likewise.
6660 (gimple_type_eq): Adjust.
6662 2011-05-11 Revital Eres <revital.eres@linaro.org>
6664 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6665 enters the branch create an anti edge in the opposite direction
6666 to prevent the creation of reg-moves.
6667 * modulo-sched.c: Adjust comment to reflect the fact we are
6668 scheduling closing branch.
6669 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6670 (stage_count): New field in struct partial_schedule.
6671 (calculate_stage_count): New function.
6672 (normalize_sched_times): Rename to reset_sched_times and handle
6673 incrementing the sched time of the nodes by a constant value
6674 passed as parameter.
6675 (duplicate_insns_of_cycles): Skip closing branch.
6676 (sms_schedule_by_order): Schedule closing branch.
6677 (ps_insn_find_column): Handle closing branch.
6678 (sms_schedule): Call reset_sched_times and adjust the code to
6679 support scheduling of the closing branch.
6680 (ps_insert_empty_row): Update calls to normalize_sched_times
6681 and rotate_partial_schedule functions.
6683 2011-05-11 Richard Guenther <rguenther@suse.de>
6686 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6688 2011-05-11 Joseph Myers <joseph@codesourcery.com>
6690 * opts.c (finish_options): Move warning settings from process_options.
6691 * toplev.c (process_options): Move warning settings to finish_options.
6693 2011-05-11 Richard Guenther <rguenther@suse.de>
6695 PR tree-optimization/18041
6696 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6697 (simplify_bitwise_binary): ... this. Handle operand conversions
6698 by applying them to the result instead.
6699 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6701 2011-05-11 Richard Guenther <rguenther@suse.de>
6703 * gimple.c (gimple_canonical_types_compatible_p): Split out
6704 from gimple_types_compatible_p and friends. Do not recurse
6705 to pointed-to types.
6706 (gimple_canonical_type_eq): Use it.
6707 (iterative_hash_canonical_type): Split out from
6708 iterative_hash_gimple_type and friends. Do not recurse
6709 to pointed-to types.
6710 (gimple_canonical_type_hash): Use it, allocate the hash here.
6712 2011-05-11 Revital Eres <revital.eres@linaro.org>
6714 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6717 2011-05-11 Revital Eres <revital.eres@linaro.org>
6719 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6720 instead of PREV_INSN.
6722 2011-05-11 Revital Eres <revital.eres@linaro.org>
6724 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6725 * loop-doloop.c (doloop_condition_get): Likewise.
6726 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6728 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6730 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6732 * tree.def (CASE_LABEL_EXPR): Add an operand.
6733 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6735 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6737 * c-decl.c (c_override_global_bindings_to_false): Remove.
6738 (global_bindings_p): Don't check
6739 c_override_global_bindings_to_false.
6740 * c-tree.h (c_override_global_bindings_to_false): Remove.
6741 * c-typeck.c (composite_type): Don't set
6742 c_override_global_bindings_to_false.
6744 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6746 PR target/48857, 48495
6747 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6749 (VSX_MOVE_MODE): Ditto.
6750 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6751 VSX vector types. Add V2DImode.
6752 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6753 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6754 (MODES_TIEABLE_P): Ditto.
6756 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6757 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6759 (init_cumulative_args): Ditto.
6760 (rs6000_function_arg_boundary): Ditto.
6761 (rs6000_function_arg_advance_1): Ditto.
6762 (rs6000_function_arg): Ditto.
6763 (rs6000_function_ok_for_sibcall): Ditto.
6764 (emit_frame_save): Ditto.
6765 (rs6000_function_value): Ditto.
6766 (rs6000_libcall_value): Ditto.
6768 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6770 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6771 i386/darwin-lib.h to $libgcc_tm_file.
6772 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6774 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6776 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6778 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6780 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6781 * config/rs6000/rs6000-tables.opt: New file (generated).
6782 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6783 rs6000/rs6000-tables.opt to extra_options.
6784 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6785 * config/rs6000/rs6000.c (rs6000_select): Remove.
6786 (processor_target_table): Move contents to rs6000-cpus.def.
6787 (darwin_rs6000_override_options): Check
6788 global_options_set.x_rs6000_cpu_index instead of
6789 rs6000_select[1].string.
6790 (rs6000_option_override_internal): Likewise.
6791 (rs6000_handle_option): Don't assert that global structures are in
6792 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
6793 (rs6000_default_cpu): New variable.
6794 (rs6000_file_start): Set it instead of local default_cpu. Check
6795 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6796 global_options_set.x_rs6000_tune_index instead of rs6000_select.
6797 (rs6000_darwin_file_start): Check rs6000_default_cpu and
6798 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6799 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6800 rs6000_select): Remove.
6801 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6803 (mcpu=, mtune=): Use Var, Init, Enum and Save.
6804 * config/rs6000/t-rs6000
6805 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6806 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6807 global_options_set.x_rs6000_cpu_index instead of
6808 rs6000_select[1].string.
6809 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6810 global_options_set.x_rs6000_cpu_index instead of
6811 rs6000_select[1].string.
6813 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6815 * config.gcc (libgcc_tm_file): Define instead of including files
6816 from ../../libgcc/config/ in tm_file.
6817 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6818 * configure: Regenerate.
6819 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6820 libgcc_tm.h, cs-libgcc_tm.h): New.
6821 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6822 (clean): Remove libgcc_tm.h.
6823 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6824 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6825 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6827 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
6830 * config/avr/avr.c (avr_ret_register): Return unsigned int
6832 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6833 it to avr_libcall_value.
6834 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6836 (avr_expand_binop_builtin): Ditto.
6837 (avr_expand_unop_builtin): Ditto.
6839 2011-05-10 DJ Delorie <dj@redhat.com>
6841 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6842 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6843 * config/rx/rx.c (rx_align_for_label): Add label and
6844 uses_threshold parameters. Do not align when the label is not
6846 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6848 2011-05-10 Richard Guenther <rguenther@suse.de>
6850 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6851 a series of conversions and apply foldings similar to what
6853 (tree_ssa_forward_propagate_single_use_vars): Call it.
6855 2011-05-10 Jakub Jelinek <jakub@redhat.com>
6857 PR tree-optimization/48611
6858 PR tree-optimization/48794
6859 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6860 referenced from RESX or EH_DISPATCH arguments.
6863 * dfp.c (decimal_to_decnumber): Handle conversion from
6864 dconst{1,2,m1,half}.
6866 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6868 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6869 for !flag_prefer_avx128.
6870 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6872 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6874 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6875 (fold_ternary_loc): Use expr_location_or.
6877 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
6880 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6881 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6882 Pmode and mem_mode is not VOIDmode.
6884 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
6886 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6887 TYPE_QUAL_RESTRICT): Convert to enum.
6889 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6891 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6892 (const_pow2_1_to_8_operand): Ditto.
6893 (const_pow2_1_to_128_operand): Ditto.
6894 (const_pow2_1_to_32768_operand): Ditto.
6895 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6896 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
6897 in insn constraint to check integer value of operand 3.
6898 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6900 (PINSR_MODE): New mode iterator.
6901 (sse2p4_1): New mode attribute.
6902 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6903 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6904 iterator. Use const_int_operand instead of
6905 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
6906 exact_log2 in insn constraint to check integer value of operand 3.
6908 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6910 * config/i386/sse.md (blendbits): Remove mode attribute.
6911 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6912 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6913 Check integer value of operand 3 in insn constraint.
6915 2011-05-09 Richard Guenther <rguenther@suse.de>
6917 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6919 (lto_symtab_merge): Likewise. Do not register types here.
6920 (lto_symtab_merge_decls_2): Likewise.
6921 (lto_symtab_merge_decls_1): Likewise.
6922 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6923 * gimple.c (enum gtc_mode): Declare.
6924 (gimple_types_compatible_p): Make static.
6926 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6928 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6929 temporary register to match Pmode.
6931 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6933 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6934 and *vec_concatv4si_1_avx.
6936 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6938 PR rtl-optimization/48927
6939 * ira-conflicts.c (commutative_constraint_p): Use
6940 recog_data.alternative_enabled_p to disable alternatives where
6941 "enabled" attribute is false.
6942 (get_dup_num): Ditto.
6943 * ira-lives.c (single_reg_class): Ditto.
6944 (ira_implicitly_set_insn_hard_regs): Ditto.
6946 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6948 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6949 (dataflow_set_preserve_mem_locs): Likewise.
6951 2011-05-09 Philipp Thomas <pth@suse.de>
6953 * config/mep/mep.c (mep_validate_vliw): Syntax description
6954 should not be translated.
6956 2011-05-09 Joseph Myers <joseph@codesourcery.com>
6958 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6959 * config/mips/mips-tables.opt: New file (generated).
6960 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6961 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6962 MIPS_ARCH_OPTION_NATIVE): Define.
6963 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6965 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6966 mips_parse_cpu): Remove.
6967 (mips_cpu_info_from_opt, mips_default_arch): New.
6968 (mips_handle_option): Don't assert that global structures are in
6969 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6970 (mips_option_override): Use new variables and functions to set
6971 state of these options. Use strcmp to check for individual CPU names.
6972 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6974 * config/mips/mips.opt (march=): Use ToLower and Enum.
6975 (mips): Use ToLower, Enum and Var.
6976 (mtune=): Use ToLower and Enum.
6977 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6979 2011-05-08 Jan Hubicka <jh@suse.cz>
6981 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6982 Arrange type pairs to be UID ordered.
6983 (gimple_lookup_type_leader): Make inline.
6985 2011-05-09 Nick Clifton <nickc@redhat.com>
6988 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6992 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6995 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6997 * combine.c (simplify_comparison): Abstract out parts into...
6998 (simplify_compare_const): ... new function.
6999 (try_combine): Generalize parallel arithmetic/compare combining
7000 to call simplify_compare_const() and CANONICALIZE_COMPARE().
7002 2011-05-08 Jan Hubicka <jh@suse.cz>
7004 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
7005 (cgraph_create_virtual_clone): Call hooks once virtual clone
7007 * cgraph.h (cgraph_clone_node): Update prototype.
7008 * ipa-cp.c (ipcp_estimate_growth): Use
7009 estimate_ipcp_clone_size_and_time.
7010 * ipa-inline-transform.c (clone_inlined_nodes): Update.
7011 * lto-cgraph.c (input_node): Update.
7012 * ipa-inline.c (recursive_inlining): Update.
7013 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
7014 (evaluate_conditions_for_known_args): Break out from ...
7015 (evaluate_conditions_for_edge): ... here.
7016 (evaluate_conditions_for_ipcp_clone): New function.
7017 (inline_node_duplication_hook): Update clone summary based
7019 (estimate_callee_size_and_time): Rename to ...
7020 (estimate_node_size_and_time): take NODE instead of EDGE;
7021 take POSSIBLE_TRUTHS as argument.
7022 (estimate_callee_size_and_time): Update.
7023 (estimate_ipcp_clone_size_and_time): New function.
7024 (do_estimate_edge_time): Update.
7026 2011-05-08 Richard Guenther <rguenther@suse.de>
7030 * expmed.c (expand_shift_1): Compute adjusted constant shift
7033 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7035 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
7037 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
7039 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
7041 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
7043 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
7045 2011-05-07 Jan Hubicka <jh@suse.cz>
7047 * ipa-inline-transform.c (inline_call): Account when program size
7049 * ipa-inline.c (relative_time_benefit): New function.
7050 (edge_badness): Reorganize to be power 2 based; fix thinko when
7051 computing badness for negative growth; update comments to match
7052 reality; better dumps.
7054 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
7056 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
7057 type to bool and adjust comment.
7058 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
7059 (fold_mathfn_compare): Remove calls to global_bindings_p.
7060 (fold_inf_compare): Likewise.
7061 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
7062 * c-tree.h (global_bindings_p): Adjust prototype.
7063 * c-decl.c (global_bindings_p): Return bool and simplify.
7065 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
7067 PR tree-optimization/48837
7068 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
7069 when accumulator transformation is performed.
7071 2011-05-06 Jan Hubicka <jh@suse.cz>
7073 * i386.h (ix86_tune_indices): Add
7074 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
7075 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
7076 * i386.c (initial_ix86_tune_features): Add
7077 X86_SOFTARE_PREFETCHING_BENEFICIAL.
7078 (software_prefetching_beneficial_p): Remove predicate.
7079 (ix86_option_override_internal): Use new macro.
7081 2011-05-06 Jan Hubicka <jh@suse.cz>
7083 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
7085 2011-05-06 Jan Hubicka <jh@suse.cz>
7087 * cgraph.c (cgraph_add_thunk): Create real function node instead
7088 of alias node; finalize it and mark needed/reachale; arrange visibility
7089 to be right and add it into the corresponding same comdat group list.
7090 (dump_cgraph_node): Dump thunks.
7091 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
7092 cgraph_function_with_gimple_body_p,
7093 cgraph_first_function_with_gimple_body,
7094 cgraph_next_function_with_gimple_body): New functions.
7095 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
7097 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
7098 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7099 * cgraphunit.c (cgraph_finalize_function): Only look into possible
7100 devirtualization when optimizing.
7101 (verify_cgraph_node): Verify thunks.
7102 (cgraph_analyze_function): Analyze thunks.
7103 (cgraph_mark_functions_to_output): Output thunks only in combination
7104 with function they are assigned to.
7105 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
7106 alias into normal node.
7107 (assemble_thunks): New functoin.
7108 (cgraph_expand_function): Use it.
7109 * lto-cgraph.c (lto_output_node): Stream thunks.
7110 (input_overwrite_node): Stream in thunks.
7111 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
7112 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
7113 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
7114 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
7115 (inline_analyze_function): Do not care about thunk jump functions.
7116 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
7117 * ipa-prop.c (ipa_prop_write_jump_functions): Use
7118 cgraph_function_with_gimple_body_p.
7119 * passes.c (do_per_function_toporder): Use
7120 cgraph_function_with_gimple_body_p.
7121 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7122 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
7123 (function_called_by_processed_nodes_p): Likewise.
7125 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7127 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
7128 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
7130 (mabi=): Replace with separate entries for mabi=altivec,
7131 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
7132 mabi=ieeelongdouble and mabi=ibmlongdouble.
7133 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
7134 check for -mabi=spe without SPE ABI support here.
7135 (rs6000_handle_option): Replace OPT_mabi_ handling with
7136 OPT_mabi_altivec and OPT_mabi_spe handling.
7138 2011-05-06 Cary Coutant <ccoutant@google.com>
7140 * dwarf2out.c (contains_subprogram_definition): New function.
7141 (should_move_die_to_comdat): Call it.
7143 2011-05-06 Jeff Law <law@redhat.com>
7145 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
7146 remove_ctrl_stmt_and_useless_edges.
7147 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
7148 (fixup_template_block, thread_single_edge): Likewise.
7149 (mark_threaded_blocks): Use THREAD_TARGET.
7151 2011-05-06 Alan Modra <amodra@gmail.com>
7154 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7155 const0_rtx as the arg to the dummy __tls_get_addr libcall.
7157 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7159 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
7160 constraint modifier to "r".
7162 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7164 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
7165 fall through for OPT_mcmodel_.
7167 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7169 * config/s390/s390.c (s390_asm_trampoline_template): Comment
7171 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
7173 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7176 * config/arm/arm.opt (marm): Document it.
7177 (mthumb): Reject negative variant.
7179 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7182 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7183 Fix typo in "ccvt" variable name.
7185 2011-05-06 Tristan Gingold <gingold@adacore.com>
7188 * config/vms/vms-ar.c (main): Remove cwd variable.
7190 2011-05-06 Jakub Jelinek <jakub@redhat.com>
7193 * var-tracking.c (prepare_call_arguments): Move else before #endif.
7195 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7197 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
7198 * gimplify.c (gimplify_switch_expr): Likewise.
7199 * omp-low.c (expand_omp_sections): Likewise.
7200 * tree-eh.c (lower_try_finally_switch): Likewise.
7201 (lower_eh_dispatch): Likewise.
7202 * tree.h (build_case_label): Declare.
7203 * tree.c (build_case_label): Define.
7205 2011-05-05 Jason Merrill <jason@redhat.com>
7208 * tree-inline.c (copy_tree_r): Use copy_statement_list.
7209 (copy_statement_list): Don't recurse.
7210 * stor-layout.c (copy_self_referential_tree_r): Don't allow
7213 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7215 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
7216 through from -mfpu= handling.
7217 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
7219 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
7221 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
7224 2011-05-05 Steve Ellcey <sje@cup.hp.com>
7226 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
7228 (hppa[12]*-*-hpux11*): Ditto.
7229 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
7230 * config/ia64/hpux-unix2003.h: New.
7231 * config/pa/pa-hpux1131.opt: New.
7232 * config/pa/pa-hpux1131.h: New.
7233 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
7234 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
7235 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
7237 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7240 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
7241 instead of mode as 3rd argument to recursive call.
7242 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
7243 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
7245 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
7246 don't give up if mode is Pmode and mem_mode is not VOIDmode.
7247 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
7248 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
7250 2011-05-05 Julian Brown <julian@codesourcery.com>
7252 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
7253 parenthesis in D-register case.
7255 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7257 * opt-functions.awk (var_type_struct): Handle Enum options.
7258 * optc-gen.awk: Don't check range of variables of character type.
7259 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
7260 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
7261 rs6000_sdata_name, rs6000_explicit_options): Remove.
7262 (rs6000_option_override_internal): Check for -malign-power here.
7263 Use global_options_set instead of rs6000_explicit_options.
7264 (rs6000_parse_fpu_option): Remove.
7265 (rs6000_handle_option): Access variables via opts and opts_set
7266 pointers. Use error_at and warning_at. Add fall-through
7267 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
7268 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
7269 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
7270 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
7271 here. Don't use rs6000_parse_fpu_option.
7272 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
7273 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
7274 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
7276 (mspe): Use Var and Save.
7277 (mtraceback=): Use Enum and Var.
7278 (rs6000_traceback_type): New Enum and EnumValue entries.
7279 (mfloat-gprs=): Use Enum, Var and Save.
7280 (rs6000_float_gprs): New Enum and EnumValue entries.
7281 (mlong-double-): use Var and Save.
7282 (msched-costly-dep=, minsert-sched-nops=): Use Var.
7283 (malign-): Use Enum and Var.
7284 (rs6000_alignment_flags): New Enum and EnumValue entries.
7286 (fpu_type_t): New Enum and EnumValue entries.
7287 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7288 global_options_set instead of rs6000_explicit_options.
7289 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7290 global_options_set instead of rs6000_explicit_options.
7291 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7292 global_options_set instead of rs6000_explicit_options.
7293 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7294 global_options_set instead of rs6000_explicit_options.
7295 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
7296 global_options_set instead of rs6000_explicit_options.
7297 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7298 global_options_set instead of rs6000_explicit_options.
7299 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
7301 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7302 global_options_set instead of rs6000_explicit_options.
7303 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
7304 (rs6000_cmodel): New Enum and EnumValue entries.
7305 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7306 global_options_set instead of rs6000_explicit_options.
7307 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
7308 (mtls-size=): Use Enum and Var.
7309 (rs6000_tls_size): New Enum and EnumValue entries.
7311 2011-05-05 Michael Matz <matz@suse.de>
7313 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
7314 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
7315 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
7316 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
7317 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
7318 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
7319 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
7320 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
7321 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
7322 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
7323 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
7324 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
7325 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
7326 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
7327 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
7328 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
7330 2011-05-05 Richard Guenther <rguenther@suse.de>
7332 * expmed.c (expand_variable_shift): Rename to ...
7333 (expand_shift_1): ... this. Take an expanded shift amount.
7334 For rotates recurse directly not building trees for the shift amount.
7335 (expand_variable_shift): Wrap around expand_shift_1.
7336 (expand_shift): Adjust.
7338 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7340 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
7342 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7344 * tree.h (get_pending_sizes): Remove prototype.
7345 (put_pending_size): Likewise.
7346 (put_pending_sizes): Likewise.
7347 * stor-layout.c (pending_sizes): Delete.
7348 (get_pending_sizes): Likewise.
7349 (put_pending_size): Likewise.
7350 (put_pending_sizes): Likewise.
7351 (variable_size): Do not call put_pending_size and tidy up.
7352 * function.h (struct function): Remove dont_save_pending_sizes_p.
7353 * lto-streamer-in.c (input_function): Do not stream it.
7354 * lto-streamer-out.c (output_function): Likewise.
7355 * tree-inline.c (initialize_cfun): Do not copy it.
7356 * c-decl.c (store_parm_decls): Do not set it.
7357 * omp-low.c (create_task_copyfn): Likewise.
7358 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7360 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
7362 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
7364 (*movdf_internal): Ditto.
7365 (*movdf_internal_nointeger): Ditto.
7366 (*movsf_internal): Ditto.
7368 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7370 * c-decl.c (finish_decl): Don't call get_pending_sizes.
7371 (grokparm): Add parameter expr. Pass it to grokdeclarator.
7372 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
7373 (c_variable_size): Remove.
7374 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
7375 call put_pending_sizes.
7376 (get_parm_info): Add parameter expr. Use it to set
7377 arg_info->pending_sizes.
7378 (store_parm_decls): Use arg_info->pending_sizes instead or calling
7380 * c-parser.c (c_parser_parms_declarator): Update call to
7381 c_parser_parms_list_declarator.
7382 (c_parser_parms_list_declarator): Take parameter expr. Update
7383 call to push_parm_decl. Update recursive call. Don't call
7384 get_pending_sizes. Update calls to get_parm_info.
7385 (c_parser_objc_method_definition): Update calls to
7386 c_parser_objc_method_decl and objc_start_method_definition.
7387 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
7388 (c_parser_objc_method_decl): Add parameter expr. Update call to
7390 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
7391 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
7392 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
7394 2011-05-05 Michael Hope <michael.hope@linaro.org>
7397 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
7400 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7402 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7403 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
7404 (spu_output_mi_thunk): New function.
7406 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7408 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
7409 targetm.asm_out.print_operand.
7410 * config/sol2.c: Include target.h.
7412 2011-05-04 Jan Hubicka <jh@suse.cz>
7414 * ipa-inline.c (reset_edge_caches): New function.
7415 (update_caller_keys): Add check_inlinablity_for; do not
7416 reset edge caches; remove now unnecesary loop.
7417 (update_callee_keys): Add comments; reset node_growth_cache of callee.
7418 (update_all_callee_keys): Likewise.
7419 (inline_small_functions): Sanity check cache; update code
7422 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
7424 PR rtl-optimization/47612
7425 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
7426 as the last insn of the sequence to be moved.
7428 2011-05-04 Tobias Burnus <burnus@net-b.de>
7431 * doc/invoke.texi (Ofast): Document that it
7432 enables Fortran's -fno-protect-parens.
7434 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7436 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
7438 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
7440 * stor-layout.c (variable_size): Do not issue errors.
7442 2011-05-04 Richard Guenther <rguenther@suse.de>
7444 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
7445 for array-ref indices.
7446 (tree_coverage_counter_addr): Likewise.
7447 (build_fn_info_type): Use size_int for index types.
7448 (build_gcov_info): Likewise.
7450 2011-05-04 Richard Guenther <rguenther@suse.de>
7452 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
7454 * c-typeck.c (really_start_incremental_init): Use bitsize_int
7455 for constructor indices.
7456 (push_init_level): Likewise.
7458 2011-05-04 Richard Guenther <rguenther@suse.de>
7460 * explow.c (promote_mode): Move variable declarations before code.
7462 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7464 * tree.h (build_function_type_array): Declare.
7465 (build_varargs_function_type_array): Declare.
7466 (build_function_type_vec, build_varargs_function_type_vec): Define.
7467 * tree.c (build_function_type_array_1): New function.
7468 (build_function_type_array): New function.
7469 (build_varargs_function_type_array): New function.
7471 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
7473 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
7474 before setting STMT_VINFO_TYPE.
7476 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7478 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
7479 instead of spu_pass_by_reference.
7481 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7483 * calls.c (emit_library_call_value_1): Invoke
7484 promote_function_mode hook on libcall arguments.
7485 * explow.c (promote_function_mode, promote_mode): Handle TYPE
7486 argument being NULL.
7487 * targhooks.c (default_promote_function_mode): Lisewise.
7488 * config/s390/s390.c (s390_promote_function_mode): Likewise.
7489 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
7491 * doc/tm.texi: Document that TYPE argument might be NULL.
7493 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7495 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7497 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7500 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7502 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7504 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7505 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7507 * mips-tfile.c: ... here.
7508 Don't include coretypes.h, tm.h, filenames.h.
7509 (saber_stop): Remove definition and all calls.
7510 [__SABER__]: Remove.
7511 (__LINE__): Remove default.
7512 (Size_t, Ptrdiff_t): Remove definitions.
7513 Replace by size_t, ptrdiff_t.
7514 [!MIPS_DEBUGGING_INFO]: Remove.
7515 (SHASH_SIZE, THASH_SIZE): Remove defaults.
7516 (progname): Add const.
7518 Replace all uses by static.
7519 (ALIGN_SYMTABLE_OFFSET): Remove default.
7520 * mips-tdump.c: Don't include coretypes.h, tm.h.
7521 Remove !MIPS_IS_STAB guard.
7522 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7523 $(TM_H), filenames.h dependencies.
7524 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7526 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7529 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7530 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7532 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7535 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7536 account and save/restore RETS.
7537 (PROFILE_BEFORE_PROLOGUE): Define.
7538 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
7539 the push insn to use predecrement.
7541 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7544 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7546 2011-05-04 Nick Clifton <nickc@redhat.com>
7548 * config/mn10300/mn10300.c: Include cfgloop.h.
7550 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
7551 Lcc or a FLcc insn into the instruction stream.
7552 (mn10300_block_contains_call): New function. Returns true if the
7553 given basic block contains a CALL insn.
7554 (mn10300_loop_contains_call_insn): New function. Returns true if
7555 the given loop contains a CALL insn.
7556 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
7557 to use the SETLB and Lcc or FLcc insns.
7558 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7559 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7560 * config/mn10300/mn10300.opt (msetlb): New option. Used to
7561 disable the SETLB optimization.
7562 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7563 __SETLB__ or __NO_SETLB__.
7564 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7565 (movsf_internal): Handle MDR register.
7566 (cmpsi): Make visible.
7567 (setlb): New pattern.
7569 (FLcc): New pattern.
7571 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7574 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
7575 for reg<->xmm moves.
7576 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
7577 (vec_concatv2di_rex64_sse): Ditto.
7578 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
7579 (*vec_extractv2di_1_rex64): Ditto.
7582 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7584 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7586 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
7588 2011-05-04 Richard Guenther <rguenther@suse.de>
7590 * tree.h (int_const_binop): Remove notrunc argument.
7591 * fold-const.c (int_const_binop): Remove notrunc argument. Always
7592 create integer constants that are properly truncated.
7593 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
7594 (const_binop): Remove zero notrunc argument to int_const_binop.
7595 (size_binop_loc): Likewise.
7596 (fold_div_compare): Likewise.
7597 (maybe_canonicalize_comparison_1): Likewise.
7598 (fold_comparison): Likewise.
7599 (fold_binary_loc): Likewise.
7600 (multiple_of_p): Likewise.
7601 * expr.c (store_constructor): Likewise.
7602 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7603 (maybe_fold_stmt_addition): Likewise.
7604 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
7605 * stor-layout.c (layout_type): Likewise.
7606 * tree-data-ref.c (tree_fold_divides_p): Likewise.
7607 * tree-sra.c (build_ref_for_offset): Likewise.
7608 (build_user_friendly_ref_for_offset): Likewise.
7609 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
7610 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7611 * tree-ssa-loop-niter.c (inverse): Likewise.
7612 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7613 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
7614 * tree-switch-conversion.c (check_range): Likewise.
7615 (build_constructors): Likewise.
7616 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7617 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
7618 (extract_range_from_assert): Likewise.
7619 (vrp_int_const_binop): Likewise.
7620 (extract_range_from_binary_expr): Likewise.
7621 (extract_range_from_unary_expr): Likewise.
7622 (check_array_ref): Likewise.
7623 (find_case_label_range): Likewise.
7624 (simplify_div_or_mod_using_ranges): Likewise.
7625 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
7626 comparing case labels for merging.
7628 2011-05-03 Mark Wielaard <mjw@redhat.com>
7630 * dwarf2out.c (debug_str_hash_forced): Removed.
7631 (gen_label_for_indirect_string): Removed.
7632 (get_debug_string_label): Removed.
7633 (AT_string_form): Generate label directly.
7634 (output_indirect_string): Test indirect_string_node for
7635 DW_FORM_strp instead of checking label and refcount.
7636 (prune_indirect_string): Removed.
7637 (prune_unused_types): Don't check debug_str_hash_forced or
7638 call prune_indirect_string.
7640 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7643 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7645 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7649 * combine.c (try_combine): Skip debug insns at m_split tests.
7651 2011-04-26 Mark Wielaard <mjw@redhat.com>
7654 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7655 when info_section_emitted.
7657 2011-05-03 Joseph Myers <joseph@codesourcery.com>
7659 * config/mips/mips-opts.h: New.
7660 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7662 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7663 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7664 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
7666 * config/mips/mips.h (enum mips_code_readable_setting): Move to
7668 (mips_abi, mips_code_readable): Don't declare.
7669 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
7670 (mabi=): Use Enum and Var.
7671 (mips_abi): New Enum and EnumValue entries.
7672 (mcode-readable=): Use Enum and Var.
7673 (mips_code_readable_setting): New Enum and EnumValue entries.
7674 (mr10k-cache-barrier=): Use Enum and Var.
7675 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7677 2011-05-03 Jan Hubicka <jh@suse.cz>
7679 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7680 replace hash by pointer map.
7681 (cgraph_node_set_element_def, cgraph_node_set_element,
7682 const_cgraph_node_set_element, varpool_node_set_element_def,
7683 varpool_node_set_element, const_varpool_node_set_element): Remove.
7684 (free_cgraph_node_set, free_varpool_node_set): New function.
7685 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7686 * tree-emutls.c: Free varpool node set.
7687 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7688 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7689 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7690 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7691 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7692 Move here from ipa.c; implement using pointer_map
7693 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7694 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7695 debug_cgraph_node_set, varpool_node_set_new,
7696 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7697 dump_varpool_node_set, debug_varpool_node_set):
7698 Move to ipa-uitls.c.
7699 * passes.c (ipa_write_summaries): Update.
7701 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7703 From Mike Frysinger:
7704 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7705 bf542/bf544/bf547/bf548/bf549.
7707 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7709 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7711 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7714 * config/bfin/bfin.md (MOVCC): New mode_macro.
7715 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7716 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7717 comments from generated assembly.
7719 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7722 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7723 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7724 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7725 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7726 * config/bfin/lib1funcs.asm (___muldi3): New function.
7728 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7730 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7731 build_function_type_list instead of build_function_type.
7732 Rearrange initialization of `args' to do so.
7734 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7736 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7737 instead of build_function_type.
7739 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7741 * config/rs6000/rs6000.c (spe_init_builtins): Call
7742 build_function_type_list instead of build_function_type.
7743 (paired_init_builtins, altivec_init_builtins): Likewise.
7744 (builtin_function_type): Likewise.
7746 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7748 * config/sh/sh.c (sh_media_init_builtins): Call
7749 build_function_type_list instead of build_function_type.
7751 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7753 * config/sparc/sparc.c (sparc_file_end): Call
7754 build_function_type_list instead of build_function_type.
7756 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7758 * config/alpha/alpha.c (alpha_init_builtins): Call
7759 build_function_type_list instead of build_function_type.
7761 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7763 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7764 build_function_type_list instead of build_function_type.
7766 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7768 * config/iq2000/i2000.c (iq2000_init_builtins): Call
7769 build_function_type_list instead of build_function_type.
7770 Delete `endlink' variable.
7772 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7774 * config/avr/avr.c (avr_init_builtins): Call
7775 build_function_type_list instead of build_function_type.
7777 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7779 * config/picochip/picochip.c (picochip_init_builtins): Call
7780 build_function_type_list instead of build_function_type.
7781 Delete `endlink' variable.
7783 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7785 * config/bfin/bfin.c (bfin_init_builtins): Call
7786 build_function_type_list instead of build_function_type.
7788 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7791 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7792 that's not CONST_INT. Seemingly redundant check is due to PR39768.
7794 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7797 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7798 libbffastfp overrides libgcc when -mfast-fp.
7800 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7802 Originally from Bernd Schmidt
7803 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7804 * config/bfin/bfin.c (override_options): Test it and error if
7807 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7809 Originally From Bernd Schmidt
7810 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7813 2011-05-03 Jeff Law <law@redhat.com>
7815 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7816 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7817 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7818 than accessing AUX field directly. Free the AUX field before
7820 (thread_block, thread_through_loop_header): Likewise.
7821 (thread_single_edge, mark_threaded_blocks): Likewise.
7822 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7823 (register_jump_thread): Do not attempt to thread to a NULL edge.
7825 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7827 * function.c (init_function_start): Call decide_function_section.
7828 * varasm.c (decide_function_section): New function.
7829 (assemble_start_function): When not using
7830 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7831 or first_function_block_is_cold.
7832 * rtl.h (decide_function_section): Declare.
7834 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7835 Jakub Jelinek <jakub@redhat.com>
7838 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7839 only succeed if req_mode is the same as set_mode.
7841 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7843 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7844 * genemit.c (gen_exp): Handle RETURN.
7845 * emit-rtl.c (verify_rtx_sharing): Likewise.
7846 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7847 * rtl.c (copy_rtx): RETURN is shared.
7848 * rtl.h (enum global_rtl_index): Add GR_RETURN.
7850 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7851 * config/s390/s390.c (s390_emit_epilogue): Likewise.
7852 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7853 * config/cris/cris.c (cris_expand_return): Likewise.
7854 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7855 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7856 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7857 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7858 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7860 * config/v850/v850.c (expand_epilogue): Likewise.
7861 * config/bfin/bfin.c (bfin_expand_call): Likewise.
7862 * config/arm/arm.md (epilogue): Likewise.
7863 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7864 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7865 variable to ret_reg.
7867 2011-05-03 Richard Guenther <rguenther@suse.de>
7870 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7871 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7872 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7874 2011-05-03 Richard Guenther <rguenther@suse.de>
7876 * c-decl.c (grokdeclarator): Instead of looking at
7877 TREE_OVERFLOW check if the constant fits in the index type.
7879 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7881 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7882 (vec_store_lanes<mode><mode>): Likewise.
7884 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7886 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7887 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7888 convert_optab_index values.
7889 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7890 * genopinit.c (optabs): Initialize the new optabs.
7891 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7892 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7893 (expand_STORE_LANES): New functions.
7894 * tree.h (build_array_type_nelts): Declare.
7895 * tree.c (build_array_type_nelts): New function.
7896 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7897 (vect_model_load_cost): Likewise.
7898 (vect_store_lanes_supported, vect_load_lanes_supported)
7899 (vect_record_strided_load_vectors): Declare.
7900 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7901 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7902 (vect_transform_strided_load): Split out statement recording into...
7903 (vect_record_strided_load_vectors): ...this new function.
7904 * tree-vect-stmts.c (create_vector_array, read_vector_array)
7905 (write_vector_array, create_array_ref): New functions.
7906 (vect_model_store_cost): Add store_lanes_p argument.
7907 (vect_model_load_cost): Add load_lanes_p argument.
7908 (vectorizable_store): Try to use store-lanes functions for
7910 (vectorizable_load): Likewise load-lanes and loads.
7911 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7912 to vect_model_store_cost.
7913 (vect_build_slp_tree): Likewise vect_model_load_cost.
7915 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7917 * hooks.h (hook_bool_mode_uhwi_false): Declare.
7918 * hooks.c (hook_bool_mode_uhwi_false): New function.
7919 * target.def (array_mode_supported_p): New hook.
7920 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7921 * doc/tm.texi: Regenerate.
7922 * stor-layout.c (mode_for_array): New function.
7923 (layout_type): Use it.
7924 * config/arm/arm.c (arm_array_mode_supported_p): New function.
7925 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7927 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
7930 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7931 for -fstack-check if the size to allocate is negative.
7933 2011-05-02 Lawrence Crowl <crowl@google.com>
7935 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7936 (timevar_cond_start): New for starting a timer only when it is not
7938 (timevar_cond_stop): New for stopping a timer when it was not already
7941 * timevar.c (timevar_stop): Enable start/stop timers to start again.
7942 (timevar_cond_start): New as above.
7943 (timevar_cond_stop): New as above.
7945 * timevar.def: Add start/stop timers for compiler phases,
7946 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7947 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7948 and TV_PHASE_FINALIZE.
7949 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7950 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7951 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7952 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7953 Make unused TV_OVERLOAD into a start/stop timer.
7955 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7956 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7957 to indicate that they are start/stop timers.
7959 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7960 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7961 Move initialization to do_compile.
7962 (do_compile): Add initialization from above.
7963 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7965 * c-decl.c (c_write_global_declarations): Add start/stop of
7966 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7968 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7969 or TV_PARSE_INLINE, as appropriate.
7970 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7971 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7973 2011-05-02 Jason Merrill <jason@redhat.com>
7976 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7978 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
7981 * c-decl.c (finish_decl): Only create a composite if the types are
7984 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7986 * config/fr30/fr30-protos.h (Mmode): Don't define.
7987 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7988 definition where used.
7989 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7990 define. Expand definitions where used.
7991 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7992 Expand definitions where used.
7993 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7994 rx_function_arg, rx_function_arg_advance,
7995 rx_function_arg_boundary): Expand definitions of those macros.
7996 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7997 definition where used.
7999 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8001 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
8003 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
8004 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
8005 with *movv2sf_internal_rex64_avx.
8006 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
8007 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
8008 Use %v prefix in insn mnemonic to handle TARGET_AVX.
8009 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
8010 "vex" in "prefix" attribute calculation.
8011 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
8013 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
8016 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
8017 inputs match the output.
8019 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
8022 * config/m68k/m68k.c (m68k_expand_prologue): Set
8023 current_function_static_stack_size.
8025 2011-05-02 Jan Hubicka <jh@suse.cz>
8027 * lto-streamer.c (lto_streamer_cache_insert_1,
8028 lto_streamer_cache_lookup, lto_streamer_cache_create,
8029 lto_streamer_cache_delete): Use pointer map instead of hashtable.
8030 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
8032 2011-05-02 Joseph Myers <joseph@codesourcery.com>
8034 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
8035 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
8036 config/m68k/t-opts: New files.
8037 * config/m68k/m68k-tables.opt: New file (generated).
8038 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
8039 extra_options and m68k/t-opts to tmake_file.
8040 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
8041 (all_isas): Initialize using m68k-isas.def.
8042 (all_microarchs): Initialize using m68k-microarchs.def.
8043 (m68k_find_selection): Remove.
8044 (m68k_handle_option): Don't assert that global structures are in
8045 use. Use error_at. Access variables via opts pointer. Don't
8046 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
8047 directly for -m68020-40 and -m68020-60.
8048 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
8049 m68k_tune_entry here.
8050 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
8052 (m68k_library_id_string): Remove declaration.
8053 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
8054 (m68k_library_id_string): New Variable.
8055 (march=, mcpu=, mtune=): Use Enum and Var.
8057 2011-05-02 Richard Guenther <rguenther@suse.de>
8059 * varasm.c (output_constructor_regular_field): Compute zero-based
8060 index with double-ints. Make sure to ICE instead of producing
8062 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
8063 in asserts. Properly use a signed type.
8065 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8067 * config/i386/sse.md (V): New mode iterator.
8068 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
8070 (V_256): Rename from AVX256MODE.
8071 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
8072 condition to all users.
8074 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
8075 condition to all users.
8076 (VF_128): Make V4SF mode unconditional.
8077 (VF_256): Rename from AVX256MODEF2P.
8078 (VI4F_128): Rename from SSEMODE4S.
8079 (VI8F_128): Rename from SSEMODE2D.
8080 (VI4F_256): Rename from AVX256MODE8P.
8081 (VI8F_256): Rename from AVX256MODE4P.
8082 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
8083 (ssescalarmodesuffix): Remove SF and DF modes.
8084 (SSEMODE124): Remove.
8085 (SSEMODE1248): Ditto.
8086 (SSEMODEF2P): Ditto.
8087 (AVXMODEF2P): Ditto.
8088 (AVXMODEFDP): Ditto.
8089 (AVXMODEFSP): Ditto.
8090 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
8092 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
8094 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
8095 xop_pcmov_<mode>256. Use V mode iterator.
8097 Adjust RTX patterns globally for renamed mode attributes.
8099 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8101 * haifa-sched.c (sched_emit_insn): Emit insn before first
8102 non-scheduled insn. Inform back-end about new insn. Add
8103 new insn to scheduled_insns list.
8105 2011-05-02 Richard Guenther <rguenther@suse.de>
8107 PR tree-optimization/48822
8108 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
8109 (process_scc): Indicate which iteration we start.
8111 2011-05-02 Jan Hubicka <jh@suse.cz>
8113 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
8114 (lto_section_overrun): New.
8115 * lto-section-out.c (append_block): Rename to ...
8116 (lto_append_block): ... this one; export.
8117 (lto_output_1_stream): Move lto lto-streamer.h
8118 (lto_output_data_stream): Update.
8119 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
8120 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
8123 2011-05-02 Richard Guenther <rguenther@suse.de>
8125 * tree.c (tree_code_counts): New global array.
8126 (record_node_allocation_statistics): Count individual tree codes.
8127 (dump_tree_statistics): Dump individual code stats.
8129 2011-05-01 Jan Hubicka <jh@suse.cz>
8131 * ipa-inline.c (caller_growth_limits): Fix thinko when
8132 looking for largest stack frame.
8133 * ipa-inline.h (dump_inline_summary): Declare.
8134 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
8136 (dump_inline_summary): Export.
8137 (debug_inline_summary): Declare as DEBUG_FUNCTION.
8139 2011-05-01 Anatoly Sokolov <aesok@post.ru>
8141 * reginfo.c (memory_move_cost): Change rclass argument type form
8142 'enum reg_class' to reg_class_t.
8143 * reload.h (memory_move_cost): Update prototype.
8144 * postreload.c reload_cse_simplify_set): Change type dclass var to
8146 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
8148 (ira_allocate_and_set_costs): Change aclass argument type form
8149 'enum reg_class' to reg_class_t.
8150 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
8151 Change aclass argument type to reg_class_t.
8152 (update_conflict_hard_reg_costs): Change type aclass and pref vars
8154 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
8155 memory_move_cost call.
8157 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
8158 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
8159 Change type tmp var to reg_class_t.
8161 2011-04-30 Jan Hubicka <jh@suse.cz>
8163 * ipa-inline.c (can_inline_edge_p): Disregard limits when
8164 inlining into function with flatten attribute.
8165 (want_inline_small_function_p): Be more realistic about inlining
8166 cold calls where callee size grows.
8168 2011-04-30 Jan Hubicka <jh@suse.cz>
8170 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
8173 2011-04-30 Anatoly Sokolov <aesok@post.ru>
8175 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8176 PRINT_OPERAND_PUNCT_VALID_P): Remove.
8177 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
8178 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
8179 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8180 (print_operand): Rename to...
8181 (sparc_print_operand): ...this. Make static. Adjust
8182 sparc_print_operand function call.
8183 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
8186 2011-04-30 Jan Hubicka <jh@suse.cz>
8189 * ipa-inline.c (early_inliner): Disable when doing late
8190 addition of function.
8192 2011-04-30 Jakub Jelinek <jakub@redhat.com>
8194 * dwarf2out.c (get_address_mode): New inline.
8195 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
8196 if not dwarf_strict emit
8197 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
8198 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
8199 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
8200 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
8201 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
8202 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
8203 mem_loc_descriptor callers.
8204 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8205 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
8206 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
8207 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
8208 (base_types): New variable.
8209 (get_base_type_offset, calc_base_type_die_sizes,
8210 base_type_for_mode, mark_base_types, base_type_cmp,
8211 move_marked_base_types): New functions.
8212 (calc_die_sizes): Assert that die_offset is 0 or equal to
8214 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
8215 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
8216 callers. If not dwarf_strict, call mem_loc_descriptor even for
8217 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
8218 (gen_subprogram_die): Don't give up on call site parameters
8219 with non-integral or large integral modes. Adjust
8220 mem_loc_descriptor callers.
8221 (prune_unused_types): Call prune_unused_types_mark on base_types
8223 (resolve_addr): Call mark_base_types.
8224 (dwarf2out_finish): Call move_marked_base_types.
8226 PR tree-optimization/48809
8227 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
8229 (gen_inbound_check): Don't compute index_expr - range_min in utype
8230 again, instead reuse SSA_NAME initialized in build_arrays.
8231 Remove two useless gsi_for_stmt calls.
8233 2011-04-29 Jeff Law <law@redhat.com>
8235 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
8237 2011-04-29 Martin Jambor <mjambor@suse.cz>
8239 * cgraph.h (cgraph_postorder): Remove declaration.
8240 * ipa-utils.h (ipa_free_postorder_info): Declare.
8241 (ipa_reverse_postorder): Likewise.
8242 * cgraphunit.c: Include ipa-utils.h.
8243 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
8244 * ipa-inline.c: Include ipa-utils.h.
8245 (ipa_inline): Update call to ipa_reverse_postorder.
8246 * ipa-pure-const.c (propagate_pure_const): Update call to
8247 ipa_reduced_postorder and ipa_print_order. Call
8248 ipa_free_postorder_info to clean up.
8249 (propagate_nothrow): Likewise.
8250 * ipa-reference.c (propagate): Removed a useless call to
8251 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
8252 and ipa_print_order. Call ipa_free_postorder_info to clean up.
8253 * ipa.c: Include ipa-utils.h.
8254 (ipa_profile): Update call to ipa_reverse_postorder.
8255 (cgraph_postorder): Moved to...
8256 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
8257 (ipa_utils_print_order): Renamed to ipa_print_order.
8258 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
8260 (ipa_free_postorder_info): New function.
8261 * passes.c: Include ipa-utils.h.
8262 (do_per_function_toporder): Update call to ipa_reverse_postorder.
8263 (ipa_write_summaries): Likewise.
8264 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
8265 (cgraphunit.o): Likewise.
8267 (ipa-inline.o): Likewise.
8269 2011-04-29 Jan Hubicka <jh@suse.cz>
8271 * gcc.dg/tree-ssa/inline-10.c: New testcase.
8272 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
8273 * ipa-inline.h (clause_t): Turn into unsigned int.
8274 * ipa-inline-analysis.c (add_clause): Do more simplification.
8275 (and_predicates): Shortcut more cases.
8276 (predicates_equal_p): Move forward; check that clauses are properly
8278 (or_predicates): Shortcut more cases.
8279 (edge_execution_predicate): Rewrite as...
8280 (set_cond_stmt_execution_predicate): ... this function; handle
8281 __builtin_constant_p.
8282 (set_switch_stmt_execution_predicate): New .
8283 (compute_bb_predicates): New.
8284 (will_be_nonconstant_predicate): Update TODO.
8285 (estimate_function_body_sizes): Use compute_bb_predicates
8286 and free them later, always try to estimate if stmt is constant.
8287 (estimate_time_after_inlining, estimate_size_after_inlining):
8288 Gracefully handle optimized out edges.
8289 (read_predicate): Fix off by one error.
8291 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
8293 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
8295 2011-04-27 Xinliang David Li <davidxl@google.com>
8297 * tree-profile.c (init_ic_make_global_vars): Set
8298 tls attribute on ic vars.
8299 * coverage.c (coverage_end_function): Initialize
8300 function_list with zero.
8302 2011-04-29 Richard Guenther <rguenther@suse.de>
8304 * builtins.c (fold_builtin_classify_type): Use integer_type_node
8305 for the type of the result.
8306 (fold_builtin_isascii): Likewise.
8307 (fold_builtin_toascii): Use integer_type_node where appropriate.
8308 (fold_builtin_logb): Likewise.
8309 (fold_builtin_frexp): Likewise.
8310 (fold_builtin_strstr): Likewise.
8311 (fold_builtin_strpbrk): Likewise.
8312 (fold_builtin_fputs): Likewise.
8313 (fold_builtin_sprintf): Likewise.
8314 (fold_builtin_snprintf): Likewise.
8315 (fold_builtin_printf): Likewise.
8316 (do_mpfr_remquo): Use a proper type for the assigned constant.
8317 (do_mpfr_lgamma_r): Likewise.
8318 * dwarf2out.c (resolve_one_addr): Use size_int.
8319 * except.c (init_eh): Likewise.
8320 (assign_filter_values): Use integer_type_node for filter values.
8321 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
8323 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
8324 for EH region numbers.
8325 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
8326 for the shift amount.
8328 2011-04-29 Richard Guenther <rguenther@suse.de>
8330 * expr.h (expand_shift): Rename to ...
8331 (expand_variable_shift): ... this.
8332 (expand_shift): Take a constant shift amount.
8333 * expmed.c (expand_shift): Rename to ...
8334 (expand_variable_shift): ... this.
8335 (expand_shift): New wrapper around expand_variable_shift.
8336 * expr.c (convert_move, emit_group_load_1, emit_group_store,
8337 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
8338 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
8339 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
8340 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
8341 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
8342 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
8343 emit_store_flag_1, emit_store_flag): Likewise.
8344 * builtins.c (expand_builtin_signbit): Likewise.
8345 * calls.c (load_register_parameters): Likewise.
8346 * function.c (assign_parm_setup_block): Likewise.
8347 * lower-subreg.c (resolve_shift_zext): Likewise.
8348 * optabs.c (widen_bswap, expand_abs_nojump,
8349 expand_one_cmpl_abs_nojump, expand_float): Likewise.
8350 * spu/spu.c (spu_expand_extv): Likewise.
8351 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
8353 2011-04-29 Richard Guenther <rguenther@suse.de>
8355 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
8356 for the remapped region number.
8357 * predict.c (build_predict_expr): Use integer_type_node for the
8359 * fold-const.c (fold_binary_loc): Use integer_type_node for
8360 the shift amount. Use a proper type for the PLUS_EXPR operand.
8362 2011-04-29 Michael Matz <matz@suse.de>
8364 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
8365 other trees that just builtins.
8366 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
8368 2011-04-29 Richard Guenther <rguenther@suse.de>
8370 * tree-nested.c (get_trampoline_type): Use size_int.
8371 (get_nl_goto_field): Likewise.
8372 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
8374 (lower_eh_constructs_2): Likewise.
8375 (lower_resx): Likewise.
8376 (lower_eh_dispatch): Likewise.
8377 * tree-mudflap.c (mf_build_string): Use size_int.
8378 (mudflap_register_call): Use integer_type_node for the flag.
8379 (mudflap_enqueue_constant): Use size_int.
8380 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
8381 instead of rebuilding it.
8383 2011-04-29 Richard Guenther <rguenther@suse.de>
8385 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
8386 Handle OBJ_TYPE_REF.
8387 (find_func_aliases_for_call): Use it more consistently.
8389 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
8391 * haifa-sched.c (last_nondebug_scheduled_insn): New.
8392 (rank_for_schedule): Use it.
8393 (schedule_block): Set it.
8395 2011-04-28 David Li <davidxl@google.com>
8397 * tree.c (crc32_string): Use crc32_byte.
8398 (crc32_byte): New function.
8399 * tree.h (crc32_byte): New function.
8400 * gcov.c (read_graph_file): Handle new cfg_cksum.
8401 (read_count_file): Ditto.
8402 * profile.c (instrument_values): Ditto.
8403 (get_exec_counts): Ditto.
8404 (read_profile_edge_counts): Ditto.
8405 (compute_branch_probabilities): Ditto.
8406 (compute_value_histograms): Ditto.
8407 (branch_prob): Ditto.
8408 (end_branch_prob): Ditto.
8409 * coverage.c (read_counts_file): Ditto.
8410 (get_coverage_counts): Ditto.
8411 (tree_coverage_counter_addr): Ditto.
8412 (coverage_checksum_string): Ditto.
8413 (coverage_begin_output): Ditto.
8414 (coverage_end_function): Ditto.
8415 (build_fn_info_type): Ditto.
8416 (build_fn_info_value): Ditto.
8417 * libgcov.c (gcov_exit): Ditto.
8418 * gcov-dump.c (tag_function): Ditto.
8419 (compute_checksum): Remove.
8421 2011-04-29 Alan Modra <amodra@gmail.com>
8423 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8424 unspec plus offset. Tidy macho code.
8426 2011-04-29 Martin Jambor <mjambor@suse.cz>
8428 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
8429 node instead of a decl. Update all callers.
8430 * cgraph.h: Update declaration.
8432 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
8434 PR tree-optimization/48765
8435 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
8436 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
8437 to indicate if loop aware SLP is being used. Scan the statements
8438 and update the vectorization factor according to the type of
8439 vectorization before statement analysis.
8440 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
8441 pass it to vect_analyze_loop_operations.
8442 (vectorizable_reduction): Set number of copies to 1 in case of pure
8444 * tree-vect-stmts.c (vectorizable_conversion,
8445 vectorizable_assignment, vectorizable_shift,
8446 vectorizable_operation, vectorizable_type_demotion,
8447 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
8449 (vectorizable_condition): Move the check that it is not SLP
8450 vectorization before the number of copies check.
8451 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
8452 to vectorize the loop using SLP.
8454 2011-04-28 Jakub Jelinek <jakub@redhat.com>
8457 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
8460 2011-04-28 Joseph Myers <joseph@codesourcery.com>
8462 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
8463 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
8464 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8465 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8466 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
8468 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
8469 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8470 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8471 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8472 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8473 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
8475 * config/i386/linux.h (REG_NAME): Don't define.
8476 * config/i386/linux64.h (REG_NAME): Don't define.
8477 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
8478 Undefine before defining.
8480 2011-04-28 Jan Hubicka <jh@suse.cz>
8482 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
8483 nonconstant_names array.
8484 (estimate_function_body_sizes): Build nonconstant_names array; handle
8485 BUILT_IN_CONSTANT_P.
8487 2011-04-28 Richard Guenther <rguenther@suse.de>
8491 2011-04-28 Richard Guenther <rguenther@suse.de>
8493 * tree-ssa-structalias.c (solve_constraints): Build succ graph
8494 as late as possible.
8496 2011-04-28 Richard Guenther <rguenther@suse.de>
8498 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8499 (debug_constraint): Do it here.
8500 (dump_constraints): And here.
8501 (rewrite_constraints): And here.
8502 (dump_constraint_edge): Remove.
8503 (dump_constraint_graph): Rewrite to produce DOT output.
8504 (solve_constraints): Build succ graph as late as possible.
8505 Dump constraint graphs before and after solving.
8507 2011-04-28 Richard Guenther <rguenther@suse.de>
8509 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8510 New function split out from ...
8511 (find_func_aliases): ... here. Call it.
8512 (find_func_aliases_for_call): Likewise.
8514 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8516 * internal-fn.h (internal_fn_name_array): Declare.
8517 (internal_fn_flags_array): Likewise.
8519 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8521 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
8522 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8524 (ssemodefsuffix): Remove.
8525 (ssevecmodesuffix): New mode attribute.
8526 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8527 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8528 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8529 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8530 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8531 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8532 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8533 ssemodesuffix mode attribute.
8534 (float splitters): Use ssevecmodesuffix mode attribute.
8535 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8536 (sseinsmode): Rename from avxvecmode.
8537 (avxsizesuffix): Rename from avxmodesuffix.
8538 (sseintvecmode): Rename from avxpermvecmode.
8539 (ssedoublevecmode): Rename from ssedoublesizemode.
8540 (ssehalfvecmode): Rename from avxhalfvecmode.
8541 (ssescalarmode): Rename from avxscalarmode.
8542 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8543 templates for ssemodesuffix mode attribute.
8544 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8547 Adjust RTX patterns globally for renamed mode attributes.
8549 2011-04-27 Jan Hubcika <jh@suse.cz>
8551 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8552 * ipa-inline-analysis.c: Include alloc-pool.h.
8553 (edge_predicate_pool): New.
8554 (trye_predicate_p): New function
8555 (false_predicate_p): New function.
8556 (add_clause): Sanity check that false clauses are "optimized";
8557 never add clauses to predicate that is already known to be false.
8558 (and_predicate): Use flase_predicate_p.
8559 (evaulate_predicate): Rename to ...
8560 (evaluate_predicate): ... this one; update all callers; assert
8561 that false is not listed among possible truths.
8562 (dump_predicate): Use true_predicate_p.
8563 (account_size_time): Use false_predicate_p.
8564 (evaulate_conditions_for_edge): Rename to ...
8565 (evaluate_conditions_for_edge) ... this one.
8566 (edge_set_predicate): New function.
8567 (inline_edge_duplication_hook): Duplicate edge predicates.
8568 (inline_edge_removal_hook): Free edge predicates.
8569 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
8570 (dump_inline_summary): Update.
8571 (estimate_function_body_sizes): Set edge predicates.
8572 (estimate_calls_size_and_time): Handle predicates.
8573 (estimate_callee_size_and_time): Update.
8574 (remap_predicate): Add toplev_predicate; update comment.
8575 (remap_edge_predicates): New function.
8576 (inline_merge_summary): Compute toplev predicate; update.
8577 (read_predicate): New function.
8578 (read_inline_edge_summary): Use it.
8579 (inline_read_section): Likewise.
8580 (write_predicate): New function.
8581 (write_inline_edge_summary): Use it.
8582 (inline_write_summary): Likewise.
8583 (inline_free_summary): Free alloc pool and edge summary vec.
8585 2011-04-27 Richard Guenther <rguenther@suse.de>
8587 * tree-ssa-structalias.c (changed_count): Remove.
8588 (changed): Use a bitmap.
8589 (unify_nodes): Adjust.
8590 (do_sd_constraint): Likewise.
8591 (do_ds_constraint): Likewise.
8592 (do_complex_constraint): Likewise.
8593 (solve_graph): Likewise.
8595 2011-04-27 Jan Hubicka <jh@suse.cz>
8597 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
8599 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8601 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
8602 (avx_vperm2f128_*_operand): Ditto.
8603 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
8604 Use avx_vpermilp_parallel in insn condition.
8605 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
8606 Use avx_vperm2f128_parallel in insn condition.
8608 2011-04-27 Richard Guenther <rguenther@suse.de>
8610 * Makefile.in (tree-ssa-structalias.o): Remove
8611 gt-tree-ssa-structalias.h dependency.
8612 (GTFILES): Remove tree-ssa-structalias.c.
8613 * tree.c (allocate_decl_uid): New function.
8614 (make_node_stat): Use it.
8615 (copy_node_stat): Likewise.
8616 * tree.h (allocate_decl_uid): Declare.
8617 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
8618 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
8619 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
8620 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
8621 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
8622 (struct heapvar_map): Likewise.
8623 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
8624 heapvar_insert): Likewise.
8625 (make_heapvar_for): Rename to ...
8626 (make_heapvar): ... this. Simplify.
8627 (fake_var_decl_obstack): New global var.
8628 (build_fake_var_decl): New function.
8629 (make_constraint_from_heapvar): Adjust.
8630 (handle_lhs_call): Likewise.
8631 (create_function_info_for): Likewise.
8632 (intra_create_variable_infos): Likewise.
8633 (init_alias_vars): Allocate fake_var_decl_obstack.
8634 (init_alias_heapvars, delete_alias_heapvars): Remove.
8635 (compute_points_to_sets): Do not call init_alias_heapvars.
8636 (ipa_pta_execute): Likewise.
8637 (delete_points_to_sets): Free fake_var_decl_obstack.
8639 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8641 * config/spu/divmovti4.c (union qword_UTItype): New data type.
8642 (si_from_UTItype, si_to_UTItype): New functions.
8643 (__udivmodti4): Use them to implement type-punning.
8644 * config/spu/multi3.c (union qword_TItype): New data type.
8645 (si_from_TItype, si_to_TItype): New functions.
8646 (__multi3): Use them to implement type-punning.
8648 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8650 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8652 2011-04-27 Jan Hubicka <jh@suse.cz>
8654 * ipa-prop.c (function_insertion_hook_holder): New holder.
8655 (ipa_add_new_function): New function.
8656 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8657 Register/deregister holder.
8659 2011-04-27 Richard Guenther <rguenther@suse.de>
8661 PR tree-optimization/48772
8662 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
8664 2011-04-27 Richard Guenther <rguenther@suse.de>
8666 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8667 TARGET_MEM_REF handling.
8669 2011-04-27 Nick Clifton <nickc@redhat.com>
8671 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8672 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8673 (REG_CLASS_NAMES): Likewise.
8674 (REG_CLASS_CONTENTS): Likewise.
8675 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8676 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8677 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
8678 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
8679 (EVEN_REGS): New macro. Alias for QUAD_REGS.
8680 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8681 duplicate register classes.
8682 (frv_class_likely_spilled_p): Likewise.
8683 (frv_register_move_cost): Likewise.
8685 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8686 end of the regno_reg_class array.
8688 2011-04-27 Jakub Jelinek <jakub@redhat.com>
8691 * c-typeck.c (build_binary_op): Don't wrap arguments if
8692 int_operands is true.
8694 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
8697 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8698 targetm.calls.must_pass_in_stack for void type.
8700 2011-04-26 Jan Hubicka <jh@suse.cz>
8702 * cgraphbuild.c (build_cgraph_edges): Update call
8703 of cgraph_create_edge and cgraph_create_indirect_edge.
8704 * cgraph.c (cgraph_create_edge_including_clones,
8705 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8706 cgraph_update_edges_for_call_stmt_node): Do not take nest
8707 argument; do not initialize call_stmt_size/time.
8708 (dump_cgraph_node): Do not dump nest.
8709 (cgraph_clone_edge): Do not take loop_nest argument;
8710 do not propagate it; do not clone call_stmt_size/time.
8711 (cgraph_clone_node): Likewise.
8712 (cgraph_create_virtual_clone): Update.
8713 * cgraph.h (struct cgraph_edge): Remove
8714 call_stmt_size/call_stmt_time/loop_nest.
8715 (cgraph_create_edge, cgraph_create_indirect_edge,
8716 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8718 * tree-emutls.c (gen_emutls_addr): Update.
8719 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8720 loop_nest; handle indirect calls, too.
8721 (clone_inlined_nodes): Do not care about updating inline summaries.
8722 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8723 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8724 stream call_stmt_size/call_stmt_time/loop_nest.
8725 * ipa-inline.c (edge_badness): Update.
8726 (ipa_inline): dump summaries after inlining.
8727 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8729 (inline_edge_summary): New function.
8730 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8731 (inline_edge_removal_hook): Handle edge summaries.
8732 (inline_edge_duplication_hook): New hook.
8733 (inline_summary_alloc): Alloc hooks.
8734 (initialize_growth_caches): Do not register removal hooks.
8735 (free_growth_caches); Do not free removal hook.
8736 (dump_inline_edge_summary): New function.
8737 (dump_inline_summary): Use it.
8738 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8739 (inline_update_callee_summaries): New function.
8740 (inline_merge_summary): Use it.
8741 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8742 (read_inline_edge_summary): New function.
8743 (inline_read_section): Use it.
8744 (write_inline_edge_summary): New function.
8745 (inline_write_summary): Use it.
8746 (inline_free_summary): Free edge new holders.
8747 * tree-inline.c (copy_bb): Update.
8749 2011-04-26 Jason Merrill <jason@redhat.com>
8751 * tree-eh.c (lower_try_finally_switch): Create the label along with
8752 the CASE_LABEL_EXPR.
8754 2011-04-26 David S. Miller <davem@davemloft.net>
8755 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8757 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8758 * configure: Regenerate.
8760 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8763 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8765 (VEC_reduc): New code iterator and splitters for vector reduction.
8766 (VEC_reduc_name): Ditto.
8767 (VEC_reduc_rtx): Ditto.
8768 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8769 (reduc_<VEC_reduc_name>_v4sf): Ditto.
8771 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8772 support for extracting SF on VSX.
8774 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8775 generating xscvspdp.
8776 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8777 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8778 double add, minimum, maximum vector reduction.
8779 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8780 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8781 optimize double vector reduction.
8782 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8784 2011-04-26 Joseph Myers <joseph@codesourcery.com>
8786 * config/fr30/fr30.h (inhibit_libc): Don't define.
8787 * config/m32r/m32r-protos.h: Correct comment.
8788 * config/v850/v850.h (GHS_default_section_names,
8789 GHS_current_section_names): Use tree, not union tree_node *.
8791 2011-04-26 Xinliang David Li <davidxl@google.com>
8793 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8794 * c-family/c-opts.c (c_common_handle_option): Set
8795 warn_maybe_uninitialized.
8796 * opts.c (common_handle_option): Ditto.
8797 * common.opt: New option.
8798 * tree-ssa.c (warn_uninit): Add one more parameter.
8799 (warn_uninitialized_var): Pass warning code.
8800 * tree-flow.h: Interface change.
8802 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8804 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8805 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8806 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8808 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8810 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8811 * config/mips/mips.opt (mmips-tfile): Remove.
8813 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8814 mips-tdump reference to ...
8815 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
8816 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8817 reference by Tru64 UNIX.
8819 2011-04-26 Jakub Jelinek <jakub@redhat.com>
8822 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8823 is error_mark_node, set value to NULL.
8825 PR tree-optimization/48734
8826 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8827 if return value from maybe_fold_*_comparsions isn't something
8828 the code is prepared to handle.
8830 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
8832 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8834 (ext_QIreg_nomode_operands): Remove.
8835 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8839 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
8841 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8843 2011-04-26 Richard Guenther <rguenther@suse.de>
8845 * c-typeck.c (build_unary_op): Do not expand array-refs via
8846 pointer arithmetic. Only adjust qualifiers for function types.
8848 2011-04-26 Richard Guenther <rguenther@suse.de>
8851 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8852 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8853 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
8854 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8856 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8858 * doc/extend.texi: Document __underlying_type.
8860 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
8862 * config/rs6000/titan.md (automata_option "progress"): Remove.
8864 2011-04-25 Jeff Law <law@redhat.com>
8866 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8868 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8870 * system.h (ENUM_BITFIELD): Remove.
8872 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
8873 Eric Botcazou <ebotcazou@adacore.com>
8875 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8876 for STORE_FLAG_VALUE==-1 case.
8878 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
8881 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8882 LEGITIMATE_PIC_OPERAND_P.
8884 2011-04-24 Jan Hubicka <jh@suse.cz>
8886 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8888 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8889 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8890 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8891 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8892 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8893 Sanity check predicate length.
8894 (remap_predicate): Likewise; sanity check jump functions.
8895 (inline_read_section, inline_write_summary): Sanity check
8898 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8901 * doc/extend.texi (Type Traits): Document __is_standard_layout,
8902 __is_literal_type, and __is_trivial; update throughout about
8903 possibly cv-qualified void types.
8905 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8907 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8908 testsuite and make it version agnostic.
8910 2011-04-22 Jan Hubicka <jh@suse.cz>
8912 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8914 2011-04-23 Jakub Jelinek <jakub@redhat.com>
8917 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8918 to VOID_TYPE even around MODIFY_EXPR.
8920 2011-04-22 Mike Stump <mikestump@comcast.net>
8922 * gensupport.c (read_md_rtx): Fix typo in comment.
8923 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8926 2011-04-22 Jan Hubicka <jh@suse.cz>
8928 * gengtype.c (open_base_files): Add ipa-inline.h include.
8929 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8930 ipa-prop.c; update all uses.
8931 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8932 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8933 merge summary of inlined function into former caller.
8934 * ipa-inline.c (max_benefit): Remove.
8935 (edge_badness): Compensate for removal of benefits.
8936 (update_caller_keys): Use
8937 reset_node_growth_cache/reset_edge_growth_cache.
8938 (update_callee_keys): Likewise.
8939 (update_all_callee_keys): Likewise.
8940 (inline_small_functions): Do not collect max_benefit; do not reset
8941 estimated_growth; call free_growth_caches and initialize_growth_caches.
8942 * ipa-inline.h (struct condition, type clause_t, struct predicate,
8943 struct size_time_entry): New structures.
8944 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8945 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8946 and estimated_growth.
8947 (edge_growth_cache_entry): New structure.
8948 (node_growth_cache, edge_growth_cache): New global vars.
8949 (estimate_growth): Turn into inline.
8950 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8951 initialize_growth_caches, free_growth_caches): Declare.
8952 (estimate_edge_growth): Rewrite.
8953 (estimate_edge_time): Implement as inline cache lookup.
8954 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8956 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8957 (NUM_CONDITIONS): New constant.
8958 (predicate_conditions): New enum.
8959 (IS_NOT_CONSTANT): New constant.
8960 (edge_removal_hook_holder): New var.
8961 (node_growth_cache, edge_growth_cache): New global vars.
8962 (true_predicate, single_cond_predicate, false_predicate,
8963 not_inlined_predicate, add_condition, add_clause, and_predicates,
8964 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8965 dump_clause, dump_predicate, account_size_time,
8966 evaulate_conditions_for_edge): New functions.
8967 (inline_summary_alloc): Move to heap.
8968 (inline_node_removal_hook): Clear condition and entry vectors.
8969 (inline_edge_removal_hook): New function.
8970 (initialize_growth_caches, free_growth_caches): New function.
8971 (dump_inline_summary): Update.
8972 (edge_execution_predicate): New function.
8973 (will_be_nonconstant_predicate): New function.
8974 (estimate_function_body_sizes): Compute BB and constantness predicates.
8975 (compute_inline_parameters): Do not clear estimated_growth.
8976 (estimate_edge_size_and_time): New function.
8977 (estimate_calls_size_and_time): New function.
8978 (estimate_callee_size_and_time): New function.
8979 (remap_predicate): New function.
8980 (inline_merge_summary): New function.
8981 (do_estimate_edge_time): New function based on...
8982 (estimate_edge_time): ... this one.
8983 (do_estimate_edge_growth): New function.
8984 (do_estimate_growth): New function based on....
8985 (estimate_growth): ... this one.
8986 (inline_analyze_function): Analyze after deciding on jump functions.
8987 (inline_read_section): New function.
8988 (inline_read_summary): Use it.
8989 (inline_write_summary): Write all the new data.
8990 * ipa-prop.c (ipa_get_param_decl_index): Export.
8991 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8992 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8994 (ipa_get_lattice): Move here from ipa-cp.c
8995 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8996 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8997 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8998 cgraph_edge_inlinable_p): Remove.
8999 * cgraphunit.c: Include ipainline.h
9000 (cgraph_process_new_functions): Update call of
9001 compute_inline_parameters.
9003 2011-04-22 Richard Guenther <rguenther@suse.de>
9005 * tree.c (build_int_cst): Properly create canonicalized integer
9007 (build_int_cst_type): Remove scary comments.
9009 2011-04-22 Xinliang David Li <davidxl@google.com>
9011 * toplev.c (process_options): Enable -Werror=coverage-mismatch
9012 by default when -Wno-error is not specified.
9013 * opts-global.c (decode_options): Remove call to
9014 control_warning_options.
9016 2011-04-22 Jakub Jelinek <jakub@redhat.com>
9018 PR tree-optimization/48717
9019 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
9020 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
9022 2011-04-22 Joseph Myers <joseph@codesourcery.com>
9024 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
9025 definition where used.
9027 2011-04-22 Jakub Jelinek <jakub@redhat.com>
9030 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
9031 TREE_STATIC variables declared inside of some OpenMP construct.
9033 2011-04-22 Martin Jambor <mjambor@suse.cz>
9036 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
9038 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
9041 * c-typeck.c (pop_init_level): Do not warn about initializing
9044 2011-04-22 Alan Modra <amodra@gmail.com>
9046 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
9047 when returning call_cookie.
9048 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
9049 pointers, to functions with no more vector args than the current
9050 function, and some non-local calls for ABI_V4.
9051 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
9052 sibcall_nonlocal_aix64): Combine to ..
9053 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
9054 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
9055 (sibcall_value_nonlocal_aix<mode>): ..likewise.
9056 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
9057 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
9059 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
9060 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
9061 sibcall_value_symbolic_64): Delete.
9063 2011-04-21 Xinliang David Li <davidxl@google.com>
9065 * cgraph.h: Remove pid.
9066 * cgraph.c: Remove pid.
9067 * value-prof.c (init_node_map): New function.
9068 (del_node_map): New function.
9069 (find_func_by_funcdef_no): New function.
9070 (gimple_ic_transform): Call new function.
9071 * cgraphunit.c (cgraph_finalize_function): Remove pid.
9072 * function.c (get_last_funcdef_no): New function.
9073 * function.h (get_last_funcdef_no): New function.
9074 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
9075 to libgcov function.
9076 (tree-profiling): Call node map init and delete function.
9078 2011-04-21 Ian Lance Taylor <iant@google.com>
9080 * godump.c (go_format_type): Use exported Go name for anonymous
9083 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9085 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
9086 Call builtin_function_type_list instead of builtin_function_type.
9087 (UNARY, BINARY, TRINARY, QUAD): Likewise.
9089 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9091 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
9092 build_function_type_list instead of build_function_type.
9093 Delete variable `endlink'.
9095 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9097 * config/s390/s390.c (s390_init_builtins): Call
9098 build_function_type_list instead of build_function_type.
9100 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9102 * config/ia64/ia64.c (ia64_init_builtins): Call
9103 build_function_type_list instead of builtin_function_type.
9105 2011-04-21 Easwaran Raman <eraman@google.com>
9107 * cfgexpand.c (stack_var): Remove OFFSET...
9108 (add_stack_var): ...and its reference here...
9109 (expand_stack_vars): ...and here.
9110 (stack_var_cmp): Sort by descending order of size.
9111 (partition_stack_vars): Change heuristic.
9112 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
9113 (dump_stack_var_partition): Add newline after each partition.
9115 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
9116 Jeff Law <law@redhat.com>
9118 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
9119 * gengtype.c (matching_file_name_substitute): Likewise.
9121 2011-04-21 Richard Guenther <rguenther@suse.de>
9124 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
9126 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
9128 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
9130 2011-04-21 Richard Guenther <rguenther@suse.de>
9132 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
9135 2011-04-21 Richard Guenther <rguenther@suse.de>
9137 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9138 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
9139 Use DECL_P, not SSA_VAR_P.
9140 (ptr_derefs_may_alias_p): Likewise.
9141 (ptr_deref_may_alias_ref_p_1): Likewise.
9142 (decl_refs_may_alias_p): Likewise.
9143 (refs_may_alias_p_1): Likewise.
9144 (ref_maybe_used_by_call_p_1): Likewise.
9145 (call_may_clobber_ref_p_1): Likewise.
9146 (indirect_ref_may_alias_decl_p): Assume indirect refrences
9147 are either MEM_REF or TARGET_MEM_REF.
9148 (indirect_refs_may_alias_p): Likewise.
9149 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
9150 for MEM_EXPR of indirect calls.
9152 2011-04-21 Tristan Gingold <gingold@adacore.com>
9154 * vmsdbgout.c (write_srccorr): Compute file length from the string.
9155 (dst_file_info_struct): Remove flen field.
9156 (lookup_filename): Remove code that set flen field.
9158 2011-04-21 Tristan Gingold <gingold@adacore.com>
9160 * config/ia64/ia64.c (ia64_start_function): Add a guard.
9162 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
9165 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
9166 vec_extract and vec_concat for non-SSE4_1 targets.
9168 2011-04-21 Richard Guenther <rguenther@suse.de>
9170 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
9173 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9175 * config/i386/cygming.h (union tree_node, TREE): Don't define or
9177 (FILE): Don't undefine.
9179 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9181 * config/alpha/alpha.c (struct machine_function): Use rtx, not
9183 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
9185 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
9186 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
9187 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
9189 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
9190 definitions where used.
9191 * config/microblaze/microblaze.h (struct microblaze_args): Use
9192 rtx, not struct rtx_def *.
9193 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
9195 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
9196 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
9197 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
9198 not struct rtx_def *.
9199 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
9201 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
9203 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
9205 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9207 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
9208 operand_equal_p to compare DR_BASE_ADDRESSes.
9209 (vect_check_interleaving): Likewise.
9211 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9214 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
9215 for all Neon struct constants.
9217 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9219 * target.def (legitimate_constant_p): New hook.
9220 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
9221 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
9222 * doc/tm.texi: Regenerate.
9223 * hooks.h (hook_bool_mode_rtx_true): Declare.
9224 * hooks.c (hook_bool_mode_rtx_true): Define.
9225 * system.h (LEGITIMATE_CONSTANT_P): Poison.
9226 * calls.c (precompute_register_parameters): Replace uses of
9227 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
9228 (emit_library_call_value_1): Likewise.
9229 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
9230 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
9231 * ira-costs.c (scan_one_insn): Likewise.
9232 * recog.c (general_operand, immediate_operand): Likewise.
9233 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
9234 * reload1.c (init_eliminable_invariants): Likewise.
9236 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
9238 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
9239 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
9241 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9242 * config/alpha/predicates.md (input_operand): Update call to
9243 alpha_legitimate_constant_p.
9245 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
9246 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
9247 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
9248 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9249 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
9250 (arm_legitimate_constant_p): New functions.
9251 (arm_cannot_force_const_mem): Make static.
9253 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
9255 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
9256 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
9257 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
9258 instead of bfin_legitimate_constant_p.
9259 (bfin_legitimate_constant_p): Make static. Add a mode argument.
9260 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9262 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
9264 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
9266 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
9267 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
9268 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9269 (frv_legitimate_constant_p): Make static. Add a mode argument.
9271 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
9272 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
9273 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
9275 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
9276 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
9277 * config/i386/i386.c (legitimate_constant_p): Rename to...
9278 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
9280 (ix86_cannot_force_const_mem): Update accordingly.
9281 (ix86_legitimate_address_p): Likewise.
9282 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9283 * config/i386/i386.md: Update commentary.
9285 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
9286 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
9287 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9288 (ia64_legitimate_constant_p): Make static. Add a mode argument.
9290 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
9292 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
9293 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
9294 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9295 (lm32_legitimate_constant_p): Make static. Add a mode argument.
9297 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
9298 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
9299 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
9301 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
9302 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9303 (m32r_legitimate_constant_p): New function.
9305 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
9306 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
9307 LEGITIMATE_CONSTANT_P.
9308 (LEGITIMATE_CONSTANT_P): Delete.
9309 * config/m68k/m68k.c (m68k_expand_prologue): Call
9310 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
9311 (m68k_legitimate_constant_p): New function.
9312 * config/m68k/m68k.md: Update comments.
9314 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
9315 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9316 (mcore_legitimate_constant_p): New function.
9318 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
9319 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
9320 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
9321 Add a mode argument.
9322 (mep_legitimate_address): Update accordingly.
9323 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9325 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
9327 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
9328 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
9329 static. Check OP's mode for VOIDmode.
9330 (microblaze_legitimate_constant_p): New function.
9331 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9333 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
9334 * config/mips/mips.c (mips_legitimate_constant_p): New function.
9335 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
9336 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9337 * config/mips/predicates.md: Update comments.
9339 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
9340 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
9341 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9342 (mmix_legitimate_constant_p): Make static, return a bool, and take
9344 (mmix_print_operand_address): Update accordingly.
9346 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
9348 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
9349 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
9350 static. Add a mode argument.
9351 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9353 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
9355 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
9356 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9357 (pa_legitimate_constant_p): New function.
9359 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
9361 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
9362 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9363 (pdp11_legitimate_constant_p): New function.
9365 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
9366 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9367 (rs6000_legitimate_constant_p): New function.
9369 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
9370 (rx_legitimate_constant_p): ...this.
9371 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
9372 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
9373 (rx_legitimate_constant_p): ...this.
9374 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9375 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
9377 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
9378 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
9379 * config/s390/s390.c (legitimate_constant_p): Rename to...
9380 (s390_legitimate_constant_p): ...this. Make static, return a bool,
9381 and add a mode argument.
9382 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9384 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
9386 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
9387 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9388 (sh_legitimate_constant_p): New function.
9390 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
9391 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
9392 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9393 (legitimate_constant_p): Rename to...
9394 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
9396 (constant_address_p): Update accordingly.
9398 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
9399 argument and return a bool.
9400 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
9401 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9402 (spu_legitimate_constant_p): Add a mode argument and return a bool.
9403 (spu_rtx_costs): Update accordingly.
9404 * config/spu/predicates.md (vec_imm_operand): Likewise.
9406 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
9408 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
9409 * config/v850/v850.c (v850_legitimate_constant_p): New function.
9410 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9412 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
9413 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
9414 * config/vax/vax.c (legitimate_constant_p): Likewise.
9416 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
9417 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9418 (xtensa_legitimate_constant_p): New function.
9420 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9422 * target.def (cannot_force_const_mem): Add a mode argument.
9423 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
9424 * doc/tm.texi: Regenerate.
9425 * hooks.h (hook_bool_mode_rtx_false): Declare.
9426 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
9427 (hook_bool_mode_const_rtx_true): Likewise.
9428 (hook_bool_mode_rtx_false): New function.
9429 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
9430 to be non-VOID. Update call to cannot_force_const_mem.
9431 (find_reloads): Update accordingly.
9432 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
9433 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
9435 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
9436 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
9437 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
9438 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
9439 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
9440 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
9441 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
9442 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9443 (m68k_cannot_force_const_mem): ...this new function.
9444 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
9446 (mips_const_insns, mips_legitimize_const_move): Update calls.
9447 (mips_secondary_reload_class): Likewise.
9448 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9449 (pa_cannot_force_const_mem): ...this new function.
9450 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
9451 (rs6000_cannot_force_const_mem): ...this new function.
9452 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
9454 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
9455 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
9457 (xtensa_cannot_force_const_mem): ...this new function.
9459 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9461 * config/mips/mips.c (mips16_build_function_stub): Call
9462 build_function_type_list instead of build_function_type.
9463 (mips16_build_call_stub): Likewise.
9465 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9467 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
9468 instead of build_function_type.
9470 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9472 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
9473 instead of build_function_type.
9475 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
9478 * config/i386/i386.md (insv): Change operand 0 constraint to
9479 "register_operand". Change operand 1 and 2 constraint to
9480 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
9481 * config/i386/sse.md (sse4_1_pinsrb): Export.
9482 (sse2_pinsrw): Ditto.
9483 (sse4_1_pinsrd): Ditto.
9484 (sse4_1_pinsrq): Ditto.
9485 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
9486 * config/i386/i386.c (ix86_expand_pinsr): New.
9488 2011-04-20 Easwaran Raman <eraman@google.com>
9490 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
9491 containing union type only with -fstrict-aliasing.
9493 2011-04-20 Jim Meyering <meyering@redhat.com>
9495 Remove useless if-before-free tests.
9496 * calls.c (expand_call, save_area): Likewise.
9497 * cfgcleanup.c (try_forward_edges): Likewise.
9498 * collect2.c (collect_execute): Likewise.
9499 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9500 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9501 * coverage.c (coverage_checksum_string): Likewise.
9502 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9503 * cselib.c (cselib_init): Likewise.
9504 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9505 (df_set_clean_cfg): Likewise.
9506 * function.c (free_after_compilation): Likewise.
9507 * gcc.c (do_spec_1, main): Likewise.
9508 * gcov.c (create_file_names): Likewise.
9509 * gensupport.c (identify_predicable_attribute): Likewise.
9510 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9511 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9512 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9513 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9514 * ipa-pure-const.c (local_pure_const): Likewise.
9515 * ipa-reference.c (propagate): Likewise.
9516 * ira-costs.c (free_ira_costs): Likewise.
9517 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9518 * matrix-reorg.c (mat_free): Likewise.
9519 * prefix.c (get_key_value): Likewise.
9520 * profile.c (compute_value_histograms): Likewise.
9521 * reload1.c (free_reg_equiv): Likewise.
9522 * sched-deps.c (free_deps): Likewise.
9523 * sel-sched-ir.c (fence_clear): Likewise.
9524 * sese.c (set_rename, if_region_set_false_region): Likewise.
9525 * tree-data-ref.c (free_rdg): Likewise.
9526 * tree-eh.c (lower_try_finally): Likewise.
9527 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9528 * tree-ssa-live.c (delete_var_map): Likewise.
9529 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9530 * tree-ssa-pre.c (phi_trans_add): Likewise.
9532 2011-04-20 Jakub Jelinek <jakub@redhat.com>
9534 PR tree-optimization/48611
9535 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9536 beyond ERT_MUST_NOT_THROW region.
9538 2011-04-20 Catherine Moore <clm@codesourcery.com>
9540 * config/mips/mips.opt (mfix-24k): New.
9541 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9542 * config/mips/mips.md (length): Increase by 4 for stores if
9544 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9545 all noreorder if fixing 24K errata.
9546 * doc/invoke.texi: Document mfix-24k.
9548 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
9550 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
9551 quad-word modes, reduce to 9-bit index range when above 1016 limit.
9553 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9555 * config/arm/arm.c (arm_gen_constant): Move movw support ....
9556 (const_ok_for_op): ... to here.
9558 2011-04-20 Kai Tietz <ktietz@redhat.com>
9560 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9561 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
9563 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9565 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9567 2011-04-20 Richard Guenther <rguenther@suse.de>
9569 PR tree-optimization/47892
9570 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
9573 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
9575 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
9577 2011-04-20 Tristan Gingold <gingold@adacore.com>
9579 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
9581 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
9585 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
9586 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9587 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9588 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
9589 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
9591 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
9594 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
9595 (avr_asm_named_section, avr_asm_output_aligned_common,
9596 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
9597 New functions to update...
9598 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
9599 (avr_asm_init_sections): Overwrite section callbacks for
9600 data_section, bss_section.
9601 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
9603 (avr_file_end): ...here.
9605 2011-04-20 Richard Guenther <rguenther@suse.de>
9608 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
9609 objects and types here. Adjust for their offset before comparing.
9611 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9613 * tree-vect-stmts.c (vectorizable_store): Only chain one related
9616 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9618 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9619 (GIMPLE_H): Include $(INTERNAL_FN_H).
9620 (OBJS-common): Add internal-fn.o.
9621 (internal-fn.o): New rule.
9622 * internal-fn.def: New file.
9623 * internal-fn.h: Likewise.
9624 * internal-fn.c: Likewise.
9625 * gimple.h: Include internal-fn.h.
9626 (GF_CALL_INTERNAL): New gf_mask.
9627 (gimple_statement_call): Put fntype into a union with a new
9629 (gimple_build_call_internal): Declare.
9630 (gimple_build_call_internal_vec): Likewise.
9631 (gimple_call_same_target_p): Likewise.
9632 (gimple_call_internal_p): New function.
9633 (gimple_call_internal_fn): Likewise.
9634 (gimple_call_fntype): Return null for internal calls.
9635 (gimple_call_set_fntype): Assert that the function is not internal.
9636 (gimple_call_set_fn): Likewise.
9637 (gimple_call_set_fndecl): Likewise.
9638 (gimple_call_set_internal_fn): New function.
9639 (gimple_call_addr_fndecl): Handle null functions.
9640 (gimple_call_return_type): Likewise null types.
9641 * gimple.c (gimple_build_call_internal_1): New function.
9642 (gimple_build_call_internal): Likewise.
9643 (gimple_build_call_internal_vec): Likewise.
9644 (gimple_call_same_target_p): Likewise.
9645 (gimple_call_flags): Handle calls to internal functions.
9646 (gimple_call_fnspec): New function.
9647 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9648 (gimple_has_side_effects): Handle null functions.
9649 (gimple_rhs_has_side_effects): Likewise.
9650 (gimple_call_copy_skip_args): Handle calls to internal functions.
9651 * cfgexpand.c (expand_call_stmt): Likewise.
9652 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9653 * gimple-fold.c (gimple_fold_call): Handle null functions.
9654 (gimple_fold_stmt_to_constant_1): Don't fold
9655 calls to internal functions.
9656 * gimple-low.c (gimple_check_call_args): Handle calls to internal
9658 * gimple-pretty-print.c (dump_gimple_call): Likewise.
9659 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9660 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9661 (do_warn_unused_result): Likewise.
9662 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9663 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9664 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9665 the target of a call.
9666 (initialize_hash_element): Update accordingly.
9667 (hashable_expr_equal_p): Use gimple_call_same_target_p.
9668 (iterative_hash_hashable_expr): Handle calls to internal functions.
9669 (print_expr_hash_elt): Likewise.
9670 * tree-ssa-pre.c (can_value_number_call): Likewise.
9671 (eliminate): Handle null functions.
9672 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9673 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9674 (find_func_aliases): Likewise.
9675 * value-prof.c (gimple_ic_transform): Likewise.
9676 (gimple_indirect_call_to_profile): Likewise.
9677 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9678 * lto-streamer-out.c (output_gimple_stmt): Likewise.
9680 2011-04-19 Jan Hubicka <jh@suse.cz>
9682 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9683 * ipa-inline.c (inline_small_functions): Compute summaries first,
9684 populate heap later.
9686 2011-04-19 Jan Hubicka <jh@suse.cz>
9688 * cgraph.h (save_inline_function_body): Remove.
9689 * ipa-inline-transform.c: New file, broke out of...
9690 * ipa-inline.c: ... this one; Update toplevel comment.
9691 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9693 (update_noncloned_frequencies): Move to ipa-inline-transform.c
9694 (cgraph_mark_inline_edge): Rename to inline_call; move to
9695 ipa-inline-transform.c.
9696 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9697 move to ipa-inline-transform.c
9698 (recursive_inlining, inline_small_functions, flatten_function,
9699 ipa_inline, inline_always_inline_functions,
9700 early_inline_small_functions): Update.
9701 (inline_transform): Move to ipa-inline-transform.c.
9702 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9704 * Makefile.in (ipa-inline-transform.o): New file.
9705 * cgraphunit.c (save_inline_function_body): Move to
9706 ipa-inline-transform.c
9708 2011-04-19 DJ Delorie <dj@redhat.com>
9710 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9711 registers if we already know there aren't any.
9712 (m32c_emit_epilogue): Don't emit a barrier here.
9713 (m32c_emit_eh_epilogue): Likewise.
9714 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9715 operands at expand time.
9716 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9718 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9719 duplicates. Provide aliases instead.
9720 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9721 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9724 2011-04-19 Anatoly Sokolov <aesok@post.ru>
9726 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9727 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9728 (general_or_i64_p, sparc_register_move_cost): New function.
9730 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9732 * doc/install.texi (Configuration, --enable-threads): Remove mach.
9733 Add lynx, mipssde. Sort table.
9735 2011-04-19 Xinliang David Li <davidxl@google.com>
9737 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9740 2011-04-19 Jakub Jelinek <jakub@redhat.com>
9743 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9744 is a SUBREG with non-MODE_INT mode inside of it.
9746 2011-04-19 Martin Jambor <mjambor@suse.cz>
9748 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9749 also according to actual contants.
9750 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9751 (gimple_fold_call): Use it.
9752 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9754 2011-04-19 Martin Jambor <mjambor@suse.cz>
9756 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9757 non-pointer assignments.
9759 2011-04-19 Martin Jambor <mjambor@suse.cz>
9761 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9762 account anc_offset and otr_type from the indirect edge info.
9763 * ipa-prop.c (get_ancestor_addr_info): New function.
9764 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9765 get_ancestor_addr_info, call it.
9766 (ipa_note_param_call): Do not initialize information about polymorphic
9767 calls, return the indirect call graph edge. Remove the last
9768 parameter, adjust all callers.
9769 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9770 parameters. Initialize polymorphic information in the indirect edge.
9772 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9775 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9776 the types if they have different enumeration identifiers.
9778 2011-04-19 Jan Hubicka <jh@suse.cz>
9780 * cgraph.h (cgraph_optimize_for_size_p): Declare.
9781 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9782 * predict.c (cgraph_optimize_for_size_p): Break out from ...
9783 (optimize_function_for_size_p) ... here.
9785 2011-04-19 Richard Guenther <rguenther@suse.de>
9788 * tree.c (free_lang_data): Do not reset the decl-assembler-name
9791 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9793 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9794 if DECL_NO_INLINE_WARNING_P is set on the function.
9796 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
9799 * reload1.c (inc_for_reload): Return void. All callers changed.
9800 (emit_input_reload_insns): Don't try to delete previous output
9801 reloads to a register, or record spill_reg_store for autoincs.
9803 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
9805 * gengtype.h: Updated copyright year.
9806 (struct input_file_st): Add inpisplugin field.
9807 (type_fileloc): New function.
9809 (write_typed_struct_alloc_def): Add gcc_assert.
9810 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9811 (write_typed_alloc_defns): Don't output for plugin files.
9812 (input_file_by_name): Clear inpisplugin field.
9813 (main): Set inpisplugin field for plugin files.
9815 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9817 * gengtype-state.c (string_eq): New.
9818 (read_state): Use string_eq instead of strcmp when creating the
9821 2011-04-19 Wei Guozhi <carrot@google.com>
9824 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9825 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9827 * config/arm/constraints.md (Uu): New constraint.
9828 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9830 2011-04-19 Tristan Gingold <gingold@adacore.com>
9832 * config.gcc (-*-*-*vms): Added.
9833 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9835 * config/vms/vms-ld.c: New file.
9836 * config/vms/vms-ar.c: New file.
9837 * config/vms/t-vmsnative: New file.
9839 2011-04-18 Xinliang David Li <davidxl@google.com>
9841 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9843 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9846 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9847 if TREE_TYPE (v) is non-NULL.
9849 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9850 gimple_get_virt_mehtod_for_binfo.
9851 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9852 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9854 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9856 2011-04-18 Michael Matz <matz@suse.de>
9857 Steve Ellcey <sje@cup.hp.com>
9859 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9860 use its mode as source mode if it isn't VOIDmode.
9862 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
9864 * doc/passes.texi: Fill crossref nodes.
9866 2011-04-18 Jim Meyering <meyering@redhat.com>
9868 Fix doubled-word typos in comments and strings
9869 * config/alpha/vms-unwind.h: s/for for/for/
9870 * config/arm/unwind-arm.h: Likewise.
9871 * config/microblaze/microblaze.c: Likewise.
9872 * config/sh/constraints.md: s/in in/in/
9873 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9875 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
9877 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9878 (AVX_FLOAT_MODE_P): Ditto.
9879 (AVX128_VEC_FLOAT_MODE_P): Ditto.
9880 (AVX256_VEC_FLOAT_MODE_P): Ditto.
9881 (AVX_VEC_FLOAT_MODE_P): Ditto.
9882 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9883 (UNSPEC_MASKSTORE): Ditto.
9884 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9885 Merge from <sse>_movmsk<ssemodesuffix> and
9886 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
9887 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
9889 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9890 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9891 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9893 2011-04-18 Jan Hubicka <jh@suse.cz>
9895 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9897 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9898 (want_inline_function_called_once_p): Break out the logic from
9900 (edge_badness): Ensure that profile is not misupdated.
9901 (lookup_recursive_calls): Prioritize by call frequencies.
9902 (inline_small_functions): Move program size estimates here;
9903 actually process whole queue even when unit growth has been
9904 met. (to properly compute inline_failed reasons and for the
9905 case unit size decrease.) Revisit comments on recursive inlining.
9906 (ipa_inline): Remove unit summary code; first inline hot calls
9907 of functions called once, cold calls next.
9908 (order, nnodes): Remove unused variables.
9909 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9910 (GTFILES): Remove ipa-inline.c
9911 * sel-sched.c (fill_insns): Silence uninitialized var warning.
9913 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9915 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9917 2011-04-18 Jie Zhang <jie@codesourcery.com>
9918 Richard Earnshaw <rearnsha@arm.com>
9920 * arm.c (neon_builtin_type_bits): Remove.
9921 (typedef enum neon_builtin_mode): New.
9922 (T_MAX): Don't define.
9923 (typedef enum neon_builtin_datum): Remove bits, codes[],
9924 num_vars and base_fcode. Add mode, code and fcode.
9925 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9926 VAR10): Change accordingly.
9927 (neon_builtin_data[]): Change accordingly
9928 (arm_init_neon_builtins): Change accordingly.
9929 (neon_builtin_compare): Remove.
9930 (locate_neon_builtin_icode): Remove.
9931 (arm_expand_neon_builtin): Change accordingly.
9933 * arm.h (enum arm_builtins): Move to ...
9934 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9936 * arm.c (arm_builtin_decl): Declare.
9937 (TARGET_BUILTIN_DECL): Define.
9938 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9939 (arm_builtin_decls[]): New.
9940 (arm_init_neon_builtins): Store builtin declarations in
9941 arm_builtin_decls[].
9942 (arm_init_tls_builtins): Likewise.
9943 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
9944 (arm_builtin_decl): New.
9946 2011-04-18 Richard Guenther <rguenther@suse.de>
9948 * tree.c (upper_bound_in_type): Build properly canonicalized
9950 (lower_bound_in_type): Likewise.
9952 2011-04-18 Richard Guenther <rguenther@suse.de>
9954 * gimple.h (gimple_call_addr_fndecl): New function.
9955 (gimple_call_fndecl): Use it.
9956 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9958 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9959 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9961 2011-04-18 Richard Guenther <rguenther@suse.de>
9964 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9966 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9969 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9970 DECL_IN_CONSTANT_POOL without RTL.
9972 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9973 Ira Rosen <ira.rosen@linaro.org>
9976 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9977 to match neon_vzip/vuzp/vtrn_internal.
9978 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9979 outputs explicitly dependent on both inputs.
9980 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9982 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9984 PR tree-optimization/48616
9985 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9986 whether the shift is by scalar or vector based on whether all SLP
9987 scalar stmts have the same rhs.
9989 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9991 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9994 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9997 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
10000 2011-04-17 Jan Hubicka <jh@suse.cz>
10002 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
10003 * cgrpahunit.c (cgraph_finalize_function): Do not set
10004 finalized_by_frontend.
10005 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10006 finalized_by_frontend.
10008 2011-04-17 Jan Hubicka <jh@suse.cz>
10010 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
10011 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
10012 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
10013 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
10015 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
10017 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
10019 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
10022 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
10023 is non-null before accessing it.
10024 (input_cgraph): Remove trailing spaces.
10026 2011-04-17 Revital Eres <revital.eres@linaro.org>
10028 * params.def (sms-min-sc): New param flag.
10029 * modulo-sched.c (sms_schedule): Use it.
10030 * doc/invoke.texi (sms-min-sc): Document it.
10032 2011-04-17 Jan Hubicka <jh@suse.cz>
10034 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
10035 present, also set gimple_call_set_cannot_inline.
10036 * ipa-inline.c: Update toplevel comment.
10037 (MAX_TIME): Remove.
10038 (cgraph_clone_inlined_nodes): Fix linebreaks.
10039 (cgraph_check_inline_limits): Restructure to ...
10040 (caller_growth_limits): ... this one; be more tolerant
10041 on growth in nested inline chains; add explanatory comment;
10042 fix stack accounting thinko introduced by previous patch.
10043 (cgraph_default_inline_p): Remove.
10044 (report_inline_failed_reason): New function.
10045 (can_inline_edge_p): New function.
10046 (can_early_inline_edge_p): New function.
10047 (leaf_node_p): Move upwards in file.
10048 (want_early_inline_function_p): New function.
10049 (want_inline_small_function_p): New function.
10050 (want_inline_self_recursive_call_p): New function.
10051 (cgraph_edge_badness): Rename to ...
10052 (edge_badness) ... this one; fix linebreaks.
10053 (update_edge_key): Update call of edge_baddness; add
10054 detailed dump about queue updates.
10055 (update_caller_keys): Use can_inline_edge_p and
10056 want_inline_small_function_p.
10057 (cgraph_decide_recursive_inlining): Rename to...
10058 (recursive_inlining): Use can_inline_edge_p and
10059 want_inline_self_recursive_call_p; simplify and remove no longer
10061 (cgraph_set_inline_failed): Remove.
10062 (add_new_edges_to_heap): Use can_inline_edge_p and
10063 want_inline_small_function_p.
10064 (cgraph_decide_inlining_of_small_functions): Rename to ...
10065 (inline_small_functions): ... this one; cleanup; use
10066 can/want predicates; cleanup debug ouput; work edges till fibheap
10067 is exhausted and do not stop once unit growth is reached; remove
10068 later loop processing remaining edges.
10069 (cgraph_flatten): Rename to ...
10070 (flatten_function): ... this one; use can_inline_edge_p
10071 and can_early_inline_edge_p predicates.
10072 (cgraph_decide_inlining): Rename to ...
10073 (ipa_inline): ... this one; remove unreachable nodes before
10074 inlining functions called once; simplify the pass.
10075 (cgraph_perform_always_inlining): Rename to ...
10076 (inline_always_inline_functions): ... this one; use
10077 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
10078 (cgraph_decide_inlining_incrementally): Rename to ...
10079 (early_inline_small_functions): ... this one; simplify
10080 using new predicates; cleanup; make dumps prettier.
10081 (cgraph_early_inlining): Rename to ...
10082 (early_inliner): newer inline regular functions into always-inlines;
10083 fix updating of call stmt summaries.
10084 (pass_early_inline): Update for new names.
10085 (inline_transform): Fix formating.
10086 (gate_cgraph_decide_inlining): Rename to ...
10087 (pass_ipa_inline): ... this one.
10088 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
10089 * ipa-inline-analysis.c (dump_inline_summary): Update.
10090 (compute_inline_parameters): Do not compute disregard_inline_limits;
10091 look for mismatching arguments.
10092 (estimate_growth): Fix handlig of non-trivial self recursion.
10093 (inline_read_summary): Do not read info->disregard_inline_limits.
10094 (inline_write_summary): Do not write info->disregard_inline_limits.
10095 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
10096 and move all checks into can_inline_edge_p predicate; re-enable code
10097 comparing optimization levels.
10098 (expand_call_inline): Do not test inline_forbidden_into_p.
10099 * Makefile.in (ipa-inline.o): Update arguments.
10101 2011-04-17 Revital Eres <revital.eres@linaro.org>
10103 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
10105 2011-04-17 Revital Eres <revital.eres@linaro.org>
10107 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
10109 2011-04-17 Michael Matz <matz@suse.de>
10111 PR tree-optimization/48622
10113 * ipa-inline-analysis.c (inline_read_summary): Read size/time
10114 in same order as they're written.
10116 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10118 * config/pa/predicates.md: Reorganize and simplify predicates.
10119 Eliminate duplicate code checks.
10120 (arith_operand): Rename to arith14_operand
10121 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
10122 * config/pa/pa.md: Use renamed operands.
10123 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
10124 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
10125 arith11_operand, adddi3_operand, indexed_memory_operand,
10126 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
10127 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
10128 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
10129 move_dest_operand, move_src_operand, prefetch_cc_operand,
10130 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
10131 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
10132 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
10133 div_operand, int5_operand, movb_comparison_operator,
10134 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
10135 arith_double_operand, ireg_operand, lhs_lshift_operand,
10136 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
10137 integer_store_memory_operand): Likewise.
10138 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
10139 (integer_store_memory_operand, read_only_operand,
10140 function_label_operand, borx_reg_operand,
10141 non_hard_reg_operand): Likewise.
10142 (eq_neq_comparison_operator): Delete unused operator.
10143 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
10144 function_label_operand.
10145 (emit_move_sequence): Likewise.
10147 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10149 * config/i386/sse.md (sseunpackmode): New mode attribute.
10150 (ssepackmode): Ditto.
10151 (vec_pack_trunc_<mode>): Macroize expander from
10152 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
10153 (vec_unpacks_lo_<mode>): Macroize expander from
10154 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10155 (vec_unpacks_hi_<mode>): Macroize expander from
10156 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10157 (vec_unpacku_lo_<mode>): Macroize expander from
10158 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10159 (vec_unpacku_hi_<mode>): Macroize expander from
10160 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10161 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
10162 ix86_expand_sse4_unpack.
10163 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
10165 2011-04-16 Jan Hubicka <jh@suse.cz>
10167 * cgraphbuild.c: Include ipa-inline.h.
10168 (reset_inline_failed): Use initialize_inline_failed.
10169 * cgraph.c: Include ipa-inline.h.
10170 (cgraph_create_node_1): Do not initialize estimated_growth.
10171 (initialize_inline_failed): More to ipa-inline-analysis.c
10172 (dump_cgraph_node): Do not dump inline flags.
10173 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
10174 and disregard_inline_limits flags.
10175 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
10176 time, size, estimated_growth.
10177 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
10179 * cgraphunit.c (cgraph_decide_is_function_needed): Use
10180 DECL_DISREGARD_INLINE_LIMITS.
10181 (cgraph_analyze_function): Do not initialize
10182 node->local.disregard_inline_limits.
10183 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10184 inlinable, versionable and disregard_inline_limits.
10185 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10186 cgraph_check_inline_limits, cgraph_default_inline_p,
10187 cgraph_edge_badness, update_caller_keys, update_callee_keys,
10188 add_new_edges_to_heap): Update.
10189 (cgraph_decide_inlining_of_small_function): Update; set
10190 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
10191 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
10192 cgraph_decide_inlining_incrementally): Update.
10193 * ipa-inline.h (inline_summary): Add inlinable, versionable,
10194 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
10195 time, size and estimated_growth parameters.
10196 (estimate_edge_growth): Update.
10197 (initialize_inline_failed): Declare.
10198 * ipa-split.c: Include ipa-inline.h
10199 (execute_split_functions): Update.
10200 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
10201 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
10202 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
10203 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
10204 estimated_growth to INT_MIN.
10205 (inline_node_duplication_hook): Likewise.
10206 (dump_inline_summary): Dump new fields.
10207 (compute_inline_parameters): Update.
10208 (estimate_edge_time, estimate_time_after_inlining,
10209 estimate_size_after_inlining, estimate_growth, inline_read_summary,
10210 inline_write_summary):
10211 (initialize_inline_failed): Move here from cgraph.c.
10212 * tree-sra.c: Include ipa-inline.h.
10213 (ipa_sra_preliminary_function_checks): Update.
10214 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
10217 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10219 * config/i386/sse.md (V16): New mode iterator.
10221 (AVXMODEQI, AVXMODEDI): Remove.
10222 (sse2, sse3): New mode attribute.
10223 (mov<mode>): Use V16 mode iterator.
10224 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
10225 (push<mode>1): Use V16 mode iterator.
10226 (movmisalign<mode>): Ditto.
10227 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10228 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
10229 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10230 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
10231 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
10232 avx_movdqu<avxmodesuffix>.
10233 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
10234 *avx_movdqu<avxmodesuffix>.
10235 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
10236 avx_lddqu<avxmodesuffix>.
10237 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
10238 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
10239 avx_movnt<AVXMODEDI:mode>.
10240 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
10241 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
10243 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
10246 * haifa-sched.c (prune_ready_list, schedule_block): Use
10247 sched_pressure_p rather than flag_sched_pressure.
10249 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
10251 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10252 cgraph_get_node instead of cgraph_get_create_node.
10254 2011-04-15 Jakub Jelinek <jakub@redhat.com>
10256 * cfgexpand.c (expand_debug_expr): Use
10257 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
10259 2011-04-15 Michael Matz <matz@suse.de>
10261 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
10262 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
10263 * function.c (gimplify_parameters): Ditto.
10264 * gimplify.c (gimplify_vla_decl): Ditto.
10266 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
10267 (gimple_call_set_alloca_for_var): New inline function.
10268 (gimple_call_alloca_for_var_p): Ditto.
10269 * gimple.c (gimple_build_call_from_tree): Remember
10270 CALL_ALLOCA_FOR_VAR_P state.
10271 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
10273 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
10274 calls if they were for VLA objects.
10276 2011-04-15 Martin Jambor <mjambor@suse.cz>
10278 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
10281 2011-04-15 Martin Jambor <mjambor@suse.cz>
10283 PR middle-end/48601
10284 * tree-emutls.c (lower_emutls_function_body): Call
10285 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
10286 result is non-NULL.
10288 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
10290 * c-decl.c (detect_field_duplicates): Call
10291 objc_detect_field_duplicates instead of objc_get_interface_ivars.
10293 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
10295 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
10296 * gimple.c (gimple_asm_clobbers_memory_p): Define.
10297 * ipa-pure-const.c (check_stmt): Call it.
10298 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
10300 2011-04-15 Richard Guenther <rguenther@suse.de>
10302 PR tree-optimization/48290
10303 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
10304 Properly decide inhibiting propagation based on the valueized
10305 operand. Do loop-closed SSA form preserving here ...
10306 (init_copy_prop): ... not here.
10308 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
10311 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
10312 (*ieee_smax<mode>3): Likewise.
10314 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10316 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
10317 Replace match_operand with match_dup for the third operand in
10320 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10322 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
10323 to track processing of conditionals. Update all callers.
10324 (try_combine, simplify_if_then_else): Update.
10326 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10328 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
10331 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
10333 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
10334 instead of match_operand for operand 3.
10336 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
10338 * recog.h (insn_operand_data): Add an "allows_mem" field.
10339 * genoutput.c (output_operand_data): Initialize it.
10340 * optabs.c (maybe_legitimize_operand_same_code): New function.
10341 (maybe_legitimize_operand): Use it when matching the original
10344 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10346 * gimplify.c: Fix issues in comments throughout.
10347 (voidify_wrapper_expr): Fix long line.
10348 (build_stack_save_restore): Likewise.
10349 (gimplify_loop_expr): Likewise.
10350 (gimplify_compound_lval): Likewise.
10351 (gimplify_init_ctor_eval): Likewise.
10352 (gimplify_modify_expr_rhs): Likewise.
10353 (omp_notice_threadprivate_variable): Likewise.
10355 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10357 * cfgexpand.c (expand_call_stmt): Convert the function type to the
10358 original one if this is not a builtin function.
10360 2011-04-14 Jakub Jelinek <jakub@redhat.com>
10363 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
10364 offset it as needed based on top 2 bits in operands[3], change
10365 MEM mode to SFmode and mask those 2 bits away from operands[3].
10367 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10369 * c-parser.c (c_parser_objc_protocol_definition): Updated for
10370 change from objc_declare_protocols() to objc_declare_protocol().
10372 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
10374 * config/i386/sse.md (sse4_1): New mode attribute.
10375 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
10376 avx_blend<ssemodesuffix><avxmodesuffix> and
10377 sse4_1_blend<ssemodesuffix> using VF mode iterator.
10378 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
10379 avx_blendv<ssemodesuffix><avxmodesuffix> and
10380 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
10381 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
10382 avx_dp<ssemodesuffix><avxmodesuffix> and
10383 sse4_1_dp<ssemodesuffix> using VF mode iterator.
10384 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
10385 (sse4_1_packusdw): Merge with *avx_packusdw.
10386 (sse4_1_pblendvb): Merge with *avx_pblendvb.
10387 (sse4_1_pblendw): Merge with *avx_pblendw.
10388 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
10389 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
10390 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
10392 (sse4_1_round<ssescalarmodesuffix>): Merge with
10393 *avx_round<ssescalarmodesuffix>.
10394 (aesenc): Merge with *avx_aesenc.
10395 (aesenclast): Merge with *avx_aesenclast.
10396 (aesdec): Merge with *avx_aesdec.
10397 (aesdeclast): Merge with *avx_aesdeclast.
10398 (pclmulqdq): Merge with *pclmulqdq.
10399 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
10401 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
10403 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
10405 PR middle-end/48608
10406 * cfgexpand.c (get_decl_align_unit): Renamed to ...
10407 (align_local_variable): This. Update DECL_ALIGN.
10408 (add_stack_var): Updated.
10409 (expand_one_stack_var): Likewise.
10411 2011-04-14 Richard Guenther <rguenther@suse.de>
10413 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
10415 (dse_initialize_block_local_data, dse_leave_block,
10416 record_voperand_set, get_stmt_uid): Likewise.
10417 (dse_possible_dead_store_p): Allow any kind of killing stmt.
10418 (dse_optimize_stmt): Remove voperand set handling code.
10419 Simplify and improve to handle any kind of killing stmt.
10420 (dse_record_phi): Remove.
10421 (dse_enter_block): Simplify.
10422 (tree_ssa_dse): Likewise.
10423 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
10425 2011-04-14 Jan Hubicka <jh@suse.cz>
10427 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
10428 * cgraph.h (struct inline_summary): Move to ipa-inline.h
10429 (cgraph_local_info): Remove inline_summary.
10430 * ipa-cp.c: Include ipa-inline.h.
10431 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
10432 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
10434 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
10435 (input_overwrite_node): Do not set inline summary.
10436 (input_node): Do not stream inline summary.
10437 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
10438 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
10439 growth; we do not have inline parameters computed for that anyway.
10440 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
10441 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
10442 (inline_summary_t): New type and VECtor.
10443 (debug_inline_summary, dump_inline_summaries): Declare.
10444 (inline_summary): Use VOCtor.
10445 (estimate_edge_growth): Kill hack computing call stmt size directly.
10446 * lto-section-in.c (lto_section_name): Add inline section.
10447 * ipa-inline-analysis.c: Include lto-streamer.h
10448 (node_removal_hook_holder, node_duplication_hook_holder): New holders
10449 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
10450 (inline_summary_vec): Define.
10451 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
10452 dump_inline_summaries): New functions.
10453 (estimate_function_body_sizes): Properly compute size/time of outgoing
10455 (compute_inline_parameters): Alloc inline_summary; do not compute
10456 size/time of incomming calls.
10457 (estimate_edge_time): Avoid missing time summary hack.
10458 (inline_read_summary): Read inline summary info.
10459 (inline_write_summary): Write inline summary info.
10460 (inline_free_summary): Free all hooks and inline summary vector.
10461 * lto-streamer.h: Add LTO_section_inline_summary section.
10462 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
10463 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
10465 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10467 * tree-vectorizer.h (vect_strided_store_supported): Add a
10468 HOST_WIDE_INT argument.
10469 (vect_strided_load_supported): Likewise.
10470 (vect_permute_store_chain): Return void.
10471 (vect_transform_strided_load): Likewise.
10472 (vect_permute_load_chain): Delete.
10473 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
10474 count argument. Check that the count is a power of two.
10475 (vect_strided_load_supported): Likewise.
10476 (vect_permute_store_chain): Return void. Update after above changes.
10477 Assert that the access is supported.
10478 (vect_permute_load_chain): Likewise.
10479 (vect_transform_strided_load): Return void.
10480 * tree-vect-stmts.c (vectorizable_store): Update calls after
10481 above interface changes.
10482 (vectorizable_load): Likewise.
10483 (vect_analyze_stmt): Don't check for strided powers of two here.
10485 2011-04-14 Richard Guenther <rguenther@suse.de>
10487 PR tree-optimization/48590
10488 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10489 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10490 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
10491 BUILT_IN_STACK_SAVE.
10492 * tree-ssa-dce.c (propagate_necessity): Handle
10493 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10495 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10497 * c-parser.c (c_parser_objc_class_declaration): Updated call to
10498 objc_declare_class.
10500 2011-04-14 Richard Guenther <rguenther@suse.de>
10502 * tree.h (get_object_alignment_1): Declare.
10503 * builtins.c (get_object_alignment_1): Split out worker from ...
10504 (get_object_alignment): ... here.
10505 * fold-const.c (get_pointer_modulus_and_residue): Use
10506 get_object_alignment_1.
10508 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10510 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10512 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10513 parameter. Generalise code to handle arrays as well as vectors.
10514 (vect_setup_realignment): Update accordingly.
10515 * tree-vect-stmts.c (vectorizable_store): Likewise.
10516 (vectorizable_load): Likewise.
10518 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10520 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10521 within the per-copy loop.
10523 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10525 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10528 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10530 * doc/options.texi (Negative): Explicitly mention that the
10531 Negative chain must be circular.
10533 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10535 * function.h (block_chainon): Declare.
10536 * function.c (block_chainon): Define.
10538 2011-04-14 Anatoly Sokolov <aesok@post.ru>
10539 Eric Weddington <eric.weddington@atmel.com>
10540 Georg-Johann Lay <avr@gjlay.de>
10542 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
10544 (avr_init_builtins, avr_expand_builtin,
10545 avr_expand_delay_cycles, avr_expand_unop_builtin,
10546 avr_expand_binop_builtin ): New functions.
10547 (avr_builtin_id): New enum
10548 (struct avr_builtin_description): New struct
10549 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10550 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10552 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
10553 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
10554 UNSPECV_DELAY_CYCLES): new enumeration values
10555 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10556 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10557 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10558 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10559 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10560 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10561 "fmulsu"): New insns
10563 * config/avr/avr-c.c: fix line endings
10564 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10565 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10566 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10567 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10568 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
10570 * doc/extend.texi (AVR Built-in Functions): New node
10571 (Target Builtins): Add documentation of AVR
10572 built-in functions.
10574 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
10577 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
10578 alone. Error if non-const data has attribute progmem.
10580 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10582 * tree.h (struct tree_constructor): Include tree_typed instead of
10584 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
10585 TS_TYPED instead of TS_COMMON.
10587 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10589 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
10590 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
10591 (sse2_psadbw): Merge with *avx_psadbw.
10592 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
10593 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
10594 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
10595 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
10596 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
10597 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
10598 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
10599 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
10600 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
10601 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
10602 (ssse3_palignrti): Merge with *avx_palignrti.
10604 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10606 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
10607 * tree-ssanames.c (fini_ssanames): VEC_free it.
10608 (make_ssa_name_fn): Update for VECness of free_ssanames.
10609 (release_ssa_name, release_dead_ssa_names): Likewise.
10610 * tree.h (struct tree_ssa_name): Include tree_typed instead of
10612 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
10613 TS_TYPED instead of TS_COMMON.
10615 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10617 * postreload-gcse.c (gcse_after_reload_main): Add calls to
10618 statistics_counter_event.
10619 * tree-ssa-copyrename.c (stats): Define.
10620 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
10621 statistics_counter_event.
10622 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
10623 (bswap_stats, widen_mul_stats): Define.
10624 (insert_reciprocals): Increment rdivs_inserted.
10625 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
10626 rfuncs_inserted. Add calls to statistics_counter_event.
10627 (execute_cse_sincos_1): Increment inserted.
10628 (execute_cse_sincos): Zeroize sincos_stats. Add call to
10629 statistics_counter_event.
10630 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
10631 of bswap_stats. Add calls to statistics_counter_event.
10632 (convert_mult_to_widen): Increment widen_mults_inserted.
10633 (convert_plusminus_to_widen): Increment maccs_inserted.
10634 (convert_mult_to_fma): Increment fmas_inserted.
10635 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
10636 calls to statistics_counter_event.
10638 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
10640 PR rtl-optimization/48455
10641 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10642 `temp_costs->mem_cost'.
10644 2011-04-13 Jan Hubicka <jh@suse.cz>
10646 * ipa-inline.h: New file.
10647 * ipa-inline-analysis.c: New file. Broken out of ...
10648 * ipa-inline.c: ... this file; update toplevel comment;
10649 include ipa-inline.h
10650 (inline_summary): Move to ipa-inline.h
10651 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10652 ipa-inline-analysis.c.
10653 (cgraph_estimate_time_after_inlining): Rename to
10654 estiamte_time_after_inlining; move to ipa-inline-analysis.c
10655 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10656 to estimate_edge_growth.
10657 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10658 rename to estimate_size_after_inlining.
10659 (cgraph_mark_inline_edge): Update for new naming convention.
10660 (cgraph_check_inline_limits): Likewise.
10661 (cgraph_edge_badness): Likewise.
10662 (cgraph_decide_recursive_inlining): Likewise.
10663 (cgraph_decide_inlining_of_small_functions): Likewise.
10664 (cgraph_decide_inlining_incrementally): Likewise.
10665 (cgraph_estimate_growth): Rename to estimate_growth; move to
10666 ipa-inline-analysis.c.
10667 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10668 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10669 (compute_inline_parameters): Likewise.
10670 (compute_inline_parameters_for_current): Likewise.
10671 (pass_inline_parameters): Likewise.
10672 (inline_indirect_intraprocedural_analysis): Likewise.
10673 (analyze_function): Rename to inline_analyze_function; likewise.
10674 (add_new_function): Move to ipa-inline-analysis.c.
10675 (inline_generate_summary): Likewise.
10676 (inline_read_summary): Likewise.
10677 (inline_write_summary): Likewise.
10678 * Makefile.in (ipa-inline-analysis.c): New file.
10680 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10682 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10683 * configure: Regenerate.
10685 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10687 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10688 instead of tree_common.
10689 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10691 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10692 TS_TYPED rather than TS_COMMON.
10693 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10695 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
10698 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10699 r20 around calls of __tablejump_elpm__
10701 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10703 PR middle-end/48591
10704 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10706 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10708 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10710 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10711 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10712 (cfi_vec): New typedef.
10713 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10714 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10715 (cie_cfi_vec): New static variable.
10716 (cie_cfi_head): Delete.
10717 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10718 declaration changed. Use vector rather than list operations.
10719 (new_cfi): Don't initialize the dw_cfi_next field.
10720 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10721 rather than list operations.
10722 (lookup_cfa): Use vector rather than list operations.
10723 (output_cfis): New argument upto. Accept a cfi_vec rather than
10724 a dw_cfi_ref list head as argument. All callers changed.
10725 Iterate over the vector using upto as a maximum index.
10726 (output_all_cfis): New static function.
10727 (output_fde): Use vector rather than list operations. Use the
10728 new upto argument for output_cfis rather than manipulating a
10730 (dwarf2out_begin_prologue): Change initializations to match
10731 new struct members.
10732 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10733 from the vector length rather than searching for the end of a list.
10734 Use output_all_cfis.
10735 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10737 2011-04-13 Nick Clifton <nickc@redhat.com>
10739 * config/rx/rx.md (movmemsi): Do not use this pattern when
10740 volatile pointers are involved.
10742 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10744 * config/i386/sse.md (pinsrbits): Remove.
10745 (sse2_packsswb): Merge with *avx_packsswb.
10746 (sse2_packssdw): Merge with *avx_packssdw.
10747 (sse2_packuswb): Merge with *avx_packuswb.
10748 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10749 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10750 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10751 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10752 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10753 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10754 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10755 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10756 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10757 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10758 (sse2_loadld): Merge with *avx_loadld.
10759 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10760 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10761 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10762 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10763 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10765 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10767 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10768 calling TREE_CHAIN.
10769 * print-tree.c (print_node): Likewise.
10770 * tree-inline.c (copy_tree_r): Likewise.
10771 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10772 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10773 instead of TS_COMMON.
10774 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10775 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10776 (copy_node_stat): Zero TREE_CHAIN only if necessary.
10777 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10778 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10780 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10782 (TREE_CHAIN): Check for a TS_COMMON structure.
10783 (TREE_TYPE): Check for a TS_TYPED structure.
10785 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
10787 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10788 cgraph_get_create_node instead of cgraph_node.
10790 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10792 * c-parser.c (c_parser_initelt): Updated call to
10793 objc_build_message_expr.
10794 (c_parser_postfix_expression): Likewise.
10796 2011-04-12 Kai Tietz <ktietz@redhat.com>
10798 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10799 MASK_MS_BITFIELD_LAYOUT bit.
10801 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10803 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10804 assert it is always true.
10805 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10808 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10810 * c-parser.c (c_lex_one_token): Rewritten conditional used when
10811 compiling Objective-C to be more efficient.
10813 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
10815 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10818 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10820 * recog.h, genoutput.c, optabs.c: Revert last patch.
10822 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10825 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10827 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10829 * recog.h (insn_operand_data): Add an "allows_mem" field.
10830 * genoutput.c (output_operand_data): Initialize it.
10831 * optabs.c (maybe_legitimize_operand_same_code): New function.
10832 (maybe_legitimize_operand): Use it when matching the original
10835 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10837 * genpreds.c (process_define_predicate): Move most processing
10838 to gensupport.c. Continue to validate the expression.
10839 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10840 (process_define_predicate): Move processing to gensupport.c.
10841 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10842 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10843 (compute_predicate_codes): Moved from genrecog.c. Add lineno
10845 (valid_predicate_name_p): New function, split out from old
10846 genpreds.c:process_define_predicate.
10847 (process_define_predicate): New function, combining code from
10848 old genpreds.c and genrecog.c functions.
10849 (process_rtx): Call it for DEFINE_PREDICATE and
10850 DEFINE_SPECIAL_PREDICATE.
10852 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10854 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10855 size of a '%A' memory reference.
10856 (T_DREG, T_QREG): New neon_builtin_type_bits.
10857 (arm_init_neon_builtins): Assert that the load and store operands
10858 are neon_struct_operands.
10859 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10860 (NEON_ARG_MEMORY): New builtin_arg.
10861 (neon_dereference_pointer): New function.
10862 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10863 Handle NEON_ARG_MEMORY.
10864 (arm_expand_neon_builtin): Update after above interface changes.
10865 Use NEON_ARG_MEMORY for loads and stores.
10866 * config/arm/predicates.md (neon_struct_operand): New predicate.
10867 * config/arm/iterators.md (V_two_elem): Tweak formatting.
10868 (V_three_elem): Use BLKmode for accesses that have no associated mode.
10869 (V_four_elem): Tweak formatting.
10870 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10871 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10872 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10873 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10874 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10875 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10876 (neon_vst4<mode>): Replace pointer operand with a memory operand.
10877 Use %A in the output template.
10878 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10879 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10880 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10881 the width of the memory access. Remove post-increment.
10882 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10884 2011-04-12 Nick Clifton <nickc@redhat.com>
10886 * config/v850/v850.c (expand_prologue): Do not use the CALLT
10887 instruction for interrupt handlers if the target is the basic V850
10889 (expand_epilogue): Likewise.
10891 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10893 PR rtl-optimization/48549
10894 * combine.c (propagate_for_debug): Also stop after BB_END of
10895 this_basic_block. Process LAST and just stop processing after it.
10896 (combine_instructions): If last_combined_insn has been deleted,
10897 set last_combined_insn to its PREV_INSN.
10899 2011-04-12 Richard Guenther <rguenther@suse.de>
10901 PR tree-optimization/46076
10902 * gimple.h (struct gimple_statement_call): Add fntype field.
10903 (gimple_call_fntype): Adjust.
10904 (gimple_call_set_fntype): New function.
10905 * gimple.c (gimple_build_call_1): Set the call function type.
10906 * gimplify.c (gimplify_call_expr): Preserve the function
10907 type the frontend used for the call.
10908 (gimplify_modify_expr): Likewise.
10909 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10911 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10913 * tree-ssa.c (useless_type_conversion_p): Function pointer
10914 conversions are useless.
10916 2011-04-12 Martin Jambor <mjambor@suse.cz>
10918 * cgraph.h (cgraph_node): Remove function declaration.
10919 (cgraph_create_node): Declare.
10920 (cgraph_get_create_node): Likewise.
10921 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10922 Updated all callers.
10923 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10924 the decl does not already exist. Call cgraph_get_create_node instead
10926 (cgraph_get_create_node): New function.
10927 (cgraph_same_body_alias): Update comment.
10928 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10929 assert it does not return NULL.
10930 (cgraph_update_edges_for_call_stmt): Likewise.
10931 (cgraph_clone_edge): Likewise.
10932 (cgraph_create_virtual_clone): Likewise.
10933 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10934 instead of cgraph_node.
10935 (cgraph_add_new_function): Call cgraph_create_node or
10936 cgraph_get_create_node instead of cgraph_node.
10937 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10938 instead of cgraph_node.
10939 (record_eh_tables): Likewise.
10940 (mark_address): Likewise.
10941 (mark_load): Likewise.
10942 (build_cgraph_edges): Call cgraph_get_create_node instead
10944 (rebuild_cgraph_edges): Likewise.
10945 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10946 instead of cgraph_node.
10947 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10949 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10950 cgraph_create_node instead of cgraph_node.
10951 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10953 * lto-cgraph.c (input_node): Likewise.
10954 * lto-streamer-in.c (input_function): Likewise.
10955 * varasm.c (mark_decl_referenced): Likewise.
10956 (assemble_alias): Likewise.
10958 2011-04-12 Martin Jambor <mjambor@suse.cz>
10960 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10961 instead of cgraph_node and assert it does not return NULL.
10962 * lto-streamer-in.c (lto_read_body): Likewise.
10963 * omp-low.c (new_omp_context): Likewise.
10964 (create_task_copyfn): Likewise.
10965 * tree-emutls.c (lower_emutls_function_body): Likewise.
10966 * matrix-reorg.c (transform_allocation_sites): Likewise.
10968 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10971 * c-typeck.c (build_asm_expr): Error out on attempts to use
10972 void type outputs or inputs for constraints that allow reg or
10973 don't allow memory.
10975 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10976 Richard Earnshaw <rearnsha@arm.com>
10979 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10980 to use sign-magnitude offsets. Reject unsupported unaligned
10981 cases. Add detailed description in comments.
10982 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10983 condition from TARGET_32BIT to TARGET_ARM.
10985 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10987 * tree.h (struct typed_tree): New.
10988 (struct tree_common): Include it instead of tree_base.
10989 (TREE_TYPE): Update for new location of type field.
10990 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10991 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10992 (union tree_node): Add typed field.
10993 * treestruct.def (TS_TYPED): New.
10994 * lto-streamer.c (check_handled_ts_structures): Handle it.
10995 * tree.c (MARK_TS_TYPED): New macro.
10996 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10998 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
11000 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
11001 (force_nonfallthru): Do not alter the loop nest if no basic block
11004 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11006 * config/i386/sse.md (VI): New mode iterator.
11007 (SSEMODEI): Remove.
11008 (AVX256MODEI): Ditto.
11009 (AVXMODEF4P): Ditto.
11010 (avxvecpsmode): Ditto.
11011 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
11012 (sse2_andnot<mode>3): New expander.
11013 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
11014 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
11015 (<any_logic:code><mode>3): Use VI mode iterator.
11016 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
11017 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
11018 (*andnottf3): Handle AVX three-operand constraints.
11019 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
11021 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11022 Robert Millan <rmh@gnu.org>
11024 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
11025 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
11026 GNU_USER_DYNAMIC_LINKER64): Define.
11027 (REG_NAME): Don't undefine.
11028 (MD_UNWIND_SUPPORT): Undefine.
11029 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
11030 (REG_NAME): Don't undefine.
11031 (MD_UNWIND_SUPPORT): Undefine.
11032 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
11034 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11036 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
11037 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
11039 2011-04-11 Xinliang David Li <davidxl@google.com>
11041 * value-profile.c (check_ic_target): New function.
11042 (gimple_ic_transform): Sanity check indirect call target.
11043 * gimple-low.c (gimple_check_call_args): Interface change.
11044 (gimple_check_call_matching_types): New function.
11045 * tree-inline.c (tree_can_inline_p): Call new function.
11047 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
11049 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
11050 tree-pretty-print.h & realmpfr.h.
11052 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
11054 PR middle-end/48464
11055 * ira.c (setup_pressure_classes): Fix typo in loop condition.
11056 (setup_allocno_and_important_classes): Ditto.
11058 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11060 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
11061 GNU_USER_DYNAMIC_LINKER.
11062 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
11063 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11064 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
11065 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11066 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11067 GNU_USER_TARGET_OS_CPP_BUILTINS.
11068 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
11069 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11070 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11071 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11072 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
11073 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11074 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11075 GNU_USER_TARGET_OS_CPP_BUILTINS.
11076 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11077 GNU_USER_DYNAMIC_LINKER.
11078 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11079 GNU_USER_TARGET_OS_CPP_BUILTINS.
11080 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
11081 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11082 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
11083 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11084 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
11085 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
11086 GNU_USER_DYNAMIC_LINKER64): Remove.
11087 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
11088 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11089 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11090 GNU_USER_DYNAMIC_LINKER.
11091 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11092 GNU_USER_TARGET_OS_CPP_BUILTINS.
11093 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11094 GNU_USER_TARGET_OS_CPP_BUILTINS.
11095 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
11096 to GNU_USER_TARGET_OS_CPP_BUILTINS.
11097 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11098 GNU_USER_TARGET_OS_CPP_BUILTINS.
11099 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
11100 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
11101 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11102 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
11103 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11104 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11105 GNU_USER_DYNAMIC_LINKER.
11106 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11107 GNU_USER_TARGET_OS_CPP_BUILTINS.
11108 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
11109 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11110 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11111 GNU_USER_DYNAMIC_LINKER.
11112 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11113 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11114 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
11115 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11116 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11117 GNU_USER_DYNAMIC_LINKER.
11118 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
11119 GNU_USER_DYNAMIC_LINKERN32.
11120 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
11121 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
11122 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
11123 GNU_USER_DYNAMIC_LINKER32.
11124 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
11125 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11126 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11127 GNU_USER_DYNAMIC_LINKER.
11128 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11129 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11130 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
11131 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11132 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11133 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
11134 GNU_USER_DYNAMIC_LINKER32.
11135 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11136 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
11137 GNU_USER_DYNAMIC_LINKER.
11138 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
11139 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11140 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11141 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
11142 GNU_USER_DYNAMIC_LINKER64.
11143 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
11144 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11145 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11146 GNU_USER_DYNAMIC_LINKER.
11147 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
11148 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11149 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11150 GNU_USER_DYNAMIC_LINKER.
11151 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
11152 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11153 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11154 GNU_USER_DYNAMIC_LINKER32.
11155 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11156 GNU_USER_DYNAMIC_LINKER64.
11157 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11158 GNU_USER_DYNAMIC_LINKER64.
11159 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
11160 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11161 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
11162 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11163 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11165 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11167 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
11168 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
11169 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
11170 GNU_USER_DYNAMIC_LINKER.
11171 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11172 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
11173 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
11174 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
11175 GNU_USER_DYNAMIC_LINKER64.
11176 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11177 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
11178 GNU_USER_LINK_EMULATION.
11179 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
11180 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
11181 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
11182 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
11183 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
11184 CPP_SPEC, CC1_SPEC): Remove.
11185 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
11186 (GNU_USER_DYNAMIC_LINKER): Define.
11187 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
11188 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
11189 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
11190 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
11191 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
11192 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
11193 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11194 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
11195 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
11196 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
11197 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
11198 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
11199 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
11200 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
11201 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
11202 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11203 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11204 GNU_USER_DYNAMIC_LINKER.
11205 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11206 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11207 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11208 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11209 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11210 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11211 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
11212 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
11213 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
11214 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
11216 2011-04-11 Kai Tietz <ktietz@redhat.com>
11220 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
11221 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
11223 (ix86_is_msabi_thiscall): Removed.
11224 (ix86_is_type_thiscall): Likewise.
11225 (ix86_get_callcvt): New function.
11226 (ix86_comp_type_attributes): Simplify check.
11227 (ix86_function_regparm): Use ix86_get_callcvt for calling
11228 convention attribute checks.
11229 (ix86_return_pops_args): Likewise.
11230 (ix86_static_chain): Likewise.
11231 (x86_this_parameter): Likewise.
11232 (x86_output_mi_thunk): Likewise.
11233 (ix86_function_type_abi): Optimize check for types without attributes.
11234 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
11235 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
11236 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
11238 (IX86_BASE_CALLCVT): Helper macro.
11239 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11240 Use ix86_get_callcvt for calling convention attribute checks and avoid
11241 symbol-decoration for stdcall in TARGET_RTD case.
11242 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
11244 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
11247 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11249 * config/i386/sse.md (VI_128): New mode iterator.
11250 (VI12_128): Rename from SSEMODE12.
11251 (VI14_128): Rename from SSEMODE14.
11252 (VI124_128): New mode iterator.
11253 (VI24_128): Rename from SSEMODE248.
11254 (VI248_128): Rename from SSEMODE248.
11255 (SSEMODE124C8): Remove.
11256 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11257 (*sse2_<plusminus_insn><mode>3): Merge with
11258 *avx_<plusminus_insn><mode>3.
11259 (*mulv8hi3): Merge with *avx_mulv8hi3.
11260 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
11261 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
11262 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
11263 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
11264 (ashr<mode>3): Merge with *avx_ashr<mode>3.
11265 (lshr<mode>3): Merge with *avx_lshr<mode>3.
11266 (ashl<mode>3): Merge with *avx_ashl<mode>3.
11267 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
11268 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
11269 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11270 (*<smaxmin:code>v8hi3): Ditto.
11271 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
11272 (*<smaxmin:code>v16qi3): Ditto.
11273 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
11274 (*sse2_eq<mode>3): Ditto.
11275 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
11276 (*sse2_gt<mode>3): Ditto.
11277 (vcondv2di): Split out of vcond<mode>.
11278 (vconduv2di): Split out of vcondu<mode>.
11280 2011-04-11 Richard Guenther <rguenther@suse.de>
11282 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
11283 before calling tree_low_cst.
11285 2011-04-11 Richard Guenther <rguenther@suse.de>
11287 * stor-layout.c (layout_type): Compute all array index size operations
11288 in the original type.
11289 (initialize_sizetypes): Add comment.
11290 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
11292 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11294 * common.opt (Tbss=, Tdata=, Ttext=): New options.
11296 2011-04-11 Martin Jambor <mjambor@suse.cz>
11298 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
11299 of cgraph_node, handle NULL return value.
11300 (cgraph_global_info): Likewise.
11301 (cgraph_rtl_info): Likewise.
11302 * tree-inline.c (estimate_num_insns): Likewise.
11303 * gimplify.c (unshare_body): Likewise.
11304 (unvisit_body): Likewise.
11305 (gimplify_body): Likewise.
11306 * predict.c (optimize_function_for_size_p): Likewise.
11307 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11308 (call_may_clobber_ref_p_1): Likewise.
11309 * varasm.c (function_section_1): Likewise.
11310 (assemble_start_function): Likewise.
11312 2011-04-11 Martin Jambor <mjambor@suse.cz>
11314 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
11316 * final.c (rest_of_clean_state): Likewise.
11317 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
11318 * passes.c (pass_init_dump_file): Likewise.
11319 (execute_all_ipa_transforms): Likewise.
11320 (function_called_by_processed_nodes_p): Likewise.
11321 * predict.c (maybe_hot_frequency_p): Likewise.
11322 (probably_never_executed_bb_p): Likewise.
11323 (compute_function_frequency): Likewise.
11324 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
11325 (unnest_nesting_tree_1): Likewise.
11326 (lower_nested_functions): Likewise.
11327 * tree-optimize.c (execute_fixup_cfg): Likewise.
11328 (tree_rest_of_compilation): Likewise.
11329 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
11330 * tree-sra.c (ipa_early_sra): Likewise.
11331 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11332 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
11333 * ipa.c (record_cdtor_fn): Likewise.
11334 * ipa-inline.c (cgraph_early_inlining): Likewise.
11335 (compute_inline_parameters_for_current): Likewise.
11336 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11337 * ipa-pure-const.c (local_pure_const): Likewise.
11338 * ipa-split.c (split_function): Likewise.
11339 (execute_split_functions): Likewise.
11340 * cgraphbuild.c (build_cgraph_edges): Likewise.
11341 (rebuild_cgraph_edges): Likewise.
11342 (cgraph_rebuild_references): Likewise.
11343 (remove_cgraph_callee_edges): Likewise.
11344 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
11345 (verify_cgraph_node): Likewise.
11346 (cgraph_analyze_functions): Likewise.
11347 (cgraph_preserve_function_body_p): Likewise.
11348 (save_inline_function_body): Likewise.
11349 (save_inline_function_body): Likewise.
11350 * tree-inline.c (copy_bb): Likewise.
11351 (optimize_inline_calls): Likewise.
11353 2011-04-11 Martin Jambor <mjambor@suse.cz>
11355 PR tree-optimization/48195
11356 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
11357 ipa_check_create_edge_args.
11358 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
11359 ipa_check_create_edge_args.
11360 * ipa-inline.c (inline_generate_summary): Do not call
11361 ipa_check_create_node_params and ipa_check_create_edge_args.
11362 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
11363 ipa_check_create_edge_args.
11365 2011-04-09 Anatoly Sokolov <aesok@post.ru>
11367 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
11369 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11370 * function.c (record_hard_reg_sets): Likewise.
11371 * ira.c (compute_regs_asm_clobbered): Likewise.
11372 * sched-deps.c (sched_analyze_1): Likewise.
11373 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
11375 2011-04-09 Xinliang David Li <davidxl@google.com>
11377 PR tree-optimization/PR48484
11378 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
11379 has_valid_pred lazily
11381 2011-04-09 Duncan Sands <baldrick@free.fr>
11383 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
11385 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11387 * combine.c (combine_validate_cost): Adjust comments. Set registered
11388 cost of I0 to zero at the end, if any.
11390 2011-04-08 Xinliang David Li <davidxl@google.com>
11392 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
11393 to insane profile data.
11395 2011-04-08 Xinliang David Li <davidxl@google.com>
11397 * ipa-cp.c (ipcp_update_profiling): Correct
11398 negative scale factor due to insane profile data.
11400 2011-04-08 Xinliang David Li <davidxl@google.com>
11402 * final.c (dump_basic_block_info): New function.
11403 (final): Dump basic block.
11404 (final_scan_insn): Remove old dump.
11406 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
11409 * config.gcc (i386-*-freebsd): Disable unwind table generation for
11412 2011-04-08 Michael Matz <matz@suse.de>
11414 PR middle-end/48389
11415 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
11417 (rebuild_jump_labels): Call rebuild_jump_labels_1.
11418 * rtl.h (rebuild_jump_labels_chain): Declare.
11419 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
11420 insns inserted on edges.
11422 2011-04-08 Joseph Myers <joseph@codesourcery.com>
11424 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
11425 * config/arm/arm-arches.def: New.
11426 * config/arm/arm-opts.h: New.
11427 * config/arm/genopt.sh: New.
11428 * config/arm/arm-tables.opt: New (generated).
11429 * config/arm/arm.c (arm_handle_option, arm_target_help,
11430 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
11431 (all_architectures): Get most table contents from arm-arches.def.
11432 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
11433 arm_selected_tune here.
11434 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
11435 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
11436 (march=, mcpu=, mtune=): Use Enum and Var.
11437 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
11438 (arm.o): Update dependencies.
11440 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
11442 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
11444 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
11445 (write_typed_alloc_defns): Likewise.
11446 (main): Calls write_typed_alloc_defns with output_header.
11448 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
11450 PR inline-asm/48435
11451 * ira-color.c (setup_profitable_hard_regs): Add comments.
11452 Don't take prohibited hard regs into account.
11453 (setup_conflict_profitable_regs): Rename to
11454 get_conflict_profitable_regs.
11455 (check_hard_reg_p): Check prohibited hard regs.
11457 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11459 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
11460 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
11461 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
11463 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11466 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
11467 move from floating point to shift amount register.
11468 (emit_move_sequence): Remove secondary reload support for floating
11469 point to shift amount amount register copies.
11470 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
11471 amount register copies.
11472 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
11473 register, return false if mode isn't a scalar integer mode.
11474 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
11476 2011-04-08 Richard Guenther <rguenther@suse.de>
11478 * gimple.c (gimple_call_flags): Remove kludge.
11480 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11482 * sel-sched.c (sel_region_init): Move call to
11483 sel_setup_region_sched_flags after setup_current_loop_nest.
11485 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
11487 PR rtl-optimization/48272
11488 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
11489 init_insn_reg_pressure_info. Adjust a caller.
11490 * sched-int.h (init_insn_reg_pressure_info): Declare.
11491 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11492 when sched-pressure is enabled.
11494 2011-04-08 Richard Guenther <rguenther@suse.de>
11496 * gimple.c (gimple_set_modified): Do not queue calls to
11497 MODIFIED_NORETURN_CALLS here ...
11498 * tree-ssa-operands.c (update_stmt_operands): ... but here.
11500 2011-04-08 Richard Guenther <rguenther@suse.de>
11503 * toplev.c (lang_dependent_init): Do not open asm_out_file
11504 in WPA mode, nor perform debug machinery initialization.
11505 (finalize): Do not unlink asm_out_file in WPA mode.
11507 2011-04-08 Richard Guenther <rguenther@suse.de>
11509 * gimple.h (gimple_call_fntype): New function.
11510 (gimple_call_return_type): Use it.
11511 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11512 * gimple-low.c (gimple_check_call_args): Likewise.
11513 * gimple.c (gimple_call_flags): Likewise.
11514 (gimple_call_arg_flags): Likewise.
11515 (gimple_call_return_flags): Likewise.
11516 * tree-cfg.c (verify_gimple_call): Likewise.
11517 (do_warn_unused_result): Likewise.
11518 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11519 * value-prof.c (gimple_ic_transform): Fix fndecl check.
11521 2011-04-08 Dmitry Melnik <dm@ispras.ru>
11523 PR rtl-optimization/48235
11524 * sel-sched.c (code_motion_process_successors): Recompute the last
11525 insn in basic block if control flow changed.
11526 (code_motion_path_driver): Ditto. Recompute the first insn as well.
11527 Update condition for ilist_remove.
11529 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11531 PR rtl-optimization/48302
11532 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11533 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
11534 it to record added preheader blocks.
11535 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
11536 on to sel_add_loop_preheaders.
11537 (sel_region_init): Move call to setup_current_loop_nest after
11540 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11543 * cfgloop.h (loop_has_exit_edges): New helper.
11544 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11546 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11547 that have no exit edges.
11549 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11551 PR rtl-optimization/48442
11552 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
11553 all callers. Adjust assert.
11555 2011-04-08 Jakub Jelinek <jakub@redhat.com>
11557 PR tree-optimization/48377
11558 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11559 is_packed to true even for types with smaller TYPE_ALIGN than
11562 2011-04-08 Richard Guenther <rguenther@suse.de>
11565 * doc/tm.texi: Re-generate.
11567 2011-04-08 Wei Guozhi <carrot@google.com>
11570 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11571 * config/arm/arm.c (arm_attr_length_push_multi): New function.
11572 * config/arm/arm.md (*push_multi): Change the length computation to
11575 2011-04-08 Anatoly Sokolov <aesok@post.ru>
11577 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
11578 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
11579 * doc/tm.texi: Regenerate.
11580 * system.h (ASM_OUTPUT_BSS): Poison.
11581 * varasm.c (asm_output_bss): Remove function.
11582 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
11584 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
11585 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
11586 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
11587 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11589 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11591 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11593 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11595 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11597 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
11600 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11602 * config/m68k/m68k.c (m68k_handle_option): Don't handle
11603 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
11604 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
11606 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11607 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
11608 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
11609 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
11610 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
11611 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
11612 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11613 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
11614 options. Don't map other m68k options manually. Don't handle
11615 old-style options as canonical.
11616 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11617 * doc/install.texi (m68k-*-*): Document binutils version requirement.
11619 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
11621 * basic-block.h (force_nonfallthru): Move to...
11622 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
11623 (force_nonfallthru): ...here.
11624 * cfghooks.c (force_nonfallthru): New function.
11625 * cfgrtl.c (force_nonfallthru): Rename into...
11626 (rtl_force_nonfallthru): ...this.
11627 (commit_one_edge_insertion): Do not set AUX field.
11628 (commit_edge_insertions): Do not discover new basic blocks.
11629 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11630 (cfg_layout_rtl_cfg_hooks): Likewise.
11631 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11632 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
11633 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11635 2011-04-07 Anatoly Sokolov <aesok@post.ru>
11637 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11640 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
11642 * config/i386/sse.md: Update copyright year.
11643 (avxcvtvecmode): Remove.
11644 (sse_movhlps): Merge with *avx_movhlps.
11645 (sse_movlhps): Merge with *avx_movlhps.
11646 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11647 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11648 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11649 (sse_loadhps): Merge with *avx_loadhps.
11650 (sse_storelps): Merge with *avx_storelps.
11651 (sse_loadlps): Merge with *avx_loadlps.
11652 (sse_movss): Merge with *avx_movss.
11653 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11654 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11655 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11656 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11657 (vec_set<mode>_0): Ditto.
11658 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11659 (sse4_1_insertps): Merge with *avx_insertps.
11660 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11661 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11662 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11663 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11664 (sse2_storehpd): Merge with *avx_storehpd.
11665 (sse2_loadhpd): Merge with *avx_loadhpd.
11666 (sse2_loadlpd): Merge with *avx_loadlpd.
11667 (sse2_movsd): Merge with *avx_movsd.
11668 (*vec_concatv2df): Merge with *vec_concatv2df.
11670 2011-04-07 Jakub Jelinek <jakub@redhat.com>
11673 * combine.c (combine_instructions): Add last_combined_insn,
11674 update it if insn is after it, pass it to all try_combine calls.
11675 (try_combine): Add last_combined_insn parameter, pass it instead of
11676 i3 to propagate_for_debug.
11678 2011-04-07 Nick Clifton <nickc@redhat.com>
11680 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11681 to handle MDR <-> data register transfers.
11682 (movhi_internal): Likewise.
11684 2011-04-07 Alan Modra <amodra@gmail.com>
11686 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11687 previous stack info.
11689 2011-04-07 Tom de Vries <tom@codesourcery.com>
11692 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
11693 flow_find_cross_jump. Swap variables to implement backward replacement.
11694 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11696 2011-04-07 Tom de Vries <tom@codesourcery.com>
11699 * cfgcleanup.c (walk_to_nondebug_insn): New function.
11700 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11702 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11703 src1 or src2. Redirect edges to the last basic block. Update
11704 frequency and count on multiple basic blocks in case of fallthru.
11706 2011-04-07 Tom de Vries <tom@codesourcery.com>
11709 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11711 (old_insns_match_p): Change return type. Replace return false/true
11712 with return dir_none/dir_both. Use can_replace_by.
11713 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11714 direction from dir_p. Register replacement direction in dir, last_dir
11715 and afterlast_dir. Handle new return type of old_insns_match_p using
11716 merge_dir. Return replacement direction in dir_p.
11717 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11718 return type of old_insns_match_p.
11719 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11720 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11721 flow_find_cross_jump.
11722 * basic-block.h (enum replace_direction): New type.
11723 (flow_find_cross_jump): Add parameter to declaration.
11725 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11727 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11728 (AVXMODEDCVTPS2DQ): Ditto.
11729 (VEC_FLOAT_MODE): Ditto.
11730 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11731 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11732 (<any_logic:code><mode>3): Use VF mode iterator.
11733 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11734 Use VF mode iterator.
11735 (copysign<mode>3): Use VF mode iterator.
11736 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11737 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11738 (*<any_logic:code><MODEF:mode>3): Merge with
11739 *avx_<any_logic:code><MODEF:mode>3.
11740 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11741 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11742 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11743 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11744 (sse2_cvtdq2ps): Use %v modifier.
11745 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11746 (avx_cvtps2dq<avxmodesuffix>): Remove.
11747 (sse2_cvtps2dq): Use %v modifier.
11748 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11749 (avx_cvttps2dq<avxmodesuffix>): Remove.
11750 (sse2_cvttps2dq): Use %v modifier.
11751 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11752 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11753 (sse2_cvtsd2siq): Fix insn template.
11754 (sse2_cvtsd2siq_2): Ditto.
11755 (sse2_cvttsd2siq): Ditto.
11756 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11757 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11759 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11761 * gcov-io.c: Use GCC Runtime Library Exception.
11763 2011-04-06 Jakub Jelinek <jakub@redhat.com>
11766 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11767 as base_reg whatever register reg has been eliminated to, instead
11768 of hardcoding STACK_POINTER_REGNUM.
11770 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11772 * doc/tm.texi.in: Document C target hooks as separate from general
11774 * doc/tm.texi: Regenerate.
11775 * genhooks.c (struct hook_desc): Add docname field.
11776 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
11778 (hook_array): Include c-target.def.
11779 (emit_documentation): Use docname field in output.
11780 (emit_init_macros): Take docname argument. Only emit definitions
11781 for hooks matching docname.
11782 (main): Expect additional arguments in all cases. Pass argument
11783 to emit_init_macros.
11784 * target.def: Move initial macro definitions and comments to
11785 target-hooks-macros.h.
11786 (gcc_targetcm): Move to c-family/c-target.def.
11787 * target.h (targetcm): Move declaration to c-family/c-target.h.
11788 * targhooks.c (default_handle_c_option): Move to
11790 * targhooks.h (default_handle_c_option): Move declaration to
11791 c-family/c-common.h.
11792 * target-hooks-macros.h: New file.
11793 * config.gcc (target_has_targetcm): Define and use to add to
11794 c_target_objs and cxx_target_objs.
11795 * config/default-c.c: New file.
11796 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11797 of target.h and target-def.h.
11798 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11799 (darwin_objc_construct_string, darwin_cfstring_ref_p,
11800 darwin_check_cfstring_format_arg): Make static.
11801 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11802 TARGET_STRING_OBJECT_REF_TYPE_P,
11803 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11804 * config/darwin-protos.h (darwin_objc_construct_string,
11805 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11807 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11808 TARGET_STRING_OBJECT_REF_TYPE_P,
11809 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11810 * config/t-darwin (darwin-c.o): Update dependencies.
11811 * system.h (TARGET_HAS_TARGETCM): Poison.
11812 * Makefile.in (TARGET_H): Update.
11813 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11814 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11815 (default-c.o): New target.
11816 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11817 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11818 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11820 (build/genhooks.o): Update dependencies.
11822 2011-04-06 Richard Guenther <rguenther@suse.de>
11824 * ipa-inline.c (enum inlining_mode): Remove.
11825 (cgraph_flatten): Use some other token.
11826 (cgraph_edge_early_inlinable_p): New function, split out from ...
11827 (cgraph_perform_always_inlining): New function, split out from ...
11828 (cgraph_decide_inlining_incrementally): ... here.
11829 (cgraph_mark_inline_edge): Adjust.
11830 (cgraph_early_inlining): Re-structure.
11831 (pass_early_inline): Require SSA form.
11833 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
11834 Julian Brown <julian@codesourcery.com>
11835 Mark Shinwell <shinwell@codesourcery.com>
11837 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11838 LO_REGS only for Thumb-1.
11839 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11840 be used in short instructions when optimising for size on Thumb-2.
11842 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11844 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11845 associated with user returns to be preserved.
11847 2011-04-06 Tristan Gingold <gingold@adacore.com>
11849 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11850 symbol_queue_size, DBXOUT_DECR_NESTING,
11851 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11852 if XCOFF_DEBUGGING_INFO.
11854 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11856 * config/i386/i386.md (attribute isa): New.
11857 (attribute enabled): New.
11858 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11859 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11860 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11861 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11862 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11863 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11864 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11865 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11867 * config/i386/sse.md (VF): New mode iterator.
11871 (SSEMODEF4): Remove.
11872 (attribute sse): Handle V8SF and V4DF modes.
11873 (<absneg:code><mode>2): Use VF mode iterator.
11874 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
11876 (<plusminus_insn><mode>3): Use VF mode iterator.
11877 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11878 Use VF mode iterator.
11879 (<sse>_vm<plusminus_insn><mode>3): Merge with
11880 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
11881 (mul<mode>3): Use VF mode iterator.
11882 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
11883 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
11885 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11886 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11887 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
11888 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
11890 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11891 Use VF1 mode iterator.
11892 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11893 (sqrt<VF2:mode>2): New expander.
11894 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11895 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11896 and sqrtv2df2. Use VF mode iterator.
11897 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
11899 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11900 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11901 Use VF1 mode iterator.
11902 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11903 (<smaxmin:code><mode>3): Use VF mode iterator.
11904 (*<smaxmin:code><mode>3_finite): Merge with
11905 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
11906 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11907 (<sse>_vm<smaxmin:code><mode>2): Merge with
11908 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
11909 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
11911 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
11913 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11914 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11915 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11916 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11917 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
11919 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11920 Use VF_128 mode iterator.
11921 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
11923 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
11924 VF_128 mode iterator.
11925 (vcond<mode>): Use VF mode iterator.
11926 * config/i386/predicates.md (sse_comparison_operator): Merge with
11927 avx_comparison_float_operator. Do not declare as special_predicate.
11928 * config/i386/i386.c (struct builtin_description): Update for renamed
11930 (ix86_expand_args_builtin): Ditto.
11931 (ix86_expand_sse_compare_mask): Ditto.
11933 2011-04-06 Richard Guenther <rguenther@suse.de>
11935 * tree-inline.c (estimate_num_insns): For calls simply account
11936 for all passed arguments and a used return value.
11938 2011-04-06 Richard Guenther <rguenther@suse.de>
11940 PR tree-optimization/47663
11941 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11942 call_stmt_time fields.
11943 (cgraph_edge_inlinable_p): Declare.
11944 (cgraph_edge_recursive_p): New inline function.
11945 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11946 (cgraph_clone_edge): Copy it.
11947 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11948 Account for call stmt time.
11949 (cgraph_estimate_time_after_inlining): Take edge argument.
11950 (cgraph_estimate_edge_growth): Account call stmt size.
11951 (cgraph_estimate_size_after_inlining): Take edge argument.
11952 (cgraph_mark_inline_edge): Adjust.
11953 (cgraph_check_inline_limits): Likewise.
11954 (cgraph_recursive_inlining_p): Remove.
11955 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11956 (cgraph_decide_recursive_inlining): Take edge argument and
11958 (cgraph_decide_inlining_of_small_functions): Do not avoid
11959 diags for recursive inlining here.
11960 (cgraph_flatten): Adjust.
11961 (cgraph_decide_inlining_incrementally): Likewise.
11962 (estimate_function_body_sizes): Remove call cost handling.
11963 (compute_inline_parameters): Initialize caller edge call costs.
11964 (cgraph_estimate_edge_growth): New function.
11965 (cgraph_estimate_growth): Use it.
11966 (cgraph_edge_badness): Likewise.
11967 (cgraph_check_inline_limits): Take an edge argument.
11968 (cgraph_decide_inlining_of_small_functions): Adjust.
11969 (cgraph_decide_inlining): Likewise.
11970 * tree-inline.c (estimate_num_insns): Only account for call
11971 return value if it is used.
11972 (expand_call_inline): Avoid diagnostics on recursive inline
11974 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11975 (input_edge): Input edge call costs.
11977 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11979 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11981 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11983 * doc/invoke.texi (Spec Files): Fix typo.
11985 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11987 * profile.c (branch_prob): Move declaration of local variable. Remove
11988 obsolete ??? comment. Expand the location explicitly instead of using
11989 the LOCATION_FILE and LOCATION_LINE macros.
11991 2011-04-06 Wei Guozhi <carrot@google.com>
11994 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11995 (arm_cond_branch): Likewise.
11996 (arm_cond_branch_reversed): Likewise.
11997 (arm_jump): Likewise.
11998 (push_multi): Likewise.
11999 * config/arm/constraints.md (Py): New constraint.
12001 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12004 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
12006 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
12007 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
12008 #ifdef DBX_DEBUGGING_INFO.
12010 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
12013 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
12014 if old and new states differ.
12016 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12018 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
12019 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
12020 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
12021 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
12022 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
12023 mcfv4e): Use Alias.
12024 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
12025 ColdFire options to -mcpu= options.
12027 2011-04-05 Jeff Law <law@redhat.com>
12029 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
12030 check if BB is a successor of LOOP->header and return
12031 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
12033 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12035 * cprop.c (struct reg_use): Remove.
12036 (reg_use_table): Make an array of RTX.
12037 (find_used_regs, constprop_register, local_cprop_pass,
12038 bypass_block): Simplify users of reg_use_table.
12039 (cprop_insn): Likewise. Iterate if copy propagation succeeded
12040 on one of the uses found by find_used_regs.
12042 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12045 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
12048 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12050 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
12052 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
12054 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
12056 PR middle-end/48441
12057 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
12059 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12061 * combine.c: Include obstack.h.
12062 (struct insn_link): Define.
12063 (uid_log_links): Adjust type.
12064 (FOR_EACH_LOG_LINK): New macro.
12065 (insn_link_obstack): Declare.
12066 (alloc_insn_link): Define.
12067 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
12068 type of link variables.
12069 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
12070 (try_combine, record_promoted_values, distribute_notes): Likewise.
12071 (distribute_links): Likewise. Tweak prototype.
12072 (clear_log_links): Delete.
12073 (adjust_for_new_dest): Call alloc_insn_link.
12074 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
12076 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12078 * gcse.c (modify_mem_list): Convert to an array of VECs.
12079 (canon_modify_mem_list, compute_transp): Tweak formatting.
12080 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
12081 (load_killed_in_block_p): Likewise.
12082 (record_last_mem_set_info): Likewise.
12083 (clear_modify_mem_tables): Likewise.
12085 2011-04-05 Tom de Vries <tom@codesourcery.com>
12087 PR middle-end/48461
12088 * function.c (emit_use_return_register_into_block): Only define if
12091 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
12093 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
12095 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12097 * config/rx/rx-opts.h: New.
12098 * config/rx/rx.c (rx_cpu_type): Remove.
12099 (rx_handle_option): Don't assert that global structures are in
12100 use. Access variables via opts pointer. Defer most handling of
12101 OPT_mint_register_. Use error_at.
12102 (rx_option_override): Handle deferred OPT_mint_register_ here.
12103 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
12104 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
12105 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
12106 (rx_cpu_types): New Enum and EnumValue entries.
12107 (mint-register=): Use Defer and use Var accordingly.
12109 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12111 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
12112 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
12113 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
12115 (debug_free_queue, debug_nesting, symbol_queue_index):
12117 * dbxout.c: ...to here. Make static.
12119 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12121 * gcse.c (modify_pair): Define. Define a VEC of it.
12122 (canon_modify_mem_list): Convert to an array of VECs.
12123 (free_insn_expr_list_list): Delete.
12124 (clear_modify_mem_tables): Call VEC_free instead.
12125 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
12126 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
12127 (canon_list_insert, compute_transp): Likewise.
12129 2011-04-05 Tom de Vries <tom@codesourcery.com>
12132 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
12135 2011-04-05 Tom de Vries <tom@codesourcery.com>
12138 * function.c (emit_use_return_register_into_block): New function.
12139 (thread_prologue_and_epilogue_insns): Use
12140 emit_use_return_register_into_block.
12142 2011-04-05 Tom de Vries <tom@codesourcery.com>
12145 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
12148 2011-04-05 Tom de Vries <tom@codesourcery.com>
12150 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
12152 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
12154 * config/arm/arm.md (define_constants for unspec): Replace with
12156 (define_constants for unspecv): Replace with define_c_enum.
12157 * config/arm/neon.md (define_constants for unspec): Replace with
12160 2011-04-04 Richard Henderson <rth@redhat.com>
12163 * dwarf2out.c (output_line_info): Always emit line info from
12164 at least one section.
12165 (dwarf2out_init): Create text_section_line_info here ...
12166 (set_cur_line_info_table): ... not here.
12168 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
12171 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
12174 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
12176 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
12178 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
12179 (expr_equiv_p): Remove.
12180 (insert_set_in_table): Look at <dest, src> pair instead of expr.
12181 (hash_scan_set): Update call to insert_set_in_table.
12182 (dump_hash_table): Dump <dest, src> pair.
12183 (lookup_set): Simplify. Lookup <dest, src> pair.
12184 (compute_transp): Remove, fold heavily simplified code into...
12185 (compute_local_properties): ...here. Expect COMP and TRANSP
12187 (find_avail_set): Take set directly from struct expr.
12188 (find_bypass-set): Likewise.
12189 (bypass_block): Likewise.
12190 (cprop_insn): Likewise. Remove redundant INSN_P test.
12192 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
12193 checks on form of COND from find_implicit_sets to here.
12194 (find_implicit_sets): Cleanup control flow. Split critical edges
12195 if it exposes implicit sets. Allocate/resize implicit_sets as
12197 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
12198 changed something. Run df_analyze after find_implicit_sets if any
12199 edges were split. Do not allocate implicit_sets here.
12201 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
12202 (gcse_obstack): Renamed to cprop_obstack.
12203 (GNEW, GNEWVEC, GNEWVAR): Remove.
12205 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
12206 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
12207 (gcse_alloc): Likewise, and rename to cprop_alloc.
12208 (alloc_gcse_men, free_gcse_mem): Remove.
12209 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
12210 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
12211 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
12213 * cprop.c (oprs_not_set_p): Remove.
12214 (mark_set, mark_clobber): Remove.
12215 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
12216 (reg_not_set_p): New function.
12217 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
12218 (cprop_insn): Likewise.
12219 (cprop_jump): Use FOR_EACH_EDGE.
12221 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
12224 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
12225 (rank_for_schedule): Use scheduled_insns vector instead of
12226 last_scheduled_insn.
12227 (ok_for_early_queue_removal): Likewise.
12228 (queue_to_ready): Search forward in nonscheduled_insns_begin if
12230 (choose_ready): Likewise.
12231 (commit_schedule): Use VEC_iterate.
12232 (schedule_block): Initialize nonscheduled_insns_begin. If we have
12233 a dbg_cnt, use it and ensure the first insn is in the ready list.
12234 (haifa_sched_init): Allocate scheduled_insns.
12235 (sched_extend_ready_list): Don't allocate it; reserve space.
12236 (haifa_sched_finish): Free it.
12238 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12240 * optc-gen.awk: Always remove type from Variable entry before
12241 recording in var_seen.
12243 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
12245 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
12246 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
12247 call to tidy_fallthru_edges.
12249 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12251 * doc/options.texi (ToLower): Document.
12252 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
12253 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
12254 * opts.h (cl_option): Add cl_tolower field.
12255 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
12256 arguments with lowercase strings.
12257 * config/rx/rx.opt (mcpu=): Add ToLower.
12258 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
12261 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12263 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
12265 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12267 * config/vax/vax.c: Include reload.h.
12269 2011-04-04 Anatoly Sokolov <aesok@post.ru>
12271 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
12272 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12273 (sparc_preferred_reload_class): New function.
12275 2011-04-04 Jakub Jelinek <jakub@redhat.com>
12278 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12279 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
12281 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
12283 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
12284 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12286 2011-04-03 Anatoly Sokolov <aesok@post.ru>
12288 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
12289 (ASM_OUTPUT_ALIGNED_BSS): Define.
12291 2011-04-03 Michael Matz <matz@suse.de>
12293 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
12294 and next_slot members.
12295 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
12296 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
12297 (lto_streamer_cache_append): Declare.
12298 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
12299 unsigned index, remove offset parameter, ensure that we append
12300 or update existing entries.
12301 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
12302 parameter, update next_slot for append.
12303 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
12305 (lto_streamer_cache_insert_at): Likewise.
12306 (lto_streamer_cache_append): New function.
12307 (lto_streamer_cache_lookup): Use unsigned index.
12308 (lto_streamer_cache_get): Likewise.
12309 (lto_record_common_node): Don't test tree_node_can_be_shared.
12310 (preload_common_node): Adjust call to lto_streamer_cache_insert.
12311 (lto_streamer_cache_delete): Don't free offsets member.
12312 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
12313 (lto_output_string_with_length): Use lto_output_data_stream.
12314 (lto_output_tree_header): Remove ix parameter, don't write it.
12315 (lto_output_builtin_tree): Likewise.
12316 (lto_write_tree): Adjust callers to above, don't track and write
12317 offset, write unsigned index.
12318 (output_unreferenced_globals): Don't emit all global vars.
12319 (write_global_references): Use unsigned indices.
12320 (lto_output_decl_state_refs): Likewise.
12321 (write_symbol): Likewise.
12322 * lto-streamer-in.c (lto_input_chain): Move earlier.
12323 (input_function): Use unsigned index.
12324 (input_alias_pairs): Don't read and then ignore all global vars.
12325 (lto_materialize_tree): Remove ix_p parameter, don't read index,
12326 don't pass it back, use lto_streamer_cache_append.
12327 (lto_register_var_decl_in_symtab): Use unsigned index.
12328 (lto_register_function_decl_in_symtab): Likewise.
12329 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
12331 (lto_get_builtin_tree): Don't read index, use
12332 lto_streamer_cache_append.
12333 (lto_read_tree): Adjust call to lto_materialize_tree.
12335 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
12336 don't use function calls in arguments to MIN.
12338 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
12341 * gimple.c (gimple_type_leader_entry): Mark deletable.
12343 2011-04-03 Alan Modra <amodra@gmail.com>
12345 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
12347 2011-04-03 Michael Matz <matz@suse.de>
12349 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
12351 * tree.h (tree_decl_non_common.vindex): Adjust comment.
12353 2011-04-03 Michael Matz <matz@suse.de>
12355 * cgraphbuild.c (record_reference): Canonicalize constructor values.
12356 * gimple-fold.c (canonicalize_constructor_val): Accept being called
12357 without function context.
12358 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
12359 current_function_decl and cfun.
12361 2011-04-03 Michael Matz <matz@suse.de>
12363 * tree.c (decl_init_priority_insert): Don't create entry for
12365 (decl_fini_priority_insert): Ditto.
12366 (fields_compatible_p, find_compatible_field): Remove.
12367 * tree.h (fields_compatible_p, find_compatible_field): Remove.
12368 * gimple.c (gimple_compare_field_offset): Adjust block comment.
12370 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
12372 * combine.c (try_combine): Remove useless local variable.
12374 2011-04-03 Richard Guenther <rguenther@suse.de>
12375 Ira Rosen <ira.rosen@linaro.org>
12377 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
12378 non-variable offsets and compare the remaining bases of the two
12379 accesses instead of looking for exact same data-ref.
12381 2011-04-02 Kai Tietz <ktietz@redhat.com>
12384 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
12386 * i386.c (ix86_is_msabi_thiscall): New helper function.
12387 (ix86_is_type_thiscall): New helper function.
12388 (ix86_comp_type_attributes): Handle thiscall for method-functions
12390 (init_cumulative_args): Likewise.
12391 (find_drap_reg): Likewise.
12392 (ix86_static_chain): Likewise.
12393 (x86_this_parameter): Likewise.
12394 (x86_output_mi_thunk): Likewise.
12396 2011-04-01 Olivier Hainque <hainque@adacore.com>
12397 Nicolas Setton <setton@adacore.com>
12398 Eric Botcazou <ebotcazou@adacore.com>
12400 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
12401 (add_gnat_descriptive_type_attribute): New function.
12402 (gen_array_type_die): Call it.
12403 (gen_enumeration_type_die): Likewise.
12404 (gen_struct_or_union_type_die): Likewise.
12405 (modified_type_die): Likewise.
12406 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
12407 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
12408 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
12410 2011-04-01 Jakub Jelinek <jakub@redhat.com>
12413 * dwarf2out.c (resolve_addr): Don't call force_decl_die
12414 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
12417 2011-03-17 Richard Guenther <rguenther@suse.de>
12420 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12421 origin for decls in other ltrans units.
12422 (input_varpool_node): Likewise.
12424 2011-04-01 Jakub Jelinek <jakub@redhat.com>
12426 PR middle-end/48335
12427 * expr.c (expand_assignment): Handle all possibilities
12428 if TO_RTX is CONCAT.
12429 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
12430 (store_split_bit_field): If SUBREG_REG (op0) or
12431 op0 itself has smaller mode than word, return it
12432 for offset 0 and const0_rtx for out-of-bounds stores.
12433 If word is const0_rtx, skip it.
12435 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
12437 * config/h8300/h8300.c (print_operand_address): Rename to...
12438 (h8300_print_operand_address): ...this. Make static. Adjust comments.
12439 Call h8300_print_operand and h8300_print_operand_address instead of
12440 print_operand and print_operand_address. Declare.
12441 (print_operand): Renake to...
12442 (h8300_print_operand): ...this. Make static. Adjust comments.
12443 Call h8300_print_operand instead of print_operand. Declare.
12444 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
12445 (h8300_register_move_cost): Likewise.
12446 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
12447 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
12448 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
12449 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
12450 * config/h8300/h8300-protos.h (print_operand): Delete.
12451 (print_operand_address): Delete.
12453 2011-04-01 Richard Henderson <rth@redhat.com>
12456 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
12457 in strict mode before dwarf4. Re-order tests to early out
12458 before switching sections.
12460 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
12462 * config/h8300/constraints.md: New file.
12463 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
12464 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
12465 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
12466 * config/h8300/predicates.md (bit_operand): Likewise.
12467 (incdec_operand): Use satisfies_constraint_M and
12468 satisfies_constraint_O. Don't use C code block.
12469 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
12470 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
12471 (compute_mov_length): Use satisfies_constraint_G.
12472 (fix_bit_operand): Use satisfies_constraint_U.
12473 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
12474 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
12475 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
12476 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
12477 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
12478 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
12479 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12480 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
12481 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
12482 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
12483 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
12484 (EXTRA_MEMORY_CONSTRAINT): Delete.
12486 2011-04-01 Andrew Pinski <pinskia@gmail.com>
12487 Michael Meissner <meissner@linux.vnet.ibm.com>
12490 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
12491 operands, as per the specifications.
12493 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12494 (vec_extract_evenv4sf): Ditto.
12495 (vec_extract_evenv8hi): Ditto.
12496 (vec_extract_evenv16qi): Ditto.
12497 (vec_extract_oddv4si): Ditto.
12499 2011-03-31 Mark Wielaard <mjw@redhat.com>
12501 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12502 high_pc attribute if the CU has no associated code. Only output
12503 DW_AT_entry_pc for CU if not generating strict dwarf and
12506 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
12508 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12509 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12511 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12512 * final.c (final_start_function): Call the new function rather
12513 than using a NULL argument for dwarf2out_frame_debug.
12515 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12516 that contains the prologue.
12518 * haifa-sched.c (queue_insn): New arg REASON. All callers
12519 changed. Print it in debugging output.
12521 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12523 * sched-ebb.c (begin_schedule_ready): Remove second argument.
12524 Split most of the code into...
12525 (begin_move_insn): ... here. New function.
12526 (ebb_sched_info): Add a pointer to it.
12527 * haifa-sched.c (scheduled_insns): New static variable.
12528 (sched_extend_ready_list): Allocate it.
12529 (schedule_block): Use it to record the order of scheduled insns.
12530 Perform RTL changes to move insns only after all scheduling
12531 decisions have been made.
12532 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12533 begin_move_insn field.
12534 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12535 * sched-int.h (struct haifa_sched_info): Remove second argument
12536 from begin_schedule_ready hook. Add new member begin_move_insn.
12537 * sched-rgn.c (begin_schedule_ready): Remove second argument.
12538 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12540 * haifa-sched.c (prune_ready_list): New function, broken out of
12542 (schedule_block): Use it.
12544 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12546 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12548 2011-04-01 Kai Tietz <ktietz@redhat.com>
12550 * config.gcc (*-*-mingw*): Allow as option the
12551 posix threading model.
12552 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
12553 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12555 (CPP_SPEC): Add pthread/no-pthread handling.
12556 (LIB_SPEC): Likewise.
12557 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12558 (LIB_SPEC): Likewise.
12559 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12560 flag to pass -pthread option for shared libgcc build.
12561 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12562 for shared libgcc build.
12563 * config/i386/t-mingw-pthread: New file.
12564 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12565 New define to enable use of library pthread by default.
12566 * config/i386/mingw.opt (pthread): New driver option.
12567 (no-pthread): New driver option.
12568 * config/i386/cygming.opt: Make sure trailing empty line is retained.
12569 * config/i386/mingw-w64.opt: Likewise.
12571 2011-04-01 Gary Funck <gary@intrepid.com>
12573 * c-decl.c (grokdeclarator): Fix formatting.
12575 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12577 * expr.c (emit_block_move_via_movmem): Use n_generator_args
12578 instead of n_operands.
12579 (set_storage_via_setmem): Likewise.
12580 * optabs.c (maybe_gen_insn): Likewise.
12581 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
12582 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
12583 (mips_expand_builtin_direct): Likewise.
12584 * config/spu/spu.c (expand_builtin_args): Likewise.
12586 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12588 * recog.h (insn_data_d): Add n_generator_args.
12589 * genoutput.c (data): Likewise.
12590 (output_insn_data): Print it.
12591 (max_opno, num_dups): Delete.
12592 (scan_operands): Just fill in "d->operand[...]".
12593 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
12595 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12597 * gensupport.h (pattern_stats): New structure.
12598 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
12599 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
12600 (max_operand_1, max_operand_vec): Delete.
12601 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
12603 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
12605 * emit-rtl.c (emit_pattern_after_setloc): New function.
12606 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
12607 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
12608 (emit_pattern_after): New function.
12609 (emit_insn_after, emit_jump_insn_after): Call it.
12610 (emit_call_insn_after, emit_debug_insn_after): Likewise.
12611 (emit_pattern_before_setloc): New function.
12612 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
12613 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
12615 (emit_pattern_before): New function.
12616 (emit_insn_before, emit_jump_insn_before): Call it.
12617 (emit_call_insn_before, emit_debug_insn_before): Likewise.
12619 2011-03-31 Richard Henderson <rth@redhat.com>
12621 * dwarf2out.c (dw_separate_line_info_ref): Remove.
12622 (dw_separate_line_info_entry): Remove.
12623 (enum dw_line_info_opcode): New.
12624 (dw_line_info_entry): Use it.
12625 (dw_line_info_table, dw_line_info_table_p): New.
12626 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12627 (line_info_table, line_info_label_num): Remove.
12628 (line_info_table_in_use): Remove.
12629 (separate_line_info_table): Remove.
12630 (separate_line_info_table_allocated): Remove.
12631 (separate_line_info_table_in_use): Remove.
12632 (LINE_INFO_TABLE_INCREMENT): Remove.
12633 (line_info_label_num): New.
12634 (cur_line_info_table): New.
12635 (text_section_line_info, cold_text_section_line_info): New.
12636 (separate_line_info): New.
12637 (SEPARATE_LINE_CODE_LABEL): Remove.
12638 (print_dwarf_line_table): Remove.
12639 (debug_dwarf): Don't dump it.
12640 (output_one_line_info_table): New.
12641 (output_line_info): Use it.
12642 (new_line_info_table): New.
12643 (set_cur_line_info_table): New.
12644 (dwarf2out_switch_text_section): Use it.
12645 (dwarf2out_begin_function): Likewise.
12646 (push_dw_line_info_entry): New.
12647 (dwarf2out_source_line): Rewrite for new line info tables.
12648 (dwarf2out_init): Remove dead initailizations.
12650 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12652 * opts.h (cl_option): Add comments to fields. Add bit-fields for
12654 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12655 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12656 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12657 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12658 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12659 * opt-functions.awk (flag_init, switch_bit_fields): New.
12660 (switch_flags): Don't handle flags moved to bit-fields. Don't
12661 generate CL_MISSING_OK or CL_SAVE.
12662 * optc-gen.awk: Update to generate bit-field output as well as
12664 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12665 bit-field instead of CL_REJECT_DRIVER flag.
12666 * opts-common.c (generate_canonical_option,
12667 decode_cmdline_option): Use bit-fields instead of CL_* flags.
12668 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12669 instead of CL_REJECT_NEGATIVE flag.
12670 * toplev.c (print_switch_values): Use cl_report bit-field instead
12673 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12675 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12676 a zero minimum index only if it is redundant.
12678 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
12680 PR rtl-optimization/48381
12681 * ira-color.c (assign_hard_reg): Use hard reg set intersection
12682 instead of ira_class_hard_reg_index for calculating conflicting
12685 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
12687 * cprop.c: Clean up hash table building.
12688 (reg_avail_info): Remove.
12689 (oprs_available_p): Remove.
12690 (record_last_reg_set_info): Remove.
12691 (record_last_set_info): Remove.
12692 (reg_available_p): New function.
12693 (gcse_constant_p): Do not treat unfolded conditions as constants.
12694 (make_set_regs_unavailable): New function.
12695 (hash_scan_set): Simplify with new reg_available_p.
12696 (compute_hash_table_work): Traverse insns stream only once.
12697 Do not compute reg_avail_info. Traverse insns in reverse order.
12698 Record implicit sets after recording explicit sets from the block.
12700 2011-03-31 Michael Matz <matz@suse.de>
12702 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12704 2011-03-31 Anatoly Sokolov <aesok@post.ru>
12706 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12707 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12708 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12709 (h8300_mode_dependent_address_p): New function.
12710 (h8300_get_index): Make static.
12712 2011-03-31 Jeff Law <law@redhat.com>
12714 * reload1.c (elimination_effects): Fix typo in recent change.
12716 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12717 typo potentially leading to null pointer dereference.
12719 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12720 (setup_save_areas): Corresponding changes to avoid useless
12723 * jump.c (reversed_comparison_code_parts): Avoid successive return
12724 statements when REVERSE_CONDITION is defined.
12726 * expr.c (expand_assignment): Avoid useless assignments.
12727 (expand_expr_real_1): Likewise.
12728 (expand_expr_real_2): Avoid useless statements.
12730 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12732 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12734 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12737 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12739 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12742 * doc/tm.texi.in (TARGET_VERSION): Remove.
12743 * doc/tm.texi: Regenerate.
12744 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12745 * collect2.c (main): Don't use TARGET_VERSION.
12746 * mips-tdump.c (main): Don't use TARGET_VERSION.
12747 * mips-tfile.c (main): Don't use TARGET_VERSION.
12748 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12749 * config/rs6000/vxworksae.h: Remove.
12750 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12751 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12752 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12753 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12754 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12755 * config/arm/arm.h (TARGET_VERSION): Remove.
12756 * config/arm/coff.h (TARGET_VERSION): Remove.
12757 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12758 * config/arm/elf.h (TARGET_VERSION): Remove.
12759 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12760 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12761 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12762 * config/arm/pe.h (TARGET_VERSION): Remove.
12763 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12764 * config/arm/semi.h (TARGET_VERSION): Remove.
12765 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12766 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12767 * config/arm/vxworks.h (TARGET_VERSION): Remove.
12768 * config/avr/avr.h (TARGET_VERSION): Remove.
12769 * config/bfin/bfin.h (TARGET_VERSION): Remove.
12770 * config/fr30/fr30.h (TARGET_VERSION): Remove.
12771 * config/frv/frv.h (TARGET_VERSION): Remove.
12772 * config/h8300/h8300.h (TARGET_VERSION): Remove.
12773 * config/i386/cygwin.h (TARGET_VERSION): Remove.
12774 * config/i386/darwin.h (TARGET_VERSION): Remove.
12775 * config/i386/darwin64.h (TARGET_VERSION): Remove.
12776 * config/i386/djgpp.h (TARGET_VERSION): Remove.
12777 * config/i386/freebsd.h (TARGET_VERSION): Remove.
12778 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12779 * config/i386/gnu.h (TARGET_VERSION): Remove.
12780 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12781 * config/i386/i386elf.h (TARGET_VERSION): Remove.
12782 * config/i386/linux.h (TARGET_VERSION): Remove.
12783 * config/i386/linux64.h (TARGET_VERSION): Remove.
12784 * config/i386/lynx.h (TARGET_VERSION): Remove.
12785 * config/i386/mingw32.h (TARGET_VERSION): Remove.
12786 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12787 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12788 * config/i386/netware.h (TARGET_VERSION): Remove.
12789 * config/i386/nto.h (TARGET_VERSION): Remove.
12790 * config/i386/openbsd.h (TARGET_VERSION): Remove.
12791 * config/i386/vxworks.h (TARGET_VERSION): Remove.
12792 * config/ia64/elf.h (TARGET_VERSION): Remove.
12793 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12794 * config/ia64/hpux.h (TARGET_VERSION): Remove.
12795 * config/ia64/linux.h (TARGET_VERSION): Remove.
12796 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12797 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12798 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12799 * config/lm32/lm32.h (TARGET_VERSION): Remove.
12800 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12801 * config/m32c/m32c.h (TARGET_VERSION): Remove.
12802 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12803 * config/m32r/m32r.h (TARGET_VERSION): Remove.
12804 * config/m68k/linux.h (TARGET_VERSION): Remove.
12805 * config/m68k/m68k.h (TARGET_VERSION): Remove.
12806 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12807 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12808 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12809 * config/mep/mep.h (TARGET_VERSION): Remove.
12810 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12811 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12812 * config/mips/iris6.h (MACHINE_TYPE): Remove.
12813 * config/mips/linux.h (TARGET_VERSION): Remove.
12814 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12815 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12816 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12817 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12818 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12819 * config/pa/pa.h (TARGET_VERSION): Remove.
12820 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12821 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12822 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12823 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12824 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12825 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12826 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12827 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12828 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12829 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12830 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12831 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12832 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12833 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12834 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12835 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12836 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12837 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12838 * config/s390/linux.h (TARGET_VERSION): Remove.
12839 * config/s390/s390.h (TARGET_VERSION): Remove.
12840 * config/s390/tpf.h (TARGET_VERSION): Remove.
12841 * config/score/score.h (TARGET_VERSION): Remove.
12842 * config/sh/linux.h (TARGET_VERSION): Remove.
12843 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12844 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12845 * config/sh/sh.h (TARGET_VERSION): Remove.
12846 * config/sh/sh64.h (TARGET_VERSION): Remove.
12847 * config/sh/superh.h (TARGET_VERSION): Remove.
12848 * config/sh/vxworks.h (TARGET_VERSION): Remove.
12849 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12850 * config/sparc/linux.h (TARGET_VERSION): Remove.
12851 * config/sparc/linux64.h (TARGET_VERSION): Remove.
12852 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12853 TARGET_NAME32, TARGET_NAME): Remove.
12854 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12855 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12856 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12857 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12858 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12859 * config/spu/spu.h (TARGET_VERSION): Remove.
12860 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12861 * config/v850/v850.h (TARGET_VERSION): Remove.
12862 * config/vax/linux.h (TARGET_VERSION): Remove.
12863 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12864 * config/xtensa/elf.h (TARGET_VERSION): Remove.
12865 * config/xtensa/linux.h (TARGET_VERSION): Remove.
12867 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12870 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12871 frame-related from frame-unrelated adjustments to the stack pointer.
12873 2011-03-31 Jakub Jelinek <jakub@redhat.com>
12875 * common.opt (fdebug-types-section): Move earlier.
12876 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12878 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
12880 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12883 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
12885 * tree.h (CASE_CHAIN): Define.
12886 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12887 (gimple_redirect_edge_and_branch): Likewise.
12889 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12891 PR middle-end/48367
12892 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12895 2011-03-30 Jeff Law <law@redhat.com>
12897 * PR bootstrap/48371
12898 * reload1.c (reload): Fix botch in last change.
12900 * reload.h (struct reload): Fix typo introduced in last change.
12902 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12904 * config/arm/arm.opt (mhard-float, msoft-float): Mark
12905 Undocumented. Remove help text.
12906 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12909 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12911 * doc/options.texi (NegativeAlias): Document.
12912 (Alias): Mention NegativeAlias.
12913 * opt-functions.awk: Handle NegativeAlias.
12914 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12915 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12916 * opts.h (CL_NEGATIVE_ALIAS): Define.
12917 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12918 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12920 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12922 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12923 mno-spe and mno-isel instead of mspe=no and -misel=no.
12925 2011-03-29 Mark Wielaard <mjw@redhat.com>
12927 * common.opt (fdebug-types-section): New flag.
12928 * doc/invoke.texi: Document new -fno-debug-types-section flag.
12929 * dwarf2out.c (use_debug_types): New define.
12930 (struct die_struct): Mark die_id with GTY desc use_debug_types.
12931 (print_die): Guard output of type unit signatures using
12933 (build_abbrev_table): Replace assert of dwarf_version >= 4
12934 with assert on use_debug_types.
12935 (size_of_die): Likewise.
12936 (unmark_dies): Likewise.
12937 (value_format): Decide AT_ref_external form on use_debug_types.
12938 (output_die): Replace dwarf_version version check guard with
12939 use_debug_types where appropriate.
12940 (modified_type_die): Likewise.
12941 (gen_reference_type_die): Likewise.
12942 (dwarf2out_start_source_file): Likewise.
12943 (dwarf2out_end_source_file): Likewise.
12944 (prune_unused_types_walk_attribs): Likewise.
12945 (dwarf2out_finish): Likewise.
12947 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12949 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12951 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12953 PR rtl-optimization/48332
12954 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12955 mode of input operand N and modeN to its actual mode.
12957 2011-03-30 Jeff Law <law@redhat.com>
12959 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12960 define accessor macro.
12961 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12962 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12963 (reg_equiv_init): Likewise.
12964 (reg_equivs_size): New variable.
12965 (reg_equiv_init_size): Remove.
12966 (allocate_initial_values): Move prototype to here from....
12967 * integrate.h (allocate_initial_values): Remove prototype.
12968 * integrate.c: Include reload.h.
12969 (allocate_initial_values): Corresponding changes.
12970 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12971 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12972 (update_equiv_regs): Corresponding changes.
12973 (ira): Corresponding changes.
12974 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12975 (push_secondary_reload): Corresponding changes.
12976 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12977 (make_memloc, find_reloads_address): Corresponding changes.
12978 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12979 (find_reloads_address_1): Corresponding changes.
12980 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12981 (refers_to_regno_for_reload_p): Corresponding changes.
12982 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12983 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12984 * reload1.c: Include ggc.h.
12985 (grow_reg_equivs): New function.
12986 (replace_pseudos_in, reload): Corresponding changes.
12987 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12988 (eliminate_regs_1, elimination_effects): Corresponding changes.
12989 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12990 (delete_output_reload): Likewise.
12991 * caller-save.c (mark_referenced_regs): Corresponding changes.
12992 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12993 * frv/predicates.md (frv_load_operand): Corresponding changes.
12994 * microblaze/microblaze.c (double_memory_operand): Corresponding
12996 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12997 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12998 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12999 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
13000 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
13002 * pa/pa.c (emit_move_sequence): Corresponding changes.
13003 * vax/vax.c (nonindexed_address_p): Corresponding changes.
13005 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13008 * config/arm/arm.c (coproc_secondary_reload_class): Handle
13009 structure modes. Don't check neon_vector_mem_operand for
13010 vector or structure modes.
13012 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
13013 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13016 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
13017 operand 1 and reshuffle the operands to match.
13018 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
13020 2011-03-30 Christian Schüler <cschueler@gmx.de>
13023 * config/c.opt (F): Added 'Driver' to -F option.
13026 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
13028 * config/darwin.opt: Added '-arch' option.
13030 2011-03-30 Nick Clifton <nickc@redhat.com>
13032 * config/rx/rx.md: Add peepholes and patterns to combine
13033 extending loads and simple arithmetic instructions.
13034 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
13035 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
13036 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
13037 modes to use pre-decrement and post-increment addressing.
13038 (rx_is_restricted_memory_address): Add range checking of REG+INT
13040 (rx_print_operand): Add support for %Q. Fix handling of %Q.
13041 (rx_memory_move_cost): Adjust cost of stores.
13042 (rx_adjust_insn_length): New function.
13044 2011-03-30 Jakub Jelinek <jakub@redhat.com>
13047 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13048 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
13049 matching arg00/arg01 types.
13051 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
13053 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
13054 last_location to UNKNOWN_LOCATION.
13056 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
13059 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
13062 2011-03-30 Joseph Myers <joseph@codesourcery.com>
13063 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13066 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
13067 Init(PROCESSOR_V7).
13068 (sparc_cpu): Likewise.
13069 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
13072 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13075 PR middle-end/48342
13076 PR rtl-optimization/48345
13077 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
13078 hard regs for given mode from profitable regs when doing secondary
13081 2011-03-29 Jeff Law <law@redhat.com>
13084 * tree-ssa-threadupdate.c (struct redirection_data): Remove
13085 do_not_duplicate field.
13086 (lookup_redirection_data): Corresponding changes.
13087 (create_duplicates): Always create a template block.
13088 (redirect_edges): Remove code which reused the original block
13089 when it was going to become unreachable code.
13090 (thread_block): Don't set do_not_duplicate field.
13092 2011-03-29 Joseph Myers <joseph@codesourcery.com>
13094 * lto-opts.c (register_user_option_p, lto_register_user_option):
13095 Make type argument unsigned.
13096 * lto-streamer.h (lto_register_user_option): Make type argument
13098 * opth-gen.awk: Make CL_* macros unsigned.
13099 * opts-common.c (find_opt): Make lang_mask argument unsigned.
13100 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
13101 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
13102 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
13103 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
13104 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
13105 (find_opt): Make lang_mask argument unsigned.
13107 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13109 PR rtl-optimization/48331
13110 PR rtl-optimization/48334
13111 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
13112 for any used algorithm.
13114 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13116 * ira-conflicts.c (build_object_conflicts): Add unused attribute
13119 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
13121 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
13122 (alpha_option_override): Don't set alpha_sr_alias_set.
13123 (emit_frame_store_1): Use gen_frame_mem rather than calling
13125 (alpha_expand_epilogue): Ditto.
13127 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
13129 PR tree-optimization/48290
13130 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
13131 vectorization, check that relevant phis in the basic block after
13132 the inner loop are really inner loop's exit phis.
13134 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
13137 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
13138 (cached_dw_loc_list_def): New structure.
13139 (cached_dw_loc_list): New typedef.
13140 (cached_dw_loc_list_table): New variable.
13141 (cached_dw_loc_list_table_hash): New function.
13142 (cached_dw_loc_list_table_eq): Likewise.
13143 (add_location_or_const_value_attribute): Take a bool cache_p.
13144 Cache the list when the parameter is true.
13145 (gen_formal_parameter_die): Update caller.
13146 (gen_variable_die): Likewise.
13147 (dwarf2out_finish): Likewise.
13148 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
13149 while generating debug info for the decl.
13150 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
13151 (dwarf2out_init): Initialize cached_dw_loc_list_table.
13152 (resolve_addr): Cache the result of resolving a chain of
13155 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
13157 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
13158 conflict object hard regset nodes have intersecting hard reg sets.
13160 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
13161 after regstat_init_n_sets_and_refs.
13163 * ira.c: Add more comments at the top.
13164 (setup_stack_reg_pressure_class, setup_pressure_classes):
13165 Add comments how we compute the register pressure classes.
13166 (setup_allocno_and_important_classes): Add more comments.
13167 (setup_class_translate_array, reorder_important_classes)
13168 (setup_reg_class_relations): Add comments.
13170 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
13173 * ira-color.c: Add 2011 to the Copyright line.
13174 (assign_hard_reg): Add more comments.
13175 (improve_allocation): Ditto.
13177 * ira-costs.c: Add 2011 to the Copyright line.
13178 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
13180 (setup_regno_cost_classes_by_mode): Ditto.
13182 Initial patches from ira-improv branch:
13184 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13186 * ira-build.c (ira_create_object): Remove initialization of
13187 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
13188 (ira_create_allocno): Remove initialization of
13189 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
13190 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
13191 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13192 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
13193 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
13194 Initialize ALLOCNO_ADD_DATA.
13195 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
13196 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
13198 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
13199 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
13201 * ira.c (ira_reallocate): Remove.
13202 (setup_pressure_classes): Call
13203 ira_init_register_move_cost_if_necessary. Use
13204 ira_register_move_cost instead of ira_get_register_move_cost.
13205 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
13206 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
13208 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
13209 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13210 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
13211 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
13212 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
13213 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
13215 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
13216 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13217 (struct allocno_color_data): New.
13218 (allocno_color_data_t): New typedef.
13219 (allocno_color_data): New definition.
13220 (ALLOCNO_COLOR_DATA): New macro.
13221 (struct object_color_data): New.
13222 (object_color_data_t): New typedef.
13223 (object_color_data): New definition.
13224 (OBJECT_COLOR_DATA): New macro.
13225 (update_copy_costs, calculate_allocno_spill_cost): Call
13226 ira_init_register_move_cost_if_necessary. Use
13227 ira_register_move_cost instead of ira_get_register_move_cost.
13228 (move_spill_restore, update_curr_costs): Ditto.
13229 (allocno_spill_priority): Make it inline.
13230 (color_pass): Allocate and free allocno_color_dat and object_color_data.
13231 (struct coalesce_data, coalesce_data_t): New.
13232 (allocno_coalesce_data): New definition.
13233 (ALLOCNO_COALESCE_DATA): New macro.
13234 (merge_allocnos, coalesced_allocno_conflict_p): Use
13235 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
13236 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
13237 (coalesce_allocnos): Ditto.
13238 (setup_coalesced_allocno_costs_and_nums): Ditto.
13239 (collect_spilled_coalesced_allocnos): Ditto.
13240 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
13241 (setup_slot_coalesced_allocno_live_ranges): Ditto.
13242 (coalesce_spill_slots): Ditto.
13243 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
13244 free allocno_coalesce_data.
13246 * ira-conflicts.c: Fix formatting.
13247 (process_regs_for_copy): Call
13248 ira_init_register_move_cost_if_necessary. Use
13249 ira_register_move_cost instead of ira_get_register_move_cost.
13250 (build_object_conflicts): Optimize.
13252 * ira-costs.c (record_reg_classes): Optimize. Call
13253 ira_init_register_move_cost_if_necessary. Use
13254 ira_register_move_cost, ira_may_move_in_cost, and
13255 ira_may_move_out_cost instead of ira_get_register_move_cost and
13256 ira_get_may_move_cost.
13257 (record_address_regs): Ditto.
13258 (scan_one_insn): Optimize.
13259 (find_costs_and_classes): Optimize.
13260 (process_bb_node_for_hard_reg_moves): Call
13261 ira_init_register_move_cost_if_necessary. Use
13262 ira_register_move_cost instead of ira_get_register_move_cost.
13264 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
13265 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
13266 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
13267 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
13269 (ira_initiate_emit_data, ira_finish_emit_data)
13270 (create_new_allocno): New functions.
13271 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
13272 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
13273 Use ira_register_move_cost instead of ira_get_register_move_cost.
13275 * ira-int.h: Fix some comments.
13276 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
13277 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13278 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
13279 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
13281 (struct ira_allocno): Make mode and aclass a bitfield. Move other
13282 bitfield after mode. Make hard_regno a short int. Make
13283 hard_regno short. Remove first_coalesced_allocno and
13284 next_coalesced_allocno. Move mem_optimized_dest_p,
13285 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
13286 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
13287 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
13288 temp, colorable_p. Add new member add_data.
13289 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
13290 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
13291 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
13292 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
13293 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
13294 (ALLOCNO_ADD_DATA): New macro.
13295 (ira_emit_data_t): New typedef.
13296 (struct ira_emit_data): New. Move mem_optimized_dest_p,
13297 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
13298 from struct ira_allocno.
13299 (ALLOCNO_EMIT_DATA): New macro.
13300 (ira_allocno_emit_data, allocno_emit_reg): New.
13301 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
13302 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
13303 (OBJECT_ADD_DATA): New macro.
13304 (ira_reallocate): Remove.
13305 (ira_initiate_emit_data, ira_finish_emit_data): New.
13306 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
13307 (ira_init_register_move_cost_if_necessary): New.
13308 (ira_object_conflict_iter_next): Merge into
13309 ira_object_conflict_iter_cond.
13310 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
13312 * ira-live.c (process_single_reg_class_operands): Call
13313 ira_init_register_move_cost_if_necessary. Use
13314 ira_register_move_cost instead of ira_get_register_move_cost.
13316 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13318 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
13320 * ira-costs.c: Fix formatting.
13321 (cost_classes, cost_classes_num): Remove.
13322 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
13323 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
13324 (cost_classes_del, cost_classes_htab): New.
13325 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
13326 (initiate_regno_cost_classes, setup_cost_classes): New.
13327 (setup_regno_cost_classes_by_aclass): New.
13328 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
13329 (record_reg_classes): Use regno_cost_classes instead of
13330 cost_classes. Move checking opposite operand up.
13331 (record_address_regs): Use regno_cost_classes
13332 instead of cost_classes.
13333 (scan_one_insn): Ditto. Use always general register.
13334 (print_allocno_costs): Use regno_cost_classes instead of
13336 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
13337 (find_costs_and_classes): Set up cost classes for each registers.
13338 Use also their mode for this. Use regno_cost_classes instead of
13340 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
13342 (free_ira_costs, ira_init_costs): Don't use cost_classes.
13343 (ira_costs, ira_set_pseudo_classes): Call
13344 initiate_regno_cost_classes and finish_regno_cost_classes.
13346 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
13348 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
13350 * target.def (ira_cover_classes): Remove.
13352 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
13354 * doc/tm.texi.in: Ditto.
13356 * ira-conflicts.c: Remove mentioning cover classes from the file.
13357 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
13358 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
13360 * targhooks.c (default_ira_cover_classes): Remove.
13362 * targhooks.h (default_ira_cover_classes): Ditto.
13364 * haifa-sched.c: Remove mentioning cover classes from the file.
13365 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13366 ira_pressure_classes and ira_pressure_classes_num instead of
13367 ira_reg_class_cover_size and ira_reg_class_cover. Use
13368 sched_regno_pressure_class instead of sched_regno_cover_class.
13369 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
13370 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13372 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
13373 classes from the file.
13374 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
13375 (struct object_hard_regs, struct object_hard_regs_node): New.
13376 (struct ira_object): New members profitable_hard_regs,
13377 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
13378 (struct ira_allocno): Rename cover_class to aclass. Rename
13379 cover_class_cost and updated_cover_class_cost to class_cost and
13380 updated_class_cost. Remove splay_removed_p and
13381 left_conflict_size. Add new members colorable_p.
13382 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
13383 (ALLOCNO_COLORABLE_P): New macro.
13384 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
13385 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
13386 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
13387 (OBJECT_...): Rename parameter C to O.
13388 (OBJECT_PROFITABLE_HARD_REGS): New macro.
13389 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
13390 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
13391 (struct target_ira_int): New members x_ira_max_memory_move_cost,
13392 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
13393 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
13394 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
13395 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
13396 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
13397 x_ira_reg_class_subunion.
13398 (ira_max_memory_move_cost, ira_max_register_move_cost)
13399 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
13400 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
13401 (ira_important_class_nums, ira_reg_class_superunion): New macros.
13402 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
13403 (ira_reg_class_union): Rename to ira_reg_class_subunion.
13404 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13405 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13406 (ira_tune_allocno_costs_and_cover_classes): Rename to
13407 ira_tune_allocno_costs.
13408 (ira_debug_hard_regs_forest): New.
13409 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
13410 (ira_object_conflict_iter_next): Fix comments.
13411 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
13412 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
13413 cover_class to aclass.
13414 (ira_allocate_and_accumulate_costs): Ditto.
13415 (ira_allocate_and_set_or_copy_costs): Ditto.
13417 * opts.c (decode_options): Remove ira_cover_class check.
13419 * ira-color.c: Remove mentioning cover classes from the file. Use
13420 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
13421 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
13422 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13423 (splay-tree.h): Remove include.
13424 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
13425 before copy_freq_compare_func.
13426 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
13427 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
13429 (hard_regs_roots, hard_regs_node_vec): Ditto.
13430 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
13431 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
13432 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
13433 (create_new_object_hard_regs_node): Ditto.
13434 (add_new_object_hard_regs_node_to_forest): Ditto.
13435 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
13436 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
13438 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
13439 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
13440 (remove_unused_object_hard_regs_nodes): Ditto.
13441 (enumerate_object_hard_regs_nodes): Ditto.
13442 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
13443 (object_hard_regs_subnode_t): Ditto.
13444 (struct object_hard_regs_subnode): Ditto.
13445 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
13446 (setup_object_hard_regs_subnode_index): Ditto.
13447 (get_object_hard_regs_subnodes_num): Ditto.
13448 (form_object_hard_regs_nodes_forest): Ditto.
13449 (finish_object_hard_regs_nodes_tree): Ditto.
13450 (finish_object_hard_regs_nodes_forest): Ditto.
13451 (allocnos_have_intersected_live_ranges_p): Rename to
13452 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13453 (pseudos_have_intersected_live_ranges_p): Rename to
13454 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13455 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
13456 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
13457 (update_copy_costs): Remove assert. Skip cost update if the hard
13458 reg does not belong the class.
13459 (assign_hard_reg): Process only profitable hard regs.
13460 (uncolorable_allocnos_num): Make it scalar.
13461 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13462 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
13463 and ira_reg_class_max_nregs.
13464 (bucket_allocno_compare_func): Check frequency first.
13465 (sort_bucket): Add compare function as a parameter.
13466 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
13467 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
13468 (push_allocno_to_stack): Rewrite for checking new allocno
13470 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
13471 (push_only_colorable): Pass new parameter to sort_bucket.
13472 (push_allocno_to_spill): Remove.
13473 (allocno_spill_priority_compare): Make it inline and rewrite.
13474 (splay_tree_allocate, splay_tree_free): Remove.
13475 (allocno_spill_sort_compare): New function.
13476 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
13477 build and use splay tree. Choose first allocno in uncolorable
13478 allocno bucket to spill. Remove setting spill cost.
13479 (all_conflicting_hard_regs): Remove.
13480 (setup_allocno_available_regs_num): Check only profitable hard
13481 regs. Print info about hard regs nodes.
13482 (setup_allocno_left_conflicts_size): Remove.
13483 (put_allocno_into_bucket): Don't call
13484 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
13485 (improve_allocation): New.
13486 (color_allocnos): Call setup_profitable_hard_regs,
13487 form_object_hard_regs_nodes_forest, improve_allocation,
13488 finish_object_hard_regs_nodes_forest. Setup spill cost.
13489 (print_loop_title): Use pressure classes.
13490 (color_allocnso): Ditto.
13491 (do_coloring): Remove allocation and freeing splay_tree_node_pool
13492 and allocnos_for_spilling.
13493 (ira_sort_regnos_for_alter_reg): Don't setup members
13494 {first,next}_coalesced_allocno.
13495 (color): Remove allocating and freeing removed_splay_allocno_vec.
13496 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13497 prohibited_class_mode_regs.
13499 * ira-lives.c: Remove mentioning cover classes from the file. Fix
13501 (update_allocno_pressure_excess_length): Use pressure classes.
13502 (inc_register_pressure, dec_register_pressure): Check for pressure
13504 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13505 pressure class. Use ira_reg_class_nregs instead of
13506 ira_reg_class_max_nregs.
13507 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13508 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13509 (single_reg_class): Use ira_reg_class_nregs instead of
13510 ira_reg_class_max_nregs.
13511 (process_bb_node_lives): Use pressure classes.
13513 * ira-emit.c: Remove mentioning cover classes from the file. Use
13514 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
13515 (change_loop): Use pressure classes.
13516 (modify_move_list): Call ira_set_allocno_class instead of
13517 ira_set_allocno_cover_class.
13519 * ira-build.c: Remove mentioning cover classes from the file. Use
13520 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13521 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
13522 ALLOCNO_UPDATED_CLASS_COST instead of
13523 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13524 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13525 (ira_create_allocno): Remove initialization of
13526 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
13527 ALLOCNO_COLORABLE_P.
13528 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13529 Update conflict regs for the objects.
13530 (create_cap_allocno): Remove assert. Don't propagate
13531 ALLOCNO_AVAILABLE_REGS_NUM.
13532 (ira_free_allocno_costs): New function.
13533 (finish_allocno): Change a part of code into call of
13534 ira_free_allocno_costs.
13535 (low_pressure_loop_node_p): Use pressure classes.
13536 (object_range_compare_func): Don't compare classes.
13537 (setup_min_max_conflict_allocno_ids): Ditto.
13539 * loop-invariant.c: Remove mentioning cover classes from the file.
13540 Use ira_pressure_classes and ira_pressure_classes_num instead of
13541 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
13542 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13543 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13544 Use reg_allocno_class instead of reg_cover_class.
13545 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13546 STACK_REG_COVER_CLASS.
13547 (get_regno_cover_class): Rename to get_regno_pressure_class.
13548 (move_loop_invariants): Initialize and finalize regstat.
13550 * ira.c: Remove mentioning cover classes from the file. Add
13551 comments about coloring without cover classes. Use ALLOCNO_CLASS
13552 instead of ALLOCNO_COVER_CLASS. Fix formatting.
13553 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13554 setup_class_subset_and_memory_move_costs.
13555 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13556 (setup_cover_and_important_classes): Rename to
13557 setup_allocno_and_important_classes.
13558 (setup_class_translate_array): New.
13559 (setup_class_translate): Call it for allocno and pressure classes.
13560 (cover_class_order): Rename to allocno_class_order.
13561 (comp_reg_classes_func): Use ira_allocno_class_translate instead
13562 of ira_class_translate.
13563 (reorder_important_classes): Set up ira_important_class_nums.
13564 (setup_reg_class_relations): Set up ira_reg_class_superunion.
13565 (print_class_cover): Rename to print_classes. Add parameter.
13566 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13567 Print pressure classes too.
13568 (find_reg_class_closure): Rename to find_reg_classes. Don't call
13569 setup_reg_subclasses.
13570 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13571 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13572 (setup_prohibited_class_mode_regs): Use
13573 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
13574 (clarify_prohibited_class_mode_regs): New function.
13575 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
13576 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
13577 (ira_init_once): Initialize them.
13578 (free_register_move_costs): Process them.
13579 (ira_init): Move calls of find_reg_classes and
13580 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
13581 Call clarify_prohibited_class_mode_regs.
13582 (ira_no_alloc_reg): Remove.
13583 (too_high_register_pressure_p): Use pressure classes.
13585 * sched-deps.c: Remove mentioning cover classes from the file.
13586 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13587 ira_pressure_classes and ira_pressure_classes_num instead of
13588 ira_reg_class_cover_size and ira_reg_class_cover.
13589 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
13590 sched_regno_pressure_class instead of sched_regno_cover_class.
13591 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
13592 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13594 * ira.h: Add 2010 to Copyright.
13595 (ira_no_alloc_reg): Remove external.
13596 (struct target_ira): Rename x_ira_hard_regno_cover_class,
13597 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
13598 x_ira_class_translate to x_ira_hard_regno_allocno_class,
13599 x_ira_allocno_classes_num, x_ira_allocno_classes, and
13600 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
13601 x_ira_pressure_classes, x_ira_pressure_class_translate, and
13602 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
13603 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
13604 x_ira_no_alloc_regs.
13605 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13606 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
13607 ira_allocno_classes_num and ira_allocno_classes.
13608 (ira_class_translate): Rename to ira_allocno_class_translate.
13609 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
13610 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
13611 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13612 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
13613 (ira_no_alloc_regs): New.
13615 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
13616 classes from the file. Use ALLOCNO_CLASS instead of
13617 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
13618 ALLOCNO_COVER_CLASS_COST.
13619 (regno_cover_class): Rename to regno_aclass.
13620 (record_reg_classes): Use ira_reg_class_subunion instead of
13621 ira_reg_class_union.
13622 (record_address_regs): Check overflow.
13623 (scan_one_insn): Ditto.
13624 (print_allocno_costs): Print total mem cost fore regional allocation.
13625 (print_pseudo_costs): Use REG_N_REFS.
13626 (find_costs_and_classes): Use classes intersected with them on the
13627 1st pass. Check overflow. Use ira_reg_class_subunion instead of
13628 ira_reg_class_union. Use ira_allocno_class_translate and
13629 regno_aclass instead of ira_class_translate and regno_cover_class.
13630 Modify code for finding regno_aclass. Setup preferred classes for
13632 (setup_allocno_cover_class_and_costs): Rename to
13633 setup_allocno_class_and_costs. Use regno_aclass instead of
13634 regno_cover_class. Use ira_set_allocno_class instead of
13635 ira_set_allocno_cover_class.
13636 (init_costs, finish_costs): Use regno_aclass instead of
13638 (ira_costs): Use setup_allocno_class_and_costs instead of
13639 setup_allocno_cover_class_and_costs.
13640 (ira_tune_allocno_costs_and_cover_classes): Rename to
13641 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
13642 by processing objects. Use ira_reg_class_max_nregs instead of
13643 ira_reg_class_nregs.
13645 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13647 * sched-int.h: Remove mentioning cover classes from the file.
13648 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13650 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
13651 classes from the file.
13652 (struct reg_pref): Rename coverclass into allocnoclass.
13653 (reg_cover_class): Rename to reg_allocno_class.
13655 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
13657 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13659 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13661 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13663 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13665 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13667 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13669 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13671 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13673 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13675 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13676 (i386_ira_cover_classes): Ditto.
13678 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13680 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13682 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13684 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13686 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13688 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13690 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13691 (mips_ira_cover_classes): Ditto.
13693 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13695 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13697 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13699 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13701 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13703 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13704 (IRA_COVER_CLASSES_VSX): Ditto.
13706 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13707 (rs6000_ira_cover_classes): Ditto.
13709 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13711 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13713 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13715 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13717 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13719 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13721 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13723 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13725 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13727 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13729 2011-03-29 Jakub Jelinek <jakub@redhat.com>
13732 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13733 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13734 dw_fde_unlikely_section_end_label, cold_in_std_section,
13735 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13736 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13738 (output_fde): Use dw_fde_second_{begin,end} if second is
13739 true, otherwise dw_fde_{begin,end}.
13740 (output_call_frame_info): Test dw_fde_second_begin != NULL
13741 instead of dw_fde_switched_sections.
13742 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13743 fields, initialize new fields. Initialize in_std_section
13744 unconditionally from the first partition.
13745 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13746 dw_fde_second_begin is non-NULL.
13747 (dwarf2out_switch_text_section): Stop initializing removed
13748 dw_fde_struct fields, initialize new fields, initialize
13749 also dw_fde_end here. Set dw_fde_switch_cfi even when
13750 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13751 (struct var_loc_list_def): Add last_before_switch field.
13752 (arange_table, arange_table_allocated, arange_table_in_use,
13753 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13754 (size_of_aranges): Count !in_std_section and !second_in_std_section
13755 hunks in fdes, instead of looking at arange_table_in_use.
13756 (output_aranges): Add aranges_length argument, don't call
13757 size_of_aranges here. Instead of using aranges_table*
13758 emit ranges for fdes when !in_std_section resp.
13759 !second_in_std_section.
13760 (dw_loc_list): Break ranges crossing section switch.
13761 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
13762 use dw_fde_second_end instead of dw_fde_end as end of last range.
13763 (gen_subprogram_die): Don't call add_arange. Use
13764 dw_fde_{begin,end} for first partition and if switched
13765 section dw_fde_second_{begin,end} for the second.
13766 (var_location_switch_text_section_1,
13767 var_location_switch_text_section): New functions.
13768 (dwarf2out_begin_function): Initialize cold_text_section even
13769 when function_section () isn't text_section.
13770 (prune_unused_types): Don't walk arange_table.
13771 (dwarf2out_finish): Don't needlessly test
13772 flag_reorder_blocks_and_partition when testing cold_text_section_used.
13773 If info_section_emitted, call size_of_aranges and if it indicates
13774 non-empty .debug_aranges, call output_aranges with the computed
13775 size. Stop using removed dw_fde_struct fields, use
13776 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13780 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13781 create ENTRY_VALUE if incoming or address of incoming's MEM
13783 * dwarf2out.c (mem_loc_descriptor): Don't emit
13784 DW_OP_GNU_entry_value of DW_OP_fbreg.
13785 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13786 on ENTRY_VALUE is able to find the canonical parameter VALUE.
13787 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13788 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13790 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13791 is a REG_P or MEM_P with REG_P address, compute hash directly
13792 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13793 (preserve_only_constants): Don't clear VALUES forwaring
13794 ENTRY_VALUE to some other VALUE.
13796 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
13798 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13799 instead of GEN_INT.
13801 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13803 * cfgexpand.c (expand_gimple_cond): Always set the source location and
13804 block before expanding the statement.
13805 (expand_gimple_stmt_1): Likewise. Set them here...
13806 (expand_gimple_stmt): ...and not here. Tidy.
13807 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13810 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13812 * Makefile.in: New rule for cprop.o.
13813 * gcse.c: Move constant/copy propagation to cprop.c.
13814 (compute_local_properties): Only handle expression tables.
13815 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13816 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13817 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13818 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13819 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13820 compute_cprop_data, find_used_regs, try_replace_reg,
13821 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13822 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13823 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13824 find_bypass_set, reg_killed_on_edge, bypass_block,
13825 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13826 execute_rtl_cprop, pass_rtl_cprop): Move to...
13827 * cprop.c: ...here. New file, constant/copy propagation for RTL
13828 moved from gcse.c to here with minor cleanups in duplicated code.
13830 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13832 * config/i386/i386.c (flag_opts): Fix a typo in
13833 -mavx256-split-unaligned-store.
13835 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13837 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13838 LIBCALL_VALUE): Remove macros.
13839 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13840 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13841 (h8300_function_value, h8300_libcall_value,
13842 h8300_function_value_regno_p): New functions.
13844 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13846 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13848 2011-03-28 Jeff Law <law@redhat.com>
13850 * tree-ssa-threadupdate.c (redirect_edges): Call
13851 create_edge_and_update_destination_phis as needed.
13852 (create_edge_and_update_destination_phis): Accept new BB argument.
13853 All callers updated.
13854 (thread_block): Do not update the profile when threading around
13855 intermediate blocks.
13856 (thread_single_edge): Likewise.
13857 (determine_bb_domination_status): If BB is not a successor of the
13858 loop header, return NONDOMINATING.
13859 (register_jump_thread): Note when we register a jump thread around
13860 an intermediate block.
13861 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13862 (thread_across_edge): Use it.
13864 2011-03-28 Tristan Gingold <gingold@adacore.com>
13866 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13867 when for_return is 2.
13869 2011-03-28 Jeff Law <law@redhat.com>
13871 * var-tracking.c (canonicalize_values_mark): Delete unused
13873 (canonicalize_values_star, set_variable_part): Likewise.
13874 (clobber_variable_part, delete_variable_part): Likewise.
13876 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13878 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13880 2011-03-28 Martin Jambor <mjambor@suse.cz>
13882 * tree-inline.c (expand_call_inline): Do not check that destination
13884 (optimize_inline_calls): Assert that destination node is analyzed.
13885 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13886 not call tree_lowering_passes.
13887 * cgraph.h (cgraph_analyze_function): Declare.
13888 * cgraphunit.c (cgraph_analyze_function): Make public.
13890 2011-03-28 Joseph Myers <joseph@codesourcery.com>
13892 * config/sparc/sparc-opts.h: New.
13893 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13894 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13895 (sparc_option_override): Store processor_type enumeration rather
13896 than string in cpu_default. Remove name and enumeration from
13897 cpu_table. Directly default -mcpu then default -mtune from -mcpu
13898 without using sparc_select. Use target_flags_explicit instead of
13900 * config/sparc/sparc.h (enum processor_type): Move to
13902 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13903 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13904 HeaderInclude entry.
13905 (mcpu=, mtune=): Use Var and Enum.
13906 (sparc_processor_type): New Enum and EnumValue entries.
13908 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13909 Iain Sandoe <iains@gcc.gnu.org>
13912 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13914 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13916 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13917 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13918 Insert new statements at it in lieu of STMT.
13919 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13920 * tree-vect-stmts.c (vectorizable_store): Likewise.
13921 (vectorizable_load): Likewise.
13923 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
13925 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13930 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13932 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13933 unaligned 256bit load/store.
13934 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13935 (*avx_movdqu<avxmodesuffix>): Likewise.
13937 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13940 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13941 * config/pa/pa.md (iordi3): Use new predicate in expander.
13942 (iorsi3): Likewise.
13944 2011-03-27 Anatoly Sokolov <aesok@post.ru>
13946 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13947 FUNCTION_VALUE_REGNO_P): Remove macros.
13948 * config/mips/mips-protos.h (mips_function_value): Remove.
13949 * config/mips/mips.c (mips_function_value): Rename to...
13950 (mips_function_value_1): ... this. Make static. Handle receiving
13951 the function type in 'fn_decl_or_type' argument.
13952 (mips_function_value, mips_libcall_value,
13953 mips_function_value_regno_p): New function.
13954 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13955 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13957 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13959 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13960 and -mavx256-split-unaligned-store.
13961 (ix86_option_override_internal): Split 32-byte AVX unaligned
13962 load/store by default.
13963 (ix86_avx256_split_vector_move_misalign): New.
13964 (ix86_expand_vector_move_misalign): Use it.
13966 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13967 -mavx256-split-unaligned-store.
13969 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13970 256bit load/store. Generate unaligned store on misaligned memory
13972 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13974 (*avx_movdqu<avxmodesuffix>): Likewise.
13976 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13977 -mavx256-split-unaligned-store.
13979 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13982 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13985 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13987 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13988 opno arguments with an expand_operand. Use create_input_operand.
13989 (mips_prepare_builtin_target): Delete.
13990 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13992 (mips_expand_builtin_direct): Use create_output_operand and
13993 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13994 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13995 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13997 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
13999 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
14001 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
14003 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
14005 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
14006 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
14007 basic blocks and call commit_edge_insertions directly.
14008 (fixup_abnormal_edges): Move from here to...
14009 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
14010 on the edges and return whether some have actually been inserted.
14011 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
14014 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
14016 PR rtl-optimization/48144
14017 * sel-sched-ir.c (merge_history_vect): Factor out from ...
14018 (merge_expr_data): ... here.
14019 (av_set_intersect): Rename to av_set_code_motion_filter.
14020 Update all callers. Call merge_history_vect when an expression
14021 is found in both sets.
14022 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
14024 2011-03-26 Alan Modra <amodra@gmail.com>
14026 * config/rs6000/predicates.md (word_offset_memref_op): Handle
14027 cmodel medium addresses.
14028 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
14029 64-bit gpr loads and stores.
14030 (rs6000_secondary_reload_ppc64): New function.
14031 * config/rs6000/rs6000-protos.h: Declare it.
14032 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
14034 2011-03-26 Alan Modra <amodra@gmail.com>
14037 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
14038 GNU Go in traceback table.
14040 2011-03-25 Richard Henderson <rth@redhat.com>
14042 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
14043 if there are exactly 6 operands.
14044 (set_storage_via_setmem): Similarly.
14046 2011-03-25 Kai Tietz <ktietz@redhat.com>
14048 * collect2.c (write_c_file_stat): Handle backslash
14049 as right-hand directory separator.
14050 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
14051 checking just for slash.
14052 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
14053 instead of checking for trailing slash.
14054 * gcc.c (record_temp_file): Use filename_cmp instead
14056 (do_spec_1): Likewise.
14057 (replace_outfile_spec_function): Likewise.
14058 (is_directory): Use filename_ncmp instead of strncmp.
14059 (print_multilib_info): Likewise.
14060 * gcov.c (find_source): Use filename_cmp instead
14062 (make_gcov_file_name): Fix order of slash/backslash
14064 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
14065 (add_standard_paths): Likewise.
14066 * mips-tfile.c (saber_stop): Handle backslash.
14067 * prefix.c (update_path): Use filename_ncmp instead of
14069 * profile.c (output_location): Use filename_cmp instead
14071 * read-md.c (handle_toplevel_file): Handle backslash.
14072 * tlink.c (frob_extension): Likewise.
14073 * tree-cfg.c (same_line_p): Use filename_cmp instead of
14075 * tree-dump.c (dequeue_and_dump): Handle backslash.
14076 * tree.c (get_file_function_name): Likewise.
14077 * gengtype.c (read_input_list): Likewise.
14078 (get_file_realbasename): Likewise.
14079 (get_output_file_with_visibility): Use filename_cmp
14082 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
14084 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
14087 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14089 * fold-const.c (expr_location_or): New function.
14090 (fold_truth_not_expr): Call it.
14092 2011-03-25 Jeff Law <law@redhat.com>
14094 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
14096 * c-family/c-common.c (def_fn_type): Likewise.
14097 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
14098 * emit-rtl.c (gen_rtvec): Likewise.
14099 * lto/lto-lang.c (def_fn_type): Likewise.
14101 2011-03-25 Richard Guenther <rguenther@suse.de>
14103 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
14104 also generate copies.
14105 (fini_copy_prop): Handle constant values properly.
14107 2011-03-25 Jakub Jelinek <jakub@redhat.com>
14109 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
14110 mode size instead of bitsize with DWARF2_ADDR_SIZE.
14111 (hash_loc_operands, compare_loc_operands): Handle
14112 DW_OP_GNU_entry_value.
14114 2011-03-25 Kai Tietz <ktietz@redhat.com>
14116 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
14117 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
14118 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
14119 comment and use macro TARGET_64BIT_MS_ABI instead.
14120 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
14121 and change default behavior for 32-bit MS_ABI.
14122 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
14123 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
14125 (ix86_cfun_abi): Likewise.
14126 (ix86_maybe_switch_abi): Adjust comment.
14127 (init_cumulative_args): Check for bit-ness in MS_ABI case.
14128 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
14129 instead of checking for SYSV_ABI.
14130 (ix86_nsaved_sseregs): Likewise.
14131 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
14133 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
14134 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
14135 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
14136 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
14137 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
14139 2011-03-25 Richard Guenther <rguenther@suse.de>
14141 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
14142 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14143 (verify_gimple): Remove.
14144 * tree-cfg.c (verify_gimple_call): Merge verification
14146 (verify_gimple_phi): Merge verification from verify_stmts.
14147 (verify_gimple_label): New function.
14148 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
14149 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14150 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
14151 (verify_stmts): Rename to verify_gimple_in_cfg.
14152 (verify_gimple_in_cfg): New function.
14153 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
14154 * tree-ssa.c (verify_ssa): Likewise.
14155 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
14157 2011-03-25 Richard Guenther <rguenther@suse.de>
14159 * passes.c (init_optimization_passes): Add FRE pass after
14162 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
14163 Andrew Stubbs <ams@codesourcery.com>
14165 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
14167 (arm_movdi_vfp_cortexa8): New pattern.
14168 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
14169 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
14170 instructions when tuning for Cortex-A8. Set attribute "arch".
14171 * config/arm/arm.md: Move include arm-tune.md up a bit.
14172 (define_attr "arch"): Add "onlya8" and "nota8" values.
14173 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
14175 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14179 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14181 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14182 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14183 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14184 * passes.c (init_optimization_passes): Move
14185 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14187 2011-03-25 Kai Tietz <ktietz@redhat.com>
14189 * c-typeck.c (comptypes_internal): Replace target
14190 hook call of comp_type_attributes by version in tree.c file.
14191 * gimple.c (gimple_types_compatible_p_1): Likewise.
14192 * tree-ssa.c (useless_type_conversion_p): Likewise.
14193 * tree.c (build_type_attribute_qual_variant): Likewise.
14194 (attribute_value_equal): New static helper function.
14195 (comp_type_attributes): New function.
14196 (merge_attributes): Use attribute_value_equal for comparison.
14197 (attribute_list_contained): Likewise.
14198 * tree.h (comp_type_attributes): New prototype.
14200 2011-03-25 Richard Guenther <rguenther@suse.de>
14202 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
14203 of complex types at -O0.
14204 (verify_gimple_assign_binary): Likewise.
14205 (verify_gimple_assign_ternary): Likewise.
14207 2011-03-24 Mark Wielaard <mjw@redhat.com>
14209 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
14210 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
14212 2011-03-24 Mark Wielaard <mjw@redhat.com>
14215 * dwarf2out.c (output_abbrev_section): Only write table when
14216 abbrev_die_table_in_use > 1.
14218 2011-02-24 Richard Henderson <rth@redhat.com>
14220 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
14221 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
14222 (alpha_expand_unaligned_load_words): Use extql.
14223 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
14224 (emit_insxl): Handle all modes for consistency.
14226 2011-02-24 Richard Henderson <rth@redhat.com>
14228 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
14229 (alpha_expand_unaligned_load): Likewise.
14230 (alpha_expand_unaligned_store): Likewise.
14231 (alpha_expand_unaligned_load_words): Likewise.
14232 (alpha_expand_unaligned_store_words): Likewise.
14233 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
14234 (alpha_split_lock_test_and_set_12): Likewise.
14235 (print_operand, alpha_fold_builtin_extxx): Likewise.
14236 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
14237 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
14238 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
14239 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
14240 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
14241 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
14242 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
14243 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
14244 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
14245 (extwl, extll, extql): Similarly.
14246 (inswh, inslh, insqh): Similarly.
14247 (mskbl, mskwl, mskll, mskql): Similarly.
14248 (mskwh, msklh, mskqh): Similarly.
14250 2011-02-24 Richard Henderson <rth@redhat.com>
14252 * config/alpha/alpha.md (attribute isa): Add er, ner.
14253 (attribute enabled): Handle them.
14254 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
14256 2011-02-24 Richard Henderson <rth@redhat.com>
14258 * config/alpha/alpha.md (attribute isa): Add vms.
14259 (attribute enabled): Handle it.
14260 (*movsf): Merge *movsf_{nofix,fix,nofp}.
14261 (*movdf): Merge *movdf_{nofix,fix,nofp}.
14262 (*movtf): Rename from *movtf_internal for consistency.
14263 (*movsi): Merge with *movsi_nt_vms.
14264 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
14265 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
14266 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
14267 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
14269 2011-02-24 Richard Henderson <rth@redhat.com>
14271 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
14272 (extendqisi2, extendhisi2): Likewise.
14273 (extendqidi2): Simplify BWX/non-BWX expansions.
14274 (extendhidi2): Similarly.
14276 2011-02-24 Richard Henderson <rth@redhat.com>
14278 * config/alpha/alpha.md (attribute isa): New.
14279 (attribute enabled): New.
14280 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
14281 (zero_extendqisi2, zero_extendqidi2): Similarly.
14282 (zero_extendhisi2, zero_extendhidi2): Similarly.
14283 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
14285 2011-02-24 Richard Henderson <rth@redhat.com>
14287 * config/alpha/predicates.md (input_operand): Revert last change;
14288 update comment to mention 32-bit VMS rather than Windows.
14290 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14292 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14293 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14294 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14295 * passes.c (init_optimization_passes): Move
14296 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14298 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14300 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
14302 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14304 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
14307 2011-03-24 Jakub Jelinek <jakub@redhat.com>
14310 * simplify-rtx.c (simplify_const_unary_operation): Call
14311 real_convert when changing mode class with FLOAT_EXTEND.
14313 2011-03-24 Nick Clifton <nickc@redhat.com>
14315 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
14316 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14317 * config/rx/rx.c (rx_option_override): Set align_jumps,
14318 align_loops and align_labels if not set by the user.
14319 (rx_align_for_label): New function.
14320 (rx_max_skip_for_label): New function.
14321 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
14322 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
14323 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
14324 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
14325 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
14327 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14329 PR rtl-optimization/48263
14330 * optabs.c (expand_binop_directly): Reinstate convert_modes code
14331 and original commutative_p handling. Use maybe_gen_insn.
14333 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14335 * reload.c (find_reloads_subreg_address): Add address_reloaded
14336 parameter and return true there if the full address has been
14338 (find_reloads_toplev): Pass address_reloaded flag.
14339 (find_reloads_address_1): Don't use address_reloaded parameter.
14341 2011-03-24 Jeff Law <law@redhat.com>
14343 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
14344 unused variable "ann".
14345 (remove_unused_locals): Likewise.
14347 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
14350 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
14353 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14355 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
14356 for invalid symbolic addresses.
14357 (s390_secondary_reload): Don't use s390_check_symref_alignment for
14360 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14362 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
14363 the argument in calls to fold_truth_not_expr.
14365 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14367 * tree.c (record_node_allocation_statistics): New function.
14368 (make_node_stat, copy_node_stat, build_string): Call it.
14369 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
14370 (build1_stat, build_omp_clause): Likewise.
14372 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14374 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
14377 2011-03-24 Richard Guenther <rguenther@suse.de>
14379 PR tree-optimization/48271
14380 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
14381 blocks that still exist.
14383 2011-03-24 Richard Guenther <rguenther@suse.de>
14385 PR tree-optimization/48270
14386 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
14387 not free datarefs before ddrs.
14389 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14391 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
14392 from the address built for a reference with variable offset.
14394 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14397 * config/i386/i386.md (*movdf_internal_rex64): Do not split
14398 alternatives that can be handled with movq or movabsq insn.
14399 (*movdf_internal): Disable for !TARGET_64BIT.
14400 (*movdf_internal_nointeger): Ditto.
14401 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
14403 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14405 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14406 (FUNCTION_ARG_ADVANCE): Likewise.
14407 * tm.texi.in: Change references to them to hook references.
14408 * tm.texi: Regenerate.
14409 * targhooks.c (default_function_arg): Eliminate check for target macro.
14410 (default_function_incoming_arg): Likewise.
14411 (default_function_arg_advance): Likewise.
14412 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14413 (function_arg_advance): Likewise.
14414 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14416 2011-03-24 Richard Guenther <rguenther@suse.de>
14418 PR middle-end/48269
14419 * tree-object-size.c (addr_object_size): Do not double-account
14420 for MEM_REF offsets.
14422 2011-03-24 Diego Novillo <dnovillo@google.com>
14424 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
14425 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
14426 (lto_input_data_block): Move from lto-opts.c. Make extern.
14428 (lto_input_string): Rename from input_string. Make extern.
14430 * lto-streamer-out.c (lto_output_string_with_length): Rename from
14431 output_string_with_length.
14432 Output 0 to indicate a non-NULL string. Update all callers to
14434 (lto_output_string): Rename from output_string. Make extern.
14436 (lto_output_decl_state_streams): Make extern.
14437 (lto_output_decl_state_refs): Make extern.
14438 * lto-streamer.h (lto_input_string): Declare.
14439 (lto_input_data_block): Declare.
14440 (lto_output_string): Declare.
14441 (lto_output_string_with_length): Declare.
14442 (lto_output_decl_state_streams): Declare.
14443 (lto_output_decl_state_refs): Declare.
14445 2011-03-24 Richard Guenther <rguenther@suse.de>
14447 PR tree-optimization/46562
14448 * tree.c (build_invariant_address): New function.
14449 * tree.h (build_invariant_address): Declare.
14450 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
14451 a renamed function moved ...
14452 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
14453 Take valueization callback parameter.
14454 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
14455 * gimple-fold.h: New file.
14456 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
14457 (ccp_fold, fold_const_aggregate_ref,
14458 fold_ctor_reference, fold_nonarray_ctor_reference,
14459 fold_array_ctor_reference, fold_string_cst_ctor_reference,
14460 get_base_constructor): Move ...
14461 * gimple-fold.c: ... here.
14462 (gimple_fold_stmt_to_constant_1): New function
14463 split out from ccp_fold. Take a valueization callback parameter.
14464 Valueize all operands.
14465 (gimple_fold_stmt_to_constant): New wrapper function.
14466 (fold_const_aggregate_ref_1): New function split out from
14467 fold_const_aggregate_ref. Take a valueization callback parameter.
14468 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
14469 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
14470 invariant POINTER_PLUS_EXPRs to invariant form.
14471 (vn_valueize): New function.
14472 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
14473 * tree-vrp.c (vrp_valueize): New function.
14474 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
14475 to fold statements to constants.
14476 * tree-ssa-pre.c (eliminate): Properly guard propagation of
14477 function declarations.
14478 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
14479 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
14481 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14483 * config/h8300/predicates.md (jump_address_operand): Fix register
14486 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
14488 * doc/invoke.texi (max-stores-to-sink): Document.
14489 * params.h (MAX_STORES_TO_SINK): Define.
14490 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
14491 if either vectorization or if-conversion is disabled.
14492 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14493 tree-vect-data-refs.c vect_equal_offsets.
14494 (dr_equal_offsets_p): New function.
14495 (find_data_references_in_bb): Remove static.
14496 * tree-data-ref.h (find_data_references_in_bb): Declare.
14497 (dr_equal_offsets_p): Likewise.
14498 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14499 (vect_drs_dependent_in_basic_block): Update calls to
14500 vect_equal_offsets.
14501 (vect_check_interleaving): Likewise.
14502 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14503 (cond_if_else_store_replacement): Rename to...
14504 (cond_if_else_store_replacement_1): ... this. Change arguments and
14506 (cond_if_else_store_replacement): New function.
14507 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14508 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14510 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
14513 * config/arm/arm.md (casesi): Use the gen_int_mode() function
14514 to subtract lower bound instead of GEN_INT().
14516 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
14521 * doc/extend.texi (Alignment): Move section to match order in TOC.
14522 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14523 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14525 2011-03-23 Jeff Law <law@redhat.com>
14527 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14528 before removing the edge.
14530 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14531 it may have been freed by redirect_branch_edge or
14532 redirect_edge_succ_nodup.
14534 2011-03-23 Richard Guenther <rguenther@suse.de>
14536 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
14537 (check_va_list_escapes): Likewise.
14538 (check_all_va_list_escapes): Likewise.
14540 2011-03-23 Richard Guenther <rguenther@suse.de>
14542 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14543 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14544 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14545 (alias.o): Likewise.
14546 (ipa-type-escape.o): Remove.
14547 (ipa-struct-reorg.o): Likewise.
14548 (GTFILES): Remove ipa-struct-reorg.c.
14549 * alias.c: Do not include ipa-type-escape.h.
14550 * tree-ssa-alias.c: Likewise.
14551 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14552 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14553 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14554 and ipa-type-escape passes.
14555 * tree-pass.h (pass_ipa_type_escape): Remove.
14556 (pass_ipa_struct_reorg): Likewise.
14557 * ipa-struct-reorg.h: Remove.
14558 * ipa-struct-reorg.c: Likewise.
14559 * ipa-type-escape.h: Likewise.
14560 * ipa-type-escape.c: Likewise.
14561 * doc/invoke.texi (-fipa-struct-reorg): Remove.
14562 (--param struct-reorg-cold-struct-ratio): Likewise.
14563 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14564 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14565 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14567 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14569 * config/s390/2084.md: Enable all insn reservations also for z9_ec
14570 cpu attribute value.
14571 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14572 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
14573 * config/s390/s390.c (processor_flags_table): New constant array.
14574 (s390_handle_arch_option): Remove.
14575 (s390_handle_option): Remove s390_handle_arch_option invocations
14576 and OPT_mwarn_framesize_ handling.
14577 (s390_option_override): Remove s390_handle_arch_option invocation.
14578 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
14580 * config/s390/s390.md (cpu attribute): Add z9_ec value.
14581 * config/s390/s390.opt (s390_tune, s390_arch)
14582 (march=): Replace s390_arch_option enum and values with
14583 processor_type. Set variable name to s390_arch. Set
14584 initialization value.
14585 (mtune=): Replace s390_arch_option with processor_type. Set
14586 variable name to s390_tune. Set initialization value.
14588 2011-03-23 Julian Brown <julian@codesourcery.com>
14590 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
14591 accesses which are not naturally aligned.
14593 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14596 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
14598 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14600 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
14601 parameter from "int" to "enum insn_code".
14602 (expand_operand_type): New enum.
14603 (expand_operand): New structure.
14604 (create_expand_operand): New function.
14605 (create_fixed_operand, create_output_operand): Likewise
14606 (create_input_operand, create_convert_operand_to): Likewise.
14607 (create_convert_operand_from, create_address_operand): Likewise.
14608 (create_integer_operand): Likewise.
14609 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
14610 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14611 (expand_insn, expand_jump_insn): Likewise.
14612 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
14613 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
14614 (expand_movstr, expand_builtin___clear_cache): Likewise.
14615 (expand_builtin_lock_release): Likewise.
14616 * explow.c (allocate_dynamic_stack_space): Likewise.
14617 (probe_stack_range): Likewise. Allow check_stack to FAIL,
14618 and use the default handling in that case.
14619 * expmed.c (check_predicate_volatile_ok): Delete.
14620 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
14621 (emit_cstore): Likewise.
14622 * expr.c (emit_block_move_via_movmem): Likewise.
14623 (set_storage_via_setmem, expand_assignment): Likewise.
14624 (emit_storent_insn, try_casesi): Likewise.
14625 (emit_single_push_insn): Likewise. Allow the expansion to fail.
14626 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14627 (expand_vec_shift_expr, expand_binop_directly): Likewise.
14628 (expand_twoval_unop, expand_twoval_binop): Likewise.
14629 (expand_unop_direct, emit_indirect_jump): Likewise.
14630 (emit_conditional_move, vector_compare_rtx): Likewise.
14631 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14632 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14633 (expand_sync_lock_test_and_set): Likewise.
14634 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
14635 (emit_unop_insn): Likewise.
14636 (expand_copysign_absneg): Change icode to an insn_code.
14637 (create_convert_operand_from_type): New function.
14638 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14639 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14640 (expand_insn, expand_jump_insn): Likewise.
14641 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14642 than const_int_operand for operand 2.
14644 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14646 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14649 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14651 * emit-rtl.c (emit_pattern_before_noloc): New function.
14652 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14653 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14654 (emit_pattern_after_noloc): New function.
14655 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14656 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14658 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14660 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14661 (__ffsDI2): Likewise.
14663 2011-03-22 Richard Henderson <rth@redhat.com>
14665 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14666 of !TARGET_ABI_OPEN_VMS.
14667 (alpha_trampoline_init, alpha_start_function): Likewise.
14668 (alpha_expand_epilogue, alpha_file_start): Likewise.
14669 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14670 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14671 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14672 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14673 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14675 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14677 * config/s390/s390-opts.h: New.
14678 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14679 s390_arch_flags, s390_warn_framesize, s390_stack_size,
14680 s390_stack_guard): Remove.
14681 (s390_handle_arch_option): Return void. Take enum
14682 s390_arch_option value instead of string and searching array.
14683 (s390_handle_option): Don't assert that global structures are in
14684 use. Access variables via opts pointer. Use error_at. Don't use
14685 sscanf for -mstack-guard= or -mstack-size=. Update call to
14686 s390_handle_arch_option.
14687 (s390_option_override): Update call to s390_handle_arch_option.
14688 (s390_emit_prologue): Use %d format for s390_stack_size in
14689 diagnostic. Use %wd for HOST_WIDE_INT.
14690 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14691 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14692 * config/s390/s390.opt (config/s390/s390-opts.h): New
14693 HeaderInclude entry.
14694 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14695 s390_arch_flags, s390_warn_framesize): New Variable entries.
14696 (s390_arch_option): New Enum and EnumValue entries.
14697 (march=): Use Enum instead of Var.
14698 (mstack-guard=, mstack-size=): Use UInteger and Var.
14699 (mtune=): Use Enum.
14701 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14703 * config/score/score.c (score_handle_option): Don't assert that
14704 global structures are in use. Access target_flags via opts
14705 pointer. Use value of -march= option to determine target_flags
14707 * config/score/score.opt (march=): Use Enum.
14708 (score_arch): New Enum and EnumValue entries.
14710 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14712 * config/mep/mep.c (option_mtiny_specified): Remove.
14713 (mep_option_override): Move register handling for -mivc2 from
14714 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14715 instead of option_mtiny_specified.
14716 (mep_handle_option): Access target_flags via opts pointer. Don't
14717 assert that global structures are in use. Defer part of -mivc2
14718 handling and move it to mep_option_override.
14719 * config/mep/mep.opt (IVC2): New Mask entry.
14720 (mivc2): Use Var and Defer instead of Mask.
14722 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14724 * config/v850/v850-opts.h: New.
14725 * config/v850/v850.c (small_memory): Replace with
14726 small_memory_physical_max array. Make that array static const.
14727 (v850_handle_memory_option): Take integer value of argument. Take
14728 gcc_options pointer, option text and location. Return void.
14729 Update for changes to small memory structures.
14730 (v850_handle_option): Access target_flags via opts pointer. Don't
14731 assert that global structures are in use. Update calls to
14732 v850_handle_memory_option.
14733 (v850_encode_data_area): Update references to small memory settings.
14734 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14735 (enum small_memory_type): Move to v850-opts.h.
14736 * config/v850/v850.opt (config/v850/v850-opts.h): New
14737 HeaderInclude entry.
14738 (small_memory_max): New Variable entry.
14739 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14740 (mtda, mzda): Likewise.
14742 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14744 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14745 pointer. Don't assert that global structures are in use.
14747 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14749 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14750 via opts pointer. Don't assert that global structures are in use.
14752 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14754 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14755 (munix=93): Use Var.
14756 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14757 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14758 * config/pa/pa-opts.h: New.
14759 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14760 (pa_handle_option): Don't assert that global structures are in
14761 use. Access target_flags via opts pointer. Don't handle
14762 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14764 (pa_option_override): Handle deferred OPT_mfixed_range_.
14766 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14768 * config/mn10300/mn10300-opts.h: New.
14769 * config/mn10300/mn10300.c (mn10300_processor,
14770 mn10300_tune_string): Remove.
14771 (mn10300_handle_option): Don't assert that global structures are
14772 in use. Access mn10300_processor via opts pointer. Don't handle
14774 * config/mn10300/mn10300.h (enum processor_type): Move to
14776 (mn10300_processor): Remove.
14777 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14778 HeaderInclude entry.
14779 (mn10300_processor): New Variable entry.
14782 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14784 * config/microblaze/microblaze.c: Don't include opts.h.
14785 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14786 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14787 (mno-clearbss): Use Var and Warn.
14789 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14791 * config/m32r/m32r-opts.h: New.
14792 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14793 (m32r_handle_option): Don't assert that global structures are in
14794 use. Access target_flags and m32r_cache_flush_func via opts
14795 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
14796 OPT_mno_flush_trap here.
14797 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14798 include of m32r-opts.h.
14799 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14800 HeaderInclude entry.
14801 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14802 (mmodel=): Use Enum and Var.
14803 (m32r_model): New Enum and EnumValue entries.
14804 (mno-flush-trap): Use Var.
14805 (msdata=): Use Enum and Var.
14806 (m32r_sdata): New Enum and EnumValue entries.
14808 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14810 * config/m32c/m32c.c: Don't include opts.h.
14811 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14812 m32c_handle_option): Remove.
14813 (m32c_option_override): Check global_options_set.x_target_memregs
14814 instead of target_memregs_set.
14815 * config/m32c/m32c.h (target_memregs): Remove.
14816 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14819 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14821 * config/iq2000/iq2000-opts.h: New.
14822 * config/iq2000/iq2000.c: Don't include opts.h.
14823 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14824 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14825 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14826 HeaderInclude entry.
14827 (iq2000_tune): New Variable entry.
14828 (march=): Add comment. Use Enum.
14829 (iq2000_arch): New Enum and EnumValue entries.
14830 (mcpu=): Use Enum and Var.
14831 (iq2000_tune): New Enum and EnumValue entries.
14833 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14835 * config/ia64/ia64-opts.h: New.
14836 * config/ia64/ia64.c (ia64_tune): Remove.
14837 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14838 here. Use error_at.
14839 (ia64_option_override): Handle deferred OPT_mfixed_range_.
14840 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14841 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14842 HeaderInclude entry.
14843 (ia64_tune): New Variable entry.
14844 (mfixed-range=): Use Defer and Var.
14845 (mtune=): Use Enum and Var.
14846 (ia64_tune): New Enum and EnumValue entries.
14848 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14850 * config/frv/frv-opts.h: New.
14851 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14853 (frv_cpu_type): Remove.
14854 * config/frv/frv.c: Don't include opts.h.
14855 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14856 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14857 (frv_cpu_type): New Variable entry.
14858 (frv_cpu): New Enum and EnumValue entries.
14860 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14862 * config/cris/cris.c (cris_handle_option): Access target_flags via
14863 opts pointer. Don't assert that global structures are in use.
14864 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14865 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14867 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14869 * config/bfin/bfin-opts.h: New.
14870 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14871 bfin_si_revision, bfin_workarounds): Remove.
14872 (bfin_cpus): Make static const.
14873 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14874 not bfin_lib_id_given.
14875 (bfin_handle_option): Don't set bfin_lib_id_given. Access
14876 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14877 pointer. Use error_at. Don't assert that global structures are in use.
14878 * config/bfin/bfin.h: Include bfin-opts.h.
14879 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14880 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14881 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14882 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14885 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14887 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14888 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14889 or -msoft-float here.
14890 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14891 -msoft-float and -mhard-float.
14892 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14893 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14895 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14897 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14898 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14900 (LIBGCC_SPEC): Don't handle -msoft-float.
14901 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14903 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14905 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14906 -mfloat-abi=*, not -msoft-float and -mhard-float.
14907 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14909 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14910 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14911 mhard-float and msoft-float.
14912 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14913 mfloat-abi=soft in comments, not mhard-float and msoft-float.
14914 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14915 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14917 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14918 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14920 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14922 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14925 2011-03-22 Richard Henderson <rth@redhat.com>
14927 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14928 TARGET_ABI_WINDOWS_NT.
14929 (alpha_output_function_end_prologue): Likewise.
14930 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14931 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14932 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14933 (trap, *movsi_nt_vms): Likewise.
14934 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14935 (*tablejump_osf_nt_internal): Remove.
14936 * config/alpha/predicates.md (input_operand): Only test Pmode.
14938 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14940 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14941 via opts pointer. Use error_at. Don't assert that global
14942 structures are in use.
14944 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14946 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14947 (ix86_handle_option): Access ix86_isa_flags and
14948 ix86_isa_flags_explicit via opts pointer. Don't assert that
14949 global structures are in use.
14950 (ix86_function_specific_save, ix86_function_specific_restore):
14951 Update ix86_isa_flags_explicit field name.
14952 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14953 (ix86_isa_flags_explicit): Rename TargetSave entry to
14954 x_ix86_isa_flags_explicit.
14956 2011-03-22 Richard Henderson <rth@redhat.com>
14958 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14959 (alpha_option_override, direct_return): Likewise.
14960 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14961 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14962 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14963 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14964 (alpha_expand_epilogue, alpha_end_function): Likewise.
14965 (alpha_init_libfuncs): Likewise.
14966 (struct machine_function): Remove unicosmk members.
14967 (print_operand) ['t']: Remove.
14968 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14969 unicosmk_output_module_name, unicosmk_output_common,
14970 current_section_align, unicosmk_output_text_section_asm_op,
14971 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14972 unicosmk_section_type_flags, unicosmk_unique_section,
14973 unicosmk_asm_named_section, unicosmk_insert_attributes,
14974 unicosmk_output_align, unicosmk_defer_case_vector,
14975 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14976 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14977 unicosmk_output_ssib, unicosmk_add_call_info_word,
14978 unicosmk_extern_head, unicosmk_output_default_externs,
14979 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14980 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14981 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14982 * config/alpha/alpha-protos.h: Update.
14983 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14984 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14985 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14986 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14987 (*mulsi_se, mulvsi3): Likewise.
14988 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14989 (*divmodsi_internal, call, call_value, realign): Likewise.
14990 (moddi3, umoddi3): Likewise; remove duplicate expander.
14991 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14992 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14993 (*movdi_nofix): Remove r/U alternative.
14994 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14995 * config/alpha/constraints.md ("U"): Remove.
14996 * config/alpha/predicates.md (call_operand"): Don't test
14997 TARGET_ABI_UNICOSMK.
14999 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15001 * target.def (handle_option): Take gcc_options and
15002 cl_decoded_option pointers and location_t.
15003 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
15004 * doc/tm.texi: Regenerate.
15005 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
15006 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
15007 * lto-opts.c (lto_reissue_options): Generate option structure for
15008 targetm.handle_option call.
15009 * opts.c (target_handle_option): Update call to
15010 targetm.handle_option. Remove assertions about values now passed
15012 * targhooks.c (default_target_handle_option): New.
15013 * targhooks.h (default_target_handle_option): Declare.
15014 * config/alpha/alpha.c: Include opts.h.
15015 (alpha_handle_option): Update to new hook interface.
15016 * config/arm/arm.c: Include opts.h.
15017 (arm_handle_option): Update to new hook interface.
15018 * config/arm/t-arm (arm.o): Update dependencies.
15019 * config/bfin/bfin.c: Include opts.h.
15020 (bfin_handle_option): Update to new hook interface.
15021 * config/cris/cris.c: Include opts.h.
15022 (cris_handle_option): Update to new hook interface.
15023 * config/frv/frv.c: Include opts.h.
15024 (frv_handle_option): Update to new hook interface.
15025 * config/i386/i386.c: Include opts.h.
15026 (ix86_handle_option): Update to new hook interface.
15027 (ix86_valid_target_attribute_inner_p): Generate option structure
15028 for call to ix86_handle_option.
15029 * config/i386/t-i386 (i386.o): Update dependencies.
15030 * config/ia64/ia64.c: Include opts.h.
15031 (ia64_handle_option): Update to new hook interface.
15032 * config/ia64/t-ia64 (ia64.o): Update dependencies.
15033 * config/iq2000/iq2000.c: Include opts.h.
15034 (iq2000_handle_option): Update to new hook interface.
15035 * config/m32c/m32c.c: Include opts.h.
15036 (m32c_handle_option): Update to new hook interface.
15037 * config/m32r/m32r.c: Include opts.h.
15038 (m32r_handle_option): Update to new hook interface.
15039 * config/m68k/m68k.c: Include opts.h.
15040 (m68k_handle_option): Update to new hook interface.
15041 * config/mep/mep.c: Include opts.h.
15042 (mep_handle_option): Update to new hook interface.
15043 * config/microblaze/microblaze.c: Include opts.h.
15044 (microblaze_handle_option): Update to new hook interface.
15045 * config/mips/mips.c: Include opts.h.
15046 (mips_handle_option): Update to new hook interface.
15047 * config/mn10300/mn10300.c: Include opts.h.
15048 (mn10300_handle_option): Update to new hook interface.
15049 * config/pa/pa.c: Include opts.h.
15050 (pa_handle_option): Update to new hook interface.
15051 * config/pdp11/pdp11.c: Include opts.h.
15052 (pdp11_handle_option): Update to new hook interface.
15053 * config/rs6000/rs6000.c: Include opts.h.
15054 (rs6000_handle_option): Update to new hook interface.
15055 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
15056 * config/rx/rx.c: Include opts.h.
15057 (rx_handle_option): Update to new hook interface.
15058 * config/s390/s390.c: Include opts.h.
15059 (s390_handle_option): Update to new hook interface.
15060 * config/score/score.c: Include opts.h.
15061 (score_handle_option): Update to new hook interface.
15062 * config/sh/sh.c: Include opts.h.
15063 (sh_handle_option): Update to new hook interface.
15064 * config/sparc/sparc.c: Include opts.h.
15065 (sparc_handle_option): Update to new hook interface.
15066 * config/v850/v850.c: Include opts.h.
15067 (v850_handle_option): Update to new hook interface.
15069 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15071 * gcc.c (driver_unknown_option_callback): Only permit and save
15072 unknown -Wno- options.
15073 (driver_wrong_lang_callback): Save options directly instead of via
15074 driver_unknown_option_callback.
15076 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15078 * combine.c (simplify_set): Try harder to find the best CC mode when
15079 simplifying a nested COMPARE on the RHS.
15081 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15083 * config/alpha/gnu.h: Remove.
15084 * config/arc: Remove directory.
15085 * config/arm/netbsd.h: Remove.
15086 * config/arm/t-pe: Remove.
15087 * config/crx: Remove directory.
15088 * config/i386/netbsd.h: Remove.
15089 * config/m68hc11: Remove directory.
15090 * config/m68k/uclinux-oldabi.h: Remove.
15091 * config/mcore/mcore-pe.h: Remove.
15092 * config/mcore/t-mcore-pe: Remove.
15093 * config/netbsd-aout.h: Remove.
15094 * config/rs6000/gnu.h: Remove.
15095 * config/sh/sh-symbian.h: Remove.
15096 * config/sh/symbian-base.c: Remove.
15097 * config/sh/symbian-c.c: Remove.
15098 * config/sh/symbian-cxx.c: Remove.
15099 * config/sh/symbian-post.h: Remove.
15100 * config/sh/symbian-pre.h: Remove.
15101 * config/sh/t-symbian: Remove.
15102 * config/svr3.h: Remove.
15103 * config/vax/netbsd.h: Remove.
15104 * config.build: Don't handle i[34567]86-*-pe.
15105 * config.gcc: Remove handling of deprecations for most deprecated
15107 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
15108 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
15109 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
15110 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
15111 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
15112 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
15114 * config.host: Don't handle i[34567]86-*-pe.
15115 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
15116 (ASM_SPEC32): Don't handle -mcall-gnu.
15117 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
15119 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
15120 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
15121 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15122 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
15123 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
15124 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
15125 conditional on SYMBIAN.
15126 * configure.ac: Don't handle powerpc*-*-gnu*.
15127 * configure: Regenerate.
15128 * doc/extend.texi (interrupt attribute): Don't mention CRX.
15129 * doc/install-old.texi (m6811, m6812): Don't mention.
15130 * doc/install.texi (arc-*-elf*): Don't document multilib option.
15131 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
15132 (m68k-uclinuxoldabi): Don't mention.
15133 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
15135 (-mcall-gnu): Remove.
15136 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
15137 families): Remove constraint documentation.
15139 2011-03-22 Marius Strobl <marius@FreeBSD.org>
15141 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
15142 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
15143 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
15145 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15148 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
15149 vector when peeking at the next token for vector, don't expand the
15152 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
15154 * config/avr/avr-protos.h (expand_epilogue): Change prototype
15155 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
15156 * config/avr/avr.c (init_cumulative_args)
15157 (avr_function_arg_advance): Use it.
15158 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
15160 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
15161 (avr_function_ok_for_sibcall): ...this new function.
15162 (avr_lookup_function_attribute1): New static Function.
15163 (avr_naked_function_p, interrupt_function_p)
15164 (signal_function_p, avr_OS_task_function_p)
15165 (avr_OS_main_function_p): Use it.
15166 * config/avr/avr.md ("sibcall", "sibcall_value")
15167 ("sibcall_epilogue"): New expander.
15168 ("*call_insn", "*call_value_insn"): New insn.
15169 ("call_insn", "call_value_insn"): Remove
15170 ("call", "call_value", "epilogue"): Change expander to handle
15173 2011-03-21 Nick Clifton <nickc@redhat.com>
15175 * doc/invoke.texi (Overall Options): Move closing brace to end of
15177 (Optimization Options): Add missing @gol.
15178 (Directory Options): Likewise.
15179 (i386 and x86-64 Options): Likewise.
15180 (RS6000 and PowerPC Options): Likewise.
15181 (i386 and x86-64 Windows Options): Likewise.
15182 (V850 Options): Add text missing from descriptions.
15184 2011-03-22 Richard Henderson <rth@redhat.com>
15186 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
15187 (avr_incoming_return_addr_rtx): New.
15188 (emit_push_byte): New.
15189 (expand_prologue): Use it. Remove incorrect dwarf annotation for
15190 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
15191 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
15192 (emit_pop_byte): New.
15193 (expand_epilogue): Use it. Pop frame pointer by bytes.
15194 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
15195 (INCOMING_RETURN_ADDR_RTX): New.
15196 (INCOMING_FRAME_SP_OFFSET): New.
15197 (ARG_POINTER_CFA_OFFSET): New.
15198 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
15199 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
15202 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
15204 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15206 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15207 (FUNCTION_ARG_ADVANCE): Likewise.
15208 * tm.texi.in: Change references to them to hook references.
15209 * tm.texi: Regenerate.
15210 * targhooks.c (default_function_arg): Eliminate check for target
15212 (default_function_incoming_arg): Likewise.
15213 (default_function_arg_advance): Likewise.
15214 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
15215 (function_arg_advance): Likewise.
15216 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15218 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15220 * tree.c (build_call_1): New function.
15221 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
15223 2011-03-22 Richard Guenther <rguenther@suse.de>
15225 PR tree-optimization/48228
15226 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
15227 for single-arg PHIs.
15229 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
15231 PR rtl-optimization/48143
15232 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
15233 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
15234 sse2_cvtps2pd): Likewise.
15236 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15238 * recog.c (canonicalize_change_group): Use validate_unshare_change.
15240 2011-03-22 Richard Guenther <rguenther@suse.de>
15242 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
15243 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
15244 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
15245 and REALIGN_LOAD_EXPR.
15246 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
15247 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
15248 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
15249 DOT_PROD_EXPR case ...
15250 (expand_expr_real_2): ... here.
15251 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
15252 and REALIGN_LOAD_EXPR.
15253 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
15254 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
15255 (vect_create_epilog_for_reduction): Likewise.
15256 (vectorizable_reduction): Likewise.
15257 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
15258 * tree-vect-stmts.c (vectorizable_load): Likewise.
15260 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15262 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
15264 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15266 * config/s390/s390.c (s390_delegitimize_address): Fix offset
15267 handling for PLTOFF/GOTOFF.
15269 2011-03-22 Nick Clifton <nickc@redhat.com>
15271 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
15272 trailing backslash from the end of the macro definition.
15274 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15276 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
15279 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
15281 * expr.h (prepare_operand): Move to...
15282 * optabs.h (prepare_operand): ...here and change the insn code
15283 parameter from "int" to "enum insn_code".
15284 (insn_operand_matches): Declare.
15285 * expr.c (init_expr_target): Use insn_operand_matches.
15286 (compress_float_constant): Likewise.
15287 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
15288 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
15289 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
15290 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
15292 (gen_cond_trap): Likewise.
15293 (prepare_operand): Likewise. Change icode to an insn_code.
15294 (insn_operand_matches): New function.
15295 * reload.c (find_reloads_address_1): Use insn_operand_matches.
15296 * reload1.c (gen_reload): Likewise.
15297 * targhooks.c (default_secondary_reload): Likewise.
15299 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15301 * config/alpha/alpha.md (unspec): New define_c_enum.
15304 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15307 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
15308 between a call and its CALL_ARG_LOCATION note.
15310 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15312 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
15314 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15318 * c-common.c (shorten_compare): If primopN is first sign-extended
15319 to opN and then zero-extended to result type, set primopN to opN.
15321 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
15323 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
15324 for barrier handlers.
15326 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15328 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
15329 UNSPEC constants to be in the unspec enumeration, and redefine
15330 all UNSPECV constants to be in the unspecv enumeration, so that
15331 dumps print which unspec/unspec_volatile this is.
15332 * config/rs6000/vector.md (UNSPEC_*): Ditto.
15333 * config/rs6000/paired.md (UNSPEC_*): Ditto.
15334 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
15335 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
15336 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
15338 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
15339 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
15340 UNSPECV_LWSYNC, since these are used as unspec_volatile.
15341 * config/rs6000/sync.md (isync, lwsync): Ditto.
15343 2011-03-21 Richard Guenther <rguenther@suse.de>
15345 * params.def (lto-min-partition): Fix typo.
15347 2011-03-21 Richard Guenther <rguenther@suse.de>
15350 * c-decl.c (grokdeclarator): Drop to the main variant only
15351 for array types. Drop flag_gen_aux_info check.
15353 2011-03-21 Richard Guenther <rguenther@suse.de>
15355 PR translation/47911
15356 * params.def (lto-partitions): Fix typo.
15357 (lto-min-partition): Fix wording.
15359 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
15361 * config/rs6000/t-freebsd: Remove duplication from file.
15363 2011-03-21 Richard Guenther <rguenther@suse.de>
15365 PR middle-end/47661
15366 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
15368 2011-03-21 Richard Guenther <rguenther@suse.de>
15371 * params.def (lto-partitions): Require at least 1 partition.
15373 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15375 * gthr-solaris.h: Remove.
15376 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
15377 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
15378 (LIB_SPEC): Likewise.
15379 * config/sol2.opt (threads): Remove.
15380 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
15381 (sparc*-*-solaris2*): Likewise.
15382 * configure.ac (enable_threads): Enable solaris support.
15383 * configure: Regenerate.
15384 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
15385 * doc/install.texi (Configuration, --enable-threads=lib): Remove
15388 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15390 * config.gcc: Obsolete *-*-solaris2.8*.
15391 * doc/install.texi (Specific, *-*-solaris2*): Document it.
15393 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15396 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
15397 reference. Solaris 8 perl works.
15399 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15402 * doc/install.texi (Prerequisites): Move jar etc. up.
15403 Explain support library version requirements.
15405 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15408 * doc/install.texi (Prerequisites): Move Perl to build
15409 requirements. Always necessary on Solaris 2 with Sun ld.
15411 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15413 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
15415 (Specific, i?86-*-solaris2.[89]): Likewise.
15416 (Specific, i?86-*-solaris2.10): Likewise.
15417 (Specific, mips-sgi-irix6): Likewise.
15418 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
15419 Update for binutils 2.21.
15421 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15423 * configure.ac (gcc_cv_lto_plugin): Fix typo.
15424 Allow -fuse-linker-plugin for non-default plugin linker.
15425 * configure: Regenerate.
15427 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
15430 * gengtype.c (files_rules): Added rule for cp/parser.h.
15432 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15435 * config/s390/s390.c (s390_delegitimize_address): Don't call
15436 lowpart_subreg if orig_x has BLKmode.
15438 2011-03-21 Kai Tietz <ktietz@redhat.com>
15441 * doc/plugins.texi: Adjust documentation for plugin register_callback.
15442 * tree.h (attribute_spec): Add new member affects_type_identity.
15443 * attribs.c (empty_attribute_table): Adjust attribute_spec
15445 * config/alpha/alpha.c: Likewise.
15446 * config/arc/arc.c: Likewise.
15447 * config/arm/arm.c: Likewise.
15448 * config/avr/avr.c: Likewise.
15449 * config/bfin/bfin.c: Likewise.
15450 * config/crx/crx.c: Likewise.
15451 * config/darwin.h: Likewise.
15452 * config/h8300/h8300.c: Likewise.
15453 * config/i386/cygming.h: Likewise.
15454 * config/i386/i386.c: Likewise.
15455 * config/ia64/ia64.c: Likewise.
15456 * config/m32c/m32c.c: Likewise.
15457 * config/m32r/m32r.c: Likewise.
15458 * config/m68hc11/m68hc11.c: Likewise.
15459 * config/m68k/m68k.c: Likewise.
15460 * config/mcore/mcore.c: Likewise.
15461 * config/mep/mep.c: Likewise.
15462 * config/microblaze/microblaze.c: Likewise.
15463 * config/mips/mips.c: Likewise.
15464 * config/rs6000/rs6000.c: Likewise.
15465 * config/rx/rx.c: Likewise.
15466 * config/sh/sh.c: Likewise.
15467 * config/sol2.h: Likewise.
15468 * config/sparc/sparc.c: Likewise.
15469 * config/spu/spu.c: Likewise.
15470 * config/stormy16/stormy16.c: Likewise.
15471 * config/v850/v850.c: Likewise.
15473 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15475 * simplify-rtx.c (simplify_binary_operation_1): Handle
15476 (xor (and A B) C) case when B and C are both constants.
15478 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
15480 * tree-dfa.c (add_referenced_var): Fix typo in comment.
15482 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
15485 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
15487 2011-03-20 Jakub Jelinek <jakub@redhat.com>
15489 PR rtl-optimization/48156
15490 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
15491 assume df and df_lr are not NULL.
15493 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15496 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15497 between a call and its CALL_ARG_LOCATION note.
15499 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
15502 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15503 between a call and its corresponding CALL_ARG_LOCATION note.
15505 2011-03-19 Anatoly Sokolov <aesok@post.ru>
15507 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15508 instead of loop. Use HARD_REGISTER_NUM_P predicate.
15509 * haifa-sched.c (setup_ref_regs): Ditto.
15510 * caller-save.c (add_used_regs_1): Ditto.
15511 * dse.c (look_for_hardregs): Ditto.
15512 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15513 * sched-rgn.c (check_live_1): Ditto.
15515 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15517 * c-decl.c (diagnose_mismatched_decls): Give an error for
15518 redefining a typedef with variably modified type.
15520 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15522 * c-decl.c (grokfield): Don't allow typedefs for structures or
15523 unions with no tag by default.
15524 * doc/extend.texi (Unnamed Fields): Update.
15526 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
15528 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15529 Rewrite using indirect functions.
15530 (lwp_slwpcb): Ditto.
15531 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15532 (avx_vinsertf128<mode>): Ditto.
15534 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15536 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15539 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15541 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
15542 splitting between a call and its corresponding CALL_ARG_LOCATION note.
15544 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15546 PR rtl-optimization/48170
15547 * gcse.c (hoist_code): Remove bogus asserts.
15549 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
15551 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15552 computation for prologue/epilogue.
15554 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15556 * Makefile.in (check-consistency): Remove.
15558 2011-03-18 Jakub Jelinek <jakub@redhat.com>
15561 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15562 arange_table_in_use is 0, but either text_section_used or
15563 cold_text_section_used is true. Don't call it if
15564 !info_section_emitted.
15566 2011-03-18 Anatoly Sokolov <aesok@post.ru>
15568 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15569 FUNCTION_VALUE_REGNO_P): Remove.
15570 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15572 * config/avr/avr.c (avr_ret_register): Make static inline.
15573 (avr_function_value_regno_p): New function.
15574 (avr_libcall_value): Make static. Add 'func' argument.
15575 (avr_function_value): Make static. Rename 'func' argument to
15576 'fn_decl_or_type', forward it to avr_libcall_value. Call
15577 avr_ret_register function instead of RET_REGISTER macro.
15578 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15580 2011-03-18 Jason Merrill <jason@redhat.com>
15583 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
15585 2011-03-18 Richard Guenther <rguenther@suse.de>
15587 * doc/install.texi (--enable-gold): Remove.
15588 (--with-plugin-ld): Document.
15589 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
15591 2011-03-18 Andrew Pinski <pinskia@gmail.com>
15593 PR middle-end/47790
15594 * expr.c (optimize_bitfield_assignment_op): Revamp to work
15595 again after expansion changes.
15597 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
15599 * combine.c (try_combine): Do simplification only call of
15600 subst() on i2 even when i1 is present. Update comments.
15602 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
15604 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
15605 and UNSPEC_PCREL_SYMOFF.
15607 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15609 * config/s390/s390.md: Use define_c_enum for the unspec constant
15612 2011-03-18 Richard Henderson <rth@redhat.com>
15613 Jakub Jelinek <jakub@redhat.com>
15616 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
15617 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
15619 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15621 PR middle-end/47725
15622 * combine.c (cant_combine_insn_p): Don't check zero/sign
15623 extended hard registers.
15625 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15627 PR middle-end/47725
15628 * combine.c (cant_combine_insn_p): Check zero/sign extended
15631 2011-03-17 Anatoly Sokolov <aesok@post.ru>
15633 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15634 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15635 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15636 Change return type to bool.
15637 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15639 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15642 * var-tracking.c (prepare_call_arguments): If CALL target
15643 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15644 pc instead of looking it up using cselib_lookup and use
15645 Pmode for it if x has VOIDmode.
15646 * dwarf2out.c (gen_subprogram_die): If also both first and
15647 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15650 * function.c (assign_parms): For data.passed_pointer parms
15651 use MEM of data.entry_parm instead of data.entry_parm itself
15652 as DECL_INCOMING_RTL.
15653 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15654 also when passed and declared mode is the same, DECL_RTL
15655 is a MEM with pseudo as address and DECL_INCOMING_RTL is
15658 2011-03-16 Jeff Law <law@redhat.com>
15660 PR rtl-optimization/37273
15661 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15662 handle them like argument loads from stack slots. Do not double
15663 count memory for memory constants and argument loads from stack slots.
15665 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15668 * var-tracking.c (prepare_call_arguments): Check SUBREG.
15670 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15673 * config/i386/i386.opt: Add Save to -mavx and -mfma.
15675 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15678 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15680 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15681 Clear call_arg_locations and call_arg_loc_last always.
15683 PR middle-end/48152
15684 * var-tracking.c (prepare_call_arguments): If argument needs to be
15685 passed by reference, adjust argtype and mode.
15687 2011-03-17 Richard Guenther <rguenther@suse.de>
15689 PR middle-end/48134
15690 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15691 a value make sure to fold the statement.
15693 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
15696 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15697 return condition with !cfun->calls_alloca.
15699 2011-03-17 Richard Guenther <rguenther@suse.de>
15702 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15703 origin for decls in other ltrans units.
15704 (input_varpool_node): Likewise.
15706 2011-03-17 Richard Guenther <rguenther@suse.de>
15708 PR middle-end/48165
15709 * tree-object-size.c (compute_object_offset): Properly return
15710 the offset operand of MEM_REFs as sizetype.
15712 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15714 PR rtl-optimization/48141
15715 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15716 * dse.c: Include params.h.
15717 (active_local_stores_len): New variable.
15718 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15720 (record_store, check_mem_read_rtx): Decrease it when removing
15722 (scan_insn): Likewise. Increase it when adding to chain, if it
15723 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15724 set active_local_stores to NULL before the addition.
15725 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15727 PR rtl-optimization/48141
15728 * dse.c (record_store): If no positions are needed in an insn
15729 that cannot be deleted, at least unchain it from active_local_stores.
15731 2011-03-16 Dodji Seketeli <dodji@redhat.com>
15734 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15735 (lookup_type_die_strip_naming_typedef): ... here.
15736 (get_context_die): Use it.
15737 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15738 the anonymous struct named by the naming typedef.
15740 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15743 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15744 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15746 2011-03-16 Jeff Law <law@redhat.com>
15748 * tree-vrp.c (identify_jump_threads): Slightly simplify type
15749 check for operands of conditional. Allow type to be a pointer.
15751 2011-03-16 Richard Guenther <rguenther@suse.de>
15753 PR tree-optimization/48149
15754 * fold-const.c (fold_binary_loc): Fold
15755 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15757 2011-03-16 Richard Guenther <rguenther@suse.de>
15759 PR tree-optimization/26134
15760 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15761 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15762 (non_rewritable_mem_ref_base): Handle complex type component
15763 accesses, constrain offsets for vector and complex extracts
15766 2011-03-16 Richard Guenther <rguenther@suse.de>
15768 PR tree-optimization/48146
15769 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15770 operands avoiding the need for renaming.
15772 2011-03-16 Richard Guenther <rguenther@suse.de>
15774 * gimple-fold.c (maybe_fold_reference): Open-code relevant
15775 constant folding. Move MEM_REF canonicalization first.
15776 Rely on fold_const_aggregate_ref for initializer folding.
15777 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15779 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15781 PR middle-end/48136
15782 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15783 arg0/arg1 or their arguments are always fold converted to matching
15786 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15789 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15792 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15793 Handle in-tree gold.
15794 (ld_vers): Extract binutils version for gold.
15795 (gcc_cv_ld_hidden): Handle gold here.
15796 (gcc_cv_lto_plugin): Determine level of linker plugin support.
15797 * configure: Regenerate.
15798 * config.in: Regenerate.
15799 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15800 -fuse-linker-plugin otherwise.
15801 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
15802 (LINK_COMMAND_SPEC): Use it.
15803 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15805 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15807 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15808 * calls.c: Remove debug.h include.
15809 (emit_call_1): Don't call virtual_call_token debug hook.
15810 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15811 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15812 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15813 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15814 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15815 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15816 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15817 dwarf2out_virtual_call): Remove.
15818 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15819 copy_call_info and virtual_call hooks.
15820 (dwarf2out_init): Don't initialize vcall_insn_table,
15821 debug_dcall_section and debug_vcall_section.
15822 (prune_unused_types): Don't mark nodes from dcall_table.
15823 (dwarf2out_finish): Don't output dcall or vcall tables.
15824 * final.c (final_scan_insn): Don't call direct_call or
15825 virtual_call debug hooks.
15826 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15827 virtual_call_token, copy_call_info and virtual_call hooks.
15828 (debug_nothing_uid): Remove prototype.
15829 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15830 copy_call_info and virtual_call hooks.
15831 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15832 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15833 * debug.c (do_nothing_debug_hooks): Likewise.
15834 (debug_nothing_uid): Remove.
15835 * doc/invoke.texi (-fenable-icf-debug): Remove.
15836 * common.opt (-fenable-icf-debug): Likewise.
15838 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15839 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15840 call's MEM. Handle functions returning aggregate through a hidden
15841 first pointer. For virtual calls add clobbered pc to call arguments
15843 * dwarf2out.c (gen_subprogram_die): Emit
15844 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15848 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15849 * rtl.h (ENTRY_VALUE_EXP): Define.
15850 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15851 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15852 * print-rtl.c (print_rtx): Likewise.
15853 * gengtype.c (adjust_field_rtx_def): Likewise.
15854 * var-tracking.c (vt_add_function_parameter): Adjust
15855 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15856 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15857 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15858 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15859 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15861 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15862 Call var_location debug hook even on CALL_INSNs.
15863 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15864 * rtl.def (ENTRY_VALUE): New.
15865 * dwarf2out.c: Include cfglayout.h.
15866 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15867 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15868 (struct call_arg_loc_node): New type.
15869 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15870 tail_call_site_count): New variables.
15871 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15872 DW_TAG_GNU_call_site_parameter.
15873 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15874 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15875 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15876 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15877 and DW_AT_GNU_all_source_call_sites.
15878 (mem_loc_descriptor): Handle ENTRY_VALUE.
15879 (add_src_coords_attributes): Don't add enything if
15880 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15881 (dwarf2out_abstract_function): Save and clear call_arg_location,
15882 call_site_count and tail_call_site_count around dwarf2out_decl call.
15883 (gen_call_site_die): New function.
15884 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15885 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15886 (dwarf2out_function_decl): Clear call_arg_locations,
15887 call_arg_loc_last, set call_site_count and tail_call_site_count
15888 to -1 and free block_map.
15889 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15890 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
15891 followed by any real instructions.
15892 (dwarf2out_begin_function): Set call_site_count and
15893 tail_call_site_count to 0.
15894 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15895 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15896 attempt to force a DIE for it and worst case remove the attribute.
15897 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15898 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15900 * var-tracking.c: Include tm_p.h.
15901 (vt_stack_adjustments): For calls call note_register_arguments.
15902 (argument_reg_set): New variable.
15903 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15904 ensure the VALUE is resolved.
15905 (call_arguments): New variable.
15906 (prepare_call_arguments): New function.
15907 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15908 (struct expand_loc_callback_data): Add ignore_cur_loc field.
15909 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15910 always use the best expression.
15911 (vt_expand_loc): Add ignore_cur_loc argument.
15912 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15913 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15914 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15915 note for all calls.
15916 (vt_add_function_parameter): Use cselib_lookup_from_insn.
15917 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15918 argument. Don't call cselib_preserve_only_values and
15919 cselib_reset_table.
15920 (note_register_arguments): New function.
15921 (vt_initialize): Compute argument_reg_set. Call
15922 vt_add_function_parameters before processing basic blocks instead of
15923 afterwards. For calls call prepare_call_arguments before calling
15924 cselib_process_insn.
15925 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15926 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15927 (var-tracking.o): Depend on $(TM_P_H).
15928 * cfglayout.h (insn_scope): New prototype.
15929 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15930 * cfglayout.c (insn_scope): No longer static.
15931 * insn-notes.def (CALL_ARG_LOCATION): New.
15932 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15933 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15934 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15935 nothing for DECL_EXTERNAL BLOCK_VARS.
15937 2011-03-16 Alan Modra <amodra@gmail.com>
15940 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15941 create invalid offset address for vsx splat insn.
15942 * config/rs6000/predicates.md (splat_input_operand): New.
15943 * config/rs6000/vsx.md (vsx_splat_*): Use it.
15945 2011-03-15 Xinliang David Li <davidxl@google.com>
15948 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15949 (normalize_preds): New function.
15950 (is_use_properly_guarded): Normalize def predicates.
15952 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15955 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15956 in the output template.
15958 2011-03-15 Richard Guenther <rguenther@suse.de>
15960 PR middle-end/47650
15961 * tree-pretty-print.c (dump_function_declaration): Properly
15962 dump unprototyped and varargs function types.
15964 2011-03-15 Richard Guenther <rguenther@suse.de>
15966 PR tree-optimization/13954
15967 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15970 2011-03-15 Richard Guenther <rguenther@suse.de>
15972 PR tree-optimization/48037
15973 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15974 selects into BIT_FIELD_REFs.
15975 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15978 2011-03-15 Jakub Jelinek <jakub@redhat.com>
15980 PR tree-optimization/48129
15981 * builtins.c (fold_builtin_snprintf): Convert to type of
15982 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15983 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15985 2011-03-15 Richard Guenther <rguenther@suse.de>
15987 PR tree-optimization/41490
15988 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15989 value but with VUSE.
15990 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15992 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15993 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15994 * tree-tailcall.c (find_tail_calls): Ignore returns.
15996 2011-03-15 Richard Guenther <rguenther@suse.de>
15998 PR middle-end/48031
15999 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
16000 or variable-indexed array accesses when in gimple form.
16002 2011-03-15 Richard Guenther <rguenther@suse.de>
16004 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
16006 2011-03-15 Alan Modra <amodra@gmail.com>
16009 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
16010 presume symbol_refs without a symbol_ref_decl are suitably
16011 aligned, nor other trees we may see here. Handle anchor symbols.
16012 (legitimate_constant_pool_address_p): Comment. Add mode param.
16013 Check cmodel=medium addresses. Adjust all calls.
16014 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
16015 creating cmodel=medium optimized access to locals.
16016 * config/rs6000/constraints.md (R): Pass QImode to
16017 legitimate_constant_pool_address_p.
16018 * config/rs6000/predicates.md (input_operand): Pass mode to
16019 legitimate_constant_pool_address_p.
16020 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
16023 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16026 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
16027 64-bit constants being loaded into registers other than GPRs such
16028 as loading 0 into a VSX register.
16030 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16032 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
16034 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16036 PR middle-end/47917
16037 * builtins.c (fold_builtin_snprintf): New function.
16038 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
16039 (fold_builtin_4): Likewise.
16041 PR middle-end/38878
16042 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
16043 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
16044 and C - X == X also strip nops from +/-/p+ operand.
16045 When optimizing -X == C, fold C to arg0's type.
16048 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
16049 emit it as add_AT_int instead of add_AT_unsigned.
16051 2011-03-14 Tom Tromey <tromey@redhat.com>
16053 * unwind-dw2.c: Include sys/sdt.h if it exists.
16054 (_Unwind_DebugHook): Use STAP_PROBE2.
16055 * config.in, configure: Rebuild.
16056 * configure.ac: Check for sys/sdt.h.
16058 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
16060 * config/i386/i386.md (ROUND_FLOOR): New constant.
16061 (ROUND_CEIL): Ditto.
16062 (ROUND_TRUNC): Ditto.
16063 (ROUND_MXCSR): Ditto.
16064 (ROUND_NO_EXC): Ditto.
16065 (rint<mode>2): Use new defines instead of numerical constants.
16066 (floor<mode>2): Ditto.
16067 (ceil<mode>2): Ditto.
16068 (btrunc<mode>2): Ditto.
16069 * config/i386/i386-builtin-types.def: Define ROUND function type
16071 * config/i386/i386.c (enum ix86_builtins): Add
16072 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
16073 (struct builtin_description): Add
16074 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
16075 (ix86_expand_sse_round): New static function.
16076 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
16078 (ix86_builtin_vectorized_function): Handle
16079 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16081 2011-03-14 Tom Tromey <tromey@redhat.com>
16083 * c-parser.c (c_parser_asm_string_literal): Clear
16084 warn_overlength_strings.
16086 2011-03-14 Tom Tromey <tromey@redhat.com>
16088 * c-parser.c (disable_extension_diagnostics): Save
16089 warn_overlength_strings.
16090 (restore_extension_diagnostics): Restore warn_overlength_strings.
16092 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16094 * BASE-VER: Change to 4.7.0.
16096 2011-03-14 Richard Guenther <rguenther@suse.de>
16098 PR middle-end/48098
16099 * tree.c (build_vector_from_val): Adjust assert to requirements
16102 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16105 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
16107 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
16109 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
16110 terms of target_flags_explicit. Adjust copyright year.
16112 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
16113 * config/rs6000/t-freebsd: New file. Add override for
16116 2011-03-13 Chris Demetriou <cgd@google.com>
16118 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
16119 (-fno-diagnostics-show-option): this, to reflect current default.
16120 (-Werror=): Update text about -fno-diagnostics-show-option.
16122 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
16125 * config/rs6000/predicates.md (easy_vector_constant_add_self,
16126 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
16127 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
16128 mode is not V2DImode or V2DFmode.
16129 (vspltis_constant): Do not handle V2DImode and V2DFmode.
16130 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
16131 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
16133 (movdi_internal64): Likewise.
16135 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
16137 PR tree-optimization/47127
16138 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
16140 (set_cloog_options): Same.
16141 (scop_to_clast): Same.
16142 (print_clast_stmt): Do not call cloog_state_malloc and
16144 (print_generated_program): Same.
16146 * graphite-clast-to-gimple.h (cloog_state): Declared.
16147 (scop_to_clast): Adjust declaration.
16148 * graphite.c (cloog_state): Defined here.
16149 (graphite_initialize): Call cloog_state_malloc.
16150 (graphite_finalize): Call cloog_state_free.
16152 2011-03-11 Jason Merrill <jason@redhat.com>
16154 * attribs.c (lookup_attribute_spec): Take const_tree.
16157 2011-03-11 Joseph Myers <joseph@codesourcery.com>
16159 * config/sparc/sparc.c (sparc_option_override): Use
16160 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
16162 2011-03-11 Richard Guenther <rguenther@suse.de>
16164 PR tree-optimization/48067
16165 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
16166 multiplication result will be only used once on the target
16169 2011-03-11 Richard Guenther <rguenther@suse.de>
16171 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
16173 2011-03-11 Richard Guenther <rguenther@suse.de>
16176 * tree.c (find_decls_types_r): Do not walk types only reachable
16177 from IDENTIFIER_NODEs.
16179 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16181 PR middle-end/48044
16182 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
16183 all vnode->force_output nodes as needed.
16185 2011-03-11 Jason Merrill <jason@redhat.com>
16188 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
16189 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
16191 2011-03-11 Martin Jambor <mjambor@suse.cz>
16193 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
16196 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16198 PR tree-optimization/48063
16199 * ipa-inline.c (cgraph_decide_inlining): Don't try to
16200 inline functions called once if !tree_can_inline_p (node->callers).
16202 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
16204 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
16206 * config/score/score3.c: Delete.
16207 * config/score/score3.h: Delete.
16208 * config/score/mul-div.S: Delete.
16209 * config/score/sfp-machine.h: Add new file.
16210 * config/score/constraints.md: Add new file.
16211 * config/score/t-score-softfp: Add new file.
16212 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
16213 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
16214 (score7_extra_constraint): Delete.
16215 (score7_option_override): Remove unused code.
16216 * config/score/score.c: Remove score3 and score5 define and code.
16217 * config/score/score.h: Remove score3 and score5 define and code.
16218 * config/score/score.md: Remove score3 template and unusual insn.
16219 * config/score/score.opt: Remove score3 and score5 options.
16221 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16223 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
16224 when _HPUX_SOURCE is defined.
16225 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
16227 2011-03-10 Jason Merrill <jason@redhat.com>
16230 * stor-layout.c (layout_type): Don't set structural equality
16231 on arrays of incomplete type.
16232 * tree.c (type_hash_eq): Handle comparing them properly.
16234 2011-03-10 Jakub Jelinek <jakub@redhat.com>
16237 * config/s390/s390.c (s390_delegitimize_address): Make sure the
16238 result mode matches original rtl mode.
16240 2011-03-10 Nick Clifton <nickc@redhat.com>
16242 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
16243 (andsi3, andsi3_flags): Fix timings for three operand alternative.
16245 2011-03-09 Jakub Jelinek <jakub@redhat.com>
16247 PR rtl-optimization/47866
16248 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
16249 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
16250 if target wasn't scalar.
16251 * function.c (assign_stack_temp_for_type): Assert that neither
16252 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
16253 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
16255 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
16257 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16259 * config/s390/s390-protos.h (s390_label_align): New prototype.
16260 * config/s390/s390.c (s390_label_align): New function.
16261 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
16263 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
16266 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
16267 V2DI/V2DF constants. Only all 0's or all 1's are easy.
16268 (output_vec_const_move): Ditto.
16270 2011-03-08 Anatoly Sokolov <aesok@post.ru>
16272 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
16273 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
16274 * config/mips/mips.c (mips_preferred_reload_class): Make static.
16275 Change 'rclass' argument and result type to reg_class_t.
16276 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16278 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
16280 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16281 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
16282 (TARGET_MEMORY_MOVE_COST): Define.
16283 (avr_register_move_cost, avr_memory_move_cost): New Functions.
16285 2011-03-08 Jakub Jelinek <jakub@redhat.com>
16288 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
16291 PR tree-optimization/48022
16292 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
16295 2011-03-07 Jakub Jelinek <jakub@redhat.com>
16298 * var-tracking.c (find_use_val): Return NULL for
16299 cui->sets && cui->store_p BLKmode MEMs.
16301 2011-03-07 Anatoly Sokolov <aesok@post.ru>
16303 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
16305 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
16306 xstormy16_print_operand_address): Remove.
16307 * config/stormy16/stormy16.c (xstormy16_print_operand,
16308 xstormy16_print_operand_address): Make static.
16309 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16311 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
16314 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16315 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
16318 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
16321 * cfgloopmanip.c (fix_bb_placements): Return immediately
16322 if FROM is BASE_LOOP's header.
16324 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
16326 * gimplify.c (gimplify_function_tree): Fix building calls
16327 to __builtin_return_address.
16329 2011-03-07 Alan Modra <amodra@gmail.com>
16331 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
16332 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
16333 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
16334 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
16336 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
16337 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
16338 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
16339 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
16340 * config/rs6000/rs6000.c
16341 (rs6000_elf_end_indicate_exec_stack): Rename to..
16342 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
16343 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
16344 (rs6000_file_start): ..here.
16345 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
16346 file scope variables.
16347 (call_ABI_of_interest): New function.
16348 (init_cumulative_args): Set above vars when function return value
16349 is a float, vector, or small struct.
16350 (rs6000_function_arg_advance_1): Likewise for function args.
16351 (rs6000_va_start): Set rs6000_passes_float if variable arg function
16352 references float args.
16354 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
16356 * doc/cfg.texi: Remove "See" before @ref.
16357 * doc/invoke.texi: Likewise.
16359 2011-03-05 Jason Merrill <jason@redhat.com>
16361 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
16363 2011-03-05 Anthony Green <green@moxielogic.com>
16365 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
16367 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
16369 PR rtl-optimization/47899
16370 * cfgloopmanip.c (fix_bb_placements): Fix first argument
16371 to flow_loop_nested_p when moving the loop upward.
16373 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
16376 * arm.md (movhi_insn_arch4): Accept any immediate constant.
16378 2011-03-05 Jakub Jelinek <jakub@redhat.com>
16380 PR tree-optimization/47967
16381 * ipa-cp.c (build_const_val): Return NULL instead of creating
16382 VIEW_CONVERT_EXPR for mismatching sizes.
16383 (ipcp_create_replace_map): Return NULL if build_const_val failed.
16384 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
16385 give up on versioning.
16387 2011-03-05 Alan Modra <amodra@gmail.com>
16390 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16391 full cmodel medium/large lo_sum + high addresses.
16393 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16395 * config/s390/s390.c (s390_decompose_address): Reject non-literal
16396 pool references in UNSPEC_LTREL_OFFSET.
16398 2011-03-04 Jan Hubicka <jh@suse.cz>
16401 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
16402 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
16403 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
16405 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
16406 cgraph_add_thunk): Add node pointers.
16407 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
16408 associated to right node.
16409 (input_node): Update use of cgraph_same_body_alias
16410 and cgraph_add_thunk.
16412 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
16414 * config/i386/i386.opt (mprefer-avx128): New flag.
16415 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
16416 modes when the flag -mprefer-avx128 is on.
16418 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
16420 * dwarf2out.c (compare_loc_operands): Fix address handling.
16422 2011-03-04 Alan Modra <amodra@gmail.com>
16424 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
16426 2011-03-04 Richard Guenther <rguenther@suse.de>
16428 PR middle-end/47968
16429 * expmed.c (extract_bit_field_1): Prefer vector modes that
16430 vec_extract patterns can handle.
16432 2011-03-04 Richard Guenther <rguenther@suse.de>
16434 PR middle-end/47975
16435 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
16437 2011-03-04 Richard Henderson <rth@redhat.com>
16439 * explow.c (emit_stack_save): Remove 'after' parameter.
16440 (emit_stack_restore): Likewise.
16441 * expr.h: Update to match.
16442 * builtins.c, calls.c, stmt.c: Likewise.
16443 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
16444 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
16445 * function.c (expand_function_end): Insert the emit_stack_save
16446 sequence before parm_birth_insn instead of after.
16448 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
16450 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
16451 (ssse3_pmaddubsw128): Ditto.
16452 (ssse3_pmaddubsw): Ditto.
16454 2011-03-03 Steve Ellcey <sje@cup.hp.com>
16456 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
16458 2011-03-03 Jakub Jelinek <jakub@redhat.com>
16461 * gimplify.c (omp_add_variable): Only call omp_notice_variable
16462 on TYPE_SIZE_UNIT if it is a DECL.
16465 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
16466 first operand is not is_gimple_mem_ref_addr, try to fold it.
16467 If the operand still isn't is_gimple_mem_ref_addr, clear
16470 2011-03-03 Richard Guenther <rguenther@suse.de>
16472 PR middle-end/47283
16473 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
16475 (refs_may_alias_p_1): For release branches return true if
16476 we are confused by our input.
16478 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16480 * config/s390/s390.c (s390_function_value): Rename to ...
16481 (s390_function_and_libcall_value): ... this.
16482 (s390_function_value): New function.
16483 (s390_libcall_value): New function.
16484 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
16485 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
16486 target macro definitions.
16487 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
16489 2011-03-02 Joseph Myers <joseph@codesourcery.com>
16491 * config/i386/freebsd64.h (CC1_SPEC): Define.
16492 * config/i386/linux64.h (CC1_SPEC): Define.
16493 * config/i386/x86-64.h (CC1_SPEC): Don't define.
16495 2011-03-02 Anatoly Sokolov <aesok@post.ru>
16497 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16499 * config/stormy16/stormy16.c: Include reload.h.
16500 (xstormy16_memory_move_cost): New function.
16501 (TARGET_MEMORY_MOVE_COST): Define.
16503 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
16505 PR rtl-optimization/47925
16506 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16507 with side effects. Remove the more-specific check for volatile asms.
16509 2011-03-02 Alan Modra <amodra@gmail.com>
16512 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16513 toc relative addresses for valid offsets.
16515 2011-03-01 Richard Guenther <rguenther@suse.de>
16517 PR tree-optimization/47890
16518 * tree-vect-loop.c (get_initial_def_for_induction): Set
16519 related stmt properly.
16521 2011-03-01 Richard Guenther <rguenther@suse.de>
16524 * lto-streamer.c (lto_record_common_node): Also register
16525 the canonical type.
16527 2011-03-01 Richard Guenther <rguenther@suse.de>
16530 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16531 Do not stream DECL_ABSTRACT_ORIGIN.
16532 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16533 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16534 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16535 Do not stream DECL_ABSTRACT_ORIGIN.
16536 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16537 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16539 2011-02-28 Anatoly Sokolov <aesok@post.ru>
16541 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16542 FUNCTION_VALUE_REGNO_P): Remove.
16543 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
16544 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16545 Add 'outgoing' argument.
16546 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16548 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16549 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16551 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
16554 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16555 (lookup_filename): Likewise.
16556 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
16558 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
16559 Jakub Jelinek <jakub@redhat.com>
16561 PR middle-end/47893
16562 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16563 (assign_stack_local_1): Change last argument type to int.
16564 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16565 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
16566 don't record padding space into frame_space_list nor use those areas.
16567 (assign_stack_local): Adjust caller.
16568 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16569 of assign_stack_local, pass 0 as last argument.
16570 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
16573 2011-02-28 Jakub Jelinek <jakub@redhat.com>
16576 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
16577 Use target address_mode and pointer_mode hooks instead of hardcoded
16578 Pmode and ptr_mode. Handle some simple cases of extending if
16579 POINTERS_EXTEND_UNSIGNED < 0.
16580 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
16581 Call convert_debug_memory_address.
16582 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
16583 convert_debug_memory_address.
16585 PR middle-end/46790
16586 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
16587 * configure: Regenerated.
16588 * config.in: Regenerated.
16589 * varasm.c (default_function_section): Return NULL
16590 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
16592 2011-02-28 Martin Jambor <mjambor@suse.cz>
16594 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
16595 the description to match the printed values.
16597 2011-02-28 Richard Guenther <rguenther@suse.de>
16599 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
16600 of the copied scope tree.
16602 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16604 * doc/extend.texi (Function Attributes): Avoid deeply (and
16605 wrongly) nested tables.
16607 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16609 PR middle-end/47903
16610 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
16611 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
16612 r isn't op0 nor op1.
16614 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16616 * config/avr/avr.md: Remove magic comment for emacs.
16618 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16621 * config/avr/avr.c (avr_option_override): Use error on bad options.
16622 (avr_help): New function.
16623 (TARGET_HELP): Define.
16625 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
16628 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16629 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16631 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
16633 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16634 (ARM Options): Ditto.
16635 (i386 and x86-64 Options): Ditto.
16636 (RX Options): Ditto.
16637 (SPARC Options): Ditto.
16639 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
16641 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16642 FreeBSD 6 and later. Generally use cpu generic.
16644 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16646 * doc/cpp.texi: Update copyright years.
16648 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
16651 * config/lm32/lm32.md (ashrsi3): Added needed variable.
16653 2011-02-25 Jon Beniston <jon@beniston.com>
16656 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16657 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16658 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16659 (lm32_block_move_inline): Add type cast to remove warning.
16660 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
16661 (gen_int_relational): Move declarations to start of function.
16663 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
16665 PR tree-optimization/45470
16666 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16667 can throw internally only.
16668 * tree-vect-stmts.c (vectorizable_call): Likewise.
16670 2011-02-24 Anatoly Sokolov <aesok@post.ru>
16672 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16673 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16674 * config/stormy16/stormy16-protos.h
16675 (xstormy16_preferred_reload_class): Remove.
16676 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16677 static. Change 'rclass' argument and return type to reg_class_t.
16678 (TARGET_PREFERRED_RELOAD_CLASS,
16679 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16681 2011-02-24 Richard Guenther <rguenther@suse.de>
16683 * lto-streamer-in.c (input_bb): Do not find referenced vars
16684 in debug statements.
16686 2011-02-23 Jason Merrill <jason@redhat.com>
16688 * common.opt (fabi-version): Document v5 and v6.
16690 2011-02-23 Richard Guenther <rguenther@suse.de>
16692 PR tree-optimization/47849
16693 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16695 2011-02-23 Jie Zhang <jie@codesourcery.com>
16697 * opts-common.c (decode_cmdline_option): Print empty string
16698 argument as "" in decoded->orig_option_with_args_text.
16699 * gcc.c (execute): Print empty string argument as ""
16700 in the verbose output.
16701 (do_spec_1): Keep empty string argument.
16703 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16705 * config.gcc: Declare score-* and crx-* obsolete.
16707 2011-02-23 Jie Zhang <jie@codesourcery.com>
16709 PR rtl-optimization/47763
16710 * web.c (web_main): Ignore naked clobber when replacing register.
16712 2011-02-22 Anatoly Sokolov <aesok@post.ru>
16714 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16717 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16720 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16722 2011-02-22 Mike Stump <mikestump@comcast.net>
16724 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16726 * configure: Regenerate.
16728 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16730 PR rtl-optimization/46002
16731 * ira-color.c (update_copy_costs): Change class intersection
16732 test to reg_class_contents[] test of 'hard_regno'.
16734 2011-02-21 Joseph Myers <joseph@codesourcery.com>
16736 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16737 than Driver option.
16738 * config/hpux11.opt (mt): Likewise.
16739 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16740 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16741 * config/vax/elf.opt (mno-asm-pic): Likewise.
16742 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16744 2011-02-21 Mike Stump <mikestump@comcast.net>
16747 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16748 tree so we can get save the type.
16749 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16750 for CFString instead of trying to use past the end of the builtins.
16751 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16752 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16753 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16754 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16755 Rename to darwin_builtin_cfstring.
16756 (darwin_init_cfstring_builtins): Return the built type.
16758 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
16761 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16762 (_mm256_insert_epi64): Use _mm_insert_epi64.
16764 2011-02-21 Anatoly Sokolov <aesok@post.ru>
16766 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16767 * config/stormy16/stormy16-protos.h
16768 (xstormy16_mode_dependent_address_p): Remove.
16769 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16770 Make static. Change return type to bool. Change argument type to
16771 const_rtx. Remove dead code.
16772 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16774 2011-02-21 Richard Guenther <rguenther@suse.de>
16777 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16778 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16779 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16781 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16782 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16784 2011-02-20 Richard Guenther <rguenther@suse.de>
16787 * tree.c (free_lang_data_in_decl): Clean builtins from
16788 the TU decl BLOCK_VARS.
16790 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
16794 * haifa-sched.c (fix_tick_ready): Skip tick computation
16797 2011-02-19 Richard Guenther <rguenther@suse.de>
16800 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16801 Remove lazy BLOCK_VARS streaming.
16802 (lto_input_ts_block_tree_pointers): Likewise.
16803 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16805 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16807 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16809 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16811 * config/i386/biarch32.h, config/i386/mach.h,
16812 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16814 2011-02-19 Jakub Jelinek <jakub@redhat.com>
16817 * config/i386/i386.md (peephole2 for shift and plus): Use
16818 operands[1] original mode in the first insn.
16820 2011-02-18 Mike Stump <mikestump@comcast.net>
16822 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16824 2011-02-18 Jan Hubicka <jh@suse.cz>
16826 PR middle-end/47788
16827 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16828 to zero when the function is not inlinable at all.
16830 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16832 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16833 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16834 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16835 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16836 * config/pa/t-pa64: Likewise.
16837 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16839 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16842 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16844 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16847 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16849 2011-02-18 Anatoly Sokolov <aesok@post.ru>
16851 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16852 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16853 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16854 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16855 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16856 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16857 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16858 m32r_load_postinc_p, m32r_store_preinc_predec_p,
16859 m32r_legitimate_address_p): New functions.
16860 * config/m32r/constraints.md (constraint "S"): Don't use
16861 STORE_PREINC_PREDEC_P.
16862 (constraint "U"): Don't use LOAD_POSTINC_P.
16864 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
16866 PR rtl-optimization/46178
16867 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16868 compute ira_hard_regno_cover_class[].
16870 2011-02-18 Richard Guenther <rguenther@suse.de>
16873 * lto-streamer.h (lto_global_var_decls): Declare.
16874 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16875 statics for global var processing.
16877 2011-02-18 Richard Guenther <rguenther@suse.de>
16879 PR tree-optimization/47737
16880 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16881 edge dominance check.
16883 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16886 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16887 avoid invalid rtx sharing.
16889 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
16891 * doc/cpp.texi (Obsolete Features): Add background on the
16892 origin of assertions.
16894 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
16896 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16898 * config/darwin.c (output_objc_section_asm_op): Added support for
16900 (is_objc_metadata): New.
16901 (darwin_objc2_section): New.
16902 (darwin_objc1_section): New.
16903 (machopic_select_section): Added support for ABI v1 and v2.
16904 (darwin_emit_objc_zeroed): New.
16905 (darwin_output_aligned_bss): Detect objc metadata and treat it
16907 (darwin_asm_output_aligned_decl_common): Same.
16908 (darwin_asm_output_aligned_decl_local): Same.
16909 * config/darwin-sections.def: Updated for ABI v1 and v2.
16910 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16911 compiling Objective-C code for the NeXT runtime, default to using
16912 ABI version 0 for 32-bit, and version 2 for 64-bit.
16914 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16916 * common.opt (optimize_fast): New Variable.
16917 * opts.c (default_options_optimization): Use opts->x_optimize_fast
16918 instead of local variable ofast.
16920 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
16922 * doc/invoke.texi (fobjc-abi-version): Documented.
16923 (fobjc-nilcheck): Documented.
16924 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16927 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16930 * common.opt (export-dynamic): New Driver option.
16931 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16933 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16935 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16937 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
16938 Jan Hubicka <jh@suse.cz>
16942 * cfgexpand.c (account_used_vars_for_block): Remove.
16943 (estimated_stack_frame_size): Use referenced vars.
16944 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16945 that were referenced in the original function. Test src_fn
16946 rather than cfun. Drop redundant get_var_ann.
16947 (setup_one_parameter): Drop redundant get_var_ann.
16948 (declare_return_variable): Likewise.
16949 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16950 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16951 * ipa-inline.c (compute_inline_parameters): Do not compute
16952 disregard_inline_limits here.
16953 (compute_inlinable_for_current, pass_inlinable): New.
16954 (pass_inline_parameters): Require PROP_referenced_vars.
16955 * cgraphunit.c (cgraph_process_new_functions): Don't run
16956 compute_inline_parameters explicitly unless function is in SSA form.
16957 (cgraph_analyze_function): Set .disregard_inline_limits.
16958 * tree-sra.c (convert_callers): Compute inliner parameters
16959 only for functions already in SSA form.
16961 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16963 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16964 -mlittle-endian-data.
16966 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16968 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16969 -mno-fpu, not -fpu and -no-fpu.
16970 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16971 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16973 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
16976 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16977 input reload with PLUS RTX.
16979 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16981 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16982 of InverseVar(MDMX).
16984 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16986 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16989 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16991 * config/mn10300/mn10300.opt (mno-crt0): New.
16993 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16995 * config/m68k/uclinux.opt (static-libc): New Driver option.
16997 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16999 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
17001 2011-02-16 Joseph Myers <joseph@codesourcery.com>
17003 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
17004 %{muser-extend-enabled}.
17006 2011-02-16 Richard Guenther <rguenther@suse.de>
17008 PR tree-optimization/47738
17009 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
17010 the TODO from tree_predictive_commoning.
17012 2011-02-15 Jeff Law <law@redhat.com>
17015 2011-01-25 Jeff Law <law@redhat.com>
17017 PR rtl-optimization/37273
17018 * ira-costs.c (scan_one_insn): Detect constants living in memory and
17019 handle them like argument loads from stack slots. Do not double
17020 count memory for memory constants and argument loads from stack slots.
17022 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17024 PR middle-end/47725
17025 * combine.c (cant_combine_insn_p): Revert the last change.
17027 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
17030 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
17031 mode for vector constants. Remove code that checks for TImode.
17033 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17037 * cgraph.h (compute_inline_parameters): Return void.
17038 * ipa-inline.c (compute_inline_parameters): Adjust.
17040 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17044 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
17046 * cfgexpand.c (estimated_stack_frame_size): Likewise.
17047 * ipa-inline.c (compute_inline_parameters): Adjust.
17049 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17053 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
17054 Adjust all users. Pass FN to...
17055 * tree-flow-inline.h (first_referenced_var): ... this. Add
17057 * ipa-struct-reorg.c: Adjust.
17058 * tree-dfa.c: Adjust.
17059 * tree-into-ssa.c: Adjust.
17060 * tree-sra.c: Adjust.
17061 * tree-ssa-alias.c: Adjust.
17062 * tree-ssa-live.c: Adjust.
17063 * tree-ssa.c: Adjust.
17064 * tree-ssanames.c: Adjust.
17065 * tree-tailcall.c: Adjust.
17067 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17071 * tree-flow.h (referenced_var_lookup): Add fn parameter.
17072 Adjust all callers.
17073 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
17074 * tree-flow-inline.h: Adjust.
17075 * gimple-pretty-print.c: Adjust.
17076 * tree-into-ssa.c: Adjust.
17077 * tree-ssa.c: Adjust.
17078 * cfgexpand.c: Adjust.
17080 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17082 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
17083 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17084 (EXTRA_CONSTRAINT): Delete.
17085 * config/iq2000/constraints.md: New file.
17086 * config/iq2000/iq2000.md: Include it.
17087 (define_insn ""): Delete.
17088 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
17089 unsupported constraint letters from patterns.
17090 (call_value, call_value_internal1): Likewise.
17091 (call_value_multiple_internal1): Likewise.
17093 2011-02-15 Nick Clifton <nickc@redhat.com>
17095 * config/mn10300/mn10300.c: Include tm-constrs.h.
17096 (struct liw_data): New data structure describing an LIW candidate
17098 (extract_bundle): Use struct liw_data. Allow small integer
17099 operands for some instructions.
17100 (check_liw_constraints): Use struct liw_data. Remove swapped
17101 parameter. Add comments describing the checks. Fix bug when
17102 assigning the source of liw1 to the source of liw2.
17103 (liw_candidate): Delete. Code moved into extract_bundle.
17104 (mn10300_bundle_liw): Use struct liw_data. Check constraints
17106 * config/mn10300/predicates.md (liw_operand): New predicate.
17107 Allows registers and small integer constants.
17108 * config/mn10300/constraints.md (O): New constraint. Accetps
17109 integers in the range -8 to +7 inclusive.
17110 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
17111 for moving a small integer into a register. Give this alternative
17113 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
17114 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
17115 using the J,K,L and M constraints,
17116 (liw): Remove SI mode on second operands to allow for HI and QI
17118 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
17121 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17123 PR middle-end/47725
17124 * combine.c (cant_combine_insn_p): Check zero/sign extended
17127 2011-02-15 Richard Guenther <rguenther@suse.de>
17129 PR tree-optimization/47743
17130 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
17131 for a non-type-compatible VN lookup bail out.
17133 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17135 * config/fr30/constraints.md: New file.
17136 * config/fr30/fr30.md: Include it.
17137 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
17138 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17139 (EXTRA_CONSTRAINT): Delete.
17141 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17143 * config/frv/constraints.md: New file.
17144 * config/frv/predicates.md: Include it.
17145 * config/frv/frv.c (reg_class_from_letter): Delete.
17146 (frv_option_override): Don't initialize it.
17147 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
17148 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
17149 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
17150 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17151 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
17152 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17153 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
17154 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
17155 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
17156 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
17157 (REG_CLASS_FROM_CONSTRAINT): Delete.
17159 2011-02-15 Jakub Jelinek <jakub@redhat.com>
17161 PR middle-end/47581
17162 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
17163 if frame size is 0 in a leaf function.
17165 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17168 * config/alpha/host-osf.c: New file.
17169 * config/alpha/x-osf: New file.
17170 * config.host (alpha*-dec-osf*): Use it.
17172 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17174 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17175 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
17176 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
17177 (rx_mode_dependent_address_p): ...this. Make static. Change argument
17179 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17181 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17183 * config/stormy16/constraints.md: New file.
17184 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
17185 Use satisfies_constraint_Q and satisfies_constraint_R.
17186 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
17188 (xstormy16_legitiamte_address_p): Declare.
17189 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
17190 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17191 (EXTRA_CONSTRAINT): Delete.
17192 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17194 (xstormy16_extra_constraint_p): Delete.
17196 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17198 PR tree-optimization/46494
17199 * loop-unroll.c (split_edge_and_insert): Adjust comment.
17200 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
17201 (pass_rtl_loop_done): Add TODO_verify_flow.
17202 * fwprop.c (pass_rtl_fwprop): Likewise.
17203 * modulo-sched.c (pass_sms): Likewise.
17204 * tree-ssa-dom.c (pass_dominator): Likewise.
17205 * tree-ssa-loop-ch.c (pass_ch): Likewise.
17206 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
17207 (pass_tree_loop_done): Likewise.
17208 * tree-ssa-pre.c (execute_pre): Likewise.
17209 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17210 * tree-ssa-sink.c (pass_sink_code): Likewise.
17211 * tree-vrp.c (pass_vrp): Likewise.
17213 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17215 * config/v850/constraints.md: New file.
17216 * config/v850/v850.md: Include it.
17217 * config/v850/predicates.md (reg_or_0_operand): Use
17218 satisfies_constraint_G.
17219 (special_symbolref_operand): Use satisfies_constraint_K.
17220 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
17221 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
17222 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
17223 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17224 (EXTRA_CONSTRAINT): Delete.
17225 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
17226 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
17227 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
17229 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17232 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
17235 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17237 * config/mcore/constraints.md: New file.
17238 * config/mcore/mcore.md: Include it.
17239 * config/mcore/mcore.c (reg_class_from_letter): Delete.
17240 * config/mcore/mcore.h (reg_class_from_letter): Delete.
17241 (REG_CLASS_FROM_LETTER): Delete.
17242 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
17243 insn_const_int_ok_for_constraint.
17244 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
17245 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
17246 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17247 (EXTRA_CONSTRAINT): Delete.
17249 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17252 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
17253 (IS_SIGHANDLER): Define.
17254 (sparc64_is_sighandler): New function, split off from
17255 sparc64_fallback_frame_state.
17256 (sparc_is_sighandler): New function, split off from
17257 sparc_fallback_frame_state.
17258 (sparc64_fallback_frame_state): Merge with ...
17259 (sparc_fallback_frame_state): ... this into ...
17260 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
17261 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
17262 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
17263 stack instead of hardcoded offsets.
17265 2011-02-14 Andriy Gapon <avg@freebsd.org>
17268 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
17270 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17272 * configure: Regenerate.
17274 2011-02-12 Joseph Myers <joseph@codesourcery.com>
17277 * gcc.c (asm_options): Correct spec matching --target-help.
17279 2011-02-12 Martin Jambor <mjambor@suse.cz>
17281 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
17282 to gimple call error.
17284 2011-02-12 Mike Stump <mikestump@comcast.net>
17286 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
17287 comments in backslash regions.
17289 2011-02-12 Mike Stump <mikestump@comcast.net>
17290 Jakub Jelinek <jakub@redhat.com>
17291 Iain Sandoe <iains@gcc.gnu.org>
17294 * dwarf2out.c (output_cfa_loc): When required, apply the
17295 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
17296 (output_loc_sequence): Likewise.
17297 (output_loc_operands_raw): Likewise.
17298 (output_loc_sequence_raw): Likewise.
17299 (output_cfa_loc): Likewise.
17300 (output_loc_list): Suppress register number adjustment when
17301 calling output_loc_sequence()
17302 (output_die): Likewise.
17304 2011-02-12 Anatoly Sokolov <aesok@post.ru>
17306 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17308 * config/xtensa/xtensa.c (xtensa_register_move_cost,
17309 xtensa_memory_move_cost): New functions.
17310 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
17312 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
17315 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
17316 in the current directory.
17317 * configure: Rebuilt.
17319 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17321 * config/darwin.c (darwin_override_options): Add a hunk missed
17322 from the commit of r168571. Trim comment line lengths and
17323 correct indents of the preceding block.
17325 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17327 * gcc.c (driver_handle_option): Concatenate the argument to -F with
17330 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17332 * common.opt (nostartfiles): New Driver option.
17334 2011-02-11 Xinliang David Li <davidxl@google.com>
17336 PR tree-optimization/47707
17337 * tree-chrec.c (convert_affine_scev): Keep type precision.
17339 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
17341 PR tree-optimization/47420
17342 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
17344 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
17346 PR rtl-optimization/47614
17347 * rtl.h (check_for_inc_dec): Declare.
17348 * dse.c (check_for_inc_dec): Externalize...
17349 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
17350 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
17352 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17355 * gcc.c (main): Do not compile inputs if there were errors in
17357 * opts-common.c (read_cmdline_option): Check for wrong language
17358 after other error checks.
17360 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
17362 * cgraph.c: Fix comment typos.
17363 * cgraph.h: Likewise.
17364 * cgraphunit.c: Likewise.
17365 * ipa-cp.c: Likewise.
17366 * ipa-inline.c: Likewise.
17367 * ipa-prop.c: Likewise.
17368 * ipa-pure-const.c: Likewise.
17369 * ipa-ref.c: Likewise.
17370 * ipa-reference.c: Likewise.
17372 2011-02-11 Jakub Jelinek <jakub@redhat.com>
17375 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
17377 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17380 * doc/sourcebuild.texi (Require Support): Document
17381 dg-require-ascii-locale.
17383 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
17385 * doc/lto.texi (Write summary): Fix missing parentheses.
17387 2011-02-10 DJ Delorie <dj@redhat.com>
17389 * config/m32c/m32c.c (m32c_option_override): Disable
17390 -fcombine-stack-adjustments until flag value tracking and compare
17391 optimization can be rewritten.
17393 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
17395 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
17397 (PROCESSOR_DEFAULT64): Likewise.
17399 2011-02-10 Richard Henderson <rth@redhat.com>
17401 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
17402 change from 2011-02-03.
17403 * config/rx/rx.c (flags_from_code): Likewise.
17404 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
17405 is valid, n/pz otherwise.
17406 (rx_select_cc_mode): Return CCmode if Y is not zero.
17408 2011-02-10 Richard Guenther <rguenther@suse.de>
17410 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
17412 2011-02-10 Richard Guenther <rguenther@suse.de>
17414 PR tree-optimization/47677
17415 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
17417 2011-02-10 Jakub Jelinek <jakub@redhat.com>
17420 * combine.c (make_compound_operation): Only change shifts into
17421 multiplication for SCALAR_INT_MODE_P.
17423 2011-02-10 Jie Zhang <jie@codesourcery.com>
17427 2011-02-05 Jie Zhang <jie@codesourcery.com>
17429 * web.c (entry_register): Don't clobber the number of the
17430 first uninitialized reference in used[].
17432 2011-02-09 Richard Guenther <rguenther@suse.de>
17434 PR tree-optimization/47664
17435 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
17438 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
17442 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
17444 (PROCESSOR_DEFAULT64): Same.
17445 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
17447 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17449 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
17451 2011-02-09 Martin Jambor <mjambor@suse.cz>
17453 PR middle-end/45505
17454 * tree-sra.c (struct access): New flags grp_scalar_read and
17455 grp_scalar_write. Changed description of assignment read and write
17457 (dump_access): Dump new flags, reorder all of them.
17458 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
17459 to detect multiple scalar reads.
17460 (analyze_access_subtree): Use the new scalar read write flags instead
17461 of the old flags. Adjusted comments.
17463 2011-02-08 DJ Delorie <dj@redhat.com>
17466 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
17469 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17471 * config/m68k/uclinux.opt: New.
17472 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
17474 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17476 * config/cris/elf.opt (sim): New Driver option.
17478 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17480 * config/xtensa/elf.opt: New.
17481 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
17483 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17485 * config/vax/elf.opt: New.
17486 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
17488 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17490 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
17492 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17494 * config/gnu-user.opt: New.
17495 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17496 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17497 *-*-uclinux*): Use gnu-user.opt.
17499 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
17501 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17502 * config/i386/gnu.h (CPP_SPEC): Likewise.
17504 2011-02-08 Ian Lance Taylor <iant@google.com>
17506 * common.opt (fcx-limited-range): Add SetByCombined flag.
17507 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17508 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17509 (fassociative-math, freciprocal-math): Likewise.
17510 (funsafe-math-optimizations): Likewise.
17511 * opth-gen.awk: Handle SetByCombined.
17512 * optc-gen.awk: Likewise.
17513 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
17514 (set_unsafe_math_optimizations_flags): Likewise.
17515 * doc/options.texi (Option properties): Document SetByCombined.
17517 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17519 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17520 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17521 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17522 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17523 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17525 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
17527 PR tree-optimization/46834
17528 PR tree-optimization/46994
17529 PR tree-optimization/46995
17530 * graphite-sese-to-poly.c (used_outside_reduction): New.
17531 (detect_commutative_reduction): Call used_outside_reduction.
17532 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17533 translate_scalar_reduction_to_array only when at least one
17534 loop-phi/close-phi tuple has been detected.
17536 2011-02-08 Richard Guenther <rguenther@suse.de>
17538 PR middle-end/47639
17539 * tree-vect-generic.c (expand_vector_operations_1): Update
17541 (expand_vector_operations): ... not here. Cleanup EH info
17542 and the CFG if required.
17544 2011-02-08 Richard Guenther <rguenther@suse.de>
17546 PR tree-optimization/47641
17547 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17548 require type compatibility.
17550 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17552 * gimple-low.c (lower_function_body): Don't remove the location of
17553 the return statement here.
17554 (lower_gimple_return): Do it here instead but only if the return
17555 statement is actually used twice.
17557 2011-02-08 Richard Guenther <rguenther@suse.de>
17559 PR tree-optimization/47632
17560 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17561 unused up_to_stmt parameter, return whether cfg-cleanup is
17562 necessary, remove EH info properly.
17563 (forward_propagate_into_gimple_cond): Adjust caller.
17564 (forward_propagate_into_cond): Likewise.
17565 (forward_propagate_comparison): Likewise.
17566 (tree_ssa_forward_propagate_single_use_vars): Make
17567 forward_propagate_comparison case similar to the two others.
17569 2011-02-08 Nick Clifton <nickc@redhat.com>
17571 * config/mn10300/mn10300.opt (mliw): New command line option.
17572 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
17573 (liw_bundling): New automaton.
17574 (liw): New attribute.
17575 (liw_op): New attribute.
17576 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
17577 (movsi_internal): Add LIW attributes.
17578 (andsi3): Likewise.
17579 (iorsi3): Likewise.
17580 (xorsi3): Likewise.
17581 (addsi3): Separate register and immediate alternatives.
17582 Add LIW attributes.
17583 (subsi3): Likewise.
17585 (aslsi3): Likewise.
17586 (lshrsi3): Likewise.
17587 (ashrsi3): Likewise.
17588 (liw): New pattern.
17589 * config/mn10300/mn10300.c (liw_op_names): New
17590 (mn10300_print_operand): Handle 'W' operand descriptor.
17591 (extract_bundle): New function.
17592 (check_liw_constraints): New function.
17593 (liw_candidate): New function.
17594 (mn10300_bundle_liw): New function.
17595 (mn10300_reorg): New function.
17596 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17597 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
17598 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
17599 __LIW__ or __NO_LIW__.
17600 * doc/invoke.texi: Describe the -mliw command line option.
17602 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17604 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
17605 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17606 pthread_mutex_unlock): Remove.
17607 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
17608 * config/pa/t-pa64: Likewise.
17609 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
17610 shared libc if not linking against libpthread.
17611 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17613 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
17616 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
17617 on 10.6 and later to ensure that we always use the unwinder from
17618 the system. Only add -no_compact_unwind when tarteting darwin
17621 2011-02-07 Steve Ellcey <sje@cup.hp.com>
17624 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
17625 (vec_interleave_lowv2sf): Ditto.
17626 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17627 (vec_extract_oddv2sf): Ditto.
17629 2011-02-07 Mike Stump <mikestump@comcast.net>
17632 Add __ieee_divdc3 entry point.
17633 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17635 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17636 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17637 * config/darwin.c (darwin_rename_builtins): Add.
17638 * config/darwin-protos.h (darwin_rename_builtins): Add.
17640 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
17643 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17646 2011-02-07 Mike Stump <mikestump@comcast.net>
17648 * config/darwin.opt (mmacosx-version-min): Update default OS version.
17650 2011-02-07 Denis Chertykov <chertykov@gmail.com>
17653 * config/avr/libgcc.S (exit): Move .endfunc
17655 2011-02-07 Richard Guenther <rguenther@suse.de>
17657 PR tree-optimization/47615
17658 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17659 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17660 (run_scc_vn): Initialize it.
17661 (visit_reference_op_load): Use it.
17662 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17664 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17666 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17667 DImode trapping arithmetic libfuncs.
17669 2011-02-07 Richard Guenther <rguenther@suse.de>
17671 PR tree-optimization/47621
17672 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17674 (execute_update_addresses_taken): ... here. Make it more
17675 conservative in what we accept.
17677 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17679 * config/sparc/freebsd.h (ASM_SPEC): Define.
17680 * config/sparc/vxworks.h (ASM_SPEC): Define.
17682 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17684 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17686 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
17688 * doc/invoke.texi: Remove reference to compiler internals from
17689 user documentation.
17691 * reg-notes.def: Remove REG_VALUE_PROFILE.
17692 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17694 2011-02-05 Jakub Jelinek <jakub@redhat.com>
17696 PR middle-end/47610
17697 * varasm.c (default_section_type_flags): If decl is NULL,
17698 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17700 2011-02-05 Jie Zhang <jie@codesourcery.com>
17703 * web.c (entry_register): Don't clobber the number of the
17704 first uninitialized reference in used[].
17706 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17708 PR tree-optimization/46194
17709 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17710 (build_classic_dist_vector_1): Do not represent classic distance
17711 vectors when the access functions are variating in different loops.
17713 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17715 * config/mips/iris6.opt: New.
17716 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17718 2011-02-04 Richard Henderson <rth@redhat.com>
17719 Steve Ellcey <sje@cup.hp.com>
17722 * config/ia64/predicates.md (mux1_brcst_element): New.
17723 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17724 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17725 (ia64_unpack_sign): New.
17726 (ia64_expand_unpack): Rewrite using new routines.
17727 (ia64_expand_widen_sum): Ditto.
17728 (ia64_expand_dot_prod_v8qi): Ditto.
17729 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17730 routines, add endian check.
17731 (pmpy2_even): Rename from pmpy2_r, add endian check.
17732 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17733 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17734 (vec_widen_smult_hi_v4hi): Ditto.
17735 (vec_widen_umult_lo_v4hi): Ditto.
17736 (vec_widen_umult_hi_v4hi): Ditto.
17737 (mulv2si3): Change endian checks.
17738 (sdot_prodv4hi): Rewrite with new calls.
17739 (udot_prodv4hi): New.
17740 (vec_pack_ssat_v4hi): Add endian check.
17741 (vec_pack_usat_v4hi): Ditto.
17742 (vec_pack_ssat_v2si): Ditto.
17743 (max1_even): Rename from max1_r, add endian check.
17744 (max1_odd): Rename from max1_l, add endian check.
17745 (*mux1_rev): Format change.
17746 (*mux1_mix): Ditto.
17747 (*mux1_shuf): Ditto.
17748 (*mux1_alt): Ditto.
17749 (*mux1_brcst_v8qi): Use new predicate.
17750 (vec_extract_evenv8qi): Remove endian check.
17751 (vec_extract_oddv8qi): Ditto.
17752 (vec_interleave_lowv4hi): Format change.
17753 (vec_interleave_highv4hi): Ditto.
17754 (mix2_even): Rename from mix2_r, add endian check.
17755 (mix2_odd): Rename from mux2_l, add endian check.
17756 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17757 (vec_extract_evenodd_helper): Format change.
17758 (vec_extract_evenv4hi): Remove endian check.
17759 (vec_extract_oddv4hi): Remove endian check.
17760 (vec_interleave_lowv2si): Format change.
17761 (vec_interleave_highv2si): Format change.
17762 (vec_initv2si): Remove endian check.
17763 (vecinit_v2si): Add endian check.
17764 (reduc_splus_v2sf): Add endian check.
17765 (reduc_smax_v2sf): Ditto.
17766 (reduc_smin_v2sf): Ditto.
17767 (vec_initv2sf): Remove endian check.
17768 (fpack): Add endian check.
17769 (fswap): Add endian check.
17770 (vec_interleave_highv2sf): Add endian check.
17771 (vec_interleave_lowv2sf): Add endian check.
17772 (fmix_lr): Add endian check.
17773 (vec_setv2sf): Format change.
17774 (*vec_extractv2sf_0_be): Use shift to extract operand.
17775 (*vec_extractv2sf_1_be): New.
17776 (vec_pack_trunc_v4hi): Add endian check.
17777 (vec_pack_trunc_v2si): Format change.
17779 2011-02-04 Jakub Jelinek <jakub@redhat.com>
17781 PR inline-asm/23200
17782 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
17783 do bb, locus and block comparison and disallow loads if it is not set.
17784 (stmt_is_replaceable_p): New function.
17785 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17787 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17788 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17790 * tree-flow.h (stmt_is_replaceable_p): New prototype.
17792 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17794 * config/rs6000/xilinx.opt: New.
17795 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17797 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17799 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17801 2011-02-03 Anatoly Sokolov <aesok@post.ru>
17803 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17804 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17805 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17806 secondary_reload_info, xtensa_secondary_reload): Remove.
17807 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17808 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17809 (xtensa_preferred_reload_class): Make static. Change return and
17810 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17811 Use CONST_DOUBLE_P predicate.
17812 (xtensa_preferred_output_reload_class): New function.
17813 (xtensa_secondary_reload): Make static.
17815 2011-02-03 Joseph Myers <joseph@codesourcery.com>
17817 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17818 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17819 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17821 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17823 PR middle-end/31490
17824 * output.h (SECTION_RELRO): Define.
17825 (SECTION_MACH_DEP): Adjust.
17826 (get_variable_section): New prototype.
17827 * varpool.c (varpool_finalize_named_section_flags): New function.
17828 (varpool_assemble_pending_decls): Call it.
17829 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17830 * cgraphunit.c (cgraph_output_in_order): Call
17831 varpool_finalize_named_section_flags.
17832 * varasm.c (get_section): Allow section flags conflicts between
17833 relro and read-only sections if the section hasn't been declared yet.
17834 Set SECTION_OVERRIDE after diagnosing section type conflict.
17835 (get_variable_section): No longer static.
17836 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17837 readonly sections that need relocations.
17838 (decl_readonly_section_1): New function.
17839 (decl_readonly_section): Use it.
17842 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
17843 Steve Ellcey <sje@cup.hp.com>
17845 PR middle-end/31490
17846 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17847 if section attribute used.
17849 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17851 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17852 * config/darwin.c (SECTION_NO_ANCHOR): Define.
17853 (darwin_init_sections): Remove assertion.
17855 2011-02-03 Nick Clifton <nickc@redhat.com>
17857 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17859 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17860 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17861 instead of "n" and "pz".
17862 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17865 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17868 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17869 fma, expand FMA_EXPR as fma{,f,l} call.
17872 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17873 copy them into a unsigned char variable and pass address of it to
17874 lto_output_data_stream.
17877 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17878 around backend_init_target and lang_dependent_init_target calls.
17879 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17880 (verify_cgraph_node): Don't call set_cfun here. Use
17881 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17882 Set error_found for incorrectly represented calls to thunks.
17884 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17887 PR rtl-optimization/43494
17888 * rtl.h (for_each_inc_dec_fn): New type.
17889 (for_each_inc_dec): Declare.
17890 * rtlanal.c (struct for_each_inc_dec_ops): New type.
17891 (for_each_inc_dec_find_inc_dec): New fn.
17892 (for_each_inc_dec_find_mem): New fn.
17893 (for_each_inc_dec): New fn.
17894 * dse.c (struct insn_size): Remove.
17895 (replace_inc_dec, replace_inc_dec_mem): Remove.
17896 (emit_inc_dec_insn_before): New fn.
17897 (check_for_inc_dec): Use it, along with for_each_inc_dec.
17898 (canon_address): Pass mem modes to cselib_lookup.
17899 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
17900 (cselib_lookup_from_insn): Likewise.
17901 (cselib_subst_to_values): Likewise.
17902 * cselib.c (find_slot_memmode): New var.
17903 (cselib_find_slot): New fn. Use it instead of
17904 htab_find_slot_with_hash everywhere.
17905 (entry_and_rtx_equal_p): Use find_slot_memmode.
17906 (autoinc_split): New fn.
17907 (rtx_equal_for_cselib_p): Rename and implement in terms of...
17908 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
17909 Deal with autoinc. Special-case recursion into MEMs.
17910 (cselib_hash_rtx): Likewise.
17911 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
17912 address and MEM modes.
17913 (cselib_subst_to_values): Add memmode, pass it on.
17915 (cselib_lookup): Add memmode argument, pass it on.
17916 (cselib_lookup_from_insn): Add memmode.
17917 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17918 (struct cselib_record_autoinc_data): New.
17919 (cselib_record_autoinc_cb): New fn.
17920 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
17921 mode to cselib_lookup. Reset autoinced REGs here instead of...
17922 (cselib_process_insn): ... here.
17923 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17925 (add_uses): Likewise, also to cselib_subst_to_values.
17926 (add_stores): Likewise.
17927 * sched-deps.c (add_insn_mem_dependence): Pass mode to
17928 cselib_subst_to_values.
17929 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
17930 * gcse.c (do_local_cprop): Adjusted.
17931 * postreload.c (reload_cse_simplify_set): Adjusted.
17932 (reload_cse_simplify_operands): Adjusted.
17933 * sel-sched-dump (debug_mem_addr_value): Pass mode.
17935 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17937 PR tree-optimization/45122
17938 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17939 unsafe assumptions when there's more than one loop exit.
17941 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17944 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17945 Document using vector double with the load/store builtins, and
17946 that the load/store builtins always use Altivec instructions.
17948 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17949 to use altivec memory instructions, even on VSX.
17950 (vector_altivec_store_<mode>): Ditto.
17952 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17955 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17956 V2DF, V2DI support to load/store overloaded builtins.
17958 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17959 altivec load/store builtins for V2DF/V2DI types.
17961 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17962 set avoid indexed addresses on power6 if -maltivec.
17963 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17964 vector_altivec_load/vector_altivec_store builtins.
17965 (altivec_expand_st_builtin): Ditto.
17966 (altivec_expand_builtin): Add VSX memory builtins.
17967 (rs6000_init_builtins): Add V2DI types to internal types.
17968 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17969 load/store builtins.
17970 (rs6000_address_for_altivec): Insure memory address is appropriate
17973 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17974 vec_vsx_ld and vec_vsx_st.
17975 (vsx_store_<mode>): Ditto.
17977 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17978 variables to hold long long types for VSX vector memory builtins.
17979 (RS6000_BTI_unsigned_long_long): Ditto.
17980 (long_long_integer_type_internal_node): Ditti.
17981 (long_long_unsigned_type_internal_node): Ditti.
17983 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17984 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17985 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17987 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17989 (vec_vsx_st): Ditto.
17991 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17993 * config/pa/pa-hpux10.opt: New.
17994 * config/hpux11.opt (pthread): New Driver option.
17995 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17996 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17998 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18000 * config/ia64/vms.opt: New.
18001 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
18003 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
18006 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
18007 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
18008 generator functions.
18009 (vsx_floatuns<VSi><mode>2): Ditto.
18010 (vsx_fix_trunc<mode><VSi>2): Ditto.
18011 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
18013 2011-02-02 Joseph Myers <joseph@codesourcery.com>
18015 * config/i386/djgpp.opt (posix): New Driver option.
18017 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
18019 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
18020 Move to the unsupported targets list.
18022 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
18024 PR rtl-optimization/47525
18025 * df-scan.c: Update copyright years.
18026 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
18027 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
18029 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18031 * config/i386/sysv4.h (TARGET_VERSION): Remove.
18032 (SUBTARGET_RETURN_IN_MEMORY): Remove.
18033 (ASM_OUTPUT_ASCII): Remove.
18034 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
18036 2011-02-02 Jeff Law <law@redhat.com>
18038 PR middle-end/47543
18039 * reload.c (find_reloads_address): Handle reg+d address where both
18040 components are invalid by reloading the entire address.
18042 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18043 Richard Guenther <rguenther@suse.de>
18045 PR tree-optimization/40979
18047 * passes.c (init_optimization_passes): After LIM call copy_prop
18048 and DCE to clean up.
18049 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
18051 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
18053 PR tree-optimization/47576
18054 PR tree-optimization/47555
18055 * doc/invoke.texi (scev-max-expr-complexity): Documented.
18056 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18057 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
18058 * tree-scalar-evolution.c (follow_ssa_edge): Use
18059 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
18061 2011-02-02 Richard Guenther <rguenther@suse.de>
18063 PR tree-optimization/47566
18064 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
18066 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18070 * tree-inline.c (declare_return_variable): Remove unused caller
18075 * tree-flow-inline.h (clear_is_used, is_used_p): New.
18076 * cfgexpand.c (account_used_vars_for_block): Use them.
18077 * tree-nrv.c (tree_nrv): Likewise.
18078 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
18079 (dump_scope_block): Likewise.
18080 (remove_unused_locals): Likewise.
18084 * tree-inline.c (declare_return_variable): Add result decl to
18085 local decls only once.
18086 * gimple-low.c (record_vars_into): Mark newly-created variables
18089 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18095 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18097 (no_real_insns_p, schedule_block, set_priorities): Drop special
18098 treatment of boundary debug insns.
18099 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18100 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
18101 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18102 (BOUNDARY_DEBUG_INSN_P): Likewise.
18103 (SCHEDULE_DEBUG_INSN_P): Likewise.
18104 * sched-rgn.c (init_ready_list): Drop special treatment of
18105 boundary debug insns.
18106 * final.c (rest_of_clean_state): Clear notes' BB.
18108 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18110 * config/openbsd.opt (assert=): New Driver option.
18112 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18114 * config/i386/nto.opt: New.
18115 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
18117 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18119 * config/i386/netware.opt: New.
18120 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
18122 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18124 * config/interix.opt (posix): New Driver option.
18126 2011-02-01 DJ Delorie <dj@redhat.com>
18128 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
18130 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
18133 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
18135 PR tree-optimization/47561
18136 * toplev.c (process_options): Print the Graphite flags. Add
18137 flag_loop_flatten to the list of options requiring Graphite.
18139 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18141 * config/i386/cygming.opt (posix): New Driver option.
18143 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18145 * config/arm/vxworks.opt: New.
18146 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
18148 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18150 * config/alpha/elf.opt: New.
18151 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
18152 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
18154 2011-02-01 Richard Guenther <rguenther@suse.de>
18156 PR tree-optimization/47559
18157 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
18158 store-motion on references that can throw.
18160 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
18162 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
18163 * tree-pass.h (TDF_CSELIB): New macro.
18164 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
18165 cselib_lookup): Check for it rather than for TDF_DETAILS.
18167 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
18170 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
18171 is HOST_BIT_BUCKET.
18173 * opts.c (finish_options): Don't add x_aux_base_name if it is
18176 2011-02-01 Richard Guenther <rguenther@suse.de>
18178 PR tree-optimization/47555
18180 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
18182 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18184 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
18187 * config/lm32/t-lm32: Add multilib for all CPU options.
18189 2011-02-01 Richard Guenther <rguenther@suse.de>
18191 PR tree-optimization/47541
18192 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18193 sure to have a field at offset zero.
18195 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18197 * config/arc/arc.opt (EB, EL): New Driver options.
18199 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18201 * config/alpha/osf5.opt: New.
18202 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
18204 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18206 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
18208 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
18210 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
18211 -floop-interchange.
18212 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
18213 is an alias of -floop-interchange and that it requires the
18214 Graphite infrastructure.
18215 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
18216 flag_loop_interchange based on the value of flag_tree_loop_linear.
18218 2011-01-31 Jakub Jelinek <jakub@redhat.com>
18219 Richard Guenther <rguenther@suse.de>
18221 PR tree-optimization/47538
18222 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
18223 type instead of r1type, except for comparisons. For right
18224 shifts and comparisons punt if there are mismatches in
18225 sizetype vs. non-sizetype types.
18227 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18229 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18232 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18234 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
18236 * configure: Regenerate.
18238 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18240 * configure.ac (gcc_cv_ld_static_option): Define.
18241 (gcc_cv_ld_dynamic_option): Define.
18242 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
18244 (HAVE_LD_STATIC_DYNAMIC): Update message.
18245 (LD_STATIC_OPTION): Define.
18246 (LD_DYNAMIC_OPTION): Define.
18247 * configure: Regenerate.
18248 * config.in: Regenerate.
18249 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
18250 HAVE_LD_STATIC_DYNAMIC]: Use them.
18252 2011-01-31 Nick Clifton <nickc@redhat.com>
18254 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
18255 registers inside interrupt handlers if the handler is not a leaf
18258 2011-01-31 Nick Clifton <nickc@redhat.com>
18260 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
18261 reg_renumber returning an INVALID_REGNUM.
18263 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18266 * doc/install.texi: Document host options discarded when cross
18267 configuring target libraries.
18269 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18272 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18275 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18277 (no_real_insns_p, schedule_block, set_priorities): Drop special
18278 treatment of boundary debug insns.
18279 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18280 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18281 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18282 (BOUNDARY_DEBUG_INSN_P): Likewise.
18283 (SCHEDULE_DEBUG_INSN_P): Likewise.
18284 * sched-rgn.c (init_ready_list): Drop special treatment of
18285 boundary debug insns.
18286 * final.c (rest_of_clean-state): Clear notes' BB.
18288 2011-01-31 Alan Modra <amodra@gmail.com>
18290 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
18291 toc relative expressions as we do in print_operand_address.
18293 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
18295 * doc/extend.texi: Follow spelling conventions.
18296 * doc/invoke.texi: Fix a typo.
18298 2011-01-30 Joseph Myers <joseph@codesourcery.com>
18300 * config/hpux11.opt: New.
18301 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
18302 ia64*-*-hpux*): Use hpux11.opt.
18304 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
18306 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
18309 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18311 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
18314 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18316 * doc/install.texi (Binaries): Remove outdated reference for
18317 Motorola 68HC11/68HC12 downloads.
18319 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18321 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
18324 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
18327 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
18330 2011-01-28 Ahmad Sharif <asharif@google.com>
18332 * value-prof.c (check_counter): Corrected error message.
18334 2011-01-29 Jie Zhang <jie@codesourcery.com>
18336 * config/arm/arm.c (arm_legitimize_reload_address): New.
18337 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18338 arm_legitimize_reload_address.
18339 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
18341 2011-01-28 Ian Lance Taylor <iant@google.com>
18343 * godump.c (go_define): Ignore macros whose definitions include
18344 two adjacent operands.
18346 2011-01-28 Jakub Jelinek <jakub@redhat.com>
18349 * varasm.c (force_const_mem): Store copy of x in desc->constant
18350 instead of x itself.
18351 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
18352 itself into REG_EQUAL note.
18354 2011-01-28 Joseph Myers <joseph@codesourcery.com>
18356 * config/freebsd.opt (posix, rdynamic): New Driver options.
18358 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18360 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
18361 -Bstatic/-Bdynamic.
18362 * configure: Regenerate.
18364 2011-01-27 Joseph Myers <joseph@codesourcery.com>
18366 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
18367 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
18369 2011-01-27 Anatoly Sokolov <aesok@post.ru>
18371 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
18372 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
18373 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18374 (s390_preferred_reload_class): Make static. Change return and
18375 'rclass' argument type to reg_class_t.
18377 2011-01-27 Jan Hubicka <jh@suse.cz>
18379 PR middle-end/46949
18380 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
18381 (process_function_and_variable_attributes): Check defined weakrefs.
18383 2011-01-27 Martin Jambor <mjambor@suse.cz>
18385 PR tree-optimization/47228
18386 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
18387 build_ref_for_offset.
18389 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18391 * config/spu/spu-elf.h (ASM_SPEC): Remove.
18393 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
18395 PR rtl-optimization/46856
18396 * postreload.c (reload_combine_recognize_const_pattern): Do not
18397 separate cc0 setter and user on cc0 targets.
18399 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
18402 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
18403 passed a VOID_TYPE expression, immediately emit an error and
18404 return error_mark_node.
18406 2011-01-26 Jeff Law <law@redhat.com>
18408 PR rtl-optimization/47464
18409 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
18410 rather than may_trap_p as needed.
18412 2011-01-26 DJ Delorie <dj@redhat.com>
18414 PR rtl-optimization/46878
18415 * combine.c (insn_a_feeds_b): Check for the implicit cc0
18416 setter/user dependency as well.
18418 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
18420 PR rtl-optimization/44469
18421 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
18422 after removing trivially dead basic blocks.
18424 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18426 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
18427 * config/frv/frv.h (LINK_SPEC): Likewise.
18428 * config/i386/netware.h (LINK_SPEC): Likewise.
18429 * config/m68k/linux.h (ASM_SPEC): Likewise.
18430 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
18431 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18432 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18433 * config/sparc/linux.h (ASM_SPEC): Likewise.
18434 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18435 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18437 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18439 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
18440 * config/frv/frv.h (ASM_SPEC): Likewise.
18441 * config/m68k/linux.h (ASM_SPEC): Likewise.
18442 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18443 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
18444 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18445 * config/sparc/linux.h (ASM_SPEC): Likewise.
18446 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18447 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18449 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18451 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
18452 * config/frv/frv.h (LINK_SPEC): Likewise.
18453 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18455 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18457 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
18458 * config/frv/frv.h (ASM_SPEC): Likewise.
18459 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
18460 * config/m68k/linux.h (ASM_SPEC): Likewise.
18461 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18462 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18463 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18464 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
18465 * config/sparc/linux.h (ASM_SPEC): Likewise.
18466 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18467 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18468 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
18470 2011-01-26 Steve Ellcey <sje@cup.hp.com>
18473 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
18475 (vec_extract_evenodd_help): Ditto.
18476 (vec_extract_evenv4hi): Ditto.
18477 (vec_extract_oddv4hi): Ditto.
18478 (vec_interleave_lowv2si): Ditto.
18479 (vec_interleave_highv2si): Ditto.
18480 (vec_extract_evenv2si): Ditto.
18481 (vec_extract_oddv2si: Ditto.
18482 (vec_pack_trunc_v2si): Ditto.
18484 2011-01-22 Jan Hubicka <jh@suse.cz>
18487 * cgraph.h (cgraph_local_info): New field can_change_signature.
18488 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
18489 signature can change.
18490 (ipcp_estimate_growth): Call sequence simplify only if calle signature
18492 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18493 (cgraph_function_versioning): We can not change signature of functions
18494 that don't allow that.
18495 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18496 (lto_input_node): Likewise.
18497 * ipa-inline.c (compute_inline_parameters): Compute
18498 local.can_change_signature.
18499 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
18500 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18501 functions that can not change signature.
18502 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
18503 init_cumulative_args): Do not use local calling conventions
18504 for functions that can not change signature.
18506 2011-01-22 Jan Hubicka <jh@suse.cz>
18508 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18510 2011-01-26 Richard Guenther <rguenther@suse.de>
18512 PR tree-optimization/47190
18513 * cgraphunit.c (process_common_attributes): New function.
18514 (process_function_and_variable_attributes): Use it.
18516 2011-01-26 Richard Guenther <rguenther@suse.de>
18519 * cgraphbuild.c (record_eh_tables): Record reference to personality
18522 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
18525 * sel-sched.c (moveup_expr): Don't let debug insns prevent
18526 non-debug insns from moving up.
18528 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18531 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18532 t-dlldir{,-x} fragment for build and add it to tmake_file.
18533 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18534 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18535 * config/i386/t-dlldir: New file.
18536 (SHLIB_DLLDIR): Define.
18537 * config/i386/t-dlldir-x: New file.
18538 (SHLIB_DLLDIR): Define.
18539 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18540 (SHLIB_INSTALL): Use it.
18542 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
18545 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18546 lower bound of the allowed Thumb-2 coprocessor load/store
18547 index range to -256. Add explaining comment.
18549 2011-01-25 Ian Lance Taylor <iant@google.com>
18551 * godump.c (go_define): Improve lexing of macro expansion to only
18552 accept expressions which match Go spec.
18554 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18557 * tree.c (handle_dll_attribute): Handle it.
18558 * doc/extend.texi (@item dllexport): Mention it.
18559 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18561 2011-01-25 Ian Lance Taylor <iant@google.com>
18563 PR tree-optimization/26854
18564 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18565 (decl_jump_unsafe): Move higher in file, with no other change.
18566 (bind): Set has_jump_unsafe_decl if appropriate.
18567 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18568 (check_earlier_gotos): Likewise.
18569 (c_check_switch_jump_warnings): Likewise.
18571 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
18573 * doc/invoke.texi (Warning Options): Add missing hyphen.
18574 (-fprofile-dir): Minor grammatical fixes.
18575 (-fbranch-probabilities): Likewise.
18577 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18581 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18583 (no_real_insns_p, schedule_block, set_priorities): Drop special
18584 treatment of boundary debug insns.
18585 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18586 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18587 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18588 (BOUNDARY_DEBUG_INSN_P): Likewise.
18589 (SCHEDULE_DEBUG_INSN_P): Likewise.
18590 * sched-rgn.c (init_ready_list): Drop special treatment of
18591 boundary debug insns.
18592 * final.c (rest_of_clean-state): Clear notes' BB.
18594 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18596 * Makefile.in (LAMBDA_H): Removed.
18597 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
18598 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
18599 lambda-trans.o, and tree-loop-linear.o.
18600 (lto-symtab.o): Remove dependence on LAMBDA_H.
18601 (tree-loop-linear.o): Remove rule.
18602 (lambda-mat.o): Same.
18603 (lambda-trans.o): Same.
18604 (lambda-code.o): Same.
18605 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
18606 (tree-vect-slp.o): Same.
18607 * hwint.h (gcd): Moved here.
18608 (least_common_multiple): Same.
18609 * lambda-code.c: Removed.
18610 * lambda-mat.c: Removed.
18611 * lambda-trans.c: Removed.
18612 * lambda.h: Removed.
18613 * tree-loop-linear.c: Removed.
18614 * lto-symtab.c: Do not include lambda.h.
18615 * omega.c (gcd): Removed.
18616 * passes.c (init_optimization_passes): Remove pass_linear_transform.
18617 * tree-data-ref.c (print_lambda_vector): Moved here.
18618 (lambda_vector_copy): Same.
18619 (lambda_matrix_copy): Same.
18620 (lambda_matrix_id): Same.
18621 (lambda_vector_first_nz): Same.
18622 (lambda_matrix_row_add): Same.
18623 (lambda_matrix_row_exchange): Same.
18624 (lambda_vector_mult_const): Same.
18625 (lambda_vector_negate): Same.
18626 (lambda_matrix_row_negate): Same.
18627 (lambda_vector_equal): Same.
18628 (lambda_matrix_right_hermite): Same.
18629 * tree-data-ref.h: Do not include lambda.h.
18630 (lambda_vector): Moved here.
18631 (lambda_matrix): Same.
18632 (dependence_level): Same.
18633 (lambda_transform_legal_p): Removed declaration.
18634 (lambda_collect_parameters): Same.
18635 (lambda_compute_access_matrices): Same.
18636 (lambda_vector_gcd): Same.
18637 (lambda_vector_new): Same.
18638 (lambda_vector_clear): Same.
18639 (lambda_vector_lexico_pos): Same.
18640 (lambda_vector_zerop): Same.
18641 (lambda_matrix_new): Same.
18642 * tree-flow.h (least_common_multiple): Removed declaration.
18643 * tree-parloops.c (lambda_trans_matrix): Moved here.
18644 (LTM_MATRIX): Same.
18645 (LTM_ROWSIZE): Same.
18646 (LTM_COLSIZE): Same.
18647 (LTM_DENOMINATOR): Same.
18648 (lambda_trans_matrix_new): Same.
18649 (lambda_matrix_vector_mult): Same.
18650 (lambda_transform_legal_p): Same.
18651 * tree-pass.h (pass_linear_transform): Removed declaration.
18652 * tree-ssa-loop.c (tree_linear_transform): Removed.
18653 (gate_tree_linear_transform): Removed.
18654 (pass_linear_transform): Removed.
18655 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18656 flag_loop_interchange.
18658 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18660 PR tree-optimization/47265
18661 PR tree-optimization/47443
18662 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18663 if name still has some uses.
18665 2011-01-25 Martin Jambor <mjambor@suse.cz>
18667 PR tree-optimization/47382
18668 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18669 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18671 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
18673 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18674 sjlj_except_unwind_info.
18676 2011-01-25 Richard Guenther <rguenther@suse.de>
18678 PR tree-optimization/47426
18679 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18680 visible functions results escape.
18682 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18685 * config/arm/arm.c (any_sibcall_uses_r3): New function.
18686 (arm_get_frame_offsets): Use it.
18688 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18689 Jakub Jelinek <jakub@redhat.com>
18691 PR tree-optimization/47271
18692 * tree-if-conv.c (bb_postdominates_preds): New.
18693 (if_convertible_bb_p): Call bb_postdominates_preds.
18694 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18695 (predicate_scalar_phi): Call bb_postdominates_preds.
18697 2011-01-25 Nick Clifton <nickc@redhat.com>
18699 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18700 * config/rx/rx.c (rx_function_value): Likewise.
18701 (rx_promote_function_mode): Likewise.
18702 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18703 in order to make it legitimate.
18704 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18705 make sure that the first operand is the same as the result register.
18706 (addsi3_unspec): Delete.
18707 (subdi3): Do not accept immediate operands.
18708 (subdi3_internal): Likewise.
18710 2011-01-25 Jeff Law <law@redhat.com>
18712 PR rtl-optimization/37273
18713 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18714 handle them like argument loads from stack slots. Do not double
18715 count memory for memory constants and argument loads from stack slots.
18717 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18719 PR tree-optimization/47427
18720 PR tree-optimization/47428
18721 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18722 coalesce if the new root var would be TREE_READONLY.
18724 2011-01-25 Richard Guenther <rguenther@suse.de>
18726 PR middle-end/47414
18727 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18728 correct type for TBAA.
18730 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18732 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18733 (close_phi_written_to_memory): Call for_each_index with
18734 dr_indices_valid_in_loop.
18736 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18738 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18739 when it is initialized.
18741 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18743 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18744 call to graphite_find_data_references_in_stmt.
18745 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18746 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18747 call to graphite_find_data_references_in_stmt.
18748 (analyze_drs_in_stmts): Same.
18749 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18750 in which the scalar analysis of indices is performed.
18751 (create_data_ref): Same. Update call to dr_analyze_indices.
18752 (find_data_references_in_stmt): Update call to create_data_ref.
18753 (graphite_find_data_references_in_stmt): Same.
18754 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18756 (create_data_ref): Same.
18757 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18758 call to create_data_ref.
18760 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18762 * graphite-sese-to-poly.c (build_poly_scop): Move
18763 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18765 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18767 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18768 VAR_DECL, PARM_DECL, and RESULT_DECL.
18770 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18772 * graphite-dependences.c (reduction_dr_1): Allow several reductions
18773 in a reduction PBB.
18774 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18775 that have already been marked as PBB_IS_REDUCTION.
18777 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18779 * graphite-scop-detection.c (same_close_phi_node): New.
18780 (remove_duplicate_close_phi): New.
18781 (make_close_phi_nodes_unique): New.
18782 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18784 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18786 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18787 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18788 of both data references to be the same.
18790 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18792 * graphite-dependences.c (build_lexicographical_constraint): Remove
18793 the gdim parameter.
18794 (build_lexicographical_constraint): Adjust call to
18795 ppl_powerset_is_empty.
18796 (dependence_polyhedron): Same.
18797 (graphite_legal_transform_dr): Same.
18798 (graphite_carried_dependence_level_k): Same.
18799 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18801 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18803 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18805 * graphite-sese-to-poly.c
18806 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18807 (close_phi_written_to_memory): New.
18808 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18811 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18813 * doc/install.texi: Update the expected version number of PPL to 0.11.
18814 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18815 #if PPL_VERSION_MINOR < 11.
18817 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18819 * graphite-dependences.c: Include graphite-cloog-util.h.
18820 (new_poly_ddr): Inlined into dependence_polyhedron.
18821 (free_poly_ddr): Moved close by new_poly_ddr.
18822 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18823 Early return NULL when ppl_powerset_is_empty returns true.
18824 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18825 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18826 (graphite_legal_transform_dr): Call new_poly_ddr.
18827 (graphite_carried_dependence_level_k): Same.
18828 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18829 (dot_transformed_deps_stmt_1): Removed.
18830 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18831 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18832 (dot_deps_1): Call dot_deps_2.
18833 * Makefile.in (graphite-dependences.o): Add missing dependence on
18834 graphite-cloog-util.h.
18836 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18838 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18839 (build_lexicographical_constraint): Same.
18840 (dependence_polyhedron_1): Same.
18841 (graphite_legal_transform_dr): Same.
18842 (graphite_carried_dependence_level_k): Same.
18843 * graphite-ppl.c (ppl_powerset_is_empty): New.
18844 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18845 * tree-data-ref.c (dump_data_reference): Print the basic block index.
18847 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18849 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18850 the "a followed by b" relation and document it.
18852 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18854 * graphite-dependences.c (build_lexicographical_constraint): Stop the
18855 iteration when the bag of constraints is empty.
18857 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18859 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18861 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18863 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18864 nest and two loop depths as parameters.
18865 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18866 lst_perfect_nestify.
18868 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18870 * graphite-dependences.c (print_pddr): Call
18871 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18873 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18875 * graphite-ppl.c (debug_gmp_value): New.
18876 * graphite-ppl.h (debug_gmp_value): Declared.
18878 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
18880 * doc/install.texi: Document availability of cloog-0.16.
18882 2011-01-25 Vladimir Kargov <kargov@gmail.com>
18884 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18885 invalid postdominance info.
18887 2011-01-24 Jan Hubicka <jh@suse.cz>
18890 * doc/extend.texi (weak pragma): Drop claim that it must
18891 appear before definition.
18892 * varasm.c (merge_weak, declare_weak): Only sanity check
18893 that DECL is not output at a time it is declared weak.
18895 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
18897 * machmode.def: Fixed comments.
18899 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
18901 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18903 2011-01-24 Paul Koning <ni1d@arrl.net>
18905 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18908 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
18911 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18912 (block_info): Add scanned and prev.
18913 (move_or_delete_vzeroupper_2): Return if the basic block
18914 has been scanned and the upper 128bit state is unchanged
18915 from the last scan.
18916 (move_or_delete_vzeroupper_1): Return true if the exit
18918 (move_or_delete_vzeroupper): Visit basic blocks using the
18919 work-list based algorithm based on vt_find_locations in
18922 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18924 2011-01-24 Nick Clifton <nickc@redhat.com>
18926 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18927 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18928 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
18929 then define __v850e1__.
18930 * doc/invoke.texi: Document -mv850es.
18932 2011-01-24 Richard Henderson <rth@redhat.com>
18934 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18935 compound unordered comparisons.
18936 * config/rx/rx.c (rx_split_fp_compare): Remove.
18937 * config/rx/rx-protos.h: Update.
18938 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18939 (cbranchsf4): Don't call rx_split_fp_compare.
18940 (*cbranchsf4): Use rx_split_cbranch.
18941 (*cmpsf): Don't accept "i" constraint.
18942 (*conditional_branch): Only valid after reload.
18943 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
18945 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18948 * config/rs6000/altivec.md (vector constant splitters): Add
18949 support for creating vector single precision constants if -mvsx is
18950 used and we would create the constant using Altivec primitives.
18952 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18953 Richard Sandiford <rdsandiford@googlemail.com>
18955 PR rtl-optimization/47166
18956 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18957 mechanism for PRE_MODIFY and POST_MODIFY.
18958 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18961 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18963 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18965 2011-01-22 Jan Hubicka <jh@suse.cz>
18968 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18970 2011-01-22 Jan Hubicka <jh@suse.cz>
18972 PR tree-optimization/43884
18974 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18975 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18977 2011-01-22 Anatoly Sokolov <aesok@post.ru>
18979 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18980 * config/s390/s390.c (s390_register_move_cost,
18981 s390_memory_move_cost): New.
18982 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18984 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18986 PR middle-end/47401
18987 * except.c (sjlj_assign_call_site_values): Move setting the
18988 crtl->uses_eh_lsda flag to ...
18989 (sjlj_mark_call_sites): ... here.
18990 (sjlj_emit_function_enter): Support NULL dispatch label.
18991 (sjlj_build_landing_pads): In a function with no landing pads
18992 that still has must-not-throw regions, generate code to register
18993 a personality function with empty LSDA.
18995 2011-01-21 Richard Henderson <rth@redhat.com>
18997 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18999 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
19001 * compare-elim.c: New file.
19002 * Makefile.in (OBJS-common): Add it.
19003 (compare-elim.o): New.
19004 * common.opt (fcompare-elim): New.
19005 * opts.c (default_options_table): Add OPT_fcompare_elim.
19006 * tree-pass.h (pass_compare_elim_after_reload): New.
19007 * passes.c (init_optimization_passes): Add it.
19008 * recog.h: Protect against re-inclusion.
19009 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
19010 * doc/invoke.texi (-fcompare-elim): Document it.
19011 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
19012 * doc/tm.texi: Rebuild.
19014 2011-01-22 Nick Clifton <nickc@redhat.com>
19016 * config/rx/rx.md (cstoresf4): Pass comparison operator to
19017 rx_split_fp_compare.
19019 2011-01-22 Nick Clifton <nickc@redhat.com>
19021 * config/rx/rx.md (UNSPEC_CONST): New.
19022 (deallocate_and_return): Wrap the amount popped off the stack in
19023 an UNSPEC_CONST in order to stop it being rejected by
19024 -mmax-constant-size.
19025 (pop_and_return): Add a "(return)" rtx.
19026 (call): Drop the immediate operand.
19027 (call_internal): Likewise.
19028 (call_value): Likewise.
19029 (call_value_internal): Likewise.
19030 (sibcall_internal): Likewise.
19031 (sibcall_value_internal): Likewise.
19032 (sibcall): Likewise. Generate an explicit call using
19034 (sibcall_value): Likewise.
19035 (mov<>): FAIL if a constant operand is not legitimate.
19036 (addsi3_unpsec): New pattern.
19038 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
19039 (ok_for_max_constant): New function.
19040 (gen_safe_add): New function.
19041 (rx_expand_prologue): Use gen_safe_add.
19042 (rx_expand_epilogue): Likewise.
19043 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
19046 2011-01-21 Jeff Law <law@redhat.com>
19048 PR tree-optimization/47053
19049 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
19050 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
19051 statements are deleted.
19052 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
19053 is nonempty, then purge dead edges and cleanup the CFG.
19055 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19058 Temporarily revert:
19059 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19061 * tree-dfa.c (create_var_ann): Mark variable as used.
19063 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19065 PR middle-end/45566
19066 * except.c (convert_to_eh_region_ranges): Emit queued no-region
19067 notes from other section in hot/cold partitioning even if
19068 last_action is -3. Increment call_site_base.
19070 PR rtl-optimization/47366
19071 * fwprop.c (forward_propagate_into): Return bool. If
19072 any changes are made, -fnon-call-exceptions is used and
19073 REG_EH_REGION note is present, call purge_dead_edges
19074 and return true if it purged anything.
19075 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
19076 any EH edges were purged.
19078 2011-01-21 Jeff Law <law@redhat.com>
19080 PR rtl-optimization/41619
19081 * caller-save.c (setup_save_areas): Break out code to determine
19082 which hard regs are live across calls by examining the reload chains
19083 so that it is always used.
19084 Eliminate code which checked REG_N_CALLS_CROSSED.
19086 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19088 PR tree-optimization/47355
19089 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
19090 NOP has non-debug uses beyond PHIs in new_bb.
19092 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19095 * cfgexpand.c (account_used_vars_for_block): Only account vars
19096 that are annotated as used.
19097 (estimated_stack_frame_size): Don't set TREE_USED.
19098 * tree-dfa.c (create_var_ann): Mark variable as used.
19100 2011-01-21 Richard Guenther <rguenther@suse.de>
19102 PR middle-end/47395
19103 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
19105 2011-01-21 Richard Guenther <rguenther@suse.de>
19107 PR tree-optimization/47365
19108 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
19109 (vn_reference_lookup_pieces): Adjust.
19110 (vn_reference_lookup): Likewise.
19111 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
19112 (vn_reference_lookup_3): Only look through kills if in
19113 VN_WALKREWRITE mode.
19114 (vn_reference_lookup_pieces): Adjust.
19115 (vn_reference_lookup): Likewise.
19116 (visit_reference_op_load): Likewise.
19117 (visit_reference_op_store): Likewise.
19118 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
19119 (compute_avail): Likewise.
19120 (eliminate): Likewise.
19122 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19124 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
19125 DECL_IGNORED_P non-reg vars if they are used.
19127 PR tree-optimization/47391
19128 * varpool.c (const_value_known_p): Return false if
19131 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
19134 * config/i386/i386.c (ix86_local_alignment): Handle
19135 case for va_list_type_node is nil.
19136 (ix86_canonical_va_list_type): Likewise.
19138 2011-01-21 Alan Modra <amodra@gmail.com>
19140 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
19141 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
19143 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19145 * config/arm/arm.md (define_attr type): Rename f_load
19146 and f_store to f_fpa_load and f_fpa_store. Update.
19147 (write_conflict): Deal with rename fallout.
19148 (*push_fp_multi): Likewise.
19149 * config/arm/fpa.md (f_load): Use f_fpa_load.
19150 (f_store): Use f_fpa_store.
19151 (*movsf_fpa): Likewise.
19152 (*movdf_fpa): Likewise.
19153 (*movxf_fpa): Likewise.
19154 (*thumb2_movsf_fpa): Likewise.
19155 (*thumb2_movdf_fpa): Likewise.
19156 (*thumb2_movxf_fpa): Likewise.
19157 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
19158 f_loadd and f_stored.
19159 (*thumb2_movdi_vfp): Likewise.
19160 (*thumb2_movsf_vfp): Fix attribute to f_loads.
19161 (*thumb2_movsi_vfp): Likewise.
19162 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
19163 Use f_loads instead of f_load.
19164 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
19166 2011-01-20 Anatoly Sokolov <aesok@post.ru>
19168 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19169 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
19170 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19171 (xtensa_mode_dependent_address_p): New function.
19172 (constantpool_address_p): Make static. Change return type to bool.
19173 Change argument type to const_rtx. Use CONST_INT_P predicate.
19175 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
19178 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
19180 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19183 * cfgexpand.c (expand_debug_expr): Instead of generating
19184 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
19187 2011-01-20 Richard Guenther <rguenther@suse.de>
19189 PR middle-end/47370
19190 * tree-inline.c (remap_gimple_op_r): Recurse manually for
19191 the pointer operand of MEM_REFs.
19193 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19195 PR tree-optimization/46130
19196 * ipa-split.c (consider_split): If return_bb contains non-virtual
19197 PHIs other than for retval or if split_function would not adjust it,
19200 2011-01-20 Richard Guenther <rguenther@suse.de>
19202 PR tree-optimization/47167
19203 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19204 Revert previous change, only avoid enumeral type changes.
19206 2011-01-19 Mike Stump <mikestump@comcast.net>
19208 * doc/tm.texi.in (BRANCH_COST): Englishify.
19209 * doc/tm.texi (BRANCH_COST): Likewise.
19211 2011-01-19 Dodji Seketeli <dodji@redhat.com>
19214 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
19215 (gen_scheduled_generic_parms_dies): New functions.
19216 (gen_struct_or_union_type_die): Schedule template parameters DIEs
19217 generation for the end of CU compilation.
19218 (dwarf2out_finish): Generate template parameters DIEs here.
19220 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19223 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
19224 debug bind stmt on merge edges.
19226 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19230 * function.c (instantiate_expr): Instantiate incoming rtl of
19231 implicit arguments, and recurse on VALUE_EXPRs.
19232 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
19233 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
19235 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19237 * c-parser.c (c_parser_for_statement): Initialize
19238 collection_expression.
19240 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19242 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
19244 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19246 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
19247 (LINK_SHLIB_SPEC): Don't use %(link_path).
19248 (SUBTARGET_EXTRA_SPECS): Remove link_path.
19250 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19252 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
19253 (NO_SHARED_LIB_SUPPORT): Remove.
19254 (LINK_SHLIB_SPEC): Remove one conditional definition.
19256 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19258 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
19260 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
19261 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
19262 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
19263 %{call_shared} and conditionals on these options not being passed.
19264 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
19267 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19269 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
19272 * ipa-split.c: Spelling fixes.
19274 2011-01-19 Richard Henderson <rth@redhat.com>
19276 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
19277 (*mulsi3): Likewise.
19279 * longlong.h [__mn10300__] (count_leading_zeros): New.
19280 [__mn10300__] (umul_ppmm, smul_ppmm): New.
19281 [__mn10300__] (add_ssaaaa, subddmmss): New.
19282 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
19283 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
19285 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19287 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
19289 2011-01-19 Richard Henderson <rth@redhat.com>
19291 * config/mn10300/mn10300.md (addsi3_flags): New.
19292 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
19293 (subsi3_flags, subc_internal, subdi3): New.
19294 (subdi3_internal, *subdi3_degenerate): New.
19295 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
19297 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
19298 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
19299 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
19300 * config/mn10300/mn10300-protos.h: Update.
19301 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
19302 (return_ret): Likewise. Rename from return_internal_regs.
19303 (return_internal): Remove.
19305 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
19306 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
19307 (mn10300_legitimate_constant_p): Likewise.
19308 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
19309 (mn10300_frame_size): New.
19310 (mn10300_expand_prologue): Use it.
19311 (mn10300_expand_epilogue): Likewise.
19312 (mn10300_initial_offset): Likewise.
19313 * config/mn10300/mn10300-protos.h: Update.
19314 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
19315 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
19316 (prologue, epilogue, return_internal): Tidy output code.
19317 (mn10300_store_multiple_operation, return): Likewise.
19318 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
19319 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
19320 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
19321 (load_pic, am33_load_pic): New.
19322 (mn10300_load_pic0, mn10300_load_pic1): New.
19324 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
19325 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
19326 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
19327 (cc_flags_for_mode, cc_flags_for_code): New.
19328 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
19329 overflow flag is not valid. Validate that the flags we need
19330 for the comparison are valid.
19331 (mn10300_output_cmp): Remove.
19332 (mn10300_output_add): New.
19333 (mn10300_select_cc_mode): Use cc_flags_for_code.
19334 (mn10300_split_cbranch): New.
19335 (mn10300_match_ccmode): New.
19336 (mn10300_split_and_operand_count): New.
19337 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
19339 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
19340 (addsi3): ... here. Use mn10300_output_add.
19341 (*addsi3_flags): New.
19342 (*am33_subsi3, *mn10300_subsi3): Merge...
19343 (subsi3): ... here. Use attribute isa.
19344 (*subsi3_flags): New.
19345 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
19347 (*am33_andsi3, *mn10300_andsi3): Merge...
19348 (andsi3): ... here.
19349 (*andsi3_flags): New.
19350 (andsi3 splitters): New.
19351 (*am33_iorsi3, *mn10300_iorsi3): Merge...
19352 (iorsi3): ... here.
19353 (*iorsi3_flags): New.
19354 (*am33_xorsi3, *mn10300_xorsi3): Merge...
19355 (xorsi3): ... here.
19356 (*xorsi3_flags): New.
19357 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
19358 (one_cmplsi2): ... here.
19359 (*one_cmplsi2_flags): New.
19360 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
19361 instead of "dax" in constraints. Use mn10300_split_cbranch.
19362 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
19363 use matching constraints to eliminate a self-comparison.
19364 (*integer_conditional_branch): Rename from integer_conditional_branch.
19365 Use int_mode_flags to match CC_REG.
19366 (*cbranchsi4_btst, *btstsi): New.
19367 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
19368 mn10300_split_cbranch.
19369 (*am33_cmpsf): Rename from am33_cmpsf.
19370 (*float_conditional_branch): Rename from float_conditional_branch.
19371 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
19372 (zero_extendqisi2): ... here.
19373 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
19374 (zero_extendhisi2): ... here.
19375 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
19376 (extendqisi2): ... here.
19377 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
19378 (extendhisi2): ... here.
19379 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
19380 (ashlsi3): ... here.
19381 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
19382 (lshrsi3): ... here.
19383 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
19384 (ashrsi3): ... here.
19385 (consecutive add peephole): Remove.
19386 * config/mn10300/predicates.md (label_ref_operand): New.
19387 (int_mode_flags): New.
19388 (CCZN_comparison_operator): New.
19390 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
19391 (throughput_42_latency_43): New reservation.
19392 (mulsidi3, umulsidi3): New expanders.
19393 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
19394 the MDR register to allocation; separately allocate the low and
19395 high parts of the DImode result.
19396 (umulsidi3_internal): Similarly.
19397 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
19398 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
19399 (udivsi3, umodsi3): Remove.
19400 (udivmodsi4, divmodsi4): New expanders.
19401 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
19402 (*divmodsi4): Simiarly.
19403 (ext_internal): New.
19405 * config/mn10300/constraints.md ("z"): New constraint.
19406 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
19407 (FIXED_REGISTERS): Don't fix MDR.
19408 (CALL_USED_REGSITERS): Reformat nicely.
19409 (REG_ALLOC_ORDER): Add MDR.
19410 (enum regclass): Add MDR_REGS.
19411 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
19412 (IRA_COVER_CLASSES): Add MDR_REGS.
19413 (REGNO_REG_CLASS): Handle MDR_REG.
19414 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
19415 (mn10300_register_move_cost): Likewise.
19416 * config/mn10300/mn10300.md (MDR_REG): New.
19417 (*movsi_internal): Handle moves to/from MDR_REGS.
19419 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
19421 (mn10300_secondary_reload): Tidy combination reload classes.
19422 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
19423 addresses for AM33. Allow symbolic offsets for reg+imm.
19424 (mn10300_regno_in_class_p): New.
19425 (mn10300_legitimize_reload_address): New.
19426 * config/mn10300/mn10300.h (enum reg_class): Remove
19427 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
19428 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
19429 SP_OR_GENERAL_REGS.
19430 (REG_CLASS_NAMES): Update to match.
19431 (REG_CLASS_CONTENTS): Likewise.
19432 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
19433 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
19434 (REGNO_IN_RANGE_P): Remove.
19435 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
19436 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
19437 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
19438 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
19439 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
19440 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
19441 (REGNO_GENERAL_P): New.
19442 (HAVE_POST_MODIFY_DISP): New.
19443 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
19444 (LEGITIMIZE_RELOAD_ADDRESS): New.
19445 * config/mn10300/mn10300-protos.h: Update.
19447 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
19448 DATA_REGS for AM33 stack-pointer destination.
19449 (mn10300_preferred_output_reload_class): Likewise.
19450 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
19451 into a form appropriate for ...
19452 (TARGET_SECONDARY_RELOAD): New.
19453 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
19454 * config/mn10300/mn10300-protos.h: Update.
19455 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
19456 reload_insi; use the "A" constraint for the scratch; handle AM33
19457 moves of sp to non-address registers.
19459 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
19460 (*movqi_internal): ... here.
19461 (*am33_movhi, *mn10300_movhi): Merge into...
19462 (*movhi_internal): ... here.
19463 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
19464 as the source/destination of moves from/to SP.
19465 (movsf): Only allow for AM33-2.
19466 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
19467 any integer constant constraint. Only allow for AM33-2. Tidy
19468 all of the alternative outputs.
19469 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
19470 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
19472 (udivsi3, umodsi3): New patterns for MN103 only.
19474 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
19476 * doc/tm.texi.in: Spell out that a lack of register class unions
19478 * doc/tm.texi: Regenerate.
19480 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19482 PR rtl-optimization/47337
19483 * dce.c (check_argument_store): New function.
19484 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
19486 PR tree-optimization/47290
19487 * tree-eh.c (infinite_empty_loop_p): New function.
19488 (cleanup_empty_eh): Use it.
19490 2011-01-18 Steve Ellcey <sje@cup.hp.com>
19493 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19494 (a64_expand_widen_sum): Ditto.
19495 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19496 (vec_extract_evenodd_help): Ditto.
19497 (vec_extract_evenv4hi): Ditto.
19498 (vec_extract_oddv4hi): Ditto.
19499 (vec_extract_evenv2si): Ditto.
19500 (vec_extract_oddv2si): Ditto.
19501 (vec_extract_evenv2sf): Ditto.
19502 (vec_extract_oddv2sf): Ditto.
19503 (vec_pack_trunc_v4hi: Ditto.
19504 (vec_pack_trunc_v2si): Ditto.
19505 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19506 (vec_interleave_highv8qi): Ditto.
19508 (vec_extract_oddv8qi): Ditto.
19509 (vec_interleave_lowv4hi): Ditto.
19510 (vec_interleave_highv4hi): Ditto.
19511 (vec_interleave_lowv2si): Ditto.
19512 (vec_interleave_highv2si): Ditto.
19514 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19516 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19517 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19518 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
19519 (pa_c_mode_for_suffix): New.
19520 (TARGET_EXPAND_BUILTIN): Define.
19521 (TARGET_C_MODE_FOR_SUFFIX): Define.
19522 (pa_builtins): Define.
19523 (pa_init_builtins): Register __float128 type and init new support
19525 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19526 * config/pa/quadlib.c (_U_Qfcopysign): New.
19528 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
19530 PR middle-end/46894
19531 * explow.c (allocate_dynamic_stack_space): Do not assume more than
19532 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19535 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19537 PR tree-optimization/47179
19538 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19539 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19541 2011-01-18 Richard Guenther <rguenther@suse.de>
19543 PR rtl-optimization/47216
19544 * emit-rtl.c: Include tree-flow.h.
19545 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19546 of replicating it with different semantics.
19547 * Makefile.in (emit-rtl.o): Adjust.
19549 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19551 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
19552 (cortex_a9_dp): Handle neon types correctly.
19554 2011-01-18 Jakub Jelinek <jakub@redhat.com>
19556 PR rtl-optimization/47299
19557 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
19558 subtarget. Use normal multiplication if both operands are constants.
19559 * expmed.c (expand_widening_mult): Don't try to optimize constant
19560 multiplication if op0 has VOIDmode. Convert op1 constant to mode
19563 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19565 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
19566 spacing after 'e.g.', typos, comma, hyphenation.
19568 2011-01-17 Richard Henderson <rth@redhat.com>
19570 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19571 (rx_restricted_mem_operand): New.
19572 (rx_shift_operand): Use register_operand.
19573 (rx_source_operand, rx_compare_operand): Likewise.
19574 * config/rx/rx.md (addsi3_flags): New expander.
19575 (adddi3): Rewrite as expander.
19576 (adc_internal, *adc_flags, adddi3_internal): New patterns.
19577 (subsi3_flags): New expander.
19578 (subdi3): Rewrite as expander.
19579 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
19581 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
19582 (rx_init_builtins): Remove sat builtin.
19583 (rx_expand_builtin): Likewise.
19584 * config/rx/rx.md (ssaddsi3): New.
19585 (*sat): Rename from sat. Represent the CC_REG input.
19587 * config/rx/predicates.md (rshift_operator): New.
19588 * config/rx/rx.c (rx_expand_insv): Remove.
19589 * config/rx/rx-protos.h: Update.
19590 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
19591 operand to the canonical position.
19592 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
19593 (*bitclr, *bitclr_in_memory): Similarly.
19594 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
19595 (insv): Retain the zero_extract in the expansion.
19597 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
19598 (bswaphi2, bitinvert, revw): Likewise.
19600 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
19601 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
19602 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
19603 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
19604 (bitset, bitset_in_memory): Likewise.
19605 (bitinvert, bitinvert_in_memory): Likewise.
19606 (bitclr, bitclr_in_memory): Likewise.
19607 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
19608 (rx_strend, rx_cmpstrn): Likewise.
19609 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
19610 (bitop peep2 patterns): Remove.
19612 * config/rx/rx.c (rx_match_ccmode): New.
19613 * config/rx/rx-protos.h: Update.
19614 * config/rx/rx.md (abssi2): Clobber, don't set flags.
19615 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
19616 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
19617 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
19618 (fix_truncsfsi2, floatsisf2): Likewise.
19619 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
19620 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
19621 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
19622 (*subsi3_flags, *xorsi3_flags): New.
19624 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
19626 * config/rx/rx.c (rx_print_operand): Remove workaround for
19627 unsplit comparison operations.
19629 * config/rx/rx.md (movsicc): Split after reload.
19630 (*movsicc): Merge *movsieq and *movsine via match_operator.
19631 (*stcc): New pattern.
19633 * config/rx/rx.c (rx_float_compare_mode): Remove.
19634 * config/rx/rx.h (rx_float_compare_mode): Remove.
19635 * config/rx/rx.md (cstoresi4): Split after reload.
19636 (*sccc): New pattern.
19638 * config/rx/predicates.md (label_ref_operand): New.
19639 (rx_z_comparison_operator): New.
19640 (rx_zs_comparison_operator): New.
19641 (rx_fp_comparison_operator): New.
19642 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19643 Validate that the flags are set properly for the comparison.
19644 (rx_gen_cond_branch_template): Remove.
19645 (rx_cc_modes_compatible): Remove.
19646 (mode_from_flags): New.
19647 (flags_from_code): Rename from flags_needed_for_conditional.
19648 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19649 (rx_select_cc_mode): Likewise.
19650 (rx_split_fp_compare): New.
19651 (rx_split_cbranch): New.
19652 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19653 (*cbranchsi4): Use match_operator and rx_split_cbranch.
19654 (*cbranchsf4): Similarly.
19655 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
19656 match_operator and rx_split_cbranch.
19657 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19658 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
19659 (*cmpsi): Rename from cmpsi.
19660 (*tstsi): Rename from tstsi.
19661 (*cmpsf): Rename from cmpsf; use CC_Fmode.
19662 (*conditional_branch): Rename from conditional_branch.
19663 (*reveresed_conditional_branch): Remove.
19664 (b<code>): Remove expander.
19665 * config/rx/rx-protos.h: Update.
19667 * config/rx/rx.c (rx_compare_redundant): Remove.
19668 * config/rx/rx.md (cmpsi): Don't use it.
19669 * config/rx/rx-protos.h: Update.
19671 * config/rx/rx-modes.def (CC_F): New mode.
19672 * config/rx/rx.c (rx_select_cc_mode): New.
19673 * config/rx/rx.h (SELECT_CC_MODE): Use it.
19674 * config/rx/rx-protos.h: Update.
19676 2011-01-17 Richard Henderson <rth@redhat.com>
19678 * except.c (dump_eh_tree): Fix stray ; after for statement.
19680 2011-01-17 Richard Guenther <rguenther@suse.de>
19682 PR tree-optimization/47313
19683 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19684 handling before copying the body. Properly deal with
19685 by-reference result in SSA form.
19687 2011-01-17 Ian Lance Taylor <iant@google.com>
19690 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19691 (struct_value_alias_set): Don't define.
19692 (sparc_option_override): Don't set sparc_sr_alias_set and
19693 struct_value_alias_set.
19694 (save_or_restore_regs): Use gen_frame_mem rather than calling
19696 (sparc_struct_value_rtx): Likewise.
19698 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19701 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19702 (_mm_maskstore_pd): Likewise.
19703 (_mm_maskload_ps): Likewise.
19704 (_mm_maskstore_ps): Likewise.
19705 (_mm256_maskload_pd): Change mask to __m256i.
19706 (_mm256_maskstore_pd): Likewise.
19707 (_mm256_maskload_ps): Likewise.
19708 (_mm256_maskstore_ps): Likewise.
19710 * config/i386/i386-builtin-types.def: Updated.
19711 (ix86_expand_special_args_builtin): Likewise.
19713 * config/i386/i386.c (bdesc_special_args): Update
19714 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19715 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19716 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19717 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19719 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19720 Use <avxpermvecmode> on mask register.
19721 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19723 2011-01-17 Olivier Hainque <hainque@adacore.com>
19724 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19725 Eric Botcazou <ebotcazou@adacore.com>
19728 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19729 if <= USHRT_MAX in 32-bit mode.
19731 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19733 * doc/install.texi (Configuration, Specific): Wrap long
19734 lines in examples. Allow line wrapping in long options
19735 and URLs where beneficial for PDF output.
19737 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19739 * config/mips/mips.c (mips_classify_symbol): Don't return
19740 SYMBOL_PC_RELATIVE for nonlocal labels.
19742 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
19744 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19746 2011-01-15 Jan Hubicka <jh@suse.cz>
19748 PR tree-optimization/47276
19749 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19750 declarations as needed.
19752 2011-01-15 Martin Jambor <mjambor@suse.cz>
19754 * common.opt (fdevirtualize): New flag.
19755 * doc/invoke.texi (Option Summary): Document it.
19756 * opts.c (default_options_table): Add devirtualize flag.
19757 * ipa-prop.c (detect_type_change): Return immediately if
19758 devirtualize flag is not set.
19759 (detect_type_change_ssa): Likewise.
19760 (compute_known_type_jump_func): Likewise.
19761 (ipa_analyze_virtual_call_uses): Likewise.
19763 2011-01-14 Martin Jambor <mjambor@suse.cz>
19765 PR tree-optimization/45934
19766 PR tree-optimization/46302
19767 * ipa-prop.c (type_change_info): New type.
19768 (stmt_may_be_vtbl_ptr_store): New function.
19769 (check_stmt_for_type_change): Likewise.
19770 (detect_type_change): Likewise.
19771 (detect_type_change_ssa): Likewise.
19772 (compute_complex_assign_jump_func): Check for dynamic type change.
19773 (compute_complex_ancestor_jump_func): Likewise.
19774 (compute_known_type_jump_func): Likewise.
19775 (compute_scalar_jump_functions): Likewise.
19776 (ipa_analyze_virtual_call_uses): Likewise.
19777 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19779 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19781 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19782 * config/i386/i386.opt (msse5): New Alias.
19784 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19786 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19787 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19788 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19789 * config/sparc/sparc.h (CC1_SPEC): Likewise.
19791 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19793 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19795 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19796 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19797 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19798 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19800 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19802 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19804 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19806 2011-01-14 Mike Stump <mikestump@comcast.net>
19808 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19809 * config/fr30/fr30.md: Likweise
19810 (movsi_push): Likewise.
19811 (movsi_pop): Likewise.
19812 (enter_func): Likewise.
19813 * config/moxie/moxie.md (movsi_push): Likewise.
19814 (movsi_pop): Likewise.
19816 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19818 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19819 %{no_archive} %{exact_version}.
19820 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19821 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19822 %{no_archive} %{exact_version}.
19823 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19824 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19825 * config/mips/vxworks.h: Likewise.
19827 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19829 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19831 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19833 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19834 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19836 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19838 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19841 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19843 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19845 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19846 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19848 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19849 Don't handle -shlib.
19851 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19853 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19854 (CC1_SPEC): Don't handle -profile.
19856 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19858 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19859 * config/mips/mips.h (CC1_SPEC): Likewise.
19861 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19863 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19864 * config/mips/mips.h (CC1_SPEC): Likewise.
19866 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19868 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19869 * config/m32r/linux.h (LINK_SPEC): Likewise.
19870 * config/mips/linux.h (LINK_SPEC): Likewise.
19871 * config/mips/linux64.h (LINK_SPEC): Likewise.
19872 * config/sparc/linux.h (LINK_SPEC): Likewise.
19873 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19874 LINK_SPEC): Likewise.
19875 * config/xtensa/linux.h (LINK_SPEC): Likewise.
19877 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19879 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19881 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19883 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19885 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19886 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19888 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19890 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19892 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19894 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19895 supports -Bstatic/-Bdynamic.
19896 * configure: Regenerate.
19898 2011-01-14 Jan Hubicka <jh@suse.cz>
19899 Jack Howarth <howarth@bromo.med.uc.edu>
19902 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19903 when checking debug_info_level. Test write_symbols instead of
19904 debug_hooks->var_location when setting flag_var_tracking_uninit.
19906 2011-01-14 Richard Guenther <rguenther@suse.de>
19908 PR tree-optimization/47179
19909 * target.def (ref_may_alias_errno): New target hook.
19910 * targhooks.h (default_ref_may_alias_errno): Declare.
19911 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19912 (default_ref_may_alias_errno): New function.
19913 * target.h (struct ao_ref_s): Declare.
19914 * tree-ssa-alias.c: Include target.h.
19915 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19916 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19917 (targhooks.o): Likewise.
19918 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19919 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19921 2011-01-14 Richard Guenther <rguenther@suse.de>
19923 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
19925 2011-01-14 Richard Guenther <rguenther@suse.de>
19927 PR tree-optimization/47280
19928 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19929 return CFG changes.
19930 (tree_ssa_forward_propagate_single_use_vars): Deal with
19931 CFG changes from associate_plusminus.
19933 2011-01-14 Richard Guenther <rguenther@suse.de>
19935 PR middle-end/47281
19937 2011-01-11 Richard Guenther <rguenther@suse.de>
19939 PR tree-optimization/46076
19940 * tree-ssa.c (useless_type_conversion_p): Conversions from
19941 unprototyped to empty argument list function types are useless.
19943 2011-01-14 Richard Guenther <rguenther@suse.de>
19945 PR tree-optimization/47286
19946 * tree-ssa-structalias.c (new_var_info): Register variables are global.
19948 2011-01-14 Martin Jambor <mjambor@suse.cz>
19950 PR middle-end/46823
19951 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19953 2011-01-13 Anatoly Sokolov <aesok@post.ru>
19955 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19956 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19957 * config/xtensa/xtensa.c (xtensa_libcall_value,
19958 xtensa_function_value_regno_p): New functions.
19959 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19961 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
19964 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19966 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19967 New function prototype.
19968 * config/i386/winnt.c (i386_pe_assemble_visibility):
19969 Warn only if attribute was specified by user.
19971 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19974 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19976 (floatunsdidf2_fcfidu): Ditto.
19978 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19980 * config/s390/s390.c (print_operand_address): Replace 'error' with
19981 'output_operand_lossage'.
19982 (print_operand): Likewise.
19984 2011-01-13 Jeff Law <law@redhat.com>
19986 PR rtl-optimization/39077
19987 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19988 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19989 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19990 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19991 * gcse.c (prune_insertions_deletions): New function.
19992 (compute_pre_data): Use it.
19994 2011-01-13 Dodji Seketeli <dodji@redhat.com>
19997 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19999 (prune_unused_types_mark): Use it.
20001 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
20003 PR rtl-optimization/45352
20004 * sel-sched.c: Update copyright years.
20005 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
20006 in the advancing loop when we have issued issue_rate insns.
20008 2011-01-12 Richard Henderson <rth@redhat.com>
20010 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
20011 (TARGET_MD_ASM_CLOBBERS): New.
20013 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
20014 (TARGET_DELEGITIMIZE_ADDRESS): New.
20016 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
20017 (clzsi2, *bsch): New patterns.
20019 * config/mn10300/mn10300.md (INT): New mode iterator.
20020 (*mov<INT>_clr): New pattern, and peep2 to generate it.
20022 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
20023 flag_split_wide_types.
20025 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
20026 (mn10300_trampoline_init): Rewrite without a template, an immediate
20027 load and a direct branch.
20028 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
20030 2011-01-12 Anatoly Sokolov <aesok@post.ru>
20032 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20033 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
20034 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
20035 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20037 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
20040 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
20043 2011-01-12 Jan Hubicka <jh@suse.cz>
20046 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
20047 (PLUGIN_COND_CLOSE): New macro.
20048 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
20050 2011-01-12 Richard Guenther <rguenther@suse.de>
20053 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
20054 register variables in a MEM_REF.
20056 2011-01-12 Joseph Myers <joseph@codesourcery.com>
20058 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
20059 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
20060 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
20061 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
20062 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
20063 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
20064 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
20065 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
20066 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
20067 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
20068 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
20069 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
20070 * config/gnu-user.h: New. Copied from linux.h.
20071 (LINUX_TARGET_STARTFILE_SPEC): Rename to
20072 GNU_USER_TARGET_STARTFILE_SPEC.
20073 (LINUX_TARGET_ENDFILE_SPEC): Rename to
20074 GNU_USER_TARGET_ENDFILE_SPEC.
20075 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
20076 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
20077 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
20078 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
20079 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
20080 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
20081 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
20082 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
20083 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
20084 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
20085 * config/arm/linux-eabi.h (CC1_SPEC): Use
20086 GNU_USER_TARGET_CC1_SPEC.
20087 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
20088 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
20089 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
20090 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
20091 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
20092 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
20093 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
20094 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
20096 2011-01-12 Richard Guenther <rguenther@suse.de>
20099 * doc/invoke.texi (ffast-math): Document it is turned on
20102 2011-01-12 Jan Hubicka <jh@suse.cz>
20104 PR tree-optimization/47233
20105 * opts.c (common_handle_option): Disable ipa-reference with profile
20108 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20110 * c-parser.c (c_parser_objc_at_property_declaration): Improved
20113 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20115 * c-parser.c (c_lex_one_token): Updated and reindented some
20116 comments. No changes in code.
20118 2011-01-11 Ian Lance Taylor <iant@google.com>
20120 * godump.c (go_output_var): Don't output the variable if there is
20121 already a type with the same name.
20123 2011-01-11 Ian Lance Taylor <iant@google.com>
20125 * godump.c (go_format_type): Don't generate float80.
20127 2011-01-11 Richard Henderson <rth@redhat.com>
20129 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
20130 declaration. Rewrite for both speed and size.
20131 (mn10300_address_cost_1): Remove.
20132 (mn10300_register_move_cost): New.
20133 (mn10300_memory_move_cost): New.
20134 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
20135 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
20136 extensions, shifts, BSWAP, CLZ.
20137 (mn10300_wide_const_load_uses_clr): Remove.
20138 (TARGET_REGISTER_MOVE_COST): New.
20139 (TARGET_MEMORY_MOVE_COST): New.
20140 * config/mn10300/mn10300-protos.h: Update.
20141 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
20143 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
20144 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
20145 * config/mn10300/mn10300-protos.h: Update.
20146 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
20147 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
20148 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
20149 (*test_int_bitfield, *test_byte_bitfield): Remove.
20150 (*bit_test, *subreg_bit_test): Remove.
20151 * config/mn10300/predicates.md (const_8bit_operand): Remove.
20153 * config/mn10300/constraints.md ("c"): Rename from "A".
20154 ("A", "D"): New constraint letters.
20155 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
20156 (fmssf4, fnmasf4, fnmssf4): Likewise.
20158 * config/mn10300/mn10300.md (isa): New attribute.
20159 (enabled): New attribute.
20161 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
20162 (abssf2, negsf2): Define only for hardware fp.
20163 (sqrtsf2): Reformat.
20164 (addsf3, subsf3, mulsf3): Merge expander and insn.
20166 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
20167 (DEBUGGER_AUTO_OFFSET): Remove.
20168 (DEBUGGER_ARG_OFFSET): Remove.
20170 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
20171 Emit register stores with the same offsets as the hardware.
20172 (mn10300_store_multiple_operation): Don't check that the register
20173 save offsets are monotonic.
20174 * config/mn10300/mn10300-protos.h: Update.
20176 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
20178 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
20179 in terms of the value on the stack, not the MDR register.
20181 2011-01-11 Jan Hubicka <jh@suse.cz>
20185 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
20186 (symbol_alias_set_destroy, symbol_alias_set_contains,
20187 propagate_aliases_backward): Declare.
20188 * lto-streamer-out.c (struct sets): New sturcture.
20189 (trivally_defined_alias): New function.
20190 (output_alias_pair_p): Rewrite.
20191 (output_unreferenced_globals): Fix output of alias pairs.
20192 (produce_symtab): Likewise.
20193 * ipa.c (function_and_variable_visibility): Set weak alias destination
20195 * varasm.c (symbol_alias_set_t): Remove.
20196 (symbol_alias_set_destroy): Export.
20197 (propagate_aliases_forward, propagate_aliases_backward): New functions
20199 (compute_visible_aliases): ... this one; remove.
20200 (trivially_visible_alias): New
20201 (trivially_defined_alias): New.
20202 (remove_unreachable_alias_pairs): Rewrite.
20203 (finish_aliases_1): Reorganize code checking if alias is defined.
20204 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
20207 2011-01-11 Richard Guenther <rguenther@suse.de>
20209 PR tree-optimization/46076
20210 * tree-ssa.c (useless_type_conversion_p): Conversions from
20211 unprototyped to empty argument list function types are useless.
20213 2011-01-11 Richard Guenther <rguenther@suse.de>
20215 PR middle-end/45235
20216 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
20217 volatile MEMs as MEM_READONLY_P.
20219 2011-01-11 Richard Guenther <rguenther@suse.de>
20221 PR tree-optimization/47239
20222 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
20224 2011-01-11 Jeff Law <law@redhat.com>
20226 PR tree-optimization/47086
20227 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
20228 IVs from statements that might throw.
20230 2011-01-10 Jan Hubicka <jh@suse.cz>
20233 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
20235 2011-01-10 Jan Hubicka <jh@suse.cz>
20238 * profile.c (read_profile_edge_counts): Ignore profile inconistency
20239 when correcting profile.
20241 2011-01-10 Jan Hubicka <jh@suse.cz>
20244 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
20245 DECL_FINI_PRIORITY.
20246 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
20247 Restore DECL_FINI_PRIORITY.
20249 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20251 * doc/gimple.texi: Fix quoting of multi-word return values in
20252 @deftypefn statements. Ensure presence of return value. Wrap
20253 overlong @deftypefn lines.
20254 (is_gimple_operand, is_gimple_min_invariant_address): Remove
20255 descriptions of removed functions.
20256 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
20257 of multi-word return value in @deftypefn statement.
20259 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20261 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
20262 (Conditional Expressions, Logical Operators)
20263 (Statement and operand traversals): Do not indent smallexample
20264 code. Fix duplicate function argument in example.
20266 2011-01-10 Jeff Law <law@redhat.com>
20268 PR tree-optimization/47141
20269 * ipa-split.c (split_function): Handle case where we are
20270 returning a value and the return block has a virtual operand phi.
20272 2011-01-10 Jan Hubicka <jh@suse.cz>
20274 PR tree-optimization/47234
20275 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
20276 (pass_feedback_split_functions): Declare.
20277 * passes.c (init_optimization_passes): Add ipa-split as subpass of
20279 * ipa-split.c (gate_split_functions): Update comments; disable
20280 split-functions for profile_arc_flag and branch_probabilities.
20281 (gate_feedback_split_functions): New function.
20282 (execute_feedback_split_functions): New function.
20283 (pass_feedback_split_functions): New global var.
20285 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
20288 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
20289 calling gimple_call_set_cannot_inline.
20291 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
20293 * config/darwin-sections.def: Remove unused section.
20295 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
20298 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
20300 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
20303 * c-parser.c (c_parser_declaration_or_fndef): Improved
20306 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
20308 * config/i386/winnt.c (i386_pe_start_function): Make sure
20309 to switch back to function's section.
20311 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
20315 * plugin.c: Move include of dlfcn.h from here...
20316 * system.h: ... to here.
20318 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20320 * doc/cpp.texi (C++ Named Operators): Fix markup for header
20322 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
20323 two extra empty pages in PDF output.
20325 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
20328 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
20329 for error recovery purposes behave as if it was not specified so
20330 that the default type is usd.
20332 2011-01-07 Jan Hubicka <jh@suse.cz>
20334 PR tree-optmization/46469
20335 * ipa.c (function_and_variable_visibility): Clear needed flags on
20336 nodes with external decls; handle weakrefs merging correctly.
20338 2011-01-07 Joseph Myers <joseph@codesourcery.com>
20340 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
20343 2011-01-07 Jan Hubicka <jh@suse.cz>
20345 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
20346 and no longer claim that gold is required for linker plugin.
20347 * configure: Regenerate.
20348 * gcc.c (PLUGIN_COND): New macro.
20349 (LINK_COMMAND_SPEC): Use it.
20350 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
20351 * config.in (HAVE_LTO_PLUGIN): New.
20352 * configure.ac (--with-lto-plugin): New parameter; autodetect
20355 2011-01-07 Jan Hubicka <jh@suse.cz>
20357 PR tree-optimization/46367
20358 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
20359 when we can update original.
20360 (cgraph_mark_inline_edge): Sanity check.
20361 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
20363 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20365 * config/spu/spu.h (ASM_COMMENT_START): Define.
20367 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
20370 * gcc.c (%>S): New.
20371 (SWITCH_KEEP_FOR_GCC): Likewise.
20372 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
20373 (do_spec_1): Handle "%>".
20375 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
20377 2011-01-07 Jakub Jelinek <jakub@redhat.com>
20380 * config/i386/i386.c (ix86_delegitimize_address): If
20381 simplify_gen_subreg fails, return orig_x.
20384 * value-prof.c (gimple_stringop_fixed_value): Handle
20385 lhs of the call properly.
20387 2011-01-07 Jan Hubicka <jh@suse.cz>
20390 * lto-opt.c (lto_reissue_options): Set flag_shlib.
20392 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20394 * target.def (function_switched_text_sections): New hook.
20395 * doc/tm.texi: Regenerated.
20396 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20397 * final.c (default_function_switched_text_sections): New.
20398 (final_scan_insn): Call function_switched_text_sections when a
20399 mid-function section change occurs.
20400 * output.h (default_function_switched_text_sections): Declare.
20401 * config/darwin-protos.h (darwin_function_switched_text_sections):
20403 * config/darwin.c (darwin_function_switched_text_sections): New.
20404 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20406 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20408 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
20409 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
20410 the secondary code fragment when outputting for DWARF == 2.
20412 2011-01-07 Anatoly Sokolov <aesok@post.ru>
20414 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20415 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
20417 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
20418 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20420 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
20423 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
20424 when it is not empty.
20426 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
20429 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
20430 (case ${target}): Add btver1.
20431 * config/i386/driver-i386.c (host_detect_local_cpu): Let
20432 -march=native recognize btver1 processors.
20433 * config/i386/i386-c.c (ix86_target_macros_internal): Add
20434 btver1 def_and_undef
20435 * config/i386/i386.c (struct processor_costs btver1_cost): New
20437 (m_BTVER1): New definition.
20438 (m_AMD_MULTIPLE): Includes m_BTVER1.
20439 (initial_ix86_tune_features): Add btver1 tune.
20440 (processor_target_table): Add btver1 entry.
20441 (static const char *const cpu_names): Add btver1 entry.
20442 (software_prefetching_beneficial_p): Add btver1.
20443 (ix86_option_override_internal): Add btver1 instruction sets.
20444 (ix86_issue_rate): Add btver1.
20445 (ix86_adjust_cost): Add btver1.
20446 * config/i386/i386.h (TARGET_BTVER1): New definition.
20447 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
20448 (enum processor_type): Add PROCESSOR_BTVER1.
20449 * config/i386/i386.md (define_attr "cpu"): Add btver1.
20451 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20454 * config/i386/i386.c (legitimize_tls_address)
20455 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
20456 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
20457 (tls_initial_exec_64_sun): New pattern.
20459 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
20461 * doc/invoke.texi (Overall Options): Improve wording and markup
20462 of the description of -wrapper.
20464 2011-01-06 Joseph Myers <joseph@codesourcery.com>
20466 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
20467 rdynamic, threads): New Driver options.
20469 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20472 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
20473 if coming from .tdata.
20474 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20476 2011-01-06 Jan Hubicka <jh@suse.cz>
20479 * collect2.c (main): Do not enable LTOmode when plugin is active.
20481 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20484 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
20485 --version output if supported.
20486 * configure: Regenerate.
20488 2011-01-06 Joseph Myers <joseph@codesourcery.com>
20490 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
20493 2011-01-06 Jakub Jelinek <jakub@redhat.com>
20496 * c-convert.c (convert): When converting a complex expression
20497 other than COMPLEX_EXPR to a different complex type, ensure
20498 c_save_expr is called instead of save_expr, unless in_late_binary_op.
20499 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20500 when converting COMPLEX_TYPE.
20502 2011-01-06 Ira Rosen <irar@il.ibm.com>
20504 PR tree-optimization/47139
20505 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20506 only the last reduction value is used outside the loop. Update
20509 2011-01-05 Joseph Myers <joseph@codesourcery.com>
20511 * config/rtems.opt: New.
20512 * config.gcc (*-*-rtems*): Use rtems.opt.
20514 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
20516 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20517 processors do not support 3DNow instructions.
20519 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20521 * config/spu/spu.c (spu_option_override): Set parameter
20522 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20524 2011-01-05 Jan Hubicka <jh@suse.cz>
20526 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20527 at the command line.
20529 2011-01-05 Martin Jambor <mjambor@suse.cz>
20532 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20533 deltas on streamed outgoing edges.
20534 (output_node_opt_summary): Output info for outgoing edges only when
20535 the node is in new parameter set.
20536 (output_cgraph_opt_summary): New parameter set, passed to the two
20537 aforementioned functions. Update its forward declaration and its
20540 2011-01-05 Tom Tromey <tromey@redhat.com>
20542 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20543 operator to c_finish_omp_atomic.
20544 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20545 (build_unary_op): Update.
20546 (build_modify_expr): Update.
20547 (build_asm_expr): Update.
20549 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20551 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20552 newly inserted insns.
20553 (pad_bb): Likewise.
20554 (spu_emit_branch_hint): Likewise.
20555 (insert_hbrp_for_ilb_runout): Likewise.
20556 (spu_machine_dependent_reorg): Call df_finish_pass after
20557 schedule_insns returns.
20559 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20561 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20563 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
20565 PR tree-optimization/47005
20566 * tree-sra.c (struct access): Add 'non_addressable' bit.
20567 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20568 (decide_one_param_reduction): Return 0 if the parameter is passed by
20569 reference and one of the accesses in the group is non_addressable.
20571 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20573 PR tree-optimization/47056
20574 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
20575 (mark_load): Likewise. Handle FUNCTION_DECL specially.
20576 (mark_store): Likewise. Pass STMT to ipa_record_reference.
20578 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20580 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
20581 initializer. Skip view conversions from aggregate types.
20583 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
20586 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
20588 2011-01-04 Philipp Thomas <pth@suse.de>
20590 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
20593 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20595 * function.c (thread_prologue_and_epilogue_insns): Do not crash
20596 on empty epilogue sequences.
20598 2011-01-04 Joseph Myers <joseph@codesourcery.com>
20600 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
20601 non-static): New Driver options.
20603 2011-01-04 Jie Zhang <jie@codesourcery.com>
20606 * gcc.c (default_compilers[]): Set combinable field to 0
20607 for all assembly languages.
20609 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
20611 * config/mips/loongson3a.md: New file.
20612 * config/mips/mips.md: Include loongson3a.md.
20613 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
20616 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
20618 PR middle-end/47017
20619 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
20620 instead of convert_memory_address_addr_space on the base expression.
20622 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20624 * config/spu/spu.c (spu_option_override): Update error text
20625 for bad -march= / -mtune= values.
20627 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20629 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20630 if branch-hint optimization will be performed.
20632 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20634 PR tree-optimization/47148
20635 * ipa-split.c (split_function): Convert arguments to
20636 DECL_ARG_TYPE if possible.
20638 PR tree-optimization/47155
20639 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20640 when computing uns.
20642 PR rtl-optimization/47157
20643 * combine.c (try_combine): If undobuf.other_insn becomes
20644 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20645 and set *new_direct_jump_p too.
20647 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
20649 PR tree-optimization/47021
20650 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20652 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20654 * gcc.c (process_command): Update copyright notice dates.
20655 * gcov.c (print_version): Likewise.
20656 * gcov-dump.c (print_version): Likewise.
20657 * mips-tfile.c (main): Likewise.
20658 * mips-tdump.c (main): Likewise.
20660 2011-01-03 Martin Jambor <mjambor@suse.cz>
20662 PR tree-optimization/46801
20663 * tree-sra.c (type_internals_preclude_sra_p): Check whether
20664 aggregate fields start at byte boundary instead of the bit-field flag.
20666 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
20669 * gcc.c (main): Revert revision 168407.
20671 2011-01-03 Martin Jambor <mjambor@suse.cz>
20673 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20675 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20677 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20678 vector optab to expand vector/scalar shift, update gimple to vector.
20680 2011-01-03 Martin Jambor <mjambor@suse.cz>
20682 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20685 2011-01-03 Martin Jambor <mjambor@suse.cz>
20687 PR tree-optimization/46984
20688 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20690 (cgraph_create_indirect_edge): Fixed line length.
20691 (cgraph_indirect_call_info): Declare.
20692 (cgraph_make_edge_direct) Update declaration.
20693 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20694 (cgraph_create_indirect_edge): Use it.
20695 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
20697 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20698 the new thunk_delta representation.
20699 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20701 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20702 (ipa_read_indirect_edge_info): Likewise.
20703 * lto-cgraph.c (output_edge_opt_summary): New function.
20704 (output_node_opt_summary): Call it on all outgoing edges.
20705 (input_edge_opt_summary): New function.
20706 (input_node_opt_summary): Call it on all outgoing edges.
20708 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20711 * gcc.c (main): Don't check have_o when settting combine_inputs.
20713 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20715 * regrename.c: Add general comment describing the pass.
20716 (struct du_head): Remove 'length' field.
20717 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20718 (regrename_optimize): Do not sort chains. Rework comments, add others.
20719 Force renaming to the preferred class (if any) in the first pass and do
20720 not consider registers that belong to it in the second pass.
20721 (create_new_chain): Do not set 'length' field.
20722 (scan_rtx_reg): Likewise.
20724 2011-01-02 Jakub Jelinek <jakub@redhat.com>
20726 PR tree-optimization/47140
20727 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20728 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20729 to bit_value_binop.
20731 PR rtl-optimization/47028
20732 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20733 parm_birth_insn instead of at the beginning of first bb.
20735 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
20737 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20738 Remove the word "see" before "@pxref".
20739 * doc/rtl.texi: Remove the word "see" before "@pxref".
20741 2011-01-01 Jan Hubicka <jh@suse.cz>
20743 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20746 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
20749 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20752 Copyright (C) 2011 Free Software Foundation, Inc.
20754 Copying and distribution of this file, with or without modification,
20755 are permitted in any medium without royalty provided the copyright
20756 notice and this notice are preserved.