1 2011-07-07 Jakub Jelinek <jakub@redhat.com>
4 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
5 referencing debug insns that have been reset.
6 (dead_debug_insert_before): Don't assert reg is non-NULL,
7 instead return immediately if it is NULL.
9 2011-07-07 Joseph Myers <joseph@codesourcery.com>
11 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa:
14 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
16 * hw-doloop.c: New file.
17 * hw-doloop.h: New file.
18 * Makefile.in (OBJS): Add hw-doloop.o.
19 (hw-doloop.o): New rule.
20 ($(obj_out_file)): Add hw-doloop.h dependency.
21 * config/bfin/bfin.c: Include "hw-doloop.h".
22 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
23 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
24 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
25 type changed to hwloop_info. Return bool, true if the loop was
26 successfully optimized. Remove code that was moved to
27 hw-doloop.c, and adjust other parts.
28 (hwloop_fail): New static function, containing parts that used
29 to be in bfin_optimize_loop.
30 (bfin_discover_loop, bfin_discover_loops, free_loops,
31 bfin_reorder_loops): Remove.
32 (hwloop_pattern_reg): New static function.
33 (bfin_doloop_hooks): New variable.
34 (bfin_reorg_loops): Remove most code, call reorg_loops.
35 * config/bfin/bfin.md (doloop_end splitter): Also enable if
36 loop counter is a memory_operand.
38 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
40 * config.gcc: Support --with-multilib-list for x86 Linux
43 * configure.ac: Mention x86-64 for --with-multilib-list.
44 * configure: Regenerated.
46 * config/i386/gnu-user64.h (SPEC_64): Support x32.
49 (LINK_SPEC): Likewise.
50 (TARGET_THREAD_SSP_OFFSET): Likewise.
51 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
54 * config/i386/i386.h (TARGET_X32): New.
56 (LONG_TYPE_SIZE): Likewise.
57 (POINTER_SIZE): Likewise.
58 (POINTERS_EXTEND_UNSIGNED): Likewise.
59 (OPT_ARCH64): Support x32.
60 (OPT_ARCH32): Likewise.
62 * config/i386/i386.opt (mx32): New.
64 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
65 (GLIBC_DYNAMIC_LINKERX32): Likewise.
66 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
67 (GLIBC_DYNAMIC_LINKERX32): Likewise.
69 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
70 (BIONIC_DYNAMIC_LINKERX32): Likewise.
71 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
73 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
75 * doc/install.texi: Document --with-multilib-list for
78 * doc/invoke.texi: Document -mx32.
80 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
82 * doc/invoke.texi (mwords-little-endian): Deprecate.
83 * config/arm/arm.opt (mwords-little-endian): Likewise.
84 * config/arm/arm.c (arm_option_override): Warn about the deprecation
85 of -mwords-little-endian.
87 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
89 * reload1.c (choose_reload_regs): Use mode sizes to check whether
90 an old reload register completely defines the required value.
92 2011-07-07 Richard Guenther <rguenther@suse.de>
94 * fold-const.c (fold_unary_loc): Do not strip sign-changes
97 2011-07-07 Richard Guenther <rguenther@suse.de>
99 * tree-vrp.c (simplify_conversion_using_ranges): New function.
100 (simplify_stmt_using_ranges): Call it.
102 2011-07-07 Kai Tietz <ktietz@redhat.com>
104 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
105 (lookup_logical_inverted_value): Likewise.
106 (simplify_bitwise_binary_1): Likewise.
107 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
109 2011-07-07 Joseph Myers <joseph@codesourcery.com>
111 * gcc.c (%[Spec]): Don't document.
112 (struct spec_list): Update comment.
113 (do_spec_1): Don't handle %[Spec].
114 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
116 2011-07-07 Joseph Myers <joseph@codesourcery.com>
118 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
119 default based on TARGET_ASM_NAMED_SECTION.
120 * common/common-target.def (have_named_sections): Default to true.
121 * common/config/default-common.c: Don't include tm.h.
122 * common/config/picochip/picochip-common.c
123 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
124 * common/config/m32c/m32c-common.c: Remove.
125 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
126 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to
128 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
130 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
132 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
133 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to
135 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to
138 2011-07-07 Jakub Jelinek <jakub@redhat.com>
141 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF
142 operands and last COMPONENT_REF operand call gimplify_expr on it
145 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
148 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
150 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
153 * configure.ac (gcc_cv_as_hidden): Also accept
154 x86_64-*-solaris2.1[0-9]*.
155 (gcc_cv_as_cfi_directive): Likewise.
156 (gcc_cv_as_comdat_group_group): Likewise.
157 (set_have_as_tls): Likewise.
158 * configure: Regenerate.
159 * config.gcc (i[34567]86-*-solaris2*): Also handle
160 x86_64-*-solaris2.1[0-9]*.
161 * config.host (i[34567]86-*-solaris2*): Likewise.
162 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
163 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
164 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
165 (TARGET_LD_EMULATION): Use it.
166 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
167 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
168 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
169 (ASM_CPU64_DEFAULT_SPEC): Define.
170 (ASM_CPU_SPEC): Use %(asm_cpu_default).
171 (ASM_SPEC): Redefine.
172 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
173 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
174 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*):
176 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
178 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
180 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
182 * config/sol2.h (ASM_SPEC): Split into ...
183 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
184 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
185 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
186 (ASM_SPEC): Use ASM_SPEC_BASE.
187 * config/sparc/sol2.h (ASM_SPEC): Redefine.
189 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
191 * config/avr/avr.md (*reload_insi): Change predicate #1 to
192 const_int_operand. Ditto for peep2 producing this insn.
193 Add argument to output_reload_insisf call.
194 (*movsi,*movsf): Add argument to output_movsisf call.
195 (*reload_insf): New insn and new peep2 to produce it.
196 * config/avr/avr-protos.h (output_movsisf): Change prototype.
197 (output_reload_insisf): Change prototype.
198 * config/avr/avr.c (avr_asm_len): New function.
199 (output_reload_insisf): Rewrite.
200 (output_movsisf): Change prototype. output_reload_insisf for
201 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
202 (adjust_insn_length): Add argument to output_movsisf and
203 output_reload_insisf call.
205 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
207 * emit-rtl.c (paradoxical_subreg_p): New function.
208 * rtl.h (paradoxical_subreg_p): Declare.
209 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
210 apply_distributive_law, simplify_comparison, simplify_set): Use it.
211 * cse.c (record_jump_cond, cse_insn): Likewise.
212 * expr.c (force_operand): Likewise.
213 * rtlanal.c (num_sign_bit_copies1): Likewise.
214 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
215 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
216 (push_reload): Use precision to check for paradoxical subregs.
217 * expmed.c (extract_bit_field_1): Likewise.
219 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
220 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
221 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
222 simplify_set, simplify_logical, expand_compound_operation,
223 make_extraction, force_to_mode, if_then_else_cond, extended_count,
224 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
225 record_value_for_reg): Likewise.
226 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
227 * simplify-rtx. c (simplify_unary_operation_1,
228 simplify_binary_operation_1, simplify_const_relational_operation):
231 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
232 instead of GET_MODE_BITSIZE where appropriate.
233 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
234 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
235 init_num_sign_bit_copies_in_rep): Likewise.
236 * cse.c (fold_rtx, cse_insn): Likewise.
237 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
238 * simplify-rtx.c (simplify_unary_operation_1,
239 simplify_const_unary_operation, simplify_binary_operation_1,
240 simplify_const_binary_operation, simplify_ternary_operation,
241 simplify_const_relational_operation, simplify_subreg): Likewise.
242 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
243 simplify_if_then_else, simplify_set, expand_compound_operation,
244 expand_field_assignment, make_extraction, if_then_else_cond,
245 make_compound_operation, force_to_mode, make_field_assignment,
246 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
247 extended_count, try_widen_shift_mode, simplify_shift_const_1,
248 simplify_comparison, record_promoted_value, simplify_compare_const,
249 record_dead_and_set_regs_1): Likewise.
252 * simplify-rtx.c (simplify_const_binary_operation): Use the
253 shift_truncation_mask hook instead of performing modulo by
254 width. Compare against mode precision, not bitsize.
255 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
256 Use shift_truncation_mask instead of constructing the value
259 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
261 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
263 (rs6000_save_toc_in_prologue_p): Ditto.
265 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
266 up the static chain (r11) during indirect function calls.
267 (-msave-toc-indirect): New undocumented debug switch.
269 * config/rs6000/rs6000.c (struct machine_function): Add
270 save_toc_in_prologue field to note whether the prologue needs to
271 save the TOC value in the reserved stack location.
272 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
273 to save the TOC in the prologue, do so.
274 (rs6000_trampoline_init): Don't allow creating AIX style
275 trampolines if -mno-r11 is in effect.
276 (rs6000_call_indirect_aix): New function to create AIX style
277 indirect calls, adding support for -mno-r11 to suppress loading
278 the static chain, and saving the TOC in the prologue instead of
280 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
283 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
286 (STATIC_CHAIN_REGNUM): Ditto.
287 (ARG_POINTER_REGNUM): Ditto.
288 (SFP_REGNO): Delete, unused.
289 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
290 function descriptor offsets.
291 (TOC_SAVE_OFFSET_64BIT): Ditto.
292 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
293 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
294 (AIX_FUNC_DESC_SC_32BIT): Ditto.
295 (AIX_FUNC_DESC_SC_64BIT): Ditto.
296 (ptrload): New mode attribute for the appropriate load of a
298 (call_indirect_aix32): Delete, rewrite AIX indirect function
300 (call_indirect_aix64): Ditto.
301 (call_value_indirect_aix32): Ditto.
302 (call_value_indirect_aix64): Ditto.
303 (call_indirect_nonlocal_aix32_internal): Ditto.
304 (call_indirect_nonlocal_aix32): Ditto.
305 (call_indirect_nonlocal_aix64_internal): Ditto.
306 (call_indirect_nonlocal_aix64): Ditto.
307 (call): Rewrite AIX indirect function calls. Add support for
308 eliminating the static chain, and for moving the save of the TOC
309 to the function prologue.
311 (call_indirect_aix<ptrsize>): Ditto.
312 (call_indirect_aix<ptrsize>_internal): Ditto.
313 (call_indirect_aix<ptrsize>_internal2): Ditto.
314 (call_indirect_aix<ptrsize>_nor11): Ditto.
315 (call_value_indirect_aix<ptrsize>): Ditto.
316 (call_value_indirect_aix<ptrsize>_internal): Ditto.
317 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
318 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
319 (call_nonlocal_aix32): Relocate in the rs6000.md file.
320 (call_nonlocal_aix64): Ditto.
322 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
323 -mno-r11 documentation.
325 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
328 * doc/extend.texi (Compound Literals): Fix typo.
330 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
332 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add
335 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
337 * configure.ac (plugin-version.h): Generate
338 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
339 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
342 * configure: Regenerate.
344 * doc/plugins.texi (Building GCC plugins): Mention
345 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
347 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
349 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
350 * combine.c (make_extraction, gen_lowpart_or_truncate,
351 apply_distributive_law, simplify_comparison,
352 reg_truncated_to_mode, record_truncated_value): Use it.
353 * cse.c (notreg_cost): Likewise.
354 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
355 * expr.c (convert_move, convert_modes): Likewise.
356 * optabs.c (expand_binop, expand_unop): Likewise.
357 * postreload.c (move2add_last_label): Likewise.
358 * regmove.c (optimize_reg_copy_3): Likewise.
359 * rtlhooks.c (gen_lowpart_general): Likewise.
360 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
362 2011-07-06 Joseph Myers <joseph@codesourcery.com>
364 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
366 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
368 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
369 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
370 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
371 (simplify_const_unary_operation, simplify_binary_operation_1,
372 simplify_const_binary_operation,
373 simplify_const_relational_operation): Use them. Use
374 GET_MODE_MASK for masking and sign-extensions.
375 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
376 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
377 simplify_shift_const_1, simplify_comparison): Likewise.
378 * expr.c (convert_modes): Likewise.
379 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
380 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag):
382 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
384 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
386 2011-07-06 Richard Guenther <rguenther@suse.de>
388 PR tree-optimization/49645
389 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
391 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
392 in type qualification here ...
393 (copy_reference_ops_from_ref): ... not here.
394 (vn_reference_lookup_3): ... or here.
395 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
396 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
398 2011-07-06 Ian Lance Taylor <iant@google.com>
400 * doc/install.texi (Configuration): It's
401 --enable-gnu-indirect-function, not --enable-indirect-function.
403 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
405 * simplify-rtx.c (simplify_const_binary_operation): Use the
406 shift_truncation_mask hook instead of performing modulo by
407 width. Compare against mode precision, not bitsize.
408 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
409 Use shift_truncation_mask instead of constructing the value
412 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
415 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
416 address computation and convert to address_mode if needed.
418 2011-07-06 Richard Guenther <rguenther@suse.de>
420 * tree.c (build_common_tree_nodes_2): Merge with
421 build_common_tree_nodes.
422 * tree.h (build_common_tree_nodes): Adjust prototype.
423 (build_common_tree_nodes_2): Remove.
424 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
425 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
427 2011-07-05 Jakub Jelinek <jakub@redhat.com>
429 PR tree-optimization/49618
430 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
431 t recurse on the decl.
432 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
433 return true if expr isn't known to be defined in current
434 TU or some other LTO partition.
436 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
438 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
439 override CASE_VALUES_THRESHOLD.
441 * stmt.c (toplevel): Include params.h.
442 (case_values_threshold): Use the --param case-values-threshold
443 value if non-zero, otherwise use machine dependent value.
444 (expand_case): Use case_values_threshold.
446 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
448 * doc/invoke.texi (--param case-values-threshold): Document.
450 2011-07-05 Richard Henderson <rth@redhat.com>
452 * dwarf2out.c (dwarf2out_cfi_label): Make static.
453 (dwarf2out_flush_queued_reg_saves): Make static.
454 (dwarf2out_reg_save): Remove.
455 (dwarf2out_return_save): Remove.
456 (dwarf2out_return_reg): Remove.
457 (dwarf2out_reg_save_reg): Remove.
458 (dwarf2out_def_cfa): Merge into ...
459 (dwarf2out_frame_init): ... here.
460 * dwarf2out.h, tree.h: Remove declarations as necessary.
462 2011-07-05 Richard Henderson <rth@redhat.com>
464 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
465 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
466 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
469 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
470 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
471 (process_epilogue): Don't call dwarf2out_def_cfa.
473 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
474 indicate the return address save.
475 (process_cfa_register): Likewise.
477 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
478 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
480 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
481 for ar.pfs save at alloc insn.
483 2011-07-05 Richard Henderson <rth@redhat.com>
485 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
486 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
487 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
489 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
490 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
491 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
492 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
494 2011-07-05 Richard Henderson <rth@redhat.com>
496 * config/vax/vax.md (define_c_enum unspecv): New. Define the
497 VUNSPEC_* constants here instead of via define_constants.
498 (VUNSPEC_PEM): New constant.
499 (procedure_entry_mask): New insn.
500 (prologue): New expander.
501 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
502 (vax_expand_prologue): Rename from vax_output_function_prologue;
503 emit rtl instead of text.
504 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
505 (print_operand): Add 'x' prefix.
507 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
510 * calls.c (precompute_register_parameters): Promote the function
511 argument before checking non-legitimate constant.
513 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
515 PR tree-optimization/47654
516 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
517 (lst_do_strip_mine_loop): Return an int.
518 (lst_do_strip_mine): Same.
519 (scop_do_strip_mine): Same.
520 (scop_do_block): Loop blocking should strip-mine at least two loops.
521 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
522 (scop_do_interchange): Same.
523 * graphite-poly.h (scop_do_interchange): Update declaration.
524 (scop_do_strip_mine): Same.
526 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
528 * graphite-clast-to-gimple.c (precision_for_value): Removed.
529 (precision_for_interval): Removed.
530 (gcc_type_for_interval): Use mpz_sizeinbase.
532 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
534 * graphite-ppl.h (value_max): Correct computation of max.
536 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
538 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
540 2011-07-05 Richard Guenther <rguenther@suse.de>
542 * c-decl.c (c_init_decl_processing): Defer building common
543 tree nodes to c_common_nodes_and_builtins.
545 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
547 PR tree-optimization/49580
548 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
549 the loop's number of iterations.
550 * tree-parloops.c (transform_to_exit_first_loop): Add the
551 handling of the loop's number of iterations before the call
552 to gimple_duplicate_sese_tail.
553 Insert the stmt caclculating the new rhs of the loop's
554 condition stmt to the preheader instead of iters_bb.
556 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
558 PR rtl-optimization/47449
559 * fwprop.c (forward_propagate_subreg): Don't propagate hard
560 register nor zero/sign extended hard register.
562 2011-07-05 Richard Guenther <rguenther@suse.de>
564 PR tree-optimization/49518
565 PR tree-optimization/49628
566 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
567 irrelevant and invariant data-references.
568 (vect_analyze_data_ref_access): For invariant loads clear the
571 2011-07-04 Jakub Jelinek <jakub@redhat.com>
573 PR rtl-optimization/49619
574 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
575 pass VOIDmode as op0_mode to recursive call, and return temp even
576 when different from tor, just if it is not IOR of the original
579 PR rtl-optimization/49472
580 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
581 negating MULT, negate the second operand instead of first.
582 (simplify_binary_operation_1) <case MULT>: If one operand is
583 a NEG and the other is MULT, don't attempt to optimize by
584 negation of the MULT operand if it only moves the NEG operation
588 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
589 get_current_def return value if it can't be trusted to be
590 the current value of the variable in the current bb.
592 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
595 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
596 general register to memory for !TARGET_INTER_UNIT_MOVES.
598 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
601 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
602 instead of TREE_READONLY.
604 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
606 * doc/extend.texi (AVR Built-in Functions): Update documentation
607 of __builtin_avr_fmul*.
608 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
609 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
610 * config/avr/avr.md (fmul): Rename to fmul_insn.
611 (fmuls): Rename to fmuls_insn.
612 (fmulsu): Rename to fmulsu_insn.
613 (fmul,fmuls,fmulsu): New expander.
614 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
615 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
616 * config/avr/libgcc.S (__fmul): New function.
617 (__fmuls): New function.
618 (__fmulsu,__fmulsu_exit): New function.
620 2011-07-04 Richard Guenther <rguenther@suse.de>
622 PR tree-optimization/49615
623 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
624 basic-block index check.
626 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
628 * longlong.h (count_leading_zeros, count_trailing_zeros,
629 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
632 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
634 PR tree-optimization/49610
635 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
638 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
639 Olivier Hainque <hainque@adacore.com>
640 Nicolas Setton <setton@adacore.com>
642 * tree.h (TYPE_ARTIFICIAL): New flag.
643 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
644 the DIE of the type if it is artificial.
645 (gen_array_type_die): Likewise.
646 (gen_enumeration_type_die): Likewise.
647 (gen_struct_or_union_type_die): Likewise.
648 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
649 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
651 2011-07-01 Jakub Jelinek <jakub@redhat.com>
653 * tree-object-size.c (pass_through_call): Handle
654 BUILT_IN_ASSUME_ALIGNED.
656 2011-07-01 Martin Jambor <mjambor@suse.cz>
658 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
660 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
663 * explow.c (update_nonlocal_goto_save_area): Use proper mode
665 * function.c (expand_function_start): Likewise.
667 2011-07-01 Richard Guenther <rguenther@suse.de>
670 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
671 may have unknown refs.
673 2011-07-01 Kai Tietz <ktietz@redhat.com>
675 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
677 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
679 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
680 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
681 (Specific, mips-sgi-irix6): Likewise.
683 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
686 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
688 2011-07-01 Jakub Jelinek <jakub@redhat.com>
690 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
691 [idx]= and [idx1 ... idx2]= before initializers if needed for
694 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
696 * config.gcc (score-*-elf): Remove score7.o.
697 * config/score/t-score-elf: Likewise.
698 * config/score/score.c: Merge score7 to score.c and
699 remove forwarding functions.
700 * config/score/score7.c: Deleted.
701 * config/score/score7.h: Deleted.
703 2011-07-01 Richard Guenther <rguenther@suse.de>
705 PR tree-optimization/49603
706 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
708 2011-06-30 Martin Jambor <mjambor@suse.cz>
710 * tree-sra.c (struct access): Rename total_scalarization to
711 grp_total_scalarization
712 (completely_scalarize_var): New function.
713 (sort_and_splice_var_accesses): Set total_scalarization in the
714 representative access.
715 (analyze_access_subtree): Propagate total scalarization accross the
716 tree, no holes in totally scalarized trees, simplify coverage
718 (analyze_all_variable_accesses): Call completely_scalarize_var instead
719 of completely_scalarize_record.
721 2011-06-30 Richard Henderson <rth@redhat.com>
723 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
724 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
725 * config/i386/i386.c: Don't include dwarf2out.h.
726 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
727 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
728 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
729 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
730 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
732 2011-06-30 Richard Henderson <rth@redhat.com>
734 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
735 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
736 * final.c (final_scan_insn): Look for it, and invoke
737 dwarf2out_frame_debug before the insn if found.
739 2011-06-30 Richard Henderson <rth@redhat.com>
741 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
742 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
744 2011-06-30 Richard Henderson <rth@redhat.com>
746 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
747 Define a vector of this type.
748 (regs_saved_in_regs): Use a VEC.
749 (num_regs_saved_in_regs): Remove.
750 (compare_reg_or_pc): New.
751 (record_reg_saved_in_reg): Split out from...
752 (dwarf2out_flush_queued_reg_saves): ... here.
753 (clobbers_queued_reg_save): Update for VEC.
754 (reg_saved_in): Likewise.
755 (dwarf2out_frame_debug_init): Likewise.
756 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
757 (dwarf2out_frame_debug_cfa_register): Likewise.
759 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
761 PR tree-optimization/49572
762 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
763 type of the RHS instead of that of the LHS for the expression type.
765 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
767 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
770 2011-06-30 Richard Guenther <rguenther@suse.de>
772 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
773 * tree-ssa-structalias.c (create_variable_info_for): Do not
774 add initial constraints for non-var-decls. Properly handle
775 globals in other ltrans partitions.
776 (intra_create_variable_infos): Manually create constraints for
777 the fake no-alias parameter.
778 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
779 and assert there are no clones.
781 2011-06-30 Richard Guenther <rguenther@suse.de>
783 PR tree-optimization/46787
784 * tree-data-ref.c (dr_address_invariant_p): Remove.
785 (find_data_references_in_stmt): Invariant accesses are ok now.
786 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
787 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
790 2011-06-30 Martin Jambor <mjambor@suse.cz>
792 PR tree-optimization/49094
793 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
794 (build_accesses_from_assign): Use it.
796 2011-06-30 Jakub Jelinek <jakub@redhat.com>
798 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
799 handling of BUILT_IN_ASSUME_ALIGNED.
802 * dwarf2out.c (output_abbrev_section): Don't return early
803 if abbrev_die_table_in_use is 1.
804 (dwarf2out_finish): Instead don't call output_abbrev_section
805 nor emit abbrev_section_label in that case.
807 2011-06-30 Nick Clifton <nickc@redhat.com>
809 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
812 2011-06-30 Jakub Jelinek <jakub@redhat.com>
814 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
815 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
817 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
819 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
820 both pattern and original statements if necessary.
821 (vect_transform_loop): Likewise.
822 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
823 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
824 Mark the pattern statement only if the original statement doesn't
826 (process_use): Call vect_mark_relevant with additional parameter.
827 (vect_mark_stmts_to_be_vectorized): Likewise.
828 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
829 (vect_analyze_stmt): Handle both pattern and original statements
831 (vect_transform_stmt): Don't store vectorized pattern statement
832 in the original statement.
833 (vect_is_simple_use_1): Use related pattern statement only if the
834 original statement is irrelevant.
835 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
837 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
839 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
841 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
843 (TARGET_AVX128_OPTIMAL): New definition.
844 * config/i386/i386.c (initial_ix86_tune_features): Initialize
845 X86_TUNE_AVX128_OPTIMAL entry.
846 (ix86_option_override_internal): Enable the generation
847 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
848 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
849 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
851 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
853 PR tree-optimization/49539
854 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
855 names by means of stmt_references_abnormal_ssa_name.
856 (associate_plusminus): Call can_propagate_from before propagating
857 from definition statements.
858 (ssa_forward_propagate_and_combine): Remove superfluous newline.
860 2011-06-29 Richard Guenther <rguenther@suse.de>
862 * doc/invoke.texi: Document -scev dump modifier.
863 * tree-pass.h (TDF_SCEV): New dump flag.
864 * tree-dump.c (dump_option_value_in): Add scev.
865 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
866 * tree-scalar-evolution.c: Likewise.
868 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
870 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
871 (cxa_type_match): Correct declaration.
872 (__gnu_unwind_pr_common): Reconstruct additional indirection
873 when __cxa_type_match returns succeeded_with_ptr_to_base.
875 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
877 PR rtl-optimization/49114
878 * reload.c (struct replacement): Remove SUBREG_LOC member.
879 (push_reload): Do not set it.
880 (push_replacement): Likewise.
881 (subst_reload): Remove dead code.
882 (copy_replacements): Remove assertion.
883 (copy_replacements_1): Do not handle SUBREG_LOC.
884 (move_replacements): Likewise.
885 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
886 Detect subregs via recursive descent instead of via SUBREG_LOC.
888 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
890 * config/avr/avr.c (avr_encode_section_info): Dispatch to
891 default_encode_section_info.
893 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
895 PR tree-optimization/49545
896 * builtins.c (get_object_alignment_1): Update function comment.
897 Do not use DECL_ALIGN for functions, but test
898 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
899 * fold-const.c (get_pointer_modulus_and_residue): Don't check
901 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
903 2011-06-29 Jakub Jelinek <jakub@redhat.com>
906 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
907 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
909 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
912 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
913 about uninitialized data attributed 'progmem' from here...
914 (avr_encode_section_info): ...to this new function.
915 (TARGET_ENCODE_SECTION_INFO): New define.
916 (avr_section_type_flags): For data in ".progmem.data", remove
917 section flag SECTION_WRITE.
919 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
921 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
923 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
924 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
925 (__umulhisi3): Ditto.
926 * config/avr/avr.md (mulhisi3): New insn expender.
927 (umulhisi3): New insn expender.
928 (*mulhisi3_call): New insn.
929 (*umulhisi3_call): New insn.
931 2011-06-28 Joseph Myers <joseph@codesourcery.com>
933 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
935 2011-06-28 Richard Henderson <rth@redhat.com>
937 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
938 all code and arguments that handled pushes. Update all callers.
940 2011-06-28 Richard Henderson <rth@redhat.com>
942 * config/arm/arm.c (arm_output_function_prologue): Don't call
943 thumb1_output_function_prologue.
944 (arm_expand_prologue): Avoid dead store.
945 (number_of_first_bit_set): Use ctz_hwi.
946 (thumb1_emit_multi_reg_push): New.
947 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
948 to emit the entire prologue as rtl.
949 (thumb1_output_interwork): Split out from
950 thumb1_output_function_prologue.
951 (thumb1_output_function_prologue): Remove.
952 (arm_attr_length_push_multi): Handle thumb1.
953 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
954 (prologue_thumb1_interwork): New.
955 (*push_multi): Allow thumb1; use push_mult_memory_operand.
956 * config/arm/predicates.md (push_mult_memory_operand): New.
958 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
960 * config/sparc/sync.md (*stbar): Delete.
961 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
963 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
965 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
967 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
969 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
970 (TARGET_64BIT_DEFAULT): Define.
971 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
973 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
975 2011-06-28 Joseph Myers <joseph@codesourcery.com>
977 * common.opt (in_lto_p): New Variable entry.
978 * flags.h (in_lto_p): Move to common.opt.
979 * gcc.c: Include params.h.
980 (set_option_handlers): Also use common_handle_option and
981 target_handle_option.
982 (main): Call global_init_params, finish_params and init_options_struct.
983 * opts.c (debug_type_names): Move from toplev.c.
984 (print_filtered_help): Access quiet_flag through opts pointer.
985 (common_handle_option): Return early in the driver for some options.
986 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
988 * toplev.c (in_lto_p): Move to common.opt.
989 (debug_type_names): Move to opts.c.
990 * Makefile.in (OBJS): Remove opts.o.
991 (OBJS-libcommon-target): Add opts.o.
992 (gcc.o): Update dependencies.
994 2011-06-28 Kai Tietz <ktietz@redhat.com>
996 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
998 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1000 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
1001 with '=' constraint modifier.
1002 (*divdf3_vfp): Likewise.
1003 ("*mulsf3_vfp"): Likewise.
1004 ("*muldf3_vfp"): Likewise.
1005 ("*mulsf3negsf_vfp"): Likewise.
1006 ("*muldf3negdf_vfp"): Likewise.
1008 2011-06-28 Nick Clifton <nickc@redhat.com>
1010 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
1011 relaxation when performing an incremental link.
1013 2011-06-28 Kai Tietz <ktietz@redhat.com>
1015 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
1016 within BB from last to first.
1018 2011-06-28 Joseph Myers <joseph@codesourcery.com>
1020 * genattr-common.c: New. Based on genattr.c.
1021 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
1022 (MOSTLYCLEANFILES): Add insn-attr-common.h.
1023 (opts.o): Update dependencies.
1024 (.PRECIOUS): Add insn-attr-common.h.
1025 (simple_rtl_generated_h): Add insn-attr-common.h.
1026 (build/genattr-common.o): New.
1027 (genprogrtl): Add attr-common.
1028 * genattr.c (main): Include insn-attr-common.h. Don't generate
1029 definitions of DELAY_SLOTS or INSN_SCHEDULING.
1030 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
1032 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
1034 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
1035 avr-*-* and avr-*-rtems* targets.
1037 * config/avr/elf.h: New file.
1038 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
1039 (TARGET_ASM_SELECT_SECTION): Define.
1040 (INIT_SECTION_ASM_OP): Undefine.
1041 (FINI_SECTION_ASM_OP): Undefine.
1042 (READONLY_DATA_SECTION_ASM_OP): Undefine.
1043 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
1044 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
1046 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
1047 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
1048 (MAX_OFILE_ALIGNMENT): Move to elf.h.
1049 (STRING_LIMIT): Move to elf.h.
1050 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
1051 (ASM_DECLARE_OBJECT_NAME): Remove.
1053 (ASM_OUTPUT_SKIP): Remove.
1054 (DWARF2_DEBUGGING_INFO): Remove.
1055 (OBJECT_FORMAT_ELF): Remove.
1056 (USER_LABEL_PREFIX): Remove.
1057 (ASM_OUTPUT_EXTERNAL): Remove.
1058 (ASM_OUTPUT_ASCII): Remove.
1059 (TYPE_ASM_OP): Remove.
1060 (SIZE_ASM_OP): Remove.
1061 (WEAK_ASM_OP): Remove.
1062 (STRING_ASM_OP): Remove.
1063 (SET_ASM_OP): Remove.
1064 (ASM_WEAKEN_LABEL): Remove.
1065 (TYPE_OPERAND_FMT): Remove.
1066 (ASM_DECLARE_FUNCTION_SIZE): Remove.
1067 (ASM_FINISH_DECLARE_OBJECT): Remove.
1068 (NO_DOLLAR_IN_LABEL): Remove.
1069 (ASM_GENERATE_INTERNAL_LABEL): Remove.
1070 (ASM_OUTPUT_CASE_LABEL): Remove.
1071 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
1072 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
1073 (gas_output_ascii): Remove.
1074 (gas_output_limited_string): Remove.
1075 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
1076 * config/avr/avr-protos.h
1077 (gas_output_ascii): Remove prototye.
1078 (gas_output_limited_string): Remove prototype.
1080 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
1083 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
1086 2011-06-27 Jan Hubicka <jh@suse.cz>
1088 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
1089 node instead of references in node.
1091 2011-06-27 Richard Henderson <rth@redhat.com>
1093 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
1094 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
1097 2011-06-27 Jakub Jelinek <jakub@redhat.com>
1099 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
1101 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
1102 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
1103 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
1104 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
1105 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
1106 (evaluate_stmt, execute_fold_all_builtins): Handle
1107 BUILT_IN_ASSUME_ALIGNED.
1108 * tree-ssa-dce.c (propagate_necessity): Likewise.
1109 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1110 call_may_clobber_ref_p_1): Likewise.
1111 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
1112 (expand_builtin_assume_aligned): New function.
1113 * doc/extend.texi (__builtin_assume_aligned): Document.
1116 * cselib.c (promote_debug_loc): If cselib_preserve_constants
1117 and l has two DEBUG_INSN owned locs instead of just one, adjust
1118 the second location's setting_insn too.
1120 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1123 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
1125 2011-06-27 Nick Clifton <nickc@redhat.com>
1127 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
1128 bit position of highest bit set into a count of the high zero bits.
1130 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1132 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
1134 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1137 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
1140 2011-06-27 Richard Guenther <rguenther@suse.de>
1142 PR tree-optimization/49394
1143 * passes.c (execute_one_pass): Restore current_pass after
1144 applying IPA transforms.
1146 2011-06-27 Kai Tietz <ktietz@redhat.com>
1148 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
1149 out of type precision after operation.
1150 (find_bswap): Take for limit value the integer auto-promotion
1153 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1155 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
1156 forward scan as well.
1158 2011-06-27 Tristan Gingold <gingold@adacore.com>
1161 * config/vms/vms-protos.h: New file.
1162 * config/vms/vms-crtlmap.map: New file.
1163 * config/vms/vms.c: New file.
1164 * config/vms/make-crtlmap.awk: New file.
1165 * config/vms/vms-crtl.h: File removed.
1166 * config/vms/vms-crtl-64.h: File removed.
1167 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
1168 * config/alpha/vms64.h: Do not include vms-crtl-64.h
1169 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
1170 clear some builtins on VMS. Calls vms_patch_builtins.
1171 (avms_asm_output_external): Remove.
1172 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
1173 (struct crtl_name_spec): Remove
1174 (DO_CTRL_NAMES): Remove.
1175 * config/ia64/vms.h (struct crtl_name_spec): Remove
1176 (DO_CTRL_NAMES): Remove.
1177 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
1178 clear some builtins on VMS. Calls vms_patch_builtins.
1179 (ia64_asm_output_external): Remove DO_CRTL_NAME.
1180 * config/ia64/vms64.h: Do not include vms-crtl-64.h
1181 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
1183 2011-06-27 Tristan Gingold <gingold@adacore.com>
1185 * config/alpha/alpha.c (alpha_end_function): Always generate .end
1188 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
1190 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
1191 the function receives nonlocal gotos.
1193 2011-06-27 Richard Guenther <rguenther@suse.de>
1195 PR tree-optimization/49536
1196 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
1197 For non-scalar inner types use a scalar type according to
1198 the scalar inner mode.
1200 2011-06-27 Richard Guenther <rguenther@suse.de>
1202 PR tree-optimization/49365
1203 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
1205 2011-06-27 Richard Guenther <rguenther@suse.de>
1207 PR tree-optimization/49169
1208 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
1209 the alignment of function decls.
1211 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
1214 * config/darwin.c (darwin_mergeable_string_section): Place string
1215 constants in '.cstring' rather than '.const' when CF/NSStrings are
1218 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
1220 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
1221 (emit_save_register_window): Likewise.
1222 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
1223 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
1224 Swap back %o7/%i7 in register naming.
1226 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
1229 * config/darwin.c (darwin_override_options): Improve warning when
1230 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
1231 is given with fpie/fPIE.
1232 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
1233 * config/darwin9.h (PIE_SPEC): New.
1235 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
1237 * timevar.c (timevar_print): Increase width for display of timevar
1240 2011-06-24 Jakub Jelinek <jakub@redhat.com>
1243 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
1244 instead of TYPE_CHAIN for chain_next for types.
1246 2011-06-24 Richard Henderson <rth@redhat.com>
1248 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
1249 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
1250 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
1251 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
1252 (sparc_flat_expand_prologue): Emit individual instructions
1253 instead of one of the above.
1255 2011-06-24 Easwaran Raman <eraman@google.com>
1257 PR rtl-optimization/49429
1259 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
1260 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
1261 used to copy y into x.
1262 * calls.c (initialize_argument_information): Mark
1263 an argument addressable if it is passed by invisible reference.
1264 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
1265 if it is passed by reference.
1267 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
1269 PR rtl-optimization/49504
1270 * rtlanal.c (nonzero_bits1): Properly handle addition or
1271 subtraction of a pointer in Pmode if pointers extend unsigned.
1272 (num_sign_bit_copies1): Likewise.
1274 2011-06-24 Martin Jambor <mjambor@suse.cz>
1276 PR tree-optimizations/49516
1277 * tree-sra.c (sra_modify_assign): Choose the safe path for
1278 aggregate copies if we also did scalar replacements.
1280 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1283 * config/arm/predicates.md (add_operator): New.
1284 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
1286 2011-06-24 Andi Kleen <ak@linux.intel.com>
1288 * tree-sra.c (type_internals_preclude_sra_p): Add msg
1289 parameter. Split up ifs and report reason in *msg.
1291 (find_var_candiate): Add msg variable.
1292 Split up ifs and report reason to reject.
1293 (find_param_candidates): Add msg variable.
1294 Pass msg to type_internals_preclude_sra_p.
1296 2011-06-23 Jeff Law <law@redhat.com>
1299 * reload.h (reload): Change to return a bool.
1300 * ira.c (ira): If requested by reload, run a fast DCE pass after
1301 reload has completed. Fix comment typo.
1302 * reload1.c (need_dce): New file scoped static.
1303 (reload): Set reload_completed here. Return whether or not a DCE
1304 pass after reload is needed.
1305 (delete_dead_insn): Set need_dce as needed.
1308 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
1309 to detect threading through joiner block. If there was already
1310 an edge to the new target, then do not change the PHI nodes.
1312 2011-06-23 Jakub Jelinek <jakub@redhat.com>
1314 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
1315 get_pointer_alignment to see if base isn't sufficiently aligned.
1317 2011-06-23 Jan Hubicka <jh@suse.cz>
1319 PR tree-optimize/49373
1320 * tree-pass.h (all_late_ipa_passes): Declare.
1321 * cgraphunit.c (init_lowered_empty_function): Fix properties.
1322 (cgraph_optimize): Execute late passes; remove unreachable funcions
1323 after materialization.
1324 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
1326 * passes.c (all_late_ipa_passes): Declare.
1327 (dump_passes, register_pass): Handle late ipa passes.
1328 (init_optimization_passes): Move ipa_pta to late passes; schedule
1329 fixup_cfg at beggining of all_passes.
1330 (apply_ipa_transforms): New function.
1331 (execute_one_pass): When doing simple ipa pass, apply all transforms.
1333 2011-06-23 Joseph Myers <joseph@codesourcery.com>
1335 * params.c: Include common/common-target.h. Don't include tm.h.
1336 (lang_independent_params): Move from toplev.c.
1337 (global_init_params): New.
1338 * params.h (global_init_params): Declare.
1339 * target.def (default_params): Move to common-target.def.
1340 * toplev.c (lang_independent_options): Remove.
1341 (lang_independent_params): Move to params.c.
1342 (general_init): Use global_init_params.
1343 * common/common-target.def (option_default_params): Move from
1345 * common/config/ia64/ia64-common.c: Include params.h.
1346 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1348 * common/config/rs6000/rs6000-common.c: Include params.h.
1349 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1351 * common/config/sh/sh-common.c: Include params.h.
1352 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1354 * common/config/spu/spu-common.c: Include params.h.
1355 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
1357 * config/ia64/ia64.c (ia64_option_default_params,
1358 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
1359 * config/rs6000/rs6000.c (rs6000_option_default_params,
1360 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
1361 * config/sh/sh.c (sh_option_default_params,
1362 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
1363 * config/spu/spu.c (spu_option_default_params,
1364 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
1365 * Makefile.in (OBJS): Remove params.o.
1366 (OBJS-libcommon-target): Add params.o.
1367 (params.o, $(common_out_object_file)): Update dependencies.
1368 * doc/tm.texi: Regenerate.
1370 2011-06-23 Alan Modra <amodra@gmail.com>
1373 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
1374 invocation for 2011-06-09 changes.
1376 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1379 * omp-low.c (expand_omp_for_static_nochunk): Only
1380 use n ceil/ nthreads size for the first n % nthreads threads in the
1381 team instead of all threads except for the last few ones which
1382 get less work or none at all.
1385 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
1388 2011-06-22 Richard Guenther <rguenther@suse.de>
1390 PR tree-optimization/49493
1391 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
1392 Refer to the alias target of variables.
1393 (associate_varinfo_to_alias_1): Remove.
1394 (ipa_pta_execute): Do not associate aliases with anything.
1395 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
1396 (cgraph_function_node): Likewise.
1397 (cgraph_function_or_thunk_node): Likewise.
1398 (varpool_variable_node): Likewise.
1400 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1402 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
1403 * config.gcc (arm*-*-linux*): Default to gnu tls.
1404 (arm*-*-*): Add --with-tls option.
1405 (all_defaults): Add 'tls'.
1407 2011-06-22 Richard Henderson <rth@redhat.com>
1409 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
1410 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
1411 (dwarf2out_frame_debug_cfa_window_save): Rename from
1412 dwarf2out_window_save; make static.
1413 * tree.h (dwarf2out_window_save): Don't declare.
1415 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
1416 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
1417 (emit_save_register_window): Rename from gen_save_register_window;
1418 emit the insn and add REG_CFA_* notes.
1419 (sparc_expand_prologue): Update to match.
1420 * config/sparc/sparc.md (save_register_window_1): Simplify from
1421 save_register_window<P:mode>.
1423 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
1426 * config/i386/i386.md (*lea_general_2): Always allow SImode.
1427 (*lea_general_2_zext): Likewise.
1428 (imul to lea peepholes): Use const359_operand and check
1429 TARGET_PARTIAL_REG_STALL.
1431 * config/i386/predicates.md (const359_operand): New.
1433 2011-06-22 Michael Matz <matz@suse.de>
1435 * cgraphunit.c (assemble_thunk): Use correct return type.
1437 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
1438 Dmitry Melnik <dm@ispras.ru>
1440 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
1441 (neon_output_shift_immediate): Ditto.
1442 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
1444 (neon_output_shift_immediate): Ditto.
1445 * config/arm/neon.md (vashl<mode>3): Modified constraint.
1446 (vashr<mode>3_imm): New insn pattern.
1447 (vlshr<mode>3_imm): Ditto.
1448 (vashr<mode>3): Modified constraint.
1449 (vlshr<mode>3): Ditto.
1450 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
1452 (imm_for_neon_rshift_operand): Ditto.
1453 (imm_lshift_or_reg_neon): Ditto.
1454 (imm_rshift_or_reg_neon): Ditto.
1456 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
1458 2011-06-22 Jakub Jelinek <jakub@redhat.com>
1460 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
1461 builtin calls even if likelyvalue is not CONSTANT.
1462 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
1463 Return get_value_for_expr of first operand
1464 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
1465 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
1466 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
1467 their non-checking counterparts.
1468 (call_may_clobber_ref_p_1): Likewise.
1469 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
1470 like their non-checking counterparts.
1471 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1472 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
1473 like their non-checking counterparts.
1474 (find_func_clobbers): Likewise.
1475 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
1476 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
1478 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
1479 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
1480 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
1481 of base type reference as argument.
1482 (resolve_addr_in_expr): Likewise. Fix keep computation.
1483 (convert_descriptor_to_signed): Renamed to...
1484 (convert_descriptor_to_mode): ... this. For wider types convert to
1485 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
1486 (typed_binop): New function.
1487 (scompare_loc_descriptor, ucompare_loc_descriptor,
1488 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
1489 default to unsigned type instead of signed.
1492 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
1493 (gimple_build_debug_source_bind_stat): New prototype.
1494 (gimple_build_debug_source_bind): Define.
1495 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
1496 gimple_debug_source_bind_get_value,
1497 gimple_debug_source_bind_get_value_ptr,
1498 gimple_debug_source_bind_set_var,
1499 gimple_debug_source_bind_set_value): New inlines.
1500 * gimple.c (gimple_build_debug_source_bind_stat): New function.
1501 * gimple-pretty-print.c (dump_gimple_debug): Handle
1502 GIMPLE_DEBUG_SOURCE_BIND.
1503 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
1504 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1505 * tree-parloops.c (eliminate_local_variables,
1506 separate_decls_in_region): Likewise.
1507 (separate_decls_in_region_debug): Renamed from
1508 separate_decls_in_region_debug_bind. Handle
1509 gimple_debug_source_bind_p.
1510 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
1512 (DECL_HAS_DEBUG_ARGS_P): Define.
1513 (struct tree_function_decl): Add has_debug_args_flag field.
1514 * tree.c (debug_args_for_decl): New variable.
1515 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
1516 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
1517 (rewrite_debug_stmt_uses): New function.
1518 (rewrite_stmt): Use it to rewrite debug stmt uses.
1519 * rtl.def (DEBUG_PARAMETER_REF): New.
1520 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
1521 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
1522 DEBUG_PARAMETER_REF.
1523 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
1524 * print-rtl.c (print_rtx): Likewise.
1525 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
1526 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
1527 debug stmts in the first bb.
1528 * tree-inline.c (remap_ssa_name): If remapping default def
1529 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
1530 a source bind debug stmt.
1531 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
1532 (maybe_move_debug_stmts_to_successors): Likewise.
1533 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
1534 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
1535 debug args vector from old_decl to new_decl.
1536 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
1537 or modified parameters, add debug bind stmts before call
1538 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
1539 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
1540 on DECL_DEBUG_EXPRs from debug args vector.
1541 (expand_debug_source_expr): New function.
1542 (expand_debug_locations): Use it for source bind insns.
1543 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
1544 * var-tracking.c (prepare_call_arguments): Add debug args
1545 to call_arguments if any.
1546 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
1547 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
1548 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
1549 (get_ref_die_offset, parameter_ref_descriptor): New functions.
1550 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
1551 (gen_subprogram_die): Handle parameters identified by
1552 DEBUG_PARAMETER_REF.
1554 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
1556 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
1557 * doc/install.texi (Configuration): Document --with-tls.
1558 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
1559 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
1560 (arm_tls_descseq_addr): New.
1561 (legitimize_tls_address): Add tlsdesc support.
1562 (arm_cannot_copy_insn_p): Check for tlscall.
1563 (arm_emit_tls_decoration): Likewise.
1564 * config/arm/arm.h (TARGET_GNU2_TLS): New.
1565 (OPTION_DEFAULT_SPECS): Add with-tls support.
1566 * config/arm/arm.md (R1_REGNUM): Define.
1568 * config/arm/arm.opt (tls_type): New enumeration type and values.
1569 (mtls-dialect): New switch.
1570 * config/arm/arm-opts.h (enum tls_type): New.
1572 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
1574 * attribs.c (register_attribute): Added assert to check that all
1575 attribute specs are registered with a name that is not empty and
1576 does not start with '_'.
1577 (decl_attributes): Avoid the lookup of the "naked" attribute spec
1578 if the function has no attributes.
1579 * tree.c (is_attribute_with_length_p): Removed.
1580 (is_attribute_p): Removed.
1581 (private_is_attribute_p): New.
1582 (private_lookup_attribute): New.
1583 (lookup_attribute): Removed.
1584 (lookup_ident_attribute): New.
1585 (remove_attribute): Require the first argument to be in the form
1586 'text', not '__text__'. Updated asserts.
1587 (merge_attributes): Use lookup_ident_attributes instead of
1589 (merge_dllimport_decl_attributes): Use remove_attribute.
1590 (attribute_list_contained): Likewise.
1591 (attribute_list_equal): Immediately return 1 if the arguments are
1593 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
1594 'int'. Require the first argument to be in the form 'text', not
1595 '__text__'. Require the second argument to be an identifier.
1596 (lookup_attribute): Made inline. Require the first argument to be
1597 in the form 'text', not '__text__'.
1598 (private_is_attribute_p, private_lookup_attribute): New.
1601 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
1603 * builtins.c: Add sync_ or SYNC__ to builtin names.
1604 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
1605 * omp-low.c: Add sync_ or SYNC__ to builtin names.
1607 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1610 * config/avr/avr.md (extzv): New expander.
1612 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
1613 * config/avr/constraints.md (C04): New constraint.
1614 * doc/md.texi (Machine Constraints): Document it.
1616 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1619 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
1620 unsignedp argument instead of 1 for clrsb_optab.
1621 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
1622 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
1623 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
1624 * optabs.c (widen_leading): Call widen_operand and expand_unop
1625 with 0 as unsignedp argument instead of 1 for clrsb_optab.
1626 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
1628 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
1630 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
1632 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
1634 * gensupport.c (add_define_attr): New static function.
1635 (is_predicable): Allow multi-alternative lists for the "predicable"
1637 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
1638 (process_one_cond_exec): Call alter_attrs_for_insn.
1639 * doc/md.texi (Defining Attributes): Mention some standard names.
1640 (Conditional Execution): Update documentation for "predicable".
1642 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
1643 __builtin_clrsbll): Document.
1644 * doc/rtl.texi (clrsb): New entry.
1645 * optabs.c (widen_leading): Renamed from widen_clz. New argument
1646 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
1647 (expand_unop): Handle clrsb_optab.
1648 (init_optabs): Initialize it.
1649 * optabs.h (enum optab_index): New entry OTI_clrsb.
1650 (clrsb_optab): Define.
1651 * genopinit.c (optabs): Add an entry for it.
1652 * builtins.c (expand_builtin): Handle clrsb builtin functions.
1653 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
1654 BUILT_IN_CLRSBLL): New.
1655 * rtl.def (CLRSB): New code.
1656 * dwarf2out.c (mem_loc_descriptor): Handle it.
1657 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1658 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
1660 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
1661 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
1662 (__ctzDI2): Move declaration.
1663 * config/bfin/bfin.md (clrsbsi2): New expander.
1664 (signbitssi2): Use the CLRSB rtx.
1665 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
1666 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
1668 2011-06-21 Richard Guenther <rguenther@suse.de>
1670 * ipa-inline-transform.c (inline_transform): Fix previous change.
1672 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
1674 PR tree-optimization/49478
1675 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
1676 with constant operand.
1678 2011-06-21 Richard Guenther <rguenther@suse.de>
1680 * ipa-inline-transform.c (inline_transform): Fix typo.
1682 2011-06-21 Richard Guenther <rguenther@suse.de>
1684 PR tree-optimization/49483
1685 * tree-vect-stmts.c (vectorizable_assignment): Also handle
1686 VIEW_CONVERT_EXPR conversions.
1688 2011-06-21 Joseph Myers <joseph@codesourcery.com>
1690 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
1691 * config/avr/avr-tables.opt: New file (generated).
1692 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
1693 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
1695 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
1696 (avr_option_override): Don't process -mmcu= argument here. Set
1697 avr_current_device using avr_mcu_index.
1698 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1699 * config/avr/avr.opt (mmcu=): Use Enum.
1700 * config/avr/t-avr (avr-devices.o): Update dependencies.
1701 ($(srcdir)/config/avr/avr-tables.opt): New.
1702 * target.def (help): Remove.
1703 * doc/tm.texi.in (TARGET_HELP): Remove.
1704 * doc/tm.texi: Regenerate.
1705 * opts.c: Don't include target.h.
1706 (common_handle_option): Don't call targetm.help.
1707 * system.h (TARGET_HELP): Poison.
1708 * Makefile.in (opts.o): Update dependencies.
1710 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1712 * config/usegld.h: New file.
1713 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
1714 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
1715 (LIB_SPEC): Likewise. Search /lib.
1716 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
1717 (RDYNAMIC_SPEC): Handle GNU ld.
1718 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
1720 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
1721 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
1722 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
1723 (STACK_CHECK_STATIC_BUILTIN): Define.
1724 * config/sol2.opt (compat-bsd): Remove.
1725 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
1726 * config/sol2-bi.h: New file.
1727 * config/sol2-gld.h: Remove.
1728 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
1729 (NO_DBX_BNSYM_ENSYM): Remove.
1730 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1731 (STACK_CHECK_STATIC_BUILTIN): Remove.
1732 Test USE_GLD instead of TARGET_GNU_LD.
1733 * config/i386/sol2-10.h: Rename to ...
1734 * config/i386/sol2-bi.h .. this.
1735 (SUBTARGET_EXTRA_SPECS): Redefine.
1736 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
1737 (MULTILIB_DEFAULTS): Remove.
1738 (DEFAULT_ARCH32_P): Define.
1739 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
1740 (ARCH64_SUBDIR): Define.
1741 Test USE_GLD instead of TARGET_GNU_LD.
1742 (I386_EMULATION): Rename to ...
1743 (ARCH32_EMULATION): ... this.
1744 (X86_64_EMULATION): Rename to ...
1745 (ARCH64_EMULATION): ... this.
1746 (TARGET_LD_EMULATION): Remove.
1747 (LINK_ARCH_SPEC): Remove.
1748 * config/i386/sol2-gas.h: Remove.
1749 * config/i386/t-sol2-10: Rename to ...
1750 * config/i386/t-sol2-64: ... this.
1751 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
1752 (AS_SPARC64_FLAG): Define.
1753 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
1754 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
1755 depending on TARGET_CPU_DEFAULT.
1756 (CPP_CPU_SPEC): Redefine.
1757 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
1758 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
1759 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
1760 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
1761 ASM_ARCH_DEFAULT_SPEC): Redefine.
1762 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
1763 LINK_ARCH_DEFAULT_SPEC.
1764 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
1765 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
1766 (ARCH64_SUBDIR): Define.
1767 (LINK_ARCH64_SPEC): Redefine.
1768 (CC1_SPEC): Redefine.
1769 (OPTION_DEFAULT_SPECS): Redefine.
1770 (MULTILIB_DEFAULTS): Define.
1771 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
1772 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
1773 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
1774 (NO_DBX_BNSYM_ENSYM): Remove.
1775 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
1776 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
1777 (TARGET_ASM_NAMED_SECTION): Likewise.
1778 (STACK_CHECK_STATIC_BUILTIN): Remove.
1779 * config/sparc/sol2-bi.h: Remove.
1780 * config/sparc/sol2-gas-bi.h: Remove.
1781 * config/sparc/sol2-gas.h: Remove.
1782 * config/sparc/sol2-gld-bi.h: Remove.
1783 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
1785 (*-*-solaris2*): ... here.
1787 2011-06-21 Christian Bruel <christian.bruel@st.com>
1790 * ipa-inline.c (can_inline_edge_p): Check
1791 !DECL_DISREGARD_INLINE_LIMITS.
1793 2011-06-21 Christian Bruel <christian.bruel@st.com>
1796 * cgraphunit.c (process_function_and_variable_attributes): warn when
1797 always_inline functions that are not inline.
1798 * ipa-inline-transform.c (inline_transform): Always call
1800 * tree-inline.c (tree_inlinable_function_p): Use error instead
1802 (expand_call_inline): Likewise.
1804 2011-06-21 Jakub Jelinek <jakub@redhat.com>
1806 * Makefile.in (dg_target_exps): Set.
1807 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
1808 instead of 7, try to divide it more evenly.
1810 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
1813 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
1814 (avx256_split_unaligned_store): New definition.
1815 (ix86_option_override_internal): Enable avx256 unaligned load/store
1816 splitting only when avx256_split_unaligned_load/store is set.
1818 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1820 * regrename.c (scan_rtx_reg): Handle the case where we write to an
1821 open chain in a smaller mode without failing the entire block.
1823 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1826 * combine.c (cant_combine_insn_p): Don't check zero/sign
1827 extended hard registers.
1829 2011-06-21 Alan Modra <amodra@gmail.com>
1831 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
1832 CONST high part large-toc address.
1833 (rs6000_tls_referenced_p): Make static.
1834 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
1836 2011-06-20 H.J. Lu <hongjiu.lu@intel.com>
1839 * combine.c (cant_combine_insn_p): Check zero/sign extended
1842 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1845 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
1846 one of the operands is a register.
1848 2011-06-20 Kai Tietz <ktietz@redhat.com>
1850 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
1851 operations in combination with binary and.
1853 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
1855 * regrename.c (do_replace): Don't update notes.
1857 2011-06-20 Alan Modra <amodra@gmail.com>
1859 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
1860 of toc-relative address in CONST.
1861 (rs6000_delegitimize_address): Recognize changed address.
1862 (rs6000_legitimize_reload_address): Likewise.
1863 (rs6000_emit_move): Don't force these constants to memory.
1864 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
1865 toc-relative address in CONST.
1866 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
1867 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
1869 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1871 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
1872 (count_trailing_zeros): Likewise.
1874 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
1877 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
1878 .init_array can be used with .ctors on targets.
1879 * configure: Regenerated.
1881 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
1883 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
1884 if the element type is volatile.
1886 2011-06-18 Jan Hubicka <jh@suse.cz>
1888 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
1890 (lto_symtab_resolve_can_prevail_p): Likewise.
1891 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
1892 * cgraphbuild.c (record_reference): Remove extra body alias code.
1893 (mark_load): Likewise.
1894 (mark_store): Likewise.
1895 * cgraph.h (varpool_node): Remove extra_name filed;
1896 add alias_of and extraname_alias.
1897 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
1898 (varpool_alias_aliased_node): New inline function.
1899 (varpool_variable_node): New function.
1900 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
1901 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
1902 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
1903 (input_varpool_node): Likewise.
1904 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
1905 (varpool_externally_visible_p): Remove extra body alias code.
1906 (function_and_variable_visibility): Likewise.
1907 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
1908 (ipa_pta_execute): Use it.
1909 * varpool.c (varpool_remove_node): Remove extra name alias code.
1910 (varpool_mark_needed_node): Likewise.
1911 (varpool_analyze_pending_decls): Analyze aliases.
1912 (assemble_aliases): New functoin.
1913 (varpool_assemble_decl): Use it.
1914 (varpool_create_variable_alias): New function.
1915 (varpool_extra_name_alias): Rewrite.
1916 (varpool_for_node_and_aliases): New function.
1918 2011-06-18 Jakub Jelinek <jakub@redhat.com>
1921 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
1922 last_arg_constant and last argument doesn't match its predicate,
1923 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
1924 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
1925 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
1926 spelling of error message.
1927 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
1928 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
1929 const_0_to_255_operand instead of const_int_operand.
1932 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
1934 * config/i386/sse.md (blendbits): Remove mode attribute.
1935 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1936 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1937 Check integer value of operand 3 in insn constraint.
1939 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
1941 PR rtl-optimization/48542
1942 * reload.c (find_equiv_reg): Stop looking when finding a
1944 * reload1.c (reload_as_needed): Invalidate all reload
1945 registers when crossing a setjmp-type call.
1947 2011-06-16 Jeff Law <law@redhat.com>
1949 * tree-ssa-threadupdate.c (struct redirection_data): New field
1951 (THREAD_TARGET2): Define.
1952 (redirection_data_eq): Also check that the intermediate edge is equal.
1953 (lookup_redirection_data): Drop useless argument. Extract the
1954 outgoing_edge and intermediate edge from E. Callers updated.
1955 (copy_phi_args, update_destination_phis): New functions.
1956 (fix_duplicate_block_edges): Likewise.
1957 (create_edge_and_update_destination_phis): Duplicate all the edges
1958 hung off e->aux. Use copy_phi_args.
1959 (create_duplicates): Use fix_duplicate_block_edges.
1960 (fixup_template_block): Likewise.
1961 (redirect_edges): If necessary, redirect the joiner block's incoming
1962 edge to the duplicate of the joiner block.
1963 (thread_block): Don't muck up loops when threading through a joiner
1965 (thread_through_loop_header): Handle threading through a joiner block.
1966 (mark_threaded_blocks, register_jump_thread): Likewise.
1967 * tree-flow.h (register_jump_thread): Add new argument. Callers
1969 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
1970 (thread_across_edge): Handle threading through a joiner block.
1972 2011-06-16 Martin Jambor <mjambor@suse.cz>
1974 PR tree-optimization/49343
1975 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
1976 calculate offset, provide 2nd operand for the new COMPONENT_REF.
1978 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
1980 * config/darwin-protos.h (machopic_select_rtx_section): Move to
1981 inside RTX_CODE ifdef.
1983 2011-06-16 Tom de Vries <tom@codesourcery.com>
1986 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
1987 Disallow NULL pointer for pointer arithmetic.
1989 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1993 2011-06-10 Wei Guozhi <carrot@google.com>
1996 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
1997 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
1998 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
2000 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
2002 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
2003 (arm_legitimate_ldrd_p): New prototype.
2004 (arm_output_ldrd): New prototype.
2005 * config/arm/arm.c (arm_check_ldrd_operands): New function.
2006 (arm_legitimate_ldrd_p): New function.
2007 (arm_output_ldrd): New function.
2009 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2012 * doc/tm.texi.in: Update Copyright date.
2013 * doc/tm.texi: Regenerate.
2014 * targhooks.c (default_setup_incoming_varargs): Replace
2015 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2016 (default_pretend_outgoing_varargs_named): Likewise.
2017 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2018 (hook_callee_copies_named): Likewise.
2019 (default_function_arg_advance): Likewise.
2020 (default_function_arg): Likewise.
2021 (default_function_incoming_arg): Likewise.
2022 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2023 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2024 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2025 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2026 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2027 * targhooks.h (default_setup_incoming_varargs): Likewise.
2028 (default_pretend_outgoing_varargs_named): Likewise.
2029 (hook_pass_by_reference_must_pass_in_stack): Likewise.
2030 (hook_callee_copies_named): Likewise.
2031 (default_function_arg_advance): Likewise.
2032 (default_function_arg): Likewise.
2033 (default_function_incoming_arg): Likewise.
2034 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
2035 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
2036 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
2037 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
2038 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
2039 * target.def (pass_by_reference): Likewise.
2040 (setup_incoming_varargs, strict_argument_naming): Likewise.
2041 (pretend_outgoing_varargs_named, callee_copies): Likewise.
2042 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
2043 (function_incoming_arg): Likewise.
2044 * target.h: Don't include "tm.h" .
2045 (cumulative_args_t): New typedef.
2046 [GCC_TM_H] (get_cumulative_args): New static inline function.
2047 [GCC_TM_H] (pack_cumulative_args): Likewise.
2048 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
2049 argument type with cumulative_args_t.
2050 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
2051 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
2052 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
2053 (frv_arg_partial_bytes, frv_function_arg): Likewise.
2054 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
2055 (frv_function_arg_1): Likewise.
2056 * config/s390/s390.c (s390_pass_by_reference): Likewise.
2057 (s390_function_arg_advance, s390_function_arg): Likewise.
2058 * config/m32c/m32c.c (m32c_function_arg): Likewise.
2059 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
2060 (m32c_strict_argument_naming): Likewise.
2061 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
2062 (spu_function_arg_advance): Likewise.
2063 (spu_setup_incoming_varargs): Likewise. Make static.
2064 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
2066 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
2067 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2068 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
2069 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
2070 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
2071 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
2072 (mep_pass_by_reference, mep_function_arg): Likewise.
2073 (mep_function_arg_advance): Likewise.
2074 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
2075 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
2076 (m32r_function_arg, m32r_function_arg_advance): Likewise.
2077 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
2078 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
2079 (ix86_function_arg, ix86_pass_by_reference): Likewise.
2080 (ix86_setup_incoming_varargs): Likewise.
2081 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
2082 (sh_strict_argument_naming): Likewise.
2083 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
2084 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
2085 (sh_function_arg_advance, sh_function_arg): Likewise.
2086 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
2087 (pdp11_function_arg_advance): Likewise.
2088 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
2090 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
2091 * config/avr/avr.c (avr_function_arg): Likewise.
2092 (avr_function_arg_advance): Likewise.
2093 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
2094 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
2095 (xtensa_function_arg_1): Likewise.
2096 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
2098 (xstormy16_function_arg): Likewise.
2099 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
2100 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
2101 (fr30_function_arg_advance): Likewise.
2102 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
2103 (lm32_function_arg, lm32_function_arg_advance): Likewise.
2104 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
2105 (moxie_function_arg, moxie_function_arg_advance): Likewise.
2106 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
2107 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
2108 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
2109 (cris_function_arg, cris_function_incoming_arg): Likewise.
2110 (cris_function_arg_advance, cris_function_arg_1): Likewise.
2111 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
2112 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
2113 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
2114 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
2115 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
2116 (mn10300_arg_partial_bytes): Likewise.
2117 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
2118 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
2119 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
2120 (ia64_function_arg_1): Likewise.
2121 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
2122 (m68k_function_arg): Likewise.
2123 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
2124 (rs6000_function_arg, setup_incoming_varargs): Likewise.
2125 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
2126 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
2127 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
2128 (picochip_arg_advance): Likewise.
2129 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
2130 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
2131 (mcore_function_arg_advance): Likewise.
2132 * config/score/score.c (score_pass_by_reference): Likewise.
2133 (score_function_arg_advance): Likewise.
2134 (score_arg_partial_bytes): Likewise. Make static.
2135 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
2136 * config/arm/arm.c (arm_arg_partial_bytes): Replace
2137 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2138 (arm_function_arg, arm_function_arg_advance): Likewise.
2139 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
2140 * config/pa/pa.c (pa_pass_by_reference): Likewise.
2141 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
2142 (pa_function_arg): Likewise.
2143 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
2144 (mips_function_arg, mips_function_arg_advance): Likewise.
2145 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
2146 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
2147 * config/vax/vax.c (vax_function_arg): Likewise.
2148 (vax_function_arg_advance): Likewise.
2149 * config/h8300/h8300.c (h8300_function_arg): Likewise.
2150 (h8300_function_arg_advance): Likewise.
2151 * config/v850/v850.c (v850_pass_by_reference): Likewise.
2152 (v850_strict_argument_naming, v850_function_arg): Likewise.
2153 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
2154 (v850_setup_incoming_varargs): Likewise.
2155 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
2156 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
2157 (mmix_function_arg, mmix_pass_by_reference): Likewise.
2158 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
2160 * config/bfin/bfin.c (setup_incoming_varargs): Replace
2161 CUMULATIVE_ARGS* argument type with cumulative_args_t.
2162 (bfin_function_arg_advance, bfin_function_arg): Likewise.
2163 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
2164 * calls.c (emit_call_1): Change type of args_so_far to
2165 cumulative_args_t. Changed all callers.
2166 (initialize_argument_information): Likewise.
2167 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
2168 * dse.c (get_call_args): Likewise.
2169 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
2170 * function.c (pass_by_reference, reference_callee_copied): Likewise.
2171 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
2172 New member args_so_far_v. Changed all users.
2173 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
2174 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
2175 * config/mips/mips.c (mips_output_args_xfer): Likewise.
2176 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2177 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2178 * config/microblaze/microblaze.c (microblaze_expand_prologue):
2180 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
2181 m32r_pass_by_reference.
2183 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
2185 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
2186 argument to be a VEC of statements.
2187 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
2188 assert that pattern statements have to have their vector type set.
2189 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
2190 Change the first argument to be a VEC of statements. Update
2192 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
2193 (vect_handle_widen_mult_by_const): New function.
2194 (vect_recog_widen_mult_pattern): Change the first argument to be a
2195 VEC of statements. Update documentation. Check that the constant is
2196 INTEGER_CST. Support multiplication by a constant that fits an
2197 intermediate type - call vect_handle_widen_mult_by_const.
2198 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
2199 call. Handle additional pattern statements if necessary.
2201 2011-06-16 Nick Clifton <nickc@redhat.com>
2204 * config.gcc: Set cpu_type to v850 for any V850 architecture.
2205 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
2206 md_file, extra_modes, out_file and extra_options are these are all
2207 deduced from cpu_type.
2209 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2211 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
2212 truncation mask to 63.
2214 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
2218 * longlong.h: Add AVR support:
2219 (count_leading_zeros): New macro.
2220 (count_trailing_zeros): New macro.
2221 (COUNT_LEADING_ZEROS_0): New macro.
2222 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
2223 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
2224 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
2225 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
2226 (LIB2FUNCS_EXCLUDE): Add _clz.
2227 * config/avr/libgcc.S (XCALL): Move up in file.
2228 (XJMP): New C Macro.
2229 (DEFUN): New asm macro.
2230 (ENDF): New asm macro.
2231 (__ffssi2): New function.
2232 (__ffshi2): New function.
2233 (__loop_ffsqi2): New function.
2234 (__ctzsi2): New function.
2235 (__ctzhi2): New function.
2236 (__clzdi2): New function.
2237 (__clzsi2): New function.
2238 (__clzhi2): New function.
2239 (__paritydi2): New function.
2240 (__paritysi2): New function.
2241 (__parityhi2): New function.
2242 (__parityqi2): New function.
2243 (__popcounthi2): New function.
2244 (__popcountsi2): New function.
2245 (__popcountdi2): New function.
2246 (__popcountqi2): New function.
2247 (__bswapsi2): New function.
2248 (__bswapdi2): New function.
2249 (__ashldi3): New function.
2250 (__ashrdi3): New function.
2251 (__lshrdi3): New function.
2252 Fix suspicous lines.
2254 2011-06-16 Richard Guenther <rguenther@suse.de>
2256 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
2258 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
2260 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
2261 equality compares against zero for the lower bit.
2263 2011-06-16 Jakub Jelinek <jakub@redhat.com>
2265 PR tree-optimization/49419
2266 * tree-vrp.c (execute_vrp): Call init_range_assertions
2267 before estimate_numbers_of_iterations, call
2268 free_number_of_iterations_estimates before calling
2269 remove_range_assertions.
2271 2011-06-16 Revital Eres <revital.eres@linaro.org>
2273 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
2274 (struct partial_schedule): Add rows_length field.
2275 (verify_partial_schedule): Check rows_length.
2276 (ps_insert_empty_row): Handle rows_length.
2277 (create_partial_schedule): Likewise.
2278 (free_partial_schedule): Likewise.
2279 (reset_partial_schedule): Likewise.
2280 (create_ps_insn): Remove rest_count argument.
2281 (remove_node_from_ps): Update rows_length.
2282 (add_node_to_ps): Update rows_length and call create_ps_insn
2283 without passing row_rest_count.
2284 (rotate_partial_schedule): Update rows_length.
2286 2011-06-16 Revital Eres <revital.eres@linaro.org>
2288 * ddg.c (add_intra_loop_mem_dep): New function.
2289 (build_intra_loop_deps): Call it.
2291 2011-06-13 Jeff Law <law@redhat.com>
2293 * df-problems.c (df_lr_local_compute): Manually CSE
2294 PIC_OFFSET_TABLE_REGNUM.
2295 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
2296 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
2298 2011-06-13 Jan Hubicka <jh@suse.cz>
2300 * cgraphunit.c (handle_alias_pairs): New function.
2301 (cgraph_finalize_compilation_unit): Use it.
2302 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
2303 as externally visible.
2305 2011-06-15 Richard Guenther <rguenther@suse.de>
2307 * expr.c (expand_expr_real_2): Reduce all integral types to
2309 (expand_expr_real_1): Likewise.
2311 2011-06-15 Martin Jambor <mjambor@suse.cz>
2313 PR tree-optimization/48613
2314 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
2315 ipa_node_params_vector is NULL.
2317 2011-06-15 Jakub Jelinek <jakub@redhat.com>
2320 * dwarf2out.c (dw_loc_list_node): Add force field.
2321 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
2322 location in the list, even if it is modified before first real insn.
2323 (output_loc_list): Emit empty ranges with force flag set.
2324 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
2326 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
2329 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
2330 (fence_to_rewind). Use it to notice when bookkeeping will be placed
2331 above a fence. Update comments.
2332 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
2333 placed just above it. Do not allow NULL place_to_insert.
2335 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
2337 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
2338 (slpeel_tree_peel_loop_to_edge): Don't call
2339 remove_dead_stmts_from_loop.
2340 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2341 remove irrelevant pattern statements. For irrelevant statements
2342 check if it is the last statement of a detected pattern, use
2343 corresponding pattern statement instead.
2344 (destroy_loop_vec_info): No need to remove pattern statements,
2345 only free stmt_vec_info.
2346 (vect_transform_loop): For irrelevant statements check if it is
2347 the last statement of a detected pattern, use corresponding
2348 pattern statement instead.
2349 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
2350 pattern statements. Set basic block for the new statement.
2351 (vect_pattern_recog): Update documentation.
2352 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
2353 operands of pattern statements.
2354 (vectorizable_call): Fix printing. In case of a pattern statement
2355 use the lhs of the original statement when creating a dummy
2356 statement to replace the original call.
2357 (vect_analyze_stmt): For irrelevant statements check if it is
2358 the last statement of a detected pattern, use corresponding
2359 pattern statement instead.
2360 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
2361 statements use gsi of the original statement.
2363 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2365 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
2366 common/common-target-def.h.
2367 * target.def (default_target_flags, handle_option,
2368 supports_split_stack, optimization_table, init_struct,
2369 except_unwind_info, unwind_tables_default, have_named_sections):
2370 Move to common/common-target.def.
2371 * target.h (enum opt_levels, struct default_options): Move to
2372 common/common-target.h.
2373 * targhooks.c (default_except_unwind_info,
2374 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2375 default_target_handle_option, empty_optimization_table): Move to
2376 common/common-targhooks.c.
2377 * targhooks.h (default_except_unwind_info,
2378 dwarf2_except_unwind_info, sjlj_except_unwind_info,
2379 default_target_handle_option, empty_optimization_table): Move to
2380 common/common-targhooks.h.
2381 * common/common-target-def.h: Include common/common-targhooks.h.
2382 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
2384 * common/common-target.def (handle_option, option_init_struct,
2385 option_optimization_table, default_target_flags,
2386 except_unwind_info, supports_split_stack, unwind_tables_default,
2387 have_named_sections): Move from target.def.
2388 (HOOK_PREFIX): Undefine at end of file.
2389 * common/common-target.h: Include input.h.
2390 (enum opt_levels, struct default_options): Move from target.h.
2391 * common/common-targhooks.c, common/common-targhooks.h: New.
2392 * config.gcc (target_has_targetm_common): Default to yes.
2393 (moxie*): Set target_has_targetm_common=no.
2394 (hppa*-*-*): Don't set target_has_targetm_common=yes.
2395 * doc/tm.texi: Regenerate.
2396 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
2397 (C_TARGET_DEF_H): Add common/common-targhooks.h.
2398 (GCC_OBJS): Remove vec.o.
2399 (OBJS): Remove hooks.o and vec.o.
2400 (OBJS-libcommon-target): Add vec.o, hooks.o and
2401 common/common-targhooks.o.
2402 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
2403 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
2404 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
2405 cfglayout.o, $(out_object_file), $(common_out_object_file)):
2406 Update dependencies.
2407 (common/common-targhooks.o): New.
2408 * common/config/default-common.c: Include tm.h. Add FIXME comment.
2409 * common/config/pa/pa-common.c: Include more headers. Take
2410 copyright dates from pa.c.
2411 (pa_option_optimization_table, pa_handle_option,
2412 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
2413 TARGET_HANDLE_OPTION): Move from pa.c.
2414 * common/config/alpha/alpha-common.c,
2415 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
2416 common/config/bfin/bfin-common.c,
2417 common/config/cris/cris-common.c,
2418 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
2419 common/config/h8300/h8300-common.c,
2420 common/config/i386/i386-common.c,
2421 common/config/ia64/ia64-common.c,
2422 common/config/iq2000/iq2000-common.c,
2423 common/config/lm32/lm32-common.c,
2424 common/config/m32c/m32c-common.c,
2425 common/config/m32r/m32r-common.c,
2426 common/config/m68k/m68k-common.c,
2427 common/config/mcore/mcore-common.c,
2428 common/config/mep/mep-common.c,
2429 common/config/microblaze/microblaze-common.c,
2430 common/config/mips/mips-common.c,
2431 common/config/mmix/mmix-common.c,
2432 common/config/mn10300/mn10300-common.c,
2433 common/config/pdp11/pdp11-common.c,
2434 common/config/picochip/picochip-common.c,
2435 common/config/rs6000/rs6000-common.c,
2436 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
2437 common/config/score/score-common.c, common/config/sh/sh-common.c,
2438 common/config/sparc/sparc-common.c,
2439 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
2440 common/config/vax/vax-common.c,
2441 common/config/xstormy16/xstormy16-common.c,
2442 common/config/xtensa/xtensa-common.c: New.
2443 * config/alpha/alpha.c: Include common/common-target.h.
2444 (alpha_option_optimization_table, alpha_handle_option,
2445 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2446 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
2447 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
2448 * config/arm/arm.c (arm_option_optimization_table,
2449 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2450 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
2452 * config/avr/avr.c (avr_option_optimization_table,
2453 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2455 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
2456 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
2457 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
2458 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
2459 * config/cris/cris.c (cris_option_optimization_table,
2460 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2461 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
2463 * config/fr30/fr30.c (fr30_option_optimization_table,
2464 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
2466 * config/frv/frv.c (frv_option_optimization_table,
2467 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
2468 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
2469 * config/h8300/h8300.c (h8300_option_optimization_table,
2470 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2471 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
2472 * config/i386/i386-protos.h (ix86_handle_option): Declare.
2473 * config/i386/i386.c: Include common/common-target.h.
2474 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
2475 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
2476 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
2477 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
2478 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
2479 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
2480 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
2481 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
2482 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
2483 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
2484 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
2485 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
2486 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
2487 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
2488 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
2489 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
2490 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
2491 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
2492 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
2493 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
2494 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
2495 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
2496 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
2497 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
2498 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
2499 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
2500 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
2501 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
2502 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
2503 ix86_option_optimization_table, ix86_option_init_struct,
2504 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
2505 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2506 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
2508 * config/i386/t-i386 (i386.o): Update dependencies.
2509 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
2510 * config/ia64/ia64.c (ia64_option_optimization_table,
2511 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2512 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2513 ia64_handle_option): Move to ia64-common.c.
2514 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2515 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
2516 * config/lm32/lm32.c (lm32_option_optimization_table,
2517 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
2519 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
2521 * config/m32r/m32r.c (m32r_option_optimization_table,
2522 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2523 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
2524 m32r_handle_option): Move to m32r-common.c.
2525 (m32r_memory_move_cost): Remove comment referring to
2526 TARGET_HANDLE_OPTION.
2527 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
2528 Move to m68k-common.c.
2529 * config/mcore/mcore.c (mcore_option_optimization_table,
2530 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2531 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
2532 * config/mep/mep.c (mep_option_optimization_table,
2533 mep_handle_option, TARGET_HANDLE_OPTION,
2534 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
2535 Move to mep-common.c.
2536 * config/microblaze/microblaze.c
2537 (microblaze_option_optimization_table,
2538 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
2539 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
2540 * config/mips/mips.c (mips_handle_option,
2541 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2542 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
2544 * config/mmix/mmix.c (mmix_option_optimization_table,
2545 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2546 Move to mmix-common.c.
2547 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2548 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
2549 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2550 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
2551 * config/pa/pa.c: Include common/common-target.h.
2552 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
2553 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2554 pa_handle_option): Move to pa-common.c.
2555 (pa_option_override): Use targetm_common.except_unwind_info.
2556 (pa_asm_output_mi_thunk, pa_function_section): Use
2557 targetm_common.have_named_sections.
2558 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
2559 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2560 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2561 pdp11_handle_option, pdp11_option_init_struct): Move to
2563 * config/picochip/picochip.c (picochip_option_optimization_table,
2564 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
2565 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
2566 * config/rs6000/rs6000.c: Include common/common-target.h.
2567 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
2568 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
2569 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
2570 rs6000_handle_option): Move to rs6000-common.c.
2571 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
2572 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
2573 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2574 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
2575 * config/s390/s390.c (processor_flags_table,
2576 s390_option_optimization_table, s390_option_init_struct,
2577 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
2578 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
2579 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
2580 * config/s390/s390.h (processor_flags_table): Declare.
2581 * config/score/score.c (score_option_optimization_table,
2582 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2583 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
2584 score_handle_option): Move to score-common.c.
2585 * config/sh/sh.c (sh_option_optimization_table,
2586 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
2587 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
2588 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
2589 * config/sparc/sparc.c: Include common/common-target.h.
2590 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2591 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
2592 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
2593 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
2594 spu_option_init_struct): Move to spu-common.c.
2595 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2596 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
2597 * config/v850/v850.c (small_memory_physical_max,
2598 v850_handle_memory_optionn v850_handle_option,
2599 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
2600 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
2602 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
2603 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
2604 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
2605 Move to xtensa-common.c.
2606 * cfglayout.c: Include common/common-target.h.
2607 (fixup_reorder_chain): Use targetm_common.have_named_sections.
2608 * cfgrtl.c: Include common/common-target.h.
2609 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
2610 targetm_common.have_named_sections.
2611 * dbxout.c: Include common/common-target.h.
2612 (dbxout_function_end): Use targetm_common.have_named_sections.
2613 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
2614 targetm_common.except_unwind_info.
2615 * dwarf2out.c: Include common/common-target.h.
2616 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
2617 dwarf2out_begin_prologue, dwarf2out_frame_init,
2618 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
2619 targetm_common.except_unwind_info.
2620 * except.c: Include common/common-target.h.
2621 (init_eh, finish_eh_generation,
2622 output_one_function_exception_table): Use
2623 targetm_common.except_unwind_info.
2624 (switch_to_exception_section): Use targetm_common.have_named_sections.
2625 * explow.c: Include common/common-target.h.
2626 * expr.c: Include common/common-target.h.
2627 (build_personality_function): Use targetm_common.except_unwind_info.
2628 * function.c: Include common/common-target.h.
2629 (expand_function_end): Use targetm_common.except_unwind_info.
2630 * haifa-sched.c: Include common/common-target.h.
2631 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
2632 * lto-opts.c: Include common/common-target.h instead of target.h.
2633 (lto_reissue_options): Use targetm_common.handle_option.
2634 * opts.c: Include common/common-target.h.
2635 (target_handle_option): Use targetm_common.handle_option.
2636 (init_options_struct): Update comment referring to
2637 targetm.target_option.optimization. Use
2638 targetm_common.default_target_flags,
2639 targetm_common.unwind_tables_default and
2640 targetm_common.option_init_struct.
2641 (default_options_optimization): Use
2642 targetm_common.option_optimization_table.
2643 (finish_options): Use targetm_common.except_unwind_info,
2644 targetm_common.unwind_tables_default,
2645 targetm_common.have_named_sections and
2646 targetm_common.supports_split_stack.
2647 * toplev.c: Include common/common-target.h.
2648 (process_options): Use targetm_common.have_named_sections.
2649 * tree-tailcall.c: Include common/common-target.h.
2650 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
2651 * tree.c: Include common/common-target.h.
2652 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
2653 * varasm.c: Include common/common-target.h.
2654 (resolve_unique_section, hot_function_section,
2655 default_function_section): Use targetm_common.have_named_sections.
2657 2011-06-14 Easwaran Raman <eraman@google.com>
2659 PR rtl-optimization/44194
2660 * dse.c: Include tree-flow.h
2661 (insn_info): Add new field non_frame_wild_read.
2662 (group_info): Add new fields escaped_n and escaped_p.
2663 (kill_on_calls): New variable.
2664 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
2665 (dse_step0): Initialize kill_on_calls.
2666 (can_escape): New function.
2667 (set_usage_bits): Add additional parameter; record information
2668 about escaped locations.
2669 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
2670 (dse_step2_nospill): Set kill_on_calls based on
2671 group->escaped_n and group->escaped_n.
2672 (add_wild_read): Refactor into...
2673 (reset_active_stores): ... New function, and
2674 (free_read_records): ... New function.
2675 (add_non_frame_wild_read): New function.
2676 (scan_insn): Call add_non_frame_wild_read on non-const calls.
2677 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
2678 (dse_step5_nospill): Call scan_reads_nospill for instructions
2679 marked as non_frame_wild_read.
2680 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
2682 2011-06-14 Joseph Myers <joseph@codesourcery.com>
2684 * common/common-target-def.h, common/common-target.def,
2685 common/common-target.h, common/config/default-common.c,
2686 common/config/pa/pa-common.c: New files.
2687 * Makefile.in (common_out_file, common_out_object_file,
2688 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
2689 (OBJS-libcommon-target): Include $(common_out_object_file).
2690 (prefix.o): Update dependencies.
2691 ($(common_out_object_file), common/common-target-hooks-def.h,
2692 s-common-target-hooks-def-h): New.
2693 (s-tm-texi): Also check timestamp on common-target.def.
2694 (build/genhooks.o): Update dependencies.
2695 * config.gcc (common_out_file, target_has_targetm_common): Define.
2696 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
2697 TARGET_ALWAYS_STRIP_DOTDOT.
2698 * configure.ac (common_out_object_file): Define.
2699 (common_out_file, common_out_object_file): Substitute.
2700 (common): Create directory.
2701 * configure: Regenerate.
2702 * doc/tm.texi.in (targetm_common): Document.
2703 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
2704 * doc/tm.texi: Regenerate.
2705 * genhooks.c (hook_array): Also include common/common-target.def.
2706 * prefix.c (tm.h): Don't include.
2707 (common/common-target.h): Include.
2708 (ALWAYS_STRIP_DOTDOT): Don't define.
2709 (update_path): Use targetm_common.always_strip_dotdot instead of
2710 ALWAYS_STRIP_DOTDOT.
2711 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
2713 2011-06-14 David Li <davidxl@google.com>
2715 * passes.c (execute_function_todo): Remove TODO_dump_func.
2716 (execute_one_pass): Remove TODO_dump_func.
2717 (execute_function_dump): New function.
2718 * tree-vrp.c: Remove TODO_dump_func.
2719 * regrename.c: Remove TODO_dump_func.
2720 * fwprop.c: Remove TODO_dump_func.
2721 * tree-into-ssa.c: Remove TODO_dump_func.
2722 * tree-complex.c: Remove TODO_dump_func.
2723 * tracer.c: Remove TODO_dump_func.
2724 * tree-loop-distribution.c: Remove TODO_dump_func.
2725 * postreload-gcse.c: Remove TODO_dump_func.
2726 * postreload.c: Remove TODO_dump_func.
2727 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
2728 * tree-tailcall.c: Remove TODO_dump_func.
2729 * ipa-cp.c: Remove TODO_dump_func.
2730 * final.c: Remove TODO_dump_func.
2731 * tree-emutls.c: Remove TODO_dump_func.
2732 * omp-low.c: Remove TODO_dump_func.
2733 * tree-ssa-dse.c: Remove TODO_dump_func.
2734 * tree-ssa-uncprop.c: Remove TODO_dump_func.
2735 * auto-inc-dec.c: Remove TODO_dump_func.
2736 * reorg.c: Remove TODO_dump_func.
2737 * tree-ssa-copyrename.c: Remove TODO_dump_func.
2738 * tree-ssa-ccp.c: Remove TODO_dump_func.
2739 * compare-elim.c: Remove TODO_dump_func.
2740 * mode-switching.c: Remove TODO_dump_func.
2741 * modulo-sched.c: Remove TODO_dump_func.
2742 * tree-call-cdce.c: Remove TODO_dump_func.
2743 * cse.c: Remove TODO_dump_func.
2744 * web.c: Remove TODO_dump_func.
2745 * tree-stdarg.c: Remove TODO_dump_func.
2746 * lto-streamer-out.c: Remove TODO_dump_func.
2747 * tree-ssa-math-opts.c: Remove TODO_dump_func.
2748 * tree-ssa-dom.c: Remove TODO_dump_func.
2749 * tree-nrv.c: Remove TODO_dump_func.
2750 * loop-init.c: Remove TODO_dump_func.
2751 * gimple-low.c: Remove TODO_dump_func.
2752 * ipa-inline.c: Remove TODO_dump_func.
2753 * tree-ssa-sink.c: Remove TODO_dump_func.
2754 * jump.c: Remove TODO_dump_func.
2755 * ifcvt.c: Remove TODO_dump_func.
2756 * tree-ssa-loop.c: Remove TODO_dump_func.
2757 * recog.c: Remove TODO_dump_func.
2758 * dse.c: Remove TODO_dump_func.
2759 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
2760 * matrix-reorg.c: Remove TODO_dump_func.
2761 * tree-eh.c: Remove TODO_dump_func.
2762 * regmove.c: Remove TODO_dump_func.
2763 * function.c: Remove TODO_dump_func.
2764 * tree-vectorizer.c: Remove TODO_dump_func.
2765 * ipa-split.c: Remove TODO_dump_func.
2766 * gcse.c: Remove TODO_dump_func.
2767 * tree-if-conv.c: Remove TODO_dump_func.
2768 * init-regs.c: Remove TODO_dump_func.
2769 * tree-ssa-phiopt.c: Remove TODO_dump_func.
2770 * implicit-zee.c: Remove TODO_dump_func.
2771 * lower-subreg.c: Remove TODO_dump_func.
2772 * bt-load.c: Remove TODO_dump_func.
2773 * tree-dfa.c: Remove TODO_dump_func.
2774 * except.c: Remove TODO_dump_func.
2775 * emit-rtl.c: Remove TODO_dump_func.
2776 * store-motion.c: Remove TODO_dump_func.
2777 * cfgexpand.c: Remove TODO_dump_func.
2778 * tree-cfgcleanup.c: Remove TODO_dump_func.
2779 * cfgcleanup.c: Remove TODO_dump_func.
2780 * tree-ssa-pre.c: Remove TODO_dump_func.
2781 * tree-sra.c: Remove TODO_dump_func.
2782 * tree-mudflap.c: Remove TODO_dump_func.
2783 * tree-ssa-copy.c: Remove TODO_dump_func.
2784 * cfglayout.c: Remove TODO_dump_func.
2785 * tree-ssa-forwprop.c: Remove TODO_dump_func.
2786 * tree-ssa-dce.c: Remove TODO_dump_func.
2787 * ira.c: Remove TODO_dump_func.
2788 * tree-ssa.c: Remove TODO_dump_func.
2789 * integrate.c: Remove TODO_dump_func.
2790 * tree-optimize.c: Remove TODO_dump_func.
2791 * tree-ssa-phiprop.c: Remove TODO_dump_func.
2792 * tree-object-size.c: Remove TODO_dump_func.
2793 * combine.c: Remove TODO_dump_func.
2794 * bb-reorder.c: Remove TODO_dump_func.
2795 * cprop.c: Remove TODO_dump_func.
2796 * var-tracking.c: Remove TODO_dump_func.
2797 * tree-profile.c: Remove TODO_dump_func.
2798 * tree-vect-generic.c: Remove TODO_dump_func.
2799 * reg-stack.c: Remove TODO_dump_func.
2800 * sched-rgn.c: Remove TODO_dump_func.
2801 * tree-ssa-structalias.c: Remove TODO_dump_func.
2802 * tree-switch-conversion.c: Remove TODO_dump_func.
2803 * tree-cfg.c: Remove TODO_dump_func.
2804 * tree-ssa-reassoc.c: Remove TODO_dump_func.
2805 * combine-stack-adj.c: Remove TODO_dump_func.
2806 * dce.c: Remove TODO_dump_func.
2807 * tree-ssanames.c: Remove TODO_dump_func.
2808 * regcprop.c: Remove TODO_dump_func.
2810 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
2813 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
2814 and properly handle result not in Pmode.
2816 2011-06-14 Robert Millan <rmh@gnu.org>
2818 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
2819 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
2822 * config/i386/kfreebsd-gnu64.h: New file.
2823 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
2824 with `i386/kfreebsd-gnu64.h'.
2826 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
2827 (GNU_USER_LINK_EMULATION64): New macros.
2828 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
2829 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
2830 of hardcoding `elf_i386' and `elf_x86_64'.
2832 2011-06-14 Nick Clifton <nickc@redhat.com>
2835 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
2838 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
2840 2011-06-14 Jakub Jelinek <jakub@redhat.com>
2843 * tree.h (DECL_NONSHAREABLE): Define.
2844 (struct tree_decl_common): Change decl_common_unused to
2845 decl_nonshareable_flag.
2846 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
2847 Ignore vars with DECL_NONSHAREABLE bit set.
2848 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
2849 on stores to automatic aggregate vars.
2851 PR rtl-optimization/49390
2853 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2855 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2858 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
2859 Tom de Vries <tom@codesourcery.com>
2862 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
2863 Document changed semantics.
2864 (max_stmt_executions, max_stmt_executions_int): Declare.
2865 * tree-data-ref.c (estimated_loop_iterations)
2866 (estimated_loop_iterations_int): Move functions...
2867 * tree-ssa-loop-niter.c (estimated_loop_iterations)
2868 (estimated_loop_iterations_int): here.
2869 (record_estimate): Change nb_iterations_upper_bound and
2870 nb_iterations_estimate semantics.
2871 (max_stmt_executions, max_stmt_executions_int): New function.
2872 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
2873 (max_stmt_executions_tree): this.
2874 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
2875 estimated_loop_iterations_tree.
2876 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
2877 max_stmt_executions_int instead of estimated_loop_iterations_int.
2878 * predict.c (predict_loops): Idem.
2879 * tree-parloops.c (parallelize_loops): Idem.
2880 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
2881 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
2882 (init_omega_for_ddr_1): Idem.
2883 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
2884 (loop_prefetch_arrays): Idem
2885 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
2886 max_stmt_executions instead of estimated_loop_iterations.
2887 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
2888 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
2889 instead of nb_iterations_upper_bound.
2891 2011-06-13 Jan Hubicka <jh@suse.cz>
2893 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
2895 2011-06-14 Richard Henderson <rth@redhat.com>
2898 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
2899 (based_loc_descr): Assert it's true.
2900 (compute_frame_pointer_to_fb_displacement): Set it, rather than
2901 aborting immediately.
2903 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
2904 Mingfeng Wu <mingfeng@faraday-tech.com>
2906 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
2908 2011-06-13 Jan Hubicka <jh@suse.cz>
2910 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
2912 2011-06-13 Jan Hubicka <jh@suse.cz>
2914 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
2915 similarly to DECL_COMDAT.
2916 * cgraphunit.c (cgraph_analyze_function): Likewise.
2917 * ipa.c (function_and_variable_visibility): Likewise.
2919 2011-06-13 Jan Hubicka <jh@suse.cz>
2921 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
2922 BINFO_VIRTUALS when streaming for ltrans unit.
2924 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
2926 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
2927 (movdi_internal64): Same.
2929 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
2932 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
2933 a set of similar patterns, where the MATCH_OPERAND for the function
2934 argument is replaced with individual references to hardware registers.
2935 (save_fpregs_<mode>): Ditto
2936 (restore_gpregs_<mode>): Ditto
2937 (return_and_restore_gpregs_<mode>): Ditto
2938 (return_and_restore_fpregs_<mode>): Ditto
2939 (return_and_restore_fpregs_aix_<mode>): Ditto
2941 2011-06-13 Jan Hubicka <jh@suse.cz>
2943 * ipa-utils.c (postorder_stack): New structure.
2944 (ipa_reverse_postorder): Handle aliases.
2946 2011-06-13 Jan Hubicka <jh@suse.cz>
2948 * ipa-inline.c (reset_edge_caches): Walk aliases.
2949 (update_caller_keys): Do not test inlinability of aliases.
2950 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
2951 (do_estimate_growth): Fix typo.
2953 2011-06-13 Jan Hubicka <jh@suse.cz>
2955 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
2956 (can_remove_node_now_p): ... here; handle same comdat groups.
2957 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
2958 (inline_call): Update use of can_remove_node_now_p.
2960 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2962 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
2963 condition to disallow non-identical memory locations.
2964 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
2965 preference to bit manipulation instructions.
2967 2011-06-13 Jan Hubicka <jh@suse.cz>
2969 * cgraph.c (cgraph_for_node_thunks_and_aliases,
2970 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
2971 (nonremovable_p): New function.
2972 (cgraph_can_remove_if_no_direct_calls_p): New function.
2973 (used_from_object_file_p): New functoin.
2974 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
2975 references from aliases.
2976 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
2977 * ipa-inline.c (check_caller_edge): New function.
2978 (want_inline_function_called_once_p): Use it; accept aliases called
2980 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
2982 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2985 * config/arm/neon.md (vec_pack_trunc): Set the lengths
2986 correctly for the case with Quad vectors.
2988 2011-06-13 Jakub Jelinek <jakub@redhat.com>
2989 Ira Rosen <ira.rosen@linaro.org>
2991 PR tree-optimization/49352
2992 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
2993 all, make sure loop_use_stmt after the loop is a def stmt of a used
2994 SSA_NAME that is the only one defined inside of the loop. Don't
2995 check for COND_EXPR and GIMPLE_BINARY_RHS.
2996 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
2997 check_reduction is true.
2999 2011-06-11 Jan Hubicka <jh@suse.cz>
3002 * ipa.c (cgraph_externally_visible_p): Check resolution info.
3004 2011-06-11 Jan Hubicka <jh@suse.cz>
3007 * ipa-inline-transform.c: Include tree-pass.h
3008 (inline_transform): Set TODO_update_ssa_only_virtuals.
3009 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
3011 2011-06-11 Jan Hubicka <jh@suse.cz>
3014 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
3017 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
3019 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
3020 Take number of iterations to peel into account for equally frequent
3021 misalignment values.
3023 2011-06-11 Jan Hubicka <jh@suse.cz>
3025 * lto-streamer-out.c (produce_symtab): Stream out the newly
3026 represented aliases.
3028 2011-06-11 Jan Hubicka <jh@suse.cz>
3030 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
3032 (ipa_update_after_lto_read): Likewise.
3033 (ipa_write_node_info): Do not sream call_with_var_arguments.
3034 (ipa_read_node_info): Likewise.
3036 2011-06-11 Jan Hubicka <jh@suse.cz>
3038 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
3040 2011-06-11 Jan Hubicka <jh@suse.cz>
3042 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
3043 (lto_symtab_resolve_can_prevail_p): Likewise.
3044 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
3045 * cgraph.c (same_body_aliases_done): New global var.
3046 (cgraph_same_body_alias_1): Rename to ...
3047 (cgraph_create_function_alias): ... this one; reorg to new
3049 (cgraph_same_body_alias): Use cgraph_create_function_alias;
3050 record references when asked to.
3051 (cgraph_add_thunk): Fix formating.
3052 (cgraph_get_node): Kill same body alias code.
3053 (cgraph_node_for_asm): Likewise.
3054 (cgraph_remove_same_body_alias): Remove.
3055 (cgraph_remove_node): Kill same body alias code.
3056 (cgraph_mark_address_taken_node): Mark also the aliased function
3057 as having address taken.
3058 (dump_cgraph_node): Dump same body aliases.
3059 (cgraph_for_node_thunks_and_aliases): Update for new alias
3061 (cgraph_for_node_and_aliases): Likewise.
3062 * cgraph.h (same_body): Kll pointer.
3063 (same_body_alias): Update comment.
3064 (same_body_aliases_done): Declare.
3065 (cgraph_remove_same_body_alias): Remove declaration.
3066 (cgraph_create_function_alias): Declare.
3067 (cgraph_process_same_body_aliases): Declare.
3068 (cgraph_function_with_gimple_body_p): Check for alias.
3069 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
3070 (cgraph_alias_aliased_node): New function.
3071 (cgraph_function_node): Update for new aliases.
3072 (cgraph_function_or_thunk_node): Likewise.
3073 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
3074 (inline_call): Remove dead aliases.
3075 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
3076 name hack for same body aliases.
3077 (clone_of_p): Look through aliases.
3078 (verify_cgraph_node): Verify aliases.
3079 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
3080 (cgraph_process_same_body_aliases): New function.
3081 (process_function_and_variable_attributes): Disable weakref warning on
3083 (cgraph_analyze_functions): Handle aliases.
3084 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
3085 (assemble_thunks): Rename to ...
3086 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
3087 (cgraph_expand_function): Remove alias output code.
3088 (cgraph_output_in_order): Skip aliases.
3089 (cgraph_preserve_function_body_p): Aliases don't need preserving.
3090 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
3091 (ipa_record_reference): Do not assert on alias references.
3092 (ipa_ref_has_aliases_p): New function.
3093 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
3094 (ipa_ref_has_aliases_p): Declare.
3095 * lto-cgraph.c (lto_output_node): Handle aliases.
3096 (input_node): Likewise.
3097 * lto-streamer-out.c (lto_output): Skip aliases.
3098 (produce_symtab): Kill same_body_alias code.
3099 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
3100 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
3101 * ipa-inline.c (update_caller_keys): Walk aliases.
3102 (inline_small_functions): Fix thinko in previous patch.
3103 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
3104 (function_and_variable_visibility): Do not walk same body aliases.
3105 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
3106 (ipa_pta_execute): Use it.
3108 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3110 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
3111 (*vec_dupv2df): Rename from vec_dupv2df.
3112 (vec_dupv2df): New expander.
3114 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3116 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
3118 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
3120 * config/i386/i386.md: Use default value in "isa" attribute.
3121 * config/i386/sse.md: Ditto.
3122 * config/i386/mmx.md: Ditto.
3124 2011-06-10 Wei Guozhi <carrot@google.com>
3127 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
3128 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
3129 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
3131 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
3133 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
3134 (arm_legitimate_ldrd_p): New prototype.
3135 (arm_output_ldrd): New prototype.
3136 * config/arm/arm.c (arm_check_ldrd_operands): New function.
3137 (arm_legitimate_ldrd_p): New function.
3138 (arm_output_ldrd): New function.
3140 2011-06-10 David Li <davidxl@google.com>
3142 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3143 * passes.c (passr_eq): New function.
3144 (create_pass_tab): New function.
3145 (pass_traverse): New function.
3146 (dump_one_pass): New function.
3147 (dump_pass_list): New function.
3148 (dump_passes): New function.
3150 2011-06-10 Jan Hubicka <jh@suse.cz>
3152 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
3153 setting the nothrow flag.
3154 * ipa-reference.c (propagate): Skip aliases.
3155 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
3156 (propagate_nothrow): Skip aliases; do not update cgraph.
3157 (local_pure_const): Do not update cgraph.
3158 * tree-profile.c (tree_profiling): Do fixup_cfg.
3160 2011-06-10 Jan Hubicka <jh@suse.cz>
3162 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
3163 (cgraph_local_node_p): ... here; handle aliases.
3164 (has_addr_references_p): Break out from ...;
3165 (cgraph_remove_unreachable_nodes) ... here.
3167 2011-06-10 Jan Hubicka <jh@suse.cz>
3169 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
3170 * common.opt (flag_inline_functions_called_once): Do not
3173 2011-06-10 Jan Hubicka <jh@suse.cz>
3175 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
3176 (ipcp_initialize_node_lattices): Do not deal with aliases;
3177 Do not try to propagate through thunks.
3178 (ipcp_change_tops_to_bottom): Do not deal with aliases.
3180 2011-06-10 Jan Hubicka <jh@suse.cz>
3182 * ipa-prop.c (ipa_write_node_info): Stream jump functions
3184 (ipa_read_node_info): Likewise.
3186 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3189 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
3190 (build_and_insert_call): Likewise.
3191 (build_and_insert_ref): New.
3192 (gimple_expand_builtin_pow): Minor cleanup.
3193 (gimple_expand_builtin_cabs): New.
3194 (execute_cse_sincos): Add case for BUILT_IN_CABS.
3196 2011-06-10 Jan Hubicka <jh@suse.cz>
3198 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
3199 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
3200 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
3201 (ipcp_propagate_stage): Skip aliases when propagating.
3202 (ipcp_need_redirect_p): Skip aliases.
3203 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
3204 collect_callers_of_node.
3205 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
3207 (ipa_compute_jump_functions): Look through aliases.
3209 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3211 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
3213 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3215 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
3217 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
3219 2011-06-10 Jan Hubicka <jh@suse.cz>
3221 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
3222 Update call of gimple_get_virt_method_for_binfo.
3223 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
3224 refuse_thunks parameter.
3225 (gimple_fold_call): Update.
3226 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
3228 2011-06-10 Jan Hubicka <jh@suse.cz>
3230 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
3231 (not_all_callers_have_enough_arguments_p): ... this one; turn into
3232 worker for cgraph_for_node_and_aliases.
3233 (convert_callers_for_node): Break out from ...
3234 (convert_callers): ... here.
3235 (modify_function): Use collect_callers_of_node.
3236 (ipa_early_sra): Use cgraph_for_node_and_aliases.
3238 2011-06-10 Richard Guenther <rguenther@suse.de>
3240 PR tree-optimization/49361
3241 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
3242 when not already in gimple form.
3244 2011-06-10 Richard Guenther <rguenther@suse.de>
3247 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
3248 FOR_EACH_PHI_OR_STMT_USE.
3250 2011-06-10 Jan Hubicka <jh@suse.cz>
3252 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
3253 (clone_inlined_nodes): ... here.
3254 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
3255 to real destination prior inlining.
3256 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
3257 can_early_inline_edge_p, want_early_inline_function_p,
3258 want_early_inline_function_p, want_inline_small_function_p,
3259 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
3260 edge_badness, update_all_callee_keys, lookup_recursive_calls,
3261 add_new_edges_to_heap, inline_small_functions, flatten_function,
3262 inline_always_inline_functions, early_inline_small_functions): Use
3263 cgraph_function_or_thunk_node.
3264 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
3265 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
3266 (do_estimate_edge_growth_1): Break out from ...
3267 (do_estimate_growth) ... here; walk aliases.
3268 (inline_generate_summary): Skip aliases.
3270 2011-06-10 Richard Guenther <rguenther@suse.de>
3272 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
3273 forward when combining, visit inserted stmts when a stmt was changed.
3275 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
3277 * tree.h (error_operand_p): Add.
3278 * dbxout.c (dbxout_type_fields): Use the latter.
3279 * c-decl.c (add_stmt): Likewise.
3280 * gimplify.c (omp_add_variable, omp_notice_variable,
3281 gimplify_scan_omp_clauses): Likewise.
3283 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
3285 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
3286 when a value is actually passed in regs.
3288 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
3289 Laurent Rougé <laurent.rouge@menta.fr>
3291 * doc/invoke.texi (SPARC options): Add -mflat.
3292 * config/sparc/sparc.opt: Likewise.
3293 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
3294 (sparc_flat_expand_prologue): Declare.
3295 (sparc_flat_expand_epilogue): Likewise.
3296 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
3297 (CPP_ENDIAN_SPEC): Replace with...
3298 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
3299 (CPP_SPEC): Adjust to above change.
3300 (EXTRA_SPECS): Likewise.
3301 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
3302 (INCOMING_REGNO): Likewise.
3303 (OUTGOING_REGNO): Likewise.
3304 (LOCAL_REGNO): Likewise.
3305 (SETUP_FRAME_ADDRESSES): Likewise.
3306 (FIXED_REGISTERS): Set 0 for %fp.
3307 (CALL_USED_REGISTERS): Likewise.
3308 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
3309 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
3310 (RETURN_ADDR_REGNUM): Define.
3311 (RETURN_ADDR_RTX): Use it.
3312 (INCOMING_RETURN_ADDR_REGNUM): Define.
3313 (INCOMING_RETURN_ADDR_RTX): Use it.
3314 (DWARF_FRAME_RETURN_COLUMN): Likewise.
3315 (EH_RETURN_REGNUM): Define.
3316 (EH_RETURN_STACKADJ_RTX): Use it.
3317 (EH_RETURN_HANDLER_RTX): Delete.
3318 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
3319 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
3321 (struct machine_function): Add frame_size, apparent_frame_size,
3322 frame_base_reg, frame_base_offset, n_global_fp_regs and
3323 save_local_in_regs_p fields.
3324 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
3325 sparc_frame_base_offset, sparc_n_global_fp_regs,
3326 sparc_save_local_in_regs_p): New macros.
3327 (sparc_option_override): Error out if -fcall-saved-REG is specified
3329 (eligible_for_restore_insn): Fix formatting.
3330 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
3331 (eligible_for_sibcall_delay): Likewise.
3332 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
3333 (sparc_legitimate_address_p): Adjust to above change.
3334 (save_global_or_fp_reg_p): New predicate.
3335 (return_addr_reg_needed_p): Likewise.
3336 (save_local_or_in_reg_p): Likewise.
3337 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
3338 (SORR_SAVE, SORR_RESTORE): Delete.
3339 (sorr_pred_t): New typedef.
3340 (sorr_act_t): New enum.
3341 (save_or_restore_regs): Rename to...
3342 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
3343 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
3344 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
3345 mechanism. Add CFI information for double-word saves in 32-bit mode.
3346 (emit_adjust_base_to_offset): New function extracted from...
3347 (emit_save_or_restore_regs): ...this. Rename the rest to...
3348 (emit_save_or_restore_regs_global_fp_regs): ...this.
3349 (emit_save_or_restore_regs_local_in_regs): New function.
3350 (gen_create_flat_frame_[123]): New functions.
3351 (sparc_expand_prologue): Use SIZE local variable. Adjust.
3352 (sparc_flat_expand_prologue): New function.
3353 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
3354 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
3355 (sparc_flat_expand_epilogue): New function.
3356 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
3357 (output_return): Likewise.
3358 (output_sibcall): Likewise.
3359 (sparc_output_mi_thunk): Likewise.
3360 (sparc_frame_pointer_required): Likewise.
3361 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
3362 function optimization.
3363 * config/sparc/sparc.md (flat): New attribute.
3364 (prologue): Add TARGET_FLAT handling.
3365 (save_register_window): Disable if TARGET_FLAT.
3366 (create_flat_frame_[123]): New patterns.
3367 (epilogue): Add TARGET_FLAT handling.
3368 (sibcall_epilogue): Likewise.
3369 (eh_return): New expander.
3370 (eh_return_internal): New insn and splitter.
3371 (return_internal): Add TARGET_FLAT handling.
3372 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
3373 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
3374 (nonlocal_goto): Add TARGET_FLAT handling.
3375 * config/sparc/t-elf: Add -mflat multilib.
3376 * config/sparc/t-leon: Likewise.
3378 2011-06-10 Jan Hubicka <jh@suse.cz>
3380 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
3381 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
3382 (self_recursive_p): Use cgraph_function_node.
3383 (propagate_pure_const): Likewise.
3384 (propagate_nothrow): Likewise.
3385 * ipa-reference.c (ipa_reference_get_not_read_global): Use
3386 cgraph_function_node.
3387 (propagate_bits): Likewise.
3388 (propagate): Likewise.
3390 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
3391 Richard Earnshaw <rearnsha@arm.com>
3393 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
3394 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
3395 (*thumb2_movdi_vfp): Delete.
3396 (*arm_movdi_vfp_cortexa8): Delete.
3397 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
3398 (*movdi_vfp_cortexa8): Likewise.
3400 2011-06-10 Richard Guenther <rguenther@suse.de>
3402 * stor-layout.c (initialize_sizetypes): Give names to all
3405 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
3407 PR tree-optimization/49318
3408 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
3409 irrelevant pattern statements.
3411 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3413 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
3416 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
3419 2011-06-09 Jan Hubicka <jh@suse.cz>
3421 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
3422 do not recompute reachable flag.
3423 (cgraph_finalize_function, cgraph_analyze_functions): Set
3424 redefined_extern_inline here.
3426 2011-06-09 Jan Hubicka <jh@suse.cz>
3428 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
3429 (cgraph_only_called_directly_p): ... this one; bring offline.
3430 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
3431 varpool_used_from_object_file_p): Drop names from the declaratoin.
3432 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
3433 collect_callers_of_node): New.
3434 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
3435 (cgraph_edge_recursive_p): Use cgraph_function_node.
3436 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
3437 (cgraph_node_cannot_be_local_p_1): Break out from ...
3438 (cgraph_node_can_be_local_p): ... here; walk aliases.
3439 (cgraph_for_node_thunks_and_aliases): New function.
3440 (cgraph_for_node_and_aliases): New function.
3441 (cgraph_make_node_local_1): Break out from ...
3442 (cgraph_make_node_local) ... here; use
3443 cgraph_for_node_thunks_and_aliases.
3444 (cgraph_set_nothrow_flag_1): Break out from ...
3445 (cgraph_set_nothrow_flag) ... here;
3446 use cgraph_for_node_thunks_and_aliases.
3447 (cgraph_set_const_flag_1): Break out from ...
3448 (cgraph_set_const_flag) ... here;
3449 use cgraph_for_node_thunks_and_aliases.
3450 (cgraph_set_pure_flag_1): Break out from ...
3451 (cgraph_set_pure_flag) ... here;
3452 use cgraph_for_node_thunks_and_aliases.
3453 (cgraph_propagate_frequency_1): Break out from ...
3454 (cgraph_propagate_frequency) ... here; use
3455 cgraph_for_node_thunks_and_aliases.
3456 (cgraph_used_from_object_file_p): Do not care about aliases.
3457 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
3459 (collect_callers_of_node_1, collect_callers_of_node): New functions.
3461 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3463 PR rtl-optimization/49154
3464 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
3465 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
3466 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
3467 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
3468 * config/cris/cris.h (cris_register_move_cost): Remove
3469 !TARGET_V32 code. Tweak comments.
3471 2011-06-09 Jan Hubicka <jh@suse.cz>
3473 * cgraphbuild.c (record_eh_tables): Mark personality function as having
3476 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
3478 PR rtl-optimization/49154
3479 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
3480 is a matching slot in the hashtable, assign it to classes_ptr.
3482 PR rtl-optimization/49154
3483 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
3485 * doc/tm.texi: Regenerate.
3487 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
3490 * config/sh/sh.md (UNSPEC_CHKADD): New.
3491 (chk_guard_add): New define_insn_and_split.
3492 (symGOT_load): Use chk_guard_add instead of blockage.
3494 2011-06-09 Kai Tietz <ktietz@redhat.com>
3496 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
3498 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
3500 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
3502 2011-06-09 Wei Guozhi <carrot@google.com>
3505 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
3506 (peephole2 for conditional move): Generate 16 bit instructions.
3508 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
3510 * config/i386/i386.md (*movdi_internal_rex64): Merge
3511 alternatives 6 and 8.
3513 2011-06-09 David Li <davidxl@google.com>
3515 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
3516 * passes.c (passr_eq): New function.
3517 (create_pass_tab): New function.
3518 (pass_traverse): New function.
3519 (dump_one_pass): New function.
3520 (dump_pass_list): New function.
3521 (dump_passes): New function.
3523 2011-06-09 David Li <davidxl@google.com>
3525 * tree-complex.c (tree_lower_complex): Gate cleanup.
3526 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
3527 (execute_optimize_stdarg): Ditto.
3528 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
3529 (execute_cleanup_eh_1): Ditto.
3530 (execute_cleanup_eh): Ditto.
3531 * gcse.c (gate_rtl_pre): Ditto.
3532 (execute_rtl_pre): Ditto.
3533 * except.c (finish_eh_generation): Ditto.
3534 (convert_to_eh_region_ranges): Ditto.
3535 * cprop.c (one_cprop_pass): Ditto.
3537 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
3540 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
3541 in all basic blocks.
3543 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3545 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
3546 (HAVE_ENABLE_EXECUTE_STACK): Define.
3547 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
3548 (HAVE_ENABLE_EXECUTE_STACK): Define.
3549 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
3550 (HAVE_ENABLE_EXECUTE_STACK): Define.
3551 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
3552 (ENABLE_EXECUTE_STACK): Remove.
3553 (HAVE_ENABLE_EXECUTE_STACK): Define.
3554 [IN_LIBGCC2]: Don't include <windows.h>.
3555 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3556 (HAVE_ENABLE_EXECUTE_STACK): Define.
3557 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
3558 (HAVE_ENABLE_EXECUTE_STACK): Define.
3559 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
3560 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
3561 (HAVE_ENABLE_EXECUTE_STACK): Define.
3562 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
3563 (HAVE_ENABLE_EXECUTE_STACK): Define.
3564 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
3565 (HAVE_ENABLE_EXECUTE_STACK): Define.
3566 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
3567 (HAVE_ENABLE_EXECUTE_STACK): Define.
3568 * config/alpha/alpha.c (alpha_trampoline_init): Test
3569 HAVE_ENABLE_EXECUTE_STACK.
3570 * config/i386/i386.c (ix86_trampoline_init): Likewise.
3571 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3572 (sparc64_initialize_trampoline): Likewise.
3573 * libgcc2.c [L_enable_execute_stack]: Remove.
3574 * system.h (ENABLE_EXECUTE_STACK): Poison.
3575 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
3576 * doc/tm.texi: Regenerate.
3577 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
3579 2011-06-09 Jakub Jelinek <jakub@redhat.com>
3582 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
3583 variable. After resetting and rescanning insn continue with previous
3586 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3588 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
3589 (gcc_cv_ld_hidden): Likewise.
3590 * configure: Regenerate.
3591 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
3592 (ix86_stack_protect_fail): Mark unused.
3593 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
3594 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
3595 [TARGET_MACHO]: Don't define.
3596 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
3597 (TARGET_STACK_PROTECT_FAIL): Likewise.
3598 (rs6000_stack_protect_fail): Mark unused.
3599 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
3600 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
3602 2011-06-08 Andi Kleen <ak@linux.intel.com>
3604 * varasm.c (get_section): Print location of other conflict
3605 for section conflicts.
3607 2011-06-08 Andi Kleen <ak@linux.intel.com>
3609 * config/i386/driver-i386.c (host_detect_local_cpu):
3610 Add model 0x2d Intel CPU.
3612 2011-06-08 Andi Kleen <ak@linux.intel.com>
3614 * reginfo.c (global_regs_decl): Add.
3615 (globalize_reg): Add decl parameter. Compute location. Pass location
3616 to warnings and add inform. Store decl in global_regs_decl.
3617 * rtl.h (globalize_reg): Update prototype.
3618 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
3620 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
3622 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
3624 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3627 * config/sh/predicates.md (general_movsrc_operand): Check
3628 mode for memory with indexed address for QI and HImode.
3629 (general_movdst_operand): Likewise.
3631 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
3633 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
3635 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
3637 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
3638 (num_ssa_operands): Likewise.
3639 (op_iter_init_phiuse): Forward-declare.
3640 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
3642 2011-06-08 Nick Clifton <nickc@redhat.com>
3644 * doc/invoke.texi (ARM Options): Update description of
3647 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
3649 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3650 unknown Intel family 0x6 CPUs.
3652 2011-06-08 Martin Jambor <mjambor@suse.cz>
3654 * tree-sra.c (mark_rw_status): Removed.
3655 (analyze_access_subtree): New parameter parent instead of
3656 mark_read and mark_write, propagate from that.
3658 2011-06-08 Julian Brown <julian@codesourcery.com>
3660 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
3661 for double-precision helper functions in hard-float mode if only
3662 single-precision arithmetic is supported in hardware.
3664 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
3666 PR rtl-optimization/49303
3667 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
3668 code_motion_path_driver returned 0 or 1.
3669 (sel_region_finish): Clear h_d_i_d.
3671 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
3673 * config/sh/sh.c (prepare_move_operands): Set pic register
3674 appropriately for global and local dynamic tls models even
3675 if flag_pic is unset.
3677 2011-06-07 Jason Merrill <jason@redhat.com>
3679 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
3681 2011-06-07 Xinliang David Li <davidxl@google.com>
3682 * passes.c (enable_disable_pass): Handle assembler name.
3683 (is_pass_explicitly_enabled_or_disabled): Ditto.
3685 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3687 PR tree-optimization/48497
3688 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
3690 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3692 PR tree-optimization/46728
3693 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
3694 to use gimple_val_nonnegative_real_p.
3695 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
3696 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
3698 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
3700 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
3702 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
3704 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
3707 2011-06-07 Richard Guenther <rguenther@suse.de>
3709 * stor-layout.c (initialize_sizetypes): Initialize all
3710 sizetypes based on target definitions.
3711 (set_sizetype): Remove.
3712 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
3713 * tree.h (set_sizetype): Remove.
3715 2011-06-07 Nick Clifton <nickc@redhat.com>
3717 * config.gcc: Unify V850 architecture options and add support for
3718 newer V850 architectures.
3719 * config/v850/t-v850e: Delete.
3721 2011-06-07 Richard Guenther <rguenther@suse.de>
3723 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
3724 Call set_sizetype from here.
3726 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
3728 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
3729 (*maddhisi4tb, *maddhisi4tt): New define_insns.
3731 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
3732 Andrew Stubbs <ams@codesourcery.com>
3734 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
3736 * doc/md.texi (Canonicalization of Instructions): Document widening
3737 multiply canonicalization.
3739 2011-06-07 Jakub Jelinek <jakub@redhat.com>
3741 PR gcov-profile/49299
3742 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
3744 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
3746 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
3748 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
3749 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
3750 vect_recog_pow_pattern): Likewise.
3751 (vect_pattern_recog_1): Remove declaration.
3752 (widened_name_p): Remove declaration. Add new argument to specify
3753 whether to check that both types are either signed or unsigned.
3754 (vect_recog_widen_mult_pattern): Update documentation. Handle
3755 unsigned patterns and multiplication by constants.
3756 (vect_pattern_recog_1): Update vect_recog_func references. Use
3757 statement information from the statement returned from pattern
3758 detection functions.
3759 (vect_pattern_recog): Update vect_recog_func reference.
3760 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
3761 multiplication by a constant use the type of the other operand.
3763 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
3765 PR rtl-optimization/49145
3766 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
3768 2011-06-06 Jakub Jelinek <jakub@redhat.com>
3771 * dwarf2out.c (native_encode_initializer): Decrement count in each
3775 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
3779 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
3780 if stmt folded into nothing.
3781 * tree-inline.c (fold_marked_statements): If a builtin at the end of
3782 a bb folded into nothing, just update cgraph edges and move to next bb.
3783 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
3784 to be NULL. Don't compute count and frequency if new_call is NULL.
3786 2011-06-04 Diego Novillo <dnovillo@google.com>
3788 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
3789 (cgraph.o): Likewise.
3790 (cgraphunit.o): Likewise.
3791 * cgraphunit.c: Include lto-streamer.h
3792 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
3794 * lto-streamer-in.c (unpack_value_fields): Call
3795 streamer_hooks.unpack_value_fields if set.
3796 (lto_materialize_tree): For unhandled nodes, first try to
3797 call lto_streamer_hooks.alloc_tree, if it exists.
3798 (lto_input_ts_decl_common_tree_pointers): Move reading of
3799 DECL_INITIAL to lto_streamer_read_tree.
3800 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
3801 (lto_streamer_read_tree): New.
3802 (lto_reader_init): Rename from lto_init_reader.
3803 Move initialization code to lto/lto.c.
3804 * lto-streamer-out.c (pack_value_fields): Call
3805 streamer_hooks.pack_value_fields if set.
3806 (lto_output_tree_ref): For tree nodes that are not normally indexable,
3807 call streamer_hooks.indexable_with_decls_p before giving up.
3808 (lto_output_ts_decl_common_tree_pointers): Move handling
3809 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
3810 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
3811 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
3812 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
3813 (lto_streamer_write_tree): New.
3814 (lto_output): Call lto_streamer_init directly.
3815 (lto_writer_init): Remove.
3816 * lto-streamer.c (streamer_hooks): New.
3817 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
3818 instead of lto_preload_common_nodes.
3819 (lto_is_streamable): Move from lto-streamer.h
3820 (lto_streamer_hooks_init): New.
3821 (streamer_hooks): New.
3822 (streamer_hooks_init): New.
3823 * lto-streamer.h (struct output_block): Forward declare.
3824 (struct lto_input_block): Likewise.
3825 (struct data_in): Likewise.
3826 (struct bitpack_d): Likewise.
3827 (struct streamer_hooks): Declare.
3828 (streamer_hooks): Declare.
3829 (lto_streamer_hooks_init): Declare.
3830 (lto_streamer_write_tree): Declare.
3831 (lto_streamer_read_tree): Declare.
3832 (streamer_hooks_init): Declare.
3833 (lto_is_streamable): Move to lto-streamer.c
3835 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3837 * longlong.h (smul_ppmm): The resulting register pair contains the
3838 higher order word first.
3840 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3842 PR tree-optimization/46728
3843 * builtins.c (powi_table): Remove.
3844 (powi_lookup_cost): Remove.
3845 (powi_cost): Remove.
3846 (expand_powi_1): Remove.
3847 (expand_powi): Remove.
3848 (expand_builtin_pow_root): Remove.
3849 (expand_builtin_pow): Remove.
3850 (expand_builtin_powi): Eliminate handling of constant exponent.
3851 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
3853 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3855 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
3857 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3859 * dce.c (reset_unmarked_insns_debug_uses): New.
3860 (delete_unmarked_insns): Skip debug insns.
3861 (prescan_insns_for_dce): Likewise.
3862 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
3863 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
3864 active reg can be found.
3865 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
3866 (convert_regs_1): Use it.
3868 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3870 * tree-pretty-print.c (dump_function_header): Add flags.
3871 Don't dump decl_uid with nouid.
3872 * tree-pretty-print.h (dump_function_header): Adjust.
3873 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
3874 * passes.c (pass_init_dump_file): Pass dump_flags on.
3875 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
3877 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
3880 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
3882 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
3884 PR tree-optimization/49243
3885 * calls.c (setjmp_call_p): Also check if fndecl has the
3886 returns_twice attribute.
3888 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3890 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
3893 2011-06-06 Richard Henderson <rth@redhat.com>
3894 Georg-Johann Lay <avr@gjlay.de>
3897 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
3899 * config/avr/avr.md ("insv"): New insn expander.
3900 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
3901 "*insv.not.io", "*insv.reg"): New insns.
3903 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
3906 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
3907 to nonimmediate_operand from memory_operand for the operand that is to
3908 be forced to memory by the expander. Lose the constraints.
3910 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
3912 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
3913 EH return when delayed branches are disabled.
3915 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
3917 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
3918 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
3920 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
3921 Simplify MODE_V1DF and MODE_V2SF handling.
3922 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
3923 Simplify MODE_SF handling.
3925 2011-06-04 Jan Hubicka <jh@suse.cz>
3927 PR tree-optimization/48893
3928 PR tree-optimization/49091
3929 PR tree-optimization/49179
3930 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
3933 2011-06-04 Jan Hubicka <jh@suse.cz>
3936 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
3939 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
3941 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
3943 2011-06-04 Jakub Jelinek <jakub@redhat.com>
3946 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
3947 to be strictly smaller than 1 << shiftcount.
3949 2011-06-04 Jan Hubicka <jh@suse.cz>
3951 PR tree-optimize/48929
3952 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
3955 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
3958 * calls.c (emit_call_1): Prefer the __builtin declaration of
3961 2011-06-03 Diego Novillo <dnovillo@google.com>
3963 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
3964 (lto_input_tree_pointers): Likewise.
3965 * lto-streamer-out.c (pack_value_fields): Likewise.
3966 (lto_output_tree_pointers): Likewise.
3967 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
3968 and OPTIMIZATION_NODE.
3970 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3972 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
3973 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
3974 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
3975 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
3976 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
3977 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
3978 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
3979 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
3980 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
3981 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
3982 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
3983 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
3984 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
3985 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
3986 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
3987 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
3988 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
3989 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
3990 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
3991 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
3992 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
3993 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
3994 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
3995 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
3996 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
3997 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
3998 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
3999 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
4000 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
4001 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
4002 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
4003 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
4004 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
4005 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
4006 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
4007 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
4008 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
4009 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
4010 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
4011 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
4012 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
4013 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
4014 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
4015 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
4016 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
4017 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
4018 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
4019 * system.h (MD_UNWIND_SUPPORT): Poison.
4020 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
4021 * doc/tm.texi: Regenerate.
4022 * unwind-dw2.c: Include md-unwind-support.h instead of
4024 * config/ia64/unwind-ia64.c: Likewise.
4025 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
4027 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
4029 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
4031 2011-06-03 Richard Henderson <rth@redhat.com>
4032 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4034 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
4035 (sigill_hdlr): Correct insn, insn size.
4036 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
4038 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4040 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
4042 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
4043 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
4044 * config/mips/t-iris: Remove.
4045 * config/mips/t-irix6: New file.
4046 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
4048 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4050 * Makefile.in (LIB2ADDEHDEP): Remove.
4051 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
4052 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
4053 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
4054 * config/t-darwin (LIB2ADDEHDEP): Remove.
4055 * config/t-freebsd (LIB2ADDEHDEP): Remove.
4056 * config/t-linux (LIB2ADDEHDEP): Remove.
4058 2011-06-03 Diego Novillo <dnovillo@google.com>
4060 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
4061 (lto_register_var_decl_in_symtab): Likewise.
4062 (lto_register_function_decl_in_symtab): Likewise.
4063 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
4064 logic to uniquify_nodes.
4066 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4068 * config/alpha/t-osf5: Remove.
4069 * config/alpha/t-osf-pthread: Remove.
4070 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
4071 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
4073 2011-06-03 Julian Brown <julian@codesourcery.com>
4075 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
4076 (strongarm1110): Use strongarm tuning.
4077 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
4078 * config/arm/arm.c (arm_strongarm_tune): New.
4079 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4080 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
4081 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
4082 setting, using previous defaults or 1 for Cortex-A5.
4083 (arm_option_override): Set max_insns_skipped from current tuning.
4085 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
4087 * doc/install.texi (Options specification): Document --with-specs.
4089 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4091 * config/arm/neon.md (orndi3_neon): Actually split it.
4093 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4095 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
4096 * var-tracking.c (reverse_op): Limite recurse depth to 5.
4098 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
4101 * target.def (delay_sched2, delay_vartrack): New.
4102 * doc/tm.texi.in: Update.
4103 * doc/tm.texi: Rebuild.
4104 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
4105 * var-tracking.c (gate_handle_var_tracking): Likewise.
4106 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
4107 (bfin_flag_var_tracking): Drop.
4108 (output_file_start): Don't save and override flag_var_tracking.
4109 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
4110 (bfin_reorg): Test original variables.
4111 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4112 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
4113 (ia64_flag_var_tracking): Drop.
4114 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4115 (ia64_file_start): Don't save and override flag_var_tracking.
4116 (ia64_override_options_after_change): Ditto
4117 flag_schedule_insns_after_reload.
4118 (ia64_reorg): Test original variables.
4119 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
4120 (picochip_flag_var_tracking): Drop.
4121 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
4122 (picochip_option_override): Don't save and override
4123 flag_schedule_insns_after_reload.
4124 (picochip_asm_file_start): Ditto flag_var_tracking.
4125 (picochip_reorg): Test original variables.
4126 * config/spu/spu.c (spu_flag_var_tracking): Drop.
4127 (TARGET_DELAY_VARTRACK): Define.
4128 (spu_var_tracking): New.
4129 (spu_machine_dependent_reorg): Call it.
4130 (asm_file_start): Don't save and override flag_var_tracking.
4132 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
4135 * config/sh/predicates.md (general_movsrc_operand): Return 0
4136 for memory and memory subreg of which address is an invalid
4137 indexed address for QI and HImode.
4138 (general_movdst_operand): Likewise.
4140 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4142 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
4143 edges only, when there is a non-local label in the function.
4144 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
4146 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4148 * config/i386/constraints.md (Y3): New register constraint.
4149 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
4150 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
4151 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
4152 *sse2_interleave_lowv2df.
4154 2011-06-02 Julian Brown <julian@codesourcery.com>
4156 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
4157 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
4158 (arm_cortex_a5_tune): New.
4160 2011-06-02 Julian Brown <julian@codesourcery.com>
4162 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
4163 * config/arm/arm.c (arm_default_branch_cost): New.
4164 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
4165 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
4166 (arm_fa726_tune): Set branch_cost field using
4167 arm_default_branch_cost.
4168 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
4169 current_tune structure.
4170 * dojump.c (tm_p.h): Include file.
4172 2011-06-02 Julian Brown <julian@codesourcery.com>
4174 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
4176 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
4177 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
4178 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
4180 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
4181 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
4182 (arm_fa726te_tune): Add prefer_constant_pool setting.
4183 (arm_v6t2_tune, arm_cortex_tune): New.
4184 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
4185 prefer_constant_pool setting.
4187 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
4189 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
4191 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
4192 (*movdf_internal) <case 6,7,8>: Ditto.
4194 * config/i386/constraints.md (Y4): New register constraint.
4195 * config/i386/sse.md (vec_set<mode>_0): Merge with
4196 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
4197 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
4198 *vec_extractv2di_1_sse.
4199 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
4200 and *vec_concatv2di_rex64_sse.
4202 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
4205 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
4206 of cgraph_local_info for null before attempting to use it.
4208 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
4210 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
4211 (current_function_dynamic_alloc_count): Delete.
4212 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
4213 (expand_builtin_nonlocal_goto): Remove obsolete comment.
4214 (expand_builtin_update_setjmp_buf): Remove dead code.
4215 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
4216 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
4218 * function.c (instantiate_virtual_regs): Likewise.
4219 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
4220 for a block with a single abnormal incoming edge.
4221 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
4222 (SETJMP_VIA_SAVE_AREA): Delete.
4223 * config/sparc/sparc-protos.h (load_got_register): Declare.
4224 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
4225 (load_got_register): Make global.
4226 (sparc_frame_pointer_required): Add 'static'.
4227 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
4228 (sparc_builtin_setjmp_frame_value): New function.
4229 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
4230 (save_stack_nonlocal): New expander.
4231 (restore_stack_nonlocal): Likewise.
4232 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
4233 (nonlocal_goto_internal): New insn.
4234 (goto_handler_and_restore): Delete.
4235 (builtin_setjmp_setup): Likewise.
4236 (do_builtin_setjmp_setup): Likewise.
4238 (builtin_setjmp_receiver): New expander.
4240 2011-06-01 David Li <davidxl@google.com>
4243 * tree-pretty-print.c (dump_function_header): Format cleanup.
4245 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
4248 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
4249 needed when original operands are used for msw_skip comparison.
4251 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4254 * var-tracking.c (add_uses, add_stores): Don't call
4255 cselib_subst_to_values on ENTRY_VALUE.
4257 2011-06-01 Diego Novillo <dnovillo@google.com>
4259 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
4260 output_record_start with LTO_null instead of output_zero.
4261 (lto_output_ts_binfo_tree_pointers): Likewise.
4262 (lto_output_tree): Likewise.
4263 (output_eh_try_list): Likewise.
4264 (output_eh_region): Likewise.
4265 (output_eh_lp): Likewise.
4266 (output_eh_regions): Likewise.
4267 (output_bb): Likewise.
4268 (output_function): Likewise.
4269 (output_unreferenced_globals): Likewise.
4270 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
4271 instead of NUM_TREE_CODES.
4272 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
4273 (lto_output_int_in_range): Change << to >> when shifting VAL.
4275 2011-06-01 Diego Novillo <dnovillo@google.com>
4277 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
4278 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
4280 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4283 * optabs.h (valid_multiword_target_p): Declare.
4284 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
4285 doing multi-word operations.
4286 * optabs.c (expand_binop): Likewise.
4287 (expand_doubleword_bswap): Likewise.
4288 (expand_absneg_bit): Likewise.
4289 (expand_unop): Likewise.
4290 (expand_copysign_bit): Likewise.
4291 (multiword_target_p): New function.
4293 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
4295 PR rtl-optimization/48830
4296 PR rtl-optimization/48808
4297 PR rtl-optimization/48792
4298 * reload.c (push_reload): Check contains_reg_of_mode.
4299 * reload1.c (strip_paradoxical_subreg): New function.
4300 (gen_reload_chain_without_interm_reg_p): Use it to handle
4301 paradoxical subregs.
4302 (emit_output_reload_insns, gen_reload): Likewise.
4304 2011-06-01 David Li <davidxl@google.com>
4306 * predict.c : Change pass name
4309 * tree-profile.c: Ditto.
4312 2011-06-01 David Li <davidxl@google.com>
4314 * tree-pretty-print.c (dump_function_header): New function.
4315 * final.c (rest_of_clean_state): Use header dumper.
4316 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
4317 * passes.c (pass_init_dump_file): Use header dumper.
4319 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4321 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
4322 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
4323 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
4325 (mem_loc_descriptor): Use them.
4327 * var-tracking.c (create_entry_value): New function.
4328 (vt_add_function_parameter): Use it.
4330 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4332 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
4333 Include <signal.h>, <ucontext.h>.
4334 (sigill_caught): Define.
4335 (sigill_hdlr): New function.
4336 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
4337 insns can be executed.
4338 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
4339 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
4341 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4343 * config/t-slibgcc-darwin: Move to ...
4344 * config/t-slibgcc-dummy: ... this. Clarify comments.
4345 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
4346 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
4347 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
4348 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
4349 Remove i386/t-crtstuff from tmake_file.
4350 (i[34567]86-*-solaris2*): Remove t-svr4,
4351 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
4353 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
4354 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
4355 sparc/t-crtfm from tmake_file.
4356 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
4357 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
4359 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
4360 * config/i386/t-nwld (SHLIB_LINK): Remove.
4361 * config/i386/t-rtems-i386: Rename to ...
4362 * config/i386/t-rtems: ... this.
4363 ($(T)crti.o, $(T)crtn.o): Remove.
4364 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
4365 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
4366 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
4367 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
4368 EXTRA_MULTILIB_PARTS): Remove.
4369 * config/sparc/t-sol2-64: Likewise.
4370 * config/sparc/t-sol2: Remove.
4371 * config/sparc/t-crtin: Remove.
4372 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
4373 * config/i386/gmon-sol2.c: Remove.
4374 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
4375 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
4376 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
4377 * config/i386/sol2-gc1.asm: Remove.
4378 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
4379 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
4380 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
4381 * config/t-slibgcc-sld: Remove.
4383 2011-06-01 Jakub Jelinek <jakub@redhat.com>
4385 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
4386 base_type_for_mode with op_mode instead of mode.
4388 2011-06-01 Paul Brook <paul@cpodesourcery.com>
4390 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
4392 * config/arm/arm-tune.md: Regenerate.
4393 * config/arm/arm-tables.opt: Regenerate.
4394 * config/arm/arm.c (FL_DIV): Rename...
4395 (FL_THUMB_DIV): ... to this.
4396 (FL_ARM_DIV): Define.
4397 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
4398 (arm_arch_hwdiv): Remove.
4399 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
4400 (arm_issue_rate): Add cortexr5.
4401 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
4402 __ARM_ARCH_EXT_IDIV__.
4403 (TARGET_IDIV): Define.
4404 (arm_arch_hwdiv): Remove.
4405 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
4406 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
4407 (divsi3, udivsi3): New patterns.
4408 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
4409 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
4411 2011-06-01 Martin Jambor <mjambor@suse.cz>
4413 * ipa-utils.c (ipa_dfs_info): New field scc_no.
4414 * ipa-utils.c (searchc): Set scc_no.
4416 2011-06-01 Martin Jambor <mjambor@suse.cz>
4418 * ipa-utils.c (searchc_env): New field allow_overwritable.
4419 (searchc): do not ignore edges to overwritable nodes if indicated
4420 by env->allow_overwritable.
4421 (ipa_reduced_postorder): Set env.allow_overwritable.
4423 2011-06-01 Richard Guenther <rguenther@suse.de>
4425 * tree.c (free_lang_data): Do not reset boolean_type_node nor
4427 * lto-streamer.c (lto_record_common_node): Take node pointer,
4428 do not register types.
4429 (lto_preload_common_nodes): Explicitly skip preloading nodes
4430 that differ between frontends.
4432 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4434 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
4437 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
4439 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
4440 parameter value for dump. Dump cost on outermost call only.
4441 (rs6000_memory_move_cost): Dump cost on outermost call only.
4443 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4445 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
4446 DW_OP_GNU_convert ops.
4448 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
4449 cselib_preserve_constants.
4450 (cselib_lookup_1): If cselib_preserve_constants,
4451 a new VALUE is being created for REG and there is a VALUE for the
4452 same register in wider mode, add another loc with lowpart SUBREG of
4454 (cselib_subst_to_values): Handle ENTRY_VALUE.
4455 * var-tracking.c (replace_expr_with_values): Return NULL for
4457 * dwarf2out.c (convert_descriptor_to_signed): New function.
4458 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
4459 instead of two shifts.
4460 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
4461 the right mode if needed.
4462 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
4463 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
4464 convert_descriptor_to_signed.
4465 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
4466 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
4469 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
4471 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4473 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
4474 of X87MODEI12 and SWI48x instead of SSEMODEI24.
4475 (SWI248x): New mode iterator, rename from X87MODEI.
4476 (X87MODEI): Remove mode iterator.
4477 (X87MODEI12): Ditto.
4478 (SSEMODEI24): Ditto.
4480 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4482 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
4483 * doc/invoke.texi: Document max-vartrack-expr-depth.
4484 * var-tracking.c (EXPR_DEPTH): New.
4485 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
4487 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4489 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
4490 * config/i386/sse.md: Add n to negated FMA pattern names.
4492 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4494 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
4496 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
4498 * gengtype-state.c (read_state_params_structs): Initialize previous.
4500 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4502 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
4503 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
4505 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
4507 * config/i386/i386.md (*movtf_internal): Avoid allocating general
4508 registers. Penalize F*r->o alternative to prevent partial memory
4509 stalls. Slightly penalize *roF->*r alternative. Generate SSE
4510 CONST_DOUBLE immediates when optimizing function for size. Do not move
4511 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4512 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
4513 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
4514 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
4516 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
4518 (fp_register_operand splitters): Use fp_register_operand
4519 constraint. Do not use FP_REG_P in insn condition.
4520 (any_fp_register_operand splitters): Use any_fp_register_operand
4521 constraint. Do not use ANY_FP_REG_P in insn condition.
4523 2011-05-31 Jan Hubicka <jh@suse.cz>
4525 * cgraph.h (cgraph_inline_failed_t): Give enum a name
4526 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
4527 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
4528 (lto_output_edge): Use output_enum and var_len_unsigned.
4529 (lto_output_varpool_node): Likewise.
4530 (input_overwrite_node): Do not take resolution parameter;
4531 extract it from a bitpack.
4532 (input_node): Do not read resolution; use input_enum and
4534 (input_varpool_node): Likewise.
4535 (input_edge): Likewise.
4536 (input_cgraph_1): Likewise.
4538 2011-05-31 Richard Guenther <rguenther@suse.de>
4540 * gimple.c (gimple_register_canonical_type): Do not register
4541 any types via gimple_register_type.
4543 2011-05-31 Jan Hubicka <jh@suse.cz>
4545 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
4548 2011-05-31 Jakub Jelinek <jakub@redhat.com>
4550 PR rtl-optimization/49235
4551 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
4552 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
4554 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
4556 PR tree-optimization/49093
4557 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
4560 2011-05-31 Dodji Seketeli <dodji@redhat.com>
4563 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
4564 for concrete functions containing the code of cloned functions.
4566 2011-05-31 Richard Guenther <rguenther@suse.de>
4568 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
4570 (forward_propagate_into_comparison_1): ... this.
4571 (forward_propagate_comparison): Rename to ...
4572 (forward_propagate_into_comparison): ... this. Split out
4573 real forward propagation code to ...
4574 (forward_propagate_comparison): ... this.
4575 (forward_propagate_into_gimple_cond): Remove looping.
4576 (forward_propagate_into_cond): Likewise.
4577 (simplify_not_neg_expr): Return whether we have done something.
4578 (simplify_gimple_switch): Likewise.
4579 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
4580 (ssa_forward_propagate_and_combine): ... this. Re-structure
4581 to do a forward forward-propagation walk on BBs and a backward
4582 stmt combining walk on BBs. Consistently re-scan changed statements.
4583 (pass_forwprop): Adjust.
4585 2011-05-30 Ian Lance Taylor <iant@google.com>
4587 * godump.c (go_format_type): Correct length of name added to
4588 obstack for anonymous field.
4590 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
4593 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
4594 part of the second operand is 0.
4596 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
4598 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
4599 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
4600 to memory for !TARGET_MEMORY_MISMATCH_STALL.
4601 (*movdf_internal_rex64): Do not penalize F->r alternative.
4602 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
4603 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
4604 when optimizing function for size. Do not move CONST_DOUBLEs
4605 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
4606 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
4607 SUBREGs. Do not check for MEM_P operands in the insn condition,
4608 check for ANY_FP_REGNO_P instead.
4609 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
4610 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
4612 * config/i386/i386.c (ix86_option_override_internal): Do not
4613 set TARGET_INTEGER_DFMODE_MOVES here.
4615 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
4618 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
4620 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4622 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
4623 DW_TAG_rvalue_reference_type even for
4624 -gdwarf-4 -fno-debug-types-section.
4626 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4628 PR tree-optimization/46728
4629 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
4630 (build_and_insert_binop): New.
4631 (gimple_expand_builtin_pow): Reorder args for
4632 build_and_insert_call; use build_and_insert_binop; add more
4633 optimizations for fractional exponents.
4635 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
4640 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
4642 * tree.h (struct tree_identifier): Inherit from tree_typed, not
4644 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
4645 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
4646 TS_BASE instead of TS_COMMON.
4647 * varasm.c (assemble_name): Remove assert.
4649 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
4651 * config.gcc: Keep obselete list sorted.
4653 2011-05-30 Jakub Jelinek <jakub@redhat.com>
4654 Eric Botcazou <ebotcazou@adacore.com>
4656 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
4657 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
4658 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
4659 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
4660 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
4662 2011-05-30 Richard Guenther <rguenther@suse.de>
4664 * gimple.c (gimple_types_compatible_p_1): Compare record
4665 and union type members properly.
4667 2011-05-30 Richard Guenther <rguenther@suse.de>
4669 PR tree-optimization/49210
4670 * ipa-split.c (split_function): Care for the case where the call
4671 result is not trivially convertible to the result holding variable.
4673 2011-05-30 Richard Guenther <rguenther@suse.de>
4675 PR tree-optimization/49218
4676 * tree-vrp.c (adjust_range_with_scev): Properly check whether
4679 2011-05-30 Richard Guenther <rguenther@suse.de>
4681 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
4682 New function split out from ...
4683 (forward_propagate_into_gimple_cond): ... here. Adjust.
4684 (forward_propagate_into_cond): Likewise.
4685 (forward_propagate_comparison): Also propagate into
4686 comparisons on assignment RHS. Change return value to
4687 behave similar to forward_propagate_into_cond.
4688 (tree_ssa_forward_propagate_single_use_vars): Handle
4689 strict-overflow warnings properly for forward_propagate_comparison.
4691 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4693 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
4695 * configure: Regenerate.
4697 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
4699 PR tree-optimization/49199
4700 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
4701 non-reduction operands are either defined in the loop or by induction.
4703 2011-05-29 Xinliang David Li <davidxl@google.com>
4705 * opts-global.c (handle_common_deferred_options): Handle new options.
4706 * passes.c (register_one_dump_file): Call register_pass_name.
4707 (execute_one_pass): Check explicit enable/disable flag.
4708 (passr_hash): New function.
4710 (register_pass_name): Ditto.
4711 (get_pass_by_name): Ditto.
4714 (enable_pass): Ditto.
4715 (disable_pass): Ditto.
4716 (is_pass_explicitly_enabled_or_disabled): Ditto.
4718 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
4720 * config/i386/i386.md (*movoi_internal_avx): Use
4721 standard_sse_constant_opcode for alternative 0.
4722 (*movti_internal_sse): Ditto.
4723 (*movti_internal_rex64): Use standard_sse_constant_opcode for
4725 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
4727 (*movsi_internal): Ditto.
4728 (*movdi_internal): Ditto. Add ssecvt type moves.
4730 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
4733 * rtlanal.c (simplify_subreg_regno): Adjust comment.
4735 2011-05-29 Jakub Jelinek <jakub@redhat.com>
4737 PR rtl-optimization/49095
4738 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
4739 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
4741 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4744 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
4745 recurse_p argument. Only follow register copies if it is set,
4746 and prevent mips_find_pic_call_symbol from recursing.
4747 (mips_find_pic_call_symbol): Add a recurse_p argument.
4748 Pass it to mips_pic_call_symbol_from_set.
4749 (mips_annotate_pic_calls): Update accordingly.
4751 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
4753 * emit-rtl.c (try_split): Use a loop to search for
4754 NOTE_INSN_CALL_ARG_LOCATIONs.
4756 2011-05-29 Richard Guenther <rguenther@suse.de>
4758 PR tree-optimization/49217
4759 * ipa-pure-const.c (propagate_pure_const): Fix typos.
4761 2011-05-28 Jan Hubicka <jh@suse.cz>
4763 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
4765 (string_slot_free): Remove
4766 (create_output_block): Initialize obstack.
4767 (destroy_output_block): Free obstack.
4768 (lto_string_index): Add PERSISTENT parameter; do not duplicate
4769 the string unless it needs to be added into the hash.
4770 (lto_output_string_with_length): Add persistent attribute;
4771 handle NULL strings.
4772 (lto_output_string): Add PERSISTENT parameter.
4773 (output_string_cst, output_identifier): Simplify.
4774 (lto_output_location_bitpack): Update.
4775 (lto_output_builtin_tree): Update.
4776 * lto-streamer.h (struct output_block): Add obstack.
4777 (lto_output_string, lto_output_string_with_length): Remove
4778 declarations; functions are static now.
4780 2011-05-28 Jan Hubicka <jh@suse.cz>
4782 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
4783 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
4784 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
4785 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
4786 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
4787 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
4788 unpack_ts_decl_with_vis_value_fields,
4789 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
4790 lto_get_builtin_tree): Use enum and variable length i/o.
4791 * basic-block.h (profile_status_d): Add PROFILE_LAST.
4792 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
4794 (bp_pack_enum, bp_unpack_enum): New macros.
4796 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4798 * genrecog.c: Remove redundant forward declarations.
4800 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4802 * config.gcc: Deprecate mips*-*-openbsd*.
4804 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
4807 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
4810 2011-05-27 Andrew Pinski <pinskia@gmail.com>
4813 * gengtype.c (vec_prefix_type): New function.
4814 (note_def_vec): Use vec_prefix_type and change the length
4815 attribute to be based on the prefix.
4816 * vec.c: Include coretypes.h before vec.h.
4817 (struct vec_prefix): Remove.
4818 (vec_gc_p_reserve): Change the offsetof to sizeof.
4819 (vec_gc_p_reserve_exact): Likewise.
4820 (vec_heap_p_reserve): Likewise.
4821 (vec_heap_p_reserve_exact): Likewise.
4822 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
4823 (vec_stack_p_reserve): Change the offsetof to sizeof.
4824 (vec_stack_p_reserve_exact): Likewise.
4825 * vec.h (struct vec_prefix): New struct definition.
4826 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
4827 (VEC_T_GTY(T,B)): Likewise.
4828 (DEF_VEC_FUNC_P(T)): Use prefix field.
4829 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
4830 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
4832 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4834 PR tree-optimization/46728
4835 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
4836 (powi_as_mults): Add gimple_set_location.
4837 (build_and_insert_call): New.
4838 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
4839 0.5, 0.25, 0.75, 1./3., or 1./6.
4841 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
4843 * doc/contrib.texi: Update copyright years.
4844 (Contributors): Add Zdenek Sojka.
4846 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
4848 * c-decl.c (c_push_function_context): Copy the current statement
4850 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
4851 (finish_struct): Call building_stmt_list_p instead of checking
4853 * c-parser.c (c_parser_postfix_expression): Likewise.
4854 * c-typeck.c (c_end_compound_stmt): Likewise.
4855 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
4856 * tree-iterator.c (stmt_list_cache): Change to a VEC.
4857 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
4858 (free_stmt_list): Likewise.
4859 * tree.h (struct tree_statement_list): Include typed_tree instead
4861 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
4862 as TS_TYPED instead of TS_COMMON.
4864 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4865 Uros Bizjak <ubizjak@gmail.com>
4867 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
4868 (HAVE_AS_IX86_TLSGDPTL): Define.
4869 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
4870 (HAVE_AS_IX86_TLSLDMPLT): Define.
4871 * configure: Regenerate.
4872 * config.in: Regenerate.
4873 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
4874 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
4875 TARGET_SUN_TLS, use @tlsgdplt or @plt.
4876 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
4877 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
4879 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
4881 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4883 * sched-int.h (struct _haifa_deps_insn_data): New members cond
4885 (INSN_COND, INSN_REVERSE_COND): New macros.
4886 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
4888 (sched_get_condition_with_rev): Cache the results, and look them up
4890 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
4891 are clobbered by the current insn.
4892 * target.def (exposed_pipline): New sched data hook.
4893 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
4894 * doc/tm.texi: Regenerate.
4896 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4898 PR tree-optimization/49170
4899 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
4902 2011-05-27 Richard Guenther <rguenther@suse.de>
4905 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
4908 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
4910 * haifa-sched.c (sched_scan_info): Remove.
4911 (schedule_block): Call sched_extend_luids rather than sched_init_luids
4913 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
4915 (sched_scan): Remove.
4916 (sched_extend_luids): Renamed from luids_extend_insn and no longer
4917 static. All callers changed.
4918 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
4919 static. All callers changed.
4920 (sched_init_luids): Remove all arguments except the first. All
4921 callers changed. Don't use sched_scan.
4922 (haifa_init_h_i_d): Likewise.
4923 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
4924 manually rather than using sched_init_luids. Likewise with
4925 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
4926 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
4927 rather than sched_init_luids with NULL args.
4928 * sel-sched-ir.c (new_insns): Remove variable.
4929 (sched_scan): New static function, previously in haifa-sched.c. Remove
4930 all arguments but the first two; all callers changed.
4931 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
4932 rather than sched_init_luids.
4933 (sel_init_bbs): Remove second argument. All callers changed.
4934 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
4935 with NULL arguments.
4936 (create_insn_rtx_from_pattern): Likewise.
4937 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
4938 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
4939 (sched_init_insn_luid, sched_extend_luids): Declare.
4940 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
4943 2011-05-27 Richard Guenther <rguenther@suse.de>
4946 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
4947 A CMP B ? (T) true : (T) false for non-integral types T again.
4949 2011-05-27 Jan Hubicka <jh@suse.cz>
4951 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
4952 so 0 means NULL string.
4953 (lto_output_string_with_length): ... here.
4954 (lto_output_string, output_string_cst, output_identifier): Update
4955 handling of NULL strings.
4956 (lto_output_location_bitpack): New function.
4957 (lto_output_location): Use it.
4958 (lto_output_tree_ref): Use output_record_start.
4959 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
4961 * lto-streamer-in.c (string_for_index): Break out from ...; offset
4963 (input_string_internal): ... here;
4964 (input_string_cst, input_identifier, lto_input_string): Update handling
4966 (lto_input_location_bitpack): New function
4967 (lto_input_location): Use it.
4968 (unpack_ts_type_common_value_fields): Pack align & alias in var len
4970 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
4971 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
4972 (bp_pack_value): Sanity check the value range.
4973 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
4975 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
4978 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
4980 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
4981 call_arg_location instructions down the floor.
4983 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
4985 PR rtl-optimization/49154
4986 * ira.c (setup_pressure_classes): Process class without sublcasses
4987 as a candidate for pressure classes.
4989 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
4991 PR rtl-optimization/48575
4992 * genrecog.c (position_type): New enum.
4993 (position): New structure.
4994 (decision): Use position structure instead of a string.
4995 (root_pos, peep2_insn_pos_list): New variables.
4996 (next_position, compare_positions): New functions.
4997 (new_decision): Use position structures instead of strings.
4998 (maybe_both_true): Likewise.
4999 (change_state): Likewise.
5000 (write_tree): Likewise.
5001 (make_insn_sequence): Likewise.
5003 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5005 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
5006 TS_BASE instead of TS_COMMON.
5007 (find_decls_types_r): Check for TS_TYPED structure before looking at
5009 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
5011 (BLOCK_CHAIN): Use new chain field.
5013 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
5015 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
5016 moves expensive on Power7 also.
5018 2011-05-26 Richard Guenther <rguenther@suse.de>
5020 * fold-const.c (fold_unary_loc): Remove bogus code.
5022 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
5024 * tree.h (struct tree_identifier): Inherit from tree_typed, not
5026 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
5027 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
5028 TS_BASE instead of TS_COMMON.
5029 * varasm.c (assemble_name): Remove assert.
5031 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5033 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
5035 * libgcc-std.ver: Delete file.
5037 2011-05-26 Richard Guenther <rguenther@suse.de>
5039 PR tree-optimization/48702
5040 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
5041 only when we know the base address is within bounds.
5042 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
5043 assume the base address of TARGET_MEM_REFs is in bounds.
5045 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5048 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
5049 declaration in TARGET_SOLARIS.
5051 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
5053 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
5054 The instruction is then expanded explicitly.
5055 (supported_compare): Callable instruction.
5056 (compare): Likewise.
5058 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5061 * gimplify.c (shortcut_cond_r): Don't special case
5062 COND_EXPRs if they have void type on one of their arms.
5064 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
5066 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
5067 to reduce duplication, and to achieve a slightly more logical order
5070 2011-05-26 Jakub Jelinek <jakub@redhat.com>
5072 PR tree-optimization/49161
5073 * tree-vrp.c (struct case_info): New type.
5074 (compare_case_labels): Sort case_info structs instead of
5075 trees, and not primarily by CASE_LABEL uids but by
5076 label_for_block indexes.
5077 (find_switch_asserts): Put case labels into struct case_info
5078 array instead of TREE_VEC, adjust sorting, compare label_for_block
5079 values instead of CASE_LABELs.
5081 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5083 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
5084 ("orndi3_neon"): Likewise.
5085 ("bic<mode>3_neon"): Likewise.
5087 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
5089 PR tree-optimization/49038
5090 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
5091 Ensure at least one epilogue iteration if required by data
5093 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5094 to mark loops that require peeling for gaps.
5095 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
5096 (vect_get_known_peeling_cost): Take peeling for gaps into
5098 (vect_transform_loop): Generate epilogue if required by data
5100 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
5101 loop as requiring an epilogue if there are gaps in the end of
5104 2011-05-25 Ian Lance Taylor <iant@google.com>
5106 * godump.c (go_format_type): Output the first field with a usable
5109 2011-05-25 Ian Lance Taylor <iant@google.com>
5111 * godump.c (go_format_type): Check for invalid type names, pointer
5112 target types, and struct field types.
5114 2011-05-25 Jason Merrill <jason@redhat.com>
5116 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
5118 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
5120 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
5122 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5124 * config/i386/i386.md (*movqi_extv_1)): Put back
5125 "register_operand" check in "type" calculation.
5126 (*movqi_extzv_2): Likewise.
5128 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5130 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
5132 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5135 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
5136 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
5137 __divxc3, __divtc3): Wrap definitions in #ifndef.
5139 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5142 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
5143 "register_operand" check and replace q_regs_operand with
5144 QIreg_operand in "type" calculation.
5145 (*movqi_extv_1): Likewise.
5146 (*movqi_extzv_2_rex64): Likewise.
5147 (*movqi_extzv_2): Likewise.
5149 * config/i386/predicates.md (QIreg_operand): New.
5151 2011-05-25 Richard Guenther <rguenther@suse.de>
5153 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5154 type-based offset disambiguation, streamline MEM_REF and
5155 TARGET_MEM_REF handling.
5157 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
5159 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
5160 (bdesc_special_args): Add pause intrinsic.
5162 * config/i386/i386.md (UNSPEC_PAUSE): New.
5165 * config/i386/ia32intrin.h (__pause): Likewise.
5167 * doc/extend.texi (X86 Built-in Functions): Add documentation for
5170 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5172 PR tree-optimization/46728
5173 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
5174 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
5176 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
5178 * tree.h (struct tree_exp): Inherit from struct tree_typed.
5179 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
5180 instead of TS_COMMON.
5182 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
5184 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
5185 LIBGCC2_GNU_PREFIX is defined.
5187 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
5188 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
5189 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
5190 __clz_tab): Define using __N.
5191 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
5192 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
5193 * target.def (libfunc_gnu_prefix): New hook.
5194 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
5195 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
5196 * doc/tm.texi: Regenerate.
5197 * system.h (LIBGCC2_GNU_PREFIX): Poison.
5198 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
5200 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
5201 (init_optabs): Likewise for the bswap libfuncs.
5202 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
5204 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
5205 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
5206 * libgcc-std.ver: Remove.
5207 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
5208 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
5210 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5211 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
5212 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
5213 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
5214 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
5215 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5216 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
5217 * config/fixed-bit.h (FIXED_OP): Define differently depending on
5218 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
5219 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
5221 2011-05-25 Jan Hubicka <jh@suse.cz>
5223 * lto-streamer-out.c (output_record_start): Use lto_output_enum
5224 (lto_output_tree): Use output_record_start.
5225 * lto-streamer-in.c (input_record_start): Use lto_input_enum
5226 (lto_get_pickled_tree): Use input_record_start.
5227 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
5228 (lto_value_range_error): New function.
5229 * lto-streamer.h (lto_value_range_error): Declare.
5230 (lto_output_int_in_range, lto_input_int_in_range): New functions.
5231 (lto_output_enum, lto_input_enum): New macros.
5233 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
5235 * common.opt (flag_stack_usage_info): New variable.
5236 (-Wstack-usage): New option.
5237 * doc/invoke.texi (Warning options): Document -Wstack-usage.
5238 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
5239 <OPT_fstack_usage>: Likewise.
5240 * toplev.c (output_stack_usage): Handle -Wstack-usage.
5241 * calls.c (expand_call): Test flag_stack_usage_info variable instead
5242 of flag_stack_usage.
5243 (emit_library_call_value_1): Likewise.
5244 * explow.c (allocate_dynamic_stack_space): Likewise.
5245 * function.c (instantiate_virtual_regs ): Likewise.
5246 (prepare_function_start): Likewise.
5247 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
5248 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
5249 * config/arm/arm.c (arm_expand_prologue): Likewise.
5250 (thumb1_expand_prologue): Likewise.
5251 * config/avr/avr.c (expand_prologue): Likewise.
5252 * config/i386/i386.c (ix86_expand_prologue): Likewise.
5253 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
5254 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
5255 * config/mips/mips.c (mips_expand_prologue): Likewise.
5256 * config/pa/pa.c (hppa_expand_prologue): Likewise.
5257 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
5258 * config/s390/s390.c (s390_emit_prologue): Likewise.
5259 * config/sh/sh.c (sh_expand_prologue): Likewise.
5260 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
5261 * config/spu/spu.c (spu_expand_prologue): Likewise.
5263 2011-05-25 Richard Guenther <rguenther@suse.de>
5265 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
5266 (gimple_canonical_types_compatible_p): Likewise.
5268 2011-05-25 Jan Hubicka <jh@suse.cz>
5271 * ipa.c (function_and_variable_visibility): Only add to same
5272 comdat group list if DECL_ONE_ONLY.
5274 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
5276 PR rtl-optimization/49014
5277 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
5279 2011-05-25 Jakub Jelinek <jakub@redhat.com>
5282 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
5284 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5286 PR rtl-optimization/48757
5287 * ira-build.c (loop_with_eh_edge_p): Rename to
5288 loop_with_complex_edge_p, check edges on complexity, make function
5290 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
5293 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5295 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
5296 force flag_ira_share_save_slots to 0.
5298 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5300 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
5301 (vt_initialize): Set PROLOGUE_BB unconditionally.
5302 Add block comment about CFA_BASE_RTX machinery.
5303 Reset FP_CFA_OFFSET to -1 on all invalid paths.
5304 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
5306 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
5309 * c-parser.c (c_parser_objc_class_instance_variables): More robust
5310 parsing of syntax error in ObjC instance variable lists. In
5311 particular, avoid an infinite loop if there is a stray ']'.
5312 Updated error message.
5314 2011-05-24 Ian Lance Taylor <iant@google.com>
5316 * godump.c (go_define): Don't accept a string immediately after
5319 2011-05-24 Ian Lance Taylor <iant@google.com>
5321 * godump.c (struct godump_container): Add invalid_hash field.
5322 (go_format_type): Return false if type is found in invalid_hash.
5323 (go_output_typedef): Add invalid type to invalid_hash.
5324 (go_finish): Create and delete invalid_hash.
5326 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5328 PR tree-optimization/46728
5329 * tree-ssa-math-opts.c (powi_table): New.
5330 (powi_lookup_cost): New.
5332 (powi_as_mults_1): New.
5333 (powi_as_mults): New.
5334 (gimple_expand_builtin_powi): New.
5335 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
5336 (gate_cse_sincos): Remove sincos/cexp restriction.
5338 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5341 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
5343 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
5344 * mips-tdump.c: Likewise.
5346 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
5349 * config/i386/driver-i386.c (host_detect_local_cpu): Always
5350 add -mno-XXX. Handle FMA.
5352 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5354 PR rtl-optimization/48633
5355 * ira-build.c (loop_with_eh_edge_p): New function.
5356 (mark_loops_for_removal): Use it.
5358 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
5360 PR rtl-optimization/48971
5361 * ira.c (setup_pressure_classes): Don't check register move cost
5362 for classes with one registers. Don't add pressure class if there
5363 is a pressure class with the same available hard registers.
5364 Check contains_reg_of_mode. Fix a typo in collecting
5365 temp_hard_regset. Ignore hard registers not belonging to a class.
5367 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
5370 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
5372 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
5373 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5375 PR gcov-profile/48845
5376 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
5378 2011-05-24 Richard Guenther <rguenther@suse.de>
5380 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
5381 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
5382 (gimple_types_compatible_p_1): Adjust.
5383 (iterative_hash_canonical_type): Do not bother about complete vs.
5385 (gimple_canonical_types_compatible_p): Likewise.
5387 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5389 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
5391 2011-05-24 Richard Guenther <rguenther@suse.de>
5394 * gimple.c (gimple_register_canonical_type): Revert
5396 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
5397 does not for a tree for the case where it matters. Cache
5398 pointer-type alias-sets.
5400 2011-05-24 Joseph Myers <joseph@codesourcery.com>
5402 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
5403 (OBJS): Remove options.o, opts-common.o and prefix.o.
5404 (OBJS-libcommon-target): New.
5405 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
5406 (BACKEND): Include libcommon-target.a.
5407 (MOSTLYCLEANFILES): Include libcommon-target.a.
5408 (libcommon-target.a): New.
5409 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
5412 2011-05-23 Joseph Myers <joseph@codesourcery.com>
5414 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
5415 parts of output shared with the driver.
5416 * optc-gen.awk: Don't generate parts of output not shared with the
5418 * opth-gen.awk: Remove GCC_DRIVER conditionals.
5419 * doc/options.texi (SourcerInclude): Mention options-save.c.
5420 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
5421 (OBJS): Add options-save.o.
5422 (options-save.c, options-save.o): New.
5423 (options.o): Update dependencies.
5424 (gcc-options.o): Remove.
5425 (mostlyclean): Remove options-save.c.
5427 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5430 * dbxout.c: Include cgraph.h.
5431 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
5432 and without value expr, return NULL if no varpool node exists for
5433 it or if it is not needed.
5434 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
5437 * c-decl.c (start_decl): Convert expr to void_type_node.
5439 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
5441 PR rtl-optimization/48826
5442 * emit-rtl.c (try_split): When splitting a call that is followed
5443 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
5445 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5447 * cfgexpand.c (expand_debug_expr): For unused non-addressable
5448 parameters passed in memory prefer using DECL_INCOMING_RTL over
5449 the pseudos it will be copied into.
5451 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
5454 * config/i386/i386.c (ix86_option_override_internal): Save the
5455 initial options after checking vzeroupper.
5457 2011-05-23 David Li <davidxl@google.com>
5459 PR tree-optimization/48988
5460 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5461 Initialize has_valid_pred for each pred chain.
5463 2011-05-23 Richard Guenther <rguenther@suse.de>
5465 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
5466 (iterative_hash_gimple_type): Always hash type names.
5468 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
5470 * c-typeck.c (build_function_call_vec): Tweak call to
5471 check_function_arguments.
5473 2011-05-23 Richard Guenther <rguenther@suse.de>
5475 PR tree-optimization/49115
5476 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
5477 is not necessarily carried out, do not claim it kills the ref.
5478 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5480 2011-05-23 Richard Guenther <rguenther@suse.de>
5483 * builtins.c (fold_builtin_memory_op): Be less restrictive about
5484 what pointer types we accept for folding.
5486 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5488 * gthr-gnat.c: Remove.
5489 * gthr-gnat.h: Remove.
5490 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
5491 * config/t-freebsd (LIB2ADDEH): Likewise.
5492 * config/t-linux (LIB2ADDEH): Likewise.
5493 * config/t-sol2 (LIB2ADDEH): Likewise.
5494 * config/ia64/t-vms (LIB2ADDEH): Likewise.
5495 * configure.ac (target_thread_file): Remove gnat handling.
5496 * configure: Regenerate.
5497 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
5499 2011-05-23 Tristan Gingold <gingold@adacore.com>
5500 Eric Botcazou <ebotcazou@adacore.com>
5502 * gcov.c (create_file_names): If no object directory is specified,
5503 keep the directory of the file.
5505 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5507 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
5508 * configure: Regenerate.
5510 2011-05-23 Jakub Jelinek <jakub@redhat.com>
5513 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
5514 failed and the comparison has a single bit signed type, use
5515 constm1_rtx instead of const1_rtx for true value.
5516 (do_store_flag): If ops->type is single bit signed type, disable
5517 signel bit test optimization and pass -1 instead of 1 as last
5518 parameter to emit_store_flag_force.
5520 2011-05-23 Tom de Vries <tom@codesourcery.com>
5523 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
5525 (infer_loop_bounds_from_undefined): Use new function.
5527 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5529 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
5530 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
5531 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
5533 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
5535 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5537 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
5538 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
5541 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
5543 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
5545 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5547 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
5548 UNSPEC_MOVE_PIC pattern.
5550 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
5552 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
5553 (sparc-*-rtems*): Likewise.
5554 (sparc64-*-elf*): Likewise.
5555 (sparc64-*-rtems*): Likewise.
5556 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
5557 * config/sparc/t-crtin: New file.
5558 * config/sparc/t-sol2 (crti.o): Delete rule.
5560 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
5561 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
5562 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
5563 (ENDFILE_SPEC): Add crtn.o.
5565 2011-05-22 Tom de Vries <tom@codesourcery.com>
5568 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
5569 CODE_CONTAINS_STRUCT (TS_COMMON).
5571 2011-05-22 Jakub Jelinek <jakub@redhat.com>
5574 * expmed.c (extract_fixed_bit_field): Test whether target can be used
5575 only after deciding which mode to use.
5577 2011-05-22 Tom de Vries <tom@codesourcery.com>
5580 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
5581 for call to get_shiftadd_cost.
5583 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
5586 * config/i386/cpuid.h (bit_MMXEXT): New define.
5588 2011-05-22 Nick Clifton <nickc@redhat.com>
5590 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
5591 initialisation of non-existant args[2] element. Use args[] array
5592 not arg[] array to pass arguments to build_function_type_list.
5594 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
5596 PR tree-optimization/49087
5597 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
5599 2011-05-21 Jason Merrill <jason@redhat.com>
5602 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
5603 static storage duration.
5605 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5607 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
5610 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
5612 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
5613 false if there are call-saved registers here...
5614 (sparc_can_use_return_insn_p): ...but here instead.
5615 (save_or_restore_regs): Fix thinko.
5616 (sparc_expand_prologue): Use current_function_is_leaf.
5617 (sparc_frame_pointer_required): Likewise.
5619 2011-05-21 Nick Clifton <nickc@redhat.com>
5622 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
5624 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
5626 * gengtype.c (walk_type): Implemented "atomic" GTY option.
5627 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
5629 2011-05-21 Joseph Myers <joseph@codesourcery.com>
5631 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
5632 * optc-gen.awk: Move common code to opt-read.awk.
5633 * opth-gen.awk: Likewise.
5634 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
5636 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
5638 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
5640 2011-05-20 Tom de Vries <tom@codesourcery.com>
5643 * tree-ssa-loop-ivopts.c: Include expmed.h.
5644 (get_shiftadd_cost): New function.
5645 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
5647 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5650 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
5651 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
5653 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5655 * Makefile.in: Update comment referring to $(OBJS-common).
5657 2011-05-20 Ian Lance Taylor <iant@google.com>
5659 * godump.c (go_output_typedef): Put enum constants in the macro
5660 hash table to avoid duplicate Go const definitions.
5662 2011-05-20 Joseph Myers <joseph@codesourcery.com>
5664 * Makefile.in (LIBDEPS): Add libcommon.a.
5666 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
5667 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
5668 pretty-print.o and version.o.
5669 (OBJS-libcommon): New.
5670 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
5671 (BACKEND): Add libcommon.a.
5672 (MOSTLYCLEANFILES): Likewise.
5674 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
5675 (cpp$(exeext)): Likewise.
5676 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
5677 pretty-print.o and input.o.
5678 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
5679 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
5681 (mips-tfile): Don't explicitly use version.o.
5682 (mips-tdump): Likewise.
5683 (gcov.o): Depend on $(DIAGNOSTIC_H).
5684 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
5685 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
5686 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
5687 * gcov-dump.c: Include intl.h and diagnostic.h.
5688 (main): Initialize diagnostics.
5689 * gcov.c: Include diagnostic.h.
5691 (main): Initialize diagnostics.
5692 * lto-wrapper.c: Include diagnostic.h.
5693 (main): Initialize diagnostics.
5695 2011-05-20 Michael Matz <matz@suse.de>
5697 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
5699 2011-05-20 Michael Matz <matz@suse.de>
5700 Richard Guenther <rguenther@suse.de>
5702 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
5703 use lto_streamer_cache_append directly instead of returning a VEC.
5704 (preload_common_node): Remove.
5705 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
5707 (lto_streamer_cache_create): Call lto_preload_common_nodes.
5709 2011-05-20 Richard Guenther <rguenther@suse.de>
5711 PR tree-optimization/49079
5712 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
5713 MEM_REFs correctly for the trailing array access detection.
5714 Special case constants the same way as decls for overall size
5717 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
5719 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
5722 2011-05-20 Jakub Jelinek <jakub@redhat.com>
5724 PR tree-optimization/49073
5725 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
5726 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
5727 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
5729 2011-05-20 Richard Guenther <rguenther@suse.de>
5732 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
5733 of pointer types the same way the middle-end does.
5735 2011-05-20 Richard Guenther <rguenther@suse.de>
5737 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
5738 or pointer-to chains. Delay all fixup to uniquify_nodes.
5740 2011-05-19 Quentin Neill <quentin.neill@amd.com>
5742 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
5743 (fma4_fmaddsub): Likewise
5745 2011-05-19 Jan Hubicka <jh@suse.cz>
5747 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
5748 (GIMPLE_TYPE_PAIR_SIZE): New macro.
5749 (type_pair_cache): New static var.
5750 (lookup_type_pair): Use fixed sized custom hash; make inline.
5751 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
5752 calls of lookup_type_pair.
5753 (print_gimple_types_stats): Remove cache stats.
5754 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
5757 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
5759 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
5760 when TARGET_RDRND is active.
5761 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
5762 Generate dummy SImode target register when target is NULL.
5764 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5766 * config/arm/arm-fpus.def: New.
5767 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
5769 * config/arm/arm-tables.opt: Regenerate.
5770 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
5771 (arm_option_override): Don't decode FPU name to string here.
5772 * config/arm/arm.opt (mfpu=): Use Enum.
5773 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
5774 Update dependencies.
5776 2011-05-19 Joseph Myers <joseph@codesourcery.com>
5778 * collect2.c: Include diagnostic.h.
5779 (fatal_perror, fatal, error, fancy_abort): Remove.
5780 (main): Set progname. Call xmalloc_set_program_name and
5781 diagnostic_initialize.
5782 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
5783 scan_libraries, resolve_lib_name): Call fatal_error instead of
5784 fatal and fatal_perror.
5785 * collect2.h (error, fatal, fatal_perror): Don't declare.
5786 * tlink.c: Include diagnostic-core.h.
5787 (recompile_files): Call fatal_error instead of fatal_perror.
5788 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
5789 pretty-print.o and input.o.
5790 (collect2.o, tlink.o): Update dependencies.
5792 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5794 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
5796 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5799 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
5800 COMDAT group syntax, both SPARC and x86 variants.
5801 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
5802 * configure: Regenerate.
5803 * config/sol2.h (TARGET_SOLARIS): Define.
5804 (PUSHSECTION_FORMAT): Remove.
5805 (SECTION_NAME_FORMAT): Define.
5806 * config/sol2.c: Include hashtab.h.
5807 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
5808 expansion, using SECTION_NAME_FORMAT.
5809 (solaris_comdat_htab): New variable.
5810 (struct comdat_entry): Define.
5811 (comdat_hash): New function.
5812 (comdat_eq): New function.
5813 (solaris_elf_asm_comdat_section): New function.
5814 (solaris_define_comdat_signature): New function.
5815 (solaris_code_end): New function.
5816 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
5817 (solaris_code_end): Declare.
5818 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
5819 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
5821 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
5822 Remove ATTRIBUTE_UNUSED.
5823 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
5824 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
5825 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
5826 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
5827 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
5828 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
5829 (PUSHSECTION_FORMAT): Remove.
5830 (SECTION_NAME_FORMAT): Redefine.
5832 2011-05-19 Kai Tietz <ktietz@redhat.com>
5834 * tree-cfg.c (verify_gimple_assign_binary): Barf on
5835 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
5836 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
5838 2011-05-19 Anatoly Sokolov <aesok@post.ru>
5839 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5841 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
5843 2011-05-19 Richard Guenther <rguenther@suse.de>
5846 * tree-object-size.c (addr_object_size): If the pointed-to
5847 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
5849 2011-05-19 Richard Guenther <rguenther@suse.de>
5851 * gimple.c (gimple_types_compatible_p_1): Compare names of
5852 the types themselves.
5853 (iterative_hash_gimple_type): And hash them that way.
5854 (gimple_register_type_1): If we register a main variant properly
5855 initialize the leader to ourselves.
5857 2011-05-19 Tom de Vries <tom@codesourcery.com>
5860 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
5861 get_loop_invariant_expr_id.
5862 (get_loop_invariant_expr_id): Use get_expr_id.
5863 (parm_decl_cost): New function.
5864 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
5865 Improve bound cost estimation. Use different inv_expr_id for elim and
5868 2011-05-19 Tom de Vries <tom@codesourcery.com>
5871 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
5872 cost_base.cost == 0.
5874 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
5877 * config/i386/sse.md
5878 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
5881 2011-05-18 Jakub Jelinek <jakub@redhat.com>
5883 PR tree-optimization/49039
5884 * tree-vrp.c (extract_range_from_binary_expr): For
5885 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
5886 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
5888 2011-05-18 Tom de Vries <tom@codesourcery.com>
5891 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
5893 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
5895 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
5896 (*tls_global_dynamic_64): Ditto.
5897 (*tls_local_dynamic_base_32_gnu): Ditto.
5898 (*tls_local_dynamic_base_64): Ditto.
5899 (tls_initial_exec_64_sun): Ditto.
5901 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
5903 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
5904 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
5906 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
5907 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
5908 * config/bfin/bfin.c (bfin_cpus): Add bf592.
5909 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5910 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
5911 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
5912 * config/bfin/elf.h (LIB_SPEC): Add bf592.
5914 2011-05-18 Joseph Myers <joseph@codesourcery.com>
5916 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
5917 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
5918 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
5919 target_thread_pointer, arm_structure_size_boundary, struct
5920 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
5921 struct abi_name, arm_all_abis): Remove.
5922 (arm_option_override) Don't process most enumerated option values here.
5923 Don't process target_fpe_name here. Work with integer not string for
5924 structure size boundary; use separate diagnostics for each case.
5925 * config/arm/arm.h (enum float_abi_type, enum
5926 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
5928 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
5929 arm_structure_size_boundary): Remove.
5930 * config/arm/arm.opt (mabi=): Use Enum and Init.
5931 (arm_abi_type): New Enum and EnumValue entries.
5932 (mfloat-abi=): Use Enum and Init.
5933 (float_abi_type): New Enum and EnumValue entries.
5934 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
5935 (mfp16-format=): Use Enum and Init.
5936 (arm_fp16_format_type): New Enum and EnumValue entries.
5937 (mstructure-size-boundary=): Use UInteger and Init.
5938 (mtp=): Use Enum and Init.
5939 (arm_tp_type): New Enum and EnumValue entries.
5941 2011-05-18 Richard Guenther <rguenther@suse.de>
5943 PR tree-optimization/49018
5944 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
5945 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
5946 gimple_has_side_effects.
5948 2011-05-18 Richard Guenther <rguenther@suse.de>
5950 * gimple.c (gimple_register_type_1): New function, split out from ...
5951 (gimple_register_type): ... here. Avoid infinite recursion.
5953 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5955 PR tree-optimization/41881
5956 * tree-vectorizer.h (struct _loop_vec_info): Add new field
5957 reduction_chains along with a macro for its access.
5958 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
5959 (destroy_loop_vec_info): Free reduction chains.
5960 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
5961 (vect_is_slp_reduction): New function.
5962 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
5963 (vect_create_epilog_for_reduction): Support SLP reduction chains.
5964 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
5965 definition types for reduction chains.
5966 (vect_supported_load_permutation_p): Don't allow permutations for
5968 (vect_analyze_slp_instance): Support reduction chains.
5969 (vect_analyze_slp): Try to build SLP instance from reduction chains.
5970 (vect_get_constant_vectors): Handle reduction chains.
5971 (vect_schedule_slp_instance): Mark the first statement of the
5972 reduction chain as reduction.
5974 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
5976 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
5977 names for group elements access.
5978 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
5979 reduction chains as well. Remove data reference and interleaving
5980 related words from the fields names.
5981 * tree-vect-loop.c (vect_transform_loop): Use new names for group
5983 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
5984 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
5985 vect_update_interleaving_chain, vect_same_range_drs,
5986 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
5987 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
5988 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
5989 vect_analyze_group_access, vect_analyze_data_ref_access,
5990 vect_create_data_ref_ptr, vect_transform_strided_load,
5991 vect_record_strided_load_vectors): Likewise.
5992 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
5993 vect_model_load_cost, vectorizable_store, vectorizable_load,
5994 vect_remove_stores, new_stmt_vec_info): Likewise.
5995 * tree-vect-slp.c (vect_build_slp_tree,
5996 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
5998 2011-05-18 Richard Guenther <rguenther@suse.de>
6001 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
6002 operand verification.
6003 (verify_gimple_assign_binary): Likewise.
6004 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
6005 to non-1-precision BOOLEAN_TYPEs.
6007 2011-05-18 Tom de Vries <tom@codesourcery.com>
6010 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
6012 2011-05-18 Jakub Jelinek <jakub@redhat.com>
6014 PR tree-optimization/49000
6015 * tree-ssa.c (execute_update_addresses_taken): Call
6016 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
6017 be rewritten and decl has been marked for renaming, reset
6020 2011-05-17 Joseph Myers <joseph@codesourcery.com>
6022 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
6023 enum_opts_set when testing if attributes have set -mfpmath=.
6025 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
6027 * config/mips/mips.c (mips_handle_option): Remove unused variable.
6029 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6031 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
6033 * tree-inline.c (maybe_inline_call_in_expr): Initialize
6034 id.transform_lang_insert_block with NULL.
6036 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
6038 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
6039 (output_fp_compare): Change args 3 and 4 to bool.
6040 (ix86_expand_call): Change arg 6 to bool.
6041 (ix86_attr_length_immediate_default): Change arg 2 to bool.
6042 (ix86_attr_length_vex_default): Change arg 3 to bool.
6043 * config/i386/i386.md: Update all uses.
6044 * config/i386/i386.c: Ditto.
6045 (ix86_flags_dependent): Change return type to bool.
6047 2011-05-17 Richard Guenther <rguenther@suse.de>
6049 * gimple.c (type_hash_pair_compare): Fix comparison.
6051 2011-05-17 Richard Guenther <rguenther@suse.de>
6053 * gimple.c (iterative_hash_gimple_type): Simplify singleton
6054 case some more, fix final hash value of the non-singleton case.
6056 2011-05-17 Richard Guenther <rguenther@suse.de>
6060 2011-05-16 Richard Guenther <rguenther@suse.de>
6062 * gimple.c (gimple_types_compatible_p_1): Use names of the
6063 type itself, not its main variant.
6064 (iterative_hash_gimple_type): Likewise.
6066 2011-05-17 Richard Guenther <rguenther@suse.de>
6068 * gimple.c (gimple_register_canonical_type): Use the main-variant
6069 leader for computing the canonical type.
6071 2011-05-17 Nick Clifton <nickc@redhat.com>
6073 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
6076 * config/rx/rx.md: Add peephole to remove redundant extensions
6078 (bitset_in_memory): Use rx_restricted_mem_operand.
6079 (bitinvert_in_memory): Likewise.
6080 (bitclr_in_memory): Likewise.
6082 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
6083 Nick Clifton <nickc@redhat.com>
6085 * config/rx/rx.md: Add peepholes to match a register move followed
6086 by a comparison of the moved register. Replace these with an
6087 addition of zero that does both actions in one instruction.
6089 2011-05-17 Jakub Jelinek <jakub@redhat.com>
6092 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
6093 predicate to allow CONST_INT.
6094 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
6096 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6098 * opts-common.c (opt_enum_arg_to_value): New.
6099 * opts.h (opt_enum_arg_to_value): Declare.
6100 * config/i386/i386.opt (fpmath): Remove.
6101 (mfpmath=): Use Enum, Init and Save.
6102 (fpmath_unit): New Enum and EnumValue entries.
6103 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
6104 name for function fpmath state.
6105 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
6106 * config/i386/i386.c: Include diagnostic.h.
6107 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
6108 (ix86_target_string): Take enum fpmath_unit value instead of string.
6109 (ix86_debug_options): Update call to ix86_target_string.
6110 (ix86_option_override_internal): Don't process fpmath strings here.
6111 (x86_function_specific_save, ix86_function_specific_restore):
6112 Don't handle fpmath state specially.
6113 (ix86_function_specific_print): Pass fpmath state to
6114 ix86_target_string instead of printing in this function.
6115 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
6116 Handle enum attributes.
6117 (IX86_ATTR_ENUM, ix86_opt_enum): New.
6118 (ix86_valid_target_attribute_tree): Update option_strings
6119 handling. Handle fpmath as enum option.
6120 (ix86_can_inline_p): Update field names for function fpmath state.
6121 (ix86_expand_builtin): Update call to ix86_target_string.
6122 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
6123 (ix86_fpmath): Remove.
6124 * config/i386/t-i386 (i386.o): Update dependencies.
6126 2011-05-16 Joseph Myers <joseph@codesourcery.com>
6128 PR preprocessor/48677
6129 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
6130 from decoded_options[0], not from itself.
6132 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
6134 * config/i386/constraints.md (z): New constraint.
6135 * config/i386/i386.c (c): New mode attribute.
6136 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
6137 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
6138 constraint for operand 0.
6139 (*call_vzeroupper): Ditto.
6140 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
6141 (*call_rex64_ms_sysv_vzeroupper): Ditto.
6142 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
6143 Use "lzm" constraint for operand 0.
6144 (*call_pop_vzeroupper): Ditto.
6145 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
6146 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
6147 constraint for operand 0.
6148 (*sibcall_vzeroupper): Ditto.
6149 (*sibcall_rex64_ms_sysv): Ditto.
6150 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
6151 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
6152 *sibcall_pop_1. Use "Uz" constraint for operand 0.
6153 (*sibcall_pop_vzeroupper): Ditto.
6154 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
6155 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
6156 mode iterator. Use "<c>zm" constraint for operand 1.
6157 (*call_value_vzeroupper): Ditto.
6158 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
6160 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
6161 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
6162 *call_value_pop_1. Use "lzm" constraint for operand 1.
6163 (*call_value_pop_vzeroupper): Ditto.
6164 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
6165 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
6166 mode iterator. Use "Uz" constraint for operand 1.
6167 (*sibcall_value_vzeroupper): Ditto.
6168 (*sibcall_value_rex64_ms_sysv): Ditto.
6169 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
6170 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
6171 constraint for operand 1.
6172 (*sibcall_value_pop_vzeroupper): Ditto.
6173 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
6174 and "z" constraint for operand 2.
6175 (*tls_global_dynamic_32_gnu): Ditto.
6176 (*tls_local_dynamic_base_32_gnu): Ditto.
6177 (*tls_local_dynamic_base_64): Ditto.
6178 (*tls_local_dynamic_32_once): Ditto.
6179 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
6181 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
6183 2011-05-16 Richard Guenther <rguenther@suse.de>
6185 * gimple.c (gimple_types_compatible_p_1): Use names of the
6186 type itself, not its main variant.
6187 (iterative_hash_gimple_type): Likewise.
6189 2011-05-16 Richard Guenther <rguenther@suse.de>
6191 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
6192 always visit pointer target and function result and argument types.
6194 2011-05-16 Jason Merrill <jason@redhat.com>
6197 * tree-inline.c (copy_statement_list): Put back recursion.
6199 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6203 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
6204 * config/avr/avr.md ("*ior<mode>qi.byte0",
6205 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
6207 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
6210 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
6211 register is needed for a function argument.
6213 2011-05-16 Richard Guenther <rguenther@suse.de>
6215 * gimple.c (struct type_hash_pair): New type.
6216 (type_hash_pair_compare): New function.
6217 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
6219 2011-05-16 Revital Eres <revital.eres@linaro.org>
6221 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
6223 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6225 * config/i386/i386.md (floating point move splitters): Fix
6226 usage of standard_80387_constant_p.
6227 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
6229 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
6231 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
6233 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
6235 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
6236 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
6237 (tree_ssa_lim_finalize): Likewise.
6239 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
6241 * config/i386/constraint.md (Yd, Yx): New register constraints.
6242 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
6243 Yd conditional register constraint.
6244 (*movtf_internal): Use standard_sse_constant_opcode.
6245 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
6246 Yx conditional register constraint.
6247 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
6248 Yd conditional register constraint. Use standard_sse_constant_p to
6249 check for valid SSE constants and call standard_sse_constant_opcode to
6251 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
6252 constants and call standard_sse_constant_opcode to output SSE insn.
6253 * config/i386/i386.c (ix86_option_ovverride_internal): Set
6254 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
6255 optimize_size is set.
6256 (standard_sse_constant_opcode): Output conditional AVX insn templates.
6258 2011-05-14 Tobias Burnus <burnus@net-b.de>
6260 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
6262 2011-05-13 Martin Jambor <mjambor@suse.cz>
6264 * ipa-prop.c (ipa_cst_from_jfunc): New function.
6265 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
6266 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
6267 (evaluate_conditions_for_ipcp_clone): Removed.
6268 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
6269 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
6270 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
6272 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
6274 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
6275 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
6276 lieu of MAY_HAVE_DEBUG_STMTS.
6277 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
6278 debug statements if !MAY_HAVE_DEBUG_STMTS.
6280 2011-05-13 Martin Thuresson <martint@google.com>
6282 PR gcov-profile/47793
6283 * libgcov.c (gcov_exit): Support relative profile paths.
6284 * doc/invoke.texi (-fprofile-dir): Update for above change.
6286 2011-05-13 Richard Guenther <rguenther@suse.de>
6288 * gimple.c (gimple_canonical_types_compatible_p): Do not use
6289 type-pair caching, do not compare hashes.
6291 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
6294 * tree-cfg.c (edge_to_cases_cleanup): Return true.
6295 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
6297 2011-05-13 Kai Tietz <ktietz@redhat.com>
6299 * gimplify.c (gimplify_expr): Make sure operand is boolified.
6300 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
6301 compatible type for TRUTH_NOT_EXPR.
6303 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
6305 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
6306 (ix86_hard_regno_mode_ok): Change return value to bool. Use
6307 can_create_pseudo_p ().
6309 2011-05-13 Richard Guenther <rguenther@suse.de>
6312 * gimple.c (iterative_hash_gimple_type): Revert change in
6313 pointer target and function result and argument hashing.
6315 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
6317 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
6318 (*movxf_internal_nointeger): Ditto.
6319 (*movdf_internal_rex64): Ditto.
6320 (*movdf_internal): Ditto.
6321 (*movdf_internal_nointeger): Ditto.
6322 (*movsf_internal): Ditto.
6323 (sincos splitters): Use can_create_pseudo ().
6325 2011-05-13 Joseph Myers <joseph@codesourcery.com>
6327 * config/i386/i386-opts.h: New.
6328 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
6329 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
6330 ix86_section_threshold): Remove.
6331 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
6332 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
6334 (ix86_option_override_internal): Don't decode strings for options
6335 other than -march=, -mtune= and -mfpmath=. Don't allow for
6336 __attribute__ uses in remaining diagnostics for options with
6337 string arguments. Don't check for integer arguments being negative.
6338 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
6339 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
6340 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
6341 ix86_branch_cost, ix86_section_threshold): Remove.
6342 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
6344 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
6346 (masm=): Use Enum and Init.
6347 (asm_dialect): New Enum and EnumValue entries.
6348 (mbranch-cost=): Use UInteger.
6349 (mlarge-data-threshold=): Use UInteger and Init.
6350 (mcmodel=): Use Enum and Init.
6351 (cmodel): New Enum and EnumValue entries.
6352 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
6353 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
6354 mregparm=): Use UInteger.
6355 (mstringop-strategy=): Use Enum and Init.
6356 (stringop_alg): New Enum and EnumValue entries.
6357 (mtls-dialect=): Use Enum and Init.
6358 (tls_dialect): New Enum and EnumValue entries.
6359 (mabi=): Use Enum and Init.
6360 (calling_abi): New Enum and EnumValue entries.
6361 (mveclibabi=): Use Enum and Init.
6362 (ix86_veclibabi): New Enum and EnumValue entries.
6364 2011-05-13 Nick Clifton <nickc@redhat.com>
6366 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
6367 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
6369 2011-05-13 Kai Tietz <ktietz@redhat.com>
6372 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
6373 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
6374 (gimple_boolify): Check for cast for boolean_type_node instead for
6377 2011-05-13 Richard Guenther <rguenther@suse.de>
6379 PR tree-optimization/48172
6380 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
6381 multiplying by number of iterations for equal step.
6382 (vect_create_cond_for_alias_checks): Likewise.
6384 2011-05-13 Andreas Schwab <schwab@redhat.com>
6386 * configure.ac: Use AS_HELP_STRING throughout.
6387 * configure: Regenerate.
6389 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
6391 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
6392 (ix86_emit_restore_regs_using_mov): Likewise.
6393 (ix86_emit_restore_sse_regs_using_mov): Likewise.
6395 2011-05-12 Anatoly Sokolov <aesok@post.ru>
6397 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
6398 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
6399 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
6400 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
6401 RTX_OK_FOR_OLO10_P): ...here.
6402 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
6405 2011-05-12 Kai Tietz <ktietz@redhat.com>
6407 * gimplify.c (gimple_boolify): Re-boolify expression
6408 arguments even if expression type is of kind BOOLEAN_TYPE.
6409 (gimplify_boolean_expr): Removed.
6410 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
6411 and XOR. Additional take care that we keep expression's type.
6412 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
6413 of TRUTH_AND|OR|XOR_EXPR.
6415 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6417 PR tree-optimization/48975
6418 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
6419 on all bbs here and free and clear ifc_bbs at the end.
6421 2011-05-12 Richard Guenther <rguenther@suse.de>
6423 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
6424 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
6425 until after simple checks.
6426 (gimple_types_compatible_p): Likewise.
6427 (iterative_hash_gimple_type): Always hash pointer targets
6428 and function return and argument types.
6429 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
6430 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
6431 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
6432 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
6433 completely in the simple compare section.
6434 (gimple_register_canonical_type): Query the cache again after
6437 2011-05-12 Richard Guenther <rguenther@suse.de>
6439 PR tree-optimization/48172
6440 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
6441 the number of iterations from the segment size calculation.
6442 (vect_create_cond_for_alias_checks): Adjust.
6444 2011-05-12 Jakub Jelinek <jakub@redhat.com>
6447 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
6448 if validate_subreg fails.
6450 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
6452 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
6453 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
6456 2011-05-12 DJ Delorie <dj@redhat.com>
6458 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
6459 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
6460 created builtin into rx_builtins array.
6461 (rx_builtin_decl): New function.
6462 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
6464 2011-05-12 DJ Delorie <dj@redhat.com>
6465 Nick Clifton <nickc@redhat.com>
6467 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
6468 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
6469 (rx_is_legitimate_address): Add pre-decrement and post-increment
6470 addressing in HImode and QImode. Fix test for out of range
6472 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
6473 (rx_align_for_label): Test label before extracting its usage count.
6474 (rx_adjust_insn_lengths): Fix selection of insn codes.
6475 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
6477 2011-05-11 Jason Merrill <jason@redhat.com>
6479 * tree.c (type_hash_canon): Use struct tree_type_non_common.
6481 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6483 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
6484 reindent the subsequent block.
6486 2011-05-11 Satoru Takabayashi <satorux@google.com>
6487 Paul Pluzhnikov <ppluzhnikov@google.com>
6489 * doc/install.texi (Configuration): Document --with-linker-hash-style.
6490 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
6491 * config.in: Add LINKER_HASH_STYLE.
6492 * configure.ac: Add --with-linker-hash-style.
6493 * configure: Regenerate.
6495 2011-05-11 Richard Guenther <rguenther@suse.de>
6498 * gimple.c (iterative_hash_canonical_type): Fix typo.
6500 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
6502 * config/i386/i386.c (legitimize_tls_address)
6503 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6504 expanders directly for TARGET_GNU2_TLS. Determine pic and
6505 __tls_get_addr symbol reference here. Update call to
6506 gen_tls_global_dynamic_{32,64} for added arguments.
6507 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
6508 expanders directly for TARGET_GNU2_TLS. Determine
6509 __tls_get_addr symbol reference here. Update call to
6510 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
6511 unique UNSPEC REG_EQUIV to libcall block.
6512 (ix86_tls_get_addr): Declare static.
6513 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
6514 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
6515 Do not determine pic and __tls_get_addr symbol reference here. Do not
6516 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
6517 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
6518 (tls_global_dynamic_64): Add operand 2. Do not determine
6519 __tls_get_addr symbol reference here. Do not call
6520 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
6521 (tls_local_dynamic_base64): Ditto for operand 1.
6523 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
6525 * function.c (expand_function_start): Initialize stack_check_probe_note
6526 only if the generic stack checking mechanism is used.
6528 2011-05-11 Richard Guenther <rguenther@suse.de>
6530 PR tree-optimization/15256
6531 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
6532 (A & B) | C, combine (A op CST1) op CST2.
6533 (tree_ssa_forward_propagate_single_use_vars): Only bother to
6534 visit assigns that have uses.
6536 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
6538 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
6539 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
6540 (unpack_ts_type_common_value_fields): ...this. Update comment.
6541 (unpack_value_fields): Adjust for renaming.
6542 (lto_input_ts_type_tree_pointers): Split into...
6543 (lto_input_ts_type_common_tree_pointer): ...this and...
6544 (lto_input_ts_type_non_common_tree_pointers): ...this.
6545 (lto_input_tree_pointers): Adjust for above split.
6546 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
6547 (pack_ts_type_common_value_fields): ...this. Update comment.
6548 (lto_output_ts_type_tree_pointers): Split into...
6549 (lto_output_ts_type_common_tree_pointers): ...this and...
6550 (lto_output_ts_type_non_common_tree_pointers): ...this.
6551 (lto_output_tree_pointers): Adjust for above split.
6552 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
6553 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
6554 * stor-layout.c (vector_type_mode): Adjust location of mode field.
6555 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
6557 (struct tree_type): Split into...
6558 (struct tree_type_common: ...this and...
6559 (struct tree_type_with_lang_specific): ...this and...
6560 (struct tree_type_non_common): ...this. Adjust accessor macros
6562 (TYPE_VALUES_RAW): Define.
6563 (union tree_node): Update for above changes.
6564 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
6566 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
6567 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
6568 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
6569 * treestructu.def (TS_TYPE): Remove.
6570 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
6573 2011-05-11 Jakub Jelinek <jakub@redhat.com>
6576 * tree-ssa.c (reset_debug_uses): New function.
6577 * tree-flow.h (reset_debug_uses): New prototype.
6578 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
6579 * tree-loop-distribution.c (generate_loops_for_partition): Call
6580 reset_debug_uses on the stmts that will be removed. Keep around
6581 all debug stmts, don't count them as bits in partition bitmap.
6582 (generate_builtin): Don't count debug stmts or labels as bits in
6585 2011-05-11 Richard Guenther <rguenther@suse.de>
6587 * gimple.c (gimple_type_hash_1): Merge with ...
6588 (gimple_type_hash): ... this.
6589 (gtc_visit): Remove mode parameter and simplify accordingly.
6590 (gimple_types_compatible_p_1): Likewise.
6591 (gimple_types_compatible_p): Likewise.
6592 (iterative_hash_gimple_type): Likewise.
6594 (gimple_type_eq): Adjust.
6596 2011-05-11 Revital Eres <revital.eres@linaro.org>
6598 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
6599 enters the branch create an anti edge in the opposite direction
6600 to prevent the creation of reg-moves.
6601 * modulo-sched.c: Adjust comment to reflect the fact we are
6602 scheduling closing branch.
6603 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
6604 (stage_count): New field in struct partial_schedule.
6605 (calculate_stage_count): New function.
6606 (normalize_sched_times): Rename to reset_sched_times and handle
6607 incrementing the sched time of the nodes by a constant value
6608 passed as parameter.
6609 (duplicate_insns_of_cycles): Skip closing branch.
6610 (sms_schedule_by_order): Schedule closing branch.
6611 (ps_insn_find_column): Handle closing branch.
6612 (sms_schedule): Call reset_sched_times and adjust the code to
6613 support scheduling of the closing branch.
6614 (ps_insert_empty_row): Update calls to normalize_sched_times
6615 and rotate_partial_schedule functions.
6617 2011-05-11 Richard Guenther <rguenther@suse.de>
6620 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
6622 2011-05-11 Joseph Myers <joseph@codesourcery.com>
6624 * opts.c (finish_options): Move warning settings from process_options.
6625 * toplev.c (process_options): Move warning settings to finish_options.
6627 2011-05-11 Richard Guenther <rguenther@suse.de>
6629 PR tree-optimization/18041
6630 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
6631 (simplify_bitwise_binary): ... this. Handle operand conversions
6632 by applying them to the result instead.
6633 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
6635 2011-05-11 Richard Guenther <rguenther@suse.de>
6637 * gimple.c (gimple_canonical_types_compatible_p): Split out
6638 from gimple_types_compatible_p and friends. Do not recurse
6639 to pointed-to types.
6640 (gimple_canonical_type_eq): Use it.
6641 (iterative_hash_canonical_type): Split out from
6642 iterative_hash_gimple_type and friends. Do not recurse
6643 to pointed-to types.
6644 (gimple_canonical_type_hash): Use it, allocate the hash here.
6646 2011-05-11 Revital Eres <revital.eres@linaro.org>
6648 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
6651 2011-05-11 Revital Eres <revital.eres@linaro.org>
6653 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
6654 instead of PREV_INSN.
6656 2011-05-11 Revital Eres <revital.eres@linaro.org>
6658 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
6659 * loop-doloop.c (doloop_condition_get): Likewise.
6660 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
6662 * config/arm/arm.md (*addsi3_compare0): Remove "*".
6664 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
6666 * tree.def (CASE_LABEL_EXPR): Add an operand.
6667 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
6669 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6671 * c-decl.c (c_override_global_bindings_to_false): Remove.
6672 (global_bindings_p): Don't check
6673 c_override_global_bindings_to_false.
6674 * c-tree.h (c_override_global_bindings_to_false): Remove.
6675 * c-typeck.c (composite_type): Don't set
6676 c_override_global_bindings_to_false.
6678 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6680 PR target/48857, 48495
6681 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
6683 (VSX_MOVE_MODE): Ditto.
6684 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
6685 VSX vector types. Add V2DImode.
6686 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
6687 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
6688 (MODES_TIEABLE_P): Ditto.
6690 * config/rs6000/rs6000.c (rs6000_emit_move): Use
6691 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
6693 (init_cumulative_args): Ditto.
6694 (rs6000_function_arg_boundary): Ditto.
6695 (rs6000_function_arg_advance_1): Ditto.
6696 (rs6000_function_arg): Ditto.
6697 (rs6000_function_ok_for_sibcall): Ditto.
6698 (emit_frame_save): Ditto.
6699 (rs6000_function_value): Ditto.
6700 (rs6000_libcall_value): Ditto.
6702 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6704 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
6705 i386/darwin-lib.h to $libgcc_tm_file.
6706 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
6708 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6710 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
6712 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6714 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
6715 * config/rs6000/rs6000-tables.opt: New file (generated).
6716 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
6717 rs6000/rs6000-tables.opt to extra_options.
6718 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
6719 * config/rs6000/rs6000.c (rs6000_select): Remove.
6720 (processor_target_table): Move contents to rs6000-cpus.def.
6721 (darwin_rs6000_override_options): Check
6722 global_options_set.x_rs6000_cpu_index instead of
6723 rs6000_select[1].string.
6724 (rs6000_option_override_internal): Likewise.
6725 (rs6000_handle_option): Don't assert that global structures are in
6726 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
6727 (rs6000_default_cpu): New variable.
6728 (rs6000_file_start): Set it instead of local default_cpu. Check
6729 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
6730 global_options_set.x_rs6000_tune_index instead of rs6000_select.
6731 (rs6000_darwin_file_start): Check rs6000_default_cpu and
6732 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
6733 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
6734 rs6000_select): Remove.
6735 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
6737 (mcpu=, mtune=): Use Var, Init, Enum and Save.
6738 * config/rs6000/t-rs6000
6739 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
6740 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6741 global_options_set.x_rs6000_cpu_index instead of
6742 rs6000_select[1].string.
6743 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
6744 global_options_set.x_rs6000_cpu_index instead of
6745 rs6000_select[1].string.
6747 2011-05-10 Joseph Myers <joseph@codesourcery.com>
6749 * config.gcc (libgcc_tm_file): Define instead of including files
6750 from ../../libgcc/config/ in tm_file.
6751 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
6752 * configure: Regenerate.
6753 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
6754 libgcc_tm.h, cs-libgcc_tm.h): New.
6755 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
6756 (clean): Remove libgcc_tm.h.
6757 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
6758 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
6759 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
6761 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
6764 * config/avr/avr.c (avr_ret_register): Return unsigned int
6766 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
6767 it to avr_libcall_value.
6768 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
6770 (avr_expand_binop_builtin): Ditto.
6771 (avr_expand_unop_builtin): Ditto.
6773 2011-05-10 DJ Delorie <dj@redhat.com>
6775 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
6776 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
6777 * config/rx/rx.c (rx_align_for_label): Add label and
6778 uses_threshold parameters. Do not align when the label is not
6780 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
6782 2011-05-10 Richard Guenther <rguenther@suse.de>
6784 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
6785 a series of conversions and apply foldings similar to what
6787 (tree_ssa_forward_propagate_single_use_vars): Call it.
6789 2011-05-10 Jakub Jelinek <jakub@redhat.com>
6791 PR tree-optimization/48611
6792 PR tree-optimization/48794
6793 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
6794 referenced from RESX or EH_DISPATCH arguments.
6797 * dfp.c (decimal_to_decnumber): Handle conversion from
6798 dconst{1,2,m1,half}.
6800 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6802 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
6803 for !flag_prefer_avx128.
6804 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
6806 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6808 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
6809 (fold_ternary_loc): Use expr_location_or.
6811 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
6814 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
6815 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
6816 Pmode and mem_mode is not VOIDmode.
6818 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
6820 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
6821 TYPE_QUAL_RESTRICT): Convert to enum.
6823 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6825 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
6826 (const_pow2_1_to_8_operand): Ditto.
6827 (const_pow2_1_to_128_operand): Ditto.
6828 (const_pow2_1_to_32768_operand): Ditto.
6829 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
6830 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
6831 in insn constraint to check integer value of operand 3.
6832 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
6834 (PINSR_MODE): New mode iterator.
6835 (sse2p4_1): New mode attribute.
6836 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
6837 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
6838 iterator. Use const_int_operand instead of
6839 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
6840 exact_log2 in insn constraint to check integer value of operand 3.
6842 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6844 * config/i386/sse.md (blendbits): Remove mode attribute.
6845 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6846 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6847 Check integer value of operand 3 in insn constraint.
6849 2011-05-09 Richard Guenther <rguenther@suse.de>
6851 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
6853 (lto_symtab_merge): Likewise. Do not register types here.
6854 (lto_symtab_merge_decls_2): Likewise.
6855 (lto_symtab_merge_decls_1): Likewise.
6856 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
6857 * gimple.c (enum gtc_mode): Declare.
6858 (gimple_types_compatible_p): Make static.
6860 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6862 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
6863 temporary register to match Pmode.
6865 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6867 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
6868 and *vec_concatv4si_1_avx.
6870 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
6872 PR rtl-optimization/48927
6873 * ira-conflicts.c (commutative_constraint_p): Use
6874 recog_data.alternative_enabled_p to disable alternatives where
6875 "enabled" attribute is false.
6876 (get_dup_num): Ditto.
6877 * ira-lives.c (single_reg_class): Ditto.
6878 (ira_implicitly_set_insn_hard_regs): Ditto.
6880 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
6882 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
6883 (dataflow_set_preserve_mem_locs): Likewise.
6885 2011-05-09 Philipp Thomas <pth@suse.de>
6887 * config/mep/mep.c (mep_validate_vliw): Syntax description
6888 should not be translated.
6890 2011-05-09 Joseph Myers <joseph@codesourcery.com>
6892 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
6893 * config/mips/mips-tables.opt: New file (generated).
6894 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
6895 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
6896 MIPS_ARCH_OPTION_NATIVE): Define.
6897 * config/mips/mips.c (mips_cpu_info_table): Move contents to
6899 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
6900 mips_parse_cpu): Remove.
6901 (mips_cpu_info_from_opt, mips_default_arch): New.
6902 (mips_handle_option): Don't assert that global structures are in
6903 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
6904 (mips_option_override): Use new variables and functions to set
6905 state of these options. Use strcmp to check for individual CPU names.
6906 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
6908 * config/mips/mips.opt (march=): Use ToLower and Enum.
6909 (mips): Use ToLower, Enum and Var.
6910 (mtune=): Use ToLower and Enum.
6911 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
6913 2011-05-08 Jan Hubicka <jh@suse.cz>
6915 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
6916 Arrange type pairs to be UID ordered.
6917 (gimple_lookup_type_leader): Make inline.
6919 2011-05-09 Nick Clifton <nickc@redhat.com>
6922 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
6926 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
6929 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
6931 * combine.c (simplify_comparison): Abstract out parts into...
6932 (simplify_compare_const): ... new function.
6933 (try_combine): Generalize parallel arithmetic/compare combining
6934 to call simplify_compare_const() and CANONICALIZE_COMPARE().
6936 2011-05-08 Jan Hubicka <jh@suse.cz>
6938 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
6939 (cgraph_create_virtual_clone): Call hooks once virtual clone
6941 * cgraph.h (cgraph_clone_node): Update prototype.
6942 * ipa-cp.c (ipcp_estimate_growth): Use
6943 estimate_ipcp_clone_size_and_time.
6944 * ipa-inline-transform.c (clone_inlined_nodes): Update.
6945 * lto-cgraph.c (input_node): Update.
6946 * ipa-inline.c (recursive_inlining): Update.
6947 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
6948 (evaluate_conditions_for_known_args): Break out from ...
6949 (evaluate_conditions_for_edge): ... here.
6950 (evaluate_conditions_for_ipcp_clone): New function.
6951 (inline_node_duplication_hook): Update clone summary based
6953 (estimate_callee_size_and_time): Rename to ...
6954 (estimate_node_size_and_time): take NODE instead of EDGE;
6955 take POSSIBLE_TRUTHS as argument.
6956 (estimate_callee_size_and_time): Update.
6957 (estimate_ipcp_clone_size_and_time): New function.
6958 (do_estimate_edge_time): Update.
6960 2011-05-08 Richard Guenther <rguenther@suse.de>
6964 * expmed.c (expand_shift_1): Compute adjusted constant shift
6967 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6969 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
6971 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
6973 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
6975 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
6977 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
6979 2011-05-07 Jan Hubicka <jh@suse.cz>
6981 * ipa-inline-transform.c (inline_call): Account when program size
6983 * ipa-inline.c (relative_time_benefit): New function.
6984 (edge_badness): Reorganize to be power 2 based; fix thinko when
6985 computing badness for negative growth; update comments to match
6986 reality; better dumps.
6988 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
6990 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
6991 type to bool and adjust comment.
6992 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
6993 (fold_mathfn_compare): Remove calls to global_bindings_p.
6994 (fold_inf_compare): Likewise.
6995 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
6996 * c-tree.h (global_bindings_p): Adjust prototype.
6997 * c-decl.c (global_bindings_p): Return bool and simplify.
6999 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
7001 PR tree-optimization/48837
7002 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
7003 when accumulator transformation is performed.
7005 2011-05-06 Jan Hubicka <jh@suse.cz>
7007 * i386.h (ix86_tune_indices): Add
7008 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
7009 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
7010 * i386.c (initial_ix86_tune_features): Add
7011 X86_SOFTARE_PREFETCHING_BENEFICIAL.
7012 (software_prefetching_beneficial_p): Remove predicate.
7013 (ix86_option_override_internal): Use new macro.
7015 2011-05-06 Jan Hubicka <jh@suse.cz>
7017 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
7019 2011-05-06 Jan Hubicka <jh@suse.cz>
7021 * cgraph.c (cgraph_add_thunk): Create real function node instead
7022 of alias node; finalize it and mark needed/reachale; arrange visibility
7023 to be right and add it into the corresponding same comdat group list.
7024 (dump_cgraph_node): Dump thunks.
7025 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
7026 cgraph_function_with_gimple_body_p,
7027 cgraph_first_function_with_gimple_body,
7028 cgraph_next_function_with_gimple_body): New functions.
7029 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
7031 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
7032 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7033 * cgraphunit.c (cgraph_finalize_function): Only look into possible
7034 devirtualization when optimizing.
7035 (verify_cgraph_node): Verify thunks.
7036 (cgraph_analyze_function): Analyze thunks.
7037 (cgraph_mark_functions_to_output): Output thunks only in combination
7038 with function they are assigned to.
7039 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
7040 alias into normal node.
7041 (assemble_thunks): New functoin.
7042 (cgraph_expand_function): Use it.
7043 * lto-cgraph.c (lto_output_node): Stream thunks.
7044 (input_overwrite_node): Stream in thunks.
7045 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
7046 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
7047 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
7048 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
7049 (inline_analyze_function): Do not care about thunk jump functions.
7050 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
7051 * ipa-prop.c (ipa_prop_write_jump_functions): Use
7052 cgraph_function_with_gimple_body_p.
7053 * passes.c (do_per_function_toporder): Use
7054 cgraph_function_with_gimple_body_p.
7055 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
7056 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
7057 (function_called_by_processed_nodes_p): Likewise.
7059 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7061 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
7062 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
7064 (mabi=): Replace with separate entries for mabi=altivec,
7065 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
7066 mabi=ieeelongdouble and mabi=ibmlongdouble.
7067 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
7068 check for -mabi=spe without SPE ABI support here.
7069 (rs6000_handle_option): Replace OPT_mabi_ handling with
7070 OPT_mabi_altivec and OPT_mabi_spe handling.
7072 2011-05-06 Cary Coutant <ccoutant@google.com>
7074 * dwarf2out.c (contains_subprogram_definition): New function.
7075 (should_move_die_to_comdat): Call it.
7077 2011-05-06 Jeff Law <law@redhat.com>
7079 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
7080 remove_ctrl_stmt_and_useless_edges.
7081 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
7082 (fixup_template_block, thread_single_edge): Likewise.
7083 (mark_threaded_blocks): Use THREAD_TARGET.
7085 2011-05-06 Alan Modra <amodra@gmail.com>
7088 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7089 const0_rtx as the arg to the dummy __tls_get_addr libcall.
7091 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7093 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
7094 constraint modifier to "r".
7096 2011-05-06 Joseph Myers <joseph@codesourcery.com>
7098 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
7099 fall through for OPT_mcmodel_.
7101 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7103 * config/s390/s390.c (s390_asm_trampoline_template): Comment
7105 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
7107 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7110 * config/arm/arm.opt (marm): Document it.
7111 (mthumb): Reject negative variant.
7113 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
7116 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7117 Fix typo in "ccvt" variable name.
7119 2011-05-06 Tristan Gingold <gingold@adacore.com>
7122 * config/vms/vms-ar.c (main): Remove cwd variable.
7124 2011-05-06 Jakub Jelinek <jakub@redhat.com>
7127 * var-tracking.c (prepare_call_arguments): Move else before #endif.
7129 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
7131 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
7132 * gimplify.c (gimplify_switch_expr): Likewise.
7133 * omp-low.c (expand_omp_sections): Likewise.
7134 * tree-eh.c (lower_try_finally_switch): Likewise.
7135 (lower_eh_dispatch): Likewise.
7136 * tree.h (build_case_label): Declare.
7137 * tree.c (build_case_label): Define.
7139 2011-05-05 Jason Merrill <jason@redhat.com>
7142 * tree-inline.c (copy_tree_r): Use copy_statement_list.
7143 (copy_statement_list): Don't recurse.
7144 * stor-layout.c (copy_self_referential_tree_r): Don't allow
7147 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7149 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
7150 through from -mfpu= handling.
7151 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
7153 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
7155 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
7158 2011-05-05 Steve Ellcey <sje@cup.hp.com>
7160 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
7162 (hppa[12]*-*-hpux11*): Ditto.
7163 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
7164 * config/ia64/hpux-unix2003.h: New.
7165 * config/pa/pa-hpux1131.opt: New.
7166 * config/pa/pa-hpux1131.h: New.
7167 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
7168 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
7169 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
7171 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7174 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
7175 instead of mode as 3rd argument to recursive call.
7176 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
7177 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
7179 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
7180 don't give up if mode is Pmode and mem_mode is not VOIDmode.
7181 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
7182 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
7184 2011-05-05 Julian Brown <julian@codesourcery.com>
7186 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
7187 parenthesis in D-register case.
7189 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7191 * opt-functions.awk (var_type_struct): Handle Enum options.
7192 * optc-gen.awk: Don't check range of variables of character type.
7193 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
7194 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
7195 rs6000_sdata_name, rs6000_explicit_options): Remove.
7196 (rs6000_option_override_internal): Check for -malign-power here.
7197 Use global_options_set instead of rs6000_explicit_options.
7198 (rs6000_parse_fpu_option): Remove.
7199 (rs6000_handle_option): Access variables via opts and opts_set
7200 pointers. Use error_at and warning_at. Add fall-through
7201 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
7202 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
7203 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
7204 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
7205 here. Don't use rs6000_parse_fpu_option.
7206 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
7207 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
7208 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
7210 (mspe): Use Var and Save.
7211 (mtraceback=): Use Enum and Var.
7212 (rs6000_traceback_type): New Enum and EnumValue entries.
7213 (mfloat-gprs=): Use Enum, Var and Save.
7214 (rs6000_float_gprs): New Enum and EnumValue entries.
7215 (mlong-double-): use Var and Save.
7216 (msched-costly-dep=, minsert-sched-nops=): Use Var.
7217 (malign-): Use Enum and Var.
7218 (rs6000_alignment_flags): New Enum and EnumValue entries.
7220 (fpu_type_t): New Enum and EnumValue entries.
7221 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7222 global_options_set instead of rs6000_explicit_options.
7223 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7224 global_options_set instead of rs6000_explicit_options.
7225 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7226 global_options_set instead of rs6000_explicit_options.
7227 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
7228 global_options_set instead of rs6000_explicit_options.
7229 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
7230 global_options_set instead of rs6000_explicit_options.
7231 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7232 global_options_set instead of rs6000_explicit_options.
7233 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
7235 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7236 global_options_set instead of rs6000_explicit_options.
7237 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
7238 (rs6000_cmodel): New Enum and EnumValue entries.
7239 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
7240 global_options_set instead of rs6000_explicit_options.
7241 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
7242 (mtls-size=): Use Enum and Var.
7243 (rs6000_tls_size): New Enum and EnumValue entries.
7245 2011-05-05 Michael Matz <matz@suse.de>
7247 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
7248 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
7249 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
7250 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
7251 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
7252 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
7253 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
7254 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
7255 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
7256 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
7257 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
7258 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
7259 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
7260 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
7261 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
7262 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
7264 2011-05-05 Richard Guenther <rguenther@suse.de>
7266 * expmed.c (expand_variable_shift): Rename to ...
7267 (expand_shift_1): ... this. Take an expanded shift amount.
7268 For rotates recurse directly not building trees for the shift amount.
7269 (expand_variable_shift): Wrap around expand_shift_1.
7270 (expand_shift): Adjust.
7272 2011-05-05 Jakub Jelinek <jakub@redhat.com>
7274 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
7276 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
7278 * tree.h (get_pending_sizes): Remove prototype.
7279 (put_pending_size): Likewise.
7280 (put_pending_sizes): Likewise.
7281 * stor-layout.c (pending_sizes): Delete.
7282 (get_pending_sizes): Likewise.
7283 (put_pending_size): Likewise.
7284 (put_pending_sizes): Likewise.
7285 (variable_size): Do not call put_pending_size and tidy up.
7286 * function.h (struct function): Remove dont_save_pending_sizes_p.
7287 * lto-streamer-in.c (input_function): Do not stream it.
7288 * lto-streamer-out.c (output_function): Likewise.
7289 * tree-inline.c (initialize_cfun): Do not copy it.
7290 * c-decl.c (store_parm_decls): Do not set it.
7291 * omp-low.c (create_task_copyfn): Likewise.
7292 * tree-optimize.c (tree_rest_of_compilation): Likewise.
7294 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
7296 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
7298 (*movdf_internal): Ditto.
7299 (*movdf_internal_nointeger): Ditto.
7300 (*movsf_internal): Ditto.
7302 2011-05-05 Joseph Myers <joseph@codesourcery.com>
7304 * c-decl.c (finish_decl): Don't call get_pending_sizes.
7305 (grokparm): Add parameter expr. Pass it to grokdeclarator.
7306 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
7307 (c_variable_size): Remove.
7308 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
7309 call put_pending_sizes.
7310 (get_parm_info): Add parameter expr. Use it to set
7311 arg_info->pending_sizes.
7312 (store_parm_decls): Use arg_info->pending_sizes instead or calling
7314 * c-parser.c (c_parser_parms_declarator): Update call to
7315 c_parser_parms_list_declarator.
7316 (c_parser_parms_list_declarator): Take parameter expr. Update
7317 call to push_parm_decl. Update recursive call. Don't call
7318 get_pending_sizes. Update calls to get_parm_info.
7319 (c_parser_objc_method_definition): Update calls to
7320 c_parser_objc_method_decl and objc_start_method_definition.
7321 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
7322 (c_parser_objc_method_decl): Add parameter expr. Update call to
7324 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
7325 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
7326 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
7328 2011-05-05 Michael Hope <michael.hope@linaro.org>
7331 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
7334 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7336 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
7337 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
7338 (spu_output_mi_thunk): New function.
7340 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7342 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
7343 targetm.asm_out.print_operand.
7344 * config/sol2.c: Include target.h.
7346 2011-05-04 Jan Hubicka <jh@suse.cz>
7348 * ipa-inline.c (reset_edge_caches): New function.
7349 (update_caller_keys): Add check_inlinablity_for; do not
7350 reset edge caches; remove now unnecesary loop.
7351 (update_callee_keys): Add comments; reset node_growth_cache of callee.
7352 (update_all_callee_keys): Likewise.
7353 (inline_small_functions): Sanity check cache; update code
7356 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
7358 PR rtl-optimization/47612
7359 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
7360 as the last insn of the sequence to be moved.
7362 2011-05-04 Tobias Burnus <burnus@net-b.de>
7365 * doc/invoke.texi (Ofast): Document that it
7366 enables Fortran's -fno-protect-parens.
7368 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7370 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
7372 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
7374 * stor-layout.c (variable_size): Do not issue errors.
7376 2011-05-04 Richard Guenther <rguenther@suse.de>
7378 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
7379 for array-ref indices.
7380 (tree_coverage_counter_addr): Likewise.
7381 (build_fn_info_type): Use size_int for index types.
7382 (build_gcov_info): Likewise.
7384 2011-05-04 Richard Guenther <rguenther@suse.de>
7386 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
7388 * c-typeck.c (really_start_incremental_init): Use bitsize_int
7389 for constructor indices.
7390 (push_init_level): Likewise.
7392 2011-05-04 Richard Guenther <rguenther@suse.de>
7394 * explow.c (promote_mode): Move variable declarations before code.
7396 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
7398 * tree.h (build_function_type_array): Declare.
7399 (build_varargs_function_type_array): Declare.
7400 (build_function_type_vec, build_varargs_function_type_vec): Define.
7401 * tree.c (build_function_type_array_1): New function.
7402 (build_function_type_array): New function.
7403 (build_varargs_function_type_array): New function.
7405 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
7407 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
7408 before setting STMT_VINFO_TYPE.
7410 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7412 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
7413 instead of spu_pass_by_reference.
7415 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7417 * calls.c (emit_library_call_value_1): Invoke
7418 promote_function_mode hook on libcall arguments.
7419 * explow.c (promote_function_mode, promote_mode): Handle TYPE
7420 argument being NULL.
7421 * targhooks.c (default_promote_function_mode): Lisewise.
7422 * config/s390/s390.c (s390_promote_function_mode): Likewise.
7423 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
7425 * doc/tm.texi: Document that TYPE argument might be NULL.
7427 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7429 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
7431 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7434 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
7436 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7438 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
7439 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
7441 * mips-tfile.c: ... here.
7442 Don't include coretypes.h, tm.h, filenames.h.
7443 (saber_stop): Remove definition and all calls.
7444 [__SABER__]: Remove.
7445 (__LINE__): Remove default.
7446 (Size_t, Ptrdiff_t): Remove definitions.
7447 Replace by size_t, ptrdiff_t.
7448 [!MIPS_DEBUGGING_INFO]: Remove.
7449 (SHASH_SIZE, THASH_SIZE): Remove defaults.
7450 (progname): Add const.
7452 Replace all uses by static.
7453 (ALIGN_SYMTABLE_OFFSET): Remove default.
7454 * mips-tdump.c: Don't include coretypes.h, tm.h.
7455 Remove !MIPS_IS_STAB guard.
7456 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
7457 $(TM_H), filenames.h dependencies.
7458 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
7460 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7463 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
7464 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
7466 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7469 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
7470 account and save/restore RETS.
7471 (PROFILE_BEFORE_PROLOGUE): Define.
7472 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
7473 the push insn to use predecrement.
7475 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
7478 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
7480 2011-05-04 Nick Clifton <nickc@redhat.com>
7482 * config/mn10300/mn10300.c: Include cfgloop.h.
7484 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
7485 Lcc or a FLcc insn into the instruction stream.
7486 (mn10300_block_contains_call): New function. Returns true if the
7487 given basic block contains a CALL insn.
7488 (mn10300_loop_contains_call_insn): New function. Returns true if
7489 the given loop contains a CALL insn.
7490 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
7491 to use the SETLB and Lcc or FLcc insns.
7492 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
7493 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
7494 * config/mn10300/mn10300.opt (msetlb): New option. Used to
7495 disable the SETLB optimization.
7496 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
7497 __SETLB__ or __NO_SETLB__.
7498 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
7499 (movsf_internal): Handle MDR register.
7500 (cmpsi): Make visible.
7501 (setlb): New pattern.
7503 (FLcc): New pattern.
7505 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
7508 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
7509 for reg<->xmm moves.
7510 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
7511 (vec_concatv2di_rex64_sse): Ditto.
7512 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
7513 (*vec_extractv2di_1_rex64): Ditto.
7516 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7518 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7520 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
7522 2011-05-04 Richard Guenther <rguenther@suse.de>
7524 * tree.h (int_const_binop): Remove notrunc argument.
7525 * fold-const.c (int_const_binop): Remove notrunc argument. Always
7526 create integer constants that are properly truncated.
7527 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
7528 (const_binop): Remove zero notrunc argument to int_const_binop.
7529 (size_binop_loc): Likewise.
7530 (fold_div_compare): Likewise.
7531 (maybe_canonicalize_comparison_1): Likewise.
7532 (fold_comparison): Likewise.
7533 (fold_binary_loc): Likewise.
7534 (multiple_of_p): Likewise.
7535 * expr.c (store_constructor): Likewise.
7536 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
7537 (maybe_fold_stmt_addition): Likewise.
7538 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
7539 * stor-layout.c (layout_type): Likewise.
7540 * tree-data-ref.c (tree_fold_divides_p): Likewise.
7541 * tree-sra.c (build_ref_for_offset): Likewise.
7542 (build_user_friendly_ref_for_offset): Likewise.
7543 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
7544 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
7545 * tree-ssa-loop-niter.c (inverse): Likewise.
7546 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7547 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
7548 * tree-switch-conversion.c (check_range): Likewise.
7549 (build_constructors): Likewise.
7550 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
7551 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
7552 (extract_range_from_assert): Likewise.
7553 (vrp_int_const_binop): Likewise.
7554 (extract_range_from_binary_expr): Likewise.
7555 (extract_range_from_unary_expr): Likewise.
7556 (check_array_ref): Likewise.
7557 (find_case_label_range): Likewise.
7558 (simplify_div_or_mod_using_ranges): Likewise.
7559 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
7560 comparing case labels for merging.
7562 2011-05-03 Mark Wielaard <mjw@redhat.com>
7564 * dwarf2out.c (debug_str_hash_forced): Removed.
7565 (gen_label_for_indirect_string): Removed.
7566 (get_debug_string_label): Removed.
7567 (AT_string_form): Generate label directly.
7568 (output_indirect_string): Test indirect_string_node for
7569 DW_FORM_strp instead of checking label and refcount.
7570 (prune_indirect_string): Removed.
7571 (prune_unused_types): Don't check debug_str_hash_forced or
7572 call prune_indirect_string.
7574 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7577 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
7579 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
7583 * combine.c (try_combine): Skip debug insns at m_split tests.
7585 2011-04-26 Mark Wielaard <mjw@redhat.com>
7588 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
7589 when info_section_emitted.
7591 2011-05-03 Joseph Myers <joseph@codesourcery.com>
7593 * config/mips/mips-opts.h: New.
7594 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
7596 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
7597 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
7598 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
7600 * config/mips/mips.h (enum mips_code_readable_setting): Move to
7602 (mips_abi, mips_code_readable): Don't declare.
7603 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
7604 (mabi=): Use Enum and Var.
7605 (mips_abi): New Enum and EnumValue entries.
7606 (mcode-readable=): Use Enum and Var.
7607 (mips_code_readable_setting): New Enum and EnumValue entries.
7608 (mr10k-cache-barrier=): Use Enum and Var.
7609 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
7611 2011-05-03 Jan Hubicka <jh@suse.cz>
7613 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
7614 replace hash by pointer map.
7615 (cgraph_node_set_element_def, cgraph_node_set_element,
7616 const_cgraph_node_set_element, varpool_node_set_element_def,
7617 varpool_node_set_element, const_varpool_node_set_element): Remove.
7618 (free_cgraph_node_set, free_varpool_node_set): New function.
7619 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
7620 * tree-emutls.c: Free varpool node set.
7621 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
7622 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7623 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
7624 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7625 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
7626 Move here from ipa.c; implement using pointer_map
7627 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
7628 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
7629 debug_cgraph_node_set, varpool_node_set_new,
7630 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
7631 dump_varpool_node_set, debug_varpool_node_set):
7632 Move to ipa-uitls.c.
7633 * passes.c (ipa_write_summaries): Update.
7635 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7637 From Mike Frysinger:
7638 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
7639 bf542/bf544/bf547/bf548/bf549.
7641 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7643 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
7645 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7648 * config/bfin/bfin.md (MOVCC): New mode_macro.
7649 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
7650 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
7651 comments from generated assembly.
7653 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7656 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
7657 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
7658 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
7659 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
7660 * config/bfin/lib1funcs.asm (___muldi3): New function.
7662 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7664 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
7665 build_function_type_list instead of build_function_type.
7666 Rearrange initialization of `args' to do so.
7668 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7670 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
7671 instead of build_function_type.
7673 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7675 * config/rs6000/rs6000.c (spe_init_builtins): Call
7676 build_function_type_list instead of build_function_type.
7677 (paired_init_builtins, altivec_init_builtins): Likewise.
7678 (builtin_function_type): Likewise.
7680 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7682 * config/sh/sh.c (sh_media_init_builtins): Call
7683 build_function_type_list instead of build_function_type.
7685 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7687 * config/sparc/sparc.c (sparc_file_end): Call
7688 build_function_type_list instead of build_function_type.
7690 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7692 * config/alpha/alpha.c (alpha_init_builtins): Call
7693 build_function_type_list instead of build_function_type.
7695 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7697 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
7698 build_function_type_list instead of build_function_type.
7700 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7702 * config/iq2000/i2000.c (iq2000_init_builtins): Call
7703 build_function_type_list instead of build_function_type.
7704 Delete `endlink' variable.
7706 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7708 * config/avr/avr.c (avr_init_builtins): Call
7709 build_function_type_list instead of build_function_type.
7711 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7713 * config/picochip/picochip.c (picochip_init_builtins): Call
7714 build_function_type_list instead of build_function_type.
7715 Delete `endlink' variable.
7717 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
7719 * config/bfin/bfin.c (bfin_init_builtins): Call
7720 build_function_type_list instead of build_function_type.
7722 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7725 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
7726 that's not CONST_INT. Seemingly redundant check is due to PR39768.
7728 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7731 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
7732 libbffastfp overrides libgcc when -mfast-fp.
7734 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7736 Originally from Bernd Schmidt
7737 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
7738 * config/bfin/bfin.c (override_options): Test it and error if
7741 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
7743 Originally From Bernd Schmidt
7744 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
7747 2011-05-03 Jeff Law <law@redhat.com>
7749 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
7750 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
7751 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
7752 than accessing AUX field directly. Free the AUX field before
7754 (thread_block, thread_through_loop_header): Likewise.
7755 (thread_single_edge, mark_threaded_blocks): Likewise.
7756 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
7757 (register_jump_thread): Do not attempt to thread to a NULL edge.
7759 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7761 * function.c (init_function_start): Call decide_function_section.
7762 * varasm.c (decide_function_section): New function.
7763 (assemble_start_function): When not using
7764 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
7765 or first_function_block_is_cold.
7766 * rtl.h (decide_function_section): Declare.
7768 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
7769 Jakub Jelinek <jakub@redhat.com>
7772 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
7773 only succeed if req_mode is the same as set_mode.
7775 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
7777 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
7778 * genemit.c (gen_exp): Handle RETURN.
7779 * emit-rtl.c (verify_rtx_sharing): Likewise.
7780 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
7781 * rtl.c (copy_rtx): RETURN is shared.
7782 * rtl.h (enum global_rtl_index): Add GR_RETURN.
7784 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
7785 * config/s390/s390.c (s390_emit_epilogue): Likewise.
7786 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
7787 * config/cris/cris.c (cris_expand_return): Likewise.
7788 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
7789 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
7790 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
7791 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
7792 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
7794 * config/v850/v850.c (expand_epilogue): Likewise.
7795 * config/bfin/bfin.c (bfin_expand_call): Likewise.
7796 * config/arm/arm.md (epilogue): Likewise.
7797 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
7798 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
7799 variable to ret_reg.
7801 2011-05-03 Richard Guenther <rguenther@suse.de>
7804 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
7805 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
7806 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7808 2011-05-03 Richard Guenther <rguenther@suse.de>
7810 * c-decl.c (grokdeclarator): Instead of looking at
7811 TREE_OVERFLOW check if the constant fits in the index type.
7813 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7815 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
7816 (vec_store_lanes<mode><mode>): Likewise.
7818 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7820 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
7821 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
7822 convert_optab_index values.
7823 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
7824 * genopinit.c (optabs): Initialize the new optabs.
7825 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
7826 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
7827 (expand_STORE_LANES): New functions.
7828 * tree.h (build_array_type_nelts): Declare.
7829 * tree.c (build_array_type_nelts): New function.
7830 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
7831 (vect_model_load_cost): Likewise.
7832 (vect_store_lanes_supported, vect_load_lanes_supported)
7833 (vect_record_strided_load_vectors): Declare.
7834 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
7835 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
7836 (vect_transform_strided_load): Split out statement recording into...
7837 (vect_record_strided_load_vectors): ...this new function.
7838 * tree-vect-stmts.c (create_vector_array, read_vector_array)
7839 (write_vector_array, create_array_ref): New functions.
7840 (vect_model_store_cost): Add store_lanes_p argument.
7841 (vect_model_load_cost): Add load_lanes_p argument.
7842 (vectorizable_store): Try to use store-lanes functions for
7844 (vectorizable_load): Likewise load-lanes and loads.
7845 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
7846 to vect_model_store_cost.
7847 (vect_build_slp_tree): Likewise vect_model_load_cost.
7849 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
7851 * hooks.h (hook_bool_mode_uhwi_false): Declare.
7852 * hooks.c (hook_bool_mode_uhwi_false): New function.
7853 * target.def (array_mode_supported_p): New hook.
7854 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
7855 * doc/tm.texi: Regenerate.
7856 * stor-layout.c (mode_for_array): New function.
7857 (layout_type): Use it.
7858 * config/arm/arm.c (arm_array_mode_supported_p): New function.
7859 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
7861 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
7864 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
7865 for -fstack-check if the size to allocate is negative.
7867 2011-05-02 Lawrence Crowl <crowl@google.com>
7869 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
7870 (timevar_cond_start): New for starting a timer only when it is not
7872 (timevar_cond_stop): New for stopping a timer when it was not already
7875 * timevar.c (timevar_stop): Enable start/stop timers to start again.
7876 (timevar_cond_start): New as above.
7877 (timevar_cond_stop): New as above.
7879 * timevar.def: Add start/stop timers for compiler phases,
7880 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
7881 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
7882 and TV_PHASE_FINALIZE.
7883 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
7884 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
7885 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
7886 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
7887 Make unused TV_OVERLOAD into a start/stop timer.
7889 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
7890 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
7891 to indicate that they are start/stop timers.
7893 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
7894 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
7895 Move initialization to do_compile.
7896 (do_compile): Add initialization from above.
7897 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
7899 * c-decl.c (c_write_global_declarations): Add start/stop of
7900 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
7902 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
7903 or TV_PARSE_INLINE, as appropriate.
7904 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
7905 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
7907 2011-05-02 Jason Merrill <jason@redhat.com>
7910 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
7912 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
7915 * c-decl.c (finish_decl): Only create a composite if the types are
7918 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7920 * config/fr30/fr30-protos.h (Mmode): Don't define.
7921 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
7922 definition where used.
7923 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
7924 define. Expand definitions where used.
7925 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
7926 Expand definitions where used.
7927 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
7928 rx_function_arg, rx_function_arg_advance,
7929 rx_function_arg_boundary): Expand definitions of those macros.
7930 * config/v850/v850-protos.h (Mmode): Don't define. Expand
7931 definition where used.
7933 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
7935 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
7937 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
7938 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
7939 with *movv2sf_internal_rex64_avx.
7940 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
7941 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
7942 Use %v prefix in insn mnemonic to handle TARGET_AVX.
7943 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
7944 "vex" in "prefix" attribute calculation.
7945 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
7947 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
7950 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
7951 inputs match the output.
7953 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
7956 * config/m68k/m68k.c (m68k_expand_prologue): Set
7957 current_function_static_stack_size.
7959 2011-05-02 Jan Hubicka <jh@suse.cz>
7961 * lto-streamer.c (lto_streamer_cache_insert_1,
7962 lto_streamer_cache_lookup, lto_streamer_cache_create,
7963 lto_streamer_cache_delete): Use pointer map instead of hashtable.
7964 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
7966 2011-05-02 Joseph Myers <joseph@codesourcery.com>
7968 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
7969 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
7970 config/m68k/t-opts: New files.
7971 * config/m68k/m68k-tables.opt: New file (generated).
7972 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
7973 extra_options and m68k/t-opts to tmake_file.
7974 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
7975 (all_isas): Initialize using m68k-isas.def.
7976 (all_microarchs): Initialize using m68k-microarchs.def.
7977 (m68k_find_selection): Remove.
7978 (m68k_handle_option): Don't assert that global structures are in
7979 use. Use error_at. Access variables via opts pointer. Don't
7980 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
7981 directly for -m68020-40 and -m68020-60.
7982 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
7983 m68k_tune_entry here.
7984 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
7986 (m68k_library_id_string): Remove declaration.
7987 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
7988 (m68k_library_id_string): New Variable.
7989 (march=, mcpu=, mtune=): Use Enum and Var.
7991 2011-05-02 Richard Guenther <rguenther@suse.de>
7993 * varasm.c (output_constructor_regular_field): Compute zero-based
7994 index with double-ints. Make sure to ICE instead of producing
7996 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
7997 in asserts. Properly use a signed type.
7999 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
8001 * config/i386/sse.md (V): New mode iterator.
8002 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
8004 (V_256): Rename from AVX256MODE.
8005 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
8006 condition to all users.
8008 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
8009 condition to all users.
8010 (VF_128): Make V4SF mode unconditional.
8011 (VF_256): Rename from AVX256MODEF2P.
8012 (VI4F_128): Rename from SSEMODE4S.
8013 (VI8F_128): Rename from SSEMODE2D.
8014 (VI4F_256): Rename from AVX256MODE8P.
8015 (VI8F_256): Rename from AVX256MODE4P.
8016 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
8017 (ssescalarmodesuffix): Remove SF and DF modes.
8018 (SSEMODE124): Remove.
8019 (SSEMODE1248): Ditto.
8020 (SSEMODEF2P): Ditto.
8021 (AVXMODEF2P): Ditto.
8022 (AVXMODEFDP): Ditto.
8023 (AVXMODEFSP): Ditto.
8024 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
8026 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
8028 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
8029 xop_pcmov_<mode>256. Use V mode iterator.
8031 Adjust RTX patterns globally for renamed mode attributes.
8033 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8035 * haifa-sched.c (sched_emit_insn): Emit insn before first
8036 non-scheduled insn. Inform back-end about new insn. Add
8037 new insn to scheduled_insns list.
8039 2011-05-02 Richard Guenther <rguenther@suse.de>
8041 PR tree-optimization/48822
8042 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
8043 (process_scc): Indicate which iteration we start.
8045 2011-05-02 Jan Hubicka <jh@suse.cz>
8047 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
8048 (lto_section_overrun): New.
8049 * lto-section-out.c (append_block): Rename to ...
8050 (lto_append_block): ... this one; export.
8051 (lto_output_1_stream): Move lto lto-streamer.h
8052 (lto_output_data_stream): Update.
8053 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
8054 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
8057 2011-05-02 Richard Guenther <rguenther@suse.de>
8059 * tree.c (tree_code_counts): New global array.
8060 (record_node_allocation_statistics): Count individual tree codes.
8061 (dump_tree_statistics): Dump individual code stats.
8063 2011-05-01 Jan Hubicka <jh@suse.cz>
8065 * ipa-inline.c (caller_growth_limits): Fix thinko when
8066 looking for largest stack frame.
8067 * ipa-inline.h (dump_inline_summary): Declare.
8068 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
8070 (dump_inline_summary): Export.
8071 (debug_inline_summary): Declare as DEBUG_FUNCTION.
8073 2011-05-01 Anatoly Sokolov <aesok@post.ru>
8075 * reginfo.c (memory_move_cost): Change rclass argument type form
8076 'enum reg_class' to reg_class_t.
8077 * reload.h (memory_move_cost): Update prototype.
8078 * postreload.c reload_cse_simplify_set): Change type dclass var to
8080 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
8082 (ira_allocate_and_set_costs): Change aclass argument type form
8083 'enum reg_class' to reg_class_t.
8084 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
8085 Change aclass argument type to reg_class_t.
8086 (update_conflict_hard_reg_costs): Change type aclass and pref vars
8088 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
8089 memory_move_cost call.
8091 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
8092 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
8093 Change type tmp var to reg_class_t.
8095 2011-04-30 Jan Hubicka <jh@suse.cz>
8097 * ipa-inline.c (can_inline_edge_p): Disregard limits when
8098 inlining into function with flatten attribute.
8099 (want_inline_small_function_p): Be more realistic about inlining
8100 cold calls where callee size grows.
8102 2011-04-30 Jan Hubicka <jh@suse.cz>
8104 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
8107 2011-04-30 Anatoly Sokolov <aesok@post.ru>
8109 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
8110 PRINT_OPERAND_PUNCT_VALID_P): Remove.
8111 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
8112 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
8113 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
8114 (print_operand): Rename to...
8115 (sparc_print_operand): ...this. Make static. Adjust
8116 sparc_print_operand function call.
8117 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
8120 2011-04-30 Jan Hubicka <jh@suse.cz>
8123 * ipa-inline.c (early_inliner): Disable when doing late
8124 addition of function.
8126 2011-04-30 Jakub Jelinek <jakub@redhat.com>
8128 * dwarf2out.c (get_address_mode): New inline.
8129 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
8130 if not dwarf_strict emit
8131 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
8132 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
8133 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
8134 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
8135 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
8136 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
8137 mem_loc_descriptor callers.
8138 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
8139 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
8140 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
8141 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
8142 (base_types): New variable.
8143 (get_base_type_offset, calc_base_type_die_sizes,
8144 base_type_for_mode, mark_base_types, base_type_cmp,
8145 move_marked_base_types): New functions.
8146 (calc_die_sizes): Assert that die_offset is 0 or equal to
8148 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
8149 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
8150 callers. If not dwarf_strict, call mem_loc_descriptor even for
8151 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
8152 (gen_subprogram_die): Don't give up on call site parameters
8153 with non-integral or large integral modes. Adjust
8154 mem_loc_descriptor callers.
8155 (prune_unused_types): Call prune_unused_types_mark on base_types
8157 (resolve_addr): Call mark_base_types.
8158 (dwarf2out_finish): Call move_marked_base_types.
8160 PR tree-optimization/48809
8161 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
8163 (gen_inbound_check): Don't compute index_expr - range_min in utype
8164 again, instead reuse SSA_NAME initialized in build_arrays.
8165 Remove two useless gsi_for_stmt calls.
8167 2011-04-29 Jeff Law <law@redhat.com>
8169 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
8171 2011-04-29 Martin Jambor <mjambor@suse.cz>
8173 * cgraph.h (cgraph_postorder): Remove declaration.
8174 * ipa-utils.h (ipa_free_postorder_info): Declare.
8175 (ipa_reverse_postorder): Likewise.
8176 * cgraphunit.c: Include ipa-utils.h.
8177 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
8178 * ipa-inline.c: Include ipa-utils.h.
8179 (ipa_inline): Update call to ipa_reverse_postorder.
8180 * ipa-pure-const.c (propagate_pure_const): Update call to
8181 ipa_reduced_postorder and ipa_print_order. Call
8182 ipa_free_postorder_info to clean up.
8183 (propagate_nothrow): Likewise.
8184 * ipa-reference.c (propagate): Removed a useless call to
8185 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
8186 and ipa_print_order. Call ipa_free_postorder_info to clean up.
8187 * ipa.c: Include ipa-utils.h.
8188 (ipa_profile): Update call to ipa_reverse_postorder.
8189 (cgraph_postorder): Moved to...
8190 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
8191 (ipa_utils_print_order): Renamed to ipa_print_order.
8192 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
8194 (ipa_free_postorder_info): New function.
8195 * passes.c: Include ipa-utils.h.
8196 (do_per_function_toporder): Update call to ipa_reverse_postorder.
8197 (ipa_write_summaries): Likewise.
8198 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
8199 (cgraphunit.o): Likewise.
8201 (ipa-inline.o): Likewise.
8203 2011-04-29 Jan Hubicka <jh@suse.cz>
8205 * gcc.dg/tree-ssa/inline-10.c: New testcase.
8206 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
8207 * ipa-inline.h (clause_t): Turn into unsigned int.
8208 * ipa-inline-analysis.c (add_clause): Do more simplification.
8209 (and_predicates): Shortcut more cases.
8210 (predicates_equal_p): Move forward; check that clauses are properly
8212 (or_predicates): Shortcut more cases.
8213 (edge_execution_predicate): Rewrite as...
8214 (set_cond_stmt_execution_predicate): ... this function; handle
8215 __builtin_constant_p.
8216 (set_switch_stmt_execution_predicate): New .
8217 (compute_bb_predicates): New.
8218 (will_be_nonconstant_predicate): Update TODO.
8219 (estimate_function_body_sizes): Use compute_bb_predicates
8220 and free them later, always try to estimate if stmt is constant.
8221 (estimate_time_after_inlining, estimate_size_after_inlining):
8222 Gracefully handle optimized out edges.
8223 (read_predicate): Fix off by one error.
8225 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
8227 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
8229 2011-04-27 Xinliang David Li <davidxl@google.com>
8231 * tree-profile.c (init_ic_make_global_vars): Set
8232 tls attribute on ic vars.
8233 * coverage.c (coverage_end_function): Initialize
8234 function_list with zero.
8236 2011-04-29 Richard Guenther <rguenther@suse.de>
8238 * builtins.c (fold_builtin_classify_type): Use integer_type_node
8239 for the type of the result.
8240 (fold_builtin_isascii): Likewise.
8241 (fold_builtin_toascii): Use integer_type_node where appropriate.
8242 (fold_builtin_logb): Likewise.
8243 (fold_builtin_frexp): Likewise.
8244 (fold_builtin_strstr): Likewise.
8245 (fold_builtin_strpbrk): Likewise.
8246 (fold_builtin_fputs): Likewise.
8247 (fold_builtin_sprintf): Likewise.
8248 (fold_builtin_snprintf): Likewise.
8249 (fold_builtin_printf): Likewise.
8250 (do_mpfr_remquo): Use a proper type for the assigned constant.
8251 (do_mpfr_lgamma_r): Likewise.
8252 * dwarf2out.c (resolve_one_addr): Use size_int.
8253 * except.c (init_eh): Likewise.
8254 (assign_filter_values): Use integer_type_node for filter values.
8255 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
8257 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
8258 for EH region numbers.
8259 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
8260 for the shift amount.
8262 2011-04-29 Richard Guenther <rguenther@suse.de>
8264 * expr.h (expand_shift): Rename to ...
8265 (expand_variable_shift): ... this.
8266 (expand_shift): Take a constant shift amount.
8267 * expmed.c (expand_shift): Rename to ...
8268 (expand_variable_shift): ... this.
8269 (expand_shift): New wrapper around expand_variable_shift.
8270 * expr.c (convert_move, emit_group_load_1, emit_group_store,
8271 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
8272 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
8273 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
8274 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
8275 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
8276 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
8277 emit_store_flag_1, emit_store_flag): Likewise.
8278 * builtins.c (expand_builtin_signbit): Likewise.
8279 * calls.c (load_register_parameters): Likewise.
8280 * function.c (assign_parm_setup_block): Likewise.
8281 * lower-subreg.c (resolve_shift_zext): Likewise.
8282 * optabs.c (widen_bswap, expand_abs_nojump,
8283 expand_one_cmpl_abs_nojump, expand_float): Likewise.
8284 * spu/spu.c (spu_expand_extv): Likewise.
8285 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
8287 2011-04-29 Richard Guenther <rguenther@suse.de>
8289 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
8290 for the remapped region number.
8291 * predict.c (build_predict_expr): Use integer_type_node for the
8293 * fold-const.c (fold_binary_loc): Use integer_type_node for
8294 the shift amount. Use a proper type for the PLUS_EXPR operand.
8296 2011-04-29 Michael Matz <matz@suse.de>
8298 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
8299 other trees that just builtins.
8300 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
8302 2011-04-29 Richard Guenther <rguenther@suse.de>
8304 * tree-nested.c (get_trampoline_type): Use size_int.
8305 (get_nl_goto_field): Likewise.
8306 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
8308 (lower_eh_constructs_2): Likewise.
8309 (lower_resx): Likewise.
8310 (lower_eh_dispatch): Likewise.
8311 * tree-mudflap.c (mf_build_string): Use size_int.
8312 (mudflap_register_call): Use integer_type_node for the flag.
8313 (mudflap_enqueue_constant): Use size_int.
8314 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
8315 instead of rebuilding it.
8317 2011-04-29 Richard Guenther <rguenther@suse.de>
8319 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
8320 Handle OBJ_TYPE_REF.
8321 (find_func_aliases_for_call): Use it more consistently.
8323 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
8325 * haifa-sched.c (last_nondebug_scheduled_insn): New.
8326 (rank_for_schedule): Use it.
8327 (schedule_block): Set it.
8329 2011-04-28 David Li <davidxl@google.com>
8331 * tree.c (crc32_string): Use crc32_byte.
8332 (crc32_byte): New function.
8333 * tree.h (crc32_byte): New function.
8334 * gcov.c (read_graph_file): Handle new cfg_cksum.
8335 (read_count_file): Ditto.
8336 * profile.c (instrument_values): Ditto.
8337 (get_exec_counts): Ditto.
8338 (read_profile_edge_counts): Ditto.
8339 (compute_branch_probabilities): Ditto.
8340 (compute_value_histograms): Ditto.
8341 (branch_prob): Ditto.
8342 (end_branch_prob): Ditto.
8343 * coverage.c (read_counts_file): Ditto.
8344 (get_coverage_counts): Ditto.
8345 (tree_coverage_counter_addr): Ditto.
8346 (coverage_checksum_string): Ditto.
8347 (coverage_begin_output): Ditto.
8348 (coverage_end_function): Ditto.
8349 (build_fn_info_type): Ditto.
8350 (build_fn_info_value): Ditto.
8351 * libgcov.c (gcov_exit): Ditto.
8352 * gcov-dump.c (tag_function): Ditto.
8353 (compute_checksum): Remove.
8355 2011-04-29 Alan Modra <amodra@gmail.com>
8357 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
8358 unspec plus offset. Tidy macho code.
8360 2011-04-29 Martin Jambor <mjambor@suse.cz>
8362 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
8363 node instead of a decl. Update all callers.
8364 * cgraph.h: Update declaration.
8366 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
8368 PR tree-optimization/48765
8369 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
8370 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
8371 to indicate if loop aware SLP is being used. Scan the statements
8372 and update the vectorization factor according to the type of
8373 vectorization before statement analysis.
8374 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
8375 pass it to vect_analyze_loop_operations.
8376 (vectorizable_reduction): Set number of copies to 1 in case of pure
8378 * tree-vect-stmts.c (vectorizable_conversion,
8379 vectorizable_assignment, vectorizable_shift,
8380 vectorizable_operation, vectorizable_type_demotion,
8381 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
8383 (vectorizable_condition): Move the check that it is not SLP
8384 vectorization before the number of copies check.
8385 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
8386 to vectorize the loop using SLP.
8388 2011-04-28 Jakub Jelinek <jakub@redhat.com>
8391 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
8394 2011-04-28 Joseph Myers <joseph@codesourcery.com>
8396 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
8397 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
8398 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
8399 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
8400 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
8402 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
8403 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8404 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8405 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8406 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
8407 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
8409 * config/i386/linux.h (REG_NAME): Don't define.
8410 * config/i386/linux64.h (REG_NAME): Don't define.
8411 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
8412 Undefine before defining.
8414 2011-04-28 Jan Hubicka <jh@suse.cz>
8416 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
8417 nonconstant_names array.
8418 (estimate_function_body_sizes): Build nonconstant_names array; handle
8419 BUILT_IN_CONSTANT_P.
8421 2011-04-28 Richard Guenther <rguenther@suse.de>
8425 2011-04-28 Richard Guenther <rguenther@suse.de>
8427 * tree-ssa-structalias.c (solve_constraints): Build succ graph
8428 as late as possible.
8430 2011-04-28 Richard Guenther <rguenther@suse.de>
8432 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
8433 (debug_constraint): Do it here.
8434 (dump_constraints): And here.
8435 (rewrite_constraints): And here.
8436 (dump_constraint_edge): Remove.
8437 (dump_constraint_graph): Rewrite to produce DOT output.
8438 (solve_constraints): Build succ graph as late as possible.
8439 Dump constraint graphs before and after solving.
8441 2011-04-28 Richard Guenther <rguenther@suse.de>
8443 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8444 New function split out from ...
8445 (find_func_aliases): ... here. Call it.
8446 (find_func_aliases_for_call): Likewise.
8448 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8450 * internal-fn.h (internal_fn_name_array): Declare.
8451 (internal_fn_flags_array): Likewise.
8453 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8455 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
8456 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
8458 (ssemodefsuffix): Remove.
8459 (ssevecmodesuffix): New mode attribute.
8460 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
8461 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
8462 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
8463 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
8464 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
8465 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
8466 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
8467 ssemodesuffix mode attribute.
8468 (float splitters): Use ssevecmodesuffix mode attribute.
8469 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
8470 (sseinsmode): Rename from avxvecmode.
8471 (avxsizesuffix): Rename from avxmodesuffix.
8472 (sseintvecmode): Rename from avxpermvecmode.
8473 (ssedoublevecmode): Rename from ssedoublesizemode.
8474 (ssehalfvecmode): Rename from avxhalfvecmode.
8475 (ssescalarmode): Rename from avxscalarmode.
8476 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
8477 templates for ssemodesuffix mode attribute.
8478 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
8481 Adjust RTX patterns globally for renamed mode attributes.
8483 2011-04-27 Jan Hubcika <jh@suse.cz>
8485 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
8486 * ipa-inline-analysis.c: Include alloc-pool.h.
8487 (edge_predicate_pool): New.
8488 (trye_predicate_p): New function
8489 (false_predicate_p): New function.
8490 (add_clause): Sanity check that false clauses are "optimized";
8491 never add clauses to predicate that is already known to be false.
8492 (and_predicate): Use flase_predicate_p.
8493 (evaulate_predicate): Rename to ...
8494 (evaluate_predicate): ... this one; update all callers; assert
8495 that false is not listed among possible truths.
8496 (dump_predicate): Use true_predicate_p.
8497 (account_size_time): Use false_predicate_p.
8498 (evaulate_conditions_for_edge): Rename to ...
8499 (evaluate_conditions_for_edge) ... this one.
8500 (edge_set_predicate): New function.
8501 (inline_edge_duplication_hook): Duplicate edge predicates.
8502 (inline_edge_removal_hook): Free edge predicates.
8503 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
8504 (dump_inline_summary): Update.
8505 (estimate_function_body_sizes): Set edge predicates.
8506 (estimate_calls_size_and_time): Handle predicates.
8507 (estimate_callee_size_and_time): Update.
8508 (remap_predicate): Add toplev_predicate; update comment.
8509 (remap_edge_predicates): New function.
8510 (inline_merge_summary): Compute toplev predicate; update.
8511 (read_predicate): New function.
8512 (read_inline_edge_summary): Use it.
8513 (inline_read_section): Likewise.
8514 (write_predicate): New function.
8515 (write_inline_edge_summary): Use it.
8516 (inline_write_summary): Likewise.
8517 (inline_free_summary): Free alloc pool and edge summary vec.
8519 2011-04-27 Richard Guenther <rguenther@suse.de>
8521 * tree-ssa-structalias.c (changed_count): Remove.
8522 (changed): Use a bitmap.
8523 (unify_nodes): Adjust.
8524 (do_sd_constraint): Likewise.
8525 (do_ds_constraint): Likewise.
8526 (do_complex_constraint): Likewise.
8527 (solve_graph): Likewise.
8529 2011-04-27 Jan Hubicka <jh@suse.cz>
8531 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
8533 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
8535 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
8536 (avx_vperm2f128_*_operand): Ditto.
8537 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
8538 Use avx_vpermilp_parallel in insn condition.
8539 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
8540 Use avx_vperm2f128_parallel in insn condition.
8542 2011-04-27 Richard Guenther <rguenther@suse.de>
8544 * Makefile.in (tree-ssa-structalias.o): Remove
8545 gt-tree-ssa-structalias.h dependency.
8546 (GTFILES): Remove tree-ssa-structalias.c.
8547 * tree.c (allocate_decl_uid): New function.
8548 (make_node_stat): Use it.
8549 (copy_node_stat): Likewise.
8550 * tree.h (allocate_decl_uid): Declare.
8551 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
8552 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
8553 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
8554 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
8555 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
8556 (struct heapvar_map): Likewise.
8557 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
8558 heapvar_insert): Likewise.
8559 (make_heapvar_for): Rename to ...
8560 (make_heapvar): ... this. Simplify.
8561 (fake_var_decl_obstack): New global var.
8562 (build_fake_var_decl): New function.
8563 (make_constraint_from_heapvar): Adjust.
8564 (handle_lhs_call): Likewise.
8565 (create_function_info_for): Likewise.
8566 (intra_create_variable_infos): Likewise.
8567 (init_alias_vars): Allocate fake_var_decl_obstack.
8568 (init_alias_heapvars, delete_alias_heapvars): Remove.
8569 (compute_points_to_sets): Do not call init_alias_heapvars.
8570 (ipa_pta_execute): Likewise.
8571 (delete_points_to_sets): Free fake_var_decl_obstack.
8573 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8575 * config/spu/divmovti4.c (union qword_UTItype): New data type.
8576 (si_from_UTItype, si_to_UTItype): New functions.
8577 (__udivmodti4): Use them to implement type-punning.
8578 * config/spu/multi3.c (union qword_TItype): New data type.
8579 (si_from_TItype, si_to_TItype): New functions.
8580 (__multi3): Use them to implement type-punning.
8582 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8584 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
8586 2011-04-27 Jan Hubicka <jh@suse.cz>
8588 * ipa-prop.c (function_insertion_hook_holder): New holder.
8589 (ipa_add_new_function): New function.
8590 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
8591 Register/deregister holder.
8593 2011-04-27 Richard Guenther <rguenther@suse.de>
8595 PR tree-optimization/48772
8596 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
8598 2011-04-27 Richard Guenther <rguenther@suse.de>
8600 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
8601 TARGET_MEM_REF handling.
8603 2011-04-27 Nick Clifton <nickc@redhat.com>
8605 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
8606 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
8607 (REG_CLASS_NAMES): Likewise.
8608 (REG_CLASS_CONTENTS): Likewise.
8609 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8610 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
8611 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
8612 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
8613 (EVEN_REGS): New macro. Alias for QUAD_REGS.
8614 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
8615 duplicate register classes.
8616 (frv_class_likely_spilled_p): Likewise.
8617 (frv_register_move_cost): Likewise.
8619 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
8620 end of the regno_reg_class array.
8622 2011-04-27 Jakub Jelinek <jakub@redhat.com>
8625 * c-typeck.c (build_binary_op): Don't wrap arguments if
8626 int_operands is true.
8628 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
8631 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
8632 targetm.calls.must_pass_in_stack for void type.
8634 2011-04-26 Jan Hubicka <jh@suse.cz>
8636 * cgraphbuild.c (build_cgraph_edges): Update call
8637 of cgraph_create_edge and cgraph_create_indirect_edge.
8638 * cgraph.c (cgraph_create_edge_including_clones,
8639 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
8640 cgraph_update_edges_for_call_stmt_node): Do not take nest
8641 argument; do not initialize call_stmt_size/time.
8642 (dump_cgraph_node): Do not dump nest.
8643 (cgraph_clone_edge): Do not take loop_nest argument;
8644 do not propagate it; do not clone call_stmt_size/time.
8645 (cgraph_clone_node): Likewise.
8646 (cgraph_create_virtual_clone): Update.
8647 * cgraph.h (struct cgraph_edge): Remove
8648 call_stmt_size/call_stmt_time/loop_nest.
8649 (cgraph_create_edge, cgraph_create_indirect_edge,
8650 cgraph_create_edge_including_clones, cgraph_clone_node): Update
8652 * tree-emutls.c (gen_emutls_addr): Update.
8653 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
8654 loop_nest; handle indirect calls, too.
8655 (clone_inlined_nodes): Do not care about updating inline summaries.
8656 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
8657 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
8658 stream call_stmt_size/call_stmt_time/loop_nest.
8659 * ipa-inline.c (edge_badness): Update.
8660 (ipa_inline): dump summaries after inlining.
8661 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
8663 (inline_edge_summary): New function.
8664 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
8665 (inline_edge_removal_hook): Handle edge summaries.
8666 (inline_edge_duplication_hook): New hook.
8667 (inline_summary_alloc): Alloc hooks.
8668 (initialize_growth_caches): Do not register removal hooks.
8669 (free_growth_caches); Do not free removal hook.
8670 (dump_inline_edge_summary): New function.
8671 (dump_inline_summary): Use it.
8672 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
8673 (inline_update_callee_summaries): New function.
8674 (inline_merge_summary): Use it.
8675 (do_estimate_edge_time, do_estimate_edge_growth): Update.
8676 (read_inline_edge_summary): New function.
8677 (inline_read_section): Use it.
8678 (write_inline_edge_summary): New function.
8679 (inline_write_summary): Use it.
8680 (inline_free_summary): Free edge new holders.
8681 * tree-inline.c (copy_bb): Update.
8683 2011-04-26 Jason Merrill <jason@redhat.com>
8685 * tree-eh.c (lower_try_finally_switch): Create the label along with
8686 the CASE_LABEL_EXPR.
8688 2011-04-26 David S. Miller <davem@davemloft.net>
8689 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8691 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
8692 * configure: Regenerate.
8694 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8697 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
8699 (VEC_reduc): New code iterator and splitters for vector reduction.
8700 (VEC_reduc_name): Ditto.
8701 (VEC_reduc_rtx): Ditto.
8702 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
8703 (reduc_<VEC_reduc_name>_v4sf): Ditto.
8705 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
8706 support for extracting SF on VSX.
8708 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
8709 generating xscvspdp.
8710 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
8711 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
8712 double add, minimum, maximum vector reduction.
8713 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
8714 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
8715 optimize double vector reduction.
8716 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
8718 2011-04-26 Joseph Myers <joseph@codesourcery.com>
8720 * config/fr30/fr30.h (inhibit_libc): Don't define.
8721 * config/m32r/m32r-protos.h: Correct comment.
8722 * config/v850/v850.h (GHS_default_section_names,
8723 GHS_current_section_names): Use tree, not union tree_node *.
8725 2011-04-26 Xinliang David Li <davidxl@google.com>
8727 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
8728 * c-family/c-opts.c (c_common_handle_option): Set
8729 warn_maybe_uninitialized.
8730 * opts.c (common_handle_option): Ditto.
8731 * common.opt: New option.
8732 * tree-ssa.c (warn_uninit): Add one more parameter.
8733 (warn_uninitialized_var): Pass warning code.
8734 * tree-flow.h: Interface change.
8736 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8738 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
8739 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
8740 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
8742 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8744 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
8745 * config/mips/mips.opt (mmips-tfile): Remove.
8747 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
8748 mips-tdump reference to ...
8749 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
8750 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
8751 reference by Tru64 UNIX.
8753 2011-04-26 Jakub Jelinek <jakub@redhat.com>
8756 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
8757 is error_mark_node, set value to NULL.
8759 PR tree-optimization/48734
8760 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
8761 if return value from maybe_fold_*_comparsions isn't something
8762 the code is prepared to handle.
8764 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
8766 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
8768 (ext_QIreg_nomode_operands): Remove.
8769 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
8773 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
8775 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
8777 2011-04-26 Richard Guenther <rguenther@suse.de>
8779 * c-typeck.c (build_unary_op): Do not expand array-refs via
8780 pointer arithmetic. Only adjust qualifiers for function types.
8782 2011-04-26 Richard Guenther <rguenther@suse.de>
8785 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
8786 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
8787 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
8788 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
8790 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
8792 * doc/extend.texi: Document __underlying_type.
8794 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
8796 * config/rs6000/titan.md (automata_option "progress"): Remove.
8798 2011-04-25 Jeff Law <law@redhat.com>
8800 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
8802 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8804 * system.h (ENUM_BITFIELD): Remove.
8806 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
8807 Eric Botcazou <ebotcazou@adacore.com>
8809 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
8810 for STORE_FLAG_VALUE==-1 case.
8812 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
8815 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
8816 LEGITIMATE_PIC_OPERAND_P.
8818 2011-04-24 Jan Hubicka <jh@suse.cz>
8820 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
8822 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
8823 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
8824 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
8825 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
8826 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
8827 Sanity check predicate length.
8828 (remap_predicate): Likewise; sanity check jump functions.
8829 (inline_read_section, inline_write_summary): Sanity check
8832 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8835 * doc/extend.texi (Type Traits): Document __is_standard_layout,
8836 __is_literal_type, and __is_trivial; update throughout about
8837 possibly cv-qualified void types.
8839 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
8841 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
8842 testsuite and make it version agnostic.
8844 2011-04-22 Jan Hubicka <jh@suse.cz>
8846 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
8848 2011-04-23 Jakub Jelinek <jakub@redhat.com>
8851 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
8852 to VOID_TYPE even around MODIFY_EXPR.
8854 2011-04-22 Mike Stump <mikestump@comcast.net>
8856 * gensupport.c (read_md_rtx): Fix typo in comment.
8857 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
8860 2011-04-22 Jan Hubicka <jh@suse.cz>
8862 * gengtype.c (open_base_files): Add ipa-inline.h include.
8863 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
8864 ipa-prop.c; update all uses.
8865 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
8866 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
8867 merge summary of inlined function into former caller.
8868 * ipa-inline.c (max_benefit): Remove.
8869 (edge_badness): Compensate for removal of benefits.
8870 (update_caller_keys): Use
8871 reset_node_growth_cache/reset_edge_growth_cache.
8872 (update_callee_keys): Likewise.
8873 (update_all_callee_keys): Likewise.
8874 (inline_small_functions): Do not collect max_benefit; do not reset
8875 estimated_growth; call free_growth_caches and initialize_growth_caches.
8876 * ipa-inline.h (struct condition, type clause_t, struct predicate,
8877 struct size_time_entry): New structures.
8878 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
8879 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
8880 and estimated_growth.
8881 (edge_growth_cache_entry): New structure.
8882 (node_growth_cache, edge_growth_cache): New global vars.
8883 (estimate_growth): Turn into inline.
8884 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
8885 initialize_growth_caches, free_growth_caches): Declare.
8886 (estimate_edge_growth): Rewrite.
8887 (estimate_edge_time): Implement as inline cache lookup.
8888 (reset_node_growth_cache, reset_edge_growth_cache): New inline
8890 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
8891 (NUM_CONDITIONS): New constant.
8892 (predicate_conditions): New enum.
8893 (IS_NOT_CONSTANT): New constant.
8894 (edge_removal_hook_holder): New var.
8895 (node_growth_cache, edge_growth_cache): New global vars.
8896 (true_predicate, single_cond_predicate, false_predicate,
8897 not_inlined_predicate, add_condition, add_clause, and_predicates,
8898 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
8899 dump_clause, dump_predicate, account_size_time,
8900 evaulate_conditions_for_edge): New functions.
8901 (inline_summary_alloc): Move to heap.
8902 (inline_node_removal_hook): Clear condition and entry vectors.
8903 (inline_edge_removal_hook): New function.
8904 (initialize_growth_caches, free_growth_caches): New function.
8905 (dump_inline_summary): Update.
8906 (edge_execution_predicate): New function.
8907 (will_be_nonconstant_predicate): New function.
8908 (estimate_function_body_sizes): Compute BB and constantness predicates.
8909 (compute_inline_parameters): Do not clear estimated_growth.
8910 (estimate_edge_size_and_time): New function.
8911 (estimate_calls_size_and_time): New function.
8912 (estimate_callee_size_and_time): New function.
8913 (remap_predicate): New function.
8914 (inline_merge_summary): New function.
8915 (do_estimate_edge_time): New function based on...
8916 (estimate_edge_time): ... this one.
8917 (do_estimate_edge_growth): New function.
8918 (do_estimate_growth): New function based on....
8919 (estimate_growth): ... this one.
8920 (inline_analyze_function): Analyze after deciding on jump functions.
8921 (inline_read_section): New function.
8922 (inline_read_summary): Use it.
8923 (inline_write_summary): Write all the new data.
8924 * ipa-prop.c (ipa_get_param_decl_index): Export.
8925 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
8926 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
8928 (ipa_get_lattice): Move here from ipa-cp.c
8929 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
8930 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
8931 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
8932 cgraph_edge_inlinable_p): Remove.
8933 * cgraphunit.c: Include ipainline.h
8934 (cgraph_process_new_functions): Update call of
8935 compute_inline_parameters.
8937 2011-04-22 Richard Guenther <rguenther@suse.de>
8939 * tree.c (build_int_cst): Properly create canonicalized integer
8941 (build_int_cst_type): Remove scary comments.
8943 2011-04-22 Xinliang David Li <davidxl@google.com>
8945 * toplev.c (process_options): Enable -Werror=coverage-mismatch
8946 by default when -Wno-error is not specified.
8947 * opts-global.c (decode_options): Remove call to
8948 control_warning_options.
8950 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8952 PR tree-optimization/48717
8953 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
8954 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
8956 2011-04-22 Joseph Myers <joseph@codesourcery.com>
8958 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
8959 definition where used.
8961 2011-04-22 Jakub Jelinek <jakub@redhat.com>
8964 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
8965 TREE_STATIC variables declared inside of some OpenMP construct.
8967 2011-04-22 Martin Jambor <mjambor@suse.cz>
8970 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
8972 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
8975 * c-typeck.c (pop_init_level): Do not warn about initializing
8978 2011-04-22 Alan Modra <amodra@gmail.com>
8980 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
8981 when returning call_cookie.
8982 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
8983 pointers, to functions with no more vector args than the current
8984 function, and some non-local calls for ABI_V4.
8985 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
8986 sibcall_nonlocal_aix64): Combine to ..
8987 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
8988 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
8989 (sibcall_value_nonlocal_aix<mode>): ..likewise.
8990 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
8991 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
8993 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
8994 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
8995 sibcall_value_symbolic_64): Delete.
8997 2011-04-21 Xinliang David Li <davidxl@google.com>
8999 * cgraph.h: Remove pid.
9000 * cgraph.c: Remove pid.
9001 * value-prof.c (init_node_map): New function.
9002 (del_node_map): New function.
9003 (find_func_by_funcdef_no): New function.
9004 (gimple_ic_transform): Call new function.
9005 * cgraphunit.c (cgraph_finalize_function): Remove pid.
9006 * function.c (get_last_funcdef_no): New function.
9007 * function.h (get_last_funcdef_no): New function.
9008 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
9009 to libgcov function.
9010 (tree-profiling): Call node map init and delete function.
9012 2011-04-21 Ian Lance Taylor <iant@google.com>
9014 * godump.c (go_format_type): Use exported Go name for anonymous
9017 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9019 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
9020 Call builtin_function_type_list instead of builtin_function_type.
9021 (UNARY, BINARY, TRINARY, QUAD): Likewise.
9023 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9025 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
9026 build_function_type_list instead of build_function_type.
9027 Delete variable `endlink'.
9029 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9031 * config/s390/s390.c (s390_init_builtins): Call
9032 build_function_type_list instead of build_function_type.
9034 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
9036 * config/ia64/ia64.c (ia64_init_builtins): Call
9037 build_function_type_list instead of builtin_function_type.
9039 2011-04-21 Easwaran Raman <eraman@google.com>
9041 * cfgexpand.c (stack_var): Remove OFFSET...
9042 (add_stack_var): ...and its reference here...
9043 (expand_stack_vars): ...and here.
9044 (stack_var_cmp): Sort by descending order of size.
9045 (partition_stack_vars): Change heuristic.
9046 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
9047 (dump_stack_var_partition): Add newline after each partition.
9049 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
9050 Jeff Law <law@redhat.com>
9052 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
9053 * gengtype.c (matching_file_name_substitute): Likewise.
9055 2011-04-21 Richard Guenther <rguenther@suse.de>
9058 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
9060 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
9062 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
9064 2011-04-21 Richard Guenther <rguenther@suse.de>
9066 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
9069 2011-04-21 Richard Guenther <rguenther@suse.de>
9071 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
9072 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
9073 Use DECL_P, not SSA_VAR_P.
9074 (ptr_derefs_may_alias_p): Likewise.
9075 (ptr_deref_may_alias_ref_p_1): Likewise.
9076 (decl_refs_may_alias_p): Likewise.
9077 (refs_may_alias_p_1): Likewise.
9078 (ref_maybe_used_by_call_p_1): Likewise.
9079 (call_may_clobber_ref_p_1): Likewise.
9080 (indirect_ref_may_alias_decl_p): Assume indirect refrences
9081 are either MEM_REF or TARGET_MEM_REF.
9082 (indirect_refs_may_alias_p): Likewise.
9083 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
9084 for MEM_EXPR of indirect calls.
9086 2011-04-21 Tristan Gingold <gingold@adacore.com>
9088 * vmsdbgout.c (write_srccorr): Compute file length from the string.
9089 (dst_file_info_struct): Remove flen field.
9090 (lookup_filename): Remove code that set flen field.
9092 2011-04-21 Tristan Gingold <gingold@adacore.com>
9094 * config/ia64/ia64.c (ia64_start_function): Add a guard.
9096 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
9099 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
9100 vec_extract and vec_concat for non-SSE4_1 targets.
9102 2011-04-21 Richard Guenther <rguenther@suse.de>
9104 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
9107 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9109 * config/i386/cygming.h (union tree_node, TREE): Don't define or
9111 (FILE): Don't undefine.
9113 2011-04-21 Joseph Myers <joseph@codesourcery.com>
9115 * config/alpha/alpha.c (struct machine_function): Use rtx, not
9117 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
9119 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
9120 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
9121 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
9123 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
9124 definitions where used.
9125 * config/microblaze/microblaze.h (struct microblaze_args): Use
9126 rtx, not struct rtx_def *.
9127 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
9129 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
9130 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
9131 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
9132 not struct rtx_def *.
9133 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
9135 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
9137 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
9139 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9141 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
9142 operand_equal_p to compare DR_BASE_ADDRESSes.
9143 (vect_check_interleaving): Likewise.
9145 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9148 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
9149 for all Neon struct constants.
9151 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9153 * target.def (legitimate_constant_p): New hook.
9154 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
9155 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
9156 * doc/tm.texi: Regenerate.
9157 * hooks.h (hook_bool_mode_rtx_true): Declare.
9158 * hooks.c (hook_bool_mode_rtx_true): Define.
9159 * system.h (LEGITIMATE_CONSTANT_P): Poison.
9160 * calls.c (precompute_register_parameters): Replace uses of
9161 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
9162 (emit_library_call_value_1): Likewise.
9163 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
9164 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
9165 * ira-costs.c (scan_one_insn): Likewise.
9166 * recog.c (general_operand, immediate_operand): Likewise.
9167 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
9168 * reload1.c (init_eliminable_invariants): Likewise.
9170 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
9172 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
9173 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
9175 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9176 * config/alpha/predicates.md (input_operand): Update call to
9177 alpha_legitimate_constant_p.
9179 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
9180 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
9181 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
9182 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9183 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
9184 (arm_legitimate_constant_p): New functions.
9185 (arm_cannot_force_const_mem): Make static.
9187 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
9189 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
9190 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
9191 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
9192 instead of bfin_legitimate_constant_p.
9193 (bfin_legitimate_constant_p): Make static. Add a mode argument.
9194 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9196 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
9198 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
9200 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
9201 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
9202 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9203 (frv_legitimate_constant_p): Make static. Add a mode argument.
9205 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
9206 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
9207 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
9209 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
9210 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
9211 * config/i386/i386.c (legitimate_constant_p): Rename to...
9212 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
9214 (ix86_cannot_force_const_mem): Update accordingly.
9215 (ix86_legitimate_address_p): Likewise.
9216 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9217 * config/i386/i386.md: Update commentary.
9219 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
9220 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
9221 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9222 (ia64_legitimate_constant_p): Make static. Add a mode argument.
9224 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
9226 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
9227 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
9228 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9229 (lm32_legitimate_constant_p): Make static. Add a mode argument.
9231 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
9232 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
9233 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
9235 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
9236 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9237 (m32r_legitimate_constant_p): New function.
9239 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
9240 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
9241 LEGITIMATE_CONSTANT_P.
9242 (LEGITIMATE_CONSTANT_P): Delete.
9243 * config/m68k/m68k.c (m68k_expand_prologue): Call
9244 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
9245 (m68k_legitimate_constant_p): New function.
9246 * config/m68k/m68k.md: Update comments.
9248 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
9249 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9250 (mcore_legitimate_constant_p): New function.
9252 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
9253 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
9254 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
9255 Add a mode argument.
9256 (mep_legitimate_address): Update accordingly.
9257 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9259 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
9261 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
9262 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
9263 static. Check OP's mode for VOIDmode.
9264 (microblaze_legitimate_constant_p): New function.
9265 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9267 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
9268 * config/mips/mips.c (mips_legitimate_constant_p): New function.
9269 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
9270 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9271 * config/mips/predicates.md: Update comments.
9273 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
9274 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
9275 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9276 (mmix_legitimate_constant_p): Make static, return a bool, and take
9278 (mmix_print_operand_address): Update accordingly.
9280 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
9282 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
9283 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
9284 static. Add a mode argument.
9285 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9287 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
9289 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
9290 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9291 (pa_legitimate_constant_p): New function.
9293 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
9295 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
9296 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9297 (pdp11_legitimate_constant_p): New function.
9299 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
9300 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9301 (rs6000_legitimate_constant_p): New function.
9303 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
9304 (rx_legitimate_constant_p): ...this.
9305 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
9306 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
9307 (rx_legitimate_constant_p): ...this.
9308 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9309 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
9311 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
9312 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
9313 * config/s390/s390.c (legitimate_constant_p): Rename to...
9314 (s390_legitimate_constant_p): ...this. Make static, return a bool,
9315 and add a mode argument.
9316 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9318 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
9320 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
9321 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9322 (sh_legitimate_constant_p): New function.
9324 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
9325 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
9326 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9327 (legitimate_constant_p): Rename to...
9328 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
9330 (constant_address_p): Update accordingly.
9332 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
9333 argument and return a bool.
9334 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
9335 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9336 (spu_legitimate_constant_p): Add a mode argument and return a bool.
9337 (spu_rtx_costs): Update accordingly.
9338 * config/spu/predicates.md (vec_imm_operand): Likewise.
9340 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
9342 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
9343 * config/v850/v850.c (v850_legitimate_constant_p): New function.
9344 (TARGET_LEGITIMATE_CONSTANT_P): Define.
9346 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
9347 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
9348 * config/vax/vax.c (legitimate_constant_p): Likewise.
9350 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
9351 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
9352 (xtensa_legitimate_constant_p): New function.
9354 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
9356 * target.def (cannot_force_const_mem): Add a mode argument.
9357 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
9358 * doc/tm.texi: Regenerate.
9359 * hooks.h (hook_bool_mode_rtx_false): Declare.
9360 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
9361 (hook_bool_mode_const_rtx_true): Likewise.
9362 (hook_bool_mode_rtx_false): New function.
9363 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
9364 to be non-VOID. Update call to cannot_force_const_mem.
9365 (find_reloads): Update accordingly.
9366 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
9367 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
9369 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
9370 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
9371 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
9372 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
9373 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
9374 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
9375 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
9376 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9377 (m68k_cannot_force_const_mem): ...this new function.
9378 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
9380 (mips_const_insns, mips_legitimize_const_move): Update calls.
9381 (mips_secondary_reload_class): Likewise.
9382 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
9383 (pa_cannot_force_const_mem): ...this new function.
9384 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
9385 (rs6000_cannot_force_const_mem): ...this new function.
9386 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
9388 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
9389 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
9391 (xtensa_cannot_force_const_mem): ...this new function.
9393 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9395 * config/mips/mips.c (mips16_build_function_stub): Call
9396 build_function_type_list instead of build_function_type.
9397 (mips16_build_call_stub): Likewise.
9399 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9401 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
9402 instead of build_function_type.
9404 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
9406 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
9407 instead of build_function_type.
9409 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
9412 * config/i386/i386.md (insv): Change operand 0 constraint to
9413 "register_operand". Change operand 1 and 2 constraint to
9414 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
9415 * config/i386/sse.md (sse4_1_pinsrb): Export.
9416 (sse2_pinsrw): Ditto.
9417 (sse4_1_pinsrd): Ditto.
9418 (sse4_1_pinsrq): Ditto.
9419 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
9420 * config/i386/i386.c (ix86_expand_pinsr): New.
9422 2011-04-20 Easwaran Raman <eraman@google.com>
9424 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
9425 containing union type only with -fstrict-aliasing.
9427 2011-04-20 Jim Meyering <meyering@redhat.com>
9429 Remove useless if-before-free tests.
9430 * calls.c (expand_call, save_area): Likewise.
9431 * cfgcleanup.c (try_forward_edges): Likewise.
9432 * collect2.c (collect_execute): Likewise.
9433 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
9434 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
9435 * coverage.c (coverage_checksum_string): Likewise.
9436 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
9437 * cselib.c (cselib_init): Likewise.
9438 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
9439 (df_set_clean_cfg): Likewise.
9440 * function.c (free_after_compilation): Likewise.
9441 * gcc.c (do_spec_1, main): Likewise.
9442 * gcov.c (create_file_names): Likewise.
9443 * gensupport.c (identify_predicable_attribute): Likewise.
9444 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
9445 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
9446 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
9447 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
9448 * ipa-pure-const.c (local_pure_const): Likewise.
9449 * ipa-reference.c (propagate): Likewise.
9450 * ira-costs.c (free_ira_costs): Likewise.
9451 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
9452 * matrix-reorg.c (mat_free): Likewise.
9453 * prefix.c (get_key_value): Likewise.
9454 * profile.c (compute_value_histograms): Likewise.
9455 * reload1.c (free_reg_equiv): Likewise.
9456 * sched-deps.c (free_deps): Likewise.
9457 * sel-sched-ir.c (fence_clear): Likewise.
9458 * sese.c (set_rename, if_region_set_false_region): Likewise.
9459 * tree-data-ref.c (free_rdg): Likewise.
9460 * tree-eh.c (lower_try_finally): Likewise.
9461 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
9462 * tree-ssa-live.c (delete_var_map): Likewise.
9463 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
9464 * tree-ssa-pre.c (phi_trans_add): Likewise.
9466 2011-04-20 Jakub Jelinek <jakub@redhat.com>
9468 PR tree-optimization/48611
9469 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
9470 beyond ERT_MUST_NOT_THROW region.
9472 2011-04-20 Catherine Moore <clm@codesourcery.com>
9474 * config/mips/mips.opt (mfix-24k): New.
9475 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
9476 * config/mips/mips.md (length): Increase by 4 for stores if
9478 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
9479 all noreorder if fixing 24K errata.
9480 * doc/invoke.texi: Document mfix-24k.
9482 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
9484 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
9485 quad-word modes, reduce to 9-bit index range when above 1016 limit.
9487 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9489 * config/arm/arm.c (arm_gen_constant): Move movw support ....
9490 (const_ok_for_op): ... to here.
9492 2011-04-20 Kai Tietz <ktietz@redhat.com>
9494 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
9495 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
9497 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
9499 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
9501 2011-04-20 Richard Guenther <rguenther@suse.de>
9503 PR tree-optimization/47892
9504 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
9507 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
9509 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
9511 2011-04-20 Tristan Gingold <gingold@adacore.com>
9513 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
9515 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
9519 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
9520 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9521 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
9522 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
9523 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
9525 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
9528 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
9529 (avr_asm_named_section, avr_asm_output_aligned_common,
9530 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
9531 New functions to update...
9532 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
9533 (avr_asm_init_sections): Overwrite section callbacks for
9534 data_section, bss_section.
9535 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
9537 (avr_file_end): ...here.
9539 2011-04-20 Richard Guenther <rguenther@suse.de>
9542 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
9543 objects and types here. Adjust for their offset before comparing.
9545 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9547 * tree-vect-stmts.c (vectorizable_store): Only chain one related
9550 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
9552 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
9553 (GIMPLE_H): Include $(INTERNAL_FN_H).
9554 (OBJS-common): Add internal-fn.o.
9555 (internal-fn.o): New rule.
9556 * internal-fn.def: New file.
9557 * internal-fn.h: Likewise.
9558 * internal-fn.c: Likewise.
9559 * gimple.h: Include internal-fn.h.
9560 (GF_CALL_INTERNAL): New gf_mask.
9561 (gimple_statement_call): Put fntype into a union with a new
9563 (gimple_build_call_internal): Declare.
9564 (gimple_build_call_internal_vec): Likewise.
9565 (gimple_call_same_target_p): Likewise.
9566 (gimple_call_internal_p): New function.
9567 (gimple_call_internal_fn): Likewise.
9568 (gimple_call_fntype): Return null for internal calls.
9569 (gimple_call_set_fntype): Assert that the function is not internal.
9570 (gimple_call_set_fn): Likewise.
9571 (gimple_call_set_fndecl): Likewise.
9572 (gimple_call_set_internal_fn): New function.
9573 (gimple_call_addr_fndecl): Handle null functions.
9574 (gimple_call_return_type): Likewise null types.
9575 * gimple.c (gimple_build_call_internal_1): New function.
9576 (gimple_build_call_internal): Likewise.
9577 (gimple_build_call_internal_vec): Likewise.
9578 (gimple_call_same_target_p): Likewise.
9579 (gimple_call_flags): Handle calls to internal functions.
9580 (gimple_call_fnspec): New function.
9581 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
9582 (gimple_has_side_effects): Handle null functions.
9583 (gimple_rhs_has_side_effects): Likewise.
9584 (gimple_call_copy_skip_args): Handle calls to internal functions.
9585 * cfgexpand.c (expand_call_stmt): Likewise.
9586 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
9587 * gimple-fold.c (gimple_fold_call): Handle null functions.
9588 (gimple_fold_stmt_to_constant_1): Don't fold
9589 calls to internal functions.
9590 * gimple-low.c (gimple_check_call_args): Handle calls to internal
9592 * gimple-pretty-print.c (dump_gimple_call): Likewise.
9593 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
9594 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
9595 (do_warn_unused_result): Likewise.
9596 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
9597 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
9598 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
9599 the target of a call.
9600 (initialize_hash_element): Update accordingly.
9601 (hashable_expr_equal_p): Use gimple_call_same_target_p.
9602 (iterative_hash_hashable_expr): Handle calls to internal functions.
9603 (print_expr_hash_elt): Likewise.
9604 * tree-ssa-pre.c (can_value_number_call): Likewise.
9605 (eliminate): Handle null functions.
9606 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
9607 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
9608 (find_func_aliases): Likewise.
9609 * value-prof.c (gimple_ic_transform): Likewise.
9610 (gimple_indirect_call_to_profile): Likewise.
9611 * lto-streamer-in.c (input_gimple_stmt): Likewise.
9612 * lto-streamer-out.c (output_gimple_stmt): Likewise.
9614 2011-04-19 Jan Hubicka <jh@suse.cz>
9616 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9617 * ipa-inline.c (inline_small_functions): Compute summaries first,
9618 populate heap later.
9620 2011-04-19 Jan Hubicka <jh@suse.cz>
9622 * cgraph.h (save_inline_function_body): Remove.
9623 * ipa-inline-transform.c: New file, broke out of...
9624 * ipa-inline.c: ... this one; Update toplevel comment.
9625 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
9627 (update_noncloned_frequencies): Move to ipa-inline-transform.c
9628 (cgraph_mark_inline_edge): Rename to inline_call; move to
9629 ipa-inline-transform.c.
9630 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
9631 move to ipa-inline-transform.c
9632 (recursive_inlining, inline_small_functions, flatten_function,
9633 ipa_inline, inline_always_inline_functions,
9634 early_inline_small_functions): Update.
9635 (inline_transform): Move to ipa-inline-transform.c.
9636 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
9638 * Makefile.in (ipa-inline-transform.o): New file.
9639 * cgraphunit.c (save_inline_function_body): Move to
9640 ipa-inline-transform.c
9642 2011-04-19 DJ Delorie <dj@redhat.com>
9644 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
9645 registers if we already know there aren't any.
9646 (m32c_emit_epilogue): Don't emit a barrier here.
9647 (m32c_emit_eh_epilogue): Likewise.
9648 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
9649 operands at expand time.
9650 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
9652 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
9653 duplicates. Provide aliases instead.
9654 * config/m32c/prologue.md (eh_return): Emit a barrier here.
9655 (eh_epilogue): Add a "(return)" here as a hint to other parts of
9658 2011-04-19 Anatoly Sokolov <aesok@post.ru>
9660 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
9661 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
9662 (general_or_i64_p, sparc_register_move_cost): New function.
9664 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9666 * doc/install.texi (Configuration, --enable-threads): Remove mach.
9667 Add lynx, mipssde. Sort table.
9669 2011-04-19 Xinliang David Li <davidxl@google.com>
9671 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
9674 2011-04-19 Jakub Jelinek <jakub@redhat.com>
9677 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
9678 is a SUBREG with non-MODE_INT mode inside of it.
9680 2011-04-19 Martin Jambor <mjambor@suse.cz>
9682 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
9683 also according to actual contants.
9684 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
9685 (gimple_fold_call): Use it.
9686 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
9688 2011-04-19 Martin Jambor <mjambor@suse.cz>
9690 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
9691 non-pointer assignments.
9693 2011-04-19 Martin Jambor <mjambor@suse.cz>
9695 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
9696 account anc_offset and otr_type from the indirect edge info.
9697 * ipa-prop.c (get_ancestor_addr_info): New function.
9698 (compute_complex_ancestor_jump_func): Assignment analysis moved to
9699 get_ancestor_addr_info, call it.
9700 (ipa_note_param_call): Do not initialize information about polymorphic
9701 calls, return the indirect call graph edge. Remove the last
9702 parameter, adjust all callers.
9703 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
9704 parameters. Initialize polymorphic information in the indirect edge.
9706 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9709 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
9710 the types if they have different enumeration identifiers.
9712 2011-04-19 Jan Hubicka <jh@suse.cz>
9714 * cgraph.h (cgraph_optimize_for_size_p): Declare.
9715 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
9716 * predict.c (cgraph_optimize_for_size_p): Break out from ...
9717 (optimize_function_for_size_p) ... here.
9719 2011-04-19 Richard Guenther <rguenther@suse.de>
9722 * tree.c (free_lang_data): Do not reset the decl-assembler-name
9725 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
9727 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
9728 if DECL_NO_INLINE_WARNING_P is set on the function.
9730 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
9733 * reload1.c (inc_for_reload): Return void. All callers changed.
9734 (emit_input_reload_insns): Don't try to delete previous output
9735 reloads to a register, or record spill_reg_store for autoincs.
9737 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
9739 * gengtype.h: Updated copyright year.
9740 (struct input_file_st): Add inpisplugin field.
9741 (type_fileloc): New function.
9743 (write_typed_struct_alloc_def): Add gcc_assert.
9744 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
9745 (write_typed_alloc_defns): Don't output for plugin files.
9746 (input_file_by_name): Clear inpisplugin field.
9747 (main): Set inpisplugin field for plugin files.
9749 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
9751 * gengtype-state.c (string_eq): New.
9752 (read_state): Use string_eq instead of strcmp when creating the
9755 2011-04-19 Wei Guozhi <carrot@google.com>
9758 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
9759 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
9761 * config/arm/constraints.md (Uu): New constraint.
9762 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
9764 2011-04-19 Tristan Gingold <gingold@adacore.com>
9766 * config.gcc (-*-*-*vms): Added.
9767 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
9769 * config/vms/vms-ld.c: New file.
9770 * config/vms/vms-ar.c: New file.
9771 * config/vms/t-vmsnative: New file.
9773 2011-04-18 Xinliang David Li <davidxl@google.com>
9775 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
9777 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9780 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
9781 if TREE_TYPE (v) is non-NULL.
9783 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
9784 gimple_get_virt_mehtod_for_binfo.
9785 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
9786 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
9788 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
9790 2011-04-18 Michael Matz <matz@suse.de>
9791 Steve Ellcey <sje@cup.hp.com>
9793 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
9794 use its mode as source mode if it isn't VOIDmode.
9796 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
9798 * doc/passes.texi: Fill crossref nodes.
9800 2011-04-18 Jim Meyering <meyering@redhat.com>
9802 Fix doubled-word typos in comments and strings
9803 * config/alpha/vms-unwind.h: s/for for/for/
9804 * config/arm/unwind-arm.h: Likewise.
9805 * config/microblaze/microblaze.c: Likewise.
9806 * config/sh/constraints.md: s/in in/in/
9807 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
9809 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
9811 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
9812 (AVX_FLOAT_MODE_P): Ditto.
9813 (AVX128_VEC_FLOAT_MODE_P): Ditto.
9814 (AVX256_VEC_FLOAT_MODE_P): Ditto.
9815 (AVX_VEC_FLOAT_MODE_P): Ditto.
9816 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
9817 (UNSPEC_MASKSTORE): Ditto.
9818 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
9819 Merge from <sse>_movmsk<ssemodesuffix> and
9820 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
9821 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
9823 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
9824 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
9825 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
9827 2011-04-18 Jan Hubicka <jh@suse.cz>
9829 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
9831 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
9832 (want_inline_function_called_once_p): Break out the logic from
9834 (edge_badness): Ensure that profile is not misupdated.
9835 (lookup_recursive_calls): Prioritize by call frequencies.
9836 (inline_small_functions): Move program size estimates here;
9837 actually process whole queue even when unit growth has been
9838 met. (to properly compute inline_failed reasons and for the
9839 case unit size decrease.) Revisit comments on recursive inlining.
9840 (ipa_inline): Remove unit summary code; first inline hot calls
9841 of functions called once, cold calls next.
9842 (order, nnodes): Remove unused variables.
9843 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
9844 (GTFILES): Remove ipa-inline.c
9845 * sel-sched.c (fill_insns): Silence uninitialized var warning.
9847 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9849 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
9851 2011-04-18 Jie Zhang <jie@codesourcery.com>
9852 Richard Earnshaw <rearnsha@arm.com>
9854 * arm.c (neon_builtin_type_bits): Remove.
9855 (typedef enum neon_builtin_mode): New.
9856 (T_MAX): Don't define.
9857 (typedef enum neon_builtin_datum): Remove bits, codes[],
9858 num_vars and base_fcode. Add mode, code and fcode.
9859 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
9860 VAR10): Change accordingly.
9861 (neon_builtin_data[]): Change accordingly
9862 (arm_init_neon_builtins): Change accordingly.
9863 (neon_builtin_compare): Remove.
9864 (locate_neon_builtin_icode): Remove.
9865 (arm_expand_neon_builtin): Change accordingly.
9867 * arm.h (enum arm_builtins): Move to ...
9868 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
9870 * arm.c (arm_builtin_decl): Declare.
9871 (TARGET_BUILTIN_DECL): Define.
9872 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
9873 (arm_builtin_decls[]): New.
9874 (arm_init_neon_builtins): Store builtin declarations in
9875 arm_builtin_decls[].
9876 (arm_init_tls_builtins): Likewise.
9877 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
9878 (arm_builtin_decl): New.
9880 2011-04-18 Richard Guenther <rguenther@suse.de>
9882 * tree.c (upper_bound_in_type): Build properly canonicalized
9884 (lower_bound_in_type): Likewise.
9886 2011-04-18 Richard Guenther <rguenther@suse.de>
9888 * gimple.h (gimple_call_addr_fndecl): New function.
9889 (gimple_call_fndecl): Use it.
9890 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
9892 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
9893 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
9895 2011-04-18 Richard Guenther <rguenther@suse.de>
9898 * tree.c (build_string): STRING_CST is now derived from tree_typed.
9900 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
9903 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
9904 DECL_IN_CONSTANT_POOL without RTL.
9906 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
9907 Ira Rosen <ira.rosen@linaro.org>
9910 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
9911 to match neon_vzip/vuzp/vtrn_internal.
9912 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
9913 outputs explicitly dependent on both inputs.
9914 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
9916 2011-04-18 Jakub Jelinek <jakub@redhat.com>
9918 PR tree-optimization/48616
9919 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
9920 whether the shift is by scalar or vector based on whether all SLP
9921 scalar stmts have the same rhs.
9923 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
9925 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
9928 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
9931 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
9934 2011-04-17 Jan Hubicka <jh@suse.cz>
9936 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
9937 * cgrpahunit.c (cgraph_finalize_function): Do not set
9938 finalized_by_frontend.
9939 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
9940 finalized_by_frontend.
9942 2011-04-17 Jan Hubicka <jh@suse.cz>
9944 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
9945 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
9946 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
9947 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
9949 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
9951 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
9953 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
9956 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
9957 is non-null before accessing it.
9958 (input_cgraph): Remove trailing spaces.
9960 2011-04-17 Revital Eres <revital.eres@linaro.org>
9962 * params.def (sms-min-sc): New param flag.
9963 * modulo-sched.c (sms_schedule): Use it.
9964 * doc/invoke.texi (sms-min-sc): Document it.
9966 2011-04-17 Jan Hubicka <jh@suse.cz>
9968 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
9969 present, also set gimple_call_set_cannot_inline.
9970 * ipa-inline.c: Update toplevel comment.
9972 (cgraph_clone_inlined_nodes): Fix linebreaks.
9973 (cgraph_check_inline_limits): Restructure to ...
9974 (caller_growth_limits): ... this one; be more tolerant
9975 on growth in nested inline chains; add explanatory comment;
9976 fix stack accounting thinko introduced by previous patch.
9977 (cgraph_default_inline_p): Remove.
9978 (report_inline_failed_reason): New function.
9979 (can_inline_edge_p): New function.
9980 (can_early_inline_edge_p): New function.
9981 (leaf_node_p): Move upwards in file.
9982 (want_early_inline_function_p): New function.
9983 (want_inline_small_function_p): New function.
9984 (want_inline_self_recursive_call_p): New function.
9985 (cgraph_edge_badness): Rename to ...
9986 (edge_badness) ... this one; fix linebreaks.
9987 (update_edge_key): Update call of edge_baddness; add
9988 detailed dump about queue updates.
9989 (update_caller_keys): Use can_inline_edge_p and
9990 want_inline_small_function_p.
9991 (cgraph_decide_recursive_inlining): Rename to...
9992 (recursive_inlining): Use can_inline_edge_p and
9993 want_inline_self_recursive_call_p; simplify and remove no longer
9995 (cgraph_set_inline_failed): Remove.
9996 (add_new_edges_to_heap): Use can_inline_edge_p and
9997 want_inline_small_function_p.
9998 (cgraph_decide_inlining_of_small_functions): Rename to ...
9999 (inline_small_functions): ... this one; cleanup; use
10000 can/want predicates; cleanup debug ouput; work edges till fibheap
10001 is exhausted and do not stop once unit growth is reached; remove
10002 later loop processing remaining edges.
10003 (cgraph_flatten): Rename to ...
10004 (flatten_function): ... this one; use can_inline_edge_p
10005 and can_early_inline_edge_p predicates.
10006 (cgraph_decide_inlining): Rename to ...
10007 (ipa_inline): ... this one; remove unreachable nodes before
10008 inlining functions called once; simplify the pass.
10009 (cgraph_perform_always_inlining): Rename to ...
10010 (inline_always_inline_functions): ... this one; use
10011 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
10012 (cgraph_decide_inlining_incrementally): Rename to ...
10013 (early_inline_small_functions): ... this one; simplify
10014 using new predicates; cleanup; make dumps prettier.
10015 (cgraph_early_inlining): Rename to ...
10016 (early_inliner): newer inline regular functions into always-inlines;
10017 fix updating of call stmt summaries.
10018 (pass_early_inline): Update for new names.
10019 (inline_transform): Fix formating.
10020 (gate_cgraph_decide_inlining): Rename to ...
10021 (pass_ipa_inline): ... this one.
10022 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
10023 * ipa-inline-analysis.c (dump_inline_summary): Update.
10024 (compute_inline_parameters): Do not compute disregard_inline_limits;
10025 look for mismatching arguments.
10026 (estimate_growth): Fix handlig of non-trivial self recursion.
10027 (inline_read_summary): Do not read info->disregard_inline_limits.
10028 (inline_write_summary): Do not write info->disregard_inline_limits.
10029 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
10030 and move all checks into can_inline_edge_p predicate; re-enable code
10031 comparing optimization levels.
10032 (expand_call_inline): Do not test inline_forbidden_into_p.
10033 * Makefile.in (ipa-inline.o): Update arguments.
10035 2011-04-17 Revital Eres <revital.eres@linaro.org>
10037 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
10039 2011-04-17 Revital Eres <revital.eres@linaro.org>
10041 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
10043 2011-04-17 Michael Matz <matz@suse.de>
10045 PR tree-optimization/48622
10047 * ipa-inline-analysis.c (inline_read_summary): Read size/time
10048 in same order as they're written.
10050 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10052 * config/pa/predicates.md: Reorganize and simplify predicates.
10053 Eliminate duplicate code checks.
10054 (arith_operand): Rename to arith14_operand
10055 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
10056 * config/pa/pa.md: Use renamed operands.
10057 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
10058 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
10059 arith11_operand, adddi3_operand, indexed_memory_operand,
10060 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
10061 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
10062 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
10063 move_dest_operand, move_src_operand, prefetch_cc_operand,
10064 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
10065 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
10066 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
10067 div_operand, int5_operand, movb_comparison_operator,
10068 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
10069 arith_double_operand, ireg_operand, lhs_lshift_operand,
10070 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
10071 integer_store_memory_operand): Likewise.
10072 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
10073 (integer_store_memory_operand, read_only_operand,
10074 function_label_operand, borx_reg_operand,
10075 non_hard_reg_operand): Likewise.
10076 (eq_neq_comparison_operator): Delete unused operator.
10077 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
10078 function_label_operand.
10079 (emit_move_sequence): Likewise.
10081 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10083 * config/i386/sse.md (sseunpackmode): New mode attribute.
10084 (ssepackmode): Ditto.
10085 (vec_pack_trunc_<mode>): Macroize expander from
10086 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
10087 (vec_unpacks_lo_<mode>): Macroize expander from
10088 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10089 (vec_unpacks_hi_<mode>): Macroize expander from
10090 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10091 (vec_unpacku_lo_<mode>): Macroize expander from
10092 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10093 (vec_unpacku_hi_<mode>): Macroize expander from
10094 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
10095 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
10096 ix86_expand_sse4_unpack.
10097 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
10099 2011-04-16 Jan Hubicka <jh@suse.cz>
10101 * cgraphbuild.c: Include ipa-inline.h.
10102 (reset_inline_failed): Use initialize_inline_failed.
10103 * cgraph.c: Include ipa-inline.h.
10104 (cgraph_create_node_1): Do not initialize estimated_growth.
10105 (initialize_inline_failed): More to ipa-inline-analysis.c
10106 (dump_cgraph_node): Do not dump inline flags.
10107 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
10108 and disregard_inline_limits flags.
10109 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
10110 time, size, estimated_growth.
10111 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
10113 * cgraphunit.c (cgraph_decide_is_function_needed): Use
10114 DECL_DISREGARD_INLINE_LIMITS.
10115 (cgraph_analyze_function): Do not initialize
10116 node->local.disregard_inline_limits.
10117 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
10118 inlinable, versionable and disregard_inline_limits.
10119 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
10120 cgraph_check_inline_limits, cgraph_default_inline_p,
10121 cgraph_edge_badness, update_caller_keys, update_callee_keys,
10122 add_new_edges_to_heap): Update.
10123 (cgraph_decide_inlining_of_small_function): Update; set
10124 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
10125 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
10126 cgraph_decide_inlining_incrementally): Update.
10127 * ipa-inline.h (inline_summary): Add inlinable, versionable,
10128 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
10129 time, size and estimated_growth parameters.
10130 (estimate_edge_growth): Update.
10131 (initialize_inline_failed): Declare.
10132 * ipa-split.c: Include ipa-inline.h
10133 (execute_split_functions): Update.
10134 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
10135 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
10136 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
10137 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
10138 estimated_growth to INT_MIN.
10139 (inline_node_duplication_hook): Likewise.
10140 (dump_inline_summary): Dump new fields.
10141 (compute_inline_parameters): Update.
10142 (estimate_edge_time, estimate_time_after_inlining,
10143 estimate_size_after_inlining, estimate_growth, inline_read_summary,
10144 inline_write_summary):
10145 (initialize_inline_failed): Move here from cgraph.c.
10146 * tree-sra.c: Include ipa-inline.h.
10147 (ipa_sra_preliminary_function_checks): Update.
10148 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
10151 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
10153 * config/i386/sse.md (V16): New mode iterator.
10155 (AVXMODEQI, AVXMODEDI): Remove.
10156 (sse2, sse3): New mode attribute.
10157 (mov<mode>): Use V16 mode iterator.
10158 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
10159 (push<mode>1): Use V16 mode iterator.
10160 (movmisalign<mode>): Ditto.
10161 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10162 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
10163 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
10164 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
10165 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
10166 avx_movdqu<avxmodesuffix>.
10167 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
10168 *avx_movdqu<avxmodesuffix>.
10169 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
10170 avx_lddqu<avxmodesuffix>.
10171 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
10172 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
10173 avx_movnt<AVXMODEDI:mode>.
10174 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
10175 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
10177 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
10180 * haifa-sched.c (prune_ready_list, schedule_block): Use
10181 sched_pressure_p rather than flag_sched_pressure.
10183 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
10185 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10186 cgraph_get_node instead of cgraph_get_create_node.
10188 2011-04-15 Jakub Jelinek <jakub@redhat.com>
10190 * cfgexpand.c (expand_debug_expr): Use
10191 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
10193 2011-04-15 Michael Matz <matz@suse.de>
10195 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
10196 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
10197 * function.c (gimplify_parameters): Ditto.
10198 * gimplify.c (gimplify_vla_decl): Ditto.
10200 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
10201 (gimple_call_set_alloca_for_var): New inline function.
10202 (gimple_call_alloca_for_var_p): Ditto.
10203 * gimple.c (gimple_build_call_from_tree): Remember
10204 CALL_ALLOCA_FOR_VAR_P state.
10205 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
10207 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
10208 calls if they were for VLA objects.
10210 2011-04-15 Martin Jambor <mjambor@suse.cz>
10212 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
10215 2011-04-15 Martin Jambor <mjambor@suse.cz>
10217 PR middle-end/48601
10218 * tree-emutls.c (lower_emutls_function_body): Call
10219 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
10220 result is non-NULL.
10222 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
10224 * c-decl.c (detect_field_duplicates): Call
10225 objc_detect_field_duplicates instead of objc_get_interface_ivars.
10227 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
10229 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
10230 * gimple.c (gimple_asm_clobbers_memory_p): Define.
10231 * ipa-pure-const.c (check_stmt): Call it.
10232 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
10234 2011-04-15 Richard Guenther <rguenther@suse.de>
10236 PR tree-optimization/48290
10237 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
10238 Properly decide inhibiting propagation based on the valueized
10239 operand. Do loop-closed SSA form preserving here ...
10240 (init_copy_prop): ... not here.
10242 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
10245 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
10246 (*ieee_smax<mode>3): Likewise.
10248 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10250 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
10251 Replace match_operand with match_dup for the third operand in
10254 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10256 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
10257 to track processing of conditionals. Update all callers.
10258 (try_combine, simplify_if_then_else): Update.
10260 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
10262 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
10265 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
10267 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
10268 instead of match_operand for operand 3.
10270 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
10272 * recog.h (insn_operand_data): Add an "allows_mem" field.
10273 * genoutput.c (output_operand_data): Initialize it.
10274 * optabs.c (maybe_legitimize_operand_same_code): New function.
10275 (maybe_legitimize_operand): Use it when matching the original
10278 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10280 * gimplify.c: Fix issues in comments throughout.
10281 (voidify_wrapper_expr): Fix long line.
10282 (build_stack_save_restore): Likewise.
10283 (gimplify_loop_expr): Likewise.
10284 (gimplify_compound_lval): Likewise.
10285 (gimplify_init_ctor_eval): Likewise.
10286 (gimplify_modify_expr_rhs): Likewise.
10287 (omp_notice_threadprivate_variable): Likewise.
10289 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
10291 * cfgexpand.c (expand_call_stmt): Convert the function type to the
10292 original one if this is not a builtin function.
10294 2011-04-14 Jakub Jelinek <jakub@redhat.com>
10297 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
10298 offset it as needed based on top 2 bits in operands[3], change
10299 MEM mode to SFmode and mask those 2 bits away from operands[3].
10301 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10303 * c-parser.c (c_parser_objc_protocol_definition): Updated for
10304 change from objc_declare_protocols() to objc_declare_protocol().
10306 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
10308 * config/i386/sse.md (sse4_1): New mode attribute.
10309 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
10310 avx_blend<ssemodesuffix><avxmodesuffix> and
10311 sse4_1_blend<ssemodesuffix> using VF mode iterator.
10312 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
10313 avx_blendv<ssemodesuffix><avxmodesuffix> and
10314 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
10315 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
10316 avx_dp<ssemodesuffix><avxmodesuffix> and
10317 sse4_1_dp<ssemodesuffix> using VF mode iterator.
10318 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
10319 (sse4_1_packusdw): Merge with *avx_packusdw.
10320 (sse4_1_pblendvb): Merge with *avx_pblendvb.
10321 (sse4_1_pblendw): Merge with *avx_pblendw.
10322 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
10323 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
10324 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
10326 (sse4_1_round<ssescalarmodesuffix>): Merge with
10327 *avx_round<ssescalarmodesuffix>.
10328 (aesenc): Merge with *avx_aesenc.
10329 (aesenclast): Merge with *avx_aesenclast.
10330 (aesdec): Merge with *avx_aesdec.
10331 (aesdeclast): Merge with *avx_aesdeclast.
10332 (pclmulqdq): Merge with *pclmulqdq.
10333 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
10335 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
10337 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
10339 PR middle-end/48608
10340 * cfgexpand.c (get_decl_align_unit): Renamed to ...
10341 (align_local_variable): This. Update DECL_ALIGN.
10342 (add_stack_var): Updated.
10343 (expand_one_stack_var): Likewise.
10345 2011-04-14 Richard Guenther <rguenther@suse.de>
10347 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
10349 (dse_initialize_block_local_data, dse_leave_block,
10350 record_voperand_set, get_stmt_uid): Likewise.
10351 (dse_possible_dead_store_p): Allow any kind of killing stmt.
10352 (dse_optimize_stmt): Remove voperand set handling code.
10353 Simplify and improve to handle any kind of killing stmt.
10354 (dse_record_phi): Remove.
10355 (dse_enter_block): Simplify.
10356 (tree_ssa_dse): Likewise.
10357 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
10359 2011-04-14 Jan Hubicka <jh@suse.cz>
10361 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
10362 * cgraph.h (struct inline_summary): Move to ipa-inline.h
10363 (cgraph_local_info): Remove inline_summary.
10364 * ipa-cp.c: Include ipa-inline.h.
10365 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
10366 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
10368 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
10369 (input_overwrite_node): Do not set inline summary.
10370 (input_node): Do not stream inline summary.
10371 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
10372 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
10373 growth; we do not have inline parameters computed for that anyway.
10374 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
10375 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
10376 (inline_summary_t): New type and VECtor.
10377 (debug_inline_summary, dump_inline_summaries): Declare.
10378 (inline_summary): Use VOCtor.
10379 (estimate_edge_growth): Kill hack computing call stmt size directly.
10380 * lto-section-in.c (lto_section_name): Add inline section.
10381 * ipa-inline-analysis.c: Include lto-streamer.h
10382 (node_removal_hook_holder, node_duplication_hook_holder): New holders
10383 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
10384 (inline_summary_vec): Define.
10385 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
10386 dump_inline_summaries): New functions.
10387 (estimate_function_body_sizes): Properly compute size/time of outgoing
10389 (compute_inline_parameters): Alloc inline_summary; do not compute
10390 size/time of incomming calls.
10391 (estimate_edge_time): Avoid missing time summary hack.
10392 (inline_read_summary): Read inline summary info.
10393 (inline_write_summary): Write inline summary info.
10394 (inline_free_summary): Free all hooks and inline summary vector.
10395 * lto-streamer.h: Add LTO_section_inline_summary section.
10396 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
10397 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
10399 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10401 * tree-vectorizer.h (vect_strided_store_supported): Add a
10402 HOST_WIDE_INT argument.
10403 (vect_strided_load_supported): Likewise.
10404 (vect_permute_store_chain): Return void.
10405 (vect_transform_strided_load): Likewise.
10406 (vect_permute_load_chain): Delete.
10407 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
10408 count argument. Check that the count is a power of two.
10409 (vect_strided_load_supported): Likewise.
10410 (vect_permute_store_chain): Return void. Update after above changes.
10411 Assert that the access is supported.
10412 (vect_permute_load_chain): Likewise.
10413 (vect_transform_strided_load): Return void.
10414 * tree-vect-stmts.c (vectorizable_store): Update calls after
10415 above interface changes.
10416 (vectorizable_load): Likewise.
10417 (vect_analyze_stmt): Don't check for strided powers of two here.
10419 2011-04-14 Richard Guenther <rguenther@suse.de>
10421 PR tree-optimization/48590
10422 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
10423 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10424 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
10425 BUILT_IN_STACK_SAVE.
10426 * tree-ssa-dce.c (propagate_necessity): Handle
10427 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
10429 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
10431 * c-parser.c (c_parser_objc_class_declaration): Updated call to
10432 objc_declare_class.
10434 2011-04-14 Richard Guenther <rguenther@suse.de>
10436 * tree.h (get_object_alignment_1): Declare.
10437 * builtins.c (get_object_alignment_1): Split out worker from ...
10438 (get_object_alignment): ... here.
10439 * fold-const.c (get_pointer_modulus_and_residue): Use
10440 get_object_alignment_1.
10442 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10444 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
10446 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
10447 parameter. Generalise code to handle arrays as well as vectors.
10448 (vect_setup_realignment): Update accordingly.
10449 * tree-vect-stmts.c (vectorizable_store): Likewise.
10450 (vectorizable_load): Likewise.
10452 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10454 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
10455 within the per-copy loop.
10457 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10459 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
10462 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
10464 * doc/options.texi (Negative): Explicitly mention that the
10465 Negative chain must be circular.
10467 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
10469 * function.h (block_chainon): Declare.
10470 * function.c (block_chainon): Define.
10472 2011-04-14 Anatoly Sokolov <aesok@post.ru>
10473 Eric Weddington <eric.weddington@atmel.com>
10474 Georg-Johann Lay <avr@gjlay.de>
10476 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
10478 (avr_init_builtins, avr_expand_builtin,
10479 avr_expand_delay_cycles, avr_expand_unop_builtin,
10480 avr_expand_binop_builtin ): New functions.
10481 (avr_builtin_id): New enum
10482 (struct avr_builtin_description): New struct
10483 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
10484 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
10486 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
10487 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
10488 UNSPECV_DELAY_CYCLES): new enumeration values
10489 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
10490 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
10491 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
10492 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
10493 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
10494 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
10495 "fmulsu"): New insns
10497 * config/avr/avr-c.c: fix line endings
10498 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
10499 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
10500 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
10501 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
10502 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
10504 * doc/extend.texi (AVR Built-in Functions): New node
10505 (Target Builtins): Add documentation of AVR
10506 built-in functions.
10508 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
10511 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
10512 alone. Error if non-const data has attribute progmem.
10514 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10516 * tree.h (struct tree_constructor): Include tree_typed instead of
10518 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
10519 TS_TYPED instead of TS_COMMON.
10521 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10523 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
10524 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
10525 (sse2_psadbw): Merge with *avx_psadbw.
10526 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
10527 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
10528 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
10529 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
10530 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
10531 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
10532 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
10533 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
10534 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
10535 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
10536 (ssse3_palignrti): Merge with *avx_palignrti.
10538 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10540 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
10541 * tree-ssanames.c (fini_ssanames): VEC_free it.
10542 (make_ssa_name_fn): Update for VECness of free_ssanames.
10543 (release_ssa_name, release_dead_ssa_names): Likewise.
10544 * tree.h (struct tree_ssa_name): Include tree_typed instead of
10546 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
10547 TS_TYPED instead of TS_COMMON.
10549 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10551 * postreload-gcse.c (gcse_after_reload_main): Add calls to
10552 statistics_counter_event.
10553 * tree-ssa-copyrename.c (stats): Define.
10554 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
10555 statistics_counter_event.
10556 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
10557 (bswap_stats, widen_mul_stats): Define.
10558 (insert_reciprocals): Increment rdivs_inserted.
10559 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
10560 rfuncs_inserted. Add calls to statistics_counter_event.
10561 (execute_cse_sincos_1): Increment inserted.
10562 (execute_cse_sincos): Zeroize sincos_stats. Add call to
10563 statistics_counter_event.
10564 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
10565 of bswap_stats. Add calls to statistics_counter_event.
10566 (convert_mult_to_widen): Increment widen_mults_inserted.
10567 (convert_plusminus_to_widen): Increment maccs_inserted.
10568 (convert_mult_to_fma): Increment fmas_inserted.
10569 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
10570 calls to statistics_counter_event.
10572 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
10574 PR rtl-optimization/48455
10575 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
10576 `temp_costs->mem_cost'.
10578 2011-04-13 Jan Hubicka <jh@suse.cz>
10580 * ipa-inline.h: New file.
10581 * ipa-inline-analysis.c: New file. Broken out of ...
10582 * ipa-inline.c: ... this file; update toplevel comment;
10583 include ipa-inline.h
10584 (inline_summary): Move to ipa-inline.h
10585 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
10586 ipa-inline-analysis.c.
10587 (cgraph_estimate_time_after_inlining): Rename to
10588 estiamte_time_after_inlining; move to ipa-inline-analysis.c
10589 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
10590 to estimate_edge_growth.
10591 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
10592 rename to estimate_size_after_inlining.
10593 (cgraph_mark_inline_edge): Update for new naming convention.
10594 (cgraph_check_inline_limits): Likewise.
10595 (cgraph_edge_badness): Likewise.
10596 (cgraph_decide_recursive_inlining): Likewise.
10597 (cgraph_decide_inlining_of_small_functions): Likewise.
10598 (cgraph_decide_inlining_incrementally): Likewise.
10599 (cgraph_estimate_growth): Rename to estimate_growth; move to
10600 ipa-inline-analysis.c.
10601 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
10602 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
10603 (compute_inline_parameters): Likewise.
10604 (compute_inline_parameters_for_current): Likewise.
10605 (pass_inline_parameters): Likewise.
10606 (inline_indirect_intraprocedural_analysis): Likewise.
10607 (analyze_function): Rename to inline_analyze_function; likewise.
10608 (add_new_function): Move to ipa-inline-analysis.c.
10609 (inline_generate_summary): Likewise.
10610 (inline_read_summary): Likewise.
10611 (inline_write_summary): Likewise.
10612 * Makefile.in (ipa-inline-analysis.c): New file.
10614 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10616 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
10617 * configure: Regenerate.
10619 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
10621 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
10622 instead of tree_common.
10623 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
10625 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
10626 TS_TYPED rather than TS_COMMON.
10627 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
10629 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
10632 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
10633 r20 around calls of __tablejump_elpm__
10635 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10637 PR middle-end/48591
10638 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
10640 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
10642 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
10644 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
10645 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
10646 (cfi_vec): New typedef.
10647 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
10648 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
10649 (cie_cfi_vec): New static variable.
10650 (cie_cfi_head): Delete.
10651 (add_cfi): Accept a cfi_vec * as first argument. All callers and
10652 declaration changed. Use vector rather than list operations.
10653 (new_cfi): Don't initialize the dw_cfi_next field.
10654 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
10655 rather than list operations.
10656 (lookup_cfa): Use vector rather than list operations.
10657 (output_cfis): New argument upto. Accept a cfi_vec rather than
10658 a dw_cfi_ref list head as argument. All callers changed.
10659 Iterate over the vector using upto as a maximum index.
10660 (output_all_cfis): New static function.
10661 (output_fde): Use vector rather than list operations. Use the
10662 new upto argument for output_cfis rather than manipulating a
10664 (dwarf2out_begin_prologue): Change initializations to match
10665 new struct members.
10666 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
10667 from the vector length rather than searching for the end of a list.
10668 Use output_all_cfis.
10669 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
10671 2011-04-13 Nick Clifton <nickc@redhat.com>
10673 * config/rx/rx.md (movmemsi): Do not use this pattern when
10674 volatile pointers are involved.
10676 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
10678 * config/i386/sse.md (pinsrbits): Remove.
10679 (sse2_packsswb): Merge with *avx_packsswb.
10680 (sse2_packssdw): Merge with *avx_packssdw.
10681 (sse2_packuswb): Merge with *avx_packuswb.
10682 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
10683 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
10684 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
10685 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
10686 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
10687 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
10688 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
10689 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
10690 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
10691 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
10692 (sse2_loadld): Merge with *avx_loadld.
10693 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
10694 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
10695 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
10696 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
10697 (vec_concatv2di): Merge with *vec_concatv2di_avx.
10699 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
10701 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
10702 calling TREE_CHAIN.
10703 * print-tree.c (print_node): Likewise.
10704 * tree-inline.c (copy_tree_r): Likewise.
10705 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
10706 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
10707 instead of TS_COMMON.
10708 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
10709 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
10710 (copy_node_stat): Zero TREE_CHAIN only if necessary.
10711 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
10712 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
10714 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
10716 (TREE_CHAIN): Check for a TS_COMMON structure.
10717 (TREE_TYPE): Check for a TS_TYPED structure.
10719 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
10721 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
10722 cgraph_get_create_node instead of cgraph_node.
10724 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10726 * c-parser.c (c_parser_initelt): Updated call to
10727 objc_build_message_expr.
10728 (c_parser_postfix_expression): Likewise.
10730 2011-04-12 Kai Tietz <ktietz@redhat.com>
10732 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
10733 MASK_MS_BITFIELD_LAYOUT bit.
10735 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10737 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
10738 assert it is always true.
10739 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
10742 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
10744 * c-parser.c (c_lex_one_token): Rewritten conditional used when
10745 compiling Objective-C to be more efficient.
10747 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
10749 * opts-common.c (decode_cmdline_options_to_array): Remove variable
10752 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10754 * recog.h, genoutput.c, optabs.c: Revert last patch.
10756 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10759 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
10761 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10763 * recog.h (insn_operand_data): Add an "allows_mem" field.
10764 * genoutput.c (output_operand_data): Initialize it.
10765 * optabs.c (maybe_legitimize_operand_same_code): New function.
10766 (maybe_legitimize_operand): Use it when matching the original
10769 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10771 * genpreds.c (process_define_predicate): Move most processing
10772 to gensupport.c. Continue to validate the expression.
10773 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
10774 (process_define_predicate): Move processing to gensupport.c.
10775 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
10776 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
10777 (compute_predicate_codes): Moved from genrecog.c. Add lineno
10779 (valid_predicate_name_p): New function, split out from old
10780 genpreds.c:process_define_predicate.
10781 (process_define_predicate): New function, combining code from
10782 old genpreds.c and genrecog.c functions.
10783 (process_rtx): Call it for DEFINE_PREDICATE and
10784 DEFINE_SPECIAL_PREDICATE.
10786 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
10788 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
10789 size of a '%A' memory reference.
10790 (T_DREG, T_QREG): New neon_builtin_type_bits.
10791 (arm_init_neon_builtins): Assert that the load and store operands
10792 are neon_struct_operands.
10793 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
10794 (NEON_ARG_MEMORY): New builtin_arg.
10795 (neon_dereference_pointer): New function.
10796 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
10797 Handle NEON_ARG_MEMORY.
10798 (arm_expand_neon_builtin): Update after above interface changes.
10799 Use NEON_ARG_MEMORY for loads and stores.
10800 * config/arm/predicates.md (neon_struct_operand): New predicate.
10801 * config/arm/iterators.md (V_two_elem): Tweak formatting.
10802 (V_three_elem): Use BLKmode for accesses that have no associated mode.
10803 (V_four_elem): Tweak formatting.
10804 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
10805 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
10806 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
10807 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
10808 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
10809 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
10810 (neon_vst4<mode>): Replace pointer operand with a memory operand.
10811 Use %A in the output template.
10812 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
10813 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
10814 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
10815 the width of the memory access. Remove post-increment.
10816 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
10818 2011-04-12 Nick Clifton <nickc@redhat.com>
10820 * config/v850/v850.c (expand_prologue): Do not use the CALLT
10821 instruction for interrupt handlers if the target is the basic V850
10823 (expand_epilogue): Likewise.
10825 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10827 PR rtl-optimization/48549
10828 * combine.c (propagate_for_debug): Also stop after BB_END of
10829 this_basic_block. Process LAST and just stop processing after it.
10830 (combine_instructions): If last_combined_insn has been deleted,
10831 set last_combined_insn to its PREV_INSN.
10833 2011-04-12 Richard Guenther <rguenther@suse.de>
10835 PR tree-optimization/46076
10836 * gimple.h (struct gimple_statement_call): Add fntype field.
10837 (gimple_call_fntype): Adjust.
10838 (gimple_call_set_fntype): New function.
10839 * gimple.c (gimple_build_call_1): Set the call function type.
10840 * gimplify.c (gimplify_call_expr): Preserve the function
10841 type the frontend used for the call.
10842 (gimplify_modify_expr): Likewise.
10843 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
10845 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
10847 * tree-ssa.c (useless_type_conversion_p): Function pointer
10848 conversions are useless.
10850 2011-04-12 Martin Jambor <mjambor@suse.cz>
10852 * cgraph.h (cgraph_node): Remove function declaration.
10853 (cgraph_create_node): Declare.
10854 (cgraph_get_create_node): Likewise.
10855 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
10856 Updated all callers.
10857 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
10858 the decl does not already exist. Call cgraph_get_create_node instead
10860 (cgraph_get_create_node): New function.
10861 (cgraph_same_body_alias): Update comment.
10862 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
10863 assert it does not return NULL.
10864 (cgraph_update_edges_for_call_stmt): Likewise.
10865 (cgraph_clone_edge): Likewise.
10866 (cgraph_create_virtual_clone): Likewise.
10867 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
10868 instead of cgraph_node.
10869 (cgraph_add_new_function): Call cgraph_create_node or
10870 cgraph_get_create_node instead of cgraph_node.
10871 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
10872 instead of cgraph_node.
10873 (record_eh_tables): Likewise.
10874 (mark_address): Likewise.
10875 (mark_load): Likewise.
10876 (build_cgraph_edges): Call cgraph_get_create_node instead
10878 (rebuild_cgraph_edges): Likewise.
10879 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
10880 instead of cgraph_node.
10881 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
10883 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
10884 cgraph_create_node instead of cgraph_node.
10885 * c-decl.c (finish_function): Call cgraph_get_create_node instead
10887 * lto-cgraph.c (input_node): Likewise.
10888 * lto-streamer-in.c (input_function): Likewise.
10889 * varasm.c (mark_decl_referenced): Likewise.
10890 (assemble_alias): Likewise.
10892 2011-04-12 Martin Jambor <mjambor@suse.cz>
10894 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
10895 instead of cgraph_node and assert it does not return NULL.
10896 * lto-streamer-in.c (lto_read_body): Likewise.
10897 * omp-low.c (new_omp_context): Likewise.
10898 (create_task_copyfn): Likewise.
10899 * tree-emutls.c (lower_emutls_function_body): Likewise.
10900 * matrix-reorg.c (transform_allocation_sites): Likewise.
10902 2011-04-12 Jakub Jelinek <jakub@redhat.com>
10905 * c-typeck.c (build_asm_expr): Error out on attempts to use
10906 void type outputs or inputs for constraints that allow reg or
10907 don't allow memory.
10909 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
10910 Richard Earnshaw <rearnsha@arm.com>
10913 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
10914 to use sign-magnitude offsets. Reject unsupported unaligned
10915 cases. Add detailed description in comments.
10916 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
10917 condition from TARGET_32BIT to TARGET_ARM.
10919 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
10921 * tree.h (struct typed_tree): New.
10922 (struct tree_common): Include it instead of tree_base.
10923 (TREE_TYPE): Update for new location of type field.
10924 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
10925 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
10926 (union tree_node): Add typed field.
10927 * treestruct.def (TS_TYPED): New.
10928 * lto-streamer.c (check_handled_ts_structures): Handle it.
10929 * tree.c (MARK_TS_TYPED): New macro.
10930 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
10932 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
10934 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
10935 (force_nonfallthru): Do not alter the loop nest if no basic block
10938 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
10940 * config/i386/sse.md (VI): New mode iterator.
10941 (SSEMODEI): Remove.
10942 (AVX256MODEI): Ditto.
10943 (AVXMODEF4P): Ditto.
10944 (avxvecpsmode): Ditto.
10945 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
10946 (sse2_andnot<mode>3): New expander.
10947 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
10948 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
10949 (<any_logic:code><mode>3): Use VI mode iterator.
10950 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
10951 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
10952 (*andnottf3): Handle AVX three-operand constraints.
10953 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
10955 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10956 Robert Millan <rmh@gnu.org>
10958 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
10959 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
10960 GNU_USER_DYNAMIC_LINKER64): Define.
10961 (REG_NAME): Don't undefine.
10962 (MD_UNWIND_SUPPORT): Undefine.
10963 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
10964 (REG_NAME): Don't undefine.
10965 (MD_UNWIND_SUPPORT): Undefine.
10966 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
10968 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10970 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
10971 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
10973 2011-04-11 Xinliang David Li <davidxl@google.com>
10975 * value-profile.c (check_ic_target): New function.
10976 (gimple_ic_transform): Sanity check indirect call target.
10977 * gimple-low.c (gimple_check_call_args): Interface change.
10978 (gimple_check_call_matching_types): New function.
10979 * tree-inline.c (tree_can_inline_p): Call new function.
10981 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
10983 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
10984 tree-pretty-print.h & realmpfr.h.
10986 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
10988 PR middle-end/48464
10989 * ira.c (setup_pressure_classes): Fix typo in loop condition.
10990 (setup_allocno_and_important_classes): Ditto.
10992 2011-04-11 Joseph Myers <joseph@codesourcery.com>
10994 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
10995 GNU_USER_DYNAMIC_LINKER.
10996 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
10997 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
10998 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
10999 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11000 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11001 GNU_USER_TARGET_OS_CPP_BUILTINS.
11002 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
11003 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11004 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11005 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11006 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
11007 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11008 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11009 GNU_USER_TARGET_OS_CPP_BUILTINS.
11010 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11011 GNU_USER_DYNAMIC_LINKER.
11012 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11013 GNU_USER_TARGET_OS_CPP_BUILTINS.
11014 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
11015 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11016 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
11017 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11018 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
11019 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
11020 GNU_USER_DYNAMIC_LINKER64): Remove.
11021 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
11022 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11023 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11024 GNU_USER_DYNAMIC_LINKER.
11025 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11026 GNU_USER_TARGET_OS_CPP_BUILTINS.
11027 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11028 GNU_USER_TARGET_OS_CPP_BUILTINS.
11029 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
11030 to GNU_USER_TARGET_OS_CPP_BUILTINS.
11031 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
11032 GNU_USER_TARGET_OS_CPP_BUILTINS.
11033 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
11034 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
11035 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11036 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
11037 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11038 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11039 GNU_USER_DYNAMIC_LINKER.
11040 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
11041 GNU_USER_TARGET_OS_CPP_BUILTINS.
11042 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
11043 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11044 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11045 GNU_USER_DYNAMIC_LINKER.
11046 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11047 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11048 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
11049 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11050 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11051 GNU_USER_DYNAMIC_LINKER.
11052 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
11053 GNU_USER_DYNAMIC_LINKERN32.
11054 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
11055 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
11056 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
11057 GNU_USER_DYNAMIC_LINKER32.
11058 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
11059 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11060 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11061 GNU_USER_DYNAMIC_LINKER.
11062 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
11063 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11064 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
11065 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11066 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11067 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
11068 GNU_USER_DYNAMIC_LINKER32.
11069 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
11070 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
11071 GNU_USER_DYNAMIC_LINKER.
11072 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
11073 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11074 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11075 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
11076 GNU_USER_DYNAMIC_LINKER64.
11077 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
11078 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11079 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11080 GNU_USER_DYNAMIC_LINKER.
11081 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
11082 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11083 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
11084 GNU_USER_DYNAMIC_LINKER.
11085 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
11086 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11087 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
11088 GNU_USER_DYNAMIC_LINKER32.
11089 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11090 GNU_USER_DYNAMIC_LINKER64.
11091 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
11092 GNU_USER_DYNAMIC_LINKER64.
11093 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
11094 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11095 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
11096 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
11097 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
11099 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11101 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
11102 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
11103 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
11104 GNU_USER_DYNAMIC_LINKER.
11105 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11106 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
11107 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
11108 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
11109 GNU_USER_DYNAMIC_LINKER64.
11110 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
11111 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
11112 GNU_USER_LINK_EMULATION.
11113 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
11114 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
11115 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
11116 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
11117 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
11118 CPP_SPEC, CC1_SPEC): Remove.
11119 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
11120 (GNU_USER_DYNAMIC_LINKER): Define.
11121 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
11122 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
11123 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
11124 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
11125 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
11126 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
11127 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11128 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
11129 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
11130 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
11131 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
11132 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
11133 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
11134 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
11135 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
11136 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
11137 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11138 GNU_USER_DYNAMIC_LINKER.
11139 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11140 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11141 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11142 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11143 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
11144 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
11145 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
11146 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
11147 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
11148 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
11150 2011-04-11 Kai Tietz <ktietz@redhat.com>
11154 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
11155 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
11157 (ix86_is_msabi_thiscall): Removed.
11158 (ix86_is_type_thiscall): Likewise.
11159 (ix86_get_callcvt): New function.
11160 (ix86_comp_type_attributes): Simplify check.
11161 (ix86_function_regparm): Use ix86_get_callcvt for calling
11162 convention attribute checks.
11163 (ix86_return_pops_args): Likewise.
11164 (ix86_static_chain): Likewise.
11165 (x86_this_parameter): Likewise.
11166 (x86_output_mi_thunk): Likewise.
11167 (ix86_function_type_abi): Optimize check for types without attributes.
11168 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
11169 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
11170 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
11172 (IX86_BASE_CALLCVT): Helper macro.
11173 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11174 Use ix86_get_callcvt for calling convention attribute checks and avoid
11175 symbol-decoration for stdcall in TARGET_RTD case.
11176 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
11178 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
11181 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
11183 * config/i386/sse.md (VI_128): New mode iterator.
11184 (VI12_128): Rename from SSEMODE12.
11185 (VI14_128): Rename from SSEMODE14.
11186 (VI124_128): New mode iterator.
11187 (VI24_128): Rename from SSEMODE248.
11188 (VI248_128): Rename from SSEMODE248.
11189 (SSEMODE124C8): Remove.
11190 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11191 (*sse2_<plusminus_insn><mode>3): Merge with
11192 *avx_<plusminus_insn><mode>3.
11193 (*mulv8hi3): Merge with *avx_mulv8hi3.
11194 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
11195 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
11196 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
11197 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
11198 (ashr<mode>3): Merge with *avx_ashr<mode>3.
11199 (lshr<mode>3): Merge with *avx_lshr<mode>3.
11200 (ashl<mode>3): Merge with *avx_ashl<mode>3.
11201 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
11202 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
11203 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11204 (*<smaxmin:code>v8hi3): Ditto.
11205 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
11206 (*<smaxmin:code>v16qi3): Ditto.
11207 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
11208 (*sse2_eq<mode>3): Ditto.
11209 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
11210 (*sse2_gt<mode>3): Ditto.
11211 (vcondv2di): Split out of vcond<mode>.
11212 (vconduv2di): Split out of vcondu<mode>.
11214 2011-04-11 Richard Guenther <rguenther@suse.de>
11216 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
11217 before calling tree_low_cst.
11219 2011-04-11 Richard Guenther <rguenther@suse.de>
11221 * stor-layout.c (layout_type): Compute all array index size operations
11222 in the original type.
11223 (initialize_sizetypes): Add comment.
11224 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
11226 2011-04-11 Joseph Myers <joseph@codesourcery.com>
11228 * common.opt (Tbss=, Tdata=, Ttext=): New options.
11230 2011-04-11 Martin Jambor <mjambor@suse.cz>
11232 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
11233 of cgraph_node, handle NULL return value.
11234 (cgraph_global_info): Likewise.
11235 (cgraph_rtl_info): Likewise.
11236 * tree-inline.c (estimate_num_insns): Likewise.
11237 * gimplify.c (unshare_body): Likewise.
11238 (unvisit_body): Likewise.
11239 (gimplify_body): Likewise.
11240 * predict.c (optimize_function_for_size_p): Likewise.
11241 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11242 (call_may_clobber_ref_p_1): Likewise.
11243 * varasm.c (function_section_1): Likewise.
11244 (assemble_start_function): Likewise.
11246 2011-04-11 Martin Jambor <mjambor@suse.cz>
11248 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
11250 * final.c (rest_of_clean_state): Likewise.
11251 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
11252 * passes.c (pass_init_dump_file): Likewise.
11253 (execute_all_ipa_transforms): Likewise.
11254 (function_called_by_processed_nodes_p): Likewise.
11255 * predict.c (maybe_hot_frequency_p): Likewise.
11256 (probably_never_executed_bb_p): Likewise.
11257 (compute_function_frequency): Likewise.
11258 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
11259 (unnest_nesting_tree_1): Likewise.
11260 (lower_nested_functions): Likewise.
11261 * tree-optimize.c (execute_fixup_cfg): Likewise.
11262 (tree_rest_of_compilation): Likewise.
11263 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
11264 * tree-sra.c (ipa_early_sra): Likewise.
11265 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
11266 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
11267 * ipa.c (record_cdtor_fn): Likewise.
11268 * ipa-inline.c (cgraph_early_inlining): Likewise.
11269 (compute_inline_parameters_for_current): Likewise.
11270 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11271 * ipa-pure-const.c (local_pure_const): Likewise.
11272 * ipa-split.c (split_function): Likewise.
11273 (execute_split_functions): Likewise.
11274 * cgraphbuild.c (build_cgraph_edges): Likewise.
11275 (rebuild_cgraph_edges): Likewise.
11276 (cgraph_rebuild_references): Likewise.
11277 (remove_cgraph_callee_edges): Likewise.
11278 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
11279 (verify_cgraph_node): Likewise.
11280 (cgraph_analyze_functions): Likewise.
11281 (cgraph_preserve_function_body_p): Likewise.
11282 (save_inline_function_body): Likewise.
11283 (save_inline_function_body): Likewise.
11284 * tree-inline.c (copy_bb): Likewise.
11285 (optimize_inline_calls): Likewise.
11287 2011-04-11 Martin Jambor <mjambor@suse.cz>
11289 PR tree-optimization/48195
11290 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
11291 ipa_check_create_edge_args.
11292 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
11293 ipa_check_create_edge_args.
11294 * ipa-inline.c (inline_generate_summary): Do not call
11295 ipa_check_create_node_params and ipa_check_create_edge_args.
11296 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
11297 ipa_check_create_edge_args.
11299 2011-04-09 Anatoly Sokolov <aesok@post.ru>
11301 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
11303 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11304 * function.c (record_hard_reg_sets): Likewise.
11305 * ira.c (compute_regs_asm_clobbered): Likewise.
11306 * sched-deps.c (sched_analyze_1): Likewise.
11307 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
11309 2011-04-09 Xinliang David Li <davidxl@google.com>
11311 PR tree-optimization/PR48484
11312 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
11313 has_valid_pred lazily
11315 2011-04-09 Duncan Sands <baldrick@free.fr>
11317 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
11319 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
11321 * combine.c (combine_validate_cost): Adjust comments. Set registered
11322 cost of I0 to zero at the end, if any.
11324 2011-04-08 Xinliang David Li <davidxl@google.com>
11326 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
11327 to insane profile data.
11329 2011-04-08 Xinliang David Li <davidxl@google.com>
11331 * ipa-cp.c (ipcp_update_profiling): Correct
11332 negative scale factor due to insane profile data.
11334 2011-04-08 Xinliang David Li <davidxl@google.com>
11336 * final.c (dump_basic_block_info): New function.
11337 (final): Dump basic block.
11338 (final_scan_insn): Remove old dump.
11340 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
11343 * config.gcc (i386-*-freebsd): Disable unwind table generation for
11346 2011-04-08 Michael Matz <matz@suse.de>
11348 PR middle-end/48389
11349 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
11351 (rebuild_jump_labels): Call rebuild_jump_labels_1.
11352 * rtl.h (rebuild_jump_labels_chain): Declare.
11353 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
11354 insns inserted on edges.
11356 2011-04-08 Joseph Myers <joseph@codesourcery.com>
11358 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
11359 * config/arm/arm-arches.def: New.
11360 * config/arm/arm-opts.h: New.
11361 * config/arm/genopt.sh: New.
11362 * config/arm/arm-tables.opt: New (generated).
11363 * config/arm/arm.c (arm_handle_option, arm_target_help,
11364 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
11365 (all_architectures): Get most table contents from arm-arches.def.
11366 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
11367 arm_selected_tune here.
11368 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
11369 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
11370 (march=, mcpu=, mtune=): Use Enum and Var.
11371 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
11372 (arm.o): Update dependencies.
11374 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
11376 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
11378 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
11379 (write_typed_alloc_defns): Likewise.
11380 (main): Calls write_typed_alloc_defns with output_header.
11382 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
11384 PR inline-asm/48435
11385 * ira-color.c (setup_profitable_hard_regs): Add comments.
11386 Don't take prohibited hard regs into account.
11387 (setup_conflict_profitable_regs): Rename to
11388 get_conflict_profitable_regs.
11389 (check_hard_reg_p): Check prohibited hard regs.
11391 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
11393 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
11394 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
11395 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
11397 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11400 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
11401 move from floating point to shift amount register.
11402 (emit_move_sequence): Remove secondary reload support for floating
11403 point to shift amount amount register copies.
11404 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
11405 amount register copies.
11406 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
11407 register, return false if mode isn't a scalar integer mode.
11408 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
11410 2011-04-08 Richard Guenther <rguenther@suse.de>
11412 * gimple.c (gimple_call_flags): Remove kludge.
11414 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11416 * sel-sched.c (sel_region_init): Move call to
11417 sel_setup_region_sched_flags after setup_current_loop_nest.
11419 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
11421 PR rtl-optimization/48272
11422 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
11423 init_insn_reg_pressure_info. Adjust a caller.
11424 * sched-int.h (init_insn_reg_pressure_info): Declare.
11425 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
11426 when sched-pressure is enabled.
11428 2011-04-08 Richard Guenther <rguenther@suse.de>
11430 * gimple.c (gimple_set_modified): Do not queue calls to
11431 MODIFIED_NORETURN_CALLS here ...
11432 * tree-ssa-operands.c (update_stmt_operands): ... but here.
11434 2011-04-08 Richard Guenther <rguenther@suse.de>
11437 * toplev.c (lang_dependent_init): Do not open asm_out_file
11438 in WPA mode, nor perform debug machinery initialization.
11439 (finalize): Do not unlink asm_out_file in WPA mode.
11441 2011-04-08 Richard Guenther <rguenther@suse.de>
11443 * gimple.h (gimple_call_fntype): New function.
11444 (gimple_call_return_type): Use it.
11445 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
11446 * gimple-low.c (gimple_check_call_args): Likewise.
11447 * gimple.c (gimple_call_flags): Likewise.
11448 (gimple_call_arg_flags): Likewise.
11449 (gimple_call_return_flags): Likewise.
11450 * tree-cfg.c (verify_gimple_call): Likewise.
11451 (do_warn_unused_result): Likewise.
11452 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
11453 * value-prof.c (gimple_ic_transform): Fix fndecl check.
11455 2011-04-08 Dmitry Melnik <dm@ispras.ru>
11457 PR rtl-optimization/48235
11458 * sel-sched.c (code_motion_process_successors): Recompute the last
11459 insn in basic block if control flow changed.
11460 (code_motion_path_driver): Ditto. Recompute the first insn as well.
11461 Update condition for ilist_remove.
11463 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11465 PR rtl-optimization/48302
11466 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
11467 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
11468 it to record added preheader blocks.
11469 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
11470 on to sel_add_loop_preheaders.
11471 (sel_region_init): Move call to setup_current_loop_nest after
11474 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11477 * cfgloop.h (loop_has_exit_edges): New helper.
11478 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
11480 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
11481 that have no exit edges.
11483 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
11485 PR rtl-optimization/48442
11486 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
11487 all callers. Adjust assert.
11489 2011-04-08 Jakub Jelinek <jakub@redhat.com>
11491 PR tree-optimization/48377
11492 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
11493 is_packed to true even for types with smaller TYPE_ALIGN than
11496 2011-04-08 Richard Guenther <rguenther@suse.de>
11499 * doc/tm.texi: Re-generate.
11501 2011-04-08 Wei Guozhi <carrot@google.com>
11504 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
11505 * config/arm/arm.c (arm_attr_length_push_multi): New function.
11506 * config/arm/arm.md (*push_multi): Change the length computation to
11509 2011-04-08 Anatoly Sokolov <aesok@post.ru>
11511 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
11512 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
11513 * doc/tm.texi: Regenerate.
11514 * system.h (ASM_OUTPUT_BSS): Poison.
11515 * varasm.c (asm_output_bss): Remove function.
11516 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
11518 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
11519 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
11520 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
11521 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11523 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11525 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
11527 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11529 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11531 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
11534 2011-04-07 Joseph Myers <joseph@codesourcery.com>
11536 * config/m68k/m68k.c (m68k_handle_option): Don't handle
11537 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
11538 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
11540 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11541 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
11542 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
11543 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
11544 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
11545 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
11546 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11547 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
11548 options. Don't map other m68k options manually. Don't handle
11549 old-style options as canonical.
11550 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
11551 * doc/install.texi (m68k-*-*): Document binutils version requirement.
11553 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
11555 * basic-block.h (force_nonfallthru): Move to...
11556 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
11557 (force_nonfallthru): ...here.
11558 * cfghooks.c (force_nonfallthru): New function.
11559 * cfgrtl.c (force_nonfallthru): Rename into...
11560 (rtl_force_nonfallthru): ...this.
11561 (commit_one_edge_insertion): Do not set AUX field.
11562 (commit_edge_insertions): Do not discover new basic blocks.
11563 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
11564 (cfg_layout_rtl_cfg_hooks): Likewise.
11565 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
11566 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
11567 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
11569 2011-04-07 Anatoly Sokolov <aesok@post.ru>
11571 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11574 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
11576 * config/i386/sse.md: Update copyright year.
11577 (avxcvtvecmode): Remove.
11578 (sse_movhlps): Merge with *avx_movhlps.
11579 (sse_movlhps): Merge with *avx_movlhps.
11580 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
11581 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
11582 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
11583 (sse_loadhps): Merge with *avx_loadhps.
11584 (sse_storelps): Merge with *avx_storelps.
11585 (sse_loadlps): Merge with *avx_loadlps.
11586 (sse_movss): Merge with *avx_movss.
11587 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
11588 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
11589 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
11590 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
11591 (vec_set<mode>_0): Ditto.
11592 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
11593 (sse4_1_insertps): Merge with *avx_insertps.
11594 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
11595 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
11596 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
11597 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
11598 (sse2_storehpd): Merge with *avx_storehpd.
11599 (sse2_loadhpd): Merge with *avx_loadhpd.
11600 (sse2_loadlpd): Merge with *avx_loadlpd.
11601 (sse2_movsd): Merge with *avx_movsd.
11602 (*vec_concatv2df): Merge with *vec_concatv2df.
11604 2011-04-07 Jakub Jelinek <jakub@redhat.com>
11607 * combine.c (combine_instructions): Add last_combined_insn,
11608 update it if insn is after it, pass it to all try_combine calls.
11609 (try_combine): Add last_combined_insn parameter, pass it instead of
11610 i3 to propagate_for_debug.
11612 2011-04-07 Nick Clifton <nickc@redhat.com>
11614 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
11615 to handle MDR <-> data register transfers.
11616 (movhi_internal): Likewise.
11618 2011-04-07 Alan Modra <amodra@gmail.com>
11620 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
11621 previous stack info.
11623 2011-04-07 Tom de Vries <tom@codesourcery.com>
11626 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
11627 flow_find_cross_jump. Swap variables to implement backward replacement.
11628 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
11630 2011-04-07 Tom de Vries <tom@codesourcery.com>
11633 * cfgcleanup.c (walk_to_nondebug_insn): New function.
11634 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
11636 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
11637 src1 or src2. Redirect edges to the last basic block. Update
11638 frequency and count on multiple basic blocks in case of fallthru.
11640 2011-04-07 Tom de Vries <tom@codesourcery.com>
11643 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
11645 (old_insns_match_p): Change return type. Replace return false/true
11646 with return dir_none/dir_both. Use can_replace_by.
11647 (flow_find_cross_jump): Add dir_p parameter. Init replacement
11648 direction from dir_p. Register replacement direction in dir, last_dir
11649 and afterlast_dir. Handle new return type of old_insns_match_p using
11650 merge_dir. Return replacement direction in dir_p.
11651 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
11652 return type of old_insns_match_p.
11653 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
11654 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
11655 flow_find_cross_jump.
11656 * basic-block.h (enum replace_direction): New type.
11657 (flow_find_cross_jump): Add parameter to declaration.
11659 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11661 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
11662 (AVXMODEDCVTPS2DQ): Ditto.
11663 (VEC_FLOAT_MODE): Ditto.
11664 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
11665 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11666 (<any_logic:code><mode>3): Use VF mode iterator.
11667 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
11668 Use VF mode iterator.
11669 (copysign<mode>3): Use VF mode iterator.
11670 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
11671 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
11672 (*<any_logic:code><MODEF:mode>3): Merge with
11673 *avx_<any_logic:code><MODEF:mode>3.
11674 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
11675 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
11676 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
11677 (avx_cvtdq2ps<avxmodesuffix>): Remove.
11678 (sse2_cvtdq2ps): Use %v modifier.
11679 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
11680 (avx_cvtps2dq<avxmodesuffix>): Remove.
11681 (sse2_cvtps2dq): Use %v modifier.
11682 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
11683 (avx_cvttps2dq<avxmodesuffix>): Remove.
11684 (sse2_cvttps2dq): Use %v modifier.
11685 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
11686 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
11687 (sse2_cvtsd2siq): Fix insn template.
11688 (sse2_cvtsd2siq_2): Ditto.
11689 (sse2_cvttsd2siq): Ditto.
11690 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
11691 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
11693 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11695 * gcov-io.c: Use GCC Runtime Library Exception.
11697 2011-04-06 Jakub Jelinek <jakub@redhat.com>
11700 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
11701 as base_reg whatever register reg has been eliminated to, instead
11702 of hardcoding STACK_POINTER_REGNUM.
11704 2011-04-06 Joseph Myers <joseph@codesourcery.com>
11706 * doc/tm.texi.in: Document C target hooks as separate from general
11708 * doc/tm.texi: Regenerate.
11709 * genhooks.c (struct hook_desc): Add docname field.
11710 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
11712 (hook_array): Include c-target.def.
11713 (emit_documentation): Use docname field in output.
11714 (emit_init_macros): Take docname argument. Only emit definitions
11715 for hooks matching docname.
11716 (main): Expect additional arguments in all cases. Pass argument
11717 to emit_init_macros.
11718 * target.def: Move initial macro definitions and comments to
11719 target-hooks-macros.h.
11720 (gcc_targetcm): Move to c-family/c-target.def.
11721 * target.h (targetcm): Move declaration to c-family/c-target.h.
11722 * targhooks.c (default_handle_c_option): Move to
11724 * targhooks.h (default_handle_c_option): Move declaration to
11725 c-family/c-common.h.
11726 * target-hooks-macros.h: New file.
11727 * config.gcc (target_has_targetcm): Define and use to add to
11728 c_target_objs and cxx_target_objs.
11729 * config/default-c.c: New file.
11730 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
11731 of target.h and target-def.h.
11732 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
11733 (darwin_objc_construct_string, darwin_cfstring_ref_p,
11734 darwin_check_cfstring_format_arg): Make static.
11735 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11736 TARGET_STRING_OBJECT_REF_TYPE_P,
11737 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
11738 * config/darwin-protos.h (darwin_objc_construct_string,
11739 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
11741 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
11742 TARGET_STRING_OBJECT_REF_TYPE_P,
11743 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
11744 * config/t-darwin (darwin-c.o): Update dependencies.
11745 * system.h (TARGET_HAS_TARGETCM): Poison.
11746 * Makefile.in (TARGET_H): Update.
11747 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
11748 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
11749 (default-c.o): New target.
11750 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
11751 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
11752 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
11754 (build/genhooks.o): Update dependencies.
11756 2011-04-06 Richard Guenther <rguenther@suse.de>
11758 * ipa-inline.c (enum inlining_mode): Remove.
11759 (cgraph_flatten): Use some other token.
11760 (cgraph_edge_early_inlinable_p): New function, split out from ...
11761 (cgraph_perform_always_inlining): New function, split out from ...
11762 (cgraph_decide_inlining_incrementally): ... here.
11763 (cgraph_mark_inline_edge): Adjust.
11764 (cgraph_early_inlining): Re-structure.
11765 (pass_early_inline): Require SSA form.
11767 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
11768 Julian Brown <julian@codesourcery.com>
11769 Mark Shinwell <shinwell@codesourcery.com>
11771 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
11772 LO_REGS only for Thumb-1.
11773 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
11774 be used in short instructions when optimising for size on Thumb-2.
11776 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11778 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
11779 associated with user returns to be preserved.
11781 2011-04-06 Tristan Gingold <gingold@adacore.com>
11783 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
11784 symbol_queue_size, DBXOUT_DECR_NESTING,
11785 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
11786 if XCOFF_DEBUGGING_INFO.
11788 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
11790 * config/i386/i386.md (attribute isa): New.
11791 (attribute enabled): New.
11792 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
11793 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
11794 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
11795 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
11796 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
11797 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11798 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
11799 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
11801 * config/i386/sse.md (VF): New mode iterator.
11805 (SSEMODEF4): Remove.
11806 (attribute sse): Handle V8SF and V4DF modes.
11807 (<absneg:code><mode>2): Use VF mode iterator.
11808 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
11810 (<plusminus_insn><mode>3): Use VF mode iterator.
11811 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
11812 Use VF mode iterator.
11813 (<sse>_vm<plusminus_insn><mode>3): Merge with
11814 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
11815 (mul<mode>3): Use VF mode iterator.
11816 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
11817 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
11819 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
11820 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
11821 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
11822 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
11824 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
11825 Use VF1 mode iterator.
11826 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
11827 (sqrt<VF2:mode>2): New expander.
11828 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
11829 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
11830 and sqrtv2df2. Use VF mode iterator.
11831 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
11833 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
11834 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
11835 Use VF1 mode iterator.
11836 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
11837 (<smaxmin:code><mode>3): Use VF mode iterator.
11838 (*<smaxmin:code><mode>3_finite): Merge with
11839 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
11840 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
11841 (<sse>_vm<smaxmin:code><mode>2): Merge with
11842 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
11843 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
11845 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
11847 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
11848 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
11849 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
11850 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
11851 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
11853 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
11854 Use VF_128 mode iterator.
11855 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
11857 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
11858 VF_128 mode iterator.
11859 (vcond<mode>): Use VF mode iterator.
11860 * config/i386/predicates.md (sse_comparison_operator): Merge with
11861 avx_comparison_float_operator. Do not declare as special_predicate.
11862 * config/i386/i386.c (struct builtin_description): Update for renamed
11864 (ix86_expand_args_builtin): Ditto.
11865 (ix86_expand_sse_compare_mask): Ditto.
11867 2011-04-06 Richard Guenther <rguenther@suse.de>
11869 * tree-inline.c (estimate_num_insns): For calls simply account
11870 for all passed arguments and a used return value.
11872 2011-04-06 Richard Guenther <rguenther@suse.de>
11874 PR tree-optimization/47663
11875 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
11876 call_stmt_time fields.
11877 (cgraph_edge_inlinable_p): Declare.
11878 (cgraph_edge_recursive_p): New inline function.
11879 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
11880 (cgraph_clone_edge): Copy it.
11881 * ipa-inline.c (cgraph_estimate_edge_time): New function.
11882 Account for call stmt time.
11883 (cgraph_estimate_time_after_inlining): Take edge argument.
11884 (cgraph_estimate_edge_growth): Account call stmt size.
11885 (cgraph_estimate_size_after_inlining): Take edge argument.
11886 (cgraph_mark_inline_edge): Adjust.
11887 (cgraph_check_inline_limits): Likewise.
11888 (cgraph_recursive_inlining_p): Remove.
11889 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
11890 (cgraph_decide_recursive_inlining): Take edge argument and
11892 (cgraph_decide_inlining_of_small_functions): Do not avoid
11893 diags for recursive inlining here.
11894 (cgraph_flatten): Adjust.
11895 (cgraph_decide_inlining_incrementally): Likewise.
11896 (estimate_function_body_sizes): Remove call cost handling.
11897 (compute_inline_parameters): Initialize caller edge call costs.
11898 (cgraph_estimate_edge_growth): New function.
11899 (cgraph_estimate_growth): Use it.
11900 (cgraph_edge_badness): Likewise.
11901 (cgraph_check_inline_limits): Take an edge argument.
11902 (cgraph_decide_inlining_of_small_functions): Adjust.
11903 (cgraph_decide_inlining): Likewise.
11904 * tree-inline.c (estimate_num_insns): Only account for call
11905 return value if it is used.
11906 (expand_call_inline): Avoid diagnostics on recursive inline
11908 * lto-cgraph.c (lto_output_edge): Output edge call costs.
11909 (input_edge): Input edge call costs.
11911 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11913 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
11915 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
11917 * doc/invoke.texi (Spec Files): Fix typo.
11919 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
11921 * profile.c (branch_prob): Move declaration of local variable. Remove
11922 obsolete ??? comment. Expand the location explicitly instead of using
11923 the LOCATION_FILE and LOCATION_LINE macros.
11925 2011-04-06 Wei Guozhi <carrot@google.com>
11928 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
11929 (arm_cond_branch): Likewise.
11930 (arm_cond_branch_reversed): Likewise.
11931 (arm_jump): Likewise.
11932 (push_multi): Likewise.
11933 * config/arm/constraints.md (Py): New constraint.
11935 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11938 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
11940 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
11941 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
11942 #ifdef DBX_DEBUGGING_INFO.
11944 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
11947 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
11948 if old and new states differ.
11950 2011-04-05 Joseph Myers <joseph@codesourcery.com>
11952 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
11953 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
11954 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
11955 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
11956 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
11957 mcfv4e): Use Alias.
11958 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
11959 ColdFire options to -mcpu= options.
11961 2011-04-05 Jeff Law <law@redhat.com>
11963 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
11964 check if BB is a successor of LOOP->header and return
11965 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
11967 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11969 * cprop.c (struct reg_use): Remove.
11970 (reg_use_table): Make an array of RTX.
11971 (find_used_regs, constprop_register, local_cprop_pass,
11972 bypass_block): Simplify users of reg_use_table.
11973 (cprop_insn): Likewise. Iterate if copy propagation succeeded
11974 on one of the uses found by find_used_regs.
11976 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11979 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
11982 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11984 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
11986 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
11988 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
11990 PR middle-end/48441
11991 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
11993 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
11995 * combine.c: Include obstack.h.
11996 (struct insn_link): Define.
11997 (uid_log_links): Adjust type.
11998 (FOR_EACH_LOG_LINK): New macro.
11999 (insn_link_obstack): Declare.
12000 (alloc_insn_link): Define.
12001 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
12002 type of link variables.
12003 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
12004 (try_combine, record_promoted_values, distribute_notes): Likewise.
12005 (distribute_links): Likewise. Tweak prototype.
12006 (clear_log_links): Delete.
12007 (adjust_for_new_dest): Call alloc_insn_link.
12008 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
12010 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12012 * gcse.c (modify_mem_list): Convert to an array of VECs.
12013 (canon_modify_mem_list, compute_transp): Tweak formatting.
12014 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
12015 (load_killed_in_block_p): Likewise.
12016 (record_last_mem_set_info): Likewise.
12017 (clear_modify_mem_tables): Likewise.
12019 2011-04-05 Tom de Vries <tom@codesourcery.com>
12021 PR middle-end/48461
12022 * function.c (emit_use_return_register_into_block): Only define if
12025 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
12027 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
12029 2011-04-05 Joseph Myers <joseph@codesourcery.com>
12031 * config/rx/rx-opts.h: New.
12032 * config/rx/rx.c (rx_cpu_type): Remove.
12033 (rx_handle_option): Don't assert that global structures are in
12034 use. Access variables via opts pointer. Defer most handling of
12035 OPT_mint_register_. Use error_at.
12036 (rx_option_override): Handle deferred OPT_mint_register_ here.
12037 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
12038 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
12039 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
12040 (rx_cpu_types): New Enum and EnumValue entries.
12041 (mint-register=): Use Defer and use Var accordingly.
12043 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12045 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
12046 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
12047 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
12049 (debug_free_queue, debug_nesting, symbol_queue_index):
12051 * dbxout.c: ...to here. Make static.
12053 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
12055 * gcse.c (modify_pair): Define. Define a VEC of it.
12056 (canon_modify_mem_list): Convert to an array of VECs.
12057 (free_insn_expr_list_list): Delete.
12058 (clear_modify_mem_tables): Call VEC_free instead.
12059 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
12060 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
12061 (canon_list_insert, compute_transp): Likewise.
12063 2011-04-05 Tom de Vries <tom@codesourcery.com>
12066 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
12069 2011-04-05 Tom de Vries <tom@codesourcery.com>
12072 * function.c (emit_use_return_register_into_block): New function.
12073 (thread_prologue_and_epilogue_insns): Use
12074 emit_use_return_register_into_block.
12076 2011-04-05 Tom de Vries <tom@codesourcery.com>
12079 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
12082 2011-04-05 Tom de Vries <tom@codesourcery.com>
12084 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
12086 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
12088 * config/arm/arm.md (define_constants for unspec): Replace with
12090 (define_constants for unspecv): Replace with define_c_enum.
12091 * config/arm/neon.md (define_constants for unspec): Replace with
12094 2011-04-04 Richard Henderson <rth@redhat.com>
12097 * dwarf2out.c (output_line_info): Always emit line info from
12098 at least one section.
12099 (dwarf2out_init): Create text_section_line_info here ...
12100 (set_cur_line_info_table): ... not here.
12102 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
12105 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
12108 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
12110 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
12112 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
12113 (expr_equiv_p): Remove.
12114 (insert_set_in_table): Look at <dest, src> pair instead of expr.
12115 (hash_scan_set): Update call to insert_set_in_table.
12116 (dump_hash_table): Dump <dest, src> pair.
12117 (lookup_set): Simplify. Lookup <dest, src> pair.
12118 (compute_transp): Remove, fold heavily simplified code into...
12119 (compute_local_properties): ...here. Expect COMP and TRANSP
12121 (find_avail_set): Take set directly from struct expr.
12122 (find_bypass-set): Likewise.
12123 (bypass_block): Likewise.
12124 (cprop_insn): Likewise. Remove redundant INSN_P test.
12126 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
12127 checks on form of COND from find_implicit_sets to here.
12128 (find_implicit_sets): Cleanup control flow. Split critical edges
12129 if it exposes implicit sets. Allocate/resize implicit_sets as
12131 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
12132 changed something. Run df_analyze after find_implicit_sets if any
12133 edges were split. Do not allocate implicit_sets here.
12135 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
12136 (gcse_obstack): Renamed to cprop_obstack.
12137 (GNEW, GNEWVEC, GNEWVAR): Remove.
12139 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
12140 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
12141 (gcse_alloc): Likewise, and rename to cprop_alloc.
12142 (alloc_gcse_men, free_gcse_mem): Remove.
12143 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
12144 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
12145 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
12147 * cprop.c (oprs_not_set_p): Remove.
12148 (mark_set, mark_clobber): Remove.
12149 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
12150 (reg_not_set_p): New function.
12151 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
12152 (cprop_insn): Likewise.
12153 (cprop_jump): Use FOR_EACH_EDGE.
12155 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
12158 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
12159 (rank_for_schedule): Use scheduled_insns vector instead of
12160 last_scheduled_insn.
12161 (ok_for_early_queue_removal): Likewise.
12162 (queue_to_ready): Search forward in nonscheduled_insns_begin if
12164 (choose_ready): Likewise.
12165 (commit_schedule): Use VEC_iterate.
12166 (schedule_block): Initialize nonscheduled_insns_begin. If we have
12167 a dbg_cnt, use it and ensure the first insn is in the ready list.
12168 (haifa_sched_init): Allocate scheduled_insns.
12169 (sched_extend_ready_list): Don't allocate it; reserve space.
12170 (haifa_sched_finish): Free it.
12172 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12174 * optc-gen.awk: Always remove type from Variable entry before
12175 recording in var_seen.
12177 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
12179 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
12180 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
12181 call to tidy_fallthru_edges.
12183 2011-04-04 Joseph Myers <joseph@codesourcery.com>
12185 * doc/options.texi (ToLower): Document.
12186 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
12187 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
12188 * opts.h (cl_option): Add cl_tolower field.
12189 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
12190 arguments with lowercase strings.
12191 * config/rx/rx.opt (mcpu=): Add ToLower.
12192 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
12195 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12197 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
12199 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
12201 * config/vax/vax.c: Include reload.h.
12203 2011-04-04 Anatoly Sokolov <aesok@post.ru>
12205 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
12206 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12207 (sparc_preferred_reload_class): New function.
12209 2011-04-04 Jakub Jelinek <jakub@redhat.com>
12212 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12213 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
12215 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
12217 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
12218 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
12220 2011-04-03 Anatoly Sokolov <aesok@post.ru>
12222 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
12223 (ASM_OUTPUT_ALIGNED_BSS): Define.
12225 2011-04-03 Michael Matz <matz@suse.de>
12227 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
12228 and next_slot members.
12229 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
12230 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
12231 (lto_streamer_cache_append): Declare.
12232 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
12233 unsigned index, remove offset parameter, ensure that we append
12234 or update existing entries.
12235 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
12236 parameter, update next_slot for append.
12237 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
12239 (lto_streamer_cache_insert_at): Likewise.
12240 (lto_streamer_cache_append): New function.
12241 (lto_streamer_cache_lookup): Use unsigned index.
12242 (lto_streamer_cache_get): Likewise.
12243 (lto_record_common_node): Don't test tree_node_can_be_shared.
12244 (preload_common_node): Adjust call to lto_streamer_cache_insert.
12245 (lto_streamer_cache_delete): Don't free offsets member.
12246 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
12247 (lto_output_string_with_length): Use lto_output_data_stream.
12248 (lto_output_tree_header): Remove ix parameter, don't write it.
12249 (lto_output_builtin_tree): Likewise.
12250 (lto_write_tree): Adjust callers to above, don't track and write
12251 offset, write unsigned index.
12252 (output_unreferenced_globals): Don't emit all global vars.
12253 (write_global_references): Use unsigned indices.
12254 (lto_output_decl_state_refs): Likewise.
12255 (write_symbol): Likewise.
12256 * lto-streamer-in.c (lto_input_chain): Move earlier.
12257 (input_function): Use unsigned index.
12258 (input_alias_pairs): Don't read and then ignore all global vars.
12259 (lto_materialize_tree): Remove ix_p parameter, don't read index,
12260 don't pass it back, use lto_streamer_cache_append.
12261 (lto_register_var_decl_in_symtab): Use unsigned index.
12262 (lto_register_function_decl_in_symtab): Likewise.
12263 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
12265 (lto_get_builtin_tree): Don't read index, use
12266 lto_streamer_cache_append.
12267 (lto_read_tree): Adjust call to lto_materialize_tree.
12269 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
12270 don't use function calls in arguments to MIN.
12272 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
12275 * gimple.c (gimple_type_leader_entry): Mark deletable.
12277 2011-04-03 Alan Modra <amodra@gmail.com>
12279 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
12281 2011-04-03 Michael Matz <matz@suse.de>
12283 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
12285 * tree.h (tree_decl_non_common.vindex): Adjust comment.
12287 2011-04-03 Michael Matz <matz@suse.de>
12289 * cgraphbuild.c (record_reference): Canonicalize constructor values.
12290 * gimple-fold.c (canonicalize_constructor_val): Accept being called
12291 without function context.
12292 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
12293 current_function_decl and cfun.
12295 2011-04-03 Michael Matz <matz@suse.de>
12297 * tree.c (decl_init_priority_insert): Don't create entry for
12299 (decl_fini_priority_insert): Ditto.
12300 (fields_compatible_p, find_compatible_field): Remove.
12301 * tree.h (fields_compatible_p, find_compatible_field): Remove.
12302 * gimple.c (gimple_compare_field_offset): Adjust block comment.
12304 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
12306 * combine.c (try_combine): Remove useless local variable.
12308 2011-04-03 Richard Guenther <rguenther@suse.de>
12309 Ira Rosen <ira.rosen@linaro.org>
12311 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
12312 non-variable offsets and compare the remaining bases of the two
12313 accesses instead of looking for exact same data-ref.
12315 2011-04-02 Kai Tietz <ktietz@redhat.com>
12318 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
12320 * i386.c (ix86_is_msabi_thiscall): New helper function.
12321 (ix86_is_type_thiscall): New helper function.
12322 (ix86_comp_type_attributes): Handle thiscall for method-functions
12324 (init_cumulative_args): Likewise.
12325 (find_drap_reg): Likewise.
12326 (ix86_static_chain): Likewise.
12327 (x86_this_parameter): Likewise.
12328 (x86_output_mi_thunk): Likewise.
12330 2011-04-01 Olivier Hainque <hainque@adacore.com>
12331 Nicolas Setton <setton@adacore.com>
12332 Eric Botcazou <ebotcazou@adacore.com>
12334 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
12335 (add_gnat_descriptive_type_attribute): New function.
12336 (gen_array_type_die): Call it.
12337 (gen_enumeration_type_die): Likewise.
12338 (gen_struct_or_union_type_die): Likewise.
12339 (modified_type_die): Likewise.
12340 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
12341 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
12342 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
12344 2011-04-01 Jakub Jelinek <jakub@redhat.com>
12347 * dwarf2out.c (resolve_addr): Don't call force_decl_die
12348 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
12351 2011-03-17 Richard Guenther <rguenther@suse.de>
12354 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12355 origin for decls in other ltrans units.
12356 (input_varpool_node): Likewise.
12358 2011-04-01 Jakub Jelinek <jakub@redhat.com>
12360 PR middle-end/48335
12361 * expr.c (expand_assignment): Handle all possibilities
12362 if TO_RTX is CONCAT.
12363 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
12364 (store_split_bit_field): If SUBREG_REG (op0) or
12365 op0 itself has smaller mode than word, return it
12366 for offset 0 and const0_rtx for out-of-bounds stores.
12367 If word is const0_rtx, skip it.
12369 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
12371 * config/h8300/h8300.c (print_operand_address): Rename to...
12372 (h8300_print_operand_address): ...this. Make static. Adjust comments.
12373 Call h8300_print_operand and h8300_print_operand_address instead of
12374 print_operand and print_operand_address. Declare.
12375 (print_operand): Renake to...
12376 (h8300_print_operand): ...this. Make static. Adjust comments.
12377 Call h8300_print_operand instead of print_operand. Declare.
12378 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
12379 (h8300_register_move_cost): Likewise.
12380 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
12381 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
12382 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
12383 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
12384 * config/h8300/h8300-protos.h (print_operand): Delete.
12385 (print_operand_address): Delete.
12387 2011-04-01 Richard Henderson <rth@redhat.com>
12390 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
12391 in strict mode before dwarf4. Re-order tests to early out
12392 before switching sections.
12394 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
12396 * config/h8300/constraints.md: New file.
12397 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
12398 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
12399 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
12400 * config/h8300/predicates.md (bit_operand): Likewise.
12401 (incdec_operand): Use satisfies_constraint_M and
12402 satisfies_constraint_O. Don't use C code block.
12403 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
12404 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
12405 (compute_mov_length): Use satisfies_constraint_G.
12406 (fix_bit_operand): Use satisfies_constraint_U.
12407 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
12408 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
12409 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
12410 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
12411 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
12412 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
12413 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12414 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
12415 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
12416 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
12417 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
12418 (EXTRA_MEMORY_CONSTRAINT): Delete.
12420 2011-04-01 Andrew Pinski <pinskia@gmail.com>
12421 Michael Meissner <meissner@linux.vnet.ibm.com>
12424 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
12425 operands, as per the specifications.
12427 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
12428 (vec_extract_evenv4sf): Ditto.
12429 (vec_extract_evenv8hi): Ditto.
12430 (vec_extract_evenv16qi): Ditto.
12431 (vec_extract_oddv4si): Ditto.
12433 2011-03-31 Mark Wielaard <mjw@redhat.com>
12435 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
12436 high_pc attribute if the CU has no associated code. Only output
12437 DW_AT_entry_pc for CU if not generating strict dwarf and
12440 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
12442 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
12443 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
12445 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
12446 * final.c (final_start_function): Call the new function rather
12447 than using a NULL argument for dwarf2out_frame_debug.
12449 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
12450 that contains the prologue.
12452 * haifa-sched.c (queue_insn): New arg REASON. All callers
12453 changed. Print it in debugging output.
12455 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
12457 * sched-ebb.c (begin_schedule_ready): Remove second argument.
12458 Split most of the code into...
12459 (begin_move_insn): ... here. New function.
12460 (ebb_sched_info): Add a pointer to it.
12461 * haifa-sched.c (scheduled_insns): New static variable.
12462 (sched_extend_ready_list): Allocate it.
12463 (schedule_block): Use it to record the order of scheduled insns.
12464 Perform RTL changes to move insns only after all scheduling
12465 decisions have been made.
12466 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
12467 begin_move_insn field.
12468 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
12469 * sched-int.h (struct haifa_sched_info): Remove second argument
12470 from begin_schedule_ready hook. Add new member begin_move_insn.
12471 * sched-rgn.c (begin_schedule_ready): Remove second argument.
12472 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
12474 * haifa-sched.c (prune_ready_list): New function, broken out of
12476 (schedule_block): Use it.
12478 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12480 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
12482 2011-04-01 Kai Tietz <ktietz@redhat.com>
12484 * config.gcc (*-*-mingw*): Allow as option the
12485 posix threading model.
12486 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
12487 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
12489 (CPP_SPEC): Add pthread/no-pthread handling.
12490 (LIB_SPEC): Likewise.
12491 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
12492 (LIB_SPEC): Likewise.
12493 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
12494 flag to pass -pthread option for shared libgcc build.
12495 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
12496 for shared libgcc build.
12497 * config/i386/t-mingw-pthread: New file.
12498 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
12499 New define to enable use of library pthread by default.
12500 * config/i386/mingw.opt (pthread): New driver option.
12501 (no-pthread): New driver option.
12502 * config/i386/cygming.opt: Make sure trailing empty line is retained.
12503 * config/i386/mingw-w64.opt: Likewise.
12505 2011-04-01 Gary Funck <gary@intrepid.com>
12507 * c-decl.c (grokdeclarator): Fix formatting.
12509 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12511 * expr.c (emit_block_move_via_movmem): Use n_generator_args
12512 instead of n_operands.
12513 (set_storage_via_setmem): Likewise.
12514 * optabs.c (maybe_gen_insn): Likewise.
12515 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
12516 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
12517 (mips_expand_builtin_direct): Likewise.
12518 * config/spu/spu.c (expand_builtin_args): Likewise.
12520 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12522 * recog.h (insn_data_d): Add n_generator_args.
12523 * genoutput.c (data): Likewise.
12524 (output_insn_data): Print it.
12525 (max_opno, num_dups): Delete.
12526 (scan_operands): Just fill in "d->operand[...]".
12527 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
12529 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
12531 * gensupport.h (pattern_stats): New structure.
12532 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
12533 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
12534 (max_operand_1, max_operand_vec): Delete.
12535 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
12537 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
12539 * emit-rtl.c (emit_pattern_after_setloc): New function.
12540 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
12541 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
12542 (emit_pattern_after): New function.
12543 (emit_insn_after, emit_jump_insn_after): Call it.
12544 (emit_call_insn_after, emit_debug_insn_after): Likewise.
12545 (emit_pattern_before_setloc): New function.
12546 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
12547 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
12549 (emit_pattern_before): New function.
12550 (emit_insn_before, emit_jump_insn_before): Call it.
12551 (emit_call_insn_before, emit_debug_insn_before): Likewise.
12553 2011-03-31 Richard Henderson <rth@redhat.com>
12555 * dwarf2out.c (dw_separate_line_info_ref): Remove.
12556 (dw_separate_line_info_entry): Remove.
12557 (enum dw_line_info_opcode): New.
12558 (dw_line_info_entry): Use it.
12559 (dw_line_info_table, dw_line_info_table_p): New.
12560 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
12561 (line_info_table, line_info_label_num): Remove.
12562 (line_info_table_in_use): Remove.
12563 (separate_line_info_table): Remove.
12564 (separate_line_info_table_allocated): Remove.
12565 (separate_line_info_table_in_use): Remove.
12566 (LINE_INFO_TABLE_INCREMENT): Remove.
12567 (line_info_label_num): New.
12568 (cur_line_info_table): New.
12569 (text_section_line_info, cold_text_section_line_info): New.
12570 (separate_line_info): New.
12571 (SEPARATE_LINE_CODE_LABEL): Remove.
12572 (print_dwarf_line_table): Remove.
12573 (debug_dwarf): Don't dump it.
12574 (output_one_line_info_table): New.
12575 (output_line_info): Use it.
12576 (new_line_info_table): New.
12577 (set_cur_line_info_table): New.
12578 (dwarf2out_switch_text_section): Use it.
12579 (dwarf2out_begin_function): Likewise.
12580 (push_dw_line_info_entry): New.
12581 (dwarf2out_source_line): Rewrite for new line info tables.
12582 (dwarf2out_init): Remove dead initailizations.
12584 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12586 * opts.h (cl_option): Add comments to fields. Add bit-fields for
12588 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
12589 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
12590 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
12591 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
12592 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
12593 * opt-functions.awk (flag_init, switch_bit_fields): New.
12594 (switch_flags): Don't handle flags moved to bit-fields. Don't
12595 generate CL_MISSING_OK or CL_SAVE.
12596 * optc-gen.awk: Update to generate bit-field output as well as
12598 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
12599 bit-field instead of CL_REJECT_DRIVER flag.
12600 * opts-common.c (generate_canonical_option,
12601 decode_cmdline_option): Use bit-fields instead of CL_* flags.
12602 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
12603 instead of CL_REJECT_NEGATIVE flag.
12604 * toplev.c (print_switch_values): Use cl_report bit-field instead
12607 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12609 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
12610 a zero minimum index only if it is redundant.
12612 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
12614 PR rtl-optimization/48381
12615 * ira-color.c (assign_hard_reg): Use hard reg set intersection
12616 instead of ira_class_hard_reg_index for calculating conflicting
12619 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
12621 * cprop.c: Clean up hash table building.
12622 (reg_avail_info): Remove.
12623 (oprs_available_p): Remove.
12624 (record_last_reg_set_info): Remove.
12625 (record_last_set_info): Remove.
12626 (reg_available_p): New function.
12627 (gcse_constant_p): Do not treat unfolded conditions as constants.
12628 (make_set_regs_unavailable): New function.
12629 (hash_scan_set): Simplify with new reg_available_p.
12630 (compute_hash_table_work): Traverse insns stream only once.
12631 Do not compute reg_avail_info. Traverse insns in reverse order.
12632 Record implicit sets after recording explicit sets from the block.
12634 2011-03-31 Michael Matz <matz@suse.de>
12636 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
12638 2011-03-31 Anatoly Sokolov <aesok@post.ru>
12640 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
12641 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
12642 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12643 (h8300_mode_dependent_address_p): New function.
12644 (h8300_get_index): Make static.
12646 2011-03-31 Jeff Law <law@redhat.com>
12648 * reload1.c (elimination_effects): Fix typo in recent change.
12650 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
12651 typo potentially leading to null pointer dereference.
12653 * caller-save.c (new_saved_hard_reg): Eliminate return value.
12654 (setup_save_areas): Corresponding changes to avoid useless
12657 * jump.c (reversed_comparison_code_parts): Avoid successive return
12658 statements when REVERSE_CONDITION is defined.
12660 * expr.c (expand_assignment): Avoid useless assignments.
12661 (expand_expr_real_1): Likewise.
12662 (expand_expr_real_2): Avoid useless statements.
12664 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
12666 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
12668 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
12671 * stmt.c (expand_expr_stmt): Avoid useless assignment.
12673 2011-03-31 Joseph Myers <joseph@codesourcery.com>
12676 * doc/tm.texi.in (TARGET_VERSION): Remove.
12677 * doc/tm.texi: Regenerate.
12678 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
12679 * collect2.c (main): Don't use TARGET_VERSION.
12680 * mips-tdump.c (main): Don't use TARGET_VERSION.
12681 * mips-tfile.c (main): Don't use TARGET_VERSION.
12682 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
12683 * config/rs6000/vxworksae.h: Remove.
12684 * config/alpha/alpha.h (TARGET_VERSION): Remove.
12685 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
12686 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
12687 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
12688 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12689 * config/arm/arm.h (TARGET_VERSION): Remove.
12690 * config/arm/coff.h (TARGET_VERSION): Remove.
12691 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
12692 * config/arm/elf.h (TARGET_VERSION): Remove.
12693 * config/arm/freebsd.h (TARGET_VERSION): Remove.
12694 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
12695 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
12696 * config/arm/pe.h (TARGET_VERSION): Remove.
12697 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
12698 * config/arm/semi.h (TARGET_VERSION): Remove.
12699 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
12700 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
12701 * config/arm/vxworks.h (TARGET_VERSION): Remove.
12702 * config/avr/avr.h (TARGET_VERSION): Remove.
12703 * config/bfin/bfin.h (TARGET_VERSION): Remove.
12704 * config/fr30/fr30.h (TARGET_VERSION): Remove.
12705 * config/frv/frv.h (TARGET_VERSION): Remove.
12706 * config/h8300/h8300.h (TARGET_VERSION): Remove.
12707 * config/i386/cygwin.h (TARGET_VERSION): Remove.
12708 * config/i386/darwin.h (TARGET_VERSION): Remove.
12709 * config/i386/darwin64.h (TARGET_VERSION): Remove.
12710 * config/i386/djgpp.h (TARGET_VERSION): Remove.
12711 * config/i386/freebsd.h (TARGET_VERSION): Remove.
12712 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
12713 * config/i386/gnu.h (TARGET_VERSION): Remove.
12714 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
12715 * config/i386/i386elf.h (TARGET_VERSION): Remove.
12716 * config/i386/linux.h (TARGET_VERSION): Remove.
12717 * config/i386/linux64.h (TARGET_VERSION): Remove.
12718 * config/i386/lynx.h (TARGET_VERSION): Remove.
12719 * config/i386/mingw32.h (TARGET_VERSION): Remove.
12720 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
12721 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
12722 * config/i386/netware.h (TARGET_VERSION): Remove.
12723 * config/i386/nto.h (TARGET_VERSION): Remove.
12724 * config/i386/openbsd.h (TARGET_VERSION): Remove.
12725 * config/i386/vxworks.h (TARGET_VERSION): Remove.
12726 * config/ia64/elf.h (TARGET_VERSION): Remove.
12727 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
12728 * config/ia64/hpux.h (TARGET_VERSION): Remove.
12729 * config/ia64/linux.h (TARGET_VERSION): Remove.
12730 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
12731 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
12732 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12733 * config/lm32/lm32.h (TARGET_VERSION): Remove.
12734 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
12735 * config/m32c/m32c.h (TARGET_VERSION): Remove.
12736 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
12737 * config/m32r/m32r.h (TARGET_VERSION): Remove.
12738 * config/m68k/linux.h (TARGET_VERSION): Remove.
12739 * config/m68k/m68k.h (TARGET_VERSION): Remove.
12740 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
12741 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
12742 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
12743 * config/mep/mep.h (TARGET_VERSION): Remove.
12744 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
12745 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
12746 * config/mips/iris6.h (MACHINE_TYPE): Remove.
12747 * config/mips/linux.h (TARGET_VERSION): Remove.
12748 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
12749 * config/mips/vxworks.h (TARGET_VERSION): Remove.
12750 * config/mmix/mmix.h (TARGET_VERSION): Remove.
12751 * config/mn10300/linux.h (TARGET_VERSION): Remove.
12752 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
12753 * config/pa/pa.h (TARGET_VERSION): Remove.
12754 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
12755 * config/picochip/picochip.h (TARGET_VERSION): Remove.
12756 * config/rs6000/aix.h (TARGET_VERSION): Remove.
12757 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
12758 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
12759 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
12760 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
12761 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
12762 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
12763 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
12764 * config/rs6000/linux.h (TARGET_VERSION): Remove.
12765 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
12766 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
12767 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
12768 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
12769 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
12770 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
12771 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
12772 * config/s390/linux.h (TARGET_VERSION): Remove.
12773 * config/s390/s390.h (TARGET_VERSION): Remove.
12774 * config/s390/tpf.h (TARGET_VERSION): Remove.
12775 * config/score/score.h (TARGET_VERSION): Remove.
12776 * config/sh/linux.h (TARGET_VERSION): Remove.
12777 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
12778 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
12779 * config/sh/sh.h (TARGET_VERSION): Remove.
12780 * config/sh/sh64.h (TARGET_VERSION): Remove.
12781 * config/sh/superh.h (TARGET_VERSION): Remove.
12782 * config/sh/vxworks.h (TARGET_VERSION): Remove.
12783 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
12784 * config/sparc/linux.h (TARGET_VERSION): Remove.
12785 * config/sparc/linux64.h (TARGET_VERSION): Remove.
12786 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
12787 TARGET_NAME32, TARGET_NAME): Remove.
12788 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
12789 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
12790 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
12791 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
12792 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
12793 * config/spu/spu.h (TARGET_VERSION): Remove.
12794 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
12795 * config/v850/v850.h (TARGET_VERSION): Remove.
12796 * config/vax/linux.h (TARGET_VERSION): Remove.
12797 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
12798 * config/xtensa/elf.h (TARGET_VERSION): Remove.
12799 * config/xtensa/linux.h (TARGET_VERSION): Remove.
12801 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
12804 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
12805 frame-related from frame-unrelated adjustments to the stack pointer.
12807 2011-03-31 Jakub Jelinek <jakub@redhat.com>
12809 * common.opt (fdebug-types-section): Move earlier.
12810 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
12812 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
12814 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
12817 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
12819 * tree.h (CASE_CHAIN): Define.
12820 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
12821 (gimple_redirect_edge_and_branch): Likewise.
12823 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12825 PR middle-end/48367
12826 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
12829 2011-03-30 Jeff Law <law@redhat.com>
12831 * PR bootstrap/48371
12832 * reload1.c (reload): Fix botch in last change.
12834 * reload.h (struct reload): Fix typo introduced in last change.
12836 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12838 * config/arm/arm.opt (mhard-float, msoft-float): Mark
12839 Undocumented. Remove help text.
12840 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
12843 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12845 * doc/options.texi (NegativeAlias): Document.
12846 (Alias): Mention NegativeAlias.
12847 * opt-functions.awk: Handle NegativeAlias.
12848 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
12849 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
12850 * opts.h (CL_NEGATIVE_ALIAS): Define.
12851 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
12852 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
12854 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
12856 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12857 mno-spe and mno-isel instead of mspe=no and -misel=no.
12859 2011-03-29 Mark Wielaard <mjw@redhat.com>
12861 * common.opt (fdebug-types-section): New flag.
12862 * doc/invoke.texi: Document new -fno-debug-types-section flag.
12863 * dwarf2out.c (use_debug_types): New define.
12864 (struct die_struct): Mark die_id with GTY desc use_debug_types.
12865 (print_die): Guard output of type unit signatures using
12867 (build_abbrev_table): Replace assert of dwarf_version >= 4
12868 with assert on use_debug_types.
12869 (size_of_die): Likewise.
12870 (unmark_dies): Likewise.
12871 (value_format): Decide AT_ref_external form on use_debug_types.
12872 (output_die): Replace dwarf_version version check guard with
12873 use_debug_types where appropriate.
12874 (modified_type_die): Likewise.
12875 (gen_reference_type_die): Likewise.
12876 (dwarf2out_start_source_file): Likewise.
12877 (dwarf2out_end_source_file): Likewise.
12878 (prune_unused_types_walk_attribs): Likewise.
12879 (dwarf2out_finish): Likewise.
12881 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
12883 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
12885 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12887 PR rtl-optimization/48332
12888 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
12889 mode of input operand N and modeN to its actual mode.
12891 2011-03-30 Jeff Law <law@redhat.com>
12893 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
12894 define accessor macro.
12895 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
12896 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
12897 (reg_equiv_init): Likewise.
12898 (reg_equivs_size): New variable.
12899 (reg_equiv_init_size): Remove.
12900 (allocate_initial_values): Move prototype to here from....
12901 * integrate.h (allocate_initial_values): Remove prototype.
12902 * integrate.c: Include reload.h.
12903 (allocate_initial_values): Corresponding changes.
12904 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
12905 (fix_reg_equiv_init, no_equiv): Corresponding changes.
12906 (update_equiv_regs): Corresponding changes.
12907 (ira): Corresponding changes.
12908 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
12909 (push_secondary_reload): Corresponding changes.
12910 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
12911 (make_memloc, find_reloads_address): Corresponding changes.
12912 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
12913 (find_reloads_address_1): Corresponding changes.
12914 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
12915 (refers_to_regno_for_reload_p): Corresponding changes.
12916 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
12917 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
12918 * reload1.c: Include ggc.h.
12919 (grow_reg_equivs): New function.
12920 (replace_pseudos_in, reload): Corresponding changes.
12921 (calculate_needs_all_insns, alter_regs): Corresponding changes.
12922 (eliminate_regs_1, elimination_effects): Corresponding changes.
12923 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
12924 (delete_output_reload): Likewise.
12925 * caller-save.c (mark_referenced_regs): Corresponding changes.
12926 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
12927 * frv/predicates.md (frv_load_operand): Corresponding changes.
12928 * microblaze/microblaze.c (double_memory_operand): Corresponding
12930 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
12931 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
12932 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
12933 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
12934 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
12936 * pa/pa.c (emit_move_sequence): Corresponding changes.
12937 * vax/vax.c (nonindexed_address_p): Corresponding changes.
12939 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12942 * config/arm/arm.c (coproc_secondary_reload_class): Handle
12943 structure modes. Don't check neon_vector_mem_operand for
12944 vector or structure modes.
12946 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
12947 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12950 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
12951 operand 1 and reshuffle the operands to match.
12952 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
12954 2011-03-30 Christian Schüler <cschueler@gmx.de>
12957 * config/c.opt (F): Added 'Driver' to -F option.
12960 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
12962 * config/darwin.opt: Added '-arch' option.
12964 2011-03-30 Nick Clifton <nickc@redhat.com>
12966 * config/rx/rx.md: Add peepholes and patterns to combine
12967 extending loads and simple arithmetic instructions.
12968 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
12969 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
12970 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
12971 modes to use pre-decrement and post-increment addressing.
12972 (rx_is_restricted_memory_address): Add range checking of REG+INT
12974 (rx_print_operand): Add support for %Q. Fix handling of %Q.
12975 (rx_memory_move_cost): Adjust cost of stores.
12976 (rx_adjust_insn_length): New function.
12978 2011-03-30 Jakub Jelinek <jakub@redhat.com>
12981 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12982 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
12983 matching arg00/arg01 types.
12985 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
12987 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
12988 last_location to UNKNOWN_LOCATION.
12990 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
12993 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
12996 2011-03-30 Joseph Myers <joseph@codesourcery.com>
12997 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13000 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
13001 Init(PROCESSOR_V7).
13002 (sparc_cpu): Likewise.
13003 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
13006 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13009 PR middle-end/48342
13010 PR rtl-optimization/48345
13011 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
13012 hard regs for given mode from profitable regs when doing secondary
13015 2011-03-29 Jeff Law <law@redhat.com>
13018 * tree-ssa-threadupdate.c (struct redirection_data): Remove
13019 do_not_duplicate field.
13020 (lookup_redirection_data): Corresponding changes.
13021 (create_duplicates): Always create a template block.
13022 (redirect_edges): Remove code which reused the original block
13023 when it was going to become unreachable code.
13024 (thread_block): Don't set do_not_duplicate field.
13026 2011-03-29 Joseph Myers <joseph@codesourcery.com>
13028 * lto-opts.c (register_user_option_p, lto_register_user_option):
13029 Make type argument unsigned.
13030 * lto-streamer.h (lto_register_user_option): Make type argument
13032 * opth-gen.awk: Make CL_* macros unsigned.
13033 * opts-common.c (find_opt): Make lang_mask argument unsigned.
13034 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
13035 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
13036 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
13037 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
13038 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
13039 (find_opt): Make lang_mask argument unsigned.
13041 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13043 PR rtl-optimization/48331
13044 PR rtl-optimization/48334
13045 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
13046 for any used algorithm.
13048 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
13050 * ira-conflicts.c (build_object_conflicts): Add unused attribute
13053 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
13055 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
13056 (alpha_option_override): Don't set alpha_sr_alias_set.
13057 (emit_frame_store_1): Use gen_frame_mem rather than calling
13059 (alpha_expand_epilogue): Ditto.
13061 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
13063 PR tree-optimization/48290
13064 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
13065 vectorization, check that relevant phis in the basic block after
13066 the inner loop are really inner loop's exit phis.
13068 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
13071 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
13072 (cached_dw_loc_list_def): New structure.
13073 (cached_dw_loc_list): New typedef.
13074 (cached_dw_loc_list_table): New variable.
13075 (cached_dw_loc_list_table_hash): New function.
13076 (cached_dw_loc_list_table_eq): Likewise.
13077 (add_location_or_const_value_attribute): Take a bool cache_p.
13078 Cache the list when the parameter is true.
13079 (gen_formal_parameter_die): Update caller.
13080 (gen_variable_die): Likewise.
13081 (dwarf2out_finish): Likewise.
13082 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
13083 while generating debug info for the decl.
13084 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
13085 (dwarf2out_init): Initialize cached_dw_loc_list_table.
13086 (resolve_addr): Cache the result of resolving a chain of
13089 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
13091 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
13092 conflict object hard regset nodes have intersecting hard reg sets.
13094 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
13095 after regstat_init_n_sets_and_refs.
13097 * ira.c: Add more comments at the top.
13098 (setup_stack_reg_pressure_class, setup_pressure_classes):
13099 Add comments how we compute the register pressure classes.
13100 (setup_allocno_and_important_classes): Add more comments.
13101 (setup_class_translate_array, reorder_important_classes)
13102 (setup_reg_class_relations): Add comments.
13104 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
13107 * ira-color.c: Add 2011 to the Copyright line.
13108 (assign_hard_reg): Add more comments.
13109 (improve_allocation): Ditto.
13111 * ira-costs.c: Add 2011 to the Copyright line.
13112 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
13114 (setup_regno_cost_classes_by_mode): Ditto.
13116 Initial patches from ira-improv branch:
13118 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13120 * ira-build.c (ira_create_object): Remove initialization of
13121 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
13122 (ira_create_allocno): Remove initialization of
13123 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
13124 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
13125 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13126 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
13127 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
13128 Initialize ALLOCNO_ADD_DATA.
13129 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
13130 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
13132 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
13133 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
13135 * ira.c (ira_reallocate): Remove.
13136 (setup_pressure_classes): Call
13137 ira_init_register_move_cost_if_necessary. Use
13138 ira_register_move_cost instead of ira_get_register_move_cost.
13139 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
13140 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
13142 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
13143 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
13144 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
13145 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
13146 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
13147 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
13149 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
13150 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13151 (struct allocno_color_data): New.
13152 (allocno_color_data_t): New typedef.
13153 (allocno_color_data): New definition.
13154 (ALLOCNO_COLOR_DATA): New macro.
13155 (struct object_color_data): New.
13156 (object_color_data_t): New typedef.
13157 (object_color_data): New definition.
13158 (OBJECT_COLOR_DATA): New macro.
13159 (update_copy_costs, calculate_allocno_spill_cost): Call
13160 ira_init_register_move_cost_if_necessary. Use
13161 ira_register_move_cost instead of ira_get_register_move_cost.
13162 (move_spill_restore, update_curr_costs): Ditto.
13163 (allocno_spill_priority): Make it inline.
13164 (color_pass): Allocate and free allocno_color_dat and object_color_data.
13165 (struct coalesce_data, coalesce_data_t): New.
13166 (allocno_coalesce_data): New definition.
13167 (ALLOCNO_COALESCE_DATA): New macro.
13168 (merge_allocnos, coalesced_allocno_conflict_p): Use
13169 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
13170 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
13171 (coalesce_allocnos): Ditto.
13172 (setup_coalesced_allocno_costs_and_nums): Ditto.
13173 (collect_spilled_coalesced_allocnos): Ditto.
13174 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
13175 (setup_slot_coalesced_allocno_live_ranges): Ditto.
13176 (coalesce_spill_slots): Ditto.
13177 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
13178 free allocno_coalesce_data.
13180 * ira-conflicts.c: Fix formatting.
13181 (process_regs_for_copy): Call
13182 ira_init_register_move_cost_if_necessary. Use
13183 ira_register_move_cost instead of ira_get_register_move_cost.
13184 (build_object_conflicts): Optimize.
13186 * ira-costs.c (record_reg_classes): Optimize. Call
13187 ira_init_register_move_cost_if_necessary. Use
13188 ira_register_move_cost, ira_may_move_in_cost, and
13189 ira_may_move_out_cost instead of ira_get_register_move_cost and
13190 ira_get_may_move_cost.
13191 (record_address_regs): Ditto.
13192 (scan_one_insn): Optimize.
13193 (find_costs_and_classes): Optimize.
13194 (process_bb_node_for_hard_reg_moves): Call
13195 ira_init_register_move_cost_if_necessary. Use
13196 ira_register_move_cost instead of ira_get_register_move_cost.
13198 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
13199 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
13200 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
13201 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
13203 (ira_initiate_emit_data, ira_finish_emit_data)
13204 (create_new_allocno): New functions.
13205 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
13206 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
13207 Use ira_register_move_cost instead of ira_get_register_move_cost.
13209 * ira-int.h: Fix some comments.
13210 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
13211 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
13212 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
13213 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
13215 (struct ira_allocno): Make mode and aclass a bitfield. Move other
13216 bitfield after mode. Make hard_regno a short int. Make
13217 hard_regno short. Remove first_coalesced_allocno and
13218 next_coalesced_allocno. Move mem_optimized_dest_p,
13219 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
13220 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
13221 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
13222 temp, colorable_p. Add new member add_data.
13223 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
13224 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
13225 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
13226 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
13227 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
13228 (ALLOCNO_ADD_DATA): New macro.
13229 (ira_emit_data_t): New typedef.
13230 (struct ira_emit_data): New. Move mem_optimized_dest_p,
13231 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
13232 from struct ira_allocno.
13233 (ALLOCNO_EMIT_DATA): New macro.
13234 (ira_allocno_emit_data, allocno_emit_reg): New.
13235 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
13236 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
13237 (OBJECT_ADD_DATA): New macro.
13238 (ira_reallocate): Remove.
13239 (ira_initiate_emit_data, ira_finish_emit_data): New.
13240 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
13241 (ira_init_register_move_cost_if_necessary): New.
13242 (ira_object_conflict_iter_next): Merge into
13243 ira_object_conflict_iter_cond.
13244 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
13246 * ira-live.c (process_single_reg_class_operands): Call
13247 ira_init_register_move_cost_if_necessary. Use
13248 ira_register_move_cost instead of ira_get_register_move_cost.
13250 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
13252 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
13254 * ira-costs.c: Fix formatting.
13255 (cost_classes, cost_classes_num): Remove.
13256 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
13257 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
13258 (cost_classes_del, cost_classes_htab): New.
13259 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
13260 (initiate_regno_cost_classes, setup_cost_classes): New.
13261 (setup_regno_cost_classes_by_aclass): New.
13262 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
13263 (record_reg_classes): Use regno_cost_classes instead of
13264 cost_classes. Move checking opposite operand up.
13265 (record_address_regs): Use regno_cost_classes
13266 instead of cost_classes.
13267 (scan_one_insn): Ditto. Use always general register.
13268 (print_allocno_costs): Use regno_cost_classes instead of
13270 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
13271 (find_costs_and_classes): Set up cost classes for each registers.
13272 Use also their mode for this. Use regno_cost_classes instead of
13274 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
13276 (free_ira_costs, ira_init_costs): Don't use cost_classes.
13277 (ira_costs, ira_set_pseudo_classes): Call
13278 initiate_regno_cost_classes and finish_regno_cost_classes.
13280 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
13282 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
13284 * target.def (ira_cover_classes): Remove.
13286 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
13288 * doc/tm.texi.in: Ditto.
13290 * ira-conflicts.c: Remove mentioning cover classes from the file.
13291 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
13292 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
13294 * targhooks.c (default_ira_cover_classes): Remove.
13296 * targhooks.h (default_ira_cover_classes): Ditto.
13298 * haifa-sched.c: Remove mentioning cover classes from the file.
13299 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13300 ira_pressure_classes and ira_pressure_classes_num instead of
13301 ira_reg_class_cover_size and ira_reg_class_cover. Use
13302 sched_regno_pressure_class instead of sched_regno_cover_class.
13303 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
13304 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13306 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
13307 classes from the file.
13308 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
13309 (struct object_hard_regs, struct object_hard_regs_node): New.
13310 (struct ira_object): New members profitable_hard_regs,
13311 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
13312 (struct ira_allocno): Rename cover_class to aclass. Rename
13313 cover_class_cost and updated_cover_class_cost to class_cost and
13314 updated_class_cost. Remove splay_removed_p and
13315 left_conflict_size. Add new members colorable_p.
13316 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
13317 (ALLOCNO_COLORABLE_P): New macro.
13318 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
13319 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
13320 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
13321 (OBJECT_...): Rename parameter C to O.
13322 (OBJECT_PROFITABLE_HARD_REGS): New macro.
13323 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
13324 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
13325 (struct target_ira_int): New members x_ira_max_memory_move_cost,
13326 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
13327 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
13328 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
13329 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
13330 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
13331 x_ira_reg_class_subunion.
13332 (ira_max_memory_move_cost, ira_max_register_move_cost)
13333 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
13334 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
13335 (ira_important_class_nums, ira_reg_class_superunion): New macros.
13336 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
13337 (ira_reg_class_union): Rename to ira_reg_class_subunion.
13338 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13339 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13340 (ira_tune_allocno_costs_and_cover_classes): Rename to
13341 ira_tune_allocno_costs.
13342 (ira_debug_hard_regs_forest): New.
13343 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
13344 (ira_object_conflict_iter_next): Fix comments.
13345 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
13346 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
13347 cover_class to aclass.
13348 (ira_allocate_and_accumulate_costs): Ditto.
13349 (ira_allocate_and_set_or_copy_costs): Ditto.
13351 * opts.c (decode_options): Remove ira_cover_class check.
13353 * ira-color.c: Remove mentioning cover classes from the file. Use
13354 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
13355 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
13356 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13357 (splay-tree.h): Remove include.
13358 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
13359 before copy_freq_compare_func.
13360 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
13361 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
13363 (hard_regs_roots, hard_regs_node_vec): Ditto.
13364 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
13365 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
13366 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
13367 (create_new_object_hard_regs_node): Ditto.
13368 (add_new_object_hard_regs_node_to_forest): Ditto.
13369 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
13370 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
13372 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
13373 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
13374 (remove_unused_object_hard_regs_nodes): Ditto.
13375 (enumerate_object_hard_regs_nodes): Ditto.
13376 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
13377 (object_hard_regs_subnode_t): Ditto.
13378 (struct object_hard_regs_subnode): Ditto.
13379 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
13380 (setup_object_hard_regs_subnode_index): Ditto.
13381 (get_object_hard_regs_subnodes_num): Ditto.
13382 (form_object_hard_regs_nodes_forest): Ditto.
13383 (finish_object_hard_regs_nodes_tree): Ditto.
13384 (finish_object_hard_regs_nodes_forest): Ditto.
13385 (allocnos_have_intersected_live_ranges_p): Rename to
13386 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13387 (pseudos_have_intersected_live_ranges_p): Rename to
13388 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
13389 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
13390 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
13391 (update_copy_costs): Remove assert. Skip cost update if the hard
13392 reg does not belong the class.
13393 (assign_hard_reg): Process only profitable hard regs.
13394 (uncolorable_allocnos_num): Make it scalar.
13395 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13396 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
13397 and ira_reg_class_max_nregs.
13398 (bucket_allocno_compare_func): Check frequency first.
13399 (sort_bucket): Add compare function as a parameter.
13400 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
13401 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
13402 (push_allocno_to_stack): Rewrite for checking new allocno
13404 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
13405 (push_only_colorable): Pass new parameter to sort_bucket.
13406 (push_allocno_to_spill): Remove.
13407 (allocno_spill_priority_compare): Make it inline and rewrite.
13408 (splay_tree_allocate, splay_tree_free): Remove.
13409 (allocno_spill_sort_compare): New function.
13410 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
13411 build and use splay tree. Choose first allocno in uncolorable
13412 allocno bucket to spill. Remove setting spill cost.
13413 (all_conflicting_hard_regs): Remove.
13414 (setup_allocno_available_regs_num): Check only profitable hard
13415 regs. Print info about hard regs nodes.
13416 (setup_allocno_left_conflicts_size): Remove.
13417 (put_allocno_into_bucket): Don't call
13418 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
13419 (improve_allocation): New.
13420 (color_allocnos): Call setup_profitable_hard_regs,
13421 form_object_hard_regs_nodes_forest, improve_allocation,
13422 finish_object_hard_regs_nodes_forest. Setup spill cost.
13423 (print_loop_title): Use pressure classes.
13424 (color_allocnso): Ditto.
13425 (do_coloring): Remove allocation and freeing splay_tree_node_pool
13426 and allocnos_for_spilling.
13427 (ira_sort_regnos_for_alter_reg): Don't setup members
13428 {first,next}_coalesced_allocno.
13429 (color): Remove allocating and freeing removed_splay_allocno_vec.
13430 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
13431 prohibited_class_mode_regs.
13433 * ira-lives.c: Remove mentioning cover classes from the file. Fix
13435 (update_allocno_pressure_excess_length): Use pressure classes.
13436 (inc_register_pressure, dec_register_pressure): Check for pressure
13438 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
13439 pressure class. Use ira_reg_class_nregs instead of
13440 ira_reg_class_max_nregs.
13441 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
13442 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
13443 (single_reg_class): Use ira_reg_class_nregs instead of
13444 ira_reg_class_max_nregs.
13445 (process_bb_node_lives): Use pressure classes.
13447 * ira-emit.c: Remove mentioning cover classes from the file. Use
13448 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
13449 (change_loop): Use pressure classes.
13450 (modify_move_list): Call ira_set_allocno_class instead of
13451 ira_set_allocno_cover_class.
13453 * ira-build.c: Remove mentioning cover classes from the file. Use
13454 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
13455 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
13456 ALLOCNO_UPDATED_CLASS_COST instead of
13457 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
13458 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
13459 (ira_create_allocno): Remove initialization of
13460 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
13461 ALLOCNO_COLORABLE_P.
13462 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
13463 Update conflict regs for the objects.
13464 (create_cap_allocno): Remove assert. Don't propagate
13465 ALLOCNO_AVAILABLE_REGS_NUM.
13466 (ira_free_allocno_costs): New function.
13467 (finish_allocno): Change a part of code into call of
13468 ira_free_allocno_costs.
13469 (low_pressure_loop_node_p): Use pressure classes.
13470 (object_range_compare_func): Don't compare classes.
13471 (setup_min_max_conflict_allocno_ids): Ditto.
13473 * loop-invariant.c: Remove mentioning cover classes from the file.
13474 Use ira_pressure_classes and ira_pressure_classes_num instead of
13475 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
13476 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
13477 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13478 Use reg_allocno_class instead of reg_cover_class.
13479 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
13480 STACK_REG_COVER_CLASS.
13481 (get_regno_cover_class): Rename to get_regno_pressure_class.
13482 (move_loop_invariants): Initialize and finalize regstat.
13484 * ira.c: Remove mentioning cover classes from the file. Add
13485 comments about coloring without cover classes. Use ALLOCNO_CLASS
13486 instead of ALLOCNO_COVER_CLASS. Fix formatting.
13487 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
13488 setup_class_subset_and_memory_move_costs.
13489 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
13490 (setup_cover_and_important_classes): Rename to
13491 setup_allocno_and_important_classes.
13492 (setup_class_translate_array): New.
13493 (setup_class_translate): Call it for allocno and pressure classes.
13494 (cover_class_order): Rename to allocno_class_order.
13495 (comp_reg_classes_func): Use ira_allocno_class_translate instead
13496 of ira_class_translate.
13497 (reorder_important_classes): Set up ira_important_class_nums.
13498 (setup_reg_class_relations): Set up ira_reg_class_superunion.
13499 (print_class_cover): Rename to print_classes. Add parameter.
13500 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
13501 Print pressure classes too.
13502 (find_reg_class_closure): Rename to find_reg_classes. Don't call
13503 setup_reg_subclasses.
13504 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13505 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13506 (setup_prohibited_class_mode_regs): Use
13507 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
13508 (clarify_prohibited_class_mode_regs): New function.
13509 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
13510 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
13511 (ira_init_once): Initialize them.
13512 (free_register_move_costs): Process them.
13513 (ira_init): Move calls of find_reg_classes and
13514 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
13515 Call clarify_prohibited_class_mode_regs.
13516 (ira_no_alloc_reg): Remove.
13517 (too_high_register_pressure_p): Use pressure classes.
13519 * sched-deps.c: Remove mentioning cover classes from the file.
13520 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
13521 ira_pressure_classes and ira_pressure_classes_num instead of
13522 ira_reg_class_cover_size and ira_reg_class_cover.
13523 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
13524 sched_regno_pressure_class instead of sched_regno_cover_class.
13525 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
13526 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
13528 * ira.h: Add 2010 to Copyright.
13529 (ira_no_alloc_reg): Remove external.
13530 (struct target_ira): Rename x_ira_hard_regno_cover_class,
13531 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
13532 x_ira_class_translate to x_ira_hard_regno_allocno_class,
13533 x_ira_allocno_classes_num, x_ira_allocno_classes, and
13534 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
13535 x_ira_pressure_classes, x_ira_pressure_class_translate, and
13536 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
13537 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
13538 x_ira_no_alloc_regs.
13539 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
13540 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
13541 ira_allocno_classes_num and ira_allocno_classes.
13542 (ira_class_translate): Rename to ira_allocno_class_translate.
13543 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
13544 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
13545 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
13546 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
13547 (ira_no_alloc_regs): New.
13549 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
13550 classes from the file. Use ALLOCNO_CLASS instead of
13551 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
13552 ALLOCNO_COVER_CLASS_COST.
13553 (regno_cover_class): Rename to regno_aclass.
13554 (record_reg_classes): Use ira_reg_class_subunion instead of
13555 ira_reg_class_union.
13556 (record_address_regs): Check overflow.
13557 (scan_one_insn): Ditto.
13558 (print_allocno_costs): Print total mem cost fore regional allocation.
13559 (print_pseudo_costs): Use REG_N_REFS.
13560 (find_costs_and_classes): Use classes intersected with them on the
13561 1st pass. Check overflow. Use ira_reg_class_subunion instead of
13562 ira_reg_class_union. Use ira_allocno_class_translate and
13563 regno_aclass instead of ira_class_translate and regno_cover_class.
13564 Modify code for finding regno_aclass. Setup preferred classes for
13566 (setup_allocno_cover_class_and_costs): Rename to
13567 setup_allocno_class_and_costs. Use regno_aclass instead of
13568 regno_cover_class. Use ira_set_allocno_class instead of
13569 ira_set_allocno_cover_class.
13570 (init_costs, finish_costs): Use regno_aclass instead of
13572 (ira_costs): Use setup_allocno_class_and_costs instead of
13573 setup_allocno_cover_class_and_costs.
13574 (ira_tune_allocno_costs_and_cover_classes): Rename to
13575 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
13576 by processing objects. Use ira_reg_class_max_nregs instead of
13577 ira_reg_class_nregs.
13579 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
13581 * sched-int.h: Remove mentioning cover classes from the file.
13582 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
13584 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
13585 classes from the file.
13586 (struct reg_pref): Rename coverclass into allocnoclass.
13587 (reg_cover_class): Rename to reg_allocno_class.
13589 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
13591 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
13593 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
13595 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
13597 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
13599 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
13601 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
13603 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
13605 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
13607 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
13609 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
13610 (i386_ira_cover_classes): Ditto.
13612 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
13614 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
13616 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
13618 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
13620 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
13622 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
13624 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
13625 (mips_ira_cover_classes): Ditto.
13627 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
13629 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
13631 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
13633 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
13635 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
13637 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
13638 (IRA_COVER_CLASSES_VSX): Ditto.
13640 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
13641 (rs6000_ira_cover_classes): Ditto.
13643 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
13645 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
13647 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
13649 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
13651 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
13653 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
13655 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
13657 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
13659 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
13661 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
13663 2011-03-29 Jakub Jelinek <jakub@redhat.com>
13666 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
13667 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
13668 dw_fde_unlikely_section_end_label, cold_in_std_section,
13669 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
13670 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
13672 (output_fde): Use dw_fde_second_{begin,end} if second is
13673 true, otherwise dw_fde_{begin,end}.
13674 (output_call_frame_info): Test dw_fde_second_begin != NULL
13675 instead of dw_fde_switched_sections.
13676 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
13677 fields, initialize new fields. Initialize in_std_section
13678 unconditionally from the first partition.
13679 (dwarf2out_end_epilogue): Don't override dw_fde_end when
13680 dw_fde_second_begin is non-NULL.
13681 (dwarf2out_switch_text_section): Stop initializing removed
13682 dw_fde_struct fields, initialize new fields, initialize
13683 also dw_fde_end here. Set dw_fde_switch_cfi even when
13684 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
13685 (struct var_loc_list_def): Add last_before_switch field.
13686 (arange_table, arange_table_allocated, arange_table_in_use,
13687 ARANGE_TABLE_INCREMENT, add_arange): Removed.
13688 (size_of_aranges): Count !in_std_section and !second_in_std_section
13689 hunks in fdes, instead of looking at arange_table_in_use.
13690 (output_aranges): Add aranges_length argument, don't call
13691 size_of_aranges here. Instead of using aranges_table*
13692 emit ranges for fdes when !in_std_section resp.
13693 !second_in_std_section.
13694 (dw_loc_list): Break ranges crossing section switch.
13695 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
13696 use dw_fde_second_end instead of dw_fde_end as end of last range.
13697 (gen_subprogram_die): Don't call add_arange. Use
13698 dw_fde_{begin,end} for first partition and if switched
13699 section dw_fde_second_{begin,end} for the second.
13700 (var_location_switch_text_section_1,
13701 var_location_switch_text_section): New functions.
13702 (dwarf2out_begin_function): Initialize cold_text_section even
13703 when function_section () isn't text_section.
13704 (prune_unused_types): Don't walk arange_table.
13705 (dwarf2out_finish): Don't needlessly test
13706 flag_reorder_blocks_and_partition when testing cold_text_section_used.
13707 If info_section_emitted, call size_of_aranges and if it indicates
13708 non-empty .debug_aranges, call output_aranges with the computed
13709 size. Stop using removed dw_fde_struct fields, use
13710 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
13714 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
13715 create ENTRY_VALUE if incoming or address of incoming's MEM
13717 * dwarf2out.c (mem_loc_descriptor): Don't emit
13718 DW_OP_GNU_entry_value of DW_OP_fbreg.
13719 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
13720 on ENTRY_VALUE is able to find the canonical parameter VALUE.
13721 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
13722 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
13724 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
13725 is a REG_P or MEM_P with REG_P address, compute hash directly
13726 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
13727 (preserve_only_constants): Don't clear VALUES forwaring
13728 ENTRY_VALUE to some other VALUE.
13730 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
13732 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
13733 instead of GEN_INT.
13735 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13737 * cfgexpand.c (expand_gimple_cond): Always set the source location and
13738 block before expanding the statement.
13739 (expand_gimple_stmt_1): Likewise. Set them here...
13740 (expand_gimple_stmt): ...and not here. Tidy.
13741 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
13744 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13746 * Makefile.in: New rule for cprop.o.
13747 * gcse.c: Move constant/copy propagation to cprop.c.
13748 (compute_local_properties): Only handle expression tables.
13749 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
13750 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
13751 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
13752 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
13753 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
13754 compute_cprop_data, find_used_regs, try_replace_reg,
13755 find_avail_set, cprop_jump, constprop_register, cprop_insn,
13756 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
13757 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
13758 find_bypass_set, reg_killed_on_edge, bypass_block,
13759 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
13760 execute_rtl_cprop, pass_rtl_cprop): Move to...
13761 * cprop.c: ...here. New file, constant/copy propagation for RTL
13762 moved from gcse.c to here with minor cleanups in duplicated code.
13764 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
13766 * config/i386/i386.c (flag_opts): Fix a typo in
13767 -mavx256-split-unaligned-store.
13769 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13771 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
13772 LIBCALL_VALUE): Remove macros.
13773 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13774 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13775 (h8300_function_value, h8300_libcall_value,
13776 h8300_function_value_regno_p): New functions.
13778 2011-03-28 Anatoly Sokolov <aesok@post.ru>
13780 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
13782 2011-03-28 Jeff Law <law@redhat.com>
13784 * tree-ssa-threadupdate.c (redirect_edges): Call
13785 create_edge_and_update_destination_phis as needed.
13786 (create_edge_and_update_destination_phis): Accept new BB argument.
13787 All callers updated.
13788 (thread_block): Do not update the profile when threading around
13789 intermediate blocks.
13790 (thread_single_edge): Likewise.
13791 (determine_bb_domination_status): If BB is not a successor of the
13792 loop header, return NONDOMINATING.
13793 (register_jump_thread): Note when we register a jump thread around
13794 an intermediate block.
13795 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
13796 (thread_across_edge): Use it.
13798 2011-03-28 Tristan Gingold <gingold@adacore.com>
13800 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
13801 when for_return is 2.
13803 2011-03-28 Jeff Law <law@redhat.com>
13805 * var-tracking.c (canonicalize_values_mark): Delete unused
13807 (canonicalize_values_star, set_variable_part): Likewise.
13808 (clobber_variable_part, delete_variable_part): Likewise.
13810 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
13812 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
13814 2011-03-28 Martin Jambor <mjambor@suse.cz>
13816 * tree-inline.c (expand_call_inline): Do not check that destination
13818 (optimize_inline_calls): Assert that destination node is analyzed.
13819 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
13820 not call tree_lowering_passes.
13821 * cgraph.h (cgraph_analyze_function): Declare.
13822 * cgraphunit.c (cgraph_analyze_function): Make public.
13824 2011-03-28 Joseph Myers <joseph@codesourcery.com>
13826 * config/sparc/sparc-opts.h: New.
13827 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
13828 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
13829 (sparc_option_override): Store processor_type enumeration rather
13830 than string in cpu_default. Remove name and enumeration from
13831 cpu_table. Directly default -mcpu then default -mtune from -mcpu
13832 without using sparc_select. Use target_flags_explicit instead of
13834 * config/sparc/sparc.h (enum processor_type): Move to
13836 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
13837 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
13838 HeaderInclude entry.
13839 (mcpu=, mtune=): Use Var and Enum.
13840 (sparc_processor_type): New Enum and EnumValue entries.
13842 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13843 Iain Sandoe <iains@gcc.gnu.org>
13846 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
13848 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
13850 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
13851 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
13852 Insert new statements at it in lieu of STMT.
13853 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
13854 * tree-vect-stmts.c (vectorizable_store): Likewise.
13855 (vectorizable_load): Likewise.
13857 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
13859 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
13864 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13866 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
13867 unaligned 256bit load/store.
13868 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
13869 (*avx_movdqu<avxmodesuffix>): Likewise.
13871 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13874 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
13875 * config/pa/pa.md (iordi3): Use new predicate in expander.
13876 (iorsi3): Likewise.
13878 2011-03-27 Anatoly Sokolov <aesok@post.ru>
13880 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
13881 FUNCTION_VALUE_REGNO_P): Remove macros.
13882 * config/mips/mips-protos.h (mips_function_value): Remove.
13883 * config/mips/mips.c (mips_function_value): Rename to...
13884 (mips_function_value_1): ... this. Make static. Handle receiving
13885 the function type in 'fn_decl_or_type' argument.
13886 (mips_function_value, mips_libcall_value,
13887 mips_function_value_regno_p): New function.
13888 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13889 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13891 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
13893 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
13894 and -mavx256-split-unaligned-store.
13895 (ix86_option_override_internal): Split 32-byte AVX unaligned
13896 load/store by default.
13897 (ix86_avx256_split_vector_move_misalign): New.
13898 (ix86_expand_vector_move_misalign): Use it.
13900 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
13901 -mavx256-split-unaligned-store.
13903 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
13904 256bit load/store. Generate unaligned store on misaligned memory
13906 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
13908 (*avx_movdqu<avxmodesuffix>): Likewise.
13910 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
13911 -mavx256-split-unaligned-store.
13913 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13916 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
13919 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
13921 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
13922 opno arguments with an expand_operand. Use create_input_operand.
13923 (mips_prepare_builtin_target): Delete.
13924 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
13926 (mips_expand_builtin_direct): Use create_output_operand and
13927 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
13928 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
13929 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
13931 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
13933 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
13935 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
13937 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
13939 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
13940 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
13941 basic blocks and call commit_edge_insertions directly.
13942 (fixup_abnormal_edges): Move from here to...
13943 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
13944 on the edges and return whether some have actually been inserted.
13945 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
13948 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
13950 PR rtl-optimization/48144
13951 * sel-sched-ir.c (merge_history_vect): Factor out from ...
13952 (merge_expr_data): ... here.
13953 (av_set_intersect): Rename to av_set_code_motion_filter.
13954 Update all callers. Call merge_history_vect when an expression
13955 is found in both sets.
13956 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
13958 2011-03-26 Alan Modra <amodra@gmail.com>
13960 * config/rs6000/predicates.md (word_offset_memref_op): Handle
13961 cmodel medium addresses.
13962 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
13963 64-bit gpr loads and stores.
13964 (rs6000_secondary_reload_ppc64): New function.
13965 * config/rs6000/rs6000-protos.h: Declare it.
13966 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
13968 2011-03-26 Alan Modra <amodra@gmail.com>
13971 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
13972 GNU Go in traceback table.
13974 2011-03-25 Richard Henderson <rth@redhat.com>
13976 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
13977 if there are exactly 6 operands.
13978 (set_storage_via_setmem): Similarly.
13980 2011-03-25 Kai Tietz <ktietz@redhat.com>
13982 * collect2.c (write_c_file_stat): Handle backslash
13983 as right-hand directory separator.
13984 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
13985 checking just for slash.
13986 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
13987 instead of checking for trailing slash.
13988 * gcc.c (record_temp_file): Use filename_cmp instead
13990 (do_spec_1): Likewise.
13991 (replace_outfile_spec_function): Likewise.
13992 (is_directory): Use filename_ncmp instead of strncmp.
13993 (print_multilib_info): Likewise.
13994 * gcov.c (find_source): Use filename_cmp instead
13996 (make_gcov_file_name): Fix order of slash/backslash
13998 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
13999 (add_standard_paths): Likewise.
14000 * mips-tfile.c (saber_stop): Handle backslash.
14001 * prefix.c (update_path): Use filename_ncmp instead of
14003 * profile.c (output_location): Use filename_cmp instead
14005 * read-md.c (handle_toplevel_file): Handle backslash.
14006 * tlink.c (frob_extension): Likewise.
14007 * tree-cfg.c (same_line_p): Use filename_cmp instead of
14009 * tree-dump.c (dequeue_and_dump): Handle backslash.
14010 * tree.c (get_file_function_name): Likewise.
14011 * gengtype.c (read_input_list): Likewise.
14012 (get_file_realbasename): Likewise.
14013 (get_output_file_with_visibility): Use filename_cmp
14016 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
14018 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
14021 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14023 * fold-const.c (expr_location_or): New function.
14024 (fold_truth_not_expr): Call it.
14026 2011-03-25 Jeff Law <law@redhat.com>
14028 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
14030 * c-family/c-common.c (def_fn_type): Likewise.
14031 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
14032 * emit-rtl.c (gen_rtvec): Likewise.
14033 * lto/lto-lang.c (def_fn_type): Likewise.
14035 2011-03-25 Richard Guenther <rguenther@suse.de>
14037 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
14038 also generate copies.
14039 (fini_copy_prop): Handle constant values properly.
14041 2011-03-25 Jakub Jelinek <jakub@redhat.com>
14043 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
14044 mode size instead of bitsize with DWARF2_ADDR_SIZE.
14045 (hash_loc_operands, compare_loc_operands): Handle
14046 DW_OP_GNU_entry_value.
14048 2011-03-25 Kai Tietz <ktietz@redhat.com>
14050 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
14051 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
14052 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
14053 comment and use macro TARGET_64BIT_MS_ABI instead.
14054 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
14055 and change default behavior for 32-bit MS_ABI.
14056 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
14057 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
14059 (ix86_cfun_abi): Likewise.
14060 (ix86_maybe_switch_abi): Adjust comment.
14061 (init_cumulative_args): Check for bit-ness in MS_ABI case.
14062 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
14063 instead of checking for SYSV_ABI.
14064 (ix86_nsaved_sseregs): Likewise.
14065 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
14067 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
14068 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
14069 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
14070 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
14071 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
14073 2011-03-25 Richard Guenther <rguenther@suse.de>
14075 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
14076 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14077 (verify_gimple): Remove.
14078 * tree-cfg.c (verify_gimple_call): Merge verification
14080 (verify_gimple_phi): Merge verification from verify_stmts.
14081 (verify_gimple_label): New function.
14082 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
14083 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
14084 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
14085 (verify_stmts): Rename to verify_gimple_in_cfg.
14086 (verify_gimple_in_cfg): New function.
14087 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
14088 * tree-ssa.c (verify_ssa): Likewise.
14089 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
14091 2011-03-25 Richard Guenther <rguenther@suse.de>
14093 * passes.c (init_optimization_passes): Add FRE pass after
14096 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
14097 Andrew Stubbs <ams@codesourcery.com>
14099 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
14101 (arm_movdi_vfp_cortexa8): New pattern.
14102 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
14103 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
14104 instructions when tuning for Cortex-A8. Set attribute "arch".
14105 * config/arm/arm.md: Move include arm-tune.md up a bit.
14106 (define_attr "arch"): Add "onlya8" and "nota8" values.
14107 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
14109 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
14113 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14115 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14116 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14117 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14118 * passes.c (init_optimization_passes): Move
14119 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14121 2011-03-25 Kai Tietz <ktietz@redhat.com>
14123 * c-typeck.c (comptypes_internal): Replace target
14124 hook call of comp_type_attributes by version in tree.c file.
14125 * gimple.c (gimple_types_compatible_p_1): Likewise.
14126 * tree-ssa.c (useless_type_conversion_p): Likewise.
14127 * tree.c (build_type_attribute_qual_variant): Likewise.
14128 (attribute_value_equal): New static helper function.
14129 (comp_type_attributes): New function.
14130 (merge_attributes): Use attribute_value_equal for comparison.
14131 (attribute_list_contained): Likewise.
14132 * tree.h (comp_type_attributes): New prototype.
14134 2011-03-25 Richard Guenther <rguenther@suse.de>
14136 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
14137 of complex types at -O0.
14138 (verify_gimple_assign_binary): Likewise.
14139 (verify_gimple_assign_ternary): Likewise.
14141 2011-03-24 Mark Wielaard <mjw@redhat.com>
14143 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
14144 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
14146 2011-03-24 Mark Wielaard <mjw@redhat.com>
14149 * dwarf2out.c (output_abbrev_section): Only write table when
14150 abbrev_die_table_in_use > 1.
14152 2011-02-24 Richard Henderson <rth@redhat.com>
14154 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
14155 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
14156 (alpha_expand_unaligned_load_words): Use extql.
14157 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
14158 (emit_insxl): Handle all modes for consistency.
14160 2011-02-24 Richard Henderson <rth@redhat.com>
14162 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
14163 (alpha_expand_unaligned_load): Likewise.
14164 (alpha_expand_unaligned_store): Likewise.
14165 (alpha_expand_unaligned_load_words): Likewise.
14166 (alpha_expand_unaligned_store_words): Likewise.
14167 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
14168 (alpha_split_lock_test_and_set_12): Likewise.
14169 (print_operand, alpha_fold_builtin_extxx): Likewise.
14170 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
14171 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
14172 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
14173 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
14174 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
14175 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
14176 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
14177 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
14178 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
14179 (extwl, extll, extql): Similarly.
14180 (inswh, inslh, insqh): Similarly.
14181 (mskbl, mskwl, mskll, mskql): Similarly.
14182 (mskwh, msklh, mskqh): Similarly.
14184 2011-02-24 Richard Henderson <rth@redhat.com>
14186 * config/alpha/alpha.md (attribute isa): Add er, ner.
14187 (attribute enabled): Handle them.
14188 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
14190 2011-02-24 Richard Henderson <rth@redhat.com>
14192 * config/alpha/alpha.md (attribute isa): Add vms.
14193 (attribute enabled): Handle it.
14194 (*movsf): Merge *movsf_{nofix,fix,nofp}.
14195 (*movdf): Merge *movdf_{nofix,fix,nofp}.
14196 (*movtf): Rename from *movtf_internal for consistency.
14197 (*movsi): Merge with *movsi_nt_vms.
14198 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
14199 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
14200 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
14201 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
14203 2011-02-24 Richard Henderson <rth@redhat.com>
14205 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
14206 (extendqisi2, extendhisi2): Likewise.
14207 (extendqidi2): Simplify BWX/non-BWX expansions.
14208 (extendhidi2): Similarly.
14210 2011-02-24 Richard Henderson <rth@redhat.com>
14212 * config/alpha/alpha.md (attribute isa): New.
14213 (attribute enabled): New.
14214 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
14215 (zero_extendqisi2, zero_extendqidi2): Similarly.
14216 (zero_extendhisi2, zero_extendhidi2): Similarly.
14217 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
14219 2011-02-24 Richard Henderson <rth@redhat.com>
14221 * config/alpha/predicates.md (input_operand): Revert last change;
14222 update comment to mention 32-bit VMS rather than Windows.
14224 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14226 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
14227 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
14228 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
14229 * passes.c (init_optimization_passes): Move
14230 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
14232 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14234 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
14236 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14238 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
14241 2011-03-24 Jakub Jelinek <jakub@redhat.com>
14244 * simplify-rtx.c (simplify_const_unary_operation): Call
14245 real_convert when changing mode class with FLOAT_EXTEND.
14247 2011-03-24 Nick Clifton <nickc@redhat.com>
14249 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
14250 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
14251 * config/rx/rx.c (rx_option_override): Set align_jumps,
14252 align_loops and align_labels if not set by the user.
14253 (rx_align_for_label): New function.
14254 (rx_max_skip_for_label): New function.
14255 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
14256 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
14257 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
14258 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
14259 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
14261 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14263 PR rtl-optimization/48263
14264 * optabs.c (expand_binop_directly): Reinstate convert_modes code
14265 and original commutative_p handling. Use maybe_gen_insn.
14267 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14269 * reload.c (find_reloads_subreg_address): Add address_reloaded
14270 parameter and return true there if the full address has been
14272 (find_reloads_toplev): Pass address_reloaded flag.
14273 (find_reloads_address_1): Don't use address_reloaded parameter.
14275 2011-03-24 Jeff Law <law@redhat.com>
14277 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
14278 unused variable "ann".
14279 (remove_unused_locals): Likewise.
14281 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
14284 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
14287 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14289 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
14290 for invalid symbolic addresses.
14291 (s390_secondary_reload): Don't use s390_check_symref_alignment for
14294 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14296 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
14297 the argument in calls to fold_truth_not_expr.
14299 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14301 * tree.c (record_node_allocation_statistics): New function.
14302 (make_node_stat, copy_node_stat, build_string): Call it.
14303 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
14304 (build1_stat, build_omp_clause): Likewise.
14306 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14308 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
14311 2011-03-24 Richard Guenther <rguenther@suse.de>
14313 PR tree-optimization/48271
14314 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
14315 blocks that still exist.
14317 2011-03-24 Richard Guenther <rguenther@suse.de>
14319 PR tree-optimization/48270
14320 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
14321 not free datarefs before ddrs.
14323 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
14325 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
14326 from the address built for a reference with variable offset.
14328 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
14331 * config/i386/i386.md (*movdf_internal_rex64): Do not split
14332 alternatives that can be handled with movq or movabsq insn.
14333 (*movdf_internal): Disable for !TARGET_64BIT.
14334 (*movdf_internal_nointeger): Ditto.
14335 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
14337 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
14339 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
14340 (FUNCTION_ARG_ADVANCE): Likewise.
14341 * tm.texi.in: Change references to them to hook references.
14342 * tm.texi: Regenerate.
14343 * targhooks.c (default_function_arg): Eliminate check for target macro.
14344 (default_function_incoming_arg): Likewise.
14345 (default_function_arg_advance): Likewise.
14346 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
14347 (function_arg_advance): Likewise.
14348 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
14350 2011-03-24 Richard Guenther <rguenther@suse.de>
14352 PR middle-end/48269
14353 * tree-object-size.c (addr_object_size): Do not double-account
14354 for MEM_REF offsets.
14356 2011-03-24 Diego Novillo <dnovillo@google.com>
14358 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
14359 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
14360 (lto_input_data_block): Move from lto-opts.c. Make extern.
14362 (lto_input_string): Rename from input_string. Make extern.
14364 * lto-streamer-out.c (lto_output_string_with_length): Rename from
14365 output_string_with_length.
14366 Output 0 to indicate a non-NULL string. Update all callers to
14368 (lto_output_string): Rename from output_string. Make extern.
14370 (lto_output_decl_state_streams): Make extern.
14371 (lto_output_decl_state_refs): Make extern.
14372 * lto-streamer.h (lto_input_string): Declare.
14373 (lto_input_data_block): Declare.
14374 (lto_output_string): Declare.
14375 (lto_output_string_with_length): Declare.
14376 (lto_output_decl_state_streams): Declare.
14377 (lto_output_decl_state_refs): Declare.
14379 2011-03-24 Richard Guenther <rguenther@suse.de>
14381 PR tree-optimization/46562
14382 * tree.c (build_invariant_address): New function.
14383 * tree.h (build_invariant_address): Declare.
14384 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
14385 a renamed function moved ...
14386 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
14387 Take valueization callback parameter.
14388 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
14389 * gimple-fold.h: New file.
14390 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
14391 (ccp_fold, fold_const_aggregate_ref,
14392 fold_ctor_reference, fold_nonarray_ctor_reference,
14393 fold_array_ctor_reference, fold_string_cst_ctor_reference,
14394 get_base_constructor): Move ...
14395 * gimple-fold.c: ... here.
14396 (gimple_fold_stmt_to_constant_1): New function
14397 split out from ccp_fold. Take a valueization callback parameter.
14398 Valueize all operands.
14399 (gimple_fold_stmt_to_constant): New wrapper function.
14400 (fold_const_aggregate_ref_1): New function split out from
14401 fold_const_aggregate_ref. Take a valueization callback parameter.
14402 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
14403 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
14404 invariant POINTER_PLUS_EXPRs to invariant form.
14405 (vn_valueize): New function.
14406 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
14407 * tree-vrp.c (vrp_valueize): New function.
14408 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
14409 to fold statements to constants.
14410 * tree-ssa-pre.c (eliminate): Properly guard propagation of
14411 function declarations.
14412 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
14413 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
14415 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
14417 * config/h8300/predicates.md (jump_address_operand): Fix register
14420 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
14422 * doc/invoke.texi (max-stores-to-sink): Document.
14423 * params.h (MAX_STORES_TO_SINK): Define.
14424 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
14425 if either vectorization or if-conversion is disabled.
14426 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
14427 tree-vect-data-refs.c vect_equal_offsets.
14428 (dr_equal_offsets_p): New function.
14429 (find_data_references_in_bb): Remove static.
14430 * tree-data-ref.h (find_data_references_in_bb): Declare.
14431 (dr_equal_offsets_p): Likewise.
14432 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
14433 (vect_drs_dependent_in_basic_block): Update calls to
14434 vect_equal_offsets.
14435 (vect_check_interleaving): Likewise.
14436 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
14437 (cond_if_else_store_replacement): Rename to...
14438 (cond_if_else_store_replacement_1): ... this. Change arguments and
14440 (cond_if_else_store_replacement): New function.
14441 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
14442 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
14444 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
14447 * config/arm/arm.md (casesi): Use the gen_int_mode() function
14448 to subtract lower bound instead of GEN_INT().
14450 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
14455 * doc/extend.texi (Alignment): Move section to match order in TOC.
14456 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
14457 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
14459 2011-03-23 Jeff Law <law@redhat.com>
14461 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
14462 before removing the edge.
14464 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
14465 it may have been freed by redirect_branch_edge or
14466 redirect_edge_succ_nodup.
14468 2011-03-23 Richard Guenther <rguenther@suse.de>
14470 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
14471 (check_va_list_escapes): Likewise.
14472 (check_all_va_list_escapes): Likewise.
14474 2011-03-23 Richard Guenther <rguenther@suse.de>
14476 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
14477 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
14478 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
14479 (alias.o): Likewise.
14480 (ipa-type-escape.o): Remove.
14481 (ipa-struct-reorg.o): Likewise.
14482 (GTFILES): Remove ipa-struct-reorg.c.
14483 * alias.c: Do not include ipa-type-escape.h.
14484 * tree-ssa-alias.c: Likewise.
14485 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
14486 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
14487 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
14488 and ipa-type-escape passes.
14489 * tree-pass.h (pass_ipa_type_escape): Remove.
14490 (pass_ipa_struct_reorg): Likewise.
14491 * ipa-struct-reorg.h: Remove.
14492 * ipa-struct-reorg.c: Likewise.
14493 * ipa-type-escape.h: Likewise.
14494 * ipa-type-escape.c: Likewise.
14495 * doc/invoke.texi (-fipa-struct-reorg): Remove.
14496 (--param struct-reorg-cold-struct-ratio): Likewise.
14497 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14498 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
14499 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
14501 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14503 * config/s390/2084.md: Enable all insn reservations also for z9_ec
14504 cpu attribute value.
14505 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
14506 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
14507 * config/s390/s390.c (processor_flags_table): New constant array.
14508 (s390_handle_arch_option): Remove.
14509 (s390_handle_option): Remove s390_handle_arch_option invocations
14510 and OPT_mwarn_framesize_ handling.
14511 (s390_option_override): Remove s390_handle_arch_option invocation.
14512 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
14514 * config/s390/s390.md (cpu attribute): Add z9_ec value.
14515 * config/s390/s390.opt (s390_tune, s390_arch)
14516 (march=): Replace s390_arch_option enum and values with
14517 processor_type. Set variable name to s390_arch. Set
14518 initialization value.
14519 (mtune=): Replace s390_arch_option with processor_type. Set
14520 variable name to s390_tune. Set initialization value.
14522 2011-03-23 Julian Brown <julian@codesourcery.com>
14524 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
14525 accesses which are not naturally aligned.
14527 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14530 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
14532 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
14534 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
14535 parameter from "int" to "enum insn_code".
14536 (expand_operand_type): New enum.
14537 (expand_operand): New structure.
14538 (create_expand_operand): New function.
14539 (create_fixed_operand, create_output_operand): Likewise
14540 (create_input_operand, create_convert_operand_to): Likewise.
14541 (create_convert_operand_from, create_address_operand): Likewise.
14542 (create_integer_operand): Likewise.
14543 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
14544 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14545 (expand_insn, expand_jump_insn): Likewise.
14546 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
14547 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
14548 (expand_movstr, expand_builtin___clear_cache): Likewise.
14549 (expand_builtin_lock_release): Likewise.
14550 * explow.c (allocate_dynamic_stack_space): Likewise.
14551 (probe_stack_range): Likewise. Allow check_stack to FAIL,
14552 and use the default handling in that case.
14553 * expmed.c (check_predicate_volatile_ok): Delete.
14554 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
14555 (emit_cstore): Likewise.
14556 * expr.c (emit_block_move_via_movmem): Likewise.
14557 (set_storage_via_setmem, expand_assignment): Likewise.
14558 (emit_storent_insn, try_casesi): Likewise.
14559 (emit_single_push_insn): Likewise. Allow the expansion to fail.
14560 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
14561 (expand_vec_shift_expr, expand_binop_directly): Likewise.
14562 (expand_twoval_unop, expand_twoval_binop): Likewise.
14563 (expand_unop_direct, emit_indirect_jump): Likewise.
14564 (emit_conditional_move, vector_compare_rtx): Likewise.
14565 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
14566 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
14567 (expand_sync_lock_test_and_set): Likewise.
14568 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
14569 (emit_unop_insn): Likewise.
14570 (expand_copysign_absneg): Change icode to an insn_code.
14571 (create_convert_operand_from_type): New function.
14572 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
14573 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
14574 (expand_insn, expand_jump_insn): Likewise.
14575 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
14576 than const_int_operand for operand 2.
14578 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14580 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
14583 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14585 * emit-rtl.c (emit_pattern_before_noloc): New function.
14586 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
14587 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
14588 (emit_pattern_after_noloc): New function.
14589 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
14590 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
14592 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
14594 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
14595 (__ffsDI2): Likewise.
14597 2011-03-22 Richard Henderson <rth@redhat.com>
14599 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
14600 of !TARGET_ABI_OPEN_VMS.
14601 (alpha_trampoline_init, alpha_start_function): Likewise.
14602 (alpha_expand_epilogue, alpha_file_start): Likewise.
14603 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
14604 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
14605 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
14606 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
14607 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
14609 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14611 * config/s390/s390-opts.h: New.
14612 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
14613 s390_arch_flags, s390_warn_framesize, s390_stack_size,
14614 s390_stack_guard): Remove.
14615 (s390_handle_arch_option): Return void. Take enum
14616 s390_arch_option value instead of string and searching array.
14617 (s390_handle_option): Don't assert that global structures are in
14618 use. Access variables via opts pointer. Use error_at. Don't use
14619 sscanf for -mstack-guard= or -mstack-size=. Update call to
14620 s390_handle_arch_option.
14621 (s390_option_override): Update call to s390_handle_arch_option.
14622 (s390_emit_prologue): Use %d format for s390_stack_size in
14623 diagnostic. Use %wd for HOST_WIDE_INT.
14624 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
14625 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
14626 * config/s390/s390.opt (config/s390/s390-opts.h): New
14627 HeaderInclude entry.
14628 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
14629 s390_arch_flags, s390_warn_framesize): New Variable entries.
14630 (s390_arch_option): New Enum and EnumValue entries.
14631 (march=): Use Enum instead of Var.
14632 (mstack-guard=, mstack-size=): Use UInteger and Var.
14633 (mtune=): Use Enum.
14635 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14637 * config/score/score.c (score_handle_option): Don't assert that
14638 global structures are in use. Access target_flags via opts
14639 pointer. Use value of -march= option to determine target_flags
14641 * config/score/score.opt (march=): Use Enum.
14642 (score_arch): New Enum and EnumValue entries.
14644 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14646 * config/mep/mep.c (option_mtiny_specified): Remove.
14647 (mep_option_override): Move register handling for -mivc2 from
14648 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
14649 instead of option_mtiny_specified.
14650 (mep_handle_option): Access target_flags via opts pointer. Don't
14651 assert that global structures are in use. Defer part of -mivc2
14652 handling and move it to mep_option_override.
14653 * config/mep/mep.opt (IVC2): New Mask entry.
14654 (mivc2): Use Var and Defer instead of Mask.
14656 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14658 * config/v850/v850-opts.h: New.
14659 * config/v850/v850.c (small_memory): Replace with
14660 small_memory_physical_max array. Make that array static const.
14661 (v850_handle_memory_option): Take integer value of argument. Take
14662 gcc_options pointer, option text and location. Return void.
14663 Update for changes to small memory structures.
14664 (v850_handle_option): Access target_flags via opts pointer. Don't
14665 assert that global structures are in use. Update calls to
14666 v850_handle_memory_option.
14667 (v850_encode_data_area): Update references to small memory settings.
14668 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
14669 (enum small_memory_type): Move to v850-opts.h.
14670 * config/v850/v850.opt (config/v850/v850-opts.h): New
14671 HeaderInclude entry.
14672 (small_memory_max): New Variable entry.
14673 (msda): Replace by pair of options msda= and msda-. Use UInteger.
14674 (mtda, mzda): Likewise.
14676 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14678 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
14679 pointer. Don't assert that global structures are in use.
14681 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14683 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
14684 via opts pointer. Don't assert that global structures are in use.
14686 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14688 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
14689 (munix=93): Use Var.
14690 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
14691 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
14692 * config/pa/pa-opts.h: New.
14693 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
14694 (pa_handle_option): Don't assert that global structures are in
14695 use. Access target_flags via opts pointer. Don't handle
14696 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
14698 (pa_option_override): Handle deferred OPT_mfixed_range_.
14700 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14702 * config/mn10300/mn10300-opts.h: New.
14703 * config/mn10300/mn10300.c (mn10300_processor,
14704 mn10300_tune_string): Remove.
14705 (mn10300_handle_option): Don't assert that global structures are
14706 in use. Access mn10300_processor via opts pointer. Don't handle
14708 * config/mn10300/mn10300.h (enum processor_type): Move to
14710 (mn10300_processor): Remove.
14711 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
14712 HeaderInclude entry.
14713 (mn10300_processor): New Variable entry.
14716 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14718 * config/microblaze/microblaze.c: Don't include opts.h.
14719 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
14720 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
14721 (mno-clearbss): Use Var and Warn.
14723 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14725 * config/m32r/m32r-opts.h: New.
14726 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
14727 (m32r_handle_option): Don't assert that global structures are in
14728 use. Access target_flags and m32r_cache_flush_func via opts
14729 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
14730 OPT_mno_flush_trap here.
14731 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
14732 include of m32r-opts.h.
14733 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
14734 HeaderInclude entry.
14735 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
14736 (mmodel=): Use Enum and Var.
14737 (m32r_model): New Enum and EnumValue entries.
14738 (mno-flush-trap): Use Var.
14739 (msdata=): Use Enum and Var.
14740 (m32r_sdata): New Enum and EnumValue entries.
14742 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14744 * config/m32c/m32c.c: Don't include opts.h.
14745 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
14746 m32c_handle_option): Remove.
14747 (m32c_option_override): Check global_options_set.x_target_memregs
14748 instead of target_memregs_set.
14749 * config/m32c/m32c.h (target_memregs): Remove.
14750 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
14753 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14755 * config/iq2000/iq2000-opts.h: New.
14756 * config/iq2000/iq2000.c: Don't include opts.h.
14757 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
14758 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
14759 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
14760 HeaderInclude entry.
14761 (iq2000_tune): New Variable entry.
14762 (march=): Add comment. Use Enum.
14763 (iq2000_arch): New Enum and EnumValue entries.
14764 (mcpu=): Use Enum and Var.
14765 (iq2000_tune): New Enum and EnumValue entries.
14767 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14769 * config/ia64/ia64-opts.h: New.
14770 * config/ia64/ia64.c (ia64_tune): Remove.
14771 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
14772 here. Use error_at.
14773 (ia64_option_override): Handle deferred OPT_mfixed_range_.
14774 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
14775 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
14776 HeaderInclude entry.
14777 (ia64_tune): New Variable entry.
14778 (mfixed-range=): Use Defer and Var.
14779 (mtune=): Use Enum and Var.
14780 (ia64_tune): New Enum and EnumValue entries.
14782 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14784 * config/frv/frv-opts.h: New.
14785 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
14787 (frv_cpu_type): Remove.
14788 * config/frv/frv.c: Don't include opts.h.
14789 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
14790 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
14791 (frv_cpu_type): New Variable entry.
14792 (frv_cpu): New Enum and EnumValue entries.
14794 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14796 * config/cris/cris.c (cris_handle_option): Access target_flags via
14797 opts pointer. Don't assert that global structures are in use.
14798 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
14799 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
14801 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14803 * config/bfin/bfin-opts.h: New.
14804 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
14805 bfin_si_revision, bfin_workarounds): Remove.
14806 (bfin_cpus): Make static const.
14807 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
14808 not bfin_lib_id_given.
14809 (bfin_handle_option): Don't set bfin_lib_id_given. Access
14810 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
14811 pointer. Use error_at. Don't assert that global structures are in use.
14812 * config/bfin/bfin.h: Include bfin-opts.h.
14813 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
14814 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
14815 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
14816 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
14819 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14821 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
14822 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
14823 or -msoft-float here.
14824 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
14825 -msoft-float and -mhard-float.
14826 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
14827 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14829 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
14831 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
14832 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
14834 (LIBGCC_SPEC): Don't handle -msoft-float.
14835 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
14837 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
14839 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
14840 -mfloat-abi=*, not -msoft-float and -mhard-float.
14841 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
14843 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
14844 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
14845 mhard-float and msoft-float.
14846 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
14847 mfloat-abi=soft in comments, not mhard-float and msoft-float.
14848 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
14849 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
14851 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
14852 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
14854 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
14856 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
14859 2011-03-22 Richard Henderson <rth@redhat.com>
14861 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
14862 TARGET_ABI_WINDOWS_NT.
14863 (alpha_output_function_end_prologue): Likewise.
14864 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
14865 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14866 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
14867 (trap, *movsi_nt_vms): Likewise.
14868 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
14869 (*tablejump_osf_nt_internal): Remove.
14870 * config/alpha/predicates.md (input_operand): Only test Pmode.
14872 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14874 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
14875 via opts pointer. Use error_at. Don't assert that global
14876 structures are in use.
14878 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14880 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
14881 (ix86_handle_option): Access ix86_isa_flags and
14882 ix86_isa_flags_explicit via opts pointer. Don't assert that
14883 global structures are in use.
14884 (ix86_function_specific_save, ix86_function_specific_restore):
14885 Update ix86_isa_flags_explicit field name.
14886 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
14887 (ix86_isa_flags_explicit): Rename TargetSave entry to
14888 x_ix86_isa_flags_explicit.
14890 2011-03-22 Richard Henderson <rth@redhat.com>
14892 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
14893 (alpha_option_override, direct_return): Likewise.
14894 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
14895 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
14896 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
14897 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14898 (alpha_expand_epilogue, alpha_end_function): Likewise.
14899 (alpha_init_libfuncs): Likewise.
14900 (struct machine_function): Remove unicosmk members.
14901 (print_operand) ['t']: Remove.
14902 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
14903 unicosmk_output_module_name, unicosmk_output_common,
14904 current_section_align, unicosmk_output_text_section_asm_op,
14905 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
14906 unicosmk_section_type_flags, unicosmk_unique_section,
14907 unicosmk_asm_named_section, unicosmk_insert_attributes,
14908 unicosmk_output_align, unicosmk_defer_case_vector,
14909 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
14910 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
14911 unicosmk_output_ssib, unicosmk_add_call_info_word,
14912 unicosmk_extern_head, unicosmk_output_default_externs,
14913 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
14914 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
14915 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
14916 * config/alpha/alpha-protos.h: Update.
14917 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
14918 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
14919 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
14920 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
14921 (*mulsi_se, mulvsi3): Likewise.
14922 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
14923 (*divmodsi_internal, call, call_value, realign): Likewise.
14924 (moddi3, umoddi3): Likewise; remove duplicate expander.
14925 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
14926 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
14927 (*movdi_nofix): Remove r/U alternative.
14928 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
14929 * config/alpha/constraints.md ("U"): Remove.
14930 * config/alpha/predicates.md (call_operand"): Don't test
14931 TARGET_ABI_UNICOSMK.
14933 2011-03-22 Joseph Myers <joseph@codesourcery.com>
14935 * target.def (handle_option): Take gcc_options and
14936 cl_decoded_option pointers and location_t.
14937 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
14938 * doc/tm.texi: Regenerate.
14939 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
14940 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
14941 * lto-opts.c (lto_reissue_options): Generate option structure for
14942 targetm.handle_option call.
14943 * opts.c (target_handle_option): Update call to
14944 targetm.handle_option. Remove assertions about values now passed
14946 * targhooks.c (default_target_handle_option): New.
14947 * targhooks.h (default_target_handle_option): Declare.
14948 * config/alpha/alpha.c: Include opts.h.
14949 (alpha_handle_option): Update to new hook interface.
14950 * config/arm/arm.c: Include opts.h.
14951 (arm_handle_option): Update to new hook interface.
14952 * config/arm/t-arm (arm.o): Update dependencies.
14953 * config/bfin/bfin.c: Include opts.h.
14954 (bfin_handle_option): Update to new hook interface.
14955 * config/cris/cris.c: Include opts.h.
14956 (cris_handle_option): Update to new hook interface.
14957 * config/frv/frv.c: Include opts.h.
14958 (frv_handle_option): Update to new hook interface.
14959 * config/i386/i386.c: Include opts.h.
14960 (ix86_handle_option): Update to new hook interface.
14961 (ix86_valid_target_attribute_inner_p): Generate option structure
14962 for call to ix86_handle_option.
14963 * config/i386/t-i386 (i386.o): Update dependencies.
14964 * config/ia64/ia64.c: Include opts.h.
14965 (ia64_handle_option): Update to new hook interface.
14966 * config/ia64/t-ia64 (ia64.o): Update dependencies.
14967 * config/iq2000/iq2000.c: Include opts.h.
14968 (iq2000_handle_option): Update to new hook interface.
14969 * config/m32c/m32c.c: Include opts.h.
14970 (m32c_handle_option): Update to new hook interface.
14971 * config/m32r/m32r.c: Include opts.h.
14972 (m32r_handle_option): Update to new hook interface.
14973 * config/m68k/m68k.c: Include opts.h.
14974 (m68k_handle_option): Update to new hook interface.
14975 * config/mep/mep.c: Include opts.h.
14976 (mep_handle_option): Update to new hook interface.
14977 * config/microblaze/microblaze.c: Include opts.h.
14978 (microblaze_handle_option): Update to new hook interface.
14979 * config/mips/mips.c: Include opts.h.
14980 (mips_handle_option): Update to new hook interface.
14981 * config/mn10300/mn10300.c: Include opts.h.
14982 (mn10300_handle_option): Update to new hook interface.
14983 * config/pa/pa.c: Include opts.h.
14984 (pa_handle_option): Update to new hook interface.
14985 * config/pdp11/pdp11.c: Include opts.h.
14986 (pdp11_handle_option): Update to new hook interface.
14987 * config/rs6000/rs6000.c: Include opts.h.
14988 (rs6000_handle_option): Update to new hook interface.
14989 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
14990 * config/rx/rx.c: Include opts.h.
14991 (rx_handle_option): Update to new hook interface.
14992 * config/s390/s390.c: Include opts.h.
14993 (s390_handle_option): Update to new hook interface.
14994 * config/score/score.c: Include opts.h.
14995 (score_handle_option): Update to new hook interface.
14996 * config/sh/sh.c: Include opts.h.
14997 (sh_handle_option): Update to new hook interface.
14998 * config/sparc/sparc.c: Include opts.h.
14999 (sparc_handle_option): Update to new hook interface.
15000 * config/v850/v850.c: Include opts.h.
15001 (v850_handle_option): Update to new hook interface.
15003 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15005 * gcc.c (driver_unknown_option_callback): Only permit and save
15006 unknown -Wno- options.
15007 (driver_wrong_lang_callback): Save options directly instead of via
15008 driver_unknown_option_callback.
15010 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15012 * combine.c (simplify_set): Try harder to find the best CC mode when
15013 simplifying a nested COMPARE on the RHS.
15015 2011-03-22 Joseph Myers <joseph@codesourcery.com>
15017 * config/alpha/gnu.h: Remove.
15018 * config/arc: Remove directory.
15019 * config/arm/netbsd.h: Remove.
15020 * config/arm/t-pe: Remove.
15021 * config/crx: Remove directory.
15022 * config/i386/netbsd.h: Remove.
15023 * config/m68hc11: Remove directory.
15024 * config/m68k/uclinux-oldabi.h: Remove.
15025 * config/mcore/mcore-pe.h: Remove.
15026 * config/mcore/t-mcore-pe: Remove.
15027 * config/netbsd-aout.h: Remove.
15028 * config/rs6000/gnu.h: Remove.
15029 * config/sh/sh-symbian.h: Remove.
15030 * config/sh/symbian-base.c: Remove.
15031 * config/sh/symbian-c.c: Remove.
15032 * config/sh/symbian-cxx.c: Remove.
15033 * config/sh/symbian-post.h: Remove.
15034 * config/sh/symbian-pre.h: Remove.
15035 * config/sh/t-symbian: Remove.
15036 * config/svr3.h: Remove.
15037 * config/vax/netbsd.h: Remove.
15038 * config.build: Don't handle i[34567]86-*-pe.
15039 * config.gcc: Remove handling of deprecations for most deprecated
15041 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
15042 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
15043 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
15044 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
15045 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
15046 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
15048 * config.host: Don't handle i[34567]86-*-pe.
15049 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
15050 (ASM_SPEC32): Don't handle -mcall-gnu.
15051 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
15053 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
15054 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
15055 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
15056 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
15057 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
15058 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
15059 conditional on SYMBIAN.
15060 * configure.ac: Don't handle powerpc*-*-gnu*.
15061 * configure: Regenerate.
15062 * doc/extend.texi (interrupt attribute): Don't mention CRX.
15063 * doc/install-old.texi (m6811, m6812): Don't mention.
15064 * doc/install.texi (arc-*-elf*): Don't document multilib option.
15065 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
15066 (m68k-uclinuxoldabi): Don't mention.
15067 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
15069 (-mcall-gnu): Remove.
15070 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
15071 families): Remove constraint documentation.
15073 2011-03-22 Marius Strobl <marius@FreeBSD.org>
15075 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
15076 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
15077 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
15079 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15082 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
15083 vector when peeking at the next token for vector, don't expand the
15086 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
15088 * config/avr/avr-protos.h (expand_epilogue): Change prototype
15089 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
15090 * config/avr/avr.c (init_cumulative_args)
15091 (avr_function_arg_advance): Use it.
15092 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
15094 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
15095 (avr_function_ok_for_sibcall): ...this new function.
15096 (avr_lookup_function_attribute1): New static Function.
15097 (avr_naked_function_p, interrupt_function_p)
15098 (signal_function_p, avr_OS_task_function_p)
15099 (avr_OS_main_function_p): Use it.
15100 * config/avr/avr.md ("sibcall", "sibcall_value")
15101 ("sibcall_epilogue"): New expander.
15102 ("*call_insn", "*call_value_insn"): New insn.
15103 ("call_insn", "call_value_insn"): Remove
15104 ("call", "call_value", "epilogue"): Change expander to handle
15107 2011-03-21 Nick Clifton <nickc@redhat.com>
15109 * doc/invoke.texi (Overall Options): Move closing brace to end of
15111 (Optimization Options): Add missing @gol.
15112 (Directory Options): Likewise.
15113 (i386 and x86-64 Options): Likewise.
15114 (RS6000 and PowerPC Options): Likewise.
15115 (i386 and x86-64 Windows Options): Likewise.
15116 (V850 Options): Add text missing from descriptions.
15118 2011-03-22 Richard Henderson <rth@redhat.com>
15120 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
15121 (avr_incoming_return_addr_rtx): New.
15122 (emit_push_byte): New.
15123 (expand_prologue): Use it. Remove incorrect dwarf annotation for
15124 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
15125 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
15126 (emit_pop_byte): New.
15127 (expand_epilogue): Use it. Pop frame pointer by bytes.
15128 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
15129 (INCOMING_RETURN_ADDR_RTX): New.
15130 (INCOMING_FRAME_SP_OFFSET): New.
15131 (ARG_POINTER_CFA_OFFSET): New.
15132 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
15133 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
15136 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
15138 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15140 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
15141 (FUNCTION_ARG_ADVANCE): Likewise.
15142 * tm.texi.in: Change references to them to hook references.
15143 * tm.texi: Regenerate.
15144 * targhooks.c (default_function_arg): Eliminate check for target
15146 (default_function_incoming_arg): Likewise.
15147 (default_function_arg_advance): Likewise.
15148 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
15149 (function_arg_advance): Likewise.
15150 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
15152 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
15154 * tree.c (build_call_1): New function.
15155 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
15157 2011-03-22 Richard Guenther <rguenther@suse.de>
15159 PR tree-optimization/48228
15160 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
15161 for single-arg PHIs.
15163 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
15165 PR rtl-optimization/48143
15166 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
15167 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
15168 sse2_cvtps2pd): Likewise.
15170 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15172 * recog.c (canonicalize_change_group): Use validate_unshare_change.
15174 2011-03-22 Richard Guenther <rguenther@suse.de>
15176 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
15177 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
15178 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
15179 and REALIGN_LOAD_EXPR.
15180 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
15181 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
15182 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
15183 DOT_PROD_EXPR case ...
15184 (expand_expr_real_2): ... here.
15185 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
15186 and REALIGN_LOAD_EXPR.
15187 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
15188 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
15189 (vect_create_epilog_for_reduction): Likewise.
15190 (vectorizable_reduction): Likewise.
15191 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
15192 * tree-vect-stmts.c (vectorizable_load): Likewise.
15194 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
15196 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
15198 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15200 * config/s390/s390.c (s390_delegitimize_address): Fix offset
15201 handling for PLTOFF/GOTOFF.
15203 2011-03-22 Nick Clifton <nickc@redhat.com>
15205 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
15206 trailing backslash from the end of the macro definition.
15208 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15210 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
15213 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
15215 * expr.h (prepare_operand): Move to...
15216 * optabs.h (prepare_operand): ...here and change the insn code
15217 parameter from "int" to "enum insn_code".
15218 (insn_operand_matches): Declare.
15219 * expr.c (init_expr_target): Use insn_operand_matches.
15220 (compress_float_constant): Likewise.
15221 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
15222 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
15223 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
15224 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
15226 (gen_cond_trap): Likewise.
15227 (prepare_operand): Likewise. Change icode to an insn_code.
15228 (insn_operand_matches): New function.
15229 * reload.c (find_reloads_address_1): Use insn_operand_matches.
15230 * reload1.c (gen_reload): Likewise.
15231 * targhooks.c (default_secondary_reload): Likewise.
15233 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15235 * config/alpha/alpha.md (unspec): New define_c_enum.
15238 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
15241 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
15242 between a call and its CALL_ARG_LOCATION note.
15244 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
15246 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
15248 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15252 * c-common.c (shorten_compare): If primopN is first sign-extended
15253 to opN and then zero-extended to result type, set primopN to opN.
15255 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
15257 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
15258 for barrier handlers.
15260 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
15262 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
15263 UNSPEC constants to be in the unspec enumeration, and redefine
15264 all UNSPECV constants to be in the unspecv enumeration, so that
15265 dumps print which unspec/unspec_volatile this is.
15266 * config/rs6000/vector.md (UNSPEC_*): Ditto.
15267 * config/rs6000/paired.md (UNSPEC_*): Ditto.
15268 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
15269 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
15270 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
15272 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
15273 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
15274 UNSPECV_LWSYNC, since these are used as unspec_volatile.
15275 * config/rs6000/sync.md (isync, lwsync): Ditto.
15277 2011-03-21 Richard Guenther <rguenther@suse.de>
15279 * params.def (lto-min-partition): Fix typo.
15281 2011-03-21 Richard Guenther <rguenther@suse.de>
15284 * c-decl.c (grokdeclarator): Drop to the main variant only
15285 for array types. Drop flag_gen_aux_info check.
15287 2011-03-21 Richard Guenther <rguenther@suse.de>
15289 PR translation/47911
15290 * params.def (lto-partitions): Fix typo.
15291 (lto-min-partition): Fix wording.
15293 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
15295 * config/rs6000/t-freebsd: Remove duplication from file.
15297 2011-03-21 Richard Guenther <rguenther@suse.de>
15299 PR middle-end/47661
15300 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
15302 2011-03-21 Richard Guenther <rguenther@suse.de>
15305 * params.def (lto-partitions): Require at least 1 partition.
15307 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15309 * gthr-solaris.h: Remove.
15310 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
15311 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
15312 (LIB_SPEC): Likewise.
15313 * config/sol2.opt (threads): Remove.
15314 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
15315 (sparc*-*-solaris2*): Likewise.
15316 * configure.ac (enable_threads): Enable solaris support.
15317 * configure: Regenerate.
15318 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
15319 * doc/install.texi (Configuration, --enable-threads=lib): Remove
15322 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15324 * config.gcc: Obsolete *-*-solaris2.8*.
15325 * doc/install.texi (Specific, *-*-solaris2*): Document it.
15327 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15330 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
15331 reference. Solaris 8 perl works.
15333 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15336 * doc/install.texi (Prerequisites): Move jar etc. up.
15337 Explain support library version requirements.
15339 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15342 * doc/install.texi (Prerequisites): Move Perl to build
15343 requirements. Always necessary on Solaris 2 with Sun ld.
15345 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15347 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
15349 (Specific, i?86-*-solaris2.[89]): Likewise.
15350 (Specific, i?86-*-solaris2.10): Likewise.
15351 (Specific, mips-sgi-irix6): Likewise.
15352 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
15353 Update for binutils 2.21.
15355 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15357 * configure.ac (gcc_cv_lto_plugin): Fix typo.
15358 Allow -fuse-linker-plugin for non-default plugin linker.
15359 * configure: Regenerate.
15361 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
15364 * gengtype.c (files_rules): Added rule for cp/parser.h.
15366 2011-03-21 Jakub Jelinek <jakub@redhat.com>
15369 * config/s390/s390.c (s390_delegitimize_address): Don't call
15370 lowpart_subreg if orig_x has BLKmode.
15372 2011-03-21 Kai Tietz <ktietz@redhat.com>
15375 * doc/plugins.texi: Adjust documentation for plugin register_callback.
15376 * tree.h (attribute_spec): Add new member affects_type_identity.
15377 * attribs.c (empty_attribute_table): Adjust attribute_spec
15379 * config/alpha/alpha.c: Likewise.
15380 * config/arc/arc.c: Likewise.
15381 * config/arm/arm.c: Likewise.
15382 * config/avr/avr.c: Likewise.
15383 * config/bfin/bfin.c: Likewise.
15384 * config/crx/crx.c: Likewise.
15385 * config/darwin.h: Likewise.
15386 * config/h8300/h8300.c: Likewise.
15387 * config/i386/cygming.h: Likewise.
15388 * config/i386/i386.c: Likewise.
15389 * config/ia64/ia64.c: Likewise.
15390 * config/m32c/m32c.c: Likewise.
15391 * config/m32r/m32r.c: Likewise.
15392 * config/m68hc11/m68hc11.c: Likewise.
15393 * config/m68k/m68k.c: Likewise.
15394 * config/mcore/mcore.c: Likewise.
15395 * config/mep/mep.c: Likewise.
15396 * config/microblaze/microblaze.c: Likewise.
15397 * config/mips/mips.c: Likewise.
15398 * config/rs6000/rs6000.c: Likewise.
15399 * config/rx/rx.c: Likewise.
15400 * config/sh/sh.c: Likewise.
15401 * config/sol2.h: Likewise.
15402 * config/sparc/sparc.c: Likewise.
15403 * config/spu/spu.c: Likewise.
15404 * config/stormy16/stormy16.c: Likewise.
15405 * config/v850/v850.c: Likewise.
15407 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
15409 * simplify-rtx.c (simplify_binary_operation_1): Handle
15410 (xor (and A B) C) case when B and C are both constants.
15412 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
15414 * tree-dfa.c (add_referenced_var): Fix typo in comment.
15416 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
15419 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
15421 2011-03-20 Jakub Jelinek <jakub@redhat.com>
15423 PR rtl-optimization/48156
15424 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
15425 assume df and df_lr are not NULL.
15427 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15430 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
15431 between a call and its CALL_ARG_LOCATION note.
15433 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
15436 * config/sh/sh.c (find_barrier): Don't emit a constant pool
15437 between a call and its corresponding CALL_ARG_LOCATION note.
15439 2011-03-19 Anatoly Sokolov <aesok@post.ru>
15441 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
15442 instead of loop. Use HARD_REGISTER_NUM_P predicate.
15443 * haifa-sched.c (setup_ref_regs): Ditto.
15444 * caller-save.c (add_used_regs_1): Ditto.
15445 * dse.c (look_for_hardregs): Ditto.
15446 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
15447 * sched-rgn.c (check_live_1): Ditto.
15449 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15451 * c-decl.c (diagnose_mismatched_decls): Give an error for
15452 redefining a typedef with variably modified type.
15454 2011-03-18 Joseph Myers <joseph@codesourcery.com>
15456 * c-decl.c (grokfield): Don't allow typedefs for structures or
15457 unions with no tag by default.
15458 * doc/extend.texi (Unnamed Fields): Update.
15460 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
15462 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
15463 Rewrite using indirect functions.
15464 (lwp_slwpcb): Ditto.
15465 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
15466 (avx_vinsertf128<mode>): Ditto.
15468 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15470 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
15473 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15475 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
15476 splitting between a call and its corresponding CALL_ARG_LOCATION note.
15478 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
15480 PR rtl-optimization/48170
15481 * gcse.c (hoist_code): Remove bogus asserts.
15483 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
15485 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
15486 computation for prologue/epilogue.
15488 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15490 * Makefile.in (check-consistency): Remove.
15492 2011-03-18 Jakub Jelinek <jakub@redhat.com>
15495 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
15496 arange_table_in_use is 0, but either text_section_used or
15497 cold_text_section_used is true. Don't call it if
15498 !info_section_emitted.
15500 2011-03-18 Anatoly Sokolov <aesok@post.ru>
15502 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
15503 FUNCTION_VALUE_REGNO_P): Remove.
15504 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
15506 * config/avr/avr.c (avr_ret_register): Make static inline.
15507 (avr_function_value_regno_p): New function.
15508 (avr_libcall_value): Make static. Add 'func' argument.
15509 (avr_function_value): Make static. Rename 'func' argument to
15510 'fn_decl_or_type', forward it to avr_libcall_value. Call
15511 avr_ret_register function instead of RET_REGISTER macro.
15512 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15514 2011-03-18 Jason Merrill <jason@redhat.com>
15517 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
15519 2011-03-18 Richard Guenther <rguenther@suse.de>
15521 * doc/install.texi (--enable-gold): Remove.
15522 (--with-plugin-ld): Document.
15523 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
15525 2011-03-18 Andrew Pinski <pinskia@gmail.com>
15527 PR middle-end/47790
15528 * expr.c (optimize_bitfield_assignment_op): Revamp to work
15529 again after expansion changes.
15531 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
15533 * combine.c (try_combine): Do simplification only call of
15534 subst() on i2 even when i1 is present. Update comments.
15536 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
15538 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
15539 and UNSPEC_PCREL_SYMOFF.
15541 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15543 * config/s390/s390.md: Use define_c_enum for the unspec constant
15546 2011-03-18 Richard Henderson <rth@redhat.com>
15547 Jakub Jelinek <jakub@redhat.com>
15550 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
15551 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
15553 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15555 PR middle-end/47725
15556 * combine.c (cant_combine_insn_p): Don't check zero/sign
15557 extended hard registers.
15559 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15561 PR middle-end/47725
15562 * combine.c (cant_combine_insn_p): Check zero/sign extended
15565 2011-03-17 Anatoly Sokolov <aesok@post.ru>
15567 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15568 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
15569 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
15570 Change return type to bool.
15571 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15573 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15576 * var-tracking.c (prepare_call_arguments): If CALL target
15577 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
15578 pc instead of looking it up using cselib_lookup and use
15579 Pmode for it if x has VOIDmode.
15580 * dwarf2out.c (gen_subprogram_die): If also both first and
15581 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
15584 * function.c (assign_parms): For data.passed_pointer parms
15585 use MEM of data.entry_parm instead of data.entry_parm itself
15586 as DECL_INCOMING_RTL.
15587 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
15588 also when passed and declared mode is the same, DECL_RTL
15589 is a MEM with pseudo as address and DECL_INCOMING_RTL is
15592 2011-03-16 Jeff Law <law@redhat.com>
15594 PR rtl-optimization/37273
15595 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15596 handle them like argument loads from stack slots. Do not double
15597 count memory for memory constants and argument loads from stack slots.
15599 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15602 * var-tracking.c (prepare_call_arguments): Check SUBREG.
15604 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
15607 * config/i386/i386.opt: Add Save to -mavx and -mfma.
15609 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15612 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
15614 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
15615 Clear call_arg_locations and call_arg_loc_last always.
15617 PR middle-end/48152
15618 * var-tracking.c (prepare_call_arguments): If argument needs to be
15619 passed by reference, adjust argtype and mode.
15621 2011-03-17 Richard Guenther <rguenther@suse.de>
15623 PR middle-end/48134
15624 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
15625 a value make sure to fold the statement.
15627 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
15630 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
15631 return condition with !cfun->calls_alloca.
15633 2011-03-17 Richard Guenther <rguenther@suse.de>
15636 * lto-cgraph.c (input_overwrite_node): Clear the abstract
15637 origin for decls in other ltrans units.
15638 (input_varpool_node): Likewise.
15640 2011-03-17 Richard Guenther <rguenther@suse.de>
15642 PR middle-end/48165
15643 * tree-object-size.c (compute_object_offset): Properly return
15644 the offset operand of MEM_REFs as sizetype.
15646 2011-03-17 Jakub Jelinek <jakub@redhat.com>
15648 PR rtl-optimization/48141
15649 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
15650 * dse.c: Include params.h.
15651 (active_local_stores_len): New variable.
15652 (add_wild_read, dse_step1): Clear it when setting active_local_stores
15654 (record_store, check_mem_read_rtx): Decrease it when removing
15656 (scan_insn): Likewise. Increase it when adding to chain, if it
15657 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
15658 set active_local_stores to NULL before the addition.
15659 * Makefile.in (dse.o): Depend on $(PARAMS_H).
15661 PR rtl-optimization/48141
15662 * dse.c (record_store): If no positions are needed in an insn
15663 that cannot be deleted, at least unchain it from active_local_stores.
15665 2011-03-16 Dodji Seketeli <dodji@redhat.com>
15668 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
15669 (lookup_type_die_strip_naming_typedef): ... here.
15670 (get_context_die): Use it.
15671 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
15672 the anonymous struct named by the naming typedef.
15674 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
15677 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
15678 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
15680 2011-03-16 Jeff Law <law@redhat.com>
15682 * tree-vrp.c (identify_jump_threads): Slightly simplify type
15683 check for operands of conditional. Allow type to be a pointer.
15685 2011-03-16 Richard Guenther <rguenther@suse.de>
15687 PR tree-optimization/48149
15688 * fold-const.c (fold_binary_loc): Fold
15689 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
15691 2011-03-16 Richard Guenther <rguenther@suse.de>
15693 PR tree-optimization/26134
15694 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
15695 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
15696 (non_rewritable_mem_ref_base): Handle complex type component
15697 accesses, constrain offsets for vector and complex extracts
15700 2011-03-16 Richard Guenther <rguenther@suse.de>
15702 PR tree-optimization/48146
15703 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
15704 operands avoiding the need for renaming.
15706 2011-03-16 Richard Guenther <rguenther@suse.de>
15708 * gimple-fold.c (maybe_fold_reference): Open-code relevant
15709 constant folding. Move MEM_REF canonicalization first.
15710 Rely on fold_const_aggregate_ref for initializer folding.
15711 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
15713 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15715 PR middle-end/48136
15716 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
15717 arg0/arg1 or their arguments are always fold converted to matching
15720 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
15723 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15726 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
15727 Handle in-tree gold.
15728 (ld_vers): Extract binutils version for gold.
15729 (gcc_cv_ld_hidden): Handle gold here.
15730 (gcc_cv_lto_plugin): Determine level of linker plugin support.
15731 * configure: Regenerate.
15732 * config.in: Regenerate.
15733 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
15734 -fuse-linker-plugin otherwise.
15735 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
15736 (LINK_COMMAND_SPEC): Use it.
15737 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
15739 2011-03-16 Jakub Jelinek <jakub@redhat.com>
15741 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
15742 * calls.c: Remove debug.h include.
15743 (emit_call_1): Don't call virtual_call_token debug hook.
15744 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
15745 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
15746 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
15747 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
15748 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
15749 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
15750 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
15751 dwarf2out_virtual_call): Remove.
15752 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
15753 copy_call_info and virtual_call hooks.
15754 (dwarf2out_init): Don't initialize vcall_insn_table,
15755 debug_dcall_section and debug_vcall_section.
15756 (prune_unused_types): Don't mark nodes from dcall_table.
15757 (dwarf2out_finish): Don't output dcall or vcall tables.
15758 * final.c (final_scan_insn): Don't call direct_call or
15759 virtual_call debug hooks.
15760 * debug.h (struct gcc_debug_hooks): Remove direct_call,
15761 virtual_call_token, copy_call_info and virtual_call hooks.
15762 (debug_nothing_uid): Remove prototype.
15763 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
15764 copy_call_info and virtual_call hooks.
15765 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
15766 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
15767 * debug.c (do_nothing_debug_hooks): Likewise.
15768 (debug_nothing_uid): Remove.
15769 * doc/invoke.texi (-fenable-icf-debug): Remove.
15770 * common.opt (-fenable-icf-debug): Likewise.
15772 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
15773 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
15774 call's MEM. Handle functions returning aggregate through a hidden
15775 first pointer. For virtual calls add clobbered pc to call arguments
15777 * dwarf2out.c (gen_subprogram_die): Emit
15778 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
15782 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
15783 * rtl.h (ENTRY_VALUE_EXP): Define.
15784 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
15785 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
15786 * print-rtl.c (print_rtx): Likewise.
15787 * gengtype.c (adjust_field_rtx_def): Likewise.
15788 * var-tracking.c (vt_add_function_parameter): Adjust
15789 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
15790 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
15791 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
15792 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
15793 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
15795 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
15796 Call var_location debug hook even on CALL_INSNs.
15797 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
15798 * rtl.def (ENTRY_VALUE): New.
15799 * dwarf2out.c: Include cfglayout.h.
15800 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
15801 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
15802 (struct call_arg_loc_node): New type.
15803 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
15804 tail_call_site_count): New variables.
15805 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
15806 DW_TAG_GNU_call_site_parameter.
15807 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
15808 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
15809 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
15810 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
15811 and DW_AT_GNU_all_source_call_sites.
15812 (mem_loc_descriptor): Handle ENTRY_VALUE.
15813 (add_src_coords_attributes): Don't add enything if
15814 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
15815 (dwarf2out_abstract_function): Save and clear call_arg_location,
15816 call_site_count and tail_call_site_count around dwarf2out_decl call.
15817 (gen_call_site_die): New function.
15818 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
15819 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
15820 (dwarf2out_function_decl): Clear call_arg_locations,
15821 call_arg_loc_last, set call_site_count and tail_call_site_count
15822 to -1 and free block_map.
15823 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
15824 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
15825 followed by any real instructions.
15826 (dwarf2out_begin_function): Set call_site_count and
15827 tail_call_site_count to 0.
15828 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
15829 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
15830 attempt to force a DIE for it and worst case remove the attribute.
15831 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
15832 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
15834 * var-tracking.c: Include tm_p.h.
15835 (vt_stack_adjustments): For calls call note_register_arguments.
15836 (argument_reg_set): New variable.
15837 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
15838 ensure the VALUE is resolved.
15839 (call_arguments): New variable.
15840 (prepare_call_arguments): New function.
15841 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
15842 (struct expand_loc_callback_data): Add ignore_cur_loc field.
15843 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
15844 always use the best expression.
15845 (vt_expand_loc): Add ignore_cur_loc argument.
15846 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
15847 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
15848 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
15849 note for all calls.
15850 (vt_add_function_parameter): Use cselib_lookup_from_insn.
15851 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
15852 argument. Don't call cselib_preserve_only_values and
15853 cselib_reset_table.
15854 (note_register_arguments): New function.
15855 (vt_initialize): Compute argument_reg_set. Call
15856 vt_add_function_parameters before processing basic blocks instead of
15857 afterwards. For calls call prepare_call_arguments before calling
15858 cselib_process_insn.
15859 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
15860 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
15861 (var-tracking.o): Depend on $(TM_P_H).
15862 * cfglayout.h (insn_scope): New prototype.
15863 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
15864 * cfglayout.c (insn_scope): No longer static.
15865 * insn-notes.def (CALL_ARG_LOCATION): New.
15866 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
15867 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
15868 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
15869 nothing for DECL_EXTERNAL BLOCK_VARS.
15871 2011-03-16 Alan Modra <amodra@gmail.com>
15874 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
15875 create invalid offset address for vsx splat insn.
15876 * config/rs6000/predicates.md (splat_input_operand): New.
15877 * config/rs6000/vsx.md (vsx_splat_*): Use it.
15879 2011-03-15 Xinliang David Li <davidxl@google.com>
15882 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
15883 (normalize_preds): New function.
15884 (is_use_properly_guarded): Normalize def predicates.
15886 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
15889 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
15890 in the output template.
15892 2011-03-15 Richard Guenther <rguenther@suse.de>
15894 PR middle-end/47650
15895 * tree-pretty-print.c (dump_function_declaration): Properly
15896 dump unprototyped and varargs function types.
15898 2011-03-15 Richard Guenther <rguenther@suse.de>
15900 PR tree-optimization/13954
15901 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
15904 2011-03-15 Richard Guenther <rguenther@suse.de>
15906 PR tree-optimization/48037
15907 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
15908 selects into BIT_FIELD_REFs.
15909 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
15912 2011-03-15 Jakub Jelinek <jakub@redhat.com>
15914 PR tree-optimization/48129
15915 * builtins.c (fold_builtin_snprintf): Convert to type of
15916 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
15917 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
15919 2011-03-15 Richard Guenther <rguenther@suse.de>
15921 PR tree-optimization/41490
15922 * tree-ssa-dce.c (propagate_necessity): Handle returns without
15923 value but with VUSE.
15924 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
15926 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
15927 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
15928 * tree-tailcall.c (find_tail_calls): Ignore returns.
15930 2011-03-15 Richard Guenther <rguenther@suse.de>
15932 PR middle-end/48031
15933 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
15934 or variable-indexed array accesses when in gimple form.
15936 2011-03-15 Richard Guenther <rguenther@suse.de>
15938 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
15940 2011-03-15 Alan Modra <amodra@gmail.com>
15943 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
15944 presume symbol_refs without a symbol_ref_decl are suitably
15945 aligned, nor other trees we may see here. Handle anchor symbols.
15946 (legitimate_constant_pool_address_p): Comment. Add mode param.
15947 Check cmodel=medium addresses. Adjust all calls.
15948 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
15949 creating cmodel=medium optimized access to locals.
15950 * config/rs6000/constraints.md (R): Pass QImode to
15951 legitimate_constant_pool_address_p.
15952 * config/rs6000/predicates.md (input_operand): Pass mode to
15953 legitimate_constant_pool_address_p.
15954 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
15957 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15960 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
15961 64-bit constants being loaded into registers other than GPRs such
15962 as loading 0 into a VSX register.
15964 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15966 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
15968 2011-03-14 Jakub Jelinek <jakub@redhat.com>
15970 PR middle-end/47917
15971 * builtins.c (fold_builtin_snprintf): New function.
15972 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
15973 (fold_builtin_4): Likewise.
15975 PR middle-end/38878
15976 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
15977 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
15978 and C - X == X also strip nops from +/-/p+ operand.
15979 When optimizing -X == C, fold C to arg0's type.
15982 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
15983 emit it as add_AT_int instead of add_AT_unsigned.
15985 2011-03-14 Tom Tromey <tromey@redhat.com>
15987 * unwind-dw2.c: Include sys/sdt.h if it exists.
15988 (_Unwind_DebugHook): Use STAP_PROBE2.
15989 * config.in, configure: Rebuild.
15990 * configure.ac: Check for sys/sdt.h.
15992 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
15994 * config/i386/i386.md (ROUND_FLOOR): New constant.
15995 (ROUND_CEIL): Ditto.
15996 (ROUND_TRUNC): Ditto.
15997 (ROUND_MXCSR): Ditto.
15998 (ROUND_NO_EXC): Ditto.
15999 (rint<mode>2): Use new defines instead of numerical constants.
16000 (floor<mode>2): Ditto.
16001 (ceil<mode>2): Ditto.
16002 (btrunc<mode>2): Ditto.
16003 * config/i386/i386-builtin-types.def: Define ROUND function type
16005 * config/i386/i386.c (enum ix86_builtins): Add
16006 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
16007 (struct builtin_description): Add
16008 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
16009 (ix86_expand_sse_round): New static function.
16010 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
16012 (ix86_builtin_vectorized_function): Handle
16013 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
16015 2011-03-14 Tom Tromey <tromey@redhat.com>
16017 * c-parser.c (c_parser_asm_string_literal): Clear
16018 warn_overlength_strings.
16020 2011-03-14 Tom Tromey <tromey@redhat.com>
16022 * c-parser.c (disable_extension_diagnostics): Save
16023 warn_overlength_strings.
16024 (restore_extension_diagnostics): Restore warn_overlength_strings.
16026 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16028 * BASE-VER: Change to 4.7.0.
16030 2011-03-14 Richard Guenther <rguenther@suse.de>
16032 PR middle-end/48098
16033 * tree.c (build_vector_from_val): Adjust assert to requirements
16036 2011-03-14 Jakub Jelinek <jakub@redhat.com>
16039 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
16041 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
16043 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
16044 terms of target_flags_explicit. Adjust copyright year.
16046 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
16047 * config/rs6000/t-freebsd: New file. Add override for
16050 2011-03-13 Chris Demetriou <cgd@google.com>
16052 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
16053 (-fno-diagnostics-show-option): this, to reflect current default.
16054 (-Werror=): Update text about -fno-diagnostics-show-option.
16056 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
16059 * config/rs6000/predicates.md (easy_vector_constant_add_self,
16060 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
16061 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
16062 mode is not V2DImode or V2DFmode.
16063 (vspltis_constant): Do not handle V2DImode and V2DFmode.
16064 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
16065 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
16067 (movdi_internal64): Likewise.
16069 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
16071 PR tree-optimization/47127
16072 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
16074 (set_cloog_options): Same.
16075 (scop_to_clast): Same.
16076 (print_clast_stmt): Do not call cloog_state_malloc and
16078 (print_generated_program): Same.
16080 * graphite-clast-to-gimple.h (cloog_state): Declared.
16081 (scop_to_clast): Adjust declaration.
16082 * graphite.c (cloog_state): Defined here.
16083 (graphite_initialize): Call cloog_state_malloc.
16084 (graphite_finalize): Call cloog_state_free.
16086 2011-03-11 Jason Merrill <jason@redhat.com>
16088 * attribs.c (lookup_attribute_spec): Take const_tree.
16091 2011-03-11 Joseph Myers <joseph@codesourcery.com>
16093 * config/sparc/sparc.c (sparc_option_override): Use
16094 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
16096 2011-03-11 Richard Guenther <rguenther@suse.de>
16098 PR tree-optimization/48067
16099 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
16100 multiplication result will be only used once on the target
16103 2011-03-11 Richard Guenther <rguenther@suse.de>
16105 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
16107 2011-03-11 Richard Guenther <rguenther@suse.de>
16110 * tree.c (find_decls_types_r): Do not walk types only reachable
16111 from IDENTIFIER_NODEs.
16113 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16115 PR middle-end/48044
16116 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
16117 all vnode->force_output nodes as needed.
16119 2011-03-11 Jason Merrill <jason@redhat.com>
16122 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
16123 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
16125 2011-03-11 Martin Jambor <mjambor@suse.cz>
16127 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
16130 2011-03-11 Jakub Jelinek <jakub@redhat.com>
16132 PR tree-optimization/48063
16133 * ipa-inline.c (cgraph_decide_inlining): Don't try to
16134 inline functions called once if !tree_can_inline_p (node->callers).
16136 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
16138 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
16140 * config/score/score3.c: Delete.
16141 * config/score/score3.h: Delete.
16142 * config/score/mul-div.S: Delete.
16143 * config/score/sfp-machine.h: Add new file.
16144 * config/score/constraints.md: Add new file.
16145 * config/score/t-score-softfp: Add new file.
16146 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
16147 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
16148 (score7_extra_constraint): Delete.
16149 (score7_option_override): Remove unused code.
16150 * config/score/score.c: Remove score3 and score5 define and code.
16151 * config/score/score.h: Remove score3 and score5 define and code.
16152 * config/score/score.md: Remove score3 template and unusual insn.
16153 * config/score/score.opt: Remove score3 and score5 options.
16155 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16157 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
16158 when _HPUX_SOURCE is defined.
16159 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
16161 2011-03-10 Jason Merrill <jason@redhat.com>
16164 * stor-layout.c (layout_type): Don't set structural equality
16165 on arrays of incomplete type.
16166 * tree.c (type_hash_eq): Handle comparing them properly.
16168 2011-03-10 Jakub Jelinek <jakub@redhat.com>
16171 * config/s390/s390.c (s390_delegitimize_address): Make sure the
16172 result mode matches original rtl mode.
16174 2011-03-10 Nick Clifton <nickc@redhat.com>
16176 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
16177 (andsi3, andsi3_flags): Fix timings for three operand alternative.
16179 2011-03-09 Jakub Jelinek <jakub@redhat.com>
16181 PR rtl-optimization/47866
16182 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
16183 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
16184 if target wasn't scalar.
16185 * function.c (assign_stack_temp_for_type): Assert that neither
16186 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
16187 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
16189 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
16191 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16193 * config/s390/s390-protos.h (s390_label_align): New prototype.
16194 * config/s390/s390.c (s390_label_align): New function.
16195 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
16197 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
16200 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
16201 V2DI/V2DF constants. Only all 0's or all 1's are easy.
16202 (output_vec_const_move): Ditto.
16204 2011-03-08 Anatoly Sokolov <aesok@post.ru>
16206 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
16207 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
16208 * config/mips/mips.c (mips_preferred_reload_class): Make static.
16209 Change 'rclass' argument and result type to reg_class_t.
16210 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16212 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
16214 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16215 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
16216 (TARGET_MEMORY_MOVE_COST): Define.
16217 (avr_register_move_cost, avr_memory_move_cost): New Functions.
16219 2011-03-08 Jakub Jelinek <jakub@redhat.com>
16222 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
16225 PR tree-optimization/48022
16226 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
16229 2011-03-07 Jakub Jelinek <jakub@redhat.com>
16232 * var-tracking.c (find_use_val): Return NULL for
16233 cui->sets && cui->store_p BLKmode MEMs.
16235 2011-03-07 Anatoly Sokolov <aesok@post.ru>
16237 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
16239 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
16240 xstormy16_print_operand_address): Remove.
16241 * config/stormy16/stormy16.c (xstormy16_print_operand,
16242 xstormy16_print_operand_address): Make static.
16243 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16245 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
16248 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
16249 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
16252 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
16255 * cfgloopmanip.c (fix_bb_placements): Return immediately
16256 if FROM is BASE_LOOP's header.
16258 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
16260 * gimplify.c (gimplify_function_tree): Fix building calls
16261 to __builtin_return_address.
16263 2011-03-07 Alan Modra <amodra@gmail.com>
16265 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
16266 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
16267 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
16268 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
16270 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
16271 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
16272 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
16273 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
16274 * config/rs6000/rs6000.c
16275 (rs6000_elf_end_indicate_exec_stack): Rename to..
16276 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
16277 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
16278 (rs6000_file_start): ..here.
16279 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
16280 file scope variables.
16281 (call_ABI_of_interest): New function.
16282 (init_cumulative_args): Set above vars when function return value
16283 is a float, vector, or small struct.
16284 (rs6000_function_arg_advance_1): Likewise for function args.
16285 (rs6000_va_start): Set rs6000_passes_float if variable arg function
16286 references float args.
16288 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
16290 * doc/cfg.texi: Remove "See" before @ref.
16291 * doc/invoke.texi: Likewise.
16293 2011-03-05 Jason Merrill <jason@redhat.com>
16295 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
16297 2011-03-05 Anthony Green <green@moxielogic.com>
16299 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
16301 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
16303 PR rtl-optimization/47899
16304 * cfgloopmanip.c (fix_bb_placements): Fix first argument
16305 to flow_loop_nested_p when moving the loop upward.
16307 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
16310 * arm.md (movhi_insn_arch4): Accept any immediate constant.
16312 2011-03-05 Jakub Jelinek <jakub@redhat.com>
16314 PR tree-optimization/47967
16315 * ipa-cp.c (build_const_val): Return NULL instead of creating
16316 VIEW_CONVERT_EXPR for mismatching sizes.
16317 (ipcp_create_replace_map): Return NULL if build_const_val failed.
16318 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
16319 give up on versioning.
16321 2011-03-05 Alan Modra <amodra@gmail.com>
16324 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
16325 full cmodel medium/large lo_sum + high addresses.
16327 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16329 * config/s390/s390.c (s390_decompose_address): Reject non-literal
16330 pool references in UNSPEC_LTREL_OFFSET.
16332 2011-03-04 Jan Hubicka <jh@suse.cz>
16335 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
16336 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
16337 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
16339 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
16340 cgraph_add_thunk): Add node pointers.
16341 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
16342 associated to right node.
16343 (input_node): Update use of cgraph_same_body_alias
16344 and cgraph_add_thunk.
16346 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
16348 * config/i386/i386.opt (mprefer-avx128): New flag.
16349 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
16350 modes when the flag -mprefer-avx128 is on.
16352 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
16354 * dwarf2out.c (compare_loc_operands): Fix address handling.
16356 2011-03-04 Alan Modra <amodra@gmail.com>
16358 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
16360 2011-03-04 Richard Guenther <rguenther@suse.de>
16362 PR middle-end/47968
16363 * expmed.c (extract_bit_field_1): Prefer vector modes that
16364 vec_extract patterns can handle.
16366 2011-03-04 Richard Guenther <rguenther@suse.de>
16368 PR middle-end/47975
16369 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
16371 2011-03-04 Richard Henderson <rth@redhat.com>
16373 * explow.c (emit_stack_save): Remove 'after' parameter.
16374 (emit_stack_restore): Likewise.
16375 * expr.h: Update to match.
16376 * builtins.c, calls.c, stmt.c: Likewise.
16377 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
16378 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
16379 * function.c (expand_function_end): Insert the emit_stack_save
16380 sequence before parm_birth_insn instead of after.
16382 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
16384 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
16385 (ssse3_pmaddubsw128): Ditto.
16386 (ssse3_pmaddubsw): Ditto.
16388 2011-03-03 Steve Ellcey <sje@cup.hp.com>
16390 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
16392 2011-03-03 Jakub Jelinek <jakub@redhat.com>
16395 * gimplify.c (omp_add_variable): Only call omp_notice_variable
16396 on TYPE_SIZE_UNIT if it is a DECL.
16399 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
16400 first operand is not is_gimple_mem_ref_addr, try to fold it.
16401 If the operand still isn't is_gimple_mem_ref_addr, clear
16404 2011-03-03 Richard Guenther <rguenther@suse.de>
16406 PR middle-end/47283
16407 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
16409 (refs_may_alias_p_1): For release branches return true if
16410 we are confused by our input.
16412 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16414 * config/s390/s390.c (s390_function_value): Rename to ...
16415 (s390_function_and_libcall_value): ... this.
16416 (s390_function_value): New function.
16417 (s390_libcall_value): New function.
16418 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
16419 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
16420 target macro definitions.
16421 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
16423 2011-03-02 Joseph Myers <joseph@codesourcery.com>
16425 * config/i386/freebsd64.h (CC1_SPEC): Define.
16426 * config/i386/linux64.h (CC1_SPEC): Define.
16427 * config/i386/x86-64.h (CC1_SPEC): Don't define.
16429 2011-03-02 Anatoly Sokolov <aesok@post.ru>
16431 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
16433 * config/stormy16/stormy16.c: Include reload.h.
16434 (xstormy16_memory_move_cost): New function.
16435 (TARGET_MEMORY_MOVE_COST): Define.
16437 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
16439 PR rtl-optimization/47925
16440 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
16441 with side effects. Remove the more-specific check for volatile asms.
16443 2011-03-02 Alan Modra <amodra@gmail.com>
16446 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
16447 toc relative addresses for valid offsets.
16449 2011-03-01 Richard Guenther <rguenther@suse.de>
16451 PR tree-optimization/47890
16452 * tree-vect-loop.c (get_initial_def_for_induction): Set
16453 related stmt properly.
16455 2011-03-01 Richard Guenther <rguenther@suse.de>
16458 * lto-streamer.c (lto_record_common_node): Also register
16459 the canonical type.
16461 2011-03-01 Richard Guenther <rguenther@suse.de>
16464 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16465 Do not stream DECL_ABSTRACT_ORIGIN.
16466 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16467 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16468 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16469 Do not stream DECL_ABSTRACT_ORIGIN.
16470 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
16471 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
16473 2011-02-28 Anatoly Sokolov <aesok@post.ru>
16475 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
16476 FUNCTION_VALUE_REGNO_P): Remove.
16477 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
16478 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
16479 Add 'outgoing' argument.
16480 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
16482 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
16483 TARGET_FUNCTION_VALUE_REGNO_P): Define.
16485 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
16488 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
16489 (lookup_filename): Likewise.
16490 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
16492 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
16493 Jakub Jelinek <jakub@redhat.com>
16495 PR middle-end/47893
16496 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
16497 (assign_stack_local_1): Change last argument type to int.
16498 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
16499 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
16500 don't record padding space into frame_space_list nor use those areas.
16501 (assign_stack_local): Adjust caller.
16502 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
16503 of assign_stack_local, pass 0 as last argument.
16504 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
16507 2011-02-28 Jakub Jelinek <jakub@redhat.com>
16510 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
16511 Use target address_mode and pointer_mode hooks instead of hardcoded
16512 Pmode and ptr_mode. Handle some simple cases of extending if
16513 POINTERS_EXTEND_UNSIGNED < 0.
16514 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
16515 Call convert_debug_memory_address.
16516 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
16517 convert_debug_memory_address.
16519 PR middle-end/46790
16520 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
16521 * configure: Regenerated.
16522 * config.in: Regenerated.
16523 * varasm.c (default_function_section): Return NULL
16524 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
16526 2011-02-28 Martin Jambor <mjambor@suse.cz>
16528 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
16529 the description to match the printed values.
16531 2011-02-28 Richard Guenther <rguenther@suse.de>
16533 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
16534 of the copied scope tree.
16536 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16538 * doc/extend.texi (Function Attributes): Avoid deeply (and
16539 wrongly) nested tables.
16541 2011-02-27 Jakub Jelinek <jakub@redhat.com>
16543 PR middle-end/47903
16544 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
16545 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
16546 r isn't op0 nor op1.
16548 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16550 * config/avr/avr.md: Remove magic comment for emacs.
16552 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
16555 * config/avr/avr.c (avr_option_override): Use error on bad options.
16556 (avr_help): New function.
16557 (TARGET_HELP): Define.
16559 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
16562 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
16563 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
16565 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
16567 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
16568 (ARM Options): Ditto.
16569 (i386 and x86-64 Options): Ditto.
16570 (RX Options): Ditto.
16571 (SPARC Options): Ditto.
16573 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
16575 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
16576 FreeBSD 6 and later. Generally use cpu generic.
16578 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16580 * doc/cpp.texi: Update copyright years.
16582 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
16585 * config/lm32/lm32.md (ashrsi3): Added needed variable.
16587 2011-02-25 Jon Beniston <jon@beniston.com>
16590 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
16591 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
16592 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
16593 (lm32_block_move_inline): Add type cast to remove warning.
16594 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
16595 (gen_int_relational): Move declarations to start of function.
16597 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
16599 PR tree-optimization/45470
16600 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
16601 can throw internally only.
16602 * tree-vect-stmts.c (vectorizable_call): Likewise.
16604 2011-02-24 Anatoly Sokolov <aesok@post.ru>
16606 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
16607 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
16608 * config/stormy16/stormy16-protos.h
16609 (xstormy16_preferred_reload_class): Remove.
16610 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
16611 static. Change 'rclass' argument and return type to reg_class_t.
16612 (TARGET_PREFERRED_RELOAD_CLASS,
16613 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
16615 2011-02-24 Richard Guenther <rguenther@suse.de>
16617 * lto-streamer-in.c (input_bb): Do not find referenced vars
16618 in debug statements.
16620 2011-02-23 Jason Merrill <jason@redhat.com>
16622 * common.opt (fabi-version): Document v5 and v6.
16624 2011-02-23 Richard Guenther <rguenther@suse.de>
16626 PR tree-optimization/47849
16627 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
16629 2011-02-23 Jie Zhang <jie@codesourcery.com>
16631 * opts-common.c (decode_cmdline_option): Print empty string
16632 argument as "" in decoded->orig_option_with_args_text.
16633 * gcc.c (execute): Print empty string argument as ""
16634 in the verbose output.
16635 (do_spec_1): Keep empty string argument.
16637 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
16639 * config.gcc: Declare score-* and crx-* obsolete.
16641 2011-02-23 Jie Zhang <jie@codesourcery.com>
16643 PR rtl-optimization/47763
16644 * web.c (web_main): Ignore naked clobber when replacing register.
16646 2011-02-22 Anatoly Sokolov <aesok@post.ru>
16648 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
16651 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
16654 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
16656 2011-02-22 Mike Stump <mikestump@comcast.net>
16658 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
16660 * configure: Regenerate.
16662 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
16664 PR rtl-optimization/46002
16665 * ira-color.c (update_copy_costs): Change class intersection
16666 test to reg_class_contents[] test of 'hard_regno'.
16668 2011-02-21 Joseph Myers <joseph@codesourcery.com>
16670 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
16671 than Driver option.
16672 * config/hpux11.opt (mt): Likewise.
16673 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
16674 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
16675 * config/vax/elf.opt (mno-asm-pic): Likewise.
16676 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
16678 2011-02-21 Mike Stump <mikestump@comcast.net>
16681 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
16682 tree so we can get save the type.
16683 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
16684 for CFString instead of trying to use past the end of the builtins.
16685 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
16686 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
16687 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
16688 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
16689 Rename to darwin_builtin_cfstring.
16690 (darwin_init_cfstring_builtins): Return the built type.
16692 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
16695 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
16696 (_mm256_insert_epi64): Use _mm_insert_epi64.
16698 2011-02-21 Anatoly Sokolov <aesok@post.ru>
16700 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16701 * config/stormy16/stormy16-protos.h
16702 (xstormy16_mode_dependent_address_p): Remove.
16703 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
16704 Make static. Change return type to bool. Change argument type to
16705 const_rtx. Remove dead code.
16706 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16708 2011-02-21 Richard Guenther <rguenther@suse.de>
16711 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
16712 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16713 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
16715 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
16716 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
16718 2011-02-20 Richard Guenther <rguenther@suse.de>
16721 * tree.c (free_lang_data_in_decl): Clean builtins from
16722 the TU decl BLOCK_VARS.
16724 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
16728 * haifa-sched.c (fix_tick_ready): Skip tick computation
16731 2011-02-19 Richard Guenther <rguenther@suse.de>
16734 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
16735 Remove lazy BLOCK_VARS streaming.
16736 (lto_input_ts_block_tree_pointers): Likewise.
16737 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
16739 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16741 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
16743 2011-02-19 Joseph Myers <joseph@codesourcery.com>
16745 * config/i386/biarch32.h, config/i386/mach.h,
16746 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
16748 2011-02-19 Jakub Jelinek <jakub@redhat.com>
16751 * config/i386/i386.md (peephole2 for shift and plus): Use
16752 operands[1] original mode in the first insn.
16754 2011-02-18 Mike Stump <mikestump@comcast.net>
16756 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
16758 2011-02-18 Jan Hubicka <jh@suse.cz>
16760 PR middle-end/47788
16761 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
16762 to zero when the function is not inlinable at all.
16764 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16766 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
16767 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
16768 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
16769 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
16770 * config/pa/t-pa64: Likewise.
16771 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16773 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16776 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
16778 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16781 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
16783 2011-02-18 Anatoly Sokolov <aesok@post.ru>
16785 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16786 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
16787 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
16788 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16789 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
16790 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
16791 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
16792 m32r_load_postinc_p, m32r_store_preinc_predec_p,
16793 m32r_legitimate_address_p): New functions.
16794 * config/m32r/constraints.md (constraint "S"): Don't use
16795 STORE_PREINC_PREDEC_P.
16796 (constraint "U"): Don't use LOAD_POSTINC_P.
16798 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
16800 PR rtl-optimization/46178
16801 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
16802 compute ira_hard_regno_cover_class[].
16804 2011-02-18 Richard Guenther <rguenther@suse.de>
16807 * lto-streamer.h (lto_global_var_decls): Declare.
16808 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
16809 statics for global var processing.
16811 2011-02-18 Richard Guenther <rguenther@suse.de>
16813 PR tree-optimization/47737
16814 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
16815 edge dominance check.
16817 2011-02-18 Jakub Jelinek <jakub@redhat.com>
16820 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
16821 avoid invalid rtx sharing.
16823 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
16825 * doc/cpp.texi (Obsolete Features): Add background on the
16826 origin of assertions.
16828 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
16830 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
16832 * config/darwin.c (output_objc_section_asm_op): Added support for
16834 (is_objc_metadata): New.
16835 (darwin_objc2_section): New.
16836 (darwin_objc1_section): New.
16837 (machopic_select_section): Added support for ABI v1 and v2.
16838 (darwin_emit_objc_zeroed): New.
16839 (darwin_output_aligned_bss): Detect objc metadata and treat it
16841 (darwin_asm_output_aligned_decl_common): Same.
16842 (darwin_asm_output_aligned_decl_local): Same.
16843 * config/darwin-sections.def: Updated for ABI v1 and v2.
16844 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
16845 compiling Objective-C code for the NeXT runtime, default to using
16846 ABI version 0 for 32-bit, and version 2 for 64-bit.
16848 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16850 * common.opt (optimize_fast): New Variable.
16851 * opts.c (default_options_optimization): Use opts->x_optimize_fast
16852 instead of local variable ofast.
16854 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
16856 * doc/invoke.texi (fobjc-abi-version): Documented.
16857 (fobjc-nilcheck): Documented.
16858 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
16861 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16864 * common.opt (export-dynamic): New Driver option.
16865 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
16867 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16869 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
16871 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
16872 Jan Hubicka <jh@suse.cz>
16876 * cfgexpand.c (account_used_vars_for_block): Remove.
16877 (estimated_stack_frame_size): Use referenced vars.
16878 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
16879 that were referenced in the original function. Test src_fn
16880 rather than cfun. Drop redundant get_var_ann.
16881 (setup_one_parameter): Drop redundant get_var_ann.
16882 (declare_return_variable): Likewise.
16883 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
16884 (copy_arguments_for_versioning): Drop redundant get_var_ann.
16885 * ipa-inline.c (compute_inline_parameters): Do not compute
16886 disregard_inline_limits here.
16887 (compute_inlinable_for_current, pass_inlinable): New.
16888 (pass_inline_parameters): Require PROP_referenced_vars.
16889 * cgraphunit.c (cgraph_process_new_functions): Don't run
16890 compute_inline_parameters explicitly unless function is in SSA form.
16891 (cgraph_analyze_function): Set .disregard_inline_limits.
16892 * tree-sra.c (convert_callers): Compute inliner parameters
16893 only for functions already in SSA form.
16895 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16897 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
16898 -mlittle-endian-data.
16900 2011-02-17 Joseph Myers <joseph@codesourcery.com>
16902 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
16903 -mno-fpu, not -fpu and -no-fpu.
16904 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
16905 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
16907 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
16910 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
16911 input reload with PLUS RTX.
16913 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16915 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
16916 of InverseVar(MDMX).
16918 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16920 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
16923 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16925 * config/mn10300/mn10300.opt (mno-crt0): New.
16927 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16929 * config/m68k/uclinux.opt (static-libc): New Driver option.
16931 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16933 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
16935 2011-02-16 Joseph Myers <joseph@codesourcery.com>
16937 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
16938 %{muser-extend-enabled}.
16940 2011-02-16 Richard Guenther <rguenther@suse.de>
16942 PR tree-optimization/47738
16943 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
16944 the TODO from tree_predictive_commoning.
16946 2011-02-15 Jeff Law <law@redhat.com>
16949 2011-01-25 Jeff Law <law@redhat.com>
16951 PR rtl-optimization/37273
16952 * ira-costs.c (scan_one_insn): Detect constants living in memory and
16953 handle them like argument loads from stack slots. Do not double
16954 count memory for memory constants and argument loads from stack slots.
16956 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
16958 PR middle-end/47725
16959 * combine.c (cant_combine_insn_p): Revert the last change.
16961 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
16964 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
16965 mode for vector constants. Remove code that checks for TImode.
16967 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16971 * cgraph.h (compute_inline_parameters): Return void.
16972 * ipa-inline.c (compute_inline_parameters): Adjust.
16974 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16978 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
16980 * cfgexpand.c (estimated_stack_frame_size): Likewise.
16981 * ipa-inline.c (compute_inline_parameters): Adjust.
16983 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
16987 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
16988 Adjust all users. Pass FN to...
16989 * tree-flow-inline.h (first_referenced_var): ... this. Add
16991 * ipa-struct-reorg.c: Adjust.
16992 * tree-dfa.c: Adjust.
16993 * tree-into-ssa.c: Adjust.
16994 * tree-sra.c: Adjust.
16995 * tree-ssa-alias.c: Adjust.
16996 * tree-ssa-live.c: Adjust.
16997 * tree-ssa.c: Adjust.
16998 * tree-ssanames.c: Adjust.
16999 * tree-tailcall.c: Adjust.
17001 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
17005 * tree-flow.h (referenced_var_lookup): Add fn parameter.
17006 Adjust all callers.
17007 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
17008 * tree-flow-inline.h: Adjust.
17009 * gimple-pretty-print.c: Adjust.
17010 * tree-into-ssa.c: Adjust.
17011 * tree-ssa.c: Adjust.
17012 * cfgexpand.c: Adjust.
17014 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17016 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
17017 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17018 (EXTRA_CONSTRAINT): Delete.
17019 * config/iq2000/constraints.md: New file.
17020 * config/iq2000/iq2000.md: Include it.
17021 (define_insn ""): Delete.
17022 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
17023 unsupported constraint letters from patterns.
17024 (call_value, call_value_internal1): Likewise.
17025 (call_value_multiple_internal1): Likewise.
17027 2011-02-15 Nick Clifton <nickc@redhat.com>
17029 * config/mn10300/mn10300.c: Include tm-constrs.h.
17030 (struct liw_data): New data structure describing an LIW candidate
17032 (extract_bundle): Use struct liw_data. Allow small integer
17033 operands for some instructions.
17034 (check_liw_constraints): Use struct liw_data. Remove swapped
17035 parameter. Add comments describing the checks. Fix bug when
17036 assigning the source of liw1 to the source of liw2.
17037 (liw_candidate): Delete. Code moved into extract_bundle.
17038 (mn10300_bundle_liw): Use struct liw_data. Check constraints
17040 * config/mn10300/predicates.md (liw_operand): New predicate.
17041 Allows registers and small integer constants.
17042 * config/mn10300/constraints.md (O): New constraint. Accetps
17043 integers in the range -8 to +7 inclusive.
17044 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
17045 for moving a small integer into a register. Give this alternative
17047 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
17048 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
17049 using the J,K,L and M constraints,
17050 (liw): Remove SI mode on second operands to allow for HI and QI
17052 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
17055 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
17057 PR middle-end/47725
17058 * combine.c (cant_combine_insn_p): Check zero/sign extended
17061 2011-02-15 Richard Guenther <rguenther@suse.de>
17063 PR tree-optimization/47743
17064 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
17065 for a non-type-compatible VN lookup bail out.
17067 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17069 * config/fr30/constraints.md: New file.
17070 * config/fr30/fr30.md: Include it.
17071 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
17072 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17073 (EXTRA_CONSTRAINT): Delete.
17075 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
17077 * config/frv/constraints.md: New file.
17078 * config/frv/predicates.md: Include it.
17079 * config/frv/frv.c (reg_class_from_letter): Delete.
17080 (frv_option_override): Don't initialize it.
17081 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
17082 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
17083 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
17084 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17085 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
17086 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17087 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
17088 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
17089 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
17090 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
17091 (REG_CLASS_FROM_CONSTRAINT): Delete.
17093 2011-02-15 Jakub Jelinek <jakub@redhat.com>
17095 PR middle-end/47581
17096 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
17097 if frame size is 0 in a leaf function.
17099 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17102 * config/alpha/host-osf.c: New file.
17103 * config/alpha/x-osf: New file.
17104 * config.host (alpha*-dec-osf*): Use it.
17106 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17108 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
17109 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
17110 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
17111 (rx_mode_dependent_address_p): ...this. Make static. Change argument
17113 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17115 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17117 * config/stormy16/constraints.md: New file.
17118 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
17119 Use satisfies_constraint_Q and satisfies_constraint_R.
17120 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
17122 (xstormy16_legitiamte_address_p): Declare.
17123 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
17124 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17125 (EXTRA_CONSTRAINT): Delete.
17126 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
17128 (xstormy16_extra_constraint_p): Delete.
17130 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
17132 PR tree-optimization/46494
17133 * loop-unroll.c (split_edge_and_insert): Adjust comment.
17134 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
17135 (pass_rtl_loop_done): Add TODO_verify_flow.
17136 * fwprop.c (pass_rtl_fwprop): Likewise.
17137 * modulo-sched.c (pass_sms): Likewise.
17138 * tree-ssa-dom.c (pass_dominator): Likewise.
17139 * tree-ssa-loop-ch.c (pass_ch): Likewise.
17140 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
17141 (pass_tree_loop_done): Likewise.
17142 * tree-ssa-pre.c (execute_pre): Likewise.
17143 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
17144 * tree-ssa-sink.c (pass_sink_code): Likewise.
17145 * tree-vrp.c (pass_vrp): Likewise.
17147 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17149 * config/v850/constraints.md: New file.
17150 * config/v850/v850.md: Include it.
17151 * config/v850/predicates.md (reg_or_0_operand): Use
17152 satisfies_constraint_G.
17153 (special_symbolref_operand): Use satisfies_constraint_K.
17154 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
17155 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
17156 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
17157 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
17158 (EXTRA_CONSTRAINT): Delete.
17159 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
17160 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
17161 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
17163 2011-02-14 Anatoly Sokolov <aesok@post.ru>
17166 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
17169 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
17171 * config/mcore/constraints.md: New file.
17172 * config/mcore/mcore.md: Include it.
17173 * config/mcore/mcore.c (reg_class_from_letter): Delete.
17174 * config/mcore/mcore.h (reg_class_from_letter): Delete.
17175 (REG_CLASS_FROM_LETTER): Delete.
17176 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
17177 insn_const_int_ok_for_constraint.
17178 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
17179 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
17180 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17181 (EXTRA_CONSTRAINT): Delete.
17183 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17186 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
17187 (IS_SIGHANDLER): Define.
17188 (sparc64_is_sighandler): New function, split off from
17189 sparc64_fallback_frame_state.
17190 (sparc_is_sighandler): New function, split off from
17191 sparc_fallback_frame_state.
17192 (sparc64_fallback_frame_state): Merge with ...
17193 (sparc_fallback_frame_state): ... this into ...
17194 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
17195 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
17196 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
17197 stack instead of hardcoded offsets.
17199 2011-02-14 Andriy Gapon <avg@freebsd.org>
17202 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
17204 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17206 * configure: Regenerate.
17208 2011-02-12 Joseph Myers <joseph@codesourcery.com>
17211 * gcc.c (asm_options): Correct spec matching --target-help.
17213 2011-02-12 Martin Jambor <mjambor@suse.cz>
17215 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
17216 to gimple call error.
17218 2011-02-12 Mike Stump <mikestump@comcast.net>
17220 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
17221 comments in backslash regions.
17223 2011-02-12 Mike Stump <mikestump@comcast.net>
17224 Jakub Jelinek <jakub@redhat.com>
17225 Iain Sandoe <iains@gcc.gnu.org>
17228 * dwarf2out.c (output_cfa_loc): When required, apply the
17229 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
17230 (output_loc_sequence): Likewise.
17231 (output_loc_operands_raw): Likewise.
17232 (output_loc_sequence_raw): Likewise.
17233 (output_cfa_loc): Likewise.
17234 (output_loc_list): Suppress register number adjustment when
17235 calling output_loc_sequence()
17236 (output_die): Likewise.
17238 2011-02-12 Anatoly Sokolov <aesok@post.ru>
17240 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
17242 * config/xtensa/xtensa.c (xtensa_register_move_cost,
17243 xtensa_memory_move_cost): New functions.
17244 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
17246 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
17249 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
17250 in the current directory.
17251 * configure: Rebuilt.
17253 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17255 * config/darwin.c (darwin_override_options): Add a hunk missed
17256 from the commit of r168571. Trim comment line lengths and
17257 correct indents of the preceding block.
17259 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
17261 * gcc.c (driver_handle_option): Concatenate the argument to -F with
17264 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17266 * common.opt (nostartfiles): New Driver option.
17268 2011-02-11 Xinliang David Li <davidxl@google.com>
17270 PR tree-optimization/47707
17271 * tree-chrec.c (convert_affine_scev): Keep type precision.
17273 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
17275 PR tree-optimization/47420
17276 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
17278 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
17280 PR rtl-optimization/47614
17281 * rtl.h (check_for_inc_dec): Declare.
17282 * dse.c (check_for_inc_dec): Externalize...
17283 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
17284 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
17286 2011-02-11 Joseph Myers <joseph@codesourcery.com>
17289 * gcc.c (main): Do not compile inputs if there were errors in
17291 * opts-common.c (read_cmdline_option): Check for wrong language
17292 after other error checks.
17294 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
17296 * cgraph.c: Fix comment typos.
17297 * cgraph.h: Likewise.
17298 * cgraphunit.c: Likewise.
17299 * ipa-cp.c: Likewise.
17300 * ipa-inline.c: Likewise.
17301 * ipa-prop.c: Likewise.
17302 * ipa-pure-const.c: Likewise.
17303 * ipa-ref.c: Likewise.
17304 * ipa-reference.c: Likewise.
17306 2011-02-11 Jakub Jelinek <jakub@redhat.com>
17309 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
17311 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17314 * doc/sourcebuild.texi (Require Support): Document
17315 dg-require-ascii-locale.
17317 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
17319 * doc/lto.texi (Write summary): Fix missing parentheses.
17321 2011-02-10 DJ Delorie <dj@redhat.com>
17323 * config/m32c/m32c.c (m32c_option_override): Disable
17324 -fcombine-stack-adjustments until flag value tracking and compare
17325 optimization can be rewritten.
17327 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
17329 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
17331 (PROCESSOR_DEFAULT64): Likewise.
17333 2011-02-10 Richard Henderson <rth@redhat.com>
17335 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
17336 change from 2011-02-03.
17337 * config/rx/rx.c (flags_from_code): Likewise.
17338 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
17339 is valid, n/pz otherwise.
17340 (rx_select_cc_mode): Return CCmode if Y is not zero.
17342 2011-02-10 Richard Guenther <rguenther@suse.de>
17344 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
17346 2011-02-10 Richard Guenther <rguenther@suse.de>
17348 PR tree-optimization/47677
17349 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
17351 2011-02-10 Jakub Jelinek <jakub@redhat.com>
17354 * combine.c (make_compound_operation): Only change shifts into
17355 multiplication for SCALAR_INT_MODE_P.
17357 2011-02-10 Jie Zhang <jie@codesourcery.com>
17361 2011-02-05 Jie Zhang <jie@codesourcery.com>
17363 * web.c (entry_register): Don't clobber the number of the
17364 first uninitialized reference in used[].
17366 2011-02-09 Richard Guenther <rguenther@suse.de>
17368 PR tree-optimization/47664
17369 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
17372 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
17376 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
17378 (PROCESSOR_DEFAULT64): Same.
17379 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
17381 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17383 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
17385 2011-02-09 Martin Jambor <mjambor@suse.cz>
17387 PR middle-end/45505
17388 * tree-sra.c (struct access): New flags grp_scalar_read and
17389 grp_scalar_write. Changed description of assignment read and write
17391 (dump_access): Dump new flags, reorder all of them.
17392 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
17393 to detect multiple scalar reads.
17394 (analyze_access_subtree): Use the new scalar read write flags instead
17395 of the old flags. Adjusted comments.
17397 2011-02-08 DJ Delorie <dj@redhat.com>
17400 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
17403 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17405 * config/m68k/uclinux.opt: New.
17406 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
17408 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17410 * config/cris/elf.opt (sim): New Driver option.
17412 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17414 * config/xtensa/elf.opt: New.
17415 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
17417 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17419 * config/vax/elf.opt: New.
17420 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
17422 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17424 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
17426 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17428 * config/gnu-user.opt: New.
17429 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
17430 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
17431 *-*-uclinux*): Use gnu-user.opt.
17433 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
17435 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
17436 * config/i386/gnu.h (CPP_SPEC): Likewise.
17438 2011-02-08 Ian Lance Taylor <iant@google.com>
17440 * common.opt (fcx-limited-range): Add SetByCombined flag.
17441 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
17442 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
17443 (fassociative-math, freciprocal-math): Likewise.
17444 (funsafe-math-optimizations): Likewise.
17445 * opth-gen.awk: Handle SetByCombined.
17446 * optc-gen.awk: Likewise.
17447 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
17448 (set_unsafe_math_optimizations_flags): Likewise.
17449 * doc/options.texi (Option properties): Document SetByCombined.
17451 2011-02-08 Joseph Myers <joseph@codesourcery.com>
17453 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
17454 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
17455 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
17456 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
17457 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
17459 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
17461 PR tree-optimization/46834
17462 PR tree-optimization/46994
17463 PR tree-optimization/46995
17464 * graphite-sese-to-poly.c (used_outside_reduction): New.
17465 (detect_commutative_reduction): Call used_outside_reduction.
17466 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
17467 translate_scalar_reduction_to_array only when at least one
17468 loop-phi/close-phi tuple has been detected.
17470 2011-02-08 Richard Guenther <rguenther@suse.de>
17472 PR middle-end/47639
17473 * tree-vect-generic.c (expand_vector_operations_1): Update
17475 (expand_vector_operations): ... not here. Cleanup EH info
17476 and the CFG if required.
17478 2011-02-08 Richard Guenther <rguenther@suse.de>
17480 PR tree-optimization/47641
17481 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
17482 require type compatibility.
17484 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17486 * gimple-low.c (lower_function_body): Don't remove the location of
17487 the return statement here.
17488 (lower_gimple_return): Do it here instead but only if the return
17489 statement is actually used twice.
17491 2011-02-08 Richard Guenther <rguenther@suse.de>
17493 PR tree-optimization/47632
17494 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
17495 unused up_to_stmt parameter, return whether cfg-cleanup is
17496 necessary, remove EH info properly.
17497 (forward_propagate_into_gimple_cond): Adjust caller.
17498 (forward_propagate_into_cond): Likewise.
17499 (forward_propagate_comparison): Likewise.
17500 (tree_ssa_forward_propagate_single_use_vars): Make
17501 forward_propagate_comparison case similar to the two others.
17503 2011-02-08 Nick Clifton <nickc@redhat.com>
17505 * config/mn10300/mn10300.opt (mliw): New command line option.
17506 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
17507 (liw_bundling): New automaton.
17508 (liw): New attribute.
17509 (liw_op): New attribute.
17510 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
17511 (movsi_internal): Add LIW attributes.
17512 (andsi3): Likewise.
17513 (iorsi3): Likewise.
17514 (xorsi3): Likewise.
17515 (addsi3): Separate register and immediate alternatives.
17516 Add LIW attributes.
17517 (subsi3): Likewise.
17519 (aslsi3): Likewise.
17520 (lshrsi3): Likewise.
17521 (ashrsi3): Likewise.
17522 (liw): New pattern.
17523 * config/mn10300/mn10300.c (liw_op_names): New
17524 (mn10300_print_operand): Handle 'W' operand descriptor.
17525 (extract_bundle): New function.
17526 (check_liw_constraints): New function.
17527 (liw_candidate): New function.
17528 (mn10300_bundle_liw): New function.
17529 (mn10300_reorg): New function.
17530 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17531 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
17532 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
17533 __LIW__ or __NO_LIW__.
17534 * doc/invoke.texi: Describe the -mliw command line option.
17536 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17538 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
17539 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
17540 pthread_mutex_unlock): Remove.
17541 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
17542 * config/pa/t-pa64: Likewise.
17543 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
17544 shared libc if not linking against libpthread.
17545 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
17547 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
17550 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
17551 on 10.6 and later to ensure that we always use the unwinder from
17552 the system. Only add -no_compact_unwind when tarteting darwin
17555 2011-02-07 Steve Ellcey <sje@cup.hp.com>
17558 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
17559 (vec_interleave_lowv2sf): Ditto.
17560 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
17561 (vec_extract_oddv2sf): Ditto.
17563 2011-02-07 Mike Stump <mikestump@comcast.net>
17566 Add __ieee_divdc3 entry point.
17567 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
17569 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
17570 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
17571 * config/darwin.c (darwin_rename_builtins): Add.
17572 * config/darwin-protos.h (darwin_rename_builtins): Add.
17574 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
17577 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
17580 2011-02-07 Mike Stump <mikestump@comcast.net>
17582 * config/darwin.opt (mmacosx-version-min): Update default OS version.
17584 2011-02-07 Denis Chertykov <chertykov@gmail.com>
17587 * config/avr/libgcc.S (exit): Move .endfunc
17589 2011-02-07 Richard Guenther <rguenther@suse.de>
17591 PR tree-optimization/47615
17592 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
17593 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
17594 (run_scc_vn): Initialize it.
17595 (visit_reference_op_load): Use it.
17596 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
17598 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17600 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
17601 DImode trapping arithmetic libfuncs.
17603 2011-02-07 Richard Guenther <rguenther@suse.de>
17605 PR tree-optimization/47621
17606 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
17608 (execute_update_addresses_taken): ... here. Make it more
17609 conservative in what we accept.
17611 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17613 * config/sparc/freebsd.h (ASM_SPEC): Define.
17614 * config/sparc/vxworks.h (ASM_SPEC): Define.
17616 2011-02-06 Joseph Myers <joseph@codesourcery.com>
17618 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17620 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
17622 * doc/invoke.texi: Remove reference to compiler internals from
17623 user documentation.
17625 * reg-notes.def: Remove REG_VALUE_PROFILE.
17626 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
17628 2011-02-05 Jakub Jelinek <jakub@redhat.com>
17630 PR middle-end/47610
17631 * varasm.c (default_section_type_flags): If decl is NULL,
17632 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
17634 2011-02-05 Jie Zhang <jie@codesourcery.com>
17637 * web.c (entry_register): Don't clobber the number of the
17638 first uninitialized reference in used[].
17640 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
17642 PR tree-optimization/46194
17643 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
17644 (build_classic_dist_vector_1): Do not represent classic distance
17645 vectors when the access functions are variating in different loops.
17647 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17649 * config/mips/iris6.opt: New.
17650 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
17652 2011-02-04 Richard Henderson <rth@redhat.com>
17653 Steve Ellcey <sje@cup.hp.com>
17656 * config/ia64/predicates.md (mux1_brcst_element): New.
17657 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
17658 * config/ia64/ia64.c (ia64_unpack_assemble): New.
17659 (ia64_unpack_sign): New.
17660 (ia64_expand_unpack): Rewrite using new routines.
17661 (ia64_expand_widen_sum): Ditto.
17662 (ia64_expand_dot_prod_v8qi): Ditto.
17663 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
17664 routines, add endian check.
17665 (pmpy2_even): Rename from pmpy2_r, add endian check.
17666 (pmpy2_odd): Rename from pmpy2_l, add endian check.
17667 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
17668 (vec_widen_smult_hi_v4hi): Ditto.
17669 (vec_widen_umult_lo_v4hi): Ditto.
17670 (vec_widen_umult_hi_v4hi): Ditto.
17671 (mulv2si3): Change endian checks.
17672 (sdot_prodv4hi): Rewrite with new calls.
17673 (udot_prodv4hi): New.
17674 (vec_pack_ssat_v4hi): Add endian check.
17675 (vec_pack_usat_v4hi): Ditto.
17676 (vec_pack_ssat_v2si): Ditto.
17677 (max1_even): Rename from max1_r, add endian check.
17678 (max1_odd): Rename from max1_l, add endian check.
17679 (*mux1_rev): Format change.
17680 (*mux1_mix): Ditto.
17681 (*mux1_shuf): Ditto.
17682 (*mux1_alt): Ditto.
17683 (*mux1_brcst_v8qi): Use new predicate.
17684 (vec_extract_evenv8qi): Remove endian check.
17685 (vec_extract_oddv8qi): Ditto.
17686 (vec_interleave_lowv4hi): Format change.
17687 (vec_interleave_highv4hi): Ditto.
17688 (mix2_even): Rename from mix2_r, add endian check.
17689 (mix2_odd): Rename from mux2_l, add endian check.
17690 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
17691 (vec_extract_evenodd_helper): Format change.
17692 (vec_extract_evenv4hi): Remove endian check.
17693 (vec_extract_oddv4hi): Remove endian check.
17694 (vec_interleave_lowv2si): Format change.
17695 (vec_interleave_highv2si): Format change.
17696 (vec_initv2si): Remove endian check.
17697 (vecinit_v2si): Add endian check.
17698 (reduc_splus_v2sf): Add endian check.
17699 (reduc_smax_v2sf): Ditto.
17700 (reduc_smin_v2sf): Ditto.
17701 (vec_initv2sf): Remove endian check.
17702 (fpack): Add endian check.
17703 (fswap): Add endian check.
17704 (vec_interleave_highv2sf): Add endian check.
17705 (vec_interleave_lowv2sf): Add endian check.
17706 (fmix_lr): Add endian check.
17707 (vec_setv2sf): Format change.
17708 (*vec_extractv2sf_0_be): Use shift to extract operand.
17709 (*vec_extractv2sf_1_be): New.
17710 (vec_pack_trunc_v4hi): Add endian check.
17711 (vec_pack_trunc_v2si): Format change.
17713 2011-02-04 Jakub Jelinek <jakub@redhat.com>
17715 PR inline-asm/23200
17716 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
17717 do bb, locus and block comparison and disallow loads if it is not set.
17718 (stmt_is_replaceable_p): New function.
17719 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
17721 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
17722 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
17724 * tree-flow.h (stmt_is_replaceable_p): New prototype.
17726 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17728 * config/rs6000/xilinx.opt: New.
17729 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
17731 2011-02-04 Joseph Myers <joseph@codesourcery.com>
17733 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
17735 2011-02-03 Anatoly Sokolov <aesok@post.ru>
17737 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
17738 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
17739 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
17740 secondary_reload_info, xtensa_secondary_reload): Remove.
17741 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
17742 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
17743 (xtensa_preferred_reload_class): Make static. Change return and
17744 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
17745 Use CONST_DOUBLE_P predicate.
17746 (xtensa_preferred_output_reload_class): New function.
17747 (xtensa_secondary_reload): Make static.
17749 2011-02-03 Joseph Myers <joseph@codesourcery.com>
17751 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
17752 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
17753 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
17755 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17757 PR middle-end/31490
17758 * output.h (SECTION_RELRO): Define.
17759 (SECTION_MACH_DEP): Adjust.
17760 (get_variable_section): New prototype.
17761 * varpool.c (varpool_finalize_named_section_flags): New function.
17762 (varpool_assemble_pending_decls): Call it.
17763 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
17764 * cgraphunit.c (cgraph_output_in_order): Call
17765 varpool_finalize_named_section_flags.
17766 * varasm.c (get_section): Allow section flags conflicts between
17767 relro and read-only sections if the section hasn't been declared yet.
17768 Set SECTION_OVERRIDE after diagnosing section type conflict.
17769 (get_variable_section): No longer static.
17770 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
17771 readonly sections that need relocations.
17772 (decl_readonly_section_1): New function.
17773 (decl_readonly_section): Use it.
17776 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
17777 Steve Ellcey <sje@cup.hp.com>
17779 PR middle-end/31490
17780 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
17781 if section attribute used.
17783 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17785 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
17786 * config/darwin.c (SECTION_NO_ANCHOR): Define.
17787 (darwin_init_sections): Remove assertion.
17789 2011-02-03 Nick Clifton <nickc@redhat.com>
17791 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
17793 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
17794 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
17795 instead of "n" and "pz".
17796 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
17799 2011-02-03 Jakub Jelinek <jakub@redhat.com>
17802 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
17803 fma, expand FMA_EXPR as fma{,f,l} call.
17806 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
17807 copy them into a unsigned char variable and pass address of it to
17808 lto_output_data_stream.
17811 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
17812 around backend_init_target and lang_dependent_init_target calls.
17813 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
17814 (verify_cgraph_node): Don't call set_cfun here. Use
17815 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
17816 Set error_found for incorrectly represented calls to thunks.
17818 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17821 PR rtl-optimization/43494
17822 * rtl.h (for_each_inc_dec_fn): New type.
17823 (for_each_inc_dec): Declare.
17824 * rtlanal.c (struct for_each_inc_dec_ops): New type.
17825 (for_each_inc_dec_find_inc_dec): New fn.
17826 (for_each_inc_dec_find_mem): New fn.
17827 (for_each_inc_dec): New fn.
17828 * dse.c (struct insn_size): Remove.
17829 (replace_inc_dec, replace_inc_dec_mem): Remove.
17830 (emit_inc_dec_insn_before): New fn.
17831 (check_for_inc_dec): Use it, along with for_each_inc_dec.
17832 (canon_address): Pass mem modes to cselib_lookup.
17833 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
17834 (cselib_lookup_from_insn): Likewise.
17835 (cselib_subst_to_values): Likewise.
17836 * cselib.c (find_slot_memmode): New var.
17837 (cselib_find_slot): New fn. Use it instead of
17838 htab_find_slot_with_hash everywhere.
17839 (entry_and_rtx_equal_p): Use find_slot_memmode.
17840 (autoinc_split): New fn.
17841 (rtx_equal_for_cselib_p): Rename and implement in terms of...
17842 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
17843 Deal with autoinc. Special-case recursion into MEMs.
17844 (cselib_hash_rtx): Likewise.
17845 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
17846 address and MEM modes.
17847 (cselib_subst_to_values): Add memmode, pass it on.
17849 (cselib_lookup): Add memmode argument, pass it on.
17850 (cselib_lookup_from_insn): Add memmode.
17851 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
17852 (struct cselib_record_autoinc_data): New.
17853 (cselib_record_autoinc_cb): New fn.
17854 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
17855 mode to cselib_lookup. Reset autoinced REGs here instead of...
17856 (cselib_process_insn): ... here.
17857 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
17859 (add_uses): Likewise, also to cselib_subst_to_values.
17860 (add_stores): Likewise.
17861 * sched-deps.c (add_insn_mem_dependence): Pass mode to
17862 cselib_subst_to_values.
17863 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
17864 * gcse.c (do_local_cprop): Adjusted.
17865 * postreload.c (reload_cse_simplify_set): Adjusted.
17866 (reload_cse_simplify_operands): Adjusted.
17867 * sel-sched-dump (debug_mem_addr_value): Pass mode.
17869 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
17871 PR tree-optimization/45122
17872 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
17873 unsafe assumptions when there's more than one loop exit.
17875 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
17878 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
17879 Document using vector double with the load/store builtins, and
17880 that the load/store builtins always use Altivec instructions.
17882 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
17883 to use altivec memory instructions, even on VSX.
17884 (vector_altivec_store_<mode>): Ditto.
17886 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
17889 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17890 V2DF, V2DI support to load/store overloaded builtins.
17892 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
17893 altivec load/store builtins for V2DF/V2DI types.
17895 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
17896 set avoid indexed addresses on power6 if -maltivec.
17897 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
17898 vector_altivec_load/vector_altivec_store builtins.
17899 (altivec_expand_st_builtin): Ditto.
17900 (altivec_expand_builtin): Add VSX memory builtins.
17901 (rs6000_init_builtins): Add V2DI types to internal types.
17902 (altivec_init_builtins): Add support for V2DF/V2DI altivec
17903 load/store builtins.
17904 (rs6000_address_for_altivec): Insure memory address is appropriate
17907 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
17908 vec_vsx_ld and vec_vsx_st.
17909 (vsx_store_<mode>): Ditto.
17911 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
17912 variables to hold long long types for VSX vector memory builtins.
17913 (RS6000_BTI_unsigned_long_long): Ditto.
17914 (long_long_integer_type_internal_node): Ditti.
17915 (long_long_unsigned_type_internal_node): Ditti.
17917 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
17918 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
17919 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
17921 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
17923 (vec_vsx_st): Ditto.
17925 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17927 * config/pa/pa-hpux10.opt: New.
17928 * config/hpux11.opt (pthread): New Driver option.
17929 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
17930 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
17932 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17934 * config/ia64/vms.opt: New.
17935 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
17937 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
17940 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
17941 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
17942 generator functions.
17943 (vsx_floatuns<VSi><mode>2): Ditto.
17944 (vsx_fix_trunc<mode><VSi>2): Ditto.
17945 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
17947 2011-02-02 Joseph Myers <joseph@codesourcery.com>
17949 * config/i386/djgpp.opt (posix): New Driver option.
17951 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
17953 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
17954 Move to the unsupported targets list.
17956 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
17958 PR rtl-optimization/47525
17959 * df-scan.c: Update copyright years.
17960 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
17961 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
17963 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17965 * config/i386/sysv4.h (TARGET_VERSION): Remove.
17966 (SUBTARGET_RETURN_IN_MEMORY): Remove.
17967 (ASM_OUTPUT_ASCII): Remove.
17968 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
17970 2011-02-02 Jeff Law <law@redhat.com>
17972 PR middle-end/47543
17973 * reload.c (find_reloads_address): Handle reg+d address where both
17974 components are invalid by reloading the entire address.
17976 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17977 Richard Guenther <rguenther@suse.de>
17979 PR tree-optimization/40979
17981 * passes.c (init_optimization_passes): After LIM call copy_prop
17982 and DCE to clean up.
17983 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
17985 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
17987 PR tree-optimization/47576
17988 PR tree-optimization/47555
17989 * doc/invoke.texi (scev-max-expr-complexity): Documented.
17990 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
17991 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
17992 * tree-scalar-evolution.c (follow_ssa_edge): Use
17993 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
17995 2011-02-02 Richard Guenther <rguenther@suse.de>
17997 PR tree-optimization/47566
17998 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
18000 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18004 * tree-inline.c (declare_return_variable): Remove unused caller
18009 * tree-flow-inline.h (clear_is_used, is_used_p): New.
18010 * cfgexpand.c (account_used_vars_for_block): Use them.
18011 * tree-nrv.c (tree_nrv): Likewise.
18012 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
18013 (dump_scope_block): Likewise.
18014 (remove_unused_locals): Likewise.
18018 * tree-inline.c (declare_return_variable): Add result decl to
18019 local decls only once.
18020 * gimple-low.c (record_vars_into): Mark newly-created variables
18023 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
18029 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18031 (no_real_insns_p, schedule_block, set_priorities): Drop special
18032 treatment of boundary debug insns.
18033 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18034 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
18035 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18036 (BOUNDARY_DEBUG_INSN_P): Likewise.
18037 (SCHEDULE_DEBUG_INSN_P): Likewise.
18038 * sched-rgn.c (init_ready_list): Drop special treatment of
18039 boundary debug insns.
18040 * final.c (rest_of_clean_state): Clear notes' BB.
18042 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18044 * config/openbsd.opt (assert=): New Driver option.
18046 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18048 * config/i386/nto.opt: New.
18049 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
18051 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18053 * config/i386/netware.opt: New.
18054 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
18056 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18058 * config/interix.opt (posix): New Driver option.
18060 2011-02-01 DJ Delorie <dj@redhat.com>
18062 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
18064 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
18067 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
18069 PR tree-optimization/47561
18070 * toplev.c (process_options): Print the Graphite flags. Add
18071 flag_loop_flatten to the list of options requiring Graphite.
18073 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18075 * config/i386/cygming.opt (posix): New Driver option.
18077 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18079 * config/arm/vxworks.opt: New.
18080 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
18082 2011-02-01 Joseph Myers <joseph@codesourcery.com>
18084 * config/alpha/elf.opt: New.
18085 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
18086 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
18088 2011-02-01 Richard Guenther <rguenther@suse.de>
18090 PR tree-optimization/47559
18091 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
18092 store-motion on references that can throw.
18094 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
18096 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
18097 * tree-pass.h (TDF_CSELIB): New macro.
18098 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
18099 cselib_lookup): Check for it rather than for TDF_DETAILS.
18101 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
18104 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
18105 is HOST_BIT_BUCKET.
18107 * opts.c (finish_options): Don't add x_aux_base_name if it is
18110 2011-02-01 Richard Guenther <rguenther@suse.de>
18112 PR tree-optimization/47555
18114 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
18116 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
18118 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
18121 * config/lm32/t-lm32: Add multilib for all CPU options.
18123 2011-02-01 Richard Guenther <rguenther@suse.de>
18125 PR tree-optimization/47541
18126 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
18127 sure to have a field at offset zero.
18129 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18131 * config/arc/arc.opt (EB, EL): New Driver options.
18133 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18135 * config/alpha/osf5.opt: New.
18136 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
18138 2011-01-31 Joseph Myers <joseph@codesourcery.com>
18140 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
18142 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
18144 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
18145 -floop-interchange.
18146 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
18147 is an alias of -floop-interchange and that it requires the
18148 Graphite infrastructure.
18149 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
18150 flag_loop_interchange based on the value of flag_tree_loop_linear.
18152 2011-01-31 Jakub Jelinek <jakub@redhat.com>
18153 Richard Guenther <rguenther@suse.de>
18155 PR tree-optimization/47538
18156 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
18157 type instead of r1type, except for comparisons. For right
18158 shifts and comparisons punt if there are mismatches in
18159 sizetype vs. non-sizetype types.
18161 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18163 * doc/sourcebuild.texi (Effective-Target Keywords): Document
18166 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18168 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
18170 * configure: Regenerate.
18172 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18174 * configure.ac (gcc_cv_ld_static_option): Define.
18175 (gcc_cv_ld_dynamic_option): Define.
18176 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
18178 (HAVE_LD_STATIC_DYNAMIC): Update message.
18179 (LD_STATIC_OPTION): Define.
18180 (LD_DYNAMIC_OPTION): Define.
18181 * configure: Regenerate.
18182 * config.in: Regenerate.
18183 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
18184 HAVE_LD_STATIC_DYNAMIC]: Use them.
18186 2011-01-31 Nick Clifton <nickc@redhat.com>
18188 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
18189 registers inside interrupt handlers if the handler is not a leaf
18192 2011-01-31 Nick Clifton <nickc@redhat.com>
18194 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
18195 reg_renumber returning an INVALID_REGNUM.
18197 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18200 * doc/install.texi: Document host options discarded when cross
18201 configuring target libraries.
18203 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
18206 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18209 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18211 (no_real_insns_p, schedule_block, set_priorities): Drop special
18212 treatment of boundary debug insns.
18213 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18214 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18215 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18216 (BOUNDARY_DEBUG_INSN_P): Likewise.
18217 (SCHEDULE_DEBUG_INSN_P): Likewise.
18218 * sched-rgn.c (init_ready_list): Drop special treatment of
18219 boundary debug insns.
18220 * final.c (rest_of_clean-state): Clear notes' BB.
18222 2011-01-31 Alan Modra <amodra@gmail.com>
18224 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
18225 toc relative expressions as we do in print_operand_address.
18227 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
18229 * doc/extend.texi: Follow spelling conventions.
18230 * doc/invoke.texi: Fix a typo.
18232 2011-01-30 Joseph Myers <joseph@codesourcery.com>
18234 * config/hpux11.opt: New.
18235 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
18236 ia64*-*-hpux*): Use hpux11.opt.
18238 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
18240 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
18243 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18245 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
18248 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18250 * doc/install.texi (Binaries): Remove outdated reference for
18251 Motorola 68HC11/68HC12 downloads.
18253 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
18255 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
18258 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
18261 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
18264 2011-01-28 Ahmad Sharif <asharif@google.com>
18266 * value-prof.c (check_counter): Corrected error message.
18268 2011-01-29 Jie Zhang <jie@codesourcery.com>
18270 * config/arm/arm.c (arm_legitimize_reload_address): New.
18271 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
18272 arm_legitimize_reload_address.
18273 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
18275 2011-01-28 Ian Lance Taylor <iant@google.com>
18277 * godump.c (go_define): Ignore macros whose definitions include
18278 two adjacent operands.
18280 2011-01-28 Jakub Jelinek <jakub@redhat.com>
18283 * varasm.c (force_const_mem): Store copy of x in desc->constant
18284 instead of x itself.
18285 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
18286 itself into REG_EQUAL note.
18288 2011-01-28 Joseph Myers <joseph@codesourcery.com>
18290 * config/freebsd.opt (posix, rdynamic): New Driver options.
18292 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18294 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
18295 -Bstatic/-Bdynamic.
18296 * configure: Regenerate.
18298 2011-01-27 Joseph Myers <joseph@codesourcery.com>
18300 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
18301 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
18303 2011-01-27 Anatoly Sokolov <aesok@post.ru>
18305 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
18306 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
18307 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
18308 (s390_preferred_reload_class): Make static. Change return and
18309 'rclass' argument type to reg_class_t.
18311 2011-01-27 Jan Hubicka <jh@suse.cz>
18313 PR middle-end/46949
18314 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
18315 (process_function_and_variable_attributes): Check defined weakrefs.
18317 2011-01-27 Martin Jambor <mjambor@suse.cz>
18319 PR tree-optimization/47228
18320 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
18321 build_ref_for_offset.
18323 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18325 * config/spu/spu-elf.h (ASM_SPEC): Remove.
18327 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
18329 PR rtl-optimization/46856
18330 * postreload.c (reload_combine_recognize_const_pattern): Do not
18331 separate cc0 setter and user on cc0 targets.
18333 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
18336 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
18337 passed a VOID_TYPE expression, immediately emit an error and
18338 return error_mark_node.
18340 2011-01-26 Jeff Law <law@redhat.com>
18342 PR rtl-optimization/47464
18343 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
18344 rather than may_trap_p as needed.
18346 2011-01-26 DJ Delorie <dj@redhat.com>
18348 PR rtl-optimization/46878
18349 * combine.c (insn_a_feeds_b): Check for the implicit cc0
18350 setter/user dependency as well.
18352 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
18354 PR rtl-optimization/44469
18355 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
18356 after removing trivially dead basic blocks.
18358 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18360 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
18361 * config/frv/frv.h (LINK_SPEC): Likewise.
18362 * config/i386/netware.h (LINK_SPEC): Likewise.
18363 * config/m68k/linux.h (ASM_SPEC): Likewise.
18364 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
18365 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18366 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18367 * config/sparc/linux.h (ASM_SPEC): Likewise.
18368 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18369 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18371 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18373 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
18374 * config/frv/frv.h (ASM_SPEC): Likewise.
18375 * config/m68k/linux.h (ASM_SPEC): Likewise.
18376 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18377 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
18378 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18379 * config/sparc/linux.h (ASM_SPEC): Likewise.
18380 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18381 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18383 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18385 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
18386 * config/frv/frv.h (LINK_SPEC): Likewise.
18387 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
18389 2011-01-26 Joseph Myers <joseph@codesourcery.com>
18391 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
18392 * config/frv/frv.h (ASM_SPEC): Likewise.
18393 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
18394 * config/m68k/linux.h (ASM_SPEC): Likewise.
18395 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
18396 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
18397 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
18398 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
18399 * config/sparc/linux.h (ASM_SPEC): Likewise.
18400 * config/sparc/linux64.h (ASM_SPEC): Likewise.
18401 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
18402 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
18404 2011-01-26 Steve Ellcey <sje@cup.hp.com>
18407 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
18409 (vec_extract_evenodd_help): Ditto.
18410 (vec_extract_evenv4hi): Ditto.
18411 (vec_extract_oddv4hi): Ditto.
18412 (vec_interleave_lowv2si): Ditto.
18413 (vec_interleave_highv2si): Ditto.
18414 (vec_extract_evenv2si): Ditto.
18415 (vec_extract_oddv2si: Ditto.
18416 (vec_pack_trunc_v2si): Ditto.
18418 2011-01-22 Jan Hubicka <jh@suse.cz>
18421 * cgraph.h (cgraph_local_info): New field can_change_signature.
18422 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
18423 signature can change.
18424 (ipcp_estimate_growth): Call sequence simplify only if calle signature
18426 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
18427 (cgraph_function_versioning): We can not change signature of functions
18428 that don't allow that.
18429 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
18430 (lto_input_node): Likewise.
18431 * ipa-inline.c (compute_inline_parameters): Compute
18432 local.can_change_signature.
18433 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
18434 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
18435 functions that can not change signature.
18436 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
18437 init_cumulative_args): Do not use local calling conventions
18438 for functions that can not change signature.
18440 2011-01-22 Jan Hubicka <jh@suse.cz>
18442 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
18444 2011-01-26 Richard Guenther <rguenther@suse.de>
18446 PR tree-optimization/47190
18447 * cgraphunit.c (process_common_attributes): New function.
18448 (process_function_and_variable_attributes): Use it.
18450 2011-01-26 Richard Guenther <rguenther@suse.de>
18453 * cgraphbuild.c (record_eh_tables): Record reference to personality
18456 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
18459 * sel-sched.c (moveup_expr): Don't let debug insns prevent
18460 non-debug insns from moving up.
18462 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18465 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
18466 t-dlldir{,-x} fragment for build and add it to tmake_file.
18467 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
18468 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
18469 * config/i386/t-dlldir: New file.
18470 (SHLIB_DLLDIR): Define.
18471 * config/i386/t-dlldir-x: New file.
18472 (SHLIB_DLLDIR): Define.
18473 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
18474 (SHLIB_INSTALL): Use it.
18476 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
18479 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
18480 lower bound of the allowed Thumb-2 coprocessor load/store
18481 index range to -256. Add explaining comment.
18483 2011-01-25 Ian Lance Taylor <iant@google.com>
18485 * godump.c (go_define): Improve lexing of macro expansion to only
18486 accept expressions which match Go spec.
18488 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
18491 * tree.c (handle_dll_attribute): Handle it.
18492 * doc/extend.texi (@item dllexport): Mention it.
18493 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
18495 2011-01-25 Ian Lance Taylor <iant@google.com>
18497 PR tree-optimization/26854
18498 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
18499 (decl_jump_unsafe): Move higher in file, with no other change.
18500 (bind): Set has_jump_unsafe_decl if appropriate.
18501 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
18502 (check_earlier_gotos): Likewise.
18503 (c_check_switch_jump_warnings): Likewise.
18505 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
18507 * doc/invoke.texi (Warning Options): Add missing hyphen.
18508 (-fprofile-dir): Minor grammatical fixes.
18509 (-fbranch-probabilities): Likewise.
18511 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
18515 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
18517 (no_real_insns_p, schedule_block, set_priorities): Drop special
18518 treatment of boundary debug insns.
18519 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
18520 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
18521 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
18522 (BOUNDARY_DEBUG_INSN_P): Likewise.
18523 (SCHEDULE_DEBUG_INSN_P): Likewise.
18524 * sched-rgn.c (init_ready_list): Drop special treatment of
18525 boundary debug insns.
18526 * final.c (rest_of_clean-state): Clear notes' BB.
18528 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18530 * Makefile.in (LAMBDA_H): Removed.
18531 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
18532 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
18533 lambda-trans.o, and tree-loop-linear.o.
18534 (lto-symtab.o): Remove dependence on LAMBDA_H.
18535 (tree-loop-linear.o): Remove rule.
18536 (lambda-mat.o): Same.
18537 (lambda-trans.o): Same.
18538 (lambda-code.o): Same.
18539 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
18540 (tree-vect-slp.o): Same.
18541 * hwint.h (gcd): Moved here.
18542 (least_common_multiple): Same.
18543 * lambda-code.c: Removed.
18544 * lambda-mat.c: Removed.
18545 * lambda-trans.c: Removed.
18546 * lambda.h: Removed.
18547 * tree-loop-linear.c: Removed.
18548 * lto-symtab.c: Do not include lambda.h.
18549 * omega.c (gcd): Removed.
18550 * passes.c (init_optimization_passes): Remove pass_linear_transform.
18551 * tree-data-ref.c (print_lambda_vector): Moved here.
18552 (lambda_vector_copy): Same.
18553 (lambda_matrix_copy): Same.
18554 (lambda_matrix_id): Same.
18555 (lambda_vector_first_nz): Same.
18556 (lambda_matrix_row_add): Same.
18557 (lambda_matrix_row_exchange): Same.
18558 (lambda_vector_mult_const): Same.
18559 (lambda_vector_negate): Same.
18560 (lambda_matrix_row_negate): Same.
18561 (lambda_vector_equal): Same.
18562 (lambda_matrix_right_hermite): Same.
18563 * tree-data-ref.h: Do not include lambda.h.
18564 (lambda_vector): Moved here.
18565 (lambda_matrix): Same.
18566 (dependence_level): Same.
18567 (lambda_transform_legal_p): Removed declaration.
18568 (lambda_collect_parameters): Same.
18569 (lambda_compute_access_matrices): Same.
18570 (lambda_vector_gcd): Same.
18571 (lambda_vector_new): Same.
18572 (lambda_vector_clear): Same.
18573 (lambda_vector_lexico_pos): Same.
18574 (lambda_vector_zerop): Same.
18575 (lambda_matrix_new): Same.
18576 * tree-flow.h (least_common_multiple): Removed declaration.
18577 * tree-parloops.c (lambda_trans_matrix): Moved here.
18578 (LTM_MATRIX): Same.
18579 (LTM_ROWSIZE): Same.
18580 (LTM_COLSIZE): Same.
18581 (LTM_DENOMINATOR): Same.
18582 (lambda_trans_matrix_new): Same.
18583 (lambda_matrix_vector_mult): Same.
18584 (lambda_transform_legal_p): Same.
18585 * tree-pass.h (pass_linear_transform): Removed declaration.
18586 * tree-ssa-loop.c (tree_linear_transform): Removed.
18587 (gate_tree_linear_transform): Removed.
18588 (pass_linear_transform): Removed.
18589 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
18590 flag_loop_interchange.
18592 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18594 PR tree-optimization/47265
18595 PR tree-optimization/47443
18596 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
18597 if name still has some uses.
18599 2011-01-25 Martin Jambor <mjambor@suse.cz>
18601 PR tree-optimization/47382
18602 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
18603 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
18605 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
18607 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
18608 sjlj_except_unwind_info.
18610 2011-01-25 Richard Guenther <rguenther@suse.de>
18612 PR tree-optimization/47426
18613 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
18614 visible functions results escape.
18616 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18619 * config/arm/arm.c (any_sibcall_uses_r3): New function.
18620 (arm_get_frame_offsets): Use it.
18622 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18623 Jakub Jelinek <jakub@redhat.com>
18625 PR tree-optimization/47271
18626 * tree-if-conv.c (bb_postdominates_preds): New.
18627 (if_convertible_bb_p): Call bb_postdominates_preds.
18628 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
18629 (predicate_scalar_phi): Call bb_postdominates_preds.
18631 2011-01-25 Nick Clifton <nickc@redhat.com>
18633 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
18634 * config/rx/rx.c (rx_function_value): Likewise.
18635 (rx_promote_function_mode): Likewise.
18636 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
18637 in order to make it legitimate.
18638 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
18639 make sure that the first operand is the same as the result register.
18640 (addsi3_unspec): Delete.
18641 (subdi3): Do not accept immediate operands.
18642 (subdi3_internal): Likewise.
18644 2011-01-25 Jeff Law <law@redhat.com>
18646 PR rtl-optimization/37273
18647 * ira-costs.c (scan_one_insn): Detect constants living in memory and
18648 handle them like argument loads from stack slots. Do not double
18649 count memory for memory constants and argument loads from stack slots.
18651 2011-01-25 Jakub Jelinek <jakub@redhat.com>
18653 PR tree-optimization/47427
18654 PR tree-optimization/47428
18655 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
18656 coalesce if the new root var would be TREE_READONLY.
18658 2011-01-25 Richard Guenther <rguenther@suse.de>
18660 PR middle-end/47414
18661 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
18662 correct type for TBAA.
18664 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18666 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
18667 (close_phi_written_to_memory): Call for_each_index with
18668 dr_indices_valid_in_loop.
18670 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18672 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
18673 when it is initialized.
18675 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18677 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
18678 call to graphite_find_data_references_in_stmt.
18679 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
18680 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
18681 call to graphite_find_data_references_in_stmt.
18682 (analyze_drs_in_stmts): Same.
18683 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
18684 in which the scalar analysis of indices is performed.
18685 (create_data_ref): Same. Update call to dr_analyze_indices.
18686 (find_data_references_in_stmt): Update call to create_data_ref.
18687 (graphite_find_data_references_in_stmt): Same.
18688 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
18690 (create_data_ref): Same.
18691 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
18692 call to create_data_ref.
18694 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18696 * graphite-sese-to-poly.c (build_poly_scop): Move
18697 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
18699 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18701 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
18702 VAR_DECL, PARM_DECL, and RESULT_DECL.
18704 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18706 * graphite-dependences.c (reduction_dr_1): Allow several reductions
18707 in a reduction PBB.
18708 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
18709 that have already been marked as PBB_IS_REDUCTION.
18711 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18713 * graphite-scop-detection.c (same_close_phi_node): New.
18714 (remove_duplicate_close_phi): New.
18715 (make_close_phi_nodes_unique): New.
18716 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
18718 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18720 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
18721 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
18722 of both data references to be the same.
18724 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18726 * graphite-dependences.c (build_lexicographical_constraint): Remove
18727 the gdim parameter.
18728 (build_lexicographical_constraint): Adjust call to
18729 ppl_powerset_is_empty.
18730 (dependence_polyhedron): Same.
18731 (graphite_legal_transform_dr): Same.
18732 (graphite_carried_dependence_level_k): Same.
18733 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
18735 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
18737 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18739 * graphite-sese-to-poly.c
18740 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
18741 (close_phi_written_to_memory): New.
18742 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
18745 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18747 * doc/install.texi: Update the expected version number of PPL to 0.11.
18748 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
18749 #if PPL_VERSION_MINOR < 11.
18751 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18753 * graphite-dependences.c: Include graphite-cloog-util.h.
18754 (new_poly_ddr): Inlined into dependence_polyhedron.
18755 (free_poly_ddr): Moved close by new_poly_ddr.
18756 (dependence_polyhedron_1): Renamed dependence_polyhedron.
18757 Early return NULL when ppl_powerset_is_empty returns true.
18758 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
18759 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
18760 (graphite_legal_transform_dr): Call new_poly_ddr.
18761 (graphite_carried_dependence_level_k): Same.
18762 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
18763 (dot_transformed_deps_stmt_1): Removed.
18764 (dot_deps_stmt_1): Call dot_deps_stmt_2.
18765 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
18766 (dot_deps_1): Call dot_deps_2.
18767 * Makefile.in (graphite-dependences.o): Add missing dependence on
18768 graphite-cloog-util.h.
18770 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18772 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
18773 (build_lexicographical_constraint): Same.
18774 (dependence_polyhedron_1): Same.
18775 (graphite_legal_transform_dr): Same.
18776 (graphite_carried_dependence_level_k): Same.
18777 * graphite-ppl.c (ppl_powerset_is_empty): New.
18778 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
18779 * tree-data-ref.c (dump_data_reference): Print the basic block index.
18781 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18783 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
18784 the "a followed by b" relation and document it.
18786 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18788 * graphite-dependences.c (build_lexicographical_constraint): Stop the
18789 iteration when the bag of constraints is empty.
18791 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18793 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
18795 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18797 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
18798 nest and two loop depths as parameters.
18799 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
18800 lst_perfect_nestify.
18802 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18804 * graphite-dependences.c (print_pddr): Call
18805 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
18807 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
18809 * graphite-ppl.c (debug_gmp_value): New.
18810 * graphite-ppl.h (debug_gmp_value): Declared.
18812 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
18814 * doc/install.texi: Document availability of cloog-0.16.
18816 2011-01-25 Vladimir Kargov <kargov@gmail.com>
18818 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
18819 invalid postdominance info.
18821 2011-01-24 Jan Hubicka <jh@suse.cz>
18824 * doc/extend.texi (weak pragma): Drop claim that it must
18825 appear before definition.
18826 * varasm.c (merge_weak, declare_weak): Only sanity check
18827 that DECL is not output at a time it is declared weak.
18829 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
18831 * machmode.def: Fixed comments.
18833 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
18835 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
18837 2011-01-24 Paul Koning <ni1d@arrl.net>
18839 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
18842 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
18845 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
18846 (block_info): Add scanned and prev.
18847 (move_or_delete_vzeroupper_2): Return if the basic block
18848 has been scanned and the upper 128bit state is unchanged
18849 from the last scan.
18850 (move_or_delete_vzeroupper_1): Return true if the exit
18852 (move_or_delete_vzeroupper): Visit basic blocks using the
18853 work-list based algorithm based on vt_find_locations in
18856 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
18858 2011-01-24 Nick Clifton <nickc@redhat.com>
18860 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
18861 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
18862 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
18863 then define __v850e1__.
18864 * doc/invoke.texi: Document -mv850es.
18866 2011-01-24 Richard Henderson <rth@redhat.com>
18868 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
18869 compound unordered comparisons.
18870 * config/rx/rx.c (rx_split_fp_compare): Remove.
18871 * config/rx/rx-protos.h: Update.
18872 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
18873 (cbranchsf4): Don't call rx_split_fp_compare.
18874 (*cbranchsf4): Use rx_split_cbranch.
18875 (*cmpsf): Don't accept "i" constraint.
18876 (*conditional_branch): Only valid after reload.
18877 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
18879 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18882 * config/rs6000/altivec.md (vector constant splitters): Add
18883 support for creating vector single precision constants if -mvsx is
18884 used and we would create the constant using Altivec primitives.
18886 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
18887 Richard Sandiford <rdsandiford@googlemail.com>
18889 PR rtl-optimization/47166
18890 * reload1.c (emit_reload_insns): Disable the spill_reg_store
18891 mechanism for PRE_MODIFY and POST_MODIFY.
18892 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
18895 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
18897 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
18899 2011-01-22 Jan Hubicka <jh@suse.cz>
18902 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
18904 2011-01-22 Jan Hubicka <jh@suse.cz>
18906 PR tree-optimization/43884
18908 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
18909 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
18911 2011-01-22 Anatoly Sokolov <aesok@post.ru>
18913 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
18914 * config/s390/s390.c (s390_register_move_cost,
18915 s390_memory_move_cost): New.
18916 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
18918 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18920 PR middle-end/47401
18921 * except.c (sjlj_assign_call_site_values): Move setting the
18922 crtl->uses_eh_lsda flag to ...
18923 (sjlj_mark_call_sites): ... here.
18924 (sjlj_emit_function_enter): Support NULL dispatch label.
18925 (sjlj_build_landing_pads): In a function with no landing pads
18926 that still has must-not-throw regions, generate code to register
18927 a personality function with empty LSDA.
18929 2011-01-21 Richard Henderson <rth@redhat.com>
18931 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
18933 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
18935 * compare-elim.c: New file.
18936 * Makefile.in (OBJS-common): Add it.
18937 (compare-elim.o): New.
18938 * common.opt (fcompare-elim): New.
18939 * opts.c (default_options_table): Add OPT_fcompare_elim.
18940 * tree-pass.h (pass_compare_elim_after_reload): New.
18941 * passes.c (init_optimization_passes): Add it.
18942 * recog.h: Protect against re-inclusion.
18943 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
18944 * doc/invoke.texi (-fcompare-elim): Document it.
18945 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
18946 * doc/tm.texi: Rebuild.
18948 2011-01-22 Nick Clifton <nickc@redhat.com>
18950 * config/rx/rx.md (cstoresf4): Pass comparison operator to
18951 rx_split_fp_compare.
18953 2011-01-22 Nick Clifton <nickc@redhat.com>
18955 * config/rx/rx.md (UNSPEC_CONST): New.
18956 (deallocate_and_return): Wrap the amount popped off the stack in
18957 an UNSPEC_CONST in order to stop it being rejected by
18958 -mmax-constant-size.
18959 (pop_and_return): Add a "(return)" rtx.
18960 (call): Drop the immediate operand.
18961 (call_internal): Likewise.
18962 (call_value): Likewise.
18963 (call_value_internal): Likewise.
18964 (sibcall_internal): Likewise.
18965 (sibcall_value_internal): Likewise.
18966 (sibcall): Likewise. Generate an explicit call using
18968 (sibcall_value): Likewise.
18969 (mov<>): FAIL if a constant operand is not legitimate.
18970 (addsi3_unpsec): New pattern.
18972 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
18973 (ok_for_max_constant): New function.
18974 (gen_safe_add): New function.
18975 (rx_expand_prologue): Use gen_safe_add.
18976 (rx_expand_epilogue): Likewise.
18977 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
18980 2011-01-21 Jeff Law <law@redhat.com>
18982 PR tree-optimization/47053
18983 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
18984 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
18985 statements are deleted.
18986 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
18987 is nonempty, then purge dead edges and cleanup the CFG.
18989 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18992 Temporarily revert:
18993 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
18995 * tree-dfa.c (create_var_ann): Mark variable as used.
18997 2011-01-21 Jakub Jelinek <jakub@redhat.com>
18999 PR middle-end/45566
19000 * except.c (convert_to_eh_region_ranges): Emit queued no-region
19001 notes from other section in hot/cold partitioning even if
19002 last_action is -3. Increment call_site_base.
19004 PR rtl-optimization/47366
19005 * fwprop.c (forward_propagate_into): Return bool. If
19006 any changes are made, -fnon-call-exceptions is used and
19007 REG_EH_REGION note is present, call purge_dead_edges
19008 and return true if it purged anything.
19009 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
19010 any EH edges were purged.
19012 2011-01-21 Jeff Law <law@redhat.com>
19014 PR rtl-optimization/41619
19015 * caller-save.c (setup_save_areas): Break out code to determine
19016 which hard regs are live across calls by examining the reload chains
19017 so that it is always used.
19018 Eliminate code which checked REG_N_CALLS_CROSSED.
19020 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19022 PR tree-optimization/47355
19023 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
19024 NOP has non-debug uses beyond PHIs in new_bb.
19026 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
19029 * cfgexpand.c (account_used_vars_for_block): Only account vars
19030 that are annotated as used.
19031 (estimated_stack_frame_size): Don't set TREE_USED.
19032 * tree-dfa.c (create_var_ann): Mark variable as used.
19034 2011-01-21 Richard Guenther <rguenther@suse.de>
19036 PR middle-end/47395
19037 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
19039 2011-01-21 Richard Guenther <rguenther@suse.de>
19041 PR tree-optimization/47365
19042 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
19043 (vn_reference_lookup_pieces): Adjust.
19044 (vn_reference_lookup): Likewise.
19045 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
19046 (vn_reference_lookup_3): Only look through kills if in
19047 VN_WALKREWRITE mode.
19048 (vn_reference_lookup_pieces): Adjust.
19049 (vn_reference_lookup): Likewise.
19050 (visit_reference_op_load): Likewise.
19051 (visit_reference_op_store): Likewise.
19052 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
19053 (compute_avail): Likewise.
19054 (eliminate): Likewise.
19056 2011-01-21 Jakub Jelinek <jakub@redhat.com>
19058 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
19059 DECL_IGNORED_P non-reg vars if they are used.
19061 PR tree-optimization/47391
19062 * varpool.c (const_value_known_p): Return false if
19065 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
19068 * config/i386/i386.c (ix86_local_alignment): Handle
19069 case for va_list_type_node is nil.
19070 (ix86_canonical_va_list_type): Likewise.
19072 2011-01-21 Alan Modra <amodra@gmail.com>
19074 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
19075 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
19077 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19079 * config/arm/arm.md (define_attr type): Rename f_load
19080 and f_store to f_fpa_load and f_fpa_store. Update.
19081 (write_conflict): Deal with rename fallout.
19082 (*push_fp_multi): Likewise.
19083 * config/arm/fpa.md (f_load): Use f_fpa_load.
19084 (f_store): Use f_fpa_store.
19085 (*movsf_fpa): Likewise.
19086 (*movdf_fpa): Likewise.
19087 (*movxf_fpa): Likewise.
19088 (*thumb2_movsf_fpa): Likewise.
19089 (*thumb2_movdf_fpa): Likewise.
19090 (*thumb2_movxf_fpa): Likewise.
19091 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
19092 f_loadd and f_stored.
19093 (*thumb2_movdi_vfp): Likewise.
19094 (*thumb2_movsf_vfp): Fix attribute to f_loads.
19095 (*thumb2_movsi_vfp): Likewise.
19096 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
19097 Use f_loads instead of f_load.
19098 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
19100 2011-01-20 Anatoly Sokolov <aesok@post.ru>
19102 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
19103 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
19104 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
19105 (xtensa_mode_dependent_address_p): New function.
19106 (constantpool_address_p): Make static. Change return type to bool.
19107 Change argument type to const_rtx. Use CONST_INT_P predicate.
19109 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
19112 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
19114 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19117 * cfgexpand.c (expand_debug_expr): Instead of generating
19118 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
19121 2011-01-20 Richard Guenther <rguenther@suse.de>
19123 PR middle-end/47370
19124 * tree-inline.c (remap_gimple_op_r): Recurse manually for
19125 the pointer operand of MEM_REFs.
19127 2011-01-20 Jakub Jelinek <jakub@redhat.com>
19129 PR tree-optimization/46130
19130 * ipa-split.c (consider_split): If return_bb contains non-virtual
19131 PHIs other than for retval or if split_function would not adjust it,
19134 2011-01-20 Richard Guenther <rguenther@suse.de>
19136 PR tree-optimization/47167
19137 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
19138 Revert previous change, only avoid enumeral type changes.
19140 2011-01-19 Mike Stump <mikestump@comcast.net>
19142 * doc/tm.texi.in (BRANCH_COST): Englishify.
19143 * doc/tm.texi (BRANCH_COST): Likewise.
19145 2011-01-19 Dodji Seketeli <dodji@redhat.com>
19148 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
19149 (gen_scheduled_generic_parms_dies): New functions.
19150 (gen_struct_or_union_type_die): Schedule template parameters DIEs
19151 generation for the end of CU compilation.
19152 (dwarf2out_finish): Generate template parameters DIEs here.
19154 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19157 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
19158 debug bind stmt on merge edges.
19160 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19164 * function.c (instantiate_expr): Instantiate incoming rtl of
19165 implicit arguments, and recurse on VALUE_EXPRs.
19166 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
19167 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
19169 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
19171 * c-parser.c (c_parser_for_statement): Initialize
19172 collection_expression.
19174 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19176 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
19178 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19180 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
19181 (LINK_SHLIB_SPEC): Don't use %(link_path).
19182 (SUBTARGET_EXTRA_SPECS): Remove link_path.
19184 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19186 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
19187 (NO_SHARED_LIB_SUPPORT): Remove.
19188 (LINK_SHLIB_SPEC): Remove one conditional definition.
19190 2011-01-19 Joseph Myers <joseph@codesourcery.com>
19192 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
19194 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
19195 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
19196 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
19197 %{call_shared} and conditionals on these options not being passed.
19198 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
19201 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19203 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
19206 * ipa-split.c: Spelling fixes.
19208 2011-01-19 Richard Henderson <rth@redhat.com>
19210 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
19211 (*mulsi3): Likewise.
19213 * longlong.h [__mn10300__] (count_leading_zeros): New.
19214 [__mn10300__] (umul_ppmm, smul_ppmm): New.
19215 [__mn10300__] (add_ssaaaa, subddmmss): New.
19216 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
19217 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
19219 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19221 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
19223 2011-01-19 Richard Henderson <rth@redhat.com>
19225 * config/mn10300/mn10300.md (addsi3_flags): New.
19226 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
19227 (subsi3_flags, subc_internal, subdi3): New.
19228 (subdi3_internal, *subdi3_degenerate): New.
19229 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
19231 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
19232 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
19233 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
19234 * config/mn10300/mn10300-protos.h: Update.
19235 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
19236 (return_ret): Likewise. Rename from return_internal_regs.
19237 (return_internal): Remove.
19239 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
19240 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
19241 (mn10300_legitimate_constant_p): Likewise.
19242 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
19243 (mn10300_frame_size): New.
19244 (mn10300_expand_prologue): Use it.
19245 (mn10300_expand_epilogue): Likewise.
19246 (mn10300_initial_offset): Likewise.
19247 * config/mn10300/mn10300-protos.h: Update.
19248 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
19249 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
19250 (prologue, epilogue, return_internal): Tidy output code.
19251 (mn10300_store_multiple_operation, return): Likewise.
19252 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
19253 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
19254 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
19255 (load_pic, am33_load_pic): New.
19256 (mn10300_load_pic0, mn10300_load_pic1): New.
19258 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
19259 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
19260 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
19261 (cc_flags_for_mode, cc_flags_for_code): New.
19262 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
19263 overflow flag is not valid. Validate that the flags we need
19264 for the comparison are valid.
19265 (mn10300_output_cmp): Remove.
19266 (mn10300_output_add): New.
19267 (mn10300_select_cc_mode): Use cc_flags_for_code.
19268 (mn10300_split_cbranch): New.
19269 (mn10300_match_ccmode): New.
19270 (mn10300_split_and_operand_count): New.
19271 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
19273 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
19274 (addsi3): ... here. Use mn10300_output_add.
19275 (*addsi3_flags): New.
19276 (*am33_subsi3, *mn10300_subsi3): Merge...
19277 (subsi3): ... here. Use attribute isa.
19278 (*subsi3_flags): New.
19279 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
19281 (*am33_andsi3, *mn10300_andsi3): Merge...
19282 (andsi3): ... here.
19283 (*andsi3_flags): New.
19284 (andsi3 splitters): New.
19285 (*am33_iorsi3, *mn10300_iorsi3): Merge...
19286 (iorsi3): ... here.
19287 (*iorsi3_flags): New.
19288 (*am33_xorsi3, *mn10300_xorsi3): Merge...
19289 (xorsi3): ... here.
19290 (*xorsi3_flags): New.
19291 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
19292 (one_cmplsi2): ... here.
19293 (*one_cmplsi2_flags): New.
19294 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
19295 instead of "dax" in constraints. Use mn10300_split_cbranch.
19296 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
19297 use matching constraints to eliminate a self-comparison.
19298 (*integer_conditional_branch): Rename from integer_conditional_branch.
19299 Use int_mode_flags to match CC_REG.
19300 (*cbranchsi4_btst, *btstsi): New.
19301 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
19302 mn10300_split_cbranch.
19303 (*am33_cmpsf): Rename from am33_cmpsf.
19304 (*float_conditional_branch): Rename from float_conditional_branch.
19305 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
19306 (zero_extendqisi2): ... here.
19307 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
19308 (zero_extendhisi2): ... here.
19309 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
19310 (extendqisi2): ... here.
19311 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
19312 (extendhisi2): ... here.
19313 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
19314 (ashlsi3): ... here.
19315 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
19316 (lshrsi3): ... here.
19317 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
19318 (ashrsi3): ... here.
19319 (consecutive add peephole): Remove.
19320 * config/mn10300/predicates.md (label_ref_operand): New.
19321 (int_mode_flags): New.
19322 (CCZN_comparison_operator): New.
19324 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
19325 (throughput_42_latency_43): New reservation.
19326 (mulsidi3, umulsidi3): New expanders.
19327 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
19328 the MDR register to allocation; separately allocate the low and
19329 high parts of the DImode result.
19330 (umulsidi3_internal): Similarly.
19331 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
19332 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
19333 (udivsi3, umodsi3): Remove.
19334 (udivmodsi4, divmodsi4): New expanders.
19335 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
19336 (*divmodsi4): Simiarly.
19337 (ext_internal): New.
19339 * config/mn10300/constraints.md ("z"): New constraint.
19340 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
19341 (FIXED_REGISTERS): Don't fix MDR.
19342 (CALL_USED_REGSITERS): Reformat nicely.
19343 (REG_ALLOC_ORDER): Add MDR.
19344 (enum regclass): Add MDR_REGS.
19345 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
19346 (IRA_COVER_CLASSES): Add MDR_REGS.
19347 (REGNO_REG_CLASS): Handle MDR_REG.
19348 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
19349 (mn10300_register_move_cost): Likewise.
19350 * config/mn10300/mn10300.md (MDR_REG): New.
19351 (*movsi_internal): Handle moves to/from MDR_REGS.
19353 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
19355 (mn10300_secondary_reload): Tidy combination reload classes.
19356 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
19357 addresses for AM33. Allow symbolic offsets for reg+imm.
19358 (mn10300_regno_in_class_p): New.
19359 (mn10300_legitimize_reload_address): New.
19360 * config/mn10300/mn10300.h (enum reg_class): Remove
19361 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
19362 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
19363 SP_OR_GENERAL_REGS.
19364 (REG_CLASS_NAMES): Update to match.
19365 (REG_CLASS_CONTENTS): Likewise.
19366 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
19367 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
19368 (REGNO_IN_RANGE_P): Remove.
19369 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
19370 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
19371 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
19372 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
19373 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
19374 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
19375 (REGNO_GENERAL_P): New.
19376 (HAVE_POST_MODIFY_DISP): New.
19377 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
19378 (LEGITIMIZE_RELOAD_ADDRESS): New.
19379 * config/mn10300/mn10300-protos.h: Update.
19381 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
19382 DATA_REGS for AM33 stack-pointer destination.
19383 (mn10300_preferred_output_reload_class): Likewise.
19384 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
19385 into a form appropriate for ...
19386 (TARGET_SECONDARY_RELOAD): New.
19387 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
19388 * config/mn10300/mn10300-protos.h: Update.
19389 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
19390 reload_insi; use the "A" constraint for the scratch; handle AM33
19391 moves of sp to non-address registers.
19393 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
19394 (*movqi_internal): ... here.
19395 (*am33_movhi, *mn10300_movhi): Merge into...
19396 (*movhi_internal): ... here.
19397 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
19398 as the source/destination of moves from/to SP.
19399 (movsf): Only allow for AM33-2.
19400 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
19401 any integer constant constraint. Only allow for AM33-2. Tidy
19402 all of the alternative outputs.
19403 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
19404 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
19406 (udivsi3, umodsi3): New patterns for MN103 only.
19408 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
19410 * doc/tm.texi.in: Spell out that a lack of register class unions
19412 * doc/tm.texi: Regenerate.
19414 2011-01-19 Jakub Jelinek <jakub@redhat.com>
19416 PR rtl-optimization/47337
19417 * dce.c (check_argument_store): New function.
19418 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
19420 PR tree-optimization/47290
19421 * tree-eh.c (infinite_empty_loop_p): New function.
19422 (cleanup_empty_eh): Use it.
19424 2011-01-18 Steve Ellcey <sje@cup.hp.com>
19427 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
19428 (a64_expand_widen_sum): Ditto.
19429 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
19430 (vec_extract_evenodd_help): Ditto.
19431 (vec_extract_evenv4hi): Ditto.
19432 (vec_extract_oddv4hi): Ditto.
19433 (vec_extract_evenv2si): Ditto.
19434 (vec_extract_oddv2si): Ditto.
19435 (vec_extract_evenv2sf): Ditto.
19436 (vec_extract_oddv2sf): Ditto.
19437 (vec_pack_trunc_v4hi: Ditto.
19438 (vec_pack_trunc_v2si): Ditto.
19439 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
19440 (vec_interleave_highv8qi): Ditto.
19442 (vec_extract_oddv8qi): Ditto.
19443 (vec_interleave_lowv4hi): Ditto.
19444 (vec_interleave_highv4hi): Ditto.
19445 (vec_interleave_lowv2si): Ditto.
19446 (vec_interleave_highv2si): Ditto.
19448 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19450 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
19451 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
19452 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
19453 (pa_c_mode_for_suffix): New.
19454 (TARGET_EXPAND_BUILTIN): Define.
19455 (TARGET_C_MODE_FOR_SUFFIX): Define.
19456 (pa_builtins): Define.
19457 (pa_init_builtins): Register __float128 type and init new support
19459 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
19460 * config/pa/quadlib.c (_U_Qfcopysign): New.
19462 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
19464 PR middle-end/46894
19465 * explow.c (allocate_dynamic_stack_space): Do not assume more than
19466 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
19469 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19471 PR tree-optimization/47179
19472 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
19473 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
19475 2011-01-18 Richard Guenther <rguenther@suse.de>
19477 PR rtl-optimization/47216
19478 * emit-rtl.c: Include tree-flow.h.
19479 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
19480 of replicating it with different semantics.
19481 * Makefile.in (emit-rtl.o): Adjust.
19483 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19485 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
19486 (cortex_a9_dp): Handle neon types correctly.
19488 2011-01-18 Jakub Jelinek <jakub@redhat.com>
19490 PR rtl-optimization/47299
19491 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
19492 subtarget. Use normal multiplication if both operands are constants.
19493 * expmed.c (expand_widening_mult): Don't try to optimize constant
19494 multiplication if op0 has VOIDmode. Convert op1 constant to mode
19497 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19499 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
19500 spacing after 'e.g.', typos, comma, hyphenation.
19502 2011-01-17 Richard Henderson <rth@redhat.com>
19504 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
19505 (rx_restricted_mem_operand): New.
19506 (rx_shift_operand): Use register_operand.
19507 (rx_source_operand, rx_compare_operand): Likewise.
19508 * config/rx/rx.md (addsi3_flags): New expander.
19509 (adddi3): Rewrite as expander.
19510 (adc_internal, *adc_flags, adddi3_internal): New patterns.
19511 (subsi3_flags): New expander.
19512 (subdi3): Rewrite as expander.
19513 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
19515 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
19516 (rx_init_builtins): Remove sat builtin.
19517 (rx_expand_builtin): Likewise.
19518 * config/rx/rx.md (ssaddsi3): New.
19519 (*sat): Rename from sat. Represent the CC_REG input.
19521 * config/rx/predicates.md (rshift_operator): New.
19522 * config/rx/rx.c (rx_expand_insv): Remove.
19523 * config/rx/rx-protos.h: Update.
19524 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
19525 operand to the canonical position.
19526 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
19527 (*bitclr, *bitclr_in_memory): Similarly.
19528 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
19529 (insv): Retain the zero_extract in the expansion.
19531 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
19532 (bswaphi2, bitinvert, revw): Likewise.
19534 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
19535 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
19536 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
19537 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
19538 (bitset, bitset_in_memory): Likewise.
19539 (bitinvert, bitinvert_in_memory): Likewise.
19540 (bitclr, bitclr_in_memory): Likewise.
19541 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
19542 (rx_strend, rx_cmpstrn): Likewise.
19543 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
19544 (bitop peep2 patterns): Remove.
19546 * config/rx/rx.c (rx_match_ccmode): New.
19547 * config/rx/rx-protos.h: Update.
19548 * config/rx/rx.md (abssi2): Clobber, don't set flags.
19549 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
19550 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
19551 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
19552 (fix_truncsfsi2, floatsisf2): Likewise.
19553 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
19554 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
19555 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
19556 (*subsi3_flags, *xorsi3_flags): New.
19558 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
19560 * config/rx/rx.c (rx_print_operand): Remove workaround for
19561 unsplit comparison operations.
19563 * config/rx/rx.md (movsicc): Split after reload.
19564 (*movsicc): Merge *movsieq and *movsine via match_operator.
19565 (*stcc): New pattern.
19567 * config/rx/rx.c (rx_float_compare_mode): Remove.
19568 * config/rx/rx.h (rx_float_compare_mode): Remove.
19569 * config/rx/rx.md (cstoresi4): Split after reload.
19570 (*sccc): New pattern.
19572 * config/rx/predicates.md (label_ref_operand): New.
19573 (rx_z_comparison_operator): New.
19574 (rx_zs_comparison_operator): New.
19575 (rx_fp_comparison_operator): New.
19576 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
19577 Validate that the flags are set properly for the comparison.
19578 (rx_gen_cond_branch_template): Remove.
19579 (rx_cc_modes_compatible): Remove.
19580 (mode_from_flags): New.
19581 (flags_from_code): Rename from flags_needed_for_conditional.
19582 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
19583 (rx_select_cc_mode): Likewise.
19584 (rx_split_fp_compare): New.
19585 (rx_split_cbranch): New.
19586 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
19587 (*cbranchsi4): Use match_operator and rx_split_cbranch.
19588 (*cbranchsf4): Similarly.
19589 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
19590 match_operator and rx_split_cbranch.
19591 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
19592 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
19593 (*cmpsi): Rename from cmpsi.
19594 (*tstsi): Rename from tstsi.
19595 (*cmpsf): Rename from cmpsf; use CC_Fmode.
19596 (*conditional_branch): Rename from conditional_branch.
19597 (*reveresed_conditional_branch): Remove.
19598 (b<code>): Remove expander.
19599 * config/rx/rx-protos.h: Update.
19601 * config/rx/rx.c (rx_compare_redundant): Remove.
19602 * config/rx/rx.md (cmpsi): Don't use it.
19603 * config/rx/rx-protos.h: Update.
19605 * config/rx/rx-modes.def (CC_F): New mode.
19606 * config/rx/rx.c (rx_select_cc_mode): New.
19607 * config/rx/rx.h (SELECT_CC_MODE): Use it.
19608 * config/rx/rx-protos.h: Update.
19610 2011-01-17 Richard Henderson <rth@redhat.com>
19612 * except.c (dump_eh_tree): Fix stray ; after for statement.
19614 2011-01-17 Richard Guenther <rguenther@suse.de>
19616 PR tree-optimization/47313
19617 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
19618 handling before copying the body. Properly deal with
19619 by-reference result in SSA form.
19621 2011-01-17 Ian Lance Taylor <iant@google.com>
19624 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
19625 (struct_value_alias_set): Don't define.
19626 (sparc_option_override): Don't set sparc_sr_alias_set and
19627 struct_value_alias_set.
19628 (save_or_restore_regs): Use gen_frame_mem rather than calling
19630 (sparc_struct_value_rtx): Likewise.
19632 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
19635 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
19636 (_mm_maskstore_pd): Likewise.
19637 (_mm_maskload_ps): Likewise.
19638 (_mm_maskstore_ps): Likewise.
19639 (_mm256_maskload_pd): Change mask to __m256i.
19640 (_mm256_maskstore_pd): Likewise.
19641 (_mm256_maskload_ps): Likewise.
19642 (_mm256_maskstore_ps): Likewise.
19644 * config/i386/i386-builtin-types.def: Updated.
19645 (ix86_expand_special_args_builtin): Likewise.
19647 * config/i386/i386.c (bdesc_special_args): Update
19648 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
19649 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
19650 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
19651 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
19653 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
19654 Use <avxpermvecmode> on mask register.
19655 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
19657 2011-01-17 Olivier Hainque <hainque@adacore.com>
19658 Michael Haubenwallner <michael.haubenwallner@salomon.at>
19659 Eric Botcazou <ebotcazou@adacore.com>
19662 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
19663 if <= USHRT_MAX in 32-bit mode.
19665 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19667 * doc/install.texi (Configuration, Specific): Wrap long
19668 lines in examples. Allow line wrapping in long options
19669 and URLs where beneficial for PDF output.
19671 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
19673 * config/mips/mips.c (mips_classify_symbol): Don't return
19674 SYMBOL_PC_RELATIVE for nonlocal labels.
19676 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
19678 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
19680 2011-01-15 Jan Hubicka <jh@suse.cz>
19682 PR tree-optimization/47276
19683 * ipa.c (function_and_variable_visibility): Do not try to mark alias
19684 declarations as needed.
19686 2011-01-15 Martin Jambor <mjambor@suse.cz>
19688 * common.opt (fdevirtualize): New flag.
19689 * doc/invoke.texi (Option Summary): Document it.
19690 * opts.c (default_options_table): Add devirtualize flag.
19691 * ipa-prop.c (detect_type_change): Return immediately if
19692 devirtualize flag is not set.
19693 (detect_type_change_ssa): Likewise.
19694 (compute_known_type_jump_func): Likewise.
19695 (ipa_analyze_virtual_call_uses): Likewise.
19697 2011-01-14 Martin Jambor <mjambor@suse.cz>
19699 PR tree-optimization/45934
19700 PR tree-optimization/46302
19701 * ipa-prop.c (type_change_info): New type.
19702 (stmt_may_be_vtbl_ptr_store): New function.
19703 (check_stmt_for_type_change): Likewise.
19704 (detect_type_change): Likewise.
19705 (detect_type_change_ssa): Likewise.
19706 (compute_complex_assign_jump_func): Check for dynamic type change.
19707 (compute_complex_ancestor_jump_func): Likewise.
19708 (compute_known_type_jump_func): Likewise.
19709 (compute_scalar_jump_functions): Likewise.
19710 (ipa_analyze_virtual_call_uses): Likewise.
19711 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
19713 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19715 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
19716 * config/i386/i386.opt (msse5): New Alias.
19718 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19720 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
19721 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19722 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19723 * config/sparc/sparc.h (CC1_SPEC): Likewise.
19725 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19727 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
19729 * config/sparc/linux64.h (CC1_SPEC): Likewise.
19730 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
19731 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
19732 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
19734 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
19736 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19738 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
19740 2011-01-14 Mike Stump <mikestump@comcast.net>
19742 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
19743 * config/fr30/fr30.md: Likweise
19744 (movsi_push): Likewise.
19745 (movsi_pop): Likewise.
19746 (enter_func): Likewise.
19747 * config/moxie/moxie.md (movsi_push): Likewise.
19748 (movsi_pop): Likewise.
19750 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19752 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
19753 %{no_archive} %{exact_version}.
19754 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
19755 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
19756 %{no_archive} %{exact_version}.
19757 * config/mips/openbsd.h (LINK_SPEC): Likewise.
19758 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
19759 * config/mips/vxworks.h: Likewise.
19761 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19763 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
19765 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19767 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
19768 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
19770 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19772 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
19775 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19777 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
19779 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
19780 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
19782 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
19783 Don't handle -shlib.
19785 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19787 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
19788 (CC1_SPEC): Don't handle -profile.
19790 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19792 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
19793 * config/mips/mips.h (CC1_SPEC): Likewise.
19795 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19797 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
19798 * config/mips/mips.h (CC1_SPEC): Likewise.
19800 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19802 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
19803 * config/m32r/linux.h (LINK_SPEC): Likewise.
19804 * config/mips/linux.h (LINK_SPEC): Likewise.
19805 * config/mips/linux64.h (LINK_SPEC): Likewise.
19806 * config/sparc/linux.h (LINK_SPEC): Likewise.
19807 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
19808 LINK_SPEC): Likewise.
19809 * config/xtensa/linux.h (LINK_SPEC): Likewise.
19811 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19813 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
19815 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
19817 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19819 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
19820 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
19822 2011-01-14 Joseph Myers <joseph@codesourcery.com>
19824 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
19826 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19828 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
19829 supports -Bstatic/-Bdynamic.
19830 * configure: Regenerate.
19832 2011-01-14 Jan Hubicka <jh@suse.cz>
19833 Jack Howarth <howarth@bromo.med.uc.edu>
19836 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
19837 when checking debug_info_level. Test write_symbols instead of
19838 debug_hooks->var_location when setting flag_var_tracking_uninit.
19840 2011-01-14 Richard Guenther <rguenther@suse.de>
19842 PR tree-optimization/47179
19843 * target.def (ref_may_alias_errno): New target hook.
19844 * targhooks.h (default_ref_may_alias_errno): Declare.
19845 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
19846 (default_ref_may_alias_errno): New function.
19847 * target.h (struct ao_ref_s): Declare.
19848 * tree-ssa-alias.c: Include target.h.
19849 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
19850 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
19851 (targhooks.o): Likewise.
19852 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
19853 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
19855 2011-01-14 Richard Guenther <rguenther@suse.de>
19857 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
19859 2011-01-14 Richard Guenther <rguenther@suse.de>
19861 PR tree-optimization/47280
19862 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
19863 return CFG changes.
19864 (tree_ssa_forward_propagate_single_use_vars): Deal with
19865 CFG changes from associate_plusminus.
19867 2011-01-14 Richard Guenther <rguenther@suse.de>
19869 PR middle-end/47281
19871 2011-01-11 Richard Guenther <rguenther@suse.de>
19873 PR tree-optimization/46076
19874 * tree-ssa.c (useless_type_conversion_p): Conversions from
19875 unprototyped to empty argument list function types are useless.
19877 2011-01-14 Richard Guenther <rguenther@suse.de>
19879 PR tree-optimization/47286
19880 * tree-ssa-structalias.c (new_var_info): Register variables are global.
19882 2011-01-14 Martin Jambor <mjambor@suse.cz>
19884 PR middle-end/46823
19885 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
19887 2011-01-13 Anatoly Sokolov <aesok@post.ru>
19889 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
19890 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19891 * config/xtensa/xtensa.c (xtensa_libcall_value,
19892 xtensa_function_value_regno_p): New functions.
19893 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19895 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
19898 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
19900 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
19901 New function prototype.
19902 * config/i386/winnt.c (i386_pe_assemble_visibility):
19903 Warn only if attribute was specified by user.
19905 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
19908 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
19910 (floatunsdidf2_fcfidu): Ditto.
19912 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19914 * config/s390/s390.c (print_operand_address): Replace 'error' with
19915 'output_operand_lossage'.
19916 (print_operand): Likewise.
19918 2011-01-13 Jeff Law <law@redhat.com>
19920 PR rtl-optimization/39077
19921 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
19922 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
19923 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
19924 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
19925 * gcse.c (prune_insertions_deletions): New function.
19926 (compute_pre_data): Use it.
19928 2011-01-13 Dodji Seketeli <dodji@redhat.com>
19931 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
19933 (prune_unused_types_mark): Use it.
19935 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
19937 PR rtl-optimization/45352
19938 * sel-sched.c: Update copyright years.
19939 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
19940 in the advancing loop when we have issued issue_rate insns.
19942 2011-01-12 Richard Henderson <rth@redhat.com>
19944 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
19945 (TARGET_MD_ASM_CLOBBERS): New.
19947 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
19948 (TARGET_DELEGITIMIZE_ADDRESS): New.
19950 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
19951 (clzsi2, *bsch): New patterns.
19953 * config/mn10300/mn10300.md (INT): New mode iterator.
19954 (*mov<INT>_clr): New pattern, and peep2 to generate it.
19956 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
19957 flag_split_wide_types.
19959 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
19960 (mn10300_trampoline_init): Rewrite without a template, an immediate
19961 load and a direct branch.
19962 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
19964 2011-01-12 Anatoly Sokolov <aesok@post.ru>
19966 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19967 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
19968 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
19969 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19971 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
19974 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
19977 2011-01-12 Jan Hubicka <jh@suse.cz>
19980 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
19981 (PLUGIN_COND_CLOSE): New macro.
19982 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
19984 2011-01-12 Richard Guenther <rguenther@suse.de>
19987 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
19988 register variables in a MEM_REF.
19990 2011-01-12 Joseph Myers <joseph@codesourcery.com>
19992 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
19993 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
19994 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
19995 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
19996 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
19997 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
19998 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
19999 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
20000 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
20001 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
20002 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
20003 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
20004 * config/gnu-user.h: New. Copied from linux.h.
20005 (LINUX_TARGET_STARTFILE_SPEC): Rename to
20006 GNU_USER_TARGET_STARTFILE_SPEC.
20007 (LINUX_TARGET_ENDFILE_SPEC): Rename to
20008 GNU_USER_TARGET_ENDFILE_SPEC.
20009 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
20010 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
20011 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
20012 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
20013 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
20014 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
20015 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
20016 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
20017 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
20018 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
20019 * config/arm/linux-eabi.h (CC1_SPEC): Use
20020 GNU_USER_TARGET_CC1_SPEC.
20021 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
20022 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
20023 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
20024 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
20025 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
20026 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
20027 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
20028 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
20030 2011-01-12 Richard Guenther <rguenther@suse.de>
20033 * doc/invoke.texi (ffast-math): Document it is turned on
20036 2011-01-12 Jan Hubicka <jh@suse.cz>
20038 PR tree-optimization/47233
20039 * opts.c (common_handle_option): Disable ipa-reference with profile
20042 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20044 * c-parser.c (c_parser_objc_at_property_declaration): Improved
20047 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
20049 * c-parser.c (c_lex_one_token): Updated and reindented some
20050 comments. No changes in code.
20052 2011-01-11 Ian Lance Taylor <iant@google.com>
20054 * godump.c (go_output_var): Don't output the variable if there is
20055 already a type with the same name.
20057 2011-01-11 Ian Lance Taylor <iant@google.com>
20059 * godump.c (go_format_type): Don't generate float80.
20061 2011-01-11 Richard Henderson <rth@redhat.com>
20063 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
20064 declaration. Rewrite for both speed and size.
20065 (mn10300_address_cost_1): Remove.
20066 (mn10300_register_move_cost): New.
20067 (mn10300_memory_move_cost): New.
20068 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
20069 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
20070 extensions, shifts, BSWAP, CLZ.
20071 (mn10300_wide_const_load_uses_clr): Remove.
20072 (TARGET_REGISTER_MOVE_COST): New.
20073 (TARGET_MEMORY_MOVE_COST): New.
20074 * config/mn10300/mn10300-protos.h: Update.
20075 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
20077 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
20078 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
20079 * config/mn10300/mn10300-protos.h: Update.
20080 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
20081 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
20082 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
20083 (*test_int_bitfield, *test_byte_bitfield): Remove.
20084 (*bit_test, *subreg_bit_test): Remove.
20085 * config/mn10300/predicates.md (const_8bit_operand): Remove.
20087 * config/mn10300/constraints.md ("c"): Rename from "A".
20088 ("A", "D"): New constraint letters.
20089 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
20090 (fmssf4, fnmasf4, fnmssf4): Likewise.
20092 * config/mn10300/mn10300.md (isa): New attribute.
20093 (enabled): New attribute.
20095 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
20096 (abssf2, negsf2): Define only for hardware fp.
20097 (sqrtsf2): Reformat.
20098 (addsf3, subsf3, mulsf3): Merge expander and insn.
20100 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
20101 (DEBUGGER_AUTO_OFFSET): Remove.
20102 (DEBUGGER_ARG_OFFSET): Remove.
20104 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
20105 Emit register stores with the same offsets as the hardware.
20106 (mn10300_store_multiple_operation): Don't check that the register
20107 save offsets are monotonic.
20108 * config/mn10300/mn10300-protos.h: Update.
20110 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
20112 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
20113 in terms of the value on the stack, not the MDR register.
20115 2011-01-11 Jan Hubicka <jh@suse.cz>
20119 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
20120 (symbol_alias_set_destroy, symbol_alias_set_contains,
20121 propagate_aliases_backward): Declare.
20122 * lto-streamer-out.c (struct sets): New sturcture.
20123 (trivally_defined_alias): New function.
20124 (output_alias_pair_p): Rewrite.
20125 (output_unreferenced_globals): Fix output of alias pairs.
20126 (produce_symtab): Likewise.
20127 * ipa.c (function_and_variable_visibility): Set weak alias destination
20129 * varasm.c (symbol_alias_set_t): Remove.
20130 (symbol_alias_set_destroy): Export.
20131 (propagate_aliases_forward, propagate_aliases_backward): New functions
20133 (compute_visible_aliases): ... this one; remove.
20134 (trivially_visible_alias): New
20135 (trivially_defined_alias): New.
20136 (remove_unreachable_alias_pairs): Rewrite.
20137 (finish_aliases_1): Reorganize code checking if alias is defined.
20138 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
20141 2011-01-11 Richard Guenther <rguenther@suse.de>
20143 PR tree-optimization/46076
20144 * tree-ssa.c (useless_type_conversion_p): Conversions from
20145 unprototyped to empty argument list function types are useless.
20147 2011-01-11 Richard Guenther <rguenther@suse.de>
20149 PR middle-end/45235
20150 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
20151 volatile MEMs as MEM_READONLY_P.
20153 2011-01-11 Richard Guenther <rguenther@suse.de>
20155 PR tree-optimization/47239
20156 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
20158 2011-01-11 Jeff Law <law@redhat.com>
20160 PR tree-optimization/47086
20161 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
20162 IVs from statements that might throw.
20164 2011-01-10 Jan Hubicka <jh@suse.cz>
20167 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
20169 2011-01-10 Jan Hubicka <jh@suse.cz>
20172 * profile.c (read_profile_edge_counts): Ignore profile inconistency
20173 when correcting profile.
20175 2011-01-10 Jan Hubicka <jh@suse.cz>
20178 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
20179 DECL_FINI_PRIORITY.
20180 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
20181 Restore DECL_FINI_PRIORITY.
20183 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20185 * doc/gimple.texi: Fix quoting of multi-word return values in
20186 @deftypefn statements. Ensure presence of return value. Wrap
20187 overlong @deftypefn lines.
20188 (is_gimple_operand, is_gimple_min_invariant_address): Remove
20189 descriptions of removed functions.
20190 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
20191 of multi-word return value in @deftypefn statement.
20193 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20195 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
20196 (Conditional Expressions, Logical Operators)
20197 (Statement and operand traversals): Do not indent smallexample
20198 code. Fix duplicate function argument in example.
20200 2011-01-10 Jeff Law <law@redhat.com>
20202 PR tree-optimization/47141
20203 * ipa-split.c (split_function): Handle case where we are
20204 returning a value and the return block has a virtual operand phi.
20206 2011-01-10 Jan Hubicka <jh@suse.cz>
20208 PR tree-optimization/47234
20209 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
20210 (pass_feedback_split_functions): Declare.
20211 * passes.c (init_optimization_passes): Add ipa-split as subpass of
20213 * ipa-split.c (gate_split_functions): Update comments; disable
20214 split-functions for profile_arc_flag and branch_probabilities.
20215 (gate_feedback_split_functions): New function.
20216 (execute_feedback_split_functions): New function.
20217 (pass_feedback_split_functions): New global var.
20219 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
20222 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
20223 calling gimple_call_set_cannot_inline.
20225 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
20227 * config/darwin-sections.def: Remove unused section.
20229 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
20232 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
20234 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
20237 * c-parser.c (c_parser_declaration_or_fndef): Improved
20240 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
20242 * config/i386/winnt.c (i386_pe_start_function): Make sure
20243 to switch back to function's section.
20245 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
20249 * plugin.c: Move include of dlfcn.h from here...
20250 * system.h: ... to here.
20252 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20254 * doc/cpp.texi (C++ Named Operators): Fix markup for header
20256 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
20257 two extra empty pages in PDF output.
20259 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
20262 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
20263 for error recovery purposes behave as if it was not specified so
20264 that the default type is usd.
20266 2011-01-07 Jan Hubicka <jh@suse.cz>
20268 PR tree-optmization/46469
20269 * ipa.c (function_and_variable_visibility): Clear needed flags on
20270 nodes with external decls; handle weakrefs merging correctly.
20272 2011-01-07 Joseph Myers <joseph@codesourcery.com>
20274 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
20277 2011-01-07 Jan Hubicka <jh@suse.cz>
20279 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
20280 and no longer claim that gold is required for linker plugin.
20281 * configure: Regenerate.
20282 * gcc.c (PLUGIN_COND): New macro.
20283 (LINK_COMMAND_SPEC): Use it.
20284 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
20285 * config.in (HAVE_LTO_PLUGIN): New.
20286 * configure.ac (--with-lto-plugin): New parameter; autodetect
20289 2011-01-07 Jan Hubicka <jh@suse.cz>
20291 PR tree-optimization/46367
20292 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
20293 when we can update original.
20294 (cgraph_mark_inline_edge): Sanity check.
20295 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
20297 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20299 * config/spu/spu.h (ASM_COMMENT_START): Define.
20301 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
20304 * gcc.c (%>S): New.
20305 (SWITCH_KEEP_FOR_GCC): Likewise.
20306 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
20307 (do_spec_1): Handle "%>".
20309 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
20311 2011-01-07 Jakub Jelinek <jakub@redhat.com>
20314 * config/i386/i386.c (ix86_delegitimize_address): If
20315 simplify_gen_subreg fails, return orig_x.
20318 * value-prof.c (gimple_stringop_fixed_value): Handle
20319 lhs of the call properly.
20321 2011-01-07 Jan Hubicka <jh@suse.cz>
20324 * lto-opt.c (lto_reissue_options): Set flag_shlib.
20326 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20328 * target.def (function_switched_text_sections): New hook.
20329 * doc/tm.texi: Regenerated.
20330 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20331 * final.c (default_function_switched_text_sections): New.
20332 (final_scan_insn): Call function_switched_text_sections when a
20333 mid-function section change occurs.
20334 * output.h (default_function_switched_text_sections): Declare.
20335 * config/darwin-protos.h (darwin_function_switched_text_sections):
20337 * config/darwin.c (darwin_function_switched_text_sections): New.
20338 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
20340 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
20342 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
20343 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
20344 the secondary code fragment when outputting for DWARF == 2.
20346 2011-01-07 Anatoly Sokolov <aesok@post.ru>
20348 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
20349 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
20351 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
20352 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
20354 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
20357 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
20358 when it is not empty.
20360 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
20363 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
20364 (case ${target}): Add btver1.
20365 * config/i386/driver-i386.c (host_detect_local_cpu): Let
20366 -march=native recognize btver1 processors.
20367 * config/i386/i386-c.c (ix86_target_macros_internal): Add
20368 btver1 def_and_undef
20369 * config/i386/i386.c (struct processor_costs btver1_cost): New
20371 (m_BTVER1): New definition.
20372 (m_AMD_MULTIPLE): Includes m_BTVER1.
20373 (initial_ix86_tune_features): Add btver1 tune.
20374 (processor_target_table): Add btver1 entry.
20375 (static const char *const cpu_names): Add btver1 entry.
20376 (software_prefetching_beneficial_p): Add btver1.
20377 (ix86_option_override_internal): Add btver1 instruction sets.
20378 (ix86_issue_rate): Add btver1.
20379 (ix86_adjust_cost): Add btver1.
20380 * config/i386/i386.h (TARGET_BTVER1): New definition.
20381 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
20382 (enum processor_type): Add PROCESSOR_BTVER1.
20383 * config/i386/i386.md (define_attr "cpu"): Add btver1.
20385 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20388 * config/i386/i386.c (legitimize_tls_address)
20389 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
20390 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
20391 (tls_initial_exec_64_sun): New pattern.
20393 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
20395 * doc/invoke.texi (Overall Options): Improve wording and markup
20396 of the description of -wrapper.
20398 2011-01-06 Joseph Myers <joseph@codesourcery.com>
20400 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
20401 rdynamic, threads): New Driver options.
20403 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20406 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
20407 if coming from .tdata.
20408 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
20410 2011-01-06 Jan Hubicka <jh@suse.cz>
20413 * collect2.c (main): Do not enable LTOmode when plugin is active.
20415 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20418 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
20419 --version output if supported.
20420 * configure: Regenerate.
20422 2011-01-06 Joseph Myers <joseph@codesourcery.com>
20424 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
20427 2011-01-06 Jakub Jelinek <jakub@redhat.com>
20430 * c-convert.c (convert): When converting a complex expression
20431 other than COMPLEX_EXPR to a different complex type, ensure
20432 c_save_expr is called instead of save_expr, unless in_late_binary_op.
20433 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
20434 when converting COMPLEX_TYPE.
20436 2011-01-06 Ira Rosen <irar@il.ibm.com>
20438 PR tree-optimization/47139
20439 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
20440 only the last reduction value is used outside the loop. Update
20443 2011-01-05 Joseph Myers <joseph@codesourcery.com>
20445 * config/rtems.opt: New.
20446 * config.gcc (*-*-rtems*): Use rtems.opt.
20448 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
20450 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
20451 processors do not support 3DNow instructions.
20453 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20455 * config/spu/spu.c (spu_option_override): Set parameter
20456 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
20458 2011-01-05 Jan Hubicka <jh@suse.cz>
20460 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
20461 at the command line.
20463 2011-01-05 Martin Jambor <mjambor@suse.cz>
20466 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
20467 deltas on streamed outgoing edges.
20468 (output_node_opt_summary): Output info for outgoing edges only when
20469 the node is in new parameter set.
20470 (output_cgraph_opt_summary): New parameter set, passed to the two
20471 aforementioned functions. Update its forward declaration and its
20474 2011-01-05 Tom Tromey <tromey@redhat.com>
20476 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
20477 operator to c_finish_omp_atomic.
20478 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
20479 (build_unary_op): Update.
20480 (build_modify_expr): Update.
20481 (build_asm_expr): Update.
20483 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20485 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
20486 newly inserted insns.
20487 (pad_bb): Likewise.
20488 (spu_emit_branch_hint): Likewise.
20489 (insert_hbrp_for_ilb_runout): Likewise.
20490 (spu_machine_dependent_reorg): Call df_finish_pass after
20491 schedule_insns returns.
20493 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20495 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
20497 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
20499 PR tree-optimization/47005
20500 * tree-sra.c (struct access): Add 'non_addressable' bit.
20501 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
20502 (decide_one_param_reduction): Return 0 if the parameter is passed by
20503 reference and one of the accesses in the group is non_addressable.
20505 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20507 PR tree-optimization/47056
20508 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
20509 (mark_load): Likewise. Handle FUNCTION_DECL specially.
20510 (mark_store): Likewise. Pass STMT to ipa_record_reference.
20512 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
20514 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
20515 initializer. Skip view conversions from aggregate types.
20517 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
20520 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
20522 2011-01-04 Philipp Thomas <pth@suse.de>
20524 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
20527 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20529 * function.c (thread_prologue_and_epilogue_insns): Do not crash
20530 on empty epilogue sequences.
20532 2011-01-04 Joseph Myers <joseph@codesourcery.com>
20534 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
20535 non-static): New Driver options.
20537 2011-01-04 Jie Zhang <jie@codesourcery.com>
20540 * gcc.c (default_compilers[]): Set combinable field to 0
20541 for all assembly languages.
20543 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
20545 * config/mips/loongson3a.md: New file.
20546 * config/mips/mips.md: Include loongson3a.md.
20547 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
20550 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
20552 PR middle-end/47017
20553 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
20554 instead of convert_memory_address_addr_space on the base expression.
20556 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20558 * config/spu/spu.c (spu_option_override): Update error text
20559 for bad -march= / -mtune= values.
20561 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20563 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
20564 if branch-hint optimization will be performed.
20566 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20568 PR tree-optimization/47148
20569 * ipa-split.c (split_function): Convert arguments to
20570 DECL_ARG_TYPE if possible.
20572 PR tree-optimization/47155
20573 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
20574 when computing uns.
20576 PR rtl-optimization/47157
20577 * combine.c (try_combine): If undobuf.other_insn becomes
20578 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
20579 and set *new_direct_jump_p too.
20581 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
20583 PR tree-optimization/47021
20584 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
20586 2011-01-03 Jakub Jelinek <jakub@redhat.com>
20588 * gcc.c (process_command): Update copyright notice dates.
20589 * gcov.c (print_version): Likewise.
20590 * gcov-dump.c (print_version): Likewise.
20591 * mips-tfile.c (main): Likewise.
20592 * mips-tdump.c (main): Likewise.
20594 2011-01-03 Martin Jambor <mjambor@suse.cz>
20596 PR tree-optimization/46801
20597 * tree-sra.c (type_internals_preclude_sra_p): Check whether
20598 aggregate fields start at byte boundary instead of the bit-field flag.
20600 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
20603 * gcc.c (main): Revert revision 168407.
20605 2011-01-03 Martin Jambor <mjambor@suse.cz>
20607 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
20609 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20611 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
20612 vector optab to expand vector/scalar shift, update gimple to vector.
20614 2011-01-03 Martin Jambor <mjambor@suse.cz>
20616 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
20619 2011-01-03 Martin Jambor <mjambor@suse.cz>
20621 PR tree-optimization/46984
20622 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
20624 (cgraph_create_indirect_edge): Fixed line length.
20625 (cgraph_indirect_call_info): Declare.
20626 (cgraph_make_edge_direct) Update declaration.
20627 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
20628 (cgraph_create_indirect_edge): Use it.
20629 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
20631 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
20632 the new thunk_delta representation.
20633 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
20635 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
20636 (ipa_read_indirect_edge_info): Likewise.
20637 * lto-cgraph.c (output_edge_opt_summary): New function.
20638 (output_node_opt_summary): Call it on all outgoing edges.
20639 (input_edge_opt_summary): New function.
20640 (input_node_opt_summary): Call it on all outgoing edges.
20642 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
20645 * gcc.c (main): Don't check have_o when settting combine_inputs.
20647 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
20649 * regrename.c: Add general comment describing the pass.
20650 (struct du_head): Remove 'length' field.
20651 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
20652 (regrename_optimize): Do not sort chains. Rework comments, add others.
20653 Force renaming to the preferred class (if any) in the first pass and do
20654 not consider registers that belong to it in the second pass.
20655 (create_new_chain): Do not set 'length' field.
20656 (scan_rtx_reg): Likewise.
20658 2011-01-02 Jakub Jelinek <jakub@redhat.com>
20660 PR tree-optimization/47140
20661 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
20662 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
20663 to bit_value_binop.
20665 PR rtl-optimization/47028
20666 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
20667 parm_birth_insn instead of at the beginning of first bb.
20669 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
20671 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
20672 Remove the word "see" before "@pxref".
20673 * doc/rtl.texi: Remove the word "see" before "@pxref".
20675 2011-01-01 Jan Hubicka <jh@suse.cz>
20677 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
20680 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
20683 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
20686 Copyright (C) 2011 Free Software Foundation, Inc.
20688 Copying and distribution of this file, with or without modification,
20689 are permitted in any medium without royalty provided the copyright
20690 notice and this notice are preserved.